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
| Address | What it does |
|---|---|
X Y Z | Plus limit on a mill |
I J K | Minus limit on a mill |
Z X I J | Plus 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
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
- The limits are stored in the WCS menu under F3 Work Envel.
- Limits are in machine coordinates, not part coordinates.
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 |
| Fagor 8055 8065 | Enable 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