G10 L2: Set the Origin Offset
G10 L2 P- <axes R->
- P – coordinate system (0-9);
- R – angle of rotation around the Z axis).
The G10 L2 command changes the offset of the specified coordinate system to a value specified by the axis parameters. The offset is counted from the machine zero set in the base search process. An offset replaces the current offset valid for the specified coordinate system. The offset on axes that are not specified will not be changed.
Use parameters P0 to P9 to indicate which coordinate system to change.
Parameter P | Coordinate system | G-code |
---|---|---|
0 | Current | - |
1 | 1 | G54 |
2 | 2 | G55 |
3 | 3 | G56 |
4 | 4 | G57 |
5 | 5 | G58 |
6 | 6 | G59 |
7 | 7 | G59.1 |
8 | 8 | G59.2 |
9 | 9 | G59.3 |
Optionally, you can use the R parameter to specify the rotation of the XY axes around the Z axis. The direction of rotation is counterclockwise relative to the positive direction of the Z axis.
The incremental positioning mode G91 does not affect the G10 L2 command.
In this example, the origin for the first coordinate system is set to X = 3.5 and Y = 17.2. Since only the X and Y axes are indicated, the origin is shifted along these axes, other coordinates are not changed.
In the above example, the XYZ coordinates of the origin of system 1 are set to zero.