CNC Machinist Calculator Ultra

Home › G-codes › Haas NGC › G65

G65 Macro subprogram call

Haas NGC G-code · Mill, Lathe

On mills: Macro subprogram call

Calls a macro subprogram and passes letter arguments into local variables. Needs the macro option.

Format

G65 P [L] [A B C ...]

Addresses

AddressWhat it does
PProgram number to call
LNumber of times to repeat
A to ZArguments passed to local variables 1 to 26

How it works

Non-modal, group 00.

Example program

G90 G54 G00 X1. Y1. (POSITION)
G65 P9010 A.5 B.25 (CALL MACRO 9010 WITH A AND B VALUES)
G00 Z1. (RETRACT)

Example is in inch. Check offsets and clearances first.

Watch out for

On lathes: Macro subprogram call

Calls a macro program and passes argument values to it. L repeats the call. Needs the macro option.

Format

G65 P [L] [arguments]

Addresses

AddressWhat it does
PProgram number to call
LRepeat count
A to ZArguments passed to local variables

How it works

Non-modal, group 00.

Example program

(CALL GROOVE MACRO O9010 WITH ARGUMENTS)
G65 P9010 X1.5 Z-.75 W.125 (X DIA, Z LOCATION, W WIDTH)
M30 (END PROGRAM)

Example is in inch. Check offsets and clearances first.

Watch out for

G65 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucMacro 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
Swiss (Citizen Star)Macro call

Every G-code for Haas NGC 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 Haas NGC G-codes

App Store Google Play