CNC Machinist Calculator Ultra

Home › G-codes › Swiss (Citizen Star) › G21

G21 Metric input

Swiss (Citizen Star) G-code · Lathe

Sets millimeter units.

Format

G21

Addresses

AddressWhat it does
NoneNo addresses

How it works

Modal, unit group.

Example program

G21 G18 G99 (METRIC, SAFE START)
G00 X14. Z-.5 T0100 (TOOL 1)
G01 Z20. F.05 (TURN)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G20

G21 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucMetric input
Haas NGCMetric programming check
Mazak (EIA)Metric input
Okuma OSPMetric input confirmation
Mitsubishi M70 M80Metric input
Brother SpeedioMetric input
LinuxCNC TormachMillimeter units
Mach3 Mach4Metric units
Centroid CNC12 AcornMetric units
Hurco WinMax (NC)Metric input (ISNC)
FadalCheck for metric setting

Every G-code for Swiss (Citizen Star) in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.

Open G21 in the app All Swiss G-codes

App Store Google Play