AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

How-to

Why a twin-motor gantry axis needs slaved step streams

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

Short answer

Slave the spare axis to Y in Mach3 so both stepper motors get their own driver and identical step counts. Never bridge the parallel-port pins or wire two motors to one driver: the pins cannot feed two inputs and the driver cannot supply twice the phase current. Match direction, tuning values and current settings, then verify squareness with a dial indicator.

On this page
  1. Why the two wiring shortcuts fail
  2. What slaving the spare axis actually does
  3. Commissioning the twin-motor Y axis
  4. The skew one lost step produces
  5. Heat fault or logic fault
  6. Verify squareness before cutting
  7. The decision, case by case
  8. Questions asked

Two motors on one Y axis stay square only when both execute the same number of steps, in the same direction, at the same time. On a three-axis router driven by Mach3 through a four-driver parallel-port board, exactly one arrangement delivers that: wire the second Y motor to the spare fourth driver and slave that axis to Y in the controller. Bridging one parallel-port pin pair to two drivers doubles the load on a logic output and freezes the direction logic; wiring two motors to one driver demands more phase current than the driver chip can survive. This article gives the failure arithmetic for both shortcuts, the commissioning sequence for the slaved axis, the skew one lost step produces, and the checks that tell a heat problem from a logic problem before the first cut.

Why the two wiring shortcuts fail #

A parallel-port output pin is a low-power logic source meant to feed one driver input. Split one pin pair to two drivers and the pin supplies two loads instead of one, with the margin set by each board's input circuit — most of these boards put an optocoupler on every input. Even if the levels hold, both drivers now receive the same direction level, so a mirror-mounted pair cannot be corrected per motor, and homing the two sides separately is gone. The controller also still believes one actuator exists, which makes later squaring and tuning impossible.

