CNC Machinist Calculator Ultra

Home › G-codes › Centroid CNC12 Acorn › G65

G65 Macro call with arguments

Centroid CNC12 Acorn G-code · Mill and lathe

Calls a macro program and passes letter arguments to it. Inside the macro read them as #A, #B or #1, #2 and so on.

Format

G65 P or "FILE" [L] [arguments]

Addresses

AddressWhat it does
PMacro number, file Onnnn.cnc
LRepeat count
A to ZArguments, not G L N O or P

How it works

One shot.

Example program

G90 G0 X1. Y1. Z.1 ; FIRST NOTCH
G65 P0002 L1 Y1. Z.25 ; CALL MACRO O0002 WITH Y AND Z
G90 G0 X2.5 Y1. ; SECOND NOTCH
G65 P0002 L1 Y1.5 Z.5 ; DEEPER NOTCH

Example is in inch. Check offsets and clearances first.

Watch out for

Related codes

M98 · M99

G65 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucMacro call
Haas NGCMacro subprogram call
Mazak (EIA)Macro call, single
Okuma OSPDroop control on
Mitsubishi M70 M80Macro call
Brother SpeedioMacro call
Mach3 Mach4Macro call, Mach4
Hurco WinMax (NC)Macro call with arguments
Swiss (Citizen Star)Macro call

Every G-code for Centroid CNC12 Acorn 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 G65 in the app All Centroid CNC12 Acorn G-codes

App Store Google Play