CNC Machinist Calculator Ultra

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

AddressWhat it does
PMacro program number
A to ZArguments 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)

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
Mitsubishi M70 M80Modal macro call A
Brother SpeedioModal macro call
Fagor 8055 8065Irregular pocket canned cycle
Mach3 Mach4Modal macro call, Mach4
Hurco WinMax (NC)Modal macro call
FadalModal 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

App Store Google Play