_units

Read / Write

Current units value from G-code Interpreter.

Units Value
G20 (Inches) 20
G21 (Millimeters) 21

Examples

G00 X0 Y0
#<_units> = 20
G01 X1 ;move X to 1inch
#<_units> = 21
G01 Y20 ;move Y to 20mm