Home › G-codes › Mitsubishi M70 M80 › G66
G66 Modal macro call A
Mitsubishi M70 M80 G-code · Mill
Calls the macro after every move block until canceled. Used for drilling a macro at many positions.
Format
G66 P [L] arguments
Addresses
| Address | What it does |
|---|---|
P | Macro program number |
A to Z | Arguments |
How it works
Modal, group 14. Cancel with G67.
Example program
G66 P9200 Z-.5 R.1 F10. (MODAL MACRO ON)
X1. Y1. (HOLE 1)
X2. Y1. (HOLE 2)
G67 (CANCEL)
X1. Y1. (HOLE 1)
X2. Y1. (HOLE 2)
G67 (CANCEL)
Example is in inch. Check offsets and clearances first.
Watch out for
- The macro runs after each move, not after other blocks.
- Mitsubishi also has G66.1, which calls it on every block.
Related codes
G66 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Modal macro call |
| Mazak (EIA) | Macro modal call |
| 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 Mitsubishi M70 M80 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 Mitsubishi M70 M80 G-codes