G-code reference
G53.1 G-Code: Tool Axis Direction Control
Tool Axis Direction Control — Used after G68.2 on Fanuc 5-axis machines: positions the rotary axes so the tool axis is perpendicular to the defined tilted working plane.
| Property | Value |
|---|---|
| Code | G53.1 |
| Function | Tool Axis Direction Control |
| Modal group | 00 |
| Type | One-shot (non-modal) — active only in its own block |
| Used on | Milling machines |
| Syntax | G68.2 … G53.1 |
What does G53.1 do?
Used after G68.2 on Fanuc 5-axis machines: positions the rotary axes so the tool axis is perpendicular to the defined tilted working plane.
G53.1 is a one-shot code: it only acts in the block where it is written, and the previously active modal codes take over again afterwards.
Syntax and parameters
G68.2 … G53.1G53.1 example program
G68.2 X0 Y0 Z0 I0 J30.0 K0
G53.1
G00 X0 Y0▶ Open this example in the G-code viewer
Tips and common mistakes
- Check rotary axis solution parameters to avoid unexpected axis flips.
Controller compatibility
G53.1 follows the ISO/Fanuc dialect used by Fanuc, Haas, Brother, Doosan, Hurco (ISO mode), Mazak (EIA/ISO mode), Okuma (G-code mode) and Siemens in ISO dialect mode. Parameters, option packages and builder-specific behaviour can differ, so confirm the details in your machine's programming manual before running a new program.