AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

What a PTO servo axis can and cannot achieve in accuracy

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

Short answer

Yes, with conditions you control: a PTO axis with a step-and-direction servo drive meets a ±0.1 mm target and a ±0.4 mm standstill window on a 5 mm screw at 75 mm/s, because 1000 to 2000 command pulses per motor revolution give 2.5 to 5 µm resolution at 15 to 30 kHz, and a tuned drive holds standstill inside ±800 encoder counts. The accuracy comes from the screw grade, backlash control and drive tuning; the PLC's outer loop stays open and cannot verify any of it.

On this page
  1. The loop structure sets the ceiling
  2. Speed: the motor is not the constraint
  3. Command resolution versus pulse frequency
  4. The error budget the PLC cannot touch
  5. Working the numbers in encoder counts
  6. Configure the axis so the mechanics repeat
  7. The decision
  8. Questions asked

A step-and-direction servo axis driven by an S7-1200 pulse-train output (PTO) can hold a ±0.1 mm positioning target and a ±0.4 mm standstill window on a 5 mm pitch lead screw running at 75 mm/s — but none of that accuracy comes from the PLC. The servo drive closes the inner loop on the motor encoder; the CPU counts the pulses it sent and never learns where the axis really stopped. The accuracy budget therefore lives in the screw, the coupling, the backlash and the drive tuning, and the PLC setup's job is to spend command resolution cheaply and get out of the way. Here is the arithmetic and the decisions for that spot-welder slide.

The loop structure sets the ceiling #

Two loops exist on this architecture. The inner loop — current, velocity and position around the motor encoder — is closed inside the servo drive, which counts incoming pulses against its encoder and corrects continuously. The outer loop between PLC and drive is open: the axis technology object emits a pulse train and assumes it was executed; no actual position value returns to it. This is the opposite of the older S7-300 positioning architecture, where the controller closed the position loop itself and therefore needed a feedback source. On this CPU generation the technology object is PTO-only, so the architecture is fixed — see why a PTO axis cannot close the loop with an external encoder for what that means in practice.

Two consequences follow. First, the drive must be commissioned in position mode, taking step and direction as its position command; if it is left in speed mode, nothing anywhere compares commanded and actual position and the axis drifts. Second, the PLC cannot compensate or verify anything that degrades accuracy — every error source has to be controlled by hardware selection or by the drive's own loop.

Speed: the motor is not the constraint #

Rotational speed follows directly from traverse speed and screw pitch, assuming the motor is coupled 1:1 to the screw:

n = v ÷ pitch = 75 mm/s ÷ 5 mm per revolution = 15 revolutions per second = 900 rpm

That is a calculated example for these inputs, and it sits comfortably inside the continuous range of any 2 kW servo, so the motor is never the limiting design variable here. The design variable is pulse frequency, because the PLC must emit one pulse per increment of command at that speed.

Command resolution versus pulse frequency #

The drive's electronic gear ratio sets how many command pulses equal one motor revolution, and the technology object's Pulses per motor revolution box must be set to the same value so the millimetre scaling is true. Resolution and frequency trade directly:

  • Resolution = screw pitch ÷ pulses per motor revolution
  • Pulse frequency f = pulses per motor revolution × 15 revolutions per second
Pulses per revolution Command resolution Pulse frequency at traverse Verdict
1000 5 µm 15 kHz Ample margin against the target
2000 2.5 µm 30 kHz Good general choice
5000 1 µm 75 kHz Near the onboard-output ceiling
10000 0.5 µm 150 kHz Exceeds the onboard PTO limit

Confirm the maximum PTO frequency for your exact CPU variant and output type in the S7-1200 system manual before committing: onboard transistor outputs (DC/DC/DC CPUs) and high-speed signal boards have different limits, and relay-output CPUs cannot generate a PTO pulse train at all. The running pulse train and motion instructions also load the CPU — why a PTO stepper axis inflates S7-1200 cycle time explains that mechanism. Decision: choose 1000 to 2000 pulses per motor revolution. Command resolution is then far finer than the target, so it contributes essentially nothing to the error budget, and everything left is mechanical.

The error budget the PLC cannot touch #

The drive's closed loop ends at the motor encoder. Anything between the motor shaft and the load is invisible to both loops, so each source below must be controlled by selection or tuning:

Error source Effect Control
Cumulative screw lead error Offset that grows with travel Order the screw with the manufacturer's lead-deviation data over your stroke
Backlash in nut, coupling, gearbox Direction-dependent offset — critical here because the cycle reverses Preloaded nut, zero-backlash coupling, final approach from one direction, the axis backlash compensation
Following error at traverse speed Lag during motion, removed at standstill Position-loop gain and velocity feed-forward in the drive
Standstill hunting Oscillation about the target Drive tuning and adequate holding stiffness
Thermal growth of the screw Slow drift over a shift Re-home at defined intervals

Working the numbers in encoder counts #

