SINUMERIK 840C Error 300504: Spindle Encoder Fault Diagnostics

David Krause16 min read
Motor ControlSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Problem Details

SINUMERIK 840C controller raises alarm 300504 with the expanded text "Axis %1 drive %2 measuring circuit error of motor measuring system." On the affected machine the alarm fires intermittently on a SIMODRIVE 611D-driven spindle axis: the axis runs for between 10 minutes and roughly 3 hours after a main-power OFF / ON, after which the controller drops the drive with alarm 300504. A pre-emptive swap of the encoder signal cable and the measuring-card side of the SIMODRIVE 611D did not change the failure pattern. The motor catalog data filed with the original posting is:

  • Drive system: SIMODRIVE 611D, control card 6SN1118-0DG23-0AA1 (2-axis variant, -DG23 performance class).
  • Spindle motor: 1PH4107-4NF56-Z — three-phase water-cooled AC servo / spindle motor, 14 kW continuous, 1500 rpm rated speed, 90 Nm, IP65 housing, IP55 shaft gland, encoder 1 VPP 2048 incr/rev.
  • Motor power cable: 6FX5002-2CA31-1CA0.
  • Encoder signal cable: replaced prior to first post; symptom unchanged.

Because the text "measuring circuit error" is ambiguous between encoder, cable, evaluation card, and motor-side shaft sensor, the symptom pattern (heat-correlated intermittent 10 min – 3 h) is the dominant diagnostic clue and is the focus of the procedure below.

Safety. SIMODRIVE 611D DC-link energy is retained after main-power OFF. Verify DC-link discharge (status LEDs on the NE module or a voltmeter on P600 / M600) before opening the cabinet. The 1PH motor cooling circuit must be depressurized and bled before motor-side fitting work. Refer to the SINUMERIK 840C Diagnostics Manual and the SIMODRIVE 611D Commissioning Manual on the Siemens Industry Online Support portal for the full lock-out sequence.

Affected System Identification

The SINUMERIK 840C is paired with a SIMODRIVE 611D digital drive rack (NE module + I/RF module + motor power modules + control cards). Each control card processes the position / velocity loop on one or two axes. The 6SN1118-0DG23-0AA1 is a 2-axis variant that accepts 1 VPP sinusoidal encoders directly on connector X411 / X412, with motor-side power connector X141 / X142. Motor 1PH4107-4NF56-Z is from the 1PH4 water-cooled family, and option Z here aggregates K00 (radial mounting), K04 (1 VPP 2048 encoder), K18 (standard direction of rotation), and K42 (water cooling jacket variant).

Fault-system identification
Component Catalog / Order Number Role on alarm 300504
CNC SINUMERIK 840C Alarm source, NC MD owner, HMI display
Drive bus SIMODRIVE 611D backplane (NE + I/RF) Carries axis commands to the control card
Control card 6SN1118-0DG23-0AA1 Evaluates 1 VPP encoder signals; raises 300504 on plausibility violation
Motor 1PH4107-4NF56-Z (option K00+K04+K18+K42) Carrier of the encoder rotor / shaft assembly
Encoder 1 VPP 2048 incr / rev (integrated) Direct source of position / commutation signals
Power cable 6FX5002-2CA31-1CA0 Carries motor power; encoder cable is separate

Alarm 300504 Definition and Clearing Behavior

Alarm 300504 in the 840C alarm list groups under the SIMODRIVE 611D measuring-system class. The %1 placeholder contains the logical axis name (e.g. SP1 or AX1), %2 the drive number (drive 1 / drive 2 on the 611D card slot). The text indicates a violation inside the motor measuring circuit — important because SIMODRIVE 611D supports both a motor (direct) and a machine (load-side) measuring system per axis; alarm 300504 belongs to the motor side, not the load-side encoder.

Clearing is by NC reset once the offending period has lapsed, but if the underlying fault is permanent the alarm returns as soon as the next plausibility check fails. With this symptom set the alarm is always intermittent for the first diagnosis attempts; persistent on every cold cycle indicates the offending component has now fully failed, which narrows the search substantially.

Side-effects on latching. When 300504 latches, the drive is disabled (pulse inhibit, ramp-down by the 611D controller). Output DB 31-48.DBX93.7 (axis/spindle control word, follow-up mode) clears. The spindle must be re-referenced (G74) and the encoder angle shift re-verified after any component swap that changes the mechanical relationship between motor shaft and encoder rotor.

