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…

By cnccode · Updated
PropertyValue
CodeG26
FunctionSpindle Speed Fluctuation Detection On
Modal group08
TypeModal — stays active until replaced by another code of the same group
Used onLathes
SyntaxG26 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

Format
G26 P_ Q_ R_ I_
AddressMeaning
PTime before checking after a speed change
QAllowed ratio
RFluctuation ratio
IAllowed speed width

G26 example program

Example
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.

Frequently asked questions

Is G26 modal?
Yes. G26 belongs to modal group 08 and stays active until another code of that group is programmed.
What does G26 mean in CNC?
G26 means 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 belt or stalled spindle during heavy cuts.
What is the difference between G26 and G25?
G26 is Spindle Speed Fluctuation Detection On, while G25 is Spindle Speed Fluctuation Detection Off. See the G25 page for its syntax and examples.
Can I use G26 on a mill?
Usually not with the same meaning: G26 is documented here for lathes. Check your control manual for the equivalent.