Wiring both motors to one driver fails on current. Take an example motor rated 2.8 A per phase (read the real value from your motor's label). In parallel, the driver must source 2 × 2.8 A = 5.6 A per phase, and the TB6560 datasheet's absolute maximum is 3.5 A per phase for the AHQ package (2.5 A for the FGN), so the pair demands 5.6 ÷ 3.5 = 1.6 times the chip's rated ceiling. Leave the current limit set for one motor and each parallel motor gets about half of it, roughly 1.4 A, with torque tracking phase current as a rule of thumb below saturation.

In series, the two windings' resistance and inductance add. At the same supply voltage the current slope halves, so usable torque collapses at roughly half the speed. Either arrangement makes the chip dissipate more heat to deliver less torque.

The third option — changing nothing and driving one motor only — is the simplest failure of all: the second motor has no step source, one side drags the other, and the gantry racks.

What slaving the spare axis actually does #

Mach3 plans the Y move once and outputs it twice. The slave axis receives its own step and direction pair, generated for the identical trajectory: same step counts, same direction changes, same acceleration ramps. Each driver sees an ordinary single-axis signal, which is what the hardware wants.

The slave still needs its own motor-tuning values, entered and matched to Y's. The controller scales each axis by its own values, so a slave tuned coarser becomes the short leg at the first acceleration ramp and the pair desynchronizes. Slaving also has interactions beyond geometry; one known quirk is the thud some slaved gantries produce on output commands, covered in why M10/M11 output commands thud on a slaved stepper gantry.

Commissioning the twin-motor Y axis #

  1. Wire the second Y motor to the fourth driver. Set that driver's current and microstep DIP switches to the same positions as the working Y driver's, using the table printed in your board's manual — the tables differ between boards, so do not copy a generic pinout.
  2. In Mach3's ports and pins screen, enable the fourth axis and assign its step and direction outputs to the parallel-port pins the board manual lists for that driver. Confirm every pin number against the manual, not another board's chart.
  3. In the motor tuning screen, enter the slave's values to match Y exactly. For example, a 5 mm lead screw with 200-step motors at 8 microsteps gives 1600 steps per revolution, which is 320 steps per mm or 8128 steps per inch; Y and the slave must carry the same number, plus the same maximum velocity and acceleration.
  4. Turn on slaving in Mach3's configuration, selecting the fourth axis as the slave of Y. The control lives in the axis configuration screens; your Mach3 manual names the dialog for the version you run.
  5. Jog Y a short move and watch both ends. Motors mounted mirror-image turn opposite ways for the same linear motion, so correct the slave with the active-low direction setting on its ports-and-pins line, or swap one winding pair on that motor.
  6. Compare the controller's step pulse width and direction setup time against the minimum pulse widths in the driver board's documentation. Both drivers see identical timing, but the port now services a fourth channel, so a marginal setting that survived three axes can fail here.

Keep hands clear of both ends whenever the axis runs under power; a gantry that racks pinches hard at its stops.

The skew one lost step produces #

The pair runs open loop: nothing reports a stall, so a motor that loses steps leaves the controller convinced both sides sit in position. The linear skew at the screw is lost steps × lead ÷ (steps per revolution × microsteps).

Worked example: with the setting above, each side has 200 × 8 = 1600 steps per revolution. A stall that drops 160 steps on one side of the 5 mm lead screw skews that end by 160 × 5 ÷ 1600 = 0.5 mm. Across a 1500 mm span between the screws, the racking angle is 0.5 ÷ 1500 = 0.00033 rad, about 0.019 degrees. That is a calculated example for these inputs, not a measured result — but half a millimetre of twist on a router gantry ruins a finish pass. The result moves with your own numbers: double the microstepping and the same stall halves the skew. Set the microstep switches before you compute this, because the steps-per-revolution count changes with them, as described in setting a stepper drive to 200 steps per revolution.

Heat fault or logic fault #

A twin-motor axis fails in two distinct classes, and the symptom separates them faster than any guess.

Symptom Class Confirming check
Driver and motor hot, torque fades after minutes Heat Read the current-setting DIP positions on both Y drivers; they must match, and both motor cases should run at similar temperature
Square at program start, drifts over a long run Logic — lost steps Compare the slave's tuning values against Y's, then lower acceleration and re-run; drift that stops points at the ramp
Binds or twists on the first jog Logic — direction The slave's direction is inverted or not, per commissioning step 5
One motor never moves Logic or wiring The slave mapping in the ports and pins screen, the enable line to that driver, and the slave selection itself
Both sides stall only at speed Torque or supply Supply voltage headroom and current setting against the speed the move needs, plus any mechanical bind

Heat on a stepper is mostly a phase-current question, and the mechanism is the same on a slaved pair as on any single motor — see why a stepper motor runs hot. A stall that appears only at speed is the supply question described in what a NEMA 23 stepper router needs from drivers and supply.

Verify squareness before cutting #

  • Jog Y in small increments and confirm both ends move together.
  • Mount a dial indicator or scribe a reference mark at each end, command a known Y move, and compare both ends against the commanded value.
  • Run a long back-and-forth program at working feed and acceleration, then re-measure; drift between the ends means one side is losing steps.
  • Check motor and driver temperature after the run; matching temperatures confirm matching current settings.
  • Re-square the gantry mechanically after any collision or stall, because with open-loop steppers the controller never sees the loss — only a mechanical reference restores the truth.

The decision, case by case #

  • Two Y motors on a four-driver board: slave the spare axis to Y. It is the only arrangement in which each motor gets its own driver and a full, independent step stream.
  • Two motors on one driver: refuse it. With example 2.8 A-per-phase motors the parallel pair demands 5.6 A per phase, 1.6 times the TB6560AHQ's 3.5 A datasheet maximum, and the series pair gives up roughly half its usable top speed.
  • One port pin feeding two drivers: refuse it. The shared direction level blocks the mirror correction a gantry needs, even where the logic levels hold.
  • After commissioning: prove squareness with a dial indicator before cutting, and treat drift over a program as lost steps — lower acceleration first, then check pulse timing.

Questions asked

Does slaving the spare axis cost me a rotary axis?

Yes, on that board. The fourth driver becomes the second Y motor's driver, so nothing is left for a rotary or a fourth linear axis while the gantry runs slaved. If rotary work matters as much as the twin-motor axis, the options are another board that adds driver channels or a controller with more axis outputs; you cannot run both jobs from the same four-driver board at once.

Why does the slaved motor turn the wrong way?

Motors mounted on opposite sides of the gantry face opposite directions, so the same direction level that drives the master forward drives the slave backward and the two sides fight each other. Correct it in software by making the slave's direction signal active-low, or in hardware by swapping one winding pair on that motor. Never correct it by exchanging the step and direction pins, which leaves the slave with no steps at all.

The gantry racked after a stall on one side. How do I recover the position?

Stop and re-square mechanically. An open-loop stepper never reports the stall, so the controller's coordinates still claim both sides are in position even after one end has slipped. Re-home, bring both gantry ends to a common machined reference or a dial-indicated line, and adjust until both read the same. Slaving fixed the wiring; only a mechanical re-square recovers the lost position.

What phase current should each driver be set to?

Each driver carries exactly one motor, so set it to that motor's own rated phase current, the same value you would use if it drove a single axis. Two motors on separate drivers share nothing; neither current nor anything else is summed across them. Take the DIP positions from the board manual's table for the microstep choice you made, and confirm both Y drivers end up identical.

Keep reading

  • Troubleshooting

    Why M10/M11 output commands thud on a slaved stepper gantry

    A single thud at M10/M11 output transitions on a software-slaved Mach3 gantry is a trajectory-planning problem: a CV distance tolerance of 1.5 sat on programmed reversal legs of 2 mm, so the planner tried to carry velocity through corners it could not follow. Removing that tolerance restored smooth motion with the output commands unchanged.

    Servo and stepper motion

  • Explainer

    Stepper motors on a friction wheel driven cutting machine

    Friction drive does not rule out stepper motors. The wheel must transmit the peak axis force, the friction coefficient times the normal force pressing it to the rail, without slipping, and the motor must hold synchronism through every commanded acceleration. Check wheel slip and lost steps as two separate limits, demand at least a two-to-one traction margin, and add feedback that reads the carriage before trusting open-loop position on a cutting machine.

    Servo and stepper motion

  • Troubleshooting

    Why a Stepper Axis Oversteps After a Timing Belt Conversion

    An axis that stops a fixed increment past target on every repeat after a timing belt conversion is losing steps, not coasting. Convert the measured drift into motor full steps: about half a revolution per repeat points at the new belt drive losing synchronism, a few microsteps after each reversal points at direction setup time, and drift only when two axes run together points at the shared 24 VDC supply.

    Servo and stepper motion