G21 – Set Machine Units To Millimetres

This command is used to set machine units to Millimetres. All gcode values after this command will be processed as Millimetres.
G21 is Modal and is a member of Group 6

 

Syntax & Parameters

 

  • G21

 

 

Example program

 

N10 G21

 

The above gcode will set the machine units to Millimetres.