Home › G-codes › Haas NGC › G172
G172 Diameter programming override
Haas NGC G-code · Lathe
Makes all X values diameter, overriding Setting 285, until G170 or program end.
Format
G172
How it works
Modal, group 20. Cancel with G170, M02 or M30.
Example program
G172 (DIAMETER PROGRAMMING)
G00 X2.1 Z.1 (2.1 DIAMETER)
G170 (CANCEL)
G00 X2.1 Z.1 (2.1 DIAMETER)
G170 (CANCEL)
Example is in inch. Check offsets and clearances first.
Watch out for
- Useful when Setting 285 is set to radius on a shared machine.
Related codes
Every G-code for Haas NGC 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 G172 in the app All Haas NGC G-codes