AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Troubleshooting a stepper axis that moves in one direction only

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

Short answer

When both halves of a forward-and-back Move travel the same way, the step pulses are fine and the direction state is not reaching the driver. Watch I/O bit 9 on the Digital IO Screen during the move: if it toggles, the fault is downstream in the KSTEP direction path from JP36 pin 16 through R71 and U23 to U17 pin 30. In the reported case a cold joint at U23 pin 4 passed continuity only under probe pressure, and restoring the joint fixed the axis.

On this page
  1. The symptom pattern that clears the step chain
  2. Isolate the axis before opening anything
  3. Check the commanded direction at the controller
  4. Worked example: the direction bit for a channel set to OutputChan0=8
  5. Trace the direction path with the power off
  6. Confirm the fault and repair it
  7. Questions asked

When a step-and-direction axis completes both halves of a forward-and-back Move travelling the same way, the step pulses are reaching the driver and the direction state is not. Leave tuning alone. Watch I/O bit 9 on the Digital IO Screen while the Move runs, then, with the power off, trace the channel's direction path on the KSTEP board from JP36 pin 16 through R71 and the U23 optocoupler to U17 pin 30. In the installation this procedure comes from, continuity at U23 pin 4 appeared only while the meter probe pressed the pad, and restoring that one joint gave the axis both directions back.

The symptom pattern that clears the step chain #

A healthy channel runs the Move on the Step/response screen as a move out, a brief stop, then a return to the starting point. The faulty channel ran a move out, a brief stop, then a second move in the same direction. Raising the move time or size lengthened the travel and changed nothing else. The motor did not stall, made no abnormal noise and kept normal holding torque, and the KMotionCNC jog buttons produced the same rotation for positive and negative commands.

That combination is the signature of a working pulse chain with a lost direction state: the driver receives steps and drives them, but the DIR level never changes. An axis that moves in Step Response but will not jog at all from the CNC screen is a different fault, covered in why a stepper axis moves in Step Response but not the CNC jog. If your axis drives an external step/dir amplifier through a breakout cable instead of onboard channels, start with the wiring checks in troubleshooting STEP/DIR spindle wiring to a stepper drive.

Isolate the axis before opening anything #

The numbers here come from one real installation: KFLOP version 4.34, external +5 VDC board power through the KFLOP MOLEX connector, a 48 VDC supply on the KSTEP motor power connector and the voltage clamp set to 49 V. The swaps and continuity readings found the fault, not those supply values; a supply or clamp problem faults or trips, it does not delete one channel's direction while three channels stay healthy.

  1. Swap the channel 0 motor with a motor from a working channel, channel 2 in this case. The symptom stayed with channel 0, which eliminates the motor and its field wiring.
  2. Copy channel 0's configuration to a working channel and run the same motor there. It behaved correctly on channel 2, so the settings are not the cause.
  3. Reseat the ribbon cable from KFLOP JP7 to KSTEP JP36 and ohm it end to end. That cable read closed on every pin, including the direction line on pin 16.
  4. If user data has been flashed to the KFLOP, remove it by flashing "New Version" and retest. The one-way motion survived the reflash, so stored code was not overriding the channel.
  5. Inspect the board's pins and contacts for contamination or corrosion. None was visible in the diagnosed case.

The configuration under test in step 2 was:

ch0->InputMode=NO_INPUT_MODE;
ch0->OutputMode=STEP_DIR_MODE;
ch0->Vel=7000;
ch0->Accel=700000;
ch0->Jerk=7e+06;
ch0->OutputChan0=8;
ch0->OutputGain=1;
ch0->StepperAmplitude=20;

These are evidence from that installation, not settings to copy; what matters diagnostically is that they ran correctly, unchanged, on another channel.

Check the commanded direction at the controller #

Before condemning any board, watch what the controller commands. Open the Digital IO Screen, run the forward-and-back Move and watch I/O bit 9 through both halves.

Observation Decision
Bit 9 never changes state The fault is on the KFLOP side: the command, the channel configuration, or the bit 9 output itself. Do not condemn the KSTEP yet.
Bit 9 toggles, but the pin 16 line of the JP36 cable reads open Reseat or replace the JP7 to JP36 ribbon cable.
Bit 9 toggles and the cable is closed, but the path opens inside the KSTEP The fault is in the channel 0 direction path on the KSTEP board.

In the diagnosed system bit 9 changed between on and off at each reversal, so the controller passed and the hunt moved downstream.

Worked example: the direction bit for a channel set to OutputChan0=8 #

Inputs, with their source:

  • Channel 0's output assignment, OutputChan0=8, a bit number with no unit, from the installation's configuration listing above.
  • The output mode, STEP_DIR_MODE, from the same listing.
  • The test itself: the forward-and-back Move on the Step/response screen, watched on the Digital IO Screen.

The rule, in words: in step and direction output mode, the channel sends its step pulses on the I/O bit named by OutputChan0 and holds the direction state on the next bit up.

The arithmetic:

  • Step bit = 8
  • Direction bit = 8 + 1 = 9

The result: channel 0's direction state lives on KFLOP I/O bit 9, which is why the check above watches bit 9 rather than the step bit.

The decision: during the Move, bit 9 must change state at the reversal. A bit that toggles passes the controller and sends you to JP36 pin 16 and the KSTEP path; a bit that never toggles stops you at the KFLOP command, configuration or bit 9 output. Here bit 9 toggled, so the fault had to be downstream of the controller.

Trace the direction path with the power off #

Remove all power before these readings, and never use probe pressure on an energized board: the pins are closely spaced and a slipping probe shorts them. Work in order, from the connector inward:

  1. The direction signal enters at JP36 pin 16, read relative to KFLOP ground.
  2. It connects to resistor R71: in on pin 2, out on pin 6.
  3. It enters the U23 optocoupler on pin 4 and exits on pin 6; from pin 6 onward, readings are relative to KSTEP ground.
  4. It arrives at the stepper controller, U17 pin 30.

Cable continuity does not prove the whole path. Here the open appeared at U23 pin 4: continuity existed only while the probe pressed the pin 4 pad. A reading that comes and goes with pressure is the classic cold solder joint, so confirm it by visual inspection, a resistance reading, and the powered Move test before any rework.

Confirm the fault and repair it #

With power restored, pressure on the U23 pin 4 pad made channel 0 complete the Move in both directions. Pressure-dependent continuity plus restored reversal under pressure localizes the fault to that joint, pin or pad. The replaceable parts on this path are R71 and U23 itself; U17 is not a practical field replacement.

Reflow the U23 pin 4 joint with proper soldering equipment and inspect the pad afterward. Replace U23 only if the joint proves sound and the path still fails. Without the rework equipment or the magnification to judge the pad, send the board for assessment instead; the documented route is a support contact with the board's manufacturer for an RMA number. Do not leave probe pressure as the repair.

Then verify, without touching the board, cable or connector during the test:

  • I/O bit 9 toggles on the Digital IO Screen during the Move.
  • The Move goes out, pauses and returns to its starting point.
  • Positive and negative jog commands give opposite rotation.
  • The result repeats after a power cycle and does not depend on where anything is pressed or flexed.

Questions asked

Why does the controller believe the axis is home when it has travelled twice the move distance?

The forward-and-back Move nets to zero in the controller's position counter, because it commands the move distance out and the same distance back. With direction lost, both halves travel the same way, so the axis sits twice the move distance from its start while the controller reads zero. Any saved coordinate or later move therefore starts from a false zero. Re-home the axis after the repair and before running any program that uses stored positions.

Why does the ground reference change at U23, and can I ohm straight through the optocoupler?

The optocoupler is the isolation barrier between the two boards. Everything from JP36 pin 16 through R71 to U23 pin 4 is referenced to KFLOP ground; everything from U23 pin 6 to U17 pin 30 is referenced to KSTEP ground. A meter lead on the wrong ground reads a healthy path as open. You cannot ohm through the device from pin 4 to pin 6, because an LED drives a phototransistor with no electrical connection, so test each side against its own ground.

What if bit 9 toggles and every joint reads closed, but the axis still runs one way?

Then a part has failed rather than a joint. Power the board, run the Move so the direction keeps reversing, and watch U23 pin 6 relative to KSTEP ground: it should change level each time bit 9 changes. A verified changing signal arriving at pin 4 with no level change at pin 6 means the optocoupler is dead, and replacing U23 is the repair. A changing pin 6 with no reversal at the motor points to U17 pin 30 or the stepper controller beyond it.

Can the other channels keep running while channel 0 waits for its repair?

Yes. In the reported system the remaining channels tuned and jogged normally on the same controller, board and supplies, because each channel has its own direction path. Disable channel 0 in the configuration so no program commands it, expect to re-home everything after the repair, and power the system down before reseating any connector or probing the board.

Keep reading

  • Explainer

    What a Stepper Driver Control Connector Needs From a PC

    A PC can drive a stepper driver's control inputs only when the step and direction signals meet the driver's documented input voltage and current, and the current-select inputs are grounded or pulled high to match the motor's rated current before power-up. Buffer the PC outputs whenever their levels or drive current are uncertain.

    Servo and stepper motion

  • Troubleshooting

    Why a stepper axis moves in Step Response but not the CNC jog

    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.

    Servo and stepper motion

  • Troubleshooting

    Troubleshooting STEP/DIR spindle wiring to a stepper drive

    Wire the spindle step/dir output with three conductors: pin 2 to PUL+, pin 3 to DIR+, GND to both PUL- and DIR-, and pin 1 left unconnected, since it has no role in step/dir mode. If the motor steps but will not reverse, command both directions and meter pin 3 for a level change before suspecting the drive.

    Servo and stepper motion