units — Program unitsProgram & flow
Set the length unit for the program (mm or inch).
units mm | inchEquivalents: Fanuc G20/G21 · Siemens G70/G71
Declares how bare numbers in the program are interpreted. The controller computes in **millimetres internally**; `units inch` only converts authored values at lowering time, so mixing is unambiguous. Put it first in the program.
units mm
g0 x10 y10See also: defaults