A pin-level retrofit checklist: 5 V against 24 V, common anode against common cathode, why a floating enable stops the axis, and fail-safe limit wiring.
Every retrofit ends at the same thirty terminals, and most of them get wired by copying a photo of somebody else's machine. The photo is right for the board in it and often wrong for the driver on your bench, because two things decide the wiring and neither one is visible in a picture: voltage and polarity.
Four signals per axis, and what each one is
A step and direction driver needs three connections per axis, four if the drive should be able to switch itself off: step, direction and enable. Step is a pulse train where one pulse equals one microstep. Direction is a level that has to be stable before the pulse arrives, not a second pulse. Enable is a level that stays where you put it.
The rest follows from one fact: the board produces 5 V logic, while the driver reads a current through an opto-coupler, not a voltage. Step dir enable wiring is therefore a question of current through an LED, not of matching labels.
5 V and 24 V do not mix
Breakout board outputs are 5 V TTL, sized for roughly 7 to 15 mA into the driver's opto input. Put 24 V on that input and the LED is destroyed in the first second. Put 5 V on an input that expects 24 V and nothing happens at all.
Sensors run the other way round. An inductive proximity sensor in a 24 V system outputs 24 V, while a typical board input is an NPN input that expects the sensor to pull the line down to 0 V. A PNP sensor with a push-pull output will not trigger that input no matter how the software is configured.
Keep two voltage domains and never let a wire cross: 5 V for step, direction and enable, 24 V for sensors, relays and the E-stop chain.
Common anode or common cathode, pick one and stay with it
Each driver pair, PUL+ and PUL-, DIR+ and DIR-, ENA+ and ENA-, is an LED with a resistor. There are exactly two ways to drive it. Tie every plus terminal to +5 V and let the board pull each minus terminal low: that is common anode, and the board is sinking. Or tie every minus terminal to 0 V and let the board drive each plus terminal high: common cathode, the board is sourcing.
Most inexpensive boards sink only, so common anode is the wiring they support. Mixing the two conventions inside one machine gives you an axis that moves in one direction only and then stalls, or one that does not move while the pulse LED on the board blinks. Both look like software and are almost always polarity.
An enable line left floating stops the axis
Enable is active low on most of these drivers. With ENA+ and ENA- left open, the opto never conducts, and the driver stays in whatever state its design defaults to. On several models that default is disabled: the driver is powered, the motor is free to turn by hand, and the software reports motion that the shaft never makes. The holding torque you were relying on is simply not there.
Two habits remove the class of fault: wire enable to the board's enable output, and confirm its state after the software boots, since some boards come out of reset with enable asserted.
Wire limits normally closed, so a broken wire stops the machine
A limit switch wired normally open fails silently. The wire breaks, the input reads not triggered, and nothing warns you until the axis drives into the end of travel. Wired normally closed, the same broken wire opens the circuit, which is the same state as a triggered switch, and the machine stops.
On an NPN input the switch or sensor has to pull the line to 0 V, so the NC contact goes between the input and 0 V, not between the input and +5 V. Chain the three axes into one input if you are short of inputs, but keep the probe or tool setter on its own input: a shared input turns every tool measurement into a limit alarm.
Signal, pin and expectation on one page
Terminal names differ; the expectations do not. Two boards cover both cases: the DB25 parallel port unit at /products/tebak-controller/mach3-5-axis-db25-lpt-port-cnc-interface-breakout-board-with-parallel-00 for a 5-axis parallel setup, and the USB card at /products/tebak-controller/rnr-breakout-board-usb-mach3-100khz-4-axis-interface-driver-motion-con-37 with 100 kHz output, a slaved A axis, PWM or relay spindle control and NPN sensor inputs.
What each terminal expects, and the mistake that kills it
| Signal | Typical terminal | What it expects |
|---|---|---|
| Step (PUL) | X-PUL / PUL+ and PUL- | 5 V pulse train, 7-15 mA through the opto; 24 V destroys it |
| Direction (DIR) | X-DIR / DIR+ and DIR- | 5 V level, stable before the pulse; invert in software, not by rewiring |
| Enable (ENA) | X-EN / ENA+ and ENA- | 5 V level, active low on most drivers; open means undefined |
| Limit X, Y, Z | IN1 to IN3 | NPN sink to 0 V; NC contact to 0 V so a break reads as triggered |
| E-stop | IN4 or dedicated E-STOP | NPN sink, NC, in series with the limit chain |
| Probe or tool setter | IN5 | NPN sink, NC preferred, never shared with limits |
| Spindle analogue | AVI / 0-10 V out | 0-10 V into the VFD, scaled to maximum spindle speed |
| Spindle forward | OUT1 relay | Dry contact to VFD FWD and COM, not a voltage |
| Sensor supply | +24 V and GND | 24 V for sensors only; keep it out of the 5 V side |
Checks before the first power-up
- Buzz out every NC loop with the power off: closed normally, open when pressed
- Measure the 5 V rail at the board before connecting any driver
- Jog one axis at low speed and confirm the direction inverts in software, not at the terminals
- Check the enable state with a meter: the driver's ENA pair should show the voltage the datasheet calls enabled
- Ground the cable shield at the control end only, and keep step and direction wires away from the spindle cable
None of this needs a scope. A meter, a continuity test and one slow jog catch the four faults behind most dead retrofits: reversed polarity, 24 V on a 5 V input, a floating enable, and a limit switch wired so that a broken wire looks like a clear path. Breakout board wiring is mostly the discipline of not crossing those two voltage domains.
Parts this guide applies to
All items in controller
Mach3 5 Axis DB25 LPT Port CNC Interface Breakout Board With Parallel and USB Cable Fit Nema23 Driver VFD For Engraver
DB25

RNR Breakout Board USB MACH3 100Khz 4 Axis Interface Driver Motion Controller Card A Slave Axis For CNC Engraver Milling Router
Mach3 4axis Control Card

Offline CNC Controller System DDCS Expert M350 3 4 5 Axis G-code Stanalone Interface With M3K Extended Keyboard For Router
Have a machine that needs this specified? Send the machine type and the interface you are working to, and the answer comes back with the configuration and the drawing.