Explainer
Why a SINAMICS S120 digital output cannot carry PWM servo position
Short answer
A SINAMICS S120 digital output is switched by the drive firmware's cyclic task, so any pulse train on it jitters by whole task cycles and cannot serve as a PWM or pulse/direction position command. Keep the precise axis on the S120 under the S7-1500, and command the gripper servo with a pulse-output module on the S7-1500, an S7-1200 pulse/direction positioner, or a stored motion task started by a 24 V level.
On this page
No. A digital output on a SINAMICS S120 is a signal-level terminal, and the drive firmware switches it in its cyclic task. There is no pulse generator behind the terminal, so any PWM or pulse/direction train you put on it moves its edges in whole task cycles and jitters with every load the drive CPU takes — unusable as a position command. Keep the precise axis on the S120 under the S7-1500. For the gripper, one of three paths works: a pulse-train technology object on the S7-1500 through a decentral pulse-output module, a small S7-1200 as a pulse/direction positioner, or an enable level from the S120 into a gripper drive that runs a stored motion task between two end switches. Here is why the terminal fails and how each path goes together.
What the S120 digital output actually is #
On a CU320 control unit, a digital output takes its state from a BICO interconnection — a firmware-side link from a control-word bit, a status bit or a logic function — and the firmware evaluates those links in a cyclic task. The terminal then switches a signal level. The wiring tells you the scale: the fail-safe module, an F-DO, is two digital outputs plus a digital input for the feedback signal, and its terminals accept wire up to 1.5 mm². That is signal wiring for enables, brake control and status lamps, not an interface for motion data. The S7-1500 can set and clear these outputs through the drive telegram, but what it writes is a level, not a pulse stream.
Where the jitter comes from #
PWM puts the command in the on-time of a square wave; pulse/direction puts one increment per clean edge on the pulse line. Both need edges placed independently of any task schedule, and the S120 output cannot place them, for two stacked reasons.
First, the firmware updates interconnections and terminal states in its cyclic task, so every edge lands on a task boundary. Pulse width therefore quantizes to the task sampling time and wobbles by whole cycles as the drive's load changes. That sampling time sits in the Control Unit parameter list for your firmware version.
Second, when the level originates in the S7-1500, the PLC cycle and the PROFINET bus update sit in front of the drive task and add their own delay and variation to each edge.
You can watch it happen: put an oscilloscope on the terminal while the interconnection toggles. Edges step in multiples of the task sampling time and vary cycle to cycle. No position loop can follow a reference that moves like that.
Which interface the gripper servo has #
The word servo covers several incompatible command interfaces, and the gripper motor's datasheet picks the row:
| Gripper servo interface | What must generate the signal | Can an S120 digital output do it |
|---|---|---|
| Hobby or RC position servo, pulse width sets the angle | A timer or PWM peripheral | No — task jitter exceeds the pulse-width resolution |
| Industrial servo drive, pulse/direction input | A PLC pulse-train output driven by a technology object | No — no pulse generator sits behind the terminal |
| Industrial servo drive, fieldbus telegram | The PLC over PROFINET | No — a terminal carries no telegram |
| Industrial servo drive with a stored motion task, started from a digital input | Any relay or transistor output holding a steady level | Yes — as an enable and start level only |
Read the datasheet or nameplate and pick one row. Exactly one row matches, and that row decides which of the three paths below applies.
Keep the precise axis where it is #
The axis that must rotate endlessly and hold position stays an S7-1500 technology object commanding the S120 over PROFINET cyclic data — Control a PROFINET servo drive with cyclic telegram data is that setup. Configure the axis as modulo so the position value wraps and rotation stays unbounded. The S120 digital outputs keep their existing jobs: brake control, enable feedback, status.
Do not hang the gripper on this telegram. A telegram carries only what its layout defines, and the same rule shows on the status side: when a status telegram omits digital input state, you are back at the drive's own terminals — why Telegram 111 does not carry SINAMICS S210 digital input status article. Adding the gripper to the S120 properly means a second drive object on the control unit, which is a hardware decision, not a bit in an existing telegram.
Pulse outputs on the S7-1500 #
A standard S7-1500 CPU has no onboard pulse-train outputs, so the technology object needs hardware. The direct fix is a TM PTO 4x24V technology module in the ET 200MP station: configure it in the hardware catalog, link the pulse-train positioning technology object to its channels, and the S7-1500 drives the gripper with no third controller. Some compact S7-1500 CPU variants integrate onboard technology I/O and can skip the module; confirm the exact variant in the catalog before ordering anything.
Sizing the pulse train #
Take an example gripper: 30 mm jaw stroke on a lead screw of 5 mm per revolution. The stroke needs 30 / 5 = 6 screw revolutions. Coupled directly, with the electronic gear set to 10,000 pulses per motor revolution, one open move costs 6 × 10,000 = 60,000 pulses.
Open the jaw in 1.5 s and the average rate is 60,000 / 1.5 = 40,000 pulses per second, that is 40 kHz. Give the move trapezoid ramps of 25 percent acceleration and 25 percent deceleration, so half the time runs at cruise speed and the average is 0.75 of the peak: 40 / 0.75, about 53 kHz peak. A 2:1 belt between motor and screw doubles the motor revolutions to 12, so 120,000 pulses, an average of 80 kHz and a peak near 107 kHz over the same 1.5 s.
The move fits the hardware when the peak rate sits at or below the documented maximum pulse frequency of the exact module or CPU output you bought. If it does not, stretch the move: 1.5 s becomes 3.0 s and every rate halves, to 20 kHz average and about 27 kHz peak in the belted case. Wrong distance per commanded count points at the electronic gear ratio or the pulse mode before it points at the wiring; the direction line is only a level, timed by the drive's setup and hold numbers.
An S7-1200 as the low-end positioner #
An S7-1200 compact CPU runs pulse-train positioning technology objects on its onboard outputs, which makes it the cheapest way to add a pulse/direction axis without touching the S7-1500 hardware. Two conditions decide it. The outputs must be transistor type — a relay output cannot switch a pulse train, so read the output type from the CPU order number first. And the CPU carries one PROFINET port with no internal switch, so the S7-1500, the S120 and the S7-1200 share a line only through an external switch.
Link the two controllers over PROFINET, as an I-device relationship or with controller-to-controller communication instructions. Commission the gripper from the S7-1200's own commissioning panel: the commanded pulse count must equal the jaw displacement converted through the electronic gear, the same arithmetic as the sizing example above. For the drive-side hookup, wiring a V90 servo to an S7-200 SMART pulse train interface shows the pulse/direction wiring end to end, and the drive end looks the same on any servo drive that accepts pulse and direction. If the gripper drive feeds an encoder back into its own position loop, the same controller reads that feedback — synchronizing a servo motor and encoder through an S7-1200 PLC covers that wiring and configuration.
The enable level into a stored motion task #
The terminal can hold a steady level, and a steady level legitimately starts a move. Put the gripper on a drive-and-motor package that stores its own motion task, then chain it: a control-word bit from the S7-1500 crosses the S120 telegram into a BICO interconnection and leaves the digital output as a 24 V enable level into a digital input of the gripper drive. Set the level and the gripper drive runs its stored move. The S120 output cannot count turns, so the stop comes from sensing: one proximity switch at each end of the jaw, back to PLC inputs. When the end switch made, clear the level and the gripper drive stops within its configured ramp.
Prove the chain before production. Command the level from the PLC, then break it by hand mid-travel with the jaw unloaded. The motor must ramp down; if it keeps running, that digital input is wired as an enable only and ignores the stop, so correct the drive's input assignment first. One safety line: these end switches are a process stop through standard I/O, not a safety function — the emergency stop stays on its own safety-rated chain.
The cost here is physical, not electrical: two sensing positions on a moving jaw make the mechanism bigger, which is the usual reason engineers reject this path. When the jaw can carry the switches and the stroke never changes, it is the cheapest correct answer.
The decision #
- The precise, endlessly rotating axis stays as it is: an S7-1500 technology object over PROFINET cyclic data to the S120, configured as a modulo axis.
- If the gripper must land on exact positions, or stroke and speed must change from the HMI, command it with pulses. Take the TM PTO 4x24V route when the S7-1500 already runs an ET 200MP station or the compact CPU variant carries the technology I/O; take the S7-1200 route when a separate transistor-output CPU plus a switch is the cheaper commissioning job.
- If the gripper repeats one fixed stroke and the jaw can carry two proximity switches, use the enable level into a stored motion task — the S120 digital output's legitimate job, and the cheapest correct answer for that case.
- PWM, or a hobby servo signal, out of the S120 digital output: there is no path. The terminal is a level on a task grid, and a position command needs edges a timing source owns.
Questions asked
Can the S120 digital output drive a small hobby servo instead?
No. A hobby or RC position servo reads its angle from a pulse between 1 and 2 ms inside a 20 ms frame, and it resolves changes down to roughly 10 microseconds. The S120 terminal can only move its edges in whole drive task cycles, so the pulse width wanders by far more than the servo can resolve. A hobby servo needs an output driven by a real timer or PWM peripheral.
How should the S7-1500 and the S7-1200 exchange gripper commands?
Over PROFINET, either as an I-device relationship or with controller-to-controller communication instructions, with the exchanged data block kept identical on both sides. The S7-1500 sends a target position, a jog bit or a start command; the S7-1200 returns done and fault bits. Size the exchange for the slower partner's cycle so a busy S7-1200 never drops a command.
The gripper travels a different distance than the pulse count commands. What is wrong?
Two settings produce that symptom. The electronic gear ratio in the gripper drive does not match the pulses per revolution the PLC assumed, or the drive expects a different pulse mode such as quadrature while the output sends pulse and direction. Jog a known count, measure the travel at the jaw, correct the ratio by the measured error, then confirm the pulse mode against the drive documentation.
Does adding the S7-1200 change what the S120 digital outputs do?
No. Every terminal keeps its BICO interconnection and its drive-side job: brake control, enable feedback, status. The gripper becomes a separate axis on the S7-1200 and the S120 telegram keeps its existing layout. Only if you later want both motors on one control unit does the gripper need its own drive object on the S120, and that is a hardware purchase decision rather than a programming change.