Root Cause Analysis

Three failure families generate the same alarm text. Distinguishing them requires looking at how the alarm appears, not just at the text.

Heat-Correlated Fault Pattern

The reported cadence — fault after 10 min on cold start, sometimes 30 min, sometimes 2 – 3 hours — is classic for thermal creep of one of these three things:

  • 1PH spindle bearing race. As the bearing warms, radial play reduces but minor surface flaws become intermittent electrical noise sources. A failing bearing can also be sensed indirectly through slip-stick on the encoder coupling.
  • 1PH rotor-encoder mechanical coupling. 1PH4 encoder mountings typically use a torsion-spring or friction coupling between the rotor stub and the encoder shaft. Heat relaxes this coupling until the encoder "floats", producing sine / cosine glitches on the 1 VPP signals, which then trigger alarm 300504.
  • Encoder electronics inside the 1PH motor. The encoder interface IC drifts with temperature, producing out-of-spec 1 VPP amplitudes and triggering 611D plausibility checks.

Cold-to-Hot Cadence Interpretation

Mapping the symptoms to the most probable root cause:

Symptom-to-cause mapping
Time to fault after cold start Likely subsystem Confirm by
≤ 5 min Cable or connector — unaffected by heat, fault is from the start Check shield termination and pin assignment against the wiring diagram
10 – 30 min Encoder electronics / encoder-cable dielectric Inspect cable insulation resistance; monitor 1 VPP amplitude on oscilloscope
1 – 3 hours Bearing or mechanical coupling / motor-side heat soak Tap-test while hot, run unloaded, monitor vibration
Persistent within 5 min on every start Fully failed component (encoder, cable break, card input stage) Measure encoder signals; replace card input section

Other Causes That Produce 300504

  • Shield / ground loop. Long encoder-cable runs on 1 VPP are vulnerable to common-mode noise. A missing 360° backshell on the Sub-D housing or a single-ended shield at the cabinet end produces 50 / 60 Hz ripple that exceeds the 611D's velocity window.
  • DC-link ripple coupling. A failing I/RF module boosts DC-link ripple above 80 VPP; the resulting in-rush heats the encoder interface card and produces thermal intermittent faults occasionally mislabeled as encoder errors.
  • NC MD setting. Wrong measuring-system selection (motor vs. load) or wrong encoder resolution in MD 302* of the 840C forces the 611D to interpret the count stream incorrectly, surfacing as plausibility violations rather than 300504 directly but sometimes misread in the field.

Heuristic: Mechanical vs. Electronic Encoder Fault

Use this rule on a 611D that is dropping with 300504 hot:

  1. Run the motor unloaded at zero speed (torque-controlled, position regulator disabled: servo enable + 0% velocity command).
  2. Monitor the actual-position window in the 611D Service Display — typically an oscilloscope trace or the DrivesService trace page.
  3. If the trace shows a periodic jitter at the encoder shaft frequency (every rotation, a glitch), the source is mechanical (bearing, coupling).
  4. If the trace shows random spikes that worsen with heat, the source is electronic (encoder electronics or cable).

The above is decisive for parts-replacement planning: a mechanical source makes motor replacement more cost-effective than encoder-only swap; a clean electronic source makes card or cable replacement more attractive than motor swap.

Diagnostic Procedure (Easy → Hard)

The conventional service flow on a 300504 is to proceed from low-effort inspection to component swap in this order:

Alarm 300504 1. Water cooling checkfree — confirm before swap 2. Cable & shield inspectfree — 360° backshell check 3. Oscilloscope probe1 VPP warm vs cold 4. Replace encoder cable6FX5*0* — already attempted 5. Replace 611D card6SN1118-0DG23-0AA1 6. Open motor, inspectbearing + coupling 7. Replace motorre-set angle offset MD Easy → Hard. Free diagnostics should not be skipped despite prior hardware swaps.
  1. Inspect wiring / shielding on the encoder cable (no cost).
  2. Verify water cooling on water-cooled 1PH motors (no cost).
  3. Replace encoder cable with a Siemens pre-fabricated lead (6FX5*0* series — confirm length and revision against the wiring diagram already shipped in the cabinet).
  4. Replace the 611D control card (6SN1118-0DG23-0AA1 in this case). Confirm the firmware and address-switch settings match the old card.
  5. Open / replace the motor (last step). For 1PH4107-4NF56-Z, after motor replacement the spindle encoder angle shift must be re-established.

