INTUWIZ                    Intuitive Wizard
   Bookmark and Share    CNC G-codes.G21 command - Programming in millimeters (mm)                                                               

 

G21 command sets distance unit to millimeters (mm).

G21 command is modal.

G21 is included in the modal group 6 (Units) ( G20, G21).

Example for CNC (G-code) G21 command:  

G21; Input in millimeters (mm)

 

A table for quickly converting lengths in millimeters to inches (inches are recorded as fractions). 

Millimeters (mm) Inches (in)
3,175 1/8"
4,762 3/16"
6,35 1/4"
7,938 5/16"
9,525 3/8"
12,7 1/2"
15,505 5/8"
19,05 3/4"
22,225 7/8"
25,4 1"
31,75 1 1/4"
38,1 1 1/2"
44,45 1 3/4"
50,8 2"
57,15 2 1/4"
63,5 2 1/2"
69,85 2 3/4"
76,2 3"
82,55 3 1/4"
88,9 3 1/2"
101,6 4"
114,3 4 1/2"
127 5"
139,7 5 1/2"
152,4 6"
165,1 6 1/2"
177,8 7"
190,5 7 1/2"
203,2 8"
215,9 8 1/2"
228,6 9"
241,3 9 1/2"
254 10"

 

Generate a G-Code toolpath for a various  details

 

Back to list of CNC G Codes and CNC M-codes

 

Copyright © Intuwiz  Software 2023 All Righs Reserved.
Home | Articles | G21 command - Programming in millimeters (mm)