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

CNC Knowledge: CNC machining center programming skills in one article

For CNC machining, programming is very important, which directly affects the processing quality and efficiency. I believe everyone loves and hates programming. So how do you quickly master CNC machining center programming skills? Let’s learn with the editor below! pause command G04X(U)_/P_ refers to the tool pause time (feed stops, spindle does not stop), and […]

For CNC machining, programming is very important, which directly affects the processing quality and efficiency. I believe everyone loves and hates programming. So how do you quickly master CNC machining center programming skills? Let’s learn with the editor below!

pause command

G04X(U)_/P_ refers to the tool pause time (feed stops, spindle does not stop), and the value after the P or X address is the pause time. The value after

However, in some hole system processing instructions (such as G82, G88 and G89), in order to ensure the accuracy of the bottom of the hole, there is a pause time during which the tool processes to the bottom of the hole . be expressed by the address P. If the address

Differences and connections between M00, M01, M02 and M03

M00 is an unconditional pause instruction for the program. When the program is executed, the feed stops and the spindle stops. To restart the program, you must first return to JOG state, press CW (forward spindle) to start the spindle, then return to AUTO state, press START key to start the program.

M01 is a selective program pause instruction. Before the program is executed, the OPSTOP button on the control panel must be activated. The effect after execution is the same as M00. The program must be restarted as above. M00 and M01 are often used for inspection or chip removal of workpiece dimensions during processing.

M02 is the main end-of-program instruction. When this command is executed, the feed stops, the spindle stops, and the coolant is cut off. But the program cursor stops at the end of the program.

M30 is the main end of program command. The function is the same as M02, the difference is that the cursor returns to the position of the start of the program whether or not there are other program segments after M30.

Addresses D and H have the same meaning

Tool compensation settings D and H have the same function and can be interchanged as desired. They both represent the address name of the compensation register in the CNC system, but the specific compensation value is determined by the address of the compensation number behind them. However, in machining centers, in order to avoid errors, it is generally artificially stipulated that H is the tool length compensation address, the compensation number is 1 to 20, D is the address tool radius compensation and the compensation number starts at No. .21 (a tool magazine with 20 tools).

Mirror control

Mirror image processing instructions M21, M22, M23. When only the X axis or Y axis is reflected, the cutting sequence (climb and up milling), tool compensation direction and arc interpolation direction will be opposite to the actual program. When the X and Y axes are reflected at the same time, the tool feeding sequence, tool compensation direction and arc interpolation direction remain unchanged.

Note: After using the mirror command, you must use M23 to cancel it to avoid affecting subsequent programs. In G90 mode, when using the mirror image or undo command, you must return to the origin of the part coordinate system before you can use it. Otherwise, the CNC system will not be able to calculate the subsequent movement trajectory and random movement of the tool will occur. At this point, a manual return to origin operation should be performed to resolve the issue. Spindle rotation does not change with mirror image control.

Arc interpolation command

G02 is clockwise interpolation, G03 is counterclockwise interpolation. In the XY plane, the format is: G02/G03X_Y_I_K_F_ or G02/G03X_Y_R_F_, where X and Y are the coordinates of the end point of the arc, and I and J are the start of the arc. point to the center of the circle. The incremental value on the X and Y axes, R is the arc radius and F is the feed amount.

When arc cutting, please note that when q≤180°, R is a positive value; when q>180°, R is a negative value, I and K can also be specified with R. When both are specified at the same time; the R command has priority and I, K is invalid; R cannot perform full circle cutting, and full circle cutting can only be programmed with I, J, and K, because there are countless circles with the same radius passing through the same point. . When I and K are zero, they can be omitted; Regardless of G90 or G91 mode, I, J and K are programmed based on relative coordinates during arc interpolation, G41/G42 tool compensation instructions cannot be used.

Advantages and disadvantages between G92 and G54~G59

G54~G59 is the coordinate system set before processing, and G92 is the coordinate system set in the program. After using G54~G59, there is no need to use G92 again, otherwise G54~G59 will be replaced and should be avoided.

Note: (1) After G92 is used to set the coordinate system, using G54~G59 again will have no effect unless the system is powered off and restarted, or G92 is used to define the new required part coordinate system. (2) After the program using G92 is completed, if the machine tool does not return to the origin set by 92, restart the program and the current position of the machine tool will become the new origin of the workpiece coordinates, subject to accidents. . So I hope readers will use it with caution.

Programming tool change routine

On a machining center, tool changes are inevitable. However, the machine tool has a fixed tool change point when it leaves the factory. If it is not at the tool change position, the tool cannot be changed. In addition, before tool change, tool compensation and cycle must be canceled, the spindle. stops and the coolant is cut off. There are many conditions. If these conditions have to be ensured before each manual tool change, it will not only be error-prone but also inefficient. Therefore, we can compile a tool change program to save it and then use M98 to call it. perform the tool change action in one go.

Taking the PMC-10V20 machining center as an example, the program is as follows:

O2002; (program name)

G80G40G49 (Cancellation of canned cycle and tool compensation)

M05 (spindle stops)

M09; (coolant shutdown)

G91G30Z0 (Z axis returns to the second origin, which is the tool change point)

M06 (Tool change)

M99; (End of subroutine)

When you need to change tools, you only need to type “T5M98P2002” in the MDI state to replace the required T5 tool, avoiding many unnecessary errors. Readers can compile the corresponding tool changing routines according to the characteristics of their own machine tools.

other

Sequence number of the program segment, represented by address N. Typically, the CNC device itself has limited memory space. To save storage space, the sequence numbers of program segments are omitted. N only represents the program segment label, which can make it easier to find and edit the program. It has no effect on the machining process. The sequence number can be increased or decreased and continuity of values ​​is not required. However, it cannot be omitted when using certain loop instructions, jump instructions, subroutine calls and mirror instructions. In the same program segment, for the same instruction (same address character) or the same group of instructions, the one that appears later will take effect.

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.