Home › G-codes › Swiss (Citizen Star) › G28
G28 Return to reference point
Swiss (Citizen Star) G-code · Lathe
Sends the named axes home. On Swiss machines it is used mainly at the end of the program and on the sub spindle Z.
Format
G28 U0 W0
Addresses
| Address | What it does |
|---|---|
U W | Incremental via point, use 0 to go straight home |
How it works
One shot.
Example program
G00 X.8 (CLEAR GANG TOOL)
G28 U0 (X HOME)
G28 W0 (HEADSTOCK HOME)
G28 U0 (X HOME)
G28 W0 (HEADSTOCK HOME)
Example is in inch. Check offsets and clearances first.
Watch out for
- G28 W0 on path 1 sends the main headstock home and pulls the bar back. Clear X first.
Related codes
G28 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Return to reference position |
| Haas NGC | Return to machine zero |
| Mazak (EIA) | Reference point return |
| Mitsubishi M70 M80 | Return to reference position |
| Brother Speedio | Return to reference point |
| Heidenhain TNC (ISO) | Mirror image |
| LinuxCNC Tormach | Go to stored position 1 |
| Mach3 Mach4 | Return to home through a point |
| Centroid CNC12 Acorn | Return to reference point 1 |
| Hurco WinMax (NC) | Return to reference point |
| Fadal | Return to zero |
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 G28 in the app All Swiss G-codes