# G10 (Set Coordinate System Data)

To set the coordinate values for the origin of a coordinate system, program G10 L2 P X... Y... Z... A..., where the P number must evaluate to an integer in the range 1 to 9 (corresponding to G54 to G59.3), and all axis words are optional. The coordinates of the origin of the coordinate system specified by the P number are reset to the coordinate values given (in terms of the absolute coordinate system). Only those coordinates for which an axis word is included on the line will be reset.

It is an error if:

- the P number does not evaluate as an integer in the range 1 to 9.

If origin offsets (made by G92 to G92.3) were in effect before G10 is used, they will continue to be in effect afterward.

The coordinate system whose origin is set by a G10 command may be active or inactive at the time the G10 is executed.

Example: G10 L2 P1 x 3.5 y 17.2** **sets the origin of the first coordinate system (the one selected by G54) to a point where X is 3.5 and Y is 17.2 (in absolute coordinates). The Z coordinate of the origin (and the coordinates for any rotational axes) are whatever those coordinates of the origin were before the line was executed.

G10 L20 P... X... Y... Z... A...

Set coordinate system given by P number relative to actual machine position. Working is similar to G92. Jog to any position, then apply e.g. G10 L20 P1 X0 Y0 to set G54 coordinate system zero point at the current machine position.