Home › G-codes › LinuxCNC Tormach › G58
G58 Work coordinate system 5
LinuxCNC Tormach G-code · Mill and lathe
Selects work coordinate system 5 of 9. All following positions are measured from its origin.
Format
G58
Addresses
| Address | What it does |
|---|---|
none | No words |
How it works
Modal, coordinate system group.
Example program
G20 G17 G40 G49 G80 G90 G94 (INCH, SAFE START)
T1 M6 G43
G58 (WORK SYSTEM 5)
S3000 M3
…
T1 M6 G43
G58 (WORK SYSTEM 5)
S3000 M3
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- LinuxCNC has nine work systems, G54 to G59.3. Values are saved in the var file.
- Set it with touch off, G10 L2 P5 or G10 L20 P5.
Related codes
G58 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Work coordinate system 5 |
| Haas NGC | Work offset 5 select |
| Mach3 Mach4 | Work offset 5 |
| Centroid CNC12 Acorn | Work coordinate system 5 |
| Hurco WinMax (NC) | Work coordinate system 5 |
| Fadal | Fixture offset 5, same as E5 |
Every G-code for LinuxCNC Tormach 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 G58 in the app All LinuxCNC Tormach G-codes