127 Sets Processing 4000mm 127 Sets High-Precision CNC Lathes
15 Years of Experience

CNC Knowledge: Use the machining program to clear the clearance error

01 Preface The machining precision of CNC lathes is not only related to its own precision, but also closely related to the CNC machining program. Poorly written machining programs will not only cause unexpected errors, but also falsely believe that there is a problem with the accuracy of the machine tool. When repairing the machine […]

cnc knowledge: use the machining program to clear the clearance

01

Preface

The machining precision of CNC lathes is not only related to its own precision, but also closely related to the CNC machining program. Poorly written machining programs will not only cause unexpected errors, but also falsely believe that there is a problem with the accuracy of the machine tool. When repairing the machine tool, the problem cannot be found and there is no way to start. A similar case is analyzed below.

02

Description of the fault

The part shown in Figure 1 was processed with a CK6140 CNC lathe. It was found that there was no problem with the accuracy of the first part. The outer diameter and inner hole of the second piece were two threads larger than the first piece (1). wire = 10 μm, same as below). The outer diameter and inner hole of the third piece were two threads larger than the second piece. Such problems still occurred when treatment continued. The operator thought there was an accuracy problem. machine tool and maintenance required.

Figure 1 Part structure

After checking that there is no problem with the accuracy of the machine tool, the routine machining procedures for this inner hole are as follows.

N40G0X150Z100;

N50 T0202;

N60G0X25Z1;

N70G1Z-105F0.25;

N80 G0Z100;

N90 G0X150;

There is no retraction command in the X direction after processing the N70 program. The operator stated that there is no surface roughness requirement for the inner hole. Such programming can improve treatment efficiency. the machine tool. Other technicians also agreed with the operator’s point of view, so he found himself in a situation where he didn’t know what to do.

03

Failure analysis

According to the analysis of the fault phenomenon, each part has an outer diameter and an inner hole two wires larger than the previous part, and the problem may lie in the X direction. After checking, there is no screw movement problem in the X direction, and the clearance in the X direction is exactly two threads, and the clearance compensation amount is also two threads, which indicates that there is no problem with the precision of the machine. tool. When I had no choice but to change programs, I inserted the next program segment between N60 and N70.

N63G0X24;

N66G0X25;

Keep other procedures unchanged, retest and the fault is resolved, which means the problem lies in backlash compensation. The following analyzes two situations.

The trajectory of the conventional program for machining the inner hole is shown in Figure 2, and the trajectory of the modified program for machining the inner hole is shown in Figure 3. Point A in Figures 2 and 3 is the starting point of the inner hole tool, and its coordinates are X=150, Z=100; the coordinates of point B are X=25, Z=1, the coordinates of point C are X; =25, Z=-105; the coordinates of point H are X=25, Z=0; the coordinates of point G are X=24, Z=1 and F are the two ends of the ball screw in the X direction; nut.

Image WeChat_20231227093823.png

Figure 2 Trajectory of conventional interior hole machining program

As shown in Figure 2, when the tool moves from A to B, the actual gap between the X-axis ball screw and the nut is at point F. At this point, there is no no gap between the screw and the nut at point E. When the tool moves from B to C, the ball screw of the X axis does not move. When the tool moves to point H and starts cutting, the tool is subjected to a compressive force from the workpiece in the negative direction of the X axis. Under the action of this force, the ball screw nut moves slightly toward the negative end of the X axis when F When all the spaces at the end are transferred to the E end, the micro- movement stops. The CNC system cannot know this process, so point C is equivalent to a ball screw reverse set shifted in the negative direction of the female is well adjusted 2, and after running N80 GOZ100, it will not affect the change direction X clearance of ball screws. Run N90 G0X150, the X axis is reversed, and the CNC system automatically performs ball screw backlash compensation. Due to the action of external force, the reverse clearance of the X axis has been transferred from end F to end E, and there is no gap when point A is shifted by a point A instead of the original position of point A. reverse clearance amount in the positive direction of the X axis. In this way, each time the inner hole turning tool cycles, as long as the extrusion force in the negative direction of the X axis is compensated by an amount of play in the positive direction of. the X axis, causing the above failure.

In Figure 3, program instructions N63 and N66 are added. After the N66 program is executed, the actual gap between the ball screw and the nut is in F, and there is no gap in E at this time. From H to C, although the tool is subjected to the negative extrusion force of the workpiece towards the X axis, there is no gap at E and the ball screw is positioned by the servo motor, so there will be no errors in the Direction X, and the problems mentioned above will not occur in the event of a continuous processing fault.

Image WeChat_20231227093826.png

Figure 3 Program path for machining the inner hole after modification

04

Conclusion

The above examples illustrate that eliminating backlash is one of the important ways to ensure machining accuracy. The system parameter compensation method does not affect the writing of processing programs. Although the system parameter compensation method is easy to use, simple and clear, it has great limitations. Using machining programs to eliminate backlash is suitable for open and semi-closed loop systems, especially systems without compensation. It has a great practical effect. However, this method of programming requires a high degree of process knowledge and understanding of the structure of the machine tool from the programmer.

