Home › G-codes › Fagor 8055 8065 › G22
G22 Enable or disable work zones
Fagor 8055 8065 G-code · Mill and lathe
Turns a work zone on or off. S0 off, S1 no entry zone, S2 no exit zone. Limits come from G20 and G21.
Format
G22 K S
Addresses
| Address | What it does |
|---|---|
K | Work zone number 1 to 4 |
S | S0 off, S1 no entry, S2 no exit |
How it works
Modal. All zones are off at power up, but the limits are kept.
Example program
G20 K2 X0 Z0 (ZONE 2 LOWER LIMITS)
G21 K2 X2.0 Z1.0 (ZONE 2 UPPER LIMITS)
G22 K2 S1 (NO ENTRY ZONE AROUND CHUCK)
G22 K2 S0 (ZONE 2 OFF)
G21 K2 X2.0 Z1.0 (ZONE 2 UPPER LIMITS)
G22 K2 S1 (NO ENTRY ZONE AROUND CHUCK)
G22 K2 S0 (ZONE 2 OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- The control uses tool dimensions so the tool does not cross the limit.
- Good protection for chucks, vises and fixtures.
Related codes
G22 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Stored stroke check on |
| Okuma OSP | Programmable travel limit on |
| Brother Speedio | Stored stroke check on |
| Centroid CNC12 Acorn | Work envelope on |
Every G-code for Fagor 8055 8065 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 G22 in the app All Fagor 8055 8065 G-codes