Troubleshooting
Why M10/M11 output commands thud on a slaved stepper gantry
Short answer
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.

On this page
A thud that lands exactly at M10/M11 output transitions on a Mach3 gantry is almost never the outputs. On the machine described here, the cause was trajectory planning: a CV distance tolerance of 1.5 was active while the program contained reversal legs of only 2 mm, so the constant-velocity planner tried to carry feed through corners it could not physically follow. Removing that tolerance restored smooth motion with the output commands left exactly as they were. Diagnose path blending on short moves before touching the outputs, the macros, or the software version.
Why the outputs looked guilty #
The symptom was misleading on purpose. The G-code switched outputs at the ends of the shortest moves in the program, so every disturbance landed on a block that also contained an M10 or M11. A thud at every feed from 1,000 to 15,000 mm/min is the tell: a genuine output-timing or command-handling fault usually shows a speed dependence, because the time window in which the output must switch shrinks as feed rises. A disturbance that follows the same blocks regardless of feed is geometry-driven, and geometry is the trajectory planner's business, not the output circuit's.
What the CV distance tolerance actually permits #
In constant-velocity mode the planner looks ahead across block boundaries and rounds the corner so the axis does not decelerate to a full stop at every vertex. The distance tolerance is the leash on that rounding: how far the blended path may deviate from the programmed path in the active units. A generous tolerance keeps feed high on long, shallow corners. On short legs it authorizes the planner to consume most of the segment as blend region, which means commanding a velocity reversal over a distance the mechanics cannot deliver torque over.
This is the same family of error as expecting gain changes to fix a rough axis when the disturbance is mechanical or commanded: the controller does what the trajectory asks, and the trajectory is wrong. If you come to this from the tuning side, the article on why gain changes cannot smooth a rough servo axis covers that half of the diagnosis.
The reversal region, with the arithmetic #
The critical part of the program, in absolute positioning under G90, is this excursion and the moves around it:
G01 F4500.00 X339.00
M11P4
G01 F4500.00 X341.00
M10P3
G01 F4500.00 X339.00
M11P2
G01 F1250.00 X231.00
Assuming millimeter units are active, each reversal leg spans 341.00 minus 339.00, which is 2 mm. The feed through the region is F4500.00, which is 4500 mm/min divided by 60, or 75 mm/s. So each leg takes 2 mm divided by 75 mm/s, roughly 27 milliseconds of pure traverse time. Now set the blend window against that: a permitted path deviation of 1.5 against a 2 mm leg puts three quarters of the segment inside the blend region. There is essentially no straight portion left for the planner to work with; it must either decelerate violently or attempt a velocity reversal inside that window.
Put a number on the violent option. Decelerating from 75 mm/s within the 1.5 mm window requires a = v² / (2 s) = 75² / (2 x 1.5) = 5625 / 3 = 1875 mm/s², about 1.9 m/s². That is a calculated example for these inputs, not a measured acceleration, but the order of magnitude is the point: a mid-speed stepper's available torque is well below its holding torque, and an acceleration spike of that size at a block boundary is exactly where the margin runs out. The motor misses steps, the axis sounds like it hit something, and with two motors on the gantry the miss is rarely symmetric.
Why one motor falling behind racks the gantry #
Mach3 software slaving sends the same commanded movement to both motors; it cannot detect that one of them physically stalled. If the torque spike catches only the lagging side, that side ends the block a few steps short, the gantry is no longer square, and the resulting bind loads both motors further. The next reversal demands even more torque, which is how a single thud escalates into a gantry that jams. Nothing about the output commands is required for any of this to happen; they simply sat on the guilty blocks.
The fix, in order #
Work through this sequence and change one variable at a time:
- Back up the Mach3 profile first: CV settings, axis tuning, the slave assignment, the software version and the motion controller plugin version, all recorded.
- After any stall, inspect the machine before re-powering: gantry squareness, free travel through the affected region, couplings and any mechanical interference. Restore the reference condition.
- Remove the distance tolerance of 1.5 from active use using the CV controls of your installed version, and verify its disabled state on screen rather than assuming a zero entry means the same thing.
- Keep the motion blocks and the M10/M11 sequence untouched for the comparison, with tooling and output-driven equipment in a safe state, and dry-run the affected region at reduced feed.
- Raise the test to the production feed, staying inside the machine's stated ballscrew limit, and only then judge the result.
The safety point sits in step 2: a racked gantry re-powered without inspection turns a positioning fault into a crash. Re-establish square and reference before any driven test.
Acceptance: proving the gantry is still right #
Smooth sound is not an acceptance test. A gantry can run quietly while one side sits steps behind the other:
- Run repeated passes through the short reversal and the output transitions, watching for impacts, hesitation, binding and drive fault indications.
- Measure the return position of each gantry side against fixed references and compare with the machine's required positioning and squareness tolerances.
- Verify the physical output switching points against the positions the process needs; smooth motion does not prove switching accuracy.
- Repeat under the real mechanical load and duty cycle while watching drive temperature and supply behavior.
If the thud survives the CV fix #
Only now does the output path become a suspect, and there is a cheap test that settles it: run the same program with the M10 and M11 lines deleted. A thud that persists at the same blocks convicts the trajectory; a thud that vanishes points at output-command handling in your Mach3 build or controller plugin, and comparing software versions becomes the next controlled variable. Direction-configuration faults are a separate Mach3 failure with their own symptoms, covered in the article on reversing an axis after a belt drive retrofit in Mach3.
Replacing the outputs with stop-and-switch macros is the fallback, not the fix: it deliberately stops motion at every switching point, which is acceptable only if the process tolerates the stop, and it leaves the planning condition in place to bite the next short-reversal program. Correct the trajectory first, verify the gantry against references, and keep the macros in reserve.
Questions asked
How do I prove the outputs are innocent before changing any settings?
Run the same program with the M10 and M11 lines deleted, so no output ever switches. If the thud still lands at exactly the same motion blocks, the outputs are bystanders and the fault is in the trajectory. This test takes one dry run and prevents you from spending an evening rewriting macros for a problem the macros never caused.
Does removing the CV distance tolerance make every corner stop?
No. The planner still blends moves where the corner angle and your configured acceleration allow it; what disappears is permission to deviate from the programmed path by a fixed distance regardless of geometry. On this program the sharp reversals gain a brief deceleration at each corner, which is exactly what the mechanics needed. Long tangential blends in other programs are unaffected.
Will raising the drive current stop the lost steps?
Not this fault. The disturbance is an acceleration spike the trajectory asks for at a block boundary; more current adds holding torque at low speed but extra heating in the motor and drive, and the spike still exceeds what the motor can deliver mid-reversal. Raise current only to match the motor's rated specification, never above it, and only after the trajectory itself is clean.
Is a CV distance tolerance of 1.5 wrong in general?
No. The same value is harmless on programs whose shortest segments run tens of millimetres, because the blend window is a small fraction of each leg. The failure condition is a tolerance comparable to the shortest programmed leg, which here was 2 mm. A workable rule of thumb: keep the tolerance well under a tenth of your shortest segment, or remove it for programs full of short reversals.
Why does software slaving make this worse than a single motor?
Software slaving sends the same step commands to both motors but cannot see that one of them stalled. If the torque spike catches only one side, that side falls behind by whole steps, the gantry racks, and the bind adds a second, mechanical stall on top of the electrical one. Always re-check squareness against fixed references after any stall, not just the sound of the next run.