Daguang focuses on providing solutions such as precision CNC machining services (3-axis, 4-axis, 5-axis machining), CNC milling, 3D printing and rapid prototyping services.

CNC Experts

Picture of JinShui Chen

JinShui Chen

Rapid Prototyping & Rapid Manufacturing Expert

Specialize in CNC machining, 3D printing, urethane casting, rapid tooling, injection molding, metal casting, sheet metal and extrusion

CNC Recent Posts

CNC News

Welcome to GreatLight Metal,Maximum Processing Size 4,000 mm

Precision Machining CNC Quote Online

Loading file

Upload Click here to upload or drag and drop your model to the canvas.

The model is too large and has been resized to fit in the printer's build tray. [Hide]

The model is too large to fit in the printer's build tray. [Hide]

The model is too large, a fitting printer is selected. [Hide]

The model is too small and has been upscaled. [Hide]

Warning: The selected printer can not print in full color [Hide]

Warning: obj models with multiple meshes are not yet supported [Hide]

Warning: Unsupported DXF entity  [Hide]

Warning: could not arrange models [Hide]

[Hide]


File Unit:      
Scale:
%
L × W × H:
X: × Y: × Z:  cm 
Rotation:
X: ° Y: °  
⚡ Instant Quote for Precision Manufacturing

Submit your design files (STEP/IGES/DWG) and receive a competitive quote within 1 hour, backed by ISO 9001-certified quality assurance.

📋 How It Works

  1. Upload & SpecifyShare your 3D model and select materials (Aluminum/Stainless Steel/Titanium/PEEK), tolerances (±0.002mm), and surface treatments.

  2. AI-Powered AnalysisOur system calculates optimal machining strategy and cost based on 10+ years of automotive/aerospace data.

  3. Review & ConfirmGet a detailed breakdown including:
    - Volume pricing tiers (1-10,000+ units)
    - Lead time (3-7 days standard)
    - DFM feedback for cost optimization

Unit Price: 

Loading price
5 Axis CNC Machining Equipment
4 Axis CNC Machining Equipment
3 Axis CNC Machining Equipment
CNC Milling & Turning Equipment
Prototype and Short-Run Injection Moldings Exact plastic material as final design
Volume Metal Die Casting Services - Precision Cast Parts
Bridge the Gap From Prototype to Production – Global delivery in 10 days or less
Custom high-precision sheet metal prototypes and parts, as fast as 5 days.
Custom Online 3D Printing Services
Custom Online 3D Printing Services
Custom Online 3D Printing Services
Design Best Processing Method According To 3D Drawings
Alloys Aluminum 6061, 6061-T6 Aluminum 2024 Aluminum 5052 Aluminum 5083 Aluminum 6063 Aluminum 6082 Aluminum 7075, 7075-T6 Aluminum ADC12 (A380)
Alloys Brass C27400 Brass C28000 Brass C36000
Alloys Stainless Steel SUS201 Stainless Steel SUS303 Stainless Steel SUS 304 Stainless Steel SUS316 Stainless Steel SUS316L Stainless Steel SUS420 Stainless Steel SUS430 Stainless Steel SUS431 Stainless Steel SUS440C Stainless Steel SUS630/17-4PH Stainless Steel AISI 304
Inconel718
Carbon Fiber
Tool Steel
Mold Steel
Alloys Titanium Alloy TA1 Titanium Alloy TA2 Titanium Alloy TC4/Ti-6Al 4V
Alloys Steel 1018, 1020, 1025, 1045, 1215, 4130, 4140, 4340, 5140, A36 Die steel Alloy steel Chisel tool steel Spring steel High speed steel Cold rolled steel Bearing steel SPCC
Alloys Copper C101(T2) Copper C103(T1) Copper C103(TU2) Copper C110(TU0) Beryllium Copper
Alloys Magnesium Alloy AZ31B Magnesium Alloy AZ91D
Low Carbon Steel
Alloys Magnesium Alloy AZ31B Magnesium Alloy AZ91D
ABS Beige(Natural) ABS Black ABS Black Antistatic ABS Milky White ABS+PC Black ABS+PC White
PC Black PC Transparent PC White PC Yellowish White PC+GF30 Black
PMMA Black PMMA Transparent PMMA White
PA(Nylon) Blue PA6 (Nylon)+GF15 Black PA6 (Nylon)+GF30 Black PA66 (Nylon) Beige(Natural) PA66 (Nylon) Black
PE Black PE White
PEEK Beige(Natural) PEEK Black
PP Black PP White PP+GF30 Black
HDPE Black HDPE White
HIPS Board White
LDPE White
This is a finish of applying powdered paint to the components and then baking it in an oven, which results in a stronger, more wear- and corrosion-resistant layer that is more durable than traditional painting methods.
No coating required, product’s natural color!
This is a finish of applying powdered paint to the components and then baking it in an oven, which results in a stronger, more wear- and corrosion-resistant layer that is more durable than traditional painting methods.
This finishing option with the shortest turnaround time. Parts have visible tool marks and potentially sharp edges and burrs, which can be removed upon request.
Sand blasting uses pressurized sand or other media to clean and texture the surface, creating a uniform, matte finish.
Polishing is the process of creating a smooth and shiny surface by rubbing it or by applying a chemical treatmen
A brushed finish creates a unidirectional satin texture, reducing the visibility of marks and scratches on the surface.
Anodizing increases corrosion resistance and wear properties, while allowing for color dyeing, ideal for aluminum parts.
Black oxide is a conversion coating that is used on steels to improve corrosion resistance and minimize light reflection.
Electroplating bonds a thin metal layer onto parts, improving wear resistance, corrosion resistance, and surface conductivity.
This is a finish of applying powdered paint to the components and then baking it in an oven, which results in a stronger, more wear- and corrosion-resistant layer that is more durable than traditional painting methods.
This is a finish of applying powdered paint to the components and then baking it in an oven, which results in a stronger, more wear- and corrosion-resistant layer that is more durable than traditional painting methods.
Please provide additional text description for other surface treatment requirements!
Material
Material
  • CNC Metals
    • Aluminum
    • Brass
    • Stainless steel
    • Inconel718
    • Carbon Fiber
    • Tool Steel
    • Mold Steel
    • Titanium
    • Alloy Steel
    • Copper
    • Bronze
    • Low Carbon Steel
    • Magnesium
  • CNC Plastics
    • ABS
    • PC
    • PMMA (Acrylic)
    • PA (Nylon)
    • PE
    • PEEK
    • PP
    • HDPE
    • HIPS
    • LDPE
