AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Why an SR40 PLC needs a stepper drive between output and motor

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

Short answer

No output point on an SR40 PLC can drive a stepper motor. Its 16 onboard outputs are relay contacts rated 2 A, and a mechanical contact cannot produce a step pulse train or commutate winding current. The working connection runs SR40, then stepper drive, then motor: a pulse-capable source feeds the drive's step and direction inputs, and the drive alone switches phase current from the motor supply into the windings.

On this page
  1. What you observe when winding leads reach PLC terminals
  2. Read the order designation before anything else
  3. The command and power boundary
  4. Match the drive's command interface electrically
  5. Check the pulse rate the motion demands
  6. The decision for each connection
  7. Questions asked

A stepper motor never connects to the output terminals of an SR40 PLC, and no wiring trick rescues that connection. Its 16 onboard outputs are relay contacts rated 2 A: a mechanical contact cannot generate a step pulse train, and no PLC output point commutates winding current or regulates phase current the way a stepper needs. The connection that works has two stages, with the SR40 on the command side of a stepper drive and the drive alone on the power side of the motor. The checks below run in the order that costs least: read the output hardware, separate command wiring from power wiring, match the electrical interface, then verify the pulse rate the motion demands.

What you observe when winding leads reach PLC terminals #

Observed symptom: the shaft sits still, hums or twitches while the program reports motion, and an output point may have failed. Two independent limits produce that behavior, and neither is a program fault:

  • No pulse source. A relay contact cannot open and close at step rates, and contact bounce alone registers at the drive as extra steps. The switching-side reasons are the same ones detailed in why a PLC digital output cannot make a stepper pulse train.
  • No power stage. The windings need their phase currents switched in sequence and held at a regulated magnitude. A PLC output point delivers a switched voltage and performs neither job.

The confirming check is physical: trace the motor leads. If any winding conductor lands on a PLC output terminal, stop and rewire, because this is an architecture fault that no program edit removes. One safety note before any further powered test: a welded contact can hold unregulated current through a single winding until it burns, so disconnect power and correct the wiring first.

Read the order designation before anything else #

The cheapest decisive check is reading, not measuring. Take the complete designation from the CPU nameplate or the manufacturer's product listing: order number 6ES7288-1SR40-0AA2 is listed as CPU SR40 V3.0, AC/DC/relay, with 24 digital inputs at 24 V DC, 16 relay outputs rated 2 A, and an 85 to 264 V AC power supply. The output-type field is the deciding entry: every onboard output point on this CPU is a mechanical contact.

Decision: a relay-output CPU has no onboard pulse source, and software cannot add one. That settles the connection question for this hardware.

Confirming check: the hardware manual for the exact order number, which assigns the family's pulse channels to specific transistor-output points. The S7-200 SMART catalogue gives the CPU family a maximum of three high-speed pulse outputs, up to 100 kHz, configurable for PWM or motion control, and those channels live on the transistor-output variants. The relay-output SR40 has none of them, so if the machine keeps this CPU the step pulses must come from outside it; the working options, from added pulse hardware to drives that execute stored moves, are laid out in stepper control from a PLC without onboard pulse outputs.

The command and power boundary #

A stepper axis has two separate electrical paths, and the SR40 belongs entirely to the first one. The command path carries low-power step and direction information into the drive. The power path runs from the motor supply through the drive's power electronics into the windings, where the drive converts the pulse train into the power signals that switch the phases in sequence and hold their current at the set magnitude. That conversion is the drive's whole job. Whether it takes a pulse train or stored moves is a command-side choice, compared in PLC to stepper drive interface options: pulse train or stored moves.

Connection What the conductor carries Verdict
PLC output point to a motor winding phase current the point can neither commutate nor regulate Never
Pulse source to the drive's step and direction inputs low-power command signal Required
Motor supply to the drive's power input motion power Size from the drive and motor documentation
Drive motor outputs to the windings switched, regulated phase current Required

The boundary is not special to steppers: for the same reason, a PLC PWM output cannot speed-control a three-phase motor, because the output carries a signal while the motor needs a power stage behind it. Within the command path the SR40's relay points may still own the slow signals: direction changes once per move and enable holds steady, so a relay contact can switch them wherever its rating covers the drive input's voltage and current. The step input itself never comes from a relay point.

Match the drive's command interface electrically #

Logical function is not electrical compatibility. Take three things from the drive's documentation before wiring: the command input's voltage range, its sinking or sourcing polarity together with the common terminal arrangement, and whether it expects single-ended or differential signaling. Check the pulse source's output circuit against all three, then measure the actual levels at the drive's command terminals rather than at the PLC terminal. A level inside the input's undefined region steps the axis erratically or not at all.

Decision: where polarity, voltage or signaling does not line up, put an interposing interface between the two sides instead of stretching either one. Route the pulse pair away from the motor leads and the supply conductors, and terminate shields as the drive manual shows, because noise on a pulse line fabricates steps indistinguishable from real ones.

Check the pulse rate the motion demands #

