
axismd.ai
Siemens SINUMERIK Controller
Spindle · Intermediate · 30-120 minutes
Siemens 22051 - Block spindle reference mark not found
Alarm 22051 indicates the spindle reference mark was not detected within the maximum search distance defined in MD 34060 REFP_MAX_MARKER_DIST during SPOS/SPOSA positioning commands. This occurs when the spindle encoder or proximity sensor fails to provide the reference signal, or the search distance parameter is misconfigured for the actual machine geometry.
Siemens 22051 - Block spindle reference mark not found
Block spindle reference mark not found
When referencing, the spindle turned through a greater distance than given in the axis-specific MD34060 $MA_REFP_MAX_MARKER_DIST, without receiving a reference mark signal. The check is performed for spindle positioning with SPOS or SPOSA when the spindle has not previously run with speed control (S=.) Control reaction: NC Start disable in this channel. Interface signals are set. Alarm display. NC Stop on alarm.
Root Cause Summary
Alarm 22051 indicates the spindle reference mark was not detected within the maximum search distance defined in MD 34060 REFP_MAX_MARKER_DIST during SPOS/SPOSA positioning commands. This occurs when the spindle encoder or proximity sensor fails to provide the reference signal, or the search distance parameter is misconfigured for the actual machine geometry.
Safety
Causes and Fixes
Access Diagnostics > Spindle > Reference Mark Signals in SINUMERIK HMI and monitor the digital input state during manual spindle rotation. Verify the sensor output toggles as the reference mark passes the sensor head.
Ensure spindle is at zero speed and secure before manual rotation.
Check physical alignment of the reference mark sensor using a feeler gauge (typically 1-2mm gap). Compare against machine manual specifications and re-seat connector at spindle control cabinet.
Verify sensor wiring assignment in NCK > Parameter > Axis-Specific > Spindle %2 > Reference Mark Input and confirm correct I/O address maps to active sensor channel.
If sensor is confirmed faulty, replace with equivalent part (e.g., Siemens 6FX2 series proximity switch) and recalibrate sensor gap according to OEM documentation.
Seeing Multiple Alarms?
Seeing another alarm with this one? Enter the code.
AxisMD logs alarms against your actual machines, tracks patterns, and gives AI context your manual doesn't have.
Start freeWas this guide helpful?
Always verify with your machine manual or a certified technician before performing service procedures.