G65: Macro call
Calls a macro program by passing arguments by letters.
For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.
- Family
- Macros
- Machine
- Milling, Turning, Mill-turn
- Risk
- High
- Example
- G65 P9010 A10. B5.
G65 P9010 A10. B5.Parameters
- P
- Número del programa macro (O9010 → P9010).
- L
- Repeticiones de la llamada.
- A B C D … Z
- Argumentos que la macro recibe como variables locales: A=#1, B=#2, C=#3, D=#7, E=#8, F=#9, H=#11, I=#4, J=#5, K=#6, M=#13, Q=#17, R=#18, S=#19, T=#20, U=#21, V=#22, W=#23, X=#24, Y=#25, Z=#26.G, L, N, O y P no se pueden usar como argumento.
Machine: Milling, Turning, Mill-turnRisk: High
Fanuc
G65 P... A... B... C...- Depends on installed macros; variables and arguments can move axes or activate functions.
Haas
G65 P... argumentos- Requires macro option enabled on some models.
Other codes in Macros
Frequently Asked Questions (FAQ)
What does G65 mean in a CNC program?
Calls a macro program by passing arguments by letters. In the catalogue it appears as "Macro call", within the Macros family.
How is G65 written on each control?
Fanuc: G65 P... A... B... C... · Haas: G65 P... argumentos. The exact syntax depends on the control version and the machine parameters: always confirm with the manufacturer's manual.
Can you give me an example of G65?
G65 P9010 A10. B5. — Calls a macro program by passing arguments by letters.
Which machines use G65?
G65 is used in: Milling, Turning, Mill-turn.
What should you watch out for with G65?
High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.
Related tools
CNC G-code Simulator
CNC IDE: editing with G/M tooltips, line inspector, conversion between controls and 2D/3D toolpath.
CNC Alarms Guide
CNC Alarms and Solutions Guide. Enter the error code or symptom to find the cause and how to repair it at the machine.
Calculate cycle time
Estimate CNC turning and milling cycle time from G-code. Calculate parts per hour with a breakdown of cutting, rapids, canned cycles and tool changes.