G66 Modal subroutine call
Fadal G-code · Mill
Calls a subroutine after every following move until G67. Used to repeat the same feature at many positions.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G66
How it works
Modal until G67.
Example program
N1 G0 G40 G49 G80 G90 G17 (FORMAT 2 SAFE START)
N2 T2 M6 (1-4 DRILL)
N3 G0 G90 G54 X1. Y1. S2500 M3
N4 G43 H2 Z.1 M8
…
N2 T2 M6 (1-4 DRILL)
N3 G0 G90 G54 X1. Y1. S2500 M3
N4 G43 H2 Z.1 M8
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Cancel with G67 before moving away. Every move calls the sub, rapids too.
- Fadal macros use lines that start with # and V1 to V100 variables. R0 to R9 pass values to the CNC lines.
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 |
| 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 |
Every G-code for Fadal 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 Fadal G-codes