units — Program unitsProgram & flow

Set the length unit for the program (mm or inch).

units mm | inch

Equivalents: 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.

metric program
units mm
g0 x10 y10

See also: defaults

← all commands