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
| Address | What it does |
|---|---|
P | Macro number, file Onnnn.cnc |
L | Repeat count |
A to Z | Arguments, 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
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
- The file name needs a capital O, leading zeros and a lowercase .cnc, for example O0002.cnc.
- Programs 9100 to 9999 can be embedded in the main file between O9xxx and M99. They must come before the call.
- I J K can repeat up to 10 sets in one call.
Related codes
G65 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Macro call |
| Haas NGC | Macro subprogram call |
| Mazak (EIA) | Macro call, single |
| Okuma OSP | Droop control on |
| Mitsubishi M70 M80 | Macro call |
| Brother Speedio | Macro call |
| Mach3 Mach4 | Macro 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