AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Selection guide

PLC to stepper drive interface options: pulse train or stored moves

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

Short answer

For a repeated forward-X, back-X/2 move, give the profile to an intelligent drive with stored moves and handshake it with plain PLC I/O; use a step-and-direction drive only when the PLC's pulse-output hardware supports the speed, ramping and interface. The scale is pulses for one millimetre of travel, P = S x M x G / L, and the forward pulse count must be divisible by two.

On this page
  1. Check the pulse-output hardware first
  2. Selection table: pulse train versus stored moves
  3. Match the drive input, not the motor, when signals fail
  4. Sizing the pulse scale for a 100 mm forward move on a 5 mm/rev screw at 8 microsteps
  5. Give the acceleration ramp one owner
  6. Build the bill of materials after the interface decision
  7. Questions asked

A stepper axis that must move forward X and back by X/2 from a PLC has two legitimate interfaces. Either the PLC's pulse-output hardware feeds a step-and-direction drive, or plain PLC I/O handshakes with an intelligent drive that stores both moves and generates the pulses itself. For a simple repeated sequence, commit to the stored-move drive: two or three I/O points, no pulse timing to tune, and the ramp lives in the drive. Choose the pulse-output route only when the PLC's documented pulse hardware meets the speed and ramping needs below.

Check the pulse-output hardware first #

Read the catalog number and output specification of the exact PLC. Outputs fall into three classes, and only two can drive a step-and-direction drive:

  • Ordinary discrete output. It updates once per scan, so it cannot make a controlled pulse train at useful speed. The reasons are covered in why a PLC digital output cannot make a stepper pulse train.
  • Hardware high-speed pulse output. A transistor output with a hardware pulse engine behind it. For example, one compact PLC family documents a 20 kHz pulse output for this job. That figure is specific to that hardware and its pulse-output documentation, not a rating for every output or every PLC. The timing and wiring details for this class are in stepper pulse timing from a PLC discrete output module.
  • Positioning or stepper module. A dedicated card generates the whole move. In the documented SLC stepper controller module, for example, the programmed speed value sets the pulse-train frequency and the sign of the destination value sets the direction output, which shows where the profile lives: in the module, not in ladder logic.

If more than one axis is involved, see why three stepper axes need dedicated high-speed outputs before counting outputs.

Selection table: pulse train versus stored moves #

Criterion PLC pulse output + step-and-direction drive Intelligent drive with stored moves + I/O handshake
Where the move profile lives PLC pulse engine or motion module Inside the drive
PLC hardware needed Documented high-speed pulse output or motion module Any ordinary output and input
Wiring Pulse, direction, common, enable GO output, DONE input, optional selection lines
Ramp handling Only if the pulse engine or module supports it Programmed once in the drive
Changing the distance Change the pulse count in the PLC Rewrite the stored move in the drive
Scalability One pulse channel per axis Binary selection lines address several moves
Best fit Varying distances, coordinated or many axes Fixed repeated sequences like forward X, back X/2

Three binary selection outputs encode eight combinations; whether all eight are usable depends on the drive's selection scheme, so read the drive documentation for the exact count.

Match the drive input, not the motor, when signals fail #

With a step-and-direction drive, identify the pulse input, direction input, enable circuit, signal reference and status outputs. Match voltage level, input current, polarity and single-ended versus differential signaling between the PLC side and the drive side, and take the required pulse width and direction setup/hold times from the drive datasheet. Changing the motor never fixes a logic-level mismatch; a compatible drive or a signal-level converter does.

Measure pulses with a scope or a counter that resolves the waveform. A static voltage reading proves nothing about pulse integrity.

Sizing the pulse scale for a 100 mm forward move on a 5 mm/rev screw at 8 microsteps #

With a step-and-direction drive, the PLC must know how many pulses make one millimetre of travel. The figures below are a calculated example, not a measured result.

Inputs

  • S = 200 full steps per motor revolution, from the motor's step angle (a 1.8 degree motor).
  • M = 8 microsteps per full step, the drive's microstep DIP or software setting.
  • G = 1 motor revolution per load revolution, a direct-coupled screw with no belt or gearbox.
  • L = 5 mm of travel per load revolution, the screw lead.
  • X = 100 mm forward travel, the move distance.
  • Speed = 50 mm/s, the required running speed.

