Home › G-codes › Swiss (Citizen Star) › G65
G65 Macro call
Swiss (Citizen Star) G-code · Lathe
Calls a custom macro program once and passes arguments. Citizen and Star both run some of their own cycles as macros.
Format
G65 P L [arguments]
Addresses
| Address | What it does |
|---|---|
P | Program number to call |
L | Repeat count |
A to Z | Arguments passed as local variables |
How it works
One shot.
Example program
G65 P9100 A.375 B.5 (CALL MACRO WITH ARGUMENTS)
G00 X.6 (CLEAR AFTER RETURN)
M99 (END OF MACRO, IN THE MACRO)
G00 X.6 (CLEAR AFTER RETURN)
M99 (END OF MACRO, IN THE MACRO)
Example is in inch. Check offsets and clearances first.
Watch out for
- Builder macros in the 8000 and 9000 range are often locked. Do not edit them.
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 |
| Centroid CNC12 Acorn | Macro call with arguments |
| Hurco WinMax (NC) | Macro call with arguments |
Every G-code for Swiss (Citizen Star) 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 Swiss G-codes