- The meaning of letters in NC program
O: Program number
N: Program segment number, set program sequence number
G: Preparation function
X / Y / Z: dimension character, axis movement command
A / B / C / U / V / W: additional axis movement command
R: Arc radius
I / J / K: arc center coordinates (vector)
F: Feed, set feed rate
S: Spindle speed, set the spindle speed
T: Tool function, set tool number
M: Auxiliary function, on / off control function
H / D: tool offset number, set tool offset number
P / X: delay, set delay time
P: Program number instruction, set subroutine serial number (such as subroutine call: m98p1000)
50: Repeat, set the repeat times of subroutine or fixed cycle (e.g. M98 P1000 L2, omitting L for L1)
P / w / R / Q: parameters, parameters of fixed circulation (e.g. tapping g98 / (G99) g84 x)_ Y_ R_ Z_ P_ F_)
- Explanation of common G code
G00: positioning or rapid movement
G01: linear interpolation
G02: arc interpolation / helix interpolation CW
G03: circular interpolation / spiral interpolation CCW
G04: dwell time or delay time
For example: G04 X1000 (or G04 x1.0)
G04 P1000 stands for 1 second
G09: accurate stop or accurate stop check (check whether it is within the target range)
G10: programmable data input
G17: select xpyp plane XP: X axis or its parallel axis
G18: select zpxp plane YP: Y axis or its parallel axis
G19: select ypzp plane ZP: Z axis or its parallel axis
G20: Inch input
G21: mm input
G28: return to reference point detection
Format: G91 / (G90) G28 x__ Y__ Z__
Passing through the middle point x__ Y__ Z__ Return reference point (absolute value / increment value instruction)
G29: return from reference point
G91/(G90) G29 X__ Y__ Z__
From the starting point through the reference point back to the target point X__ Y__ Z__ Instruction (absolute value / increment value instruction)
G30 returns to reference points 2, 3, 4
G91/(G90) G30 P2 X__ Y__ Z__ Return to the second reference point (P2 may be omitted). )
G91/(G90) G30 P3 X__ Y__ Z__ ; return to the third reference point
G91/(G90) G30 P4 X__ Y__ Z__ ; return to the fourth reference point
X__ Y__ Z__ : through the middle point position (absolute value / incremental value instruction)
G40: tool radius compensation cancelled
G41: left tool radius compensation (along the feed direction, the tool is on the left side)
G42: right tool radius compensation (the tool is on the right along the feed direction)
G43: tool length compensation + direction
G44: tool length compensation – direction
G49: cancel tool length compensation