Rule. Pulses for one millimetre of travel P = S x M x G / L, for a fixed-ratio transmission without slip.

Arithmetic

  • P = 200 x 8 x 1 / 5 = 320 pulses per mm.
  • Forward count = 100 mm x 320 = 32,000 pulses.
  • Reverse count = (100 / 2) mm x 320 = 16,000 pulses.
  • Pulse frequency = 50 mm/s x 320 = 16,000 Hz.

Result and decision. The forward count of 32,000 divides by two exactly, so the half move needs no rounding rule. The required 16 kHz sits under the example hardware's documented 20 kHz limit with 20 percent headroom, so that pulse output can run this axis at 50 mm/s; above 20 kHz of demand, reduce speed, drop the microstep count or move the profile into the drive. After the two moves the axis rests nominally 50 mm forward of its start, not at the start, which is why the sequence needs a home reference if the position must repeat. For a rotary axis, use degrees per load revolution in place of L; the degree arithmetic is in setting gear ratio for degree moves on a rotary servo axis.

Give the acceleration ramp one owner #

A stepper started at its full running pulse frequency stalls because the rotor and load cannot accelerate instantly. Establish exactly one component that generates the ramp:

  • Pulse engine with ramping: configure acceleration, running speed and deceleration in the PLC pulse function.
  • Motion module: let the module run the complete profile.
  • Intelligent drive: store distance, direction, speed and ramps in the drive, then trigger with I/O or its command interface; sending serial move commands to a stepper driver covers the command-format case.

Not every high-speed output has ramping, and not every pulse-input drive builds a ramp from an external train, so read the actual operating mode before assuming either one smooths the command. Commission at conservative speed and acceleration under the real load.

Build the bill of materials after the interface decision #

Common to both routes: a motor sized for the load, a drive matched to the motor's winding current, the supply the drive's input specification calls for (not the motor winding voltage), the transmission, wiring and a home or limit sensor.

  • Pulse route: the compatible high-speed output or motion module, pulse and direction wiring, and any signal-level converter the interface requires.
  • Stored-move route: the intelligent drive, one GO output and one DONE input, plus selection lines if more moves are stored.

One safety note: stored energy and unexpected motion during commissioning are machine-safety matters, so follow the machine's risk assessment and the applicable safeguarding standard when you jog an unproven axis for the first time, and never treat a drive DONE signal as proof of physical position without an independent reference.

Questions asked

Can I generate step pulses by toggling a normal PLC output in ladder logic?

No. An ordinary discrete output updates once per PLC scan, and scan jitter makes the pulse timing unusable for controlled positioning at useful speeds. Use the hardware pulse output, a motion module, or a drive that generates the pulses internally.

Does increasing microstepping improve the axis positioning accuracy?

Not by the same factor. Microstepping smooths motion and reduces resonance, but the motor's mechanical accuracy does not scale with the microstep count, and each extra microstep multiplies the pulse frequency the controller must produce for the same speed.

What does the axis need for a repeatable return to a known position?

A home or reference sensor and a homing routine. The stored-move sequence leaves the axis nominally X/2 forward of its start, so accumulated error or a lost count is invisible until the next reference move. Wire a limit or reference switch and home before each cycle if the position must be trusted.

How many PLC I/O points does a stored-move handshake use?

At minimum one PLC output for the GO command and one PLC input for the drive's DONE status. Three binary selection outputs on the drive's input bank encode up to eight stored moves, whether all eight are usable depends on the drive's selection scheme and its documentation.

Keep reading

  • How-to

    Stepper Label Registration: Edge Home Plus Dynamic Move

    Register every label with an edge-search home move that the motion module runs against the gap sensor, then feed the label length with a separate dynamic position move whose pulse count lives in a PLC register the HMI edits. Teach the count by jogging between like label edges, and keep the taught pitch (face plus gap) separate from the fixed sensor-to-dispense offset.

    Servo and stepper motion

  • Explainer

    Why a PLC digital output cannot make a stepper pulse train

    An ordinary PLC digital output switched by scan logic cannot produce a steady 2 kHz step pulse train: each pulse is just 500 microseconds wide at that rate, and scan-time jitter becomes pulse-timing error the driver counts as lost or extra steps. Feed the driver's step and direction inputs from a dedicated pulse-output channel, and set shaft speed from pulses per revolution.

    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