Home › G-codes › Siemens 808D ISO › G20
G20 Inch input
Siemens 808D ISO G-code · Mill, Lathe
On mills: Inch input
Switches input to inch. Program values, offsets and some parameters and readouts are in inches after it.
Format
How it works
Modal, group 6. Power on default set in MD20154 EXTERN_GCODE_RESET_VALUES[5].
Example program
G17 G40 G49 G80 G90 (SAFE START)
G54 G00 X1. Y1. (POSITION IN INCHES)
Example is in inch. Check offsets and clearances first.
Watch out for
- Program it at the start of a block with nothing else in it.
- Before switching mid program, cancel G41 to G44 and the work offset. After switching, set the coordinate system with G92 before moving.
- It does not change handwheel or jog increments. The PLC sets those.
On lathes: Inch input
Positions, arc data, thread lead and the programmable offset are read in inch. Feeds, tool offsets and settable work offsets stay in the machine base unit.
Format
How it works
Modal, G group 06.
Example program
G00 X3.0 Z0.1 (APPROACH IN INCH)
G01 Z-1.0 F0.008 (NEW FEED AFTER THE SWITCH)
Example is in inch. Check offsets and clearances first.
Watch out for
- G20 must be at the start of the block with no other command in it.
- Feeds, tool offsets and work offsets are read in the base system of MD10240, not changed by G20. Program a new F after the switch.
- In G code system C this code is G70.
Related codes
G20 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Inch input |
| Haas NGC | Inch programming check |
| Mazak (EIA) | Inch input |
| Okuma OSP | Inch input confirmation |
| Mitsubishi M70 M80 | Inch input |
| Brother Speedio | Inch input |
| Fagor 8055 8065 | Lower work zone limits (8055) |
| LinuxCNC Tormach | Inch units |
| Mach3 Mach4 | Inch units |
| Centroid CNC12 Acorn | Inch units |
| Hurco WinMax (NC) | Inch input (ISNC) |
| Fadal | Check for inch setting |
| Swiss (Citizen Star) | Inch input |
Every G-code for Siemens 808D ISO 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 G20 in the app All Siemens 808D ISO G-codes