Printer
Printer
  • CNC Metals
    • 5 Axis CNC Machining
    • 4 Axis CNC Machining
    • 3 Axis CNC Machining
    • CNC Milling & Turning
    • Rapid Tooling
    • Metal Die Casting
    • Vacuum Casting
    • Sheet Metal Fabrication
    • SLA 3D Printing
    • SLS 3D Printing
    • SLM 3D Printing
  • Rapid Prototyping
    • Design Best Processing Method According To 3D Drawings
Post-processing
Post-processing
  • As Machined(Product’s natural color)
  • Sand Blasting
  • Polishing
  • Brushed Finish
  • Anodizing
  • Black Oxide
  • Electroplating
  • Paint Coating
  • Powder Coating
  • Other surface treatment requirements
Finalize
The world's first CNC machining center that dares to provide free samples!

Free for first product valued at less than $200. (Background check required)

precision machining cnc quote online

15 Years CNC Machining Services

When you’re ready to start your next project, simply upload your 3D CAD design files, and our engineers will get back to you with a quote as soon as possible.
Scroll to Top

ISO 9001 Certificate

ISO 9001 is defined as the internationally recognized standard for Quality Management Systems (QMS). It is by far the most mature quality framework in the world. More than 1 million certificates were issued to organizations in 178 countries. ISO 9001 sets standards not only for the quality management system, but also for the overall management system. It helps organizations achieve success by improving customer satisfaction, employee motivation, and continuous improvement. * The ISO certificate is issued in the name of FS.com LIMITED and applied to all the products sold on FS website.

greatlight metal iso 9001 certification successfully renewed
GB T 19001-2016 IS09001-2015
✅ iso 9001:2015
greatlight metal iso 9001 certification successfully renewed zh

IATF 16949 certificate

IATF 16949 is an internationally recognized Quality Management System (QMS) standard specifically for the automotive industry and engine hardware parts production quality management system certification. It is based on ISO 9001 and adds specific requirements related to the production and service of automotive and engine hardware parts. Its goal is to improve quality, streamline processes, and reduce variation and waste in the automotive and engine hardware parts supply chain.

automotive industry quality management system certification 01
Certification of Production Quality Management System for Engine Hardware Parts Engine Hardware Associated Parts
automotive industry quality management system certification 00
发动机五金零配件的生产质量管理体系认证

ISO 27001 certificate

ISO/IEC 27001 is an international standard for managing and processing information security. This standard is jointly developed by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC). It sets out requirements for establishing, implementing, maintaining, and continually improving an information security management system (ISMS). Ensuring the confidentiality, integrity, and availability of organizational information assets, obtaining an ISO 27001 certificate means that the enterprise has passed the audit conducted by a certification body, proving that its information security management system has met the requirements of the international standard.

greatlight metal technology co., ltd has obtained multiple certifications (1)
greatlight metal technology co., ltd has obtained multiple certifications (2)

ISO 13485 certificate

ISO 13485 is an internationally recognized standard for Quality Management Systems (QMS) specifically tailored for the medical device industry. It outlines the requirements for organizations involved in the design, development, production, installation, and servicing of medical devices, ensuring they consistently meet regulatory requirements and customer needs. Essentially, it's a framework for medical device companies to build and maintain robust QMS processes, ultimately enhancing patient safety and device quality.

greatlight metal technology co., ltd has obtained multiple certifications (3)
greatlight metal technology co., ltd has obtained multiple certifications (4)

Get The Best Price

Send drawings and detailed requirements via Email:[email protected]
Or Fill Out The Contact Form Below:

All uploads are secure and confidential.