Skip to content

G66/G67: Modal macro call and cancel

Activates a modal macro call that runs in subsequent blocks until cancelled.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Macros
Machine
Milling, Turning, Mill-turn
Risk
High
Example
G66 P9010 A5. / G67

How to write it on each control

Example
G66 P9010 A5. / G67
Fanuc
G66 P... argumentos / G67

High risk if G67 is forgotten: the macro may continue to run.

Haas—

Requires macros enabled; check compatibility per model.

Parameters

P
Macro executed after each motion block while G66 is active.
L
Repeats.
A … Z
Arguments, with the same variable table as G65.

Machine: Milling, Turning, Mill-turn

Sources

Other codes in Macros

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does G66/G67 mean in a CNC program?

Activates a modal macro call that runs in subsequent blocks until cancelled. In the catalogue it appears as "Modal macro call and cancel", within the Macros family.

How is G66/G67 written on each control?

Fanuc: G66 P... argumentos / G67. The exact syntax depends on the control version and the machine parameters: always confirm with the manufacturer's manual.

Can you give me an example of G66/G67?

G66 P9010 A5. / G67 — Activates a modal macro call that runs in subsequent blocks until cancelled.

Which machines use G66/G67?

G66/G67 is used in: Milling, Turning, Mill-turn.

What should you watch out for with G66/G67?

High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.

Related apps