CNCezPRO™ Software

Real-Time 3D Graphics Simulation for Computer Numerical Control



G21 METRIC OR SI UNITS
N_ G21
The G21 command defaults the system to metric units. When a program is being run and the G21 command is encountered, all coordinates are stated as millimeter units. This command is usually found at the beginning of a program. However, it can be used to switch between metric and inch units in the middle of a program.
Example G21
% (PROGRAM START FLAG)
:1021
N5 G90 G21 G40
N15 T0303
N17 M03
N20 G00 Z2 M08
N25 X45
N30 G01 Z-50 F1
N35 X40
N40 Z2
N45 X35
N50 Z-25
N55 X30
N60 Z-10
N65 G00 X100 M09
N70 Z100
N75 T0300 M05
N80 M02