The standstill window is the easy specification. Convert it to motor revolutions: 0.4 mm ÷ 5 mm per revolution = 0.08 revolution. The 2500 pulse A/B encoder, quadrature-decoded in the drive, gives 10000 counts per revolution, so the window is ±800 counts — a properly tuned servo of this class holds standstill inside a few tens of counts. The positioning target equals ±0.02 revolution, or ±200 counts, which the drive loop also meets easily at the motor. What decides whether the load sees that accuracy is everything after the encoder: lead error and backlash sit outside both loops and must be bought out through the screw grade and the nut, not tuned away.

Configure the axis so the mechanics repeat #

In the device configuration, open Pulse Generator (PTO/PWM) on the CPU, enable a pulse generator, set the signal type to PTO with pulse A and direction B to match a step-and-direction drive, and never write the assigned outputs from the user program. Add TO_Axis_PTO, select that pulse generator, set the unit to millimetres, and in the mechanics configuration set Pulses per motor revolution to the electronic gear value chosen above and the distance per motor revolution to the screw pitch; invert the direction signal there if the axis moves the wrong way rather than rewiring. Configure maximum velocity above the commanded traverse so the profile is not clipped, enable jerk limiting to protect the welding head, and set active homing with a creep approach that always arrives from the same direction so the reference is free of backlash. Wire the drive's servo-on to the enable output and its ready relay to a CPU input; without that handshake, MC_Power reports an enable error but the axis has no genuine exchange with the drive.

Wire hardware limit switches to two CPU inputs and set the software limits inside them: with the outer loop open, the hardware limits are the only protection if lost pulses let the real position run past the counted one, so they belong in the machine's risk assessment, not just in the program.

The decision #

For this slide, the targets are achievable with the open outer loop — commit to the build. The ±0.4 mm standstill specification is met by any correctly tuned 2 kW servo with this encoder, with an order of magnitude to spare. The ±0.1 mm target over travel is met if the mechanics are specified for it: as a working allocation, keep cumulative lead deviation at or under 0.04 mm over the working stroke (buy the screw grade whose data sheet supports it), backlash after preloading at or under 0.02 mm, and settling at or under 0.02 mm, which sums to 0.08 mm and leaves margin — a rule-of-thumb budget, not a measured result. Set 2000 pulses per motor revolution for 30 kHz at traverse, and drop to 1000 only if the documented PTO limit of your CPU forces it; at 15 kHz the resolution is still fine. What you give up is verification: the PLC will never prove the position was reached, so wire the drive's in-position signal as a sequence interlock and let the mechanics carry the accuracy.

Questions asked

Can the PLC at least confirm the drive settled without an encoder wired back?

Yes, as a handshake: wire the drive's in-position output to a CPU input and evaluate it after the move completes. It proves the drive's encoder settled inside its in-position window. It does not measure the load, so screw lead error and nut backlash stay invisible to it. Treat it as a sequence interlock, never as proof of the workpiece position.

Is there any point in setting 10000 pulses per motor revolution?

No. At traverse speed it would need 150 kHz from the output, and the 0.5 µm resolution it buys cannot be used: the remaining error is lead error and backlash in the mechanics, which no command resolution removes. The extra frequency only eats the PTO headroom and the electrical margin of the output stage.

What does the axis do if the drive is left in speed mode?

It drifts away from every target. The PLC counts the pulses it sent, the drive integrates speed commands with nothing comparing the two, and no fault appears because no actual value returns. The symptom is an offset that grows through the cycle. The fix is to commission the drive in position mode with a step-and-direction input and re-test the indexes.

Can the outer loop be closed later on the same CPU?

Not on this generation: the axis technology object of the S7-1200 described here stays PTO-only. Closing the position loop in the controller needs a CPU whose motion control accepts an actual position value over a drive telegram, such as an S7-1500 with PROFIdrive telegrams, plus a drive that reports one. Otherwise, accept the open outer loop as designed and spend the effort on the mechanics.

Keep reading

  • Comparison

    A step and direction servo drive versus an open-loop stepper

    A step and direction servo drive takes the same pulse train as an open-loop stepper drive but closes the position loop inside the drive on the motor's encoder counts, so lost steps become a following-error fault instead of silent drift. The deciding arithmetic is the pulse budget: steps per inch times feed gives the steps per second your controller must supply, and a high-count encoder can exhaust that budget before the motor runs out of torque.

    Servo and stepper motion

  • Explainer

    Servo Positioning Resolution Versus Stepper Step Angle Explained

    A 0.018° move needs 360 ÷ 0.018 = 20,000 usable feedback counts per revolution, which come from the encoder and the drive's decoding and scaling, not from the servo label. Matching 3,000 command pulses per revolution on a stepper and a servo only matches command scaling; short-time overload capacity and high-speed performance still differ.

    Servo and stepper motion

  • How-to

    Configuring a PLC pulse-output servo axis before PLS2 moves

    The drives are not plug and play: keep command scaling in one place, the drive's gearing or the PLC program, and stay under the 100 kHz pulse ceiling, which at 10,000 pulses per revolution caps the motor at 600 rpm. Prove direction, limits and homing first, then tune for the load.

    Servo and stepper motion