CNC Machinist Calculator Ultra

Home › G-codes › Centroid CNC12 Acorn › G22

G22 Work envelope on

Centroid CNC12 Acorn G-code · Mill and lathe

Turns on a programmed forbidden zone in machine coordinates. A move into it stops the job with an envelope exceeded message and the line number.

Format

G22 X Y Z I J K (mill) or G22 Z X I J (lathe)

Addresses

AddressWhat it does
X Y ZPlus limit on a mill
I J KMinus limit on a mill
Z X I JPlus limits Z and X, minus limits I and J on a lathe

How it works

Modal. Stays on until G23 or end of job.

Example program

G22 X-8. I-32. ; KEEP X OUT OF THE OUTER 8 INCHES
G1 X-6. F20. ; ALLOWED
G23 ; ENVELOPE OFF
G0 X-13. ; NOW ALLOWED

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G23 · G53

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
Fagor 8055 8065Enable or disable work zones

Every G-code for Centroid CNC12 Acorn 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 Centroid CNC12 Acorn G-codes

App Store Google Play