G-code reference
G26 G-Code: Spindle Speed Fluctuation Detection On
Spindle Speed Fluctuation Detection On — Fanuc lathe function that raises an alarm if the actual spindle speed deviates from the commanded speed by more than a set ratio — useful to detect a slipping…
| Property | Value |
|---|---|
| Code | G26 |
| Function | Spindle Speed Fluctuation Detection On |
| Modal group | 08 |
| Type | Modal — stays active until replaced by another code of the same group |
| Used on | Lathes |
| Syntax | G26 P_ Q_ R_ I_ |
What does G26 do?
Fanuc lathe function that raises an alarm if the actual spindle speed deviates from the commanded speed by more than a set ratio — useful to detect a slipping belt or stalled spindle during heavy cuts.
G26 is modal: once programmed it remains in effect for the following blocks until another code from modal group 08 replaces it or the control is reset.
Syntax and parameters
G26 P_ Q_ R_ I_| Address | Meaning |
|---|---|
P | Time before checking after a speed change |
Q | Allowed ratio |
R | Fluctuation ratio |
I | Allowed speed width |
G26 example program
G26 P1000 Q10 R20 I50▶ Open this example in the G-code viewer
Tips and common mistakes
- Values and units are parameter dependent; see the Fanuc operator manual.
Controller compatibility
G26 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.