Items 1 and 2 are diagnostic moves, not repair moves. Item 3 was already attempted by the original poster without effect, which redistributes probability mass toward items 4 (card) and 5 (motor). Opening the motor to check encoder and bearing is the correct next step given that the cable swap cleared nothing.

Stage 1 — Water Cooling Verification (1PH4107 Motors)

The 1PH4107-4NF56-Z is water-cooled. Its continuous torque envelope depends on a coolant flow and inlet temperature within the rated envelope. If cooling degrades, the encoder sub-frame reaches elevated temperature within minutes of running, even at modest load — directly producing the symptom pattern reported.

Chiller inlet ≤30 °C Filter Flowmeter 1PH4107 motor cooling jacket housing ≤85 °C Pressure Thermocouple Coolant flow direction (arrowheads → motor → return).

Cooling Circuit Checklist

  • Inlet temperature ≤ 30 °C (recommended, depending on chiller set-point and ambient).
  • Flow ≥ 8 l / min at rated pressure (refer to the motor type plate and the cooling rating).
  • Filter clean; no air binding; no kinked or trapped hoses.
  • Coolant pH 7 – 9 (water + corrosion inhibitor; plain water corrodes the housing).
  • No leakage at the motor-side fittings; check the gland.

Inline Diagnostic Procedure

1. Install a thermocouple on the motor housing at the encoder-bearing end (NDE).
2. Start spindle at 1500 rpm under 50% load.
3. Log housing temperature every 5 min.
4. Expected housing temperature after 30 min steady-state: 60 – 75 °C.
5. If housing exceeds 85 °C with normal inlet temp, suspect internal blockage
   or failing flow. Cross-check inlet/outlet ΔT against rated heat dissipation
   (for a 14 kW, η ≈ 0.88 motor, heat to jacket ≈ 1.7 kW; ΔT ≈ 4 – 8 °C
   through the cooling jacket at the rated flow).
Why this matters for 300504. A 1PH motor heated above its rated housing temperature is using the encoder sub-frame as a passive heat sink. The thermal stress accelerates bearing failure and degrades the encoder electronics. Many operators replace the encoder only to see the same failure weeks later — because cooling was the root cause. Always verify cooling before opening the motor.

Stage 2 — Encoder Mechanical Coupling Inspection

The 1PH4107 motor encoder is mounted on the shaft-end via an internal flexible coupling. Field-reported causes include a half-broken coupling producing the same intermittent 300504 when hot:

  • Encoder rotor slipping on the shaft stub (torsion-spring coupling relaxed by heat).
  • Coupling rubber spider split (visible only after partial motor teardown).
  • Encoder mounting flange off-square (produces preload on bearing).

Mechanical Inspection Procedure (motor off, locked-out)

  1. Lock-out tag-out the main breaker; verify DC-link discharge on the 611D rack.
  2. Depressurize and bleed the cooling circuit.
  3. Remove the encoder cover at the non-drive end (NDE) of the motor.
  4. Inspect the coupling for cracks, gaps, or any visible slip.
  5. Manually rotate the motor shaft 2 – 3 full turns at the drive-end (DE) coupling using a wrench on the rotor-stub flats. Watch for any encoder-coupling slip — even 0.1 mm rotational play is significant at 2048 incr/rev.
  6. Check bearing end-play with a dial indicator: ≤ 0.05 mm radial, ≤ 0.10 mm axial.
  7. Spin the shaft by hand; listen for grittiness in the bearing (acoustic "sandpaper" feel).

When to Replace the Bearing Set

  • Radial play > 0.05 mm.
  • Audible bearing rumble at any speed.
  • Visible raceway scoring on the inner or outer race.
  • Shaft roughness ≥ Ra 0.8 µm where the encoder rotor rides.

Because the original poster has now opted to repair the motor (open it up and check encoder and bearing), replacing the bearing set in the same intervention is high-yield. Use OEM bearings for 1PH motors; aftermarket equivalents must match the C3 radial play specification.

Stage 3 — Encoder Cable and Shielding

