4.10.2 G20/G21: Programming in Imperial/Metric


The unit of coordinate or displacement in the program can be metric or Inch. The unit that is retained when the power is turned off is the default unit. In the program, G20 or G21 needs to specify the unit to be selected in the first line of the program. Once it is set, it cannot be changed in the program; this state can also be changed by the first line of the program or the single line input command from MDI. The range of valid units is as follows:



When the 1 μm option is in effect

Inch

0.0001 ~ 999.9999 inch

Metric

0.001 ~ 9999.999 mm


Note:

After G20/G21 is specified in the first line of the program, if you want to execute the program repeatedly with the M99 command at the end of the program, an error message will pop up.