G28 is one of the most misunderstood commands in CNC programming. It looks simple — return the machine to home position. However, thousands of crashes happen every year because operators and programmers misunderstand how G28 actually moves the machine.
This guide explains why G28 causes unexpected collisions and how professionals use it safely.
────────────────────────────────────────
1) What G28 Really Does
────────────────────────────────────────
G28 sends the machine to machine zero.
But not directly.
It first moves to an intermediate position.
Example:
G28 X0 Y0 Z0
Machine moves toward programmed intermediate point before traveling home.
If that point is unsafe — collision occurs.
────────────────────────────────────────
2) The Classic G28 Crash
────────────────────────────────────────
Program:
G28 Z0
Machine moves downward first because current coordinate system is different.
Fixture destroyed instantly.
Many operators expect vertical retract.
Machine follows coordinate math instead.
────────────────────────────────────────
3) The Professional Method (G91 Trick)
────────────────────────────────────────
Safe pattern:
G91 G28 Z0
Incremental mode forces immediate retract.
Machine lifts safely before homing.
This is widely used in production environments.
────────────────────────────────────────
4) Restart Danger
────────────────────────────────────────
Restart mid-program:
Machine state unknown.
G28 executed unexpectedly.
Rapid motion into clamps.
Always rebuild modal state before G28.
────────────────────────────────────────
5) Rotary Axis Risk
────────────────────────────────────────
4th or 5th axis active.
G28 rotates unexpectedly during return.
Fixture interference possible.
Cancel transforms before homing.
────────────────────────────────────────
6) Why Elite Shops Avoid Blind G28 Use
────────────────────────────────────────
Modern practice:
Use predefined safe park positions.
Avoid automatic homing during cutting sequences.
Predictability equals safety.
────────────────────────────────────────
7) Final Takeaway
────────────────────────────────────────
G28 is not dangerous.
Unknown intermediate motion is.
Control intermediate position — control safety.
Leave a comment