required pulse rate = motor revolutions per second × drive input pulses per motor revolution

For a linear axis, produce the revolutions per second from the mechanics first: commanded speed divided by screw lead, pulley circumference or whatever converts one turn into travel.

Worked example, valid for these inputs only: a 5 mm lead screw, a commanded feed of 30 mm/s, and a drive set for 2,000 input pulses per motor revolution, which is ten subdivisions of a 200-full-step motor.

  • 30 mm/s ÷ 5 mm/rev = 6 rev/s
  • 6 rev/s × 2,000 pulses/rev = 12,000 pulses/s, which is 12 kHz
  • a 30 mm move is 30 mm ÷ 5 mm/rev = 6 revolutions, so 12,000 pulses

Compare the rate against two documented limits. The family's transistor pulse channels are specified to 100 kHz, so the example rate uses less than an eighth of that capability. The drive input's own maximum comes from its datasheet and must also clear 12 kHz. A relay contact sits outside this comparison: 12 kHz is 12,000 opening-and-closing operations every second, orders of magnitude beyond any mechanical contact's cycle.

Decision: if the required rate exceeds either limit, lower the axis speed, reduce the drive's subdivision where position accuracy allows, change the transmission ratio, or move to pulse hardware with headroom. Faster scan time fixes none of it, because the limit is in the hardware. The subdivision setting is what inflates the demand, and stepper drive pulse frequency limit vs microstep demand works that trade in detail.

The decision for each connection #

  • SR40 directly to the stepper motor: never. The relay outputs cannot produce the pulse train and cannot act as the power stage, so the behavior at the top of this article is the guaranteed outcome at any speed, and no program change removes it.
  • SR40 plus a stepper drive: yes, and this is the required architecture. Wire the motor supply to the drive's power input and the windings to the drive's motor output terminals. Feed the step input from a pulse-capable transistor source, or select a drive that executes stored moves; let the relay points carry direction and enable where their rating covers the drive input, and let the program own the move logic.
  • Required rate above either documented limit: change the hardware side, meaning speed, subdivision, transmission or pulse source. The two-stage connection survives; the rate must come down or the source must go up.

Questions asked

Can the SR40 relay outputs switch the drive direction and enable inputs?

Yes, and that is their proper job on this axis. Direction changes once per move and enable holds steady, so a relay contact switches them at a rate its mechanical life absorbs easily. Verify the contact's voltage and current rating against the drive input's documented requirements, and wire polarity and the common terminal exactly as the drive manual specifies. The step input itself must never pass through a relay contact.

Must the SR40 be replaced to run a stepper axis at all?

No. The SR40 stays in the machine as the motion logic and command controller; only the step-pulse role needs different hardware. Choose a transistor-output CPU variant in the same family when a swap suits the machine, add a pulse-generating module, or pick a drive that executes stored moves received over its command connection. The relay points remain useful for direction, enable and fault signaling.

What damages hardware when a winding stays wired to a PLC output point?

The winding receives switched DC at whatever current the supply voltage forces through its resistance, instead of regulated phase current, so it overheats. The relay point behind it can weld or fail on that load, and a welded contact then feeds the winding continuously until it burns. Move the winding leads to the drive motor output terminals and power the drive from its own documented motor supply.

How many pulses does a commanded move consume?

Convert the commanded travel into motor revolutions, then multiply by the drive's input pulses per revolution. The worked axis above moves 30 mm on a 5 mm lead, which is 6 revolutions, and at 2,000 input pulses per revolution the move consumes 12,000 pulses. Read the pulses-per-revolution value from the drive's resolution setting, because the drive's subdivision, not the motor's step angle, sets it.

Keep reading

  • Explainer

    Why an analog output cannot drive a stepper motor directly

    No — a PLC analog output supplies a low-power command signal measured in milliamps, while a stepper winding needs amps switched in the correct sequence. Put a stepper drive between the PLC and each motor, command it with pulse-and-direction or an analog speed signal, and scale the pulse count to travel.

    Servo and stepper motion

  • Explainer

    Why differential stepper drive inputs map straight to axis outputs

    The CW+/CW-/CCW+/CCW- terminal set is two opto-isolated inputs: the CW pair carries step pulses and the CCW pair carries direction, and each is just an optocoupler LED that responds to current, not to wiring style. A differential controller therefore wires straight across, S+ to CW+, S- to CW-, D+ to CCW+, D- to CCW-, with no receiver module; the old common feed belonged to the old controller's single-ended outputs, not to the drive.

    Servo and stepper motion

  • How-to

    How to Run a Stepper Conveyor From a PLC Pulse Output

    A PLC runs a stepper conveyor by sending a hardware pulse-train output to a step-and-direction driver, never by switching the windings itself. Compute the rate from f = v × S × M × G / C — for 0.30 m/s of belt on a 50 mm roller, a 200-step motor at 8 microsteps and 2:1 reduction, that is 6.1 kHz — then confirm the PTO and the driver both accept it and commission with acceleration ramps.

    Servo and stepper motion