AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Open collector direction output that never changes at the drive

Servo and stepper motion Published 7 min read By AutomateDirectUSA engineering team

Short answer

A stepper axis that runs one direction for both move signs, while its twin reverses, has a Dir line that never crosses the drive's input thresholds. Measure the open collector Dir terminal during a positive and a negative move, then again with the drive disconnected: toggling only unloaded means a pull-up or return fault, never toggling means a dead output channel.

On this page
  1. What the swap test already cleared
  2. Why one stuck level runs the axis one way
  3. Measuring the Dir line at the drive
  4. Sizing the Dir series resistor for a 24 V supply and a 10 mA input
  5. What each measurement pattern means
  6. Correcting the pull-up, resistor and return
  7. Confirming the repair
  8. Questions asked

Your second axis runs the same direction for a positive and a negative target because its Dir line never crosses the drive's input thresholds: the open collector output, its pull-up path or its return holds one level at the drive terminal, so the drive keeps latching a single direction while the Step pulses still arrive. The swap you already ran, the good axis's wiring moved to the suspect driver, which then reversed correctly, clears that driver, that motor and that cable, and since the axis still moves, the Step path works too. That leaves the axis 2 Dir output path: its wiring and return, its pull-up or series resistance, or the output channel itself. One measurement sequence at the drive terminal splits those three.

What the swap test already cleared #

Spend that clue correctly. Axis 1's wiring drove the second driver and motor with proper reversal, which proves the driver, motor and cable are good. The suspect axis still produces motion, so its Step pulses reach the drive and the command path generates the right step counts; only the direction level is missing.

Two common responses cannot work here. Inverting the direction setting in software only flips polarity, so a line that never changes state at the drive still gives one fixed direction, just the other one. Re-tuning changes nothing, because the move magnitude is already right.

If the measurements below show healthy Dir levels at the drive, the cause sits in the move logic or configuration, and the checklist for troubleshooting a stepper axis that moves in one direction only takes it from there.

Why one stuck level runs the axis one way #

An open-collector output is a transistor to common that only sinks current and cannot source any. The high state exists only because a pull-up path, here the loop from the logic supply through the current-limiting resistor and the drive's opto-isolated input back into the sink, pulls the terminal up when the transistor is off. Remove that source and the line has no high at all.

The drive reads its Dir terminal against two thresholds from its input specification: below the low threshold it is guaranteed to read 0, above the high threshold 1, and in between the reading is undefined. It latches the direction at each Step edge. The axis therefore reverses only if the loaded low level pulls under the low threshold and the loaded high level clears the high one. Three stuck shapes follow:

  • Stuck low for both signs: no source current, from a missing or open pull-up, or a broken return.
  • Stuck high for both signs: the sink never conducts, from open wiring to the sink or a dead channel.
  • Stuck between the thresholds: marginal levels, from too much series or return resistance or a weak sink that cannot pull the loaded line down.

Channel-to-channel tolerance is why axis 1 passes and axis 2 fails on the same board. The same sink-versus-threshold mechanism, seen from the other side, is why a servo open collector status output reads nothing on a PLC.

The drive side of the loop is documented: the DMA860E digital stepper drive user manual is typical of the class, with opto-isolated control inputs and a current-limiting resistor added at +12 V or +24 V input logic voltage.

Measuring the Dir line at the drive #

  1. Power the system down before opening the terminal block: the drive's DC bus holds charge and a commanded axis can move. Identify axis 2's Dir terminal and its return from the controller's user documentation, not from wire color.
  2. Power up with the drive connected. Command a short positive move and read Dir to return with a DMM while the move runs, because some controllers hold Dir only while a move is active. Confirm the reading on a scope.
  3. Command the same move negative and read again. The two levels must land on opposite sides of the drive's threshold band, both taken from its input specification.
  4. Repeat both moves on axis 1 and write the four levels side by side; that pair is your reference.
  5. Power down, disconnect the drive's Dir input, and fit a temporary pull-up from the Dir terminal to the logic supply, sized to the controller's open-collector wiring guidance. With the drive's opto loop out of circuit, nothing else will pull the line up.
  6. Command positive and negative moves again and read the open-circuit terminal. Note whether it toggles.

Sizing the Dir series resistor for a 24 V supply and a 10 mA input #

The worked numbers use the documented logic levels of the drive family above. They are a calculated example, not a measured result.

Inputs:

  • Pull-up supply: 24 V, the documented level that requires the resistor.
  • Input native level: 5 V, the level the opto input is built for, from the same manual.
  • Drive input current: 10 mA, an example value standing in for your drive's input specification; the result scales with it.

Rule: the series resistor must absorb the difference between the pull-up supply and the level the input is built for, while passing the input's specified current, and it must dissipate the heat that drop produces.

Arithmetic:

  • Voltage to absorb: 24 V − 5 V = 19 V.
  • Resistance: 19 V ÷ 0.010 A = 1900 Ω, so fit the next standard value down, 1.8 kΩ.
  • Current check: 19 V ÷ 1800 Ω = 10.6 mA, still at the input's specified current.
  • Power: 19 V × 0.0106 A = 0.20 W, so use a 0.5 W part.
  • At the lower documented level: 12 V − 5 V = 7 V; 7 V ÷ 0.010 A = 700 Ω, so 680 Ω; 7 V × 0.0103 A = 0.07 W, so a 0.25 W part.

