CNC Machinist Calculator Ultra

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

AddressWhat it does
PProgram number to call
LRepeat count
A to ZArguments 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)

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
Centroid CNC12 AcornMacro 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

App Store Google Play