Troubleshooting
Why a limit halt keeps a force-controlled servo axis moving
Short answer
The limit input is working. The controller's default stop on a limit event is a halt, which makes the current feedback value the setpoint; with analog force feedback the axis holds force and can keep travelling. Change the switch stop type to a kill — command output to zero, inhibit asserted — and prove it with a controlled limit test.
On this page
- Separate the input path from the response path
- Why a halt holds force instead of stopping travel
- What the halt captures on the Axis 1 force loop
- Set the switch response to kill
- Prove the kill response with a controlled limit test
- When the axis creeps with no command
- The decision for each case
- Questions asked
The limit switch is doing its job; the configured response to it is what keeps the axis moving. On a limit event this motion controller's default response is a halt: it captures the current feedback value and makes that value the setpoint. With encoder feedback the captured value is a position, so the axis holds still. With analog feedback carrying force, the captured value is a force — and holding a force does not require standing still. That is why MAX can show the limit active while the actuator sails through the switch. The fix is to change the axis's switch response from a halt to a kill, which zeroes the command output and asserts the inhibit line to deactivate the drive, then prove the whole chain with a controlled limit test. The case worked through below is a servo axis whose feedback input carries a force-derived voltage instead of encoder counts.
Separate the input path from the response path #
An active limit indication with continued motion looks like an input failure, but two independent paths sit behind the symptom. The first runs from the physical switch through the controller input to the interpreted limit state; that is what MAX shows. The second runs from that state to the configured stop response and on to the drive command; that is what actually stops the axis. The indication proves the first path only.
Observed symptom: the limit indication goes active and powered travel continues. Likely causes, cheapest to check first, with the confirming check for each:
- The configured stop response is a halt and the feedback is not position. Confirming check: read the axis's configured stop type. In this configuration a halt is the default, so a force-feedback axis lands here without anyone misconfiguring anything.
- The switch acts on the wrong axis or direction. Confirming check: hand-operate each switch with the actuator restrained and watch the indication set on operation and clear on release.
- The switch, its wiring or the active-state interpretation is faulty. Confirming check: an indication that never sets. Investigate the input side before touching the stop configuration — the same input work as wiring PNP proximity switches to optocoupler inputs.
- The limit state latches after the event. Confirming check: an indication that sets but never clears; that is a state-side fault covered by why a stepper axis stays blocked on a low limit after an e-stop.
If both indications set and clear correctly and travel still continues, the response is executing as configured, and the stop type is the fix.
Why a halt holds force instead of stopping travel #
On a limit event the default response is a halt. The controller captures the current feedback value and makes it the current setpoint. What holding that setpoint does to the mechanics depends entirely on what the feedback measures.
| Feedback on the axis input | Value the halt captures | Holding it requires | Resulting travel |
|---|---|---|---|
| Encoder or resolver position | the position at the trip instant | being at that position | stops |
| Analog force voltage | the force reading at the trip instant | keeping that force | can continue |
Position has to be held by standing still, so with encoder feedback a halt is a full stop. A force is not: a press, a clamp or a tensioning axis can hold a force while moving, and an axis in free travel reads nearly constant force, so the loop keeps driving. Mechanical compliance, changing contact conditions and small feedback offsets all widen the gap between holding a force and standing still. The controller recognized the limit and did exactly what it was configured to do; the configuration is what has to change.
A polling loop in the motion program can also kill the motor when the status goes active, and that works — but it leaves the stop dependent on that program running. Configuring the response at the controller level takes the program out of the chain.
What the halt captures on the Axis 1 force loop #
The case. A servo axis on a PXI7358 motion controller gets its feedback from a force chain instead of an encoder: a 6-axis force sensor on the actuator endpoint feeds raw strain-gauge voltages to a PXI6221, a LabVIEW calculation turns one axis of that into a force, and a PXI6363 analog output produces one voltage proportional to it, wired to the PXI7358 Axis 1 analog input. The configured switch response is the default halt.
Inputs. The feedback the controller sees is a voltage, in volts, at every stage; the newtons exist only inside the calculation. The default stop on a switch event for this configuration is a halt, and the documented kill selection for the switch response is Stop Type on Switch = 2.
Rule. A halt samples the feedback value at the trip instant and makes it the setpoint; the loop then drives its command until the feedback equals that setpoint.
Arithmetic. Let f(t) be the feedback voltage in volts and s the captured setpoint. The halt assigns s = f(t_trip). The loop settles when the error e(t) = s − f(t) is 0 V. With position feedback, f is a position, so a settled loop pins the axis at the trip position, and the only velocity consistent with holding a position is 0 mm/s: travel stops. With the force voltage, a settled loop demands only f(t) = s; velocity appears nowhere in that condition. In free travel the force reading barely changes, so the error stays near zero and the drive keeps pushing the actuator along its travel.
Result. The actuator can cross the active switch at speed, or creep on a small offset, while the controller executes a correct halt. Active indication and continued motion are compatible.
Decision. Whenever the quantity on the axis feedback input is not position — force, pressure, tension, any derived analog value — set Stop Type on Switch to 2. The kill sets the DAC output to 0 V and asserts the inhibit output, which removes the command and deactivates the drive instead of asking the loop to hold a physical quantity.
Set the switch response to kill #
Do this at the controller level, not in the program:
- Put the axis in a restrained commissioning condition: nothing in the travel path and clearance for residual motion after the drive drops.
- Call the motion attribute-write function for the axis — on this controller that is
Set u32.flx— and writeStop Type on Switchwith the value 2, the kill selection, for the affected axis number. - Check the function's error result before enabling the drive. A write that fails silently leaves the halt in place, and nothing in the axis behavior will warn you until the next limit event.
- Review the application's initialization sequence for later writes to the same axis attributes; an ordinary startup can overwrite this setting after you have set it.
- After normal startup, repeat the controlled limit test described below. The response that matters is the one that survives startup, not the one that follows your configuration write.
One safety note belongs here. A kill removes power without a controlled deceleration — in the terms of IEC 60204-1, which groups machine stop functions into category 0 (immediate removal of power to the actuators), category 1 (controlled deceleration, then power removal) and category 2 (controlled stop with power retained), a kill behaves like a category 0 stop. It provides no load holding and is not a safety-rated stop: the machine's emergency and protective stops must meet the standard through the machine's own safety functions and risk assessment, not through a motion attribute.
Prove the kill response with a controlled limit test #
A kill is two separate electrical effects: the command output goes to zero and the inhibit output asserts. Each only stops the axis if the drive is connected and configured to use them, so test the whole chain with the normal force calculation running. Use the restrained condition, never the mechanical end stop, and leave room for residual travel.
- Record the starting state: feedback voltage, command output, drive enable state and both limit indications.
- Hand-trip the forward limit. Expect, in order: the indication goes active, the DAC output drops to 0 V, the inhibit asserts, the drive leaves its enabled state, and powered travel ceases after whatever coasting remains.
- Release the switch, confirm the indication clears, and restore the drive by its documented enable sequence.
- Repeat on the reverse limit and confirm the response lands on the intended axis and direction.
- Restart the controller and application through the normal startup path and run the test once more.
The test proves the controller outputs and the drive state. Watch the mechanics too: after the drive drops, a loaded actuator can coast, settle or back-drive under gravity, and none of that is the controller's doing.
When the axis creeps with no command #
The installation in this case had a second symptom: with a slightly nonzero voltage at the analog output, the actuator drifted slowly toward the limit with no motion program running. That is not a stop-type problem — the loop is faithfully holding a small force that should read zero. Walk the chain and compare adjacent stages: the unloaded sensor reading, the calculated force in the program, the voltage at the analog output terminals, and the value the Axis 1 feedback input reports. The stage where the numbers stop matching is the one to correct. Fixing the offset removes the creep; the kill response at the switch stays in place as the backstop, not the cure.
If the mechanical switch itself proves worn or inconsistent after the input checks, the durable repair is replacing a mechanical limit switch with a proximity sensor — see replacing a mechanical limit switch with a proximity sensor.
The decision for each case #
- Axis feedback is a position (encoder, resolver): keep the default halt. The captured setpoint is a position, so the limit stops travel and the drive stays enabled for a clean recovery.
- Axis feedback is force, pressure, tension or any derived analog value: set the switch response to kill (
Stop Type on Switch= 2 on this controller family), confirm the write's error status, and rerun the controlled limit test after a normal startup. - Indication active but the drive stays enabled after a kill: the inhibit is the suspect. A zeroed command alone is not drive deactivation; check the inhibit wiring and the drive's inhibit configuration.
- Slow creep with no command: fix the feedback offset stage by stage. The kill is the backstop at the limit, not the cure for the creep.
- Indication never sets or never clears: fix the input side first — switch, wiring, active state — before touching the stop configuration.
The switch was never broken; the captured setpoint was.
Questions asked
Should I also set a kill response when the feedback is an encoder?
Usually no. With position feedback the halt captures the position at the trip instant, so holding the setpoint means standing still, which is exactly what a travel limit should do, and the drive stays enabled so the axis holds and recovers cleanly. A kill stops the axis too, but it zeroes the command and asserts the inhibit, leaving the axis unpowered until you clear the event and re-enable. Reserve the kill for feedback that is not position.
How does the axis come back after a kill on a limit?
The kill sets the command output to zero and asserts the inhibit output, so the drive stays deactivated while the limit condition remains. Recovery follows the drive's own documented enable sequence: back off or clear the limit, confirm the controller shows the switch inactive, then re-enable and clear any drive fault. Run the first motion after a kill under the same restrained conditions you used for the limit test, with clearance for residual travel.
Does this also apply to home or proximity switches, not just overtravel limits?
The response is an axis-level setting, so verify what each switch event triggers on your controller instead of assuming every switch shares one behavior. The halt-versus-feedback mismatch applies to any switch whose job is 'stop travelling now': with non-position feedback, a halt holds the measured quantity rather than the travel. Whatever you configure, prove it the same way — hand-trip the switch in a controlled condition and watch the command output, the inhibit state and the drive.
The limit LED lights in MAX but the motor keeps moving — is the switch wired wrong?
Not necessarily. The active indication proves the input and its active-state interpretation work; the motion continuing proves the configured response ran. With analog feedback that response, a halt, holds a force rather than a position, so continued travel is expected behavior. Suspect the wiring only when the indication itself is wrong: it never sets, never clears, or shows on the wrong axis or direction. Right indication with motion means fix the response, not the switch.
Why does my actuator drift slowly toward the limit when it should be holding still?
That is a feedback offset, not a stop-type problem. With analog force feedback the loop holds whatever voltage it is given, so a slightly nonzero analog output commands a small steady force and slow travel even with no motion program running.