1. G00 and G01
G00 motion trajectory has two types: straight line and broken line. This instruction is only used for point positioning and cannot be used for cutting processing
G01 moves to the target point specified by the instruction in a straight line at the specified feed speed, generally used for cutting processing
2. G02 and G03
G02: clockwise circular interpolation G03: counterclockwise circular interpolation
3. G04 (delay or pause instruction)
Generally used for forward and reverse switching, processing blind holes, stepped holes, and turning grooving
4. G17, G18, G19 plane selection instructions, specifying plane processing, generally used for milling machines and machining centers
G17: X-Y plane, which can be omitted or can be a plane parallel to the X-Y plane
G18: X-Z plane or a plane parallel to it. There is only an X-Z plane in a CNC lathe, so it does not need to be specifically specified
G19: Y-Z plane or a plane parallel to it
5. G27, G28, G29 Reference point command
G27: Return to reference point, check and confirm reference point position
G28: Automatically return to reference point (through the middle point)
G29: Return from reference point, used in conjunction with G28
6. G40, G41, G42 radius compensation
G40: Cancel tool radius compensation
I will give you this much first, and I will give you more after I finish sorting it out in the evening
7. G43, G44, G49 length compensation
G43: Positive length compensation G44: Negative length compensation G49: Cancel tool length compensation
8. G32, G92, G76
G32: Thread cutting G92: Thread cutting fixed cycle G76: Thread cutting compound cycle
9. Turning: G70, G71, 72, G73
G70: Finishing compound cycle
G71: Axial roughing compound cycle command
G72: Face turning, radial roughing cycle
G73: Profile rough turning cycle
10. Milling machine, machining center:
G73: High-speed deep hole drilling G83: Deep hole drilling G81: Drilling cycle G82: Deep hole drilling cycle
G74: Left-hand thread processing G84: Right-hand thread processing
Precision hole cycle
Boring cycle
G85: Reaming G80: Cancel cycle command
11. Programming method G90, G91
G90: Absolute coordinate programming G91: Incremental coordinate programming
12. Spindle setting command
G50: Setting the maximum spindle speed G96: Constant line speed control G97: Spindle speed control (cancel constant line speed control command) G99: Return to R point (middle hole) G98: Return to reference point (last hole)
13. Spindle forward and reverse stop command M03, M04, M05
M03: Spindle forward M04: Spindle reverse M05: Spindle stop
14. Cutting fluid switch M07, M08, M09
M07: Mist cutting fluid on M08: Liquid cutting fluid on M09: Cutting fluid off
15. Motion stop M00, M01, M02, M30
M00: Program pause M01: Planned stop M02: Machine tool reset M30: Program ends, pointer returns to the beginning
16, M98: Call subroutine
17, M99: Return to main program,
G code content
G00 Rapid positioning
G01 Linear interpolation
G02 Circular interpolation
G03 Circular interpolation
G04 Pause
G05
G06
G07
G08
G09
G10
G11
G12
G13 Tool holder selection: Tool holder A
G14 Tool holder selection: Tool holder B
G15
G16
G17 Tool radius compensation: X-Y plane
G18 Tool radius compensation: Z-X plane
G19 Tool radius compensation: Y-Z plane
G20 Original position command
G21 ATC original position command
G22 Torque skip command
G23
G24 ATC original position movement command (without linear interpolation)
G25 Node position movement command (without linear interpolation)
G26
G27
G28 Torque limit command cancel
G29 Torque limit command
G30 Skip cycle
G31 Fixed thread turning cycle: axial
G32 Fixed thread turning cycle: end face
G33 Fixed thread turning cycle
G34 Variable pitch thread turning cycle: increase pitch
G35 Variable pitch thread turning cycle: reduce pitch
G36 Power tool axis-feed axis synchronous feed (forward)
G37 Power tool axis-feed axis synchronous feed (reverse)
G38
G39
G40 Tool tip arc radius compensation: Cancel
G41 Tool nose arc radius compensation: left
G42 Tool nose arc radius compensation: right
G43
G44
G45
G46
G47
G48
G49
G50 Zero point displacement, spindle maximum speed command
G51
G52 Hexagonal tool holder indexing position error compensation
G53
G54
G55
G56
G57
G58
G59
G60
G61
G62 Mirror command
G63
G64 In-position control off
G65 In-position control on
G66
G67
G68
G69
G70
G71 Compound fixed thread turning cycle: axial
G72 Compound fixed thread turning cycle: radial
G73 Axial groove milling compound fixed cycle
G74 Radial groove milling compound fixed cycle
G75 Automatic chamfering
G76 Automatic chamfering
G77 Tapping compound fixed cycle
G78 Reverse thread tapping cycle
G79
G80 Shape definition end (LAP)
G81 Axial shape definition start (LAP)
G82 Radial shape definition start (LAP)
G83 Stock shape definition start (LAP)
G84 Change cutting conditions in bar turning cycle (LAP)
G85 Call bar rough turning cycle (LAP)
G86 Call repeated rough turning cycle (LAP)
G87 Call fine turning cycle (LAP)
G88 Call continuous thread turning cycle (LAP)
G89
G90 Absolute programming
G91 Incremental programming
G92
G93
G94 Feed per minute mode (mm/min)
G95 Feed per revolution mode (mm/rev)
G96 Constant peripheral speed cutting on
G97 G96 cancel
G98
G99
G100 Priority command for tool holder A or tool holder B to cut separately
G101 Linear interpolation during creation
G102 Circular interpolation during creation (front) (CW)
G103 Circular interpolation during creation (front) (CCW)
G104
G105
G106
G107 Spindle synchronous tapping, right-hand thread
G108 Spindle synchronous tapping, left-hand thread
G109
G110 Tool holder A constant peripheral speed cutting
G111 Tool holder B constant peripheral speed cutting
G112 Circular thread turning CW
G113 Circular thread turning CCW
G114
G115
G116
G117
G118
G119 Tool radius compensation: C-X-Z plane
G120
G121
G122 Tool holder A sub-spindle W axis command (13)
G123 Tool post B sub-spindle W axis command (G14)
G124 Chuck A effective origin
G125 Chuck B effective origin
G126 Taper processing mode OFF command
G127 Taper processing mode ON command
G128 M/C processing mode OFF command
G129 M/C processing mode ON command
G130
G131
G132 Arc interpolation during creation processing (side) (CW)
G133 Arc interpolation during creation processing (side) (CCW)
G134
G135
G136 Coordinate reversal end or Y axis mode OFF
G137 Coordinate reversal start
G138 Y axis mode ON
G139
G140 Spindle processing mode designation
G141 Sub-spindle processing mode designation
G142 Automatic demolding spindle processing mode designation
G143 Automatic demolding spindle and 3rd tool holder processing mode designation
G144 W-axis control OFF command
G145 W-axis control ON command
G146
G147
G148 B-axis control OFF command
G149 B-axis control ON command
G150
G151
G152 Programmable tailstock positioning (tailstock traction)
G153 Programmable center stock G code (traction)
G154 W-axis unidirectional positioning command
G155 Precise contour drawing mode ON command
G156 Precise contour drawing mode OFF command
G157
G158 Tool length offset in tool axis direction
G159 Tool length offset in tool axis direction (without rotation displacement offset)
G160 Cancel tool length offset in tool axis direction
G161 G code macro function MODIN
G162 G code macro function MODIN
G163 G code macro function MODIN
G164 G code macro function MODIN
G165 G code macro function MODIN
G166 G code macro function MODIN
G167 G code macro function MODIN
G168 G code macro function MODIN
G169 G code macro function MODIN
G170 G code macro function MODIN
G171 G code macro function CALL
G172
G173
G174
G175
G176
G177
G178 Synchronous tapping cycle (CW)
G179 Synchronous tapping cycle (CCW)
G180 Power tool compound fixed cycle: cancel
G181 Power tool compound fixed cycle: drilling
G182 Power tool compound fixed cycle: boring
G183 Power tool compound fixed cycle: deep hole drilling
G184 Power tool compound fixed cycle: tapping
G185 Power tool compound fixed cycle: axial thread turning
G186 Power tool compound fixed cycle: end face thread turning
G187 Power tool compound fixed cycle: axial straight thread turning
G188 Power tool compound fixed cycle: warp straight thread turning
G189 Power tool compound fixed cycle: reaming/boring
G190 Power tool compound fixed cycle: keyway cutting cycle
G191 Power tool compound fixed cycle: axial keyway cutting cycle
G192
G193
G194
G195
G196
G197
G198
G199
G200
G201
G202
G203
G204
G205 G code macro function call
G206 G code macro function call
G207 G code macro function call
G208 G code macro function call
G209 G code macro function call
G210 G code macro function call
G211 G code macro function call
G212 G code macro function CALL
G213 G code macro function CALL
G214 G code macro function CALL |