- G00 and G01 G00 have two kinds of motion paths: straight line and broken line. In computer gong processing, the command is only used for point positioning, not for cutting. G01 moves to the target point specified by the command in a straight line according to the specified feed speed, which is generally used for cutting
- G02 and G03 G02: clockwise arc interpolation G03: counterclockwise arc interpolation
- G04 (delay or pause command) is generally used for forward and reverse switching, processing blind hole, step hole, turning and grooving
- G17, G18, G19 plane selection instruction, mechanical parts processing designated plane processing, generally used for milling machine and machining center G17: X-Y plane, can be omitted, can also be parallel to the X-Y plane, G18: x-z plane or parallel plane, CNC lathe only x-z plane, do not use special designated G19: Y-Z plane or parallel plane
- G27, G28, g29 reference point command G27: return to the reference point, check and confirm the position of the reference point G28: automatically return to the reference point (through the middle point) g29: return from the reference point, use with G28
- G40, G41, G42 radius compensation G40: cancel tool radius compensation
- G43, g44, G49 length compensation G43: length positive compensation g44: length negative compensation G49: cancel tool length compensation
- G32, G92, G76 G32: thread cutting G92: thread cutting fixed cycle G76: thread cutting compound cycle
- Turning: G70, G71, 72, G73 G71: axial rough turning compound cycle instruction G70: finishing compound cycle G72: end face turning, radial rough turning cycle G73: profiling rough turning cycle
- Milling machine, machining center: G73: high speed deep hole pecking drill g83: deep hole pecking drill g81: drilling cycle g82: CNC machine tool processing deep hole drilling cycle G74: left screw thread processing g84: right screw thread processing G76: fine boring cycle g86: boring cycle g85: reaming g80: cancel cycle command
- Programming mode G90, G91 G90: absolute coordinate programming G91: incremental coordinate programming
- Spindle setting command G50: spindle maximum speed setting G96: constant linear speed control g97: spindle speed control (cancel constant linear speed control command) G99: return to R point (middle hole) g98: return to reference point (last hole)
- Spindle forward and reverse stop command M03, M04, M05 M03: spindle forward M04: spindle reverse M05: spindle stop
- Cutting fluid switch M07, M08, M09 M07: mist cutting fluid on M08: liquid cutting fluid on M09: cutting fluid off
- Examples of M00, M01, M02 and M30 programs are given. For example, use a 30 diameter milling cutter to process a circle with a diameter of 40. Set the relative coordinates of the circle center as x0y0 g0g90x0y0z100. Quickly locate the position Z2 of the circle center height 100 to the position g1z-1 of height 2. F100 moves from the set f speed 100 (i.e. tool speed) to the position of height-1 (if the workpiece surface is set as zero point, Then it is cutting into the surface of the workpiece (1mm) g91g01x-5.f200 (starting point of cutting into the circle) g02i5. (take the origin as the center of the circle and circle clockwise) X5. (leave the workpiece to the center of the circle) g0g90z100. (Z axis quickly rises to the position of Z100) M30 (end of the program)