Home › G-codes › Siemens 840D 828D › DIAM90
DIAM90 Diameter for absolute, radius for incremental
Siemens 840D 828D G-code · Lathe
X is a diameter in G90 and a radius in G91. Makes incremental moves read as real tool movement.
Format
DIAM90
How it works
Modal. Cancel with DIAMON or DIAMOF.
Example program
DIAM90 ; DIAMETER ABSOLUTE, RADIUS INCREMENTAL
G90 G0 X40 Z2 ; 40 MM DIAMETER
G91 G1 X-1 F0.1 ; IN 1 MM IN RADIUS
G90
G90 G0 X40 Z2 ; 40 MM DIAMETER
G91 G1 X-1 F0.1 ; IN 1 MM IN RADIUS
G90
Example is in inch. Check offsets and clearances first.
Watch out for
- With DIAM90, G91 X1 moves the tool 1 mm in radius, which is 2 mm on diameter.
Related codes
Every G-code for Siemens 840D 828D 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 DIAM90 in the app All Siemens 840D 828D G-codes