Troubleshooting
Why a Stepper Axis Stays Blocked on a Low Limit After E-Stop
Short answer
The axis blocks on three stacked conditions: motion permission removed by the E-stop, a latched low-limit error, and a Homed status that disabling the axis erases. Recover in that order — safety reset, enable the axis, MC_Reset to acknowledge the error, then MC_Home so the axis moves away from the active limit. On a reported S7-1214C DC/DC/DC at firmware V4.2, that sequence cleared the alarm with no manual move.
On this page
After an emergency stop, your axis is not stuck on one fault but on three stacked conditions: the safety circuit has removed motion permission, the low limit input has latched an axis error, and disabling the axis has erased the Homed status. Clear them in the order they stack — restore the safety circuit, enable the axis, acknowledge the error with MC_Reset, confirm the Homed status is gone, then home the axis so its first motion leaves the switch. On the machine in the worked example below, that sequence cleared the low-limit alarm and returned the axis to its normal A-to-B cycle with no manual move. The mistake that keeps this kind of axis stuck is smaller than it looks: a homing request issued while the axis error is still pending is refused, and the whole sequence hangs exactly where yours does.
What is actually latched after the E-stop #
The panel shows one blocked axis; the controller is holding three separate things. Separate them, because each clears by a different action and only one of them is the alarm you can see.
- Motion permission removed. The E-stop dropped the drive enable, and no motion job runs until the safety circuit is reset through its own procedure. Confirming check: with the button released, the axis still reports not enabled.
- An axis error latched on the low limit. The switch tripped during the fault, the technology object latched an axis error, and that error outlives the E-stop release. This is the one blocking you: the reported machine refuses a homing job while this error is pending. Confirming check: read the axis Error status and the low-limit input together — Error active with the input released means a latched fault; Error active with the input still active means the axis is physically sitting on the switch.
- Homed status erased. Disabling the axis drops the Homed status — reported on this S7-1200 by the machine's builder, and consistent with the documented pattern, in which Siemens' motion documentation for the S7-1500/S7-1500T axis functions lists the cases that reset Homed, an encoder or sensor fault among them, and requires the technology object to be rehomed afterwards. Confirming check: read the Homed status after re-enabling — absent is normal here, not a second fault.
None of the three is cleared by releasing the button, and only the middle one is cleared by MC_Reset. That ordering is the whole fix.
The ordered recovery sequence #
Run the recovery as ordered states, each advancing only on the completion signal of its own step. Motion instructions are called every scan, but their jobs finish over many scans — advancing on the scan count instead of the completion status is how sequences hang.
- Reset the safety circuit by its own procedure. Releasing the E-stop restores permission to be asked for motion, never a motion command — the reset and restart arrangement belongs to the machine's safety design and its risk assessment, so this sequence waits for a deliberate recovery request.
- Cancel the interrupted job. Whatever A-to-B target was active when the E-stop hit is cancelled or inhibited first, so recovery and the old target never command the axis at once.
- Enable the axis through its configured enable, and accept the step only when the axis reports enabled.
- Call MC_Reset and advance only on its completion. This acknowledges the latched axis error — the step the reported machine was missing.
- Re-read the error. Cleared, continue; still active or back on the next scan, stop and go to the input checks in the next section, because a retry cannot clear a real switch.
- Read the Homed status. Expect it gone. That is the disable's doing, not a new fault.
- Home away from the switch. Confirm which commanded direction leaves the low limit, and that the homing mode's first motion goes that way — a homing profile aimed at the active switch is refused or drives the machine deeper onto it. Driving at a physical boundary on purpose is a separate technique, described in homing a servo axis to a hard stop with torque limit, not a side effect of this sequence. An incremental axis that loses its reference on every disable or power cycle is the ordinary case, with the same rehome-at-startup logic as homing an incremental encoder axis without a proximity switch. Call MC_Home and advance only when it completes with Homed valid.
- Resume the cycle from a defined point — the start of the A-to-B pattern, not the interrupted position.
If the alarm comes back after MC_Reset #
MC_Reset completing and the low-limit alarm re-asserting on the next scan is not a sequencing problem. The reset did its job; the input is reporting a real condition. Check cheapest first:
- The switch and its actuator. A bent lever, a cam resting against the roller, a cracked bracket. With motion inhibited, look at the machine before the screen.
- The input wiring and its supply. Meter the input while someone operates and releases the switch. On this controller the S7-1214C DC/DC/DC digital inputs can be fed from an external 24 V supply, and a supply or commons fault reads as an input frozen in one state.
- The interpreted state. Compare the physical switch, the PLC input bit and the technology object's limit status. If they disagree, the configured polarity or filter for that input is the suspect — verify it against the wiring, and do not flip polarity to make an alarm disappear.
- The mechanical clearance. An axis parked on its low limit has travel left in exactly one direction. Any command toward the switch is refused or worse, so the only useful move is away from it.
The decision: fix the input or clear the switch before re-running the sequence. The recovery order in the previous section assumes the input reads what the machine is actually doing — with a lying input, no ordering helps.
Worked example: clearing a latched low limit on an S7-1214C DC/DC/DC #
The reported case, used here as the test case:
- Controller: S7-1214C DC/DC/DC, order number 6ES7 214-1AG40-0XB0, firmware V4.2 — reported by the machine's builder.
- Axis job: a stepper axis cycling between positions A and B — reported.
- Recovery start: E-stop released, axis enabled, low-limit axis error active, Homed status absent — reported.
- Signals watched each step: the axis Error status, the Homed status, the low-limit input, and each instruction's completion output — read from the technology object's status interface.
The rule: each recovery state advances only on the completion signal of its own step, and a step that fails twice hands the axis to a held fault state with the failed step shown. The two-attempt limit is an example choice for this sequence, not a vendor value.
The walk, step by step:
- Safety reset. Motion permission returns. Axis reports not enabled, Error active, Homed absent, low-limit input active. Held.
- Enable. Axis reports enabled. Error still active — this is the wall the reported machine hit.
- MC_Reset. On its completion output, Error reads cleared, and in the reported test the low-limit alarm cleared here, with the axis still parked on the switch. Homed still absent — expected.
- MC_Home away from the limit. Completes, Homed reads valid, alarm stays clear. In the reported test the axis travelled back to its home position normally.
- Resume A-to-B. The cycle runs as before — the reported outcome.
Result: five ordered states, no manual move, no wiring touched. The alarm that blocked homing was acknowledged at step 3 and the reference was rebuilt at step 4. Decision: if step 3 clears the error and step 4 completes, release the cycle; if any step fails twice, hold the axis faulted and show which step failed. The disable-and-move-it-by-hand workaround is a commissioning fallback — this sequence is the long-term fix.
Program changes that keep recovery from hanging #
Three changes in the recovery logic do most of the work:
- Advance on completion, never on scan count. A fixed timer between steps hides exactly the failure you are debugging, because it advances past a step that never finished.
- Read the Homed status bit instead of assuming enabled means homed. The disable erased it; nothing about re-enabling brings it back.
- Acknowledge by deliberate action. Tie MC_Reset and the homing request to an operator recovery request or a supervised sequence state, never to the E-stop chain closing on its own. The mirror-image failure is a fault that never latches and re-enables itself — an autosteer function that re-engages after an overcurrent because nothing latches shows the pattern on a different kind of machine, and it is what an automatic acknowledgment invites here.
The decision #
An axis blocked on its low limit after an E-stop recovers in stack order: safety reset, enable, MC_Reset, confirm the Homed status is gone, home away from the switch, resume the cycle. If MC_Reset completes and the alarm comes straight back, stop debugging the program — the switch, its wiring, its supply or its configured polarity is the fault, and the input has to read healthy before the sequence can work. If homing completes, release the cycle; the reported machine returned to normal exactly there, with no manual move.
Questions asked
Does MC_Reset move the axis off the limit switch?
No. MC_Reset only acknowledges the latched axis error so the technology object accepts motion jobs again. It neither jogs the motor nor rebuilds the Homed status, and it does nothing while the safety circuit still holds motion off. The axis leaves the switch only when a homing or positioning command drives it away after the acknowledgment.
Can I just disable and re-enable the axis instead of running MC_Reset?
No. In the reported test the axis was disabled, enabled again and still would not move until MC_Reset ran, so the enable clears nothing on its own. Disabling also costs the Homed status, so the more often you disable to chase a fault, the more often a full homing is owed. Reset, then home, is the shorter path.
Is it safe to jog the axis off the limit switch by command?
It is a normal recovery move when the commanded direction leaves the switch and the area around the axis is clear. Use a reduced speed, because an active limit marks nearly the end of travel, and keep the move single-step rather than a held direction so it stops when the button does. With no clearance left, the axis moves only with power off.
Does the same recovery apply to a servo axis on the same controller?
The order of operations does. A servo axis technology object carries the same Error status, Homed status and hardware limit inputs, and the vendor homing documentation describing the Homed reset covers servo axes as well. The difference is the homing step: an axis with an absolute encoder can retain its reference across a power-off where a pulse-trained stepper axis must home again.