CNC Machinist Calculator Ultra

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

AddressWhat it does
PSubprogram number
LRepeat count
argumentsPassed 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)
…

The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

G65 · G67

G66 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucModal macro call
Mazak (EIA)Macro modal call
Mitsubishi M70 M80Modal macro call A
Brother SpeedioModal macro call
Fagor 8055 8065Irregular pocket canned cycle
Mach3 Mach4Modal macro call, Mach4
FadalModal 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

App Store Google Play