Cable 6FX5002-2CA31-1CA0 is the power lead; the encoder cable is a separate 6FX5*0* series signal cable (also termed speed-sensor cable in some Siemens literature). Confirm the signal cable:

  • Continuous shield from motor-side Sub-D to cabinet-side connector.
  • Both ends terminated 360° to the Sub-D backshell, not a pigtail.
  • Separate from power cable runs; no shared conduit with VFD or contactor outputs.
  • No strain on the motor-side gland; no rubbing against a rotating element.

Signal Quality Test (with motor running)

  1. Use a differential oscilloscope probe on the 1 VPP sine / cosine pair at the 611D card terminal block (test points are usually accessible behind the front cover of the control card).
  2. Run the motor at 1500 rpm unloaded; observe waveform amplitude and noise.
  3. Acceptable amplitude: 0.6 – 1.2 VPP at the controller end. Sub-0.6 VPP with noise > 20% of signal is borderline.
  4. Run motor to its rated speed, dwell for 30 min; re-check waveform. If amplitude drops more than 10% hot vs cold, the cable or connector is failing thermally.

Stage 4 — SIMODRIVE 611D Control Card

The card 6SN1118-0DG23-0AA1 contains the encoder-input stage and the position / velocity controller for two axes. A failing input stage will pass some signals but reject under thermal stress. Replacement procedure:

  1. Record all dip-switch / address settings from the old card (drive number, axis number, firmware revision).
  2. Power down the 611D rack; confirm DC-link < 50 V on P600 / M600.
  3. Pull the card on the front side via the ejector handles.
  4. Verify part-number match on the replacement card: 6SN1118-0DG23-0AA1.
  5. Re-seat; do not re-use a card with visible burn marks or bulging electrolytics.
  6. Apply power; the 611D NE module auto-detects.
  7. Observe for any new alarms — a card swap should not introduce new ones.
NC MD preservation. All NC MD and PLC interface mapping for the axis live in the 840C NCK, not on the 611D card. A card swap therefore requires no MD reload. However, a firmware-version difference between the old and new card may provoke mismatch alarms that must be parameterized in. See the SIMODRIVE 611D Commissioning Manual for parameter-list guidelines.

Stage 5 — Motor Replacement and NC MD Re-Commissioning

A new 1PH4107-4NF56-Z arrives with a new encoder already mounted but with no encoder-to-rotor mechanical relationship established. The spindle cannot be used until the spindle angle shift (encoder reference to rotor magnetic axis) is set.

Spindle Angle Shift Procedure (M19 / G95 systems)

  1. Power on; reference all axes.
  2. Switch to a turning program with the spindle under no-load.
  3. Run M19 (spindle orient to zero) — this gives a known mechanical reference.
  4. Open the 840C Setting upDrivesSpindleAngle offset menu.
  5. Toggle reference jog: command a small angle increment; observe position-detector feedback (1 VPP zero-cross) on the diagnostic page.
  6. Set the angle offset such that the encoder zero crosses at the rotor's electrical zero. From Service Display → Spindle → Angle offset, write the calculated value to the appropriate NC MD for the spindle.
  7. Verify by M19 plus drift measurement: commanded vs actual orientation repeatability must be within ±0.5°.
For lathes using G95 F<small> X…Z… with M19: any drift in the angle offset will appear as groove-positioning error on the workpiece (X-cut offset). Customer-visible before the servo loop reports it. Always verify on a test part after spindle-angle re-commissioning.

Verification and Commissioning

Verification after any component swap must include all of the following, run in this order:

  1. Static test — power on, no enable, hold for 30 min. Confirm no alarm at room temperature.
  2. Warming test — run spindle at 1500 rpm under 30% load for 4 hours continuously. Must not raise 300504 nor the housing-temperature alarm.
  3. Thermal-cycling test — power off for 1 hour and back on, three times. Re-run warming test after each cycle.
  4. Production-representative test — run a real program, monitor loop width and contour-error counters in the 611D Service Display.
  5. Cooling-circuit check — confirm flow / temperature under the same load profile.

Fault Matrix