Result: 1.8 kΩ at 0.5 W in series with Dir for the 24 V case, and 680 Ω at 0.25 W for 12 V, calculated for a 10 mA input.

Decision: fit that resistor at either of the two documented levels; at the direct-connect 5 V level, wire the input straight in. Double your drive's specified input current and you halve the resistance. The controller's sink-current rating, from its hardware specification, must exceed the resulting current, and the same arithmetic run from the other side is why a sourcing PLC output needs a resistor at a stepper drive input.

What each measurement pattern means #

Pattern you measured The fault The decision
Toggles with the drive connected, both levels beyond the thresholds None in the Dir path Move to logic and configuration, starting from the one-direction-only checklist
Toggles with the temporary pull-up, stuck with the drive connected Loading or wiring: series resistance too high, pull-up too weak, shared or broken return Rework the loop to the drive's input specification and the resistor example above, then re-measure
Never toggles, even with the temporary pull-up Dead output channel on the controller Replace or return the board; no setting restores a transistor that no longer sinks

A line stuck low with the drive connected points at the pull-up or the return; stuck high points at the sink path or its wiring. Do not condemn the board before the last row is actually measured.

Correcting the pull-up, resistor and return #

Work cheapest first and stop when the loaded levels sit beyond both thresholds with margin:

  • Reseat the axis 2 terminals and check continuity end to end; a loose return adds series resistance that lifts the low level.
  • Tie the Dir return to the same reference as the pull-up supply return, and hunt for the shared-return error, where axis 2's return lands on axis 1's terminal.
  • Copy the controller's open-collector wiring hints for step and direction: pull-up supply, resistor value, return pin.
  • Fit the series resistor at the two higher logic levels, as in the worked example.
  • Confirm the controller's sink rating exceeds the drive input current.
  • Run Dir and its return as a twisted pair, routed away from motor phase cables.

Confirming the repair #

Command equal positive and negative moves and watch the axis reverse and return to its start position. Run at least ten reversals, because a marginal level passes cold and fails once the cabinet warms. As a rule of thumb, keep at least 0.5 V between each measured level and the threshold it must clear; a level inside the band is the fault you just fixed, waiting to return. If the wiring now matches the guidance, the resistor is in, and the terminal still never toggles with the drive disconnected, the channel is defective: replace or return the controller.

Questions asked

Why does the stepper drive keep running instead of faulting when Dir is stuck?

A step and direction drive cannot detect a wrong sign. It latches whatever level its Dir input shows at each Step edge and moves that way. An open-loop stepper has no following-error or position check to trip, so the axis runs happily in the wrong direction and the fault surfaces as scrapped parts, a crash, or a position error at the controller.

Should the Step output get the same check?

Yes. Step and Dir are the same open collector output type and usually share one pull-up supply and return, so whatever degraded the Dir path can leave Step marginal too. Jog the axis and read Step at the drive while pulses are arriving: its low level must sit below the drive's input-low threshold under load, which a static reading at standstill will not show.

Is a multimeter enough, or do I need a scope?

A DMM finds the hard-stuck line, which is this case: the level simply never changes between moves. A scope adds two things a meter misses: a high level that droops only while the drive's input current flows, and a slow rising edge that has not crossed the threshold when the first Step pulse arrives. The drive samples Dir at each Step edge, so edge speed matters on long cables.

How large should the test moves be?

Keep them small: a few motor revolutions at low speed, equal in both directions, so a wrong-direction move cannot drive the axis into a hard stop. Command them from the same software path the machine uses rather than a manual jog, and read the Dir terminal during the move itself, since some controllers assert Dir only while a move is active.

Keep reading

  • How-to

    Why a sourcing PLC output needs a resistor at a stepper drive input

    A sourcing 24 V PLC pulse output can drive a 5 V opto-isolated stepper drive input through a series resistor sized for the input's rated current — about 2.2 kΩ at 0.5 W for a 10 mA example — wired common-cathode with the input's minus terminals tied to the PLC's 0 V. The resistor fixes current and polarity only: the output must also be a dedicated pulse output rated above your computed step frequency.

    Servo and stepper motion

  • Troubleshooting

    Troubleshooting a stepper axis that moves in one direction only

    When both halves of a forward-and-back Move travel the same way, the step pulses are fine and the direction state is not reaching the driver. Watch I/O bit 9 on the Digital IO Screen during the move: if it toggles, the fault is downstream in the KSTEP direction path from JP36 pin 16 through R71 and U23 to U17 pin 30. In the reported case a cold joint at U23 pin 4 passed continuity only under probe pressure, and restoring the joint fixed the axis.

    Servo and stepper motion

  • Troubleshooting

    Why a stepper axis moves in Step Response but not the CNC jog

    When a stepper moves from the controller's Step Response screen but not from the CNC jog buttons, the axis itself works and the command path is broken in one of two places: the CNC coordinate system is not assigning the letter axis to that controller axis, or the axis outputs through a step and direction generator on a different connector. Correct the coordinate assignment first, then the output channel.

    Servo and stepper motion