More G20 G21 Length Units

RS274/NGC G-code Reference

Length Units — G20 and G21

Program G20 to use inches for length units. Program G21 to use millimeters.

It is usually a good idea to program either G20 or G21 near the beginning of a program before any motion occurs, and not to use either one anywhere else in the program. It is the responsibility of the user to be sure all numbers are appropriate for use with the current length units.

G20 G21 Length Units