Explainer
Why differential stepper drive inputs map straight to axis outputs
Short answer
The CW+/CW-/CCW+/CCW- terminal set is two opto-isolated inputs: the CW pair carries step pulses and the CCW pair carries direction, and each is just an optocoupler LED that responds to current, not to wiring style. A differential controller therefore wires straight across, S+ to CW+, S- to CW-, D+ to CCW+, D- to CCW-, with no receiver module; the old common feed belonged to the old controller's single-ended outputs, not to the drive.

On this page
A stepper drive whose terminals read CW+, CW-, CCW+ and CCW- is not asking for four logic signals or a special interface. Those terminals are two opto-isolated inputs, and each one is the LED side of an optocoupler: the CW pair carries step pulses, the CCW pair carries direction. The drive senses only current through those LEDs, and a differential controller output drives them directly. Wire S+ to CW+, S- to CW-, D+ to CCW+ and D- to CCW-, leave out any receiver module, and leave out the old controller's common 5 V feed, which belonged to its single-ended outputs rather than to the drive.
Two opto inputs, not four signals #
A terminal block labeled CW+, CW-, CCW+ and CCW- reads like four signals, but it is two: the CW pair is the step input, the CCW pair is the direction input. Electrically each input is one optocoupler LED inside the drive, with CW+ and CW- as the anode and cathode of the first, and CCW+ and CCW- as the anode and cathode of the second. Drive documentation for this terminal set says it outright: each differential input is the LED side of an optocoupler, and the same input can also be wired single-ended.
An LED responds to exactly one thing, current flowing from anode to cathode. It cannot tell whether that current comes from a differential output pair or from a common rail switched by a single-ended output, and that indifference is the whole reason the direct mapping works.
Why the old common-anode wiring also worked #
The original controller had single-ended sinking outputs, so the installer used the drive's other documented option: a common positive feed to both anodes, with the PULSE output pulling CW- low and the DIR output pulling CCW- low. Every low-going pulse drove current through an LED and the drive counted the step. Nothing in that arrangement was a requirement of the drive; a sinking output has no positive side of its own, so the installer supplied one and shared it between the two inputs.
A differential pair replaces the whole scheme. On a pulse, S+ rises while S- falls, and current runs from S+ into CW+, through the LED, out of CW- and back into S-. Between pulses the pair reverses and the LED simply blocks. No common rail takes part, so the old common feed must not be carried over.
The direct mapping #
With differential axis outputs on the controller, the drive side gets one conductor per terminal, pair to pair:
| Controller axis output | Drive terminal | Signal |
|---|---|---|
| S+ | CW+ | Step pulse, source side |
| S- | CW- | Step pulse, return side |
| D+ | CCW+ | Direction level, source side |
| D- | CCW- | Direction level, return side |
Remove the two jumpers that fed the old common to CW+ and CCW+. Each drive terminal gets exactly one conductor from its matched controller output, and S- and D- return through their own pairs, so nothing ties to a drive 0 V terminal.
The current check behind the connection #
The drive's input resistor, sized by the maker for the rated signal voltage, sets the LED current, and the same resistor serves both wiring schemes. A worked example with illustrative values shows why nothing needs adding. Suppose the drive's manual states the inputs are built for 5 V signals with an internal series resistor of 330 ohms, and the optocoupler LED drops about 1.2 V when conducting. The LED current is:
LED current = (signal voltage − LED forward voltage) / resistance = (5 V − 1.2 V) / 330 Ω = 3.8 V / 330 Ω ≈ 11.5 mA
The controller's differential pair drives exactly that current through exactly that LED, from S+ into CW+ and back out of CW- into S-, so the operating point is identical to the old single-ended arrangement; only the source changed. This is a calculated example for those inputs, not a measurement, so take the real signal-voltage rating and input current from the datasheet of the exact drive. The one case that changes the arithmetic is a controller whose signal voltage exceeds what the input resistor is sized for; the drive manual then specifies an external series resistor, and that decision is about voltage, not about differential versus single-ended.
Commission one axis first #
Rewire one axis and prove it before touching the rest:
- Power down and disconnect both the controller and the drive before opening the input wiring. A stepper drive's DC bus holds charge after power-off; wait the interval the drive manual states before working near its terminals.
- Wire the single axis to the mapping table above, with the common jumpers removed.
- Power up, enable the drive, and jog the axis slowly in both directions.
- Command a known move at working speed, for example 25 mm, and measure the travel on the machine with a rule; repeat at the feed rate you intend to run.
Full travel at both speeds means the edges, polarity and step rate are all accepted, and the remaining axes can be duplicated with confidence. The one-axis procedure mirrors the checks used when troubleshooting STEP/DIR spindle wiring to a stepper drive.
When a receiver module earns its place #
A differential receiver module converts a controller's single-ended outputs into differential pairs. It earns its place in two cases only: the controller has nothing but single-ended step and direction outputs, or the run from controller to drive is long enough and noisy enough that single-ended pulses arrive corrupted, since differential pairs reject common-mode pickup and that is the reason they exist.
Neither case applies when the controller already brings out S+, S-, D+ and D- and the drive inputs are opto LEDs rated for the controller's signal voltage: wire straight across and leave the module out. If your controller turns out to be single-ended after all, reproduce the legacy scheme instead, because these inputs accept it by design: sinking outputs take a common positive feed to CW+ and CCW+, while sourcing outputs take a common 0 V to CW- and CCW- with pulses into the anodes. Only a drive whose inputs are true line receivers rather than opto LEDs would then force a module between the two, and that is not what a CW/CCW terminal block is.
If the first test fails #
Work the cheap checks first:
- Dead axis: confirm the drive is enabled, its power indicator is lit, and any enable or alarm input wired on the drive is released. An inverted or unwired enable input produces total silence that looks exactly like bad step wiring.
- Wrong direction: invert the direction in the controller's axis settings, which is a parameter rather than a wire, or swap D+ and D- at the drive. Never swap the step pair to reverse an axis: exchanging S+ and S- inverts pulse polarity, and because the drive counts steps on one specific LED current edge, that swap can stop stepping altogether.
- Buzzing or erratic motion: compare the controller's step polarity setting with the drive's counted edge, and confirm the pulse width meets the minimum the drive manual states.
- Moves at jog speed but loses position at feed speed: the wiring is right; step rate, pulse width and signal quality are the suspects. A marginal differential step signal has a recognizable signature of its own, described in why a differential step input voltage drop stops a stepper.
The decision, one line per case: differential axis outputs into CW/CCW opto inputs take the direct mapping with nothing in between; single-ended sinking outputs take the legacy common-positive scheme and sourcing outputs its common-negative mirror; a receiver module belongs only in front of true line-receiver inputs or on runs whose single-edged pulses arrive corrupted. For a controller with S+, S-, D+ and D- outputs over drives labeled CW+, CW-, CCW+ and CCW-, that means S+ to CW+, S- to CW-, D+ to CCW+, D- to CCW-, proven on one axis and then duplicated.
Questions asked
Why are the terminals called CW and CCW when the drive takes step and direction?
The names come from the older two-pulse input mode, in which pulses on the CW input turned the motor one way and pulses on the CCW input turned it the other. Makers kept the labels when step-and-direction mode arrived, so on drives with this terminal set the CW pair is the step input, the CCW pair is the direction input, and the drive's input-mode setting decides how the terminals behave.
Can I leave the old common feed connected to CW+ and CCW+ and add the differential pairs on top?
No. With the common still live, the rail and the controller's S- and D- outputs would contend at the same terminals on every edge, distorting the LED current the drive expects and smearing pulses. Remove both jumpers so each input LED is driven only by its own output pair.
What cable should carry the step and direction pairs?
Use two twisted pairs inside one shielded cable: the step outputs on one pair, the direction outputs on the other, and the shield connected at the controller end only. Route the cable away from motor leads and drive power cabling. The symmetry of each pair is what cancels induced noise, so keep every signal on its own pair instead of sharing a return.
Does the same mapping apply to drives whose inputs carry pulse and direction labels instead?
Yes, whenever the wiring diagram shows one optocoupler per pair. The step pair goes across the pulse input's positive and negative terminals and the direction pair across the direction input's terminals, exactly as with the CW and CCW labels. Drives drawn with a true line receiver instead of an LED are the exception, and those are the ones that may genuinely need a differential driver stage.