G21 – Set Machine Units To Millimetres

The G21 command is used to set the machine units to millimetres.


All G-code values that follow this command will be interpreted as millimetres.

 

G21 is a modal command and belongs to Group 6.

 


Syntax & Parameters

 

G21

 


Example Program

 

N10 G21

 

Explanation:
This command sets the machine units to millimetres.