Q&A · G-code & programming

How do I use G10 to set work offsets in a program?

Frequently asked · G-code & programming · Dec 1, 2026

1 answer

✔ Expert answer cnccode

G90 G10 L2 P1 X-300.0 Y-200.0 Z-400.0 writes those machine coordinates into G54 (P1 = G54 … P6 = G59). Use L20 for the extended offsets. In incremental mode (G91) the values are added to the existing offset.

Your answer

Be kind and specific. No advertising. See the guidelines.