CNC Machinist Calculator Ultra

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

AddressWhat it does
KWork zone number 1 to 4
SS0 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)

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G20

G22 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucStored stroke check on
Okuma OSPProgrammable travel limit on
Brother SpeedioStored stroke check on
Centroid CNC12 AcornWork 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

App Store Google Play