Alarm 300504 diagnosis cross-reference
Suspected Component Indicator Confirm by Replace or Repair
Encoder cable Alarm from cold start; persistent after 5 min Measure 1 VPP at card; inspect shield termination Replace cable, both ends 360° termination
Encoder electronics Alarm 10 – 30 min after start; amplitude drops hot Oscilloscope warm vs cold; inspection of encoder PCB inside motor Replace motor or internal encoder (motor-dependent)
Bearing Alarm 1 – 3 hours after start; vibration grows Tachometer / vibration probe; bearing temperature Replace motor (with bearing set or whole motor)
Mechanical coupling Alarm random; encoder zero drifts on diagnostic page Mechanical dismount; visual + dial-indicator check Repair / replace motor
611D control card 6SN1118-0DG23-0AA1 Alarm that does not correlate with motor temperature Swap card; check for AS-IC burn marks Replace card
Cooling system Housing > 85 °C under normal load Thermocouple; flow meter on cooling circuit Service chiller, replace hoses / filters
Wrong NC MD Alarm immediately on first move Compare MD 302* / 305* against cabinet book Correct MD per wiring diagram

Calibration and Acceptance Criteria

Acceptable machine behavior after a 300504 intervention, all values to be checked before sign-off:

  • Cold-start: zero alarms in 30 minutes idle.
  • Hot test: zero alarms in 4 hours under representative load.
  • Position-loop following error at 1500 rpm with 50% load: ≤ 0.01 mm or per axis spec.
  • 1 VPP amplitude at controller terminal: 0.6 – 1.2 VPP steady-state.
  • Spindle orientation repeatability (M19): ±0.5°.
  • Cooling ΔT across motor: 4 – 8 °C at full load per the 1PH4107 type plate.

Preventive Maintenance Recommendations

  • Quarterly: clean cooling filter; verify inlet temperature ≤ 30 °C and ΔT 4 – 8 °C at full load.
  • Semiannually: measure 1 VPP signal quality on a hot spindle (after a representative program); record baseline for trending.
  • Annually: bearing vibration analysis on the spindle motor; flag rotors with vibration growth > 1.5 mm/s RMS over baseline.
  • Every 2 years (or 8000 hours): proactive bearing replacement on 1PH water-cooled spindle motors in 3-shift production.
  • After every motor swap or encoder swap: re-establish spindle angle offset per the M19 procedure above.

Spare Parts Strategy

Three parts carry 90% of the 300504 risk for a 1PH4107-driven 840C axis:

Recommended on-site spares for 300504 risk
Part Catalog Number Min. Stock Lead Time
611D control card, 2-axis 6SN1118-0DG23-0AA1 1 Verified at order
Encoder signal cable (per axis) 6FX5002-2CA31-1CA0 (or per wiring diagram) 1 Pre-fabricated, short
Bearing set, motor NDE Per 1PH4107 spare parts list 1 Verified at order
Compatibility check. When replacing any 611D control card, verify the firmware revision matches the older card. Mismatched firmware versions can trigger persistent alarms on commissioning and require re-loading of saved parameters.

FAQ

What does SINUMERIK 840C alarm 300504 mean?

Alarm 300504 indicates a measuring-circuit error on the motor measuring system of a SIMODRIVE 611D-driven axis. The two placeholder fields %1 (axis name) and %2 (drive number) identify which axis and which 611D drive slot triggered the alarm. The motor-side encoder stream is failing plausibility or amplitude checks.

How is alarm 300504 different from a load-side encoder alarm?

300504 belongs to the motor measuring system (direct, on the rotor). Load-side encoder alarms are typically alarm 250* series or analogous variants. If the machine is configured to use the load-side encoder as primary, alarm 300504 still refers to the motor (inner-loop) encoder.

Can alarm 300504 be cleared by a simple NC reset?

Yes for one occurrence. NC reset clears it once. If the underlying fault persists, the alarm returns within minutes — see the heat-correlated cadence table above. Repeating NC-reset without diagnosis does not fix the machine and consumes operator attention.

Could the prior cable replacement have been wasted effort?

No. If the original cable was already aging or the new cable has a build defect (rare for Siemens pre-fabricated 6FX5*0* leads), the symptom set does not change. Aftermarket cables on 1 VPP long runs can intermittently fail the 611D card input stage, so the replacement was sound even though it did not resolve this specific incident.

After replacing the spindle motor, do I need to set NC MD?

Yes. The spindle angle shift (rotor-to-encoder mechanical and electrical reference) must be re-established. This applies to the 1PH4107 after a motor swap and to any 1 VPP encoder replacement on a SIMODRIVE 611D. Without angle re-set the spindle orients in a random angular position; on lathes this appears as off-axis cuts (X shift on the workpiece).

Back to blog