Function: These commands determine whether the coordinates and axis midpoints are interpreted as absolute values or relative coordinates.
G code |
Description |
G90 |
The coordinates (X/Y/Z/A/B/C/P/Q/U/V/W) are interpreted as absolute values. (This is the default setting.) |
G91 |
The coordinates (X/Y/Z/A/B/C/P/Q/U/V/W) are interpreted as values relative to the current position. |
G98 |
The axis midpoints (I/J/K) are interpreted as absolute values. |
G99 |
The axis midpoints (I/J/K) are interpreted as values relative to the start position. (This is the default setting.) |
Syntax
G90
G91
G98
G99
Examples
Coordinate value as absolute value
The interpolator moves to 10/10 and then to 100/10. The coordinates are interpreted as absolute values.
N0 G90
N10 G1 X10 Y10 F100 (start position)
N20 G1 X100 (next position)
Coordinate value as relative value
The interpolator moves to 10/10 and then to 100/10. The coordinates are interpreted as relative values.
N0 G91
N10 G1 X10 Y10 F100
N20 G1 X100
Coordinate value as absolute value in I/J/K
The midpoint of the semicircle is at 150/0. The coordinates are interpreted as absolute values.
N00 G98
N10 G92 X100 Y0 (start position)
N20 G2 X200 Y0 I150 J0 F100
Coordinate value as relative value in I/J/K
The midpoint of the semicircle is at 150/0. The coordinates are interpreted as relative values.
N00 G99
N10 G92 X100 Y0 (start position)
N20 G2 X200 Y0 I50 J0 F100
See also