G functions
A complete list of G functions is contained in the overview of commands in the Appendix under G functions (G..).
"G” functions describe the type of feed motion, interpolation type and measuring method. They switch time-related influences and activate certain operation states. The syntax consists of the letter G combined with an identifier. The identifier is assigned a fixed validity and can be optionally preceded by a 0 (e.g. G01 and G1 have the same validity).:
Syntax: |
G[0]<id> |
Various distinguishing features must be considered with G functions:
Effectiveness:
There are G functions that only retain their validity after programming for a specific block ( non-modal) and G functions that retain their validity the first time they are programmed until they are explicitly deselected ( modal).
Exception:
Certain G functions mutually exclude each other. For example, G01 (linear interpolation) and G02 (circular interpolation) cannot be selected simultaneously. Therefore, the functions summarised in these groups may not be programmed in the same NC block.
A modal function is automatically deselected if a different function in the same group is selected in a following block.
Programing Example
G functions
:
N50 G01 X100 Y200 ; linear interpolation effective
N60 G41 X200 Y200 ; linear interpolation effective
N70 X300 Y250 ; linear interpolation effective
N80 X100 Y50 ; linear interpolation effective
N90 G02 X100 Y50 I100 ; circular interpolation effective
:
Initial position:
During switching, after RESET or at program end, the controller is in initial position. In initial position, several G functions are active without being explicitly selected.
Additional information
- Path preparatory functions
- Determining acceleration/deceleration (G08/G09/G900/G901)
- Path/time-related feed interpolation (G193/G293)
- Selection of planes (G17/G18/G19)
- Mirroring in the plane (G21/G22/G23/G20)
- Mirroring with axis specification (G351)
- Units (G70/G71)
- Implicit subroutine calls (G80–G89/G800..)
- Dimension systems (absolute dimension/incremental dimension) (G90/G91)
- Exact stop (G60/G360/G359)
- Polynomial contouring (G61/G261/G260)
- Corner deceleration
- Zero offsets (G53/G54/...G59)
- Specifying centre point for circle definition (G161/G162)
- Controlling centre point offset in circle (G164/G165)
- Feedforward control (G135/G136/G137)
- Weighting of maximum velocity (G127/ G128)
- Weighting of rapid traverse velocity (G129)
- Parameterising the acceleration profile
- Machining time or feedrate (G93/G94/G95/G194)
- Inserting chamfers and roundings (G301/G302) (#FRC/#CHR/#CHF/#RND)
- Manual mode
- Requesting offset, command and actual values
- Gear change (G112)
- Influence on the look-ahead functionality (G115/G116/G117)
- Override (G166)
- Cycle synchronisation at block end (G66)
- Rotate the coordinate system in the plane (G68/G69)