Home › G-codes › Mazak (EIA) › G66
G66 Macro modal call
Mazak (EIA) G-code · Mill and lathe
Calls the macro after every move block until G67. Used to run the same operation at many positions.
Format
G66 P [L] [arguments]
Addresses
| Address | What it does |
|---|---|
P | Macro program number |
A to Z | Arguments passed each time |
How it works
Modal until G67.
Example program
G66 P9200 Z-.25 R.1 F10. (MODAL MACRO ON)
X1. Y1. (MACRO RUNS HERE)
X2. Y1. (AND HERE)
G67 (MODAL MACRO OFF)
X1. Y1. (MACRO RUNS HERE)
X2. Y1. (AND HERE)
G67 (MODAL MACRO OFF)
Example is in inch. Check offsets and clearances first.
Watch out for
- The macro runs after each block with a move. A move you did not want, such as a retract, also triggers it.
- Always end with G67.
Related codes
G66 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Modal macro call |
| Mitsubishi M70 M80 | Modal macro call A |
| Brother Speedio | Modal macro call |
| Fagor 8055 8065 | Irregular pocket canned cycle |
| Mach3 Mach4 | Modal macro call, Mach4 |
| Hurco WinMax (NC) | Modal macro call |
| Fadal | Modal subroutine call |
Every G-code for Mazak (EIA) 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 G66 in the app All Mazak G-codes