LENGTH UNITS (G20 AND G21)
To set length units to inches, program: G20
To set length units to millimeters, program: G21
Tip! Program either G20 or G21 near the beginning of a program, before any motion occurs. Avoid using either one anywhere else in the program. It’s your responsibility to make sure that all numbers are appropriate for use with the current length units.