Preparatory Function G
Address symbol G represents preparatory function, and it is usually called G command.
Function G is used to specify machining operations, such as the moving track of tool relative to workpiece, machine coordinate system, coordinate plane, tool compensation, coordinate offset, subprogram call, dwell, and so on.
G command has non-modal and modal forms:
- Non-modal function G: only effective in the specified program block.
- Modal function G: a function G remains effective until another function G in the same group appears to cancel it.
Programming Example
G01 X
Z_ 'G01 is effective within such a range
X_
G00 Z_
X_ 'G00 is effective within such a range
G01 X_
...
Attention: G00 and G01 are modal G commands.