G-code reference
G254 G-Code: Dynamic Work Offset (Haas DWO)
Dynamic Work Offset (Haas DWO) — Haas DWO automatically adjusts the work offset when the rotary axes move, so the part does not have to sit exactly on the rotary centre. G255 cancels.
| Property | Value |
|---|---|
| Code | G254 |
| Function | Dynamic Work Offset (Haas DWO) |
| Modal group | 23 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Milling machines |
| Syntax | G254 … G255 |
What does G254 do?
Haas DWO automatically adjusts the work offset when the rotary axes move, so the part does not have to sit exactly on the rotary centre. G255 cancels.
G254 is modal: once programmed it remains in effect for the following blocks until another code from modal group 23 replaces it or the control is reset.
Syntax and parameters
G254 … G255G254 example program
G54 G254
(4/5-axis machining)
G255▶ Open this example in the G-code viewer
Tips and common mistakes
- Cancel DWO before tool changes and at program end.
Controller compatibility
G254 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.