Troubleshooting
Why a stepper axis moves in Step Response but not the CNC jog
Short answer
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.

On this page
- Why does the stepper move in Step Response but not from the CNC jog?
- Which step and direction generator is wired to the expansion connector?
- How do you assign the A axis to controller axis 4?
- Should unused expansion connector pins be grounded?
- Why does the encoder count plus one, minus one, over and over?
- What order should you apply the fixes in?
- Questions asked
A stepper axis that moves from the Step Response screen but ignores the CNC jog buttons is not a wiring failure waiting to be discovered; it is a routing problem with two independent mappings. Step Response commands a controller axis directly, so it proves that axis, its output channel and the drive path all work. A jog from KMotionCNC on a KFLOP controller travels a longer road: the CNC letter must be assigned to that same controller axis in the coordinate system, and the axis must output through a step and direction generator on the connector the drive is wired to. When either mapping points elsewhere, the jog does nothing while Step Response keeps moving the motor. Fix the coordinate system first, the output channel second, and the encoder feedback last.
Why does the stepper move in Step Response but not from the CNC jog? #
Step Response drives the controller axis directly, while a CNC jog passes through the coordinate system assignment first, so a motor that moves one way and not the other has a proven axis-to-drive path and a broken command path upstream of it. Everything below the axis — generator, connector, cable, drive, motor — is demonstrated working the moment Step Response moves it. The fault sits above the axis, in one of two mappings, so check them cheapest first:
- Read the coordinate system line in the initialization code. It decides which controller axis each CNC letter commands. Confirming check: the letter being jogged must map to the same axis number that moved in Step Response; if it does not, the jog is commanding an unassigned or differently wired axis.
- Read the output channel setting of that axis. It decides which step and direction generator carries the axis's pulses, and each generator lives on one connector. Confirming check: the selected generator must belong to the connector the drive's pulse and direction wires actually land on.
- Compare the drive wiring with that generator's documented pins. Confirming check: the drive's PUL- and DIR- inputs must sit on the pins the controller documentation lists for the selected generator, with the plus terminals tied to the 5 V supply the way the reported working wiring does.
Which step and direction generator is wired to the expansion connector? #
Generators 4 through 7 are the ones brought out on the expansion connector JP5, while the setting ch4->OutputChan0=2 selects generator 2, which comes out on the main connector JP7; the axis number and the generator number are independent choices. Controller axis 4 does not automatically use generator 4. Axis numbers are logical, generator numbers are physical output circuits, and the output channel setting is the only bridge between the two.
With axis 4 set to generator 2, its pulses leave through JP7 whether the command comes from Step Response or from a jog — so a drive wired only to JP5 cannot be driven by that axis at all, and any motion observed proved the main-connector path, not the expansion one. The wiring that worked on the main connector was PUL+ and DIR+ to pin 24 (VDD5), PUL- to pin 15, DIR- to pin 16. The attempted expansion wiring took PUL+ and DIR+ to the same 5 V pin, PUL- to pin 1 (IO36) and DIR- to pin 2 (IO37). That wiring works only after the axis selects the generator from 4 through 7 that owns IO36 and IO37; take that generator number from the controller's JP5 documentation, and if Step Response stops moving the drive after the switch, the selection is wrong — fix the selection, not the wires.
How do you assign the A axis to controller axis 4? #
DefineCoordSystem assigns the CNC letters in X, Y, Z, A order, so DefineCoordSystem(0,1,-1,4) puts X on axis 0, Y on axis 1, nothing on Z, and A on axis 4 — while the earlier DefineCoordSystem(0,1,4,-1) made axis 4 the Z axis and left A unassigned. The controller manual states the rule: the function sets axis assignments for up to six coordinated-motion axes, and any unused coordinate is given an axis channel of -1.
The third argument is the Z slot, which is why the original line parked axis 4 under Z: a Z jog would have driven it, while the A buttons commanded an unassigned coordinate and produced nothing. Enabling axes 0, 1 and 4 in the axis window does not change this — the enable setting permits an axis to be commanded, and the coordinate system decides which CNC letter reaches it. Both lines are needed, and neither substitutes for the other.
Should unused expansion connector pins be grounded? #
No: unused inputs on the expansion connector are designed to be left floating, and grounding pins 5 through 7 is unnecessary and risks damage, especially if a grounded pin is later configured as an output and driven high. If those grounds were added while chasing the jog fault, undo them; the jog started working because the coordinate system line was corrected in the same session, not because anything was grounded. Disconnect power before opening the connector — a grounded pin driven high by the controller is a direct short on that output driver.
Why does the encoder count plus one, minus one, over and over? #
A position readout that alternates plus one and minus one is the signature of one open quadrature channel: the counter sees edges on one channel only and steps forward and back instead of accumulating in the direction of travel. Inspect both signal paths — A channel and B channel — at the encoder, the cable, the connector and the configured input channel. The input-side checks are the same ones described for counting encoder pulses on a PLC without losing position: prove each channel toggles on its own, then prove the pair in quadrature.
Only after both channels count does the feedback scaling mean anything, and for the reported hardware it works out to one-to-one. Calculated example for those inputs, not a measured result:
- Encoder: 1000 lines per revolution.
- Quadrature decoding: 4 counts per line, two edges on each of two channels.
- Feedback resolution: 1000 lines/rev × 4 counts/line = 4000 counts per revolution.
- Drive setting: 4000 pulses per revolution.
- Ratio: 4000 counts/rev ÷ 4000 pulses/rev = 1 count per commanded pulse.
The confirmation test follows directly: command one motor revolution and the feedback must change by 4000 counts; command half a revolution and it must change by 2000. A readout that oscillates around zero or climbs at a fraction of that rate means a channel is still missing, and any tuning on top of it is noise. Pass this test before you convert an open loop stepper to closed loop control on this feedback.
What order should you apply the fixes in? #
Correct the mappings before touching hardware: identify the axis that moves the motor, fix the coordinate system, point the axis at a generator on the wired connector, then prove the encoder counts before any loop tuning.
- Run Step Response on controller axis 4 and confirm the intended motor moves; that is your working axis, end to end.
- Change the coordinate line to
DefineCoordSystem(0,1,-1,4)so the A jog commands axis 4 and Z stays unassigned. - If the drive is wired to JP5, replace the generator 2 selection with the generator from 4 through 7 that owns IO36 and IO37, exactly as the controller documentation lists it.
- Remove any grounds added to unused JP5 pins, with power disconnected.
- Initialize and enable, then jog A in both directions from the CNC screen and confirm the motor follows each press.
- Command one revolution and confirm the feedback change from the calculation above before tuning anything.
The decision: a jog that now moves the motor confirms the fault was routing, and nothing in the wiring needed to change; a Step Response that stops moving the drive after step 3 means the generator selection does not match the wired pins — correct the selection from the documentation table, not the wires.
Questions asked
Why did grounding the unused expansion pins seem to fix the jog?
It did not. The coordinate system line was corrected in the same session, and that edit is what made the jog work; the grounds changed nothing. Unused inputs are designed to be left floating, so remove the ground wires, because a grounded pin that is later configured as an output and driven high puts a short on the driver.
Why does the Step Response graph for axis 4 look different from axis 1 with the same motor and drive?
The two axes are configured with different StepperAmplitude settings, 20 on axes 0 and 1 and 250 on axis 4, so the graphs are not directly comparable. Match the settings before comparing the two moves, and do not read a scaling error into graph shapes while an encoder channel is still faulty.
One encoder channel shows no counts at all. Is that the same fault?
No. Alternating plus one and minus one counts means one of the two quadrature channels is missing while the other still toggles. A channel that shows nothing at all means its own signal path is dead: check the encoder supply, that channel's wire and connector, and the input channel configuration before blaming the counter.
Does the A axis have to sit on the next free controller axis number?
No. The coordinate system accepts any controller axis number in any letter slot, so A can live on axis 4 while axis 3 stays unused, which is exactly what the corrected assignment does. Choose axis numbers by the wiring and the output channel you want to use, then let the coordinate system line join them to the CNC letters.
