Home › G-codes › Hurco WinMax (NC) › G66
G66 Modal macro call
Hurco WinMax (NC) G-code · Mill
Calls a subprogram after every move block until G67. Put the work at each location in the subprogram.
Format
G66 P L [arguments]
Addresses
| Address | What it does |
|---|---|
P | Subprogram number |
L | Repeat count |
arguments | Passed to local variables as in G65 |
How it works
Modal, group 12. Cancel with G67.
Example program
G90 G00 X0. Y0. Z0. (START)
X5. (FIRST POINT)
G66 P6010 I1. J1.5 (BOX AT EACH MOVE)
Y-3. (BOX HERE)
…
X5. (FIRST POINT)
G66 P6010 I1. J1.5 (BOX AT EACH MOVE)
Y-3. (BOX HERE)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Moves inside the modal subprogram do not call it again.
- Only one modal subprogram can be on at a time, including a modal user G code.
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 |
| Fadal | Modal subroutine call |
Every G-code for Hurco WinMax (NC) 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 Hurco WinMax G-codes