Troubleshooting
Connecting a PLC-5/80E to SINAMICS S120 drives over PROFIBUS
Short answer
A PLC-5/80E has no PROFIBUS interface, so a SINAMICS S120 connects only through the PLC-5 PROFIBUS coprocessor documented in Rockwell publication 1785-UM041, run with its legacy configuration toolchain. Set the drive to telegram 999 (p0922 = 999) with one word in and one word out, set STW1 bit 10 so the drive accepts network control, and prove byte order with a 16#00FF probe before writing control values. Without that coprocessor already in hand, no documented PROFIBUS path exists for this CPU.
On this page
- Can a PLC-5/80E talk PROFIBUS to a SINAMICS S120 at all?
- Which PROFIBUS master goes in the PLC-5 rack?
- What telegram should the S120 use for the first test?
- How does the PLC-5 send its word to the drive's bus address?
- Which bit makes the S120 accept control from the network?
- How do you prove the byte order before trusting any control word?
- What is the first live sequence to bring the S120 under PLC control?
- When is this integration not worth building?
- Questions asked
A PLC-5/80E cannot exchange PROFIBUS data with a SINAMICS S120 on its own: the CPU has no PROFIBUS interface. The working path is the PLC-5 PROFIBUS coprocessor documented in Rockwell publication 1785-UM041, run with its legacy configuration toolchain. On the drive side the setup stays small: select the free telegram with p0922 = 999, keep one word in and one word out, set the control-by-PLC bit so the drive accepts the network word, and prove byte order with a probe value before writing any control word. If that coprocessor and a working configuration station are already on site, the sequence below brings one cyclic word live in a day. If they are not, no documented PROFIBUS path exists for this CPU, and the integration belongs on a controller that speaks PROFIBUS natively.
Can a PLC-5/80E talk PROFIBUS to a SINAMICS S120 at all? #
Not from the CPU alone: the PLC-5/80E has no PROFIBUS interface, so an S120 attaches only through a PLC-5 PROFIBUS coprocessor of the kind documented in Rockwell publication 1785-UM041, or through no PROFIBUS at all.
The 80E's built-in channels are remote I/O scanning and Ethernet, and none of them speaks PROFIBUS, so the cyclic word exchange PROFIdrive needs has no home in the CPU itself. The job falls to the coprocessor: a separate board that runs the PROFIBUS master function beside the CPU and exchanges words with the PLC data table. The publication that documents it is old, and the configuration environment it describes is older still, which is the practical constraint of the whole project: this route is realistic where the hardware and a working configuration station already sit on site, and it is not a fresh build. The protocol itself is not the obstacle — a PROFIBUS master cycles a PROFIdrive slave like any other DP slave; the PLC-5 side is what decides.
Which PROFIBUS master goes in the PLC-5 rack? #
The coprocessor documented under that publication is the verified PLC-5 PROFIBUS option; no PROFIBUS option card for the PLC-5 I/O chassis that parallels a Siemens CP443-5 is documented, and neither is any CBE20-based Ethernet route.
The fair comparison is the S7 rack, where a CP443-5 puts the master function under the CPU's own backplane. No confirmed PLC-5 counterpart to that pattern exists in the documented material, so do not plan the project around one. The second idea raised for this pairing — the drive's Ethernet communication board CBE20 talking to the 80E's Ethernet port — fails the same test: no verified combination of that board, this CPU and the master and slave roles exists, so it stays unverified and nothing is built on it. The decision is binary: the coprocessor is the master, or this CPU gets no PROFIBUS.
What telegram should the S120 use for the first test? #
Set the drive to telegram 999, the Free Telegram, with p0922 = 999, and configure one word in and one word out until cyclic data is accepted.
The free telegram leaves every PZD slot unassigned and lets BICO interconnections wire each slot to the parameter you choose; the SINAMICS S120/S150 List Manual lists the free telegrams and the assignable parameters. Wire the incoming slot to the control word STW1 and the outgoing slot to the status word ZSW1, and the drive has the smallest cyclic exchange there is: one word of command, one word of state. The point of the small map is diagnostic. With two words agreed on both sides, any failure is a mapping or byte-order fault, not a telegram-size fault, and the map grows one slot at a time only after the two-word exchange passes.
How does the PLC-5 send its word to the drive's bus address? #
Build the same thing a modern processor calls a generic node: one entry per drive object holding the S120's PROFIBUS address and one 16-bit integer address for the send word and one for the receive word.
The coprocessor's configuration tool keeps the master map, and for each slave it needs the same three facts any PROFIBUS master asks for: the bus address, the agreed word counts, and the PLC data-table addresses that hold the exchange. Keep the map written down in those terms — the S120 at its bus address, one send integer, one receive integer — and fill the tool's screens when it is open rather than reconstructing them from memory. One drive object, one entry: an S120 carrying several drive objects takes one entry per object, and the map grows one object at a time.
Which bit makes the S120 accept control from the network? #
Bit 10 of STW1, the control-by-PLC bit: until the drive sees it set in the word it receives, the PROFIdrive control word and setpoint are ignored and the drive follows its own interconnections.
PROFIdrive hands the drive one control word, STW1, and takes one status word back, ZSW1, and that bit decides who commands the drive. Clear, the drive treats the telegram as not commanded and keeps running on its local setpoint; set, the network is in command. The bit explains the classic first symptom of this integration: ready and ON values written into the PLC data table change nothing at the drive, because the drive never accepted the network as its commander. Put the bit in the send word and keep it set for as long as the PLC owns the drive, and read ZSW1 back as the handshake that confirms the drive is following.
How do you prove the byte order before trusting any control word? #
Send the probe word 16#00FF and read the drive's receive word: 16#00FF read back means the path is straight, while 16#FF00 means the coprocessor swaps bytes and every value must be byte-reversed before the send.
The echo comes from the free telegram itself: a BICO interconnection wires the drive's receive-word parameter back out to the transmit slot, so the receive integer in the PLC data table shows what the drive actually received. A PROFIBUS transfer and a legacy PLC data table do not have to agree on which byte leads, so a value written at the PLC can arrive at the drive with its two bytes exchanged. The swap moves whole bytes: bits 0-7 of the drive's view sit at PLC bits 8-15 and the reverse, which puts drive bit 10 at PLC bit 2 and drive bit 0 at PLC bit 8.
Worked example, swapped case. The drive needs the standard ready word 16#047E, then 16#047F with the ON bit: 16#047F = 16#0400 (the control-by-PLC bit) + 16#007E (the standard ready bits, 1 through 6) + 16#0001 (ON) = decimal 1151. If the echo came back reversed, the PLC sends the byte-reversed value instead: high byte 04 and low byte 7F exchange places, so the data-table value is 16#7F04 = decimal 32516. Check it: 16#7F04 sets PLC bits 2 and 8 through 14, and after the swap the drive sees bit 10 plus bits 0 through 6, exactly the ready-and-ON word.
Whatever the probe showed is the rule for every later word: reversed echo, byte-reverse every control and status value before the send; straight echo, send as written. The same failure and the same probe-and-reverse fix turn up on other PLC-to-drive links, treated for PROFINET in the ABB IRC5 PROFINET byte-swap fix.
What is the first live sequence to bring the S120 under PLC control? #
Six checkpoints take the link from dark to controlled: node in the scan list, telegram length matched, byte order proved, then the ready word, the ON word, and only after those, a speed setpoint.
Run them in order and read each pass indication before moving on:
- Master scan: the coprocessor sees the S120 node at its configured bus address. Pass: the node holds in the master scan list with no master fault.
- Word lengths: one word in and one word out agreed on both sides. Pass: no length error from the coprocessor and none from the drive.
- Probe: write 16#00FF and read the echo. Pass: a straight echo, or a reversed echo that fixes every later value.
- Ready word: write the byte-corrected 16#047E. Pass: ZSW1 reads back live state, not a frozen value.
- ON word: write the corrected 16#047F with the speed setpoint at zero. Pass: the run handshake holds.
- Setpoint and growth: write speed only once the handshake holds, then add telegram slots one at a time.
Treat the ready and ON words as the start commands they are once the control-by-PLC bit is set: run the probe and the first words with the machine safed and nothing coupled that a moving axis can damage.
When is this integration not worth building? #
Build it only where the 1785-UM041 coprocessor and its configuration station already exist: with no second documented PLC-5 PROFIBUS option and no verified CBE20 route, a from-scratch PROFIBUS build has nothing documented to stand on.
The decision splits by what is on site. Coprocessor and a working configuration station in hand: run the sequence above, prove byte order before the first control word, and grow the telegram one slot at a time after the handshake holds. Neither in hand: do not open this project on the 80E. Keep the S120s on the PROFIBUS segment they already serve and put the PLC interface on a controller with native PROFIBUS support instead.
Questions asked
Can the PLC-5/80E Ethernet port reach the S120 directly instead?
The idea is tempting because the 80E carries native Ethernet and the S120 accepts an Ethernet communication board (CBE20). What is missing is a verified combination: no documented pairing of that drive board, the 80E Ethernet channel, firmware versions and master and slave roles connects them directly. Treat every Ethernet route as unverified until each piece appears in manufacturer documentation, the same standard the coprocessor route met.
Does the byte swap hit the status word coming back too?
Plan on the same byte order in both directions, because one coprocessor runs the whole cyclic exchange. The receive word needs its own proof though: keep the BICO echo wired, write a value with distinct bytes, and read how the echo lands before decoding ZSW1. Reverse the receive word in the data table the same way you reverse the send word.
How do I grow past a single word in each direction?
Only after the single-word exchange passes. Raise the telegram one slot at a time: wire the next PZD slot with a BICO interconnection to the parameter you need, pick the entries from the SINAMICS S120/S150 List Manual, match the word count in the coprocessor map, and rerun the probe at the new length before trusting any new value.
Why does one coprocessor map entry not cover a whole S120?
An S120 station can carry several drive objects, an infeed plus one or more motor modules, and each object runs its own cyclic telegram with its own control and status words. The master channel serves one object per entry, so give each drive object its own bus-address entry with its own send and receive word instead of sharing one.