Explainer
The stepper axis command handshake behind an HMI button
Short answer
Pressing the HMI button only hands the PLC a request. The axis moves when the PLC loads the destination, selects the documented command, and takes the stepper module through its operating-state, command-selection and acceptance handshake. Set home-valid from homing completion at the sensor, never by zeroing the position register.

On this page
- Why doesn't the axis move when the HMI button writes the target position?
- What separates the HMI request from the stepper module command?
- What must happen before the module accepts a move command?
- How many pulses does a programmed position represent?
- Should the move be absolute or relative?
- When should home-valid be set on a stepper axis?
- How do you prove one axis before you enable all four?
- Questions asked
An HMI button never moves a stepper axis by itself. The button hands a request to the PLC program, the PLC loads the destination and issues a documented command to the stepper module, and the module starts pulsing the drive only once its operating-state, command-selection and command-acceptance handshake has completed. On the classic small-system setup — a dedicated stepper controller module such as the 1746-HSTP1 in an SLC 500 chassis feeding a pulse-input drive such as the STP-DRV-6575, programmed in RSLogix 500 — this article separates those four layers, works the pulse arithmetic behind a programmed position, and ends with the order that proves one axis before all four run.
Why doesn't the axis move when the HMI button writes the target position? #
The move instruction only copied your target into the stepper module's data table: the axis starts when the module also receives a documented move command through its operating-state, command-selection and command-acceptance handshake, and that is three events, not one.
A data-transfer instruction moves a value between PLC addresses. It can prepare an ingredient — a destination count, a speed, an acceleration value — but it never tells the module to act. Motion starts only when the manual's sequence has run: the channel sitting in the operating state that accepts commands, the move command selected, and the module's acceptance confirmed.
The symptom of a half-built handshake is silence: no fault, no motion, and no acceptance showing in the status data. Put the programming software online, issue one command by hand, and watch the module's status data. If acceptance never appears, the command chain in the ladder is incomplete — the problem lives there, not in the pulse wiring you were about to re-terminate.
The decision: stop reading a write to the position word as a move request, and audit the sequence against the manual's operating-state, selection and acceptance steps before anything else.
What separates the HMI request from the stepper module command? #
Four separate layers sit between an operator's fingertip and shaft torque: the HMI that requests, the PLC program that sequences, the stepper module that generates the pulses, and the drive that energizes the motor, and the button can only ever own the first job.
Give each layer exactly one job. The HMI sets a request and displays results. The PLC program checks permissives, orders the steps and translates the request into module commands. The module turns an accepted command into a pulse train. The drive turns pulses and direction into winding current. A perfectly programmed button satisfies only the first layer; the other three must be satisfied by the sequence, the module handshake and the drive wiring, in that order.
Keep the operator request momentary and hand it to a sequence state instead of wiring the button bit into every command rung. Downstream of the module the question turns electrical, and the choice between pulse-train and stored-move drive interfaces decides what the module must actually produce — the trade-offs are laid out in the PLC-to-stepper-drive interface guide.
The decision: the button is a request only, and every layer behind it proves its own readiness before the sequence advances.
What must happen before the module accepts a move command? #
Before the module pulses, the documented handshake needs the drive ready and enabled, the channel in the module's required operating state, the correct command code selected, the destination and motion data loaded in the manual's format, and the go command held only until the module confirms acceptance.
The stages, in the order the module's user manual specifies them:
- Ready — the channel reports not busy and no fault, and the drive reports enabled, before anything is written.
- State — the channel is placed in the operating state that accepts motion commands.
- Select — the command code for the move type is written.
- Load — destination, speed and acceleration are written in the documented format and held stable until acceptance; an HMI edit arriving during preparation corrupts the request.
- Issue — the execute control is set once, after the data is in place.
- Accept — the module's acknowledgment is read; a rejected command returns a reason, not motion.
- Complete — accepted, moving, done and fault are watched as distinguishable statuses, so a refusal, a stalled move and a finished move can never be confused.
Configuration sits before all of it: channel scaling, pulse output settings and the drive's input arrangement are the ground covered by configuring a pulse-output axis before its first programmed move.
The decision: a sequence that cannot show readiness, acceptance and completion as three separate statuses is not ready for production, however correct the destination value is.
How many pulses does a programmed position represent? #
Position data is a pulse count: for a 250 mm travel on a 5 mm-lead screw with the drive set to 2,000 steps per motor revolution, the destination is 250 × 2,000 ÷ 5 = 100,000 pulses — a calculated example for those inputs, not a measured result.
The setup calculation is:
pulses = travel × configured steps per motor revolution ÷ travel per motor revolution
Millimetres times steps per revolution, divided by millimetres per revolution, leaves a pure pulse count.
Worked example, inputs stated: directly coupled screw with a 5 mm lead, drive configured for 2,000 steps per motor revolution, target 250 mm from home. Destination = 250 mm × 2,000 steps/rev ÷ 5 mm/rev = 100,000 pulses, one pulse per configured step. Add a 3:1 gearbox between motor and screw and travel per motor revolution becomes 5 mm ÷ 3 ≈ 1.667 mm, so the same target needs 250 × 2,000 ÷ 1.667 ≈ 300,000 pulses — same formula, travel corrected for the ratio.
That count is what the module will command, not proof of what the shaft did: an open-loop stepper under load can fall out of synchronism, which is the subject of why a pulse-command axis loses position between moves. Prove the scaling once, physically: command a short known count — with the example settings, 10,000 pulses should produce exactly 25 mm — and measure the travel.
The decision: scale the destination once from the datasheet lead and the drive's configured step resolution, prove it with one measured move, and never tune a destination value to hide a mechanical discrepancy.
Should the move be absolute or relative? #
Choose an absolute move when the button must reach one fixed machine coordinate referenced to home, and a relative move when the action is an increment from wherever the axis sits now, because repeated relative commands accumulate travel while repeated absolute commands return to the same point.
An absolute move takes a destination measured from the established home coordinate, so the same button lands the mechanism on the same physical spot no matter where the previous cycle stopped. A relative move takes a distance applied to the current coordinate: right for deliberate increments such as feed advances, but five presses of a 10 mm relative move leave the axis 50 mm from the start, not on a fixed target.
For a button whose meaning is go to the programmed location, the decision is absolute: repeatability is the entire point, and a relative version silently changes the target every time the start position differs. Keep relative moves for buttons whose meaning genuinely is an increment, and never let one button serve both meanings.
When should home-valid be set on a stepper axis? #
Set the home-valid flag only when the homing command reports physical completion at the sensor, never by writing zero to the position register: zeroing changes the reported coordinate without locating a physical reference, so the axis can report home while sitting anywhere along its travel.
A needs-homing flag means something only while it reflects a physical event. Stepper positioning counts commanded steps, and without a reference the count is arbitrary: write zero into the position word and every absolute destination afterwards is measured from wherever the axis happened to be standing.
Build the homing stage in this order. Define the physical reference — the sensor plus the approach direction that makes its edge unambiguous. Use the module's documented homing command, whose manual entry states the approach behavior, the response to the reference input and the completion indication. Set home-valid only from that completion status. Clear home-valid on anything that makes the reference unreliable: a drive fault, a stall, a manual jog, a disabled amplifier.
The tell that completion was never tied to the sensor event is the axis that keeps traveling — why a servo axis keeps moving past the home sensor walks through exactly that symptom.
The decision: home-valid is earned at the sensor and revoked on doubt; it is never granted by editing a number.
How do you prove one axis before you enable all four? #
Commission one axis first, with travel clear and a slow profile: verify the home and limit inputs change state when their devices operate, confirm commanded direction against physical direction, run homing to the sensor, then command one short known move and watch accepted, moving and done appear in order.
Work one axis end to end before the sequence touches the other three, in the order that finds problems cheapest. Inputs first: force each home and limit device and watch its bit change. Direction second: a small commanded step must move the mechanism the commanded way. Homing third: the axis stops on the reference and reports completion. Then one short programmed move, using the count you already verified physically in the scaling check.
Only then replicate across all four. Give each axis its own sequence state so a second request on a busy axis is rejected rather than queued into corruption, and count the motion channels honestly: four motors need four channels that each run a full command handshake, the same capacity question examined in why three stepper axes need dedicated high-speed outputs.
Keep the hardwired limit switches, the drive enable chain and the stop circuit outside this HMI sequence entirely, designed per the machine's risk assessment and the stop and guard requirements of IEC 60204-1; a software request never substitutes for them.
The decision: the four-axis button goes live only after each single axis has passed the input, direction, homing and known-move checks, with the stop chain independent of the HMI.
Questions asked
Should the HMI pushbutton stay latched until the axis reports done?
No, make it a momentary request. A held button can re-trigger a command the instant the sequence releases, or hide the difference between a request and an acceptance. Latch the request bit inside the PLC sequence instead, and drive the button's indicator lamp from the module's done and fault status so the screen shows what the axis actually did.
What if the home sensor is already active when homing starts?
The homing stage needs a defined answer before the first run, not an improvisation at the machine. Most documented homing modes back off the sensor and re-approach in the set direction, so completion lands on a fresh edge. Use the module's documented homing mode as written; an undefined start-on-sensor case is how an axis ends up believing it is home in the wrong place.
How long should the sequence wait before calling a homing timeout?
Take the timeout from measured travel and homing speed, then add margin. For example, 500 mm of travel at a homing speed of 50 mm/s takes 10 s of motion, so a 15 s timeout leaves room for approach and settle. A timeout means the axis never confirmed home: treat it as a fault that stops the sequence, never as a completed homing that quietly sets the flag.
Can one HMI button home all four axes at once?
Home the axes one at a time unless the module documents a simultaneous group mode. Each axis needs its own command acceptance and completion status, and watching four homing moves at once makes a single late axis hard to identify. The module's channel count and command structure decide what is possible, so take the group behavior from its manual rather than assuming the sequence can fan one command out to four channels.


