IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC S5 IM 308-C over Profibus DP: hardnet CP 5613 or OPC route

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

A WinCC PC polls an S5 with an IM 308-C over PROFIBUS DP only as DP class 1 master, and the WinCC PROFIBUS DP channel runs that role on a hardnet CP 5613 or CP 5614 with the matching SIMATIC NET license, never on a softnet CP 5611. The CP 5611 belongs to the second route: the IM 308-C as DP slave, a SIMATIC NET OPC server as the bus master and WinCC as OPC client.

A workstation monitor showing a data server tree with live items and two that return no value, cabled to a compact PLC on a DIN rail with a small operator panel in front
On this page
  1. The WinCC PROFIBUS DP channel makes the PC a class 1 master
  2. Why a softnet CP 5611 cannot carry the channel
  3. The working set for the native route
  4. Setting up the native route step by step
  5. The second route: SIMATIC NET OPC with the CP 5611
  6. Working the addresses for an IM 308-C at 3, an ET 200 at 4 and the CP at 1
  7. The decision for each case
  8. Questions asked

WinCC reads an S5 through its IM 308-C over PROFIBUS DP only when the PC station takes the DP master class 1 role, and the WinCC PROFIBUS DP channel runs that role on a hardnet communication processor — the CP 5412 A2 named in the older WinCC Communication manual, today the CP 5613 or CP 5614 — with the SIMATIC NET software and license for that card. A softnet CP 5611 will not carry the channel. The CP 5611 has one documented place on this link: the alternative route, where the IM 308-C is a DP slave, a SIMATIC NET OPC server for PROFIBUS DP runs the master side, and WinCC is only an OPC client. Both routes, the parts each needs and the segment arithmetic follow.

The WinCC PROFIBUS DP channel makes the PC a class 1 master #

PROFIBUS DP splits masters into two classes. A class 1 master holds a dedicated configuration of slaves and polls each one cyclically when it holds the bus token; a class 2 master handles acyclic services and cannot read another station's process data on a cycle. Selecting the WinCC PROFIBUS DP channel puts the PC station in the class 1 seat — the same seat the S5's own IM 308-C normally occupies.

WinCC ships no graphical PROFIBUS configurator, so the master configuration — every slave with its address and its data exchanges — is written as a text file and imported; the step-by-step procedure is in the WinCC Online Help topic for the PROFIBUS DP driver. In WinCC itself you open the properties of each new connection and enter the PROFIBUS address of a slave, and every further slave gets its own new connection. The WinCC Communication manual, reference 6AV6392-1CA05-0AB0, documents the exact combination this article covers: the IM 308-C communicates as DP slave, with the CP 5412 A2 as DP master. For the mirror-image limit on the panel side, see why an HMI panel cannot be a PROFIBUS DP slave.

Why a softnet CP 5611 cannot carry the channel #

A hardnet CP — the CP 5613, the CP 5614, the older CP 5412 A2 — runs the PROFIBUS protocol on the card's own processor; a softnet CP such as the CP 5611 hands that protocol work to the PC's CPU. The WinCC PROFIBUS DP channel is built for the hardnet cards, and the CP 5611 is not among the communication processors it supports, so a channel set up on a CP 5611 never initializes — the usual reason a first attempt at this link fails. The same hardnet-versus-softnet split on the Ethernet S7 side is set out in a hardnet versus softnet license comparison for SIMATIC NET over Ethernet. The limit is narrower than it looks: a CP 5611 can still master the segment when the SIMATIC NET software, not the WinCC channel, runs the protocol — that is the basis of the second route below.

The working set for the native route #

These parts go together:

  • A hardnet communication processor in the PC: CP 5613 for most projects, CP 5614 where a second PROFIBUS interface or extended diagnostics is wanted, the CP 5412 A2 only where an installation built on the older manual already has it.
  • The SIMATIC NET PROFIBUS DP software with the license for that exact card.
  • WinCC with its PROFIBUS DP channel — the card-and-license check matches running a WinCC 7.0 PC runtime over a PROFIBUS card.
  • The IM 308-C (6ES5-308-3UC21) configured as DP slave on the S5 side.
  • PROFIBUS cable with the terminating resistors switched on at both physical ends of the segment.
  • The master configuration text file, written to the Online Help syntax.

Setting up the native route step by step #

  1. Install the hardnet CP, attach the PROFIBUS cable and power up the PC.
  2. Install the SIMATIC NET software, activate the hardnet driver for the card, and register the CP in the SIMATIC NET PC configuration with a PROFIBUS address — typically 0 or 1 — that differs from every slave address on the segment.
  3. Match the bus to the segment the IM 308-C runs on: the same baud rate, anywhere in the DP range of 9.6 kbit/s to 12 Mbit/s. In the vendor procedure for connecting a Windows-based panel to an IM 308-C, the parameters are changed via the menu Configure > Set bus parameters... with the "PROFIBUS DP" bus profile; set the highest station address above the highest slave.
  4. Write the master text file: each slave with its PROFIBUS address, the exchanged I/O (slot, length, consistency), the DP mode and the diagnostic settings.
  5. In WinCC, add the PROFIBUS DP channel, create one connection per slave, point each at the text file and the CP as logical device, and enter the slave's PROFIBUS address in the connection properties.
  6. Map the tags onto the I/O areas the IM 308-C exchanges, compile, start runtime, and watch the channel diagnosis for the master online state and the slave live list.

The role change on the IM 308-C and any re-termination are done with the machine stopped and the segment powered down; restart only when the slave I/O behaves as the S5 program expects.

The second route: SIMATIC NET OPC with the CP 5611 #

The slave side is identical: the IM 308-C stays configured as DP slave. On the WinCC PC, a SIMATIC NET OPC server for PROFIBUS DP takes the master role of the bus with the CP 5611 — or a hardnet CP when one is present — and WinCC is configured as an OPC client of that server. WinCC never opens its DP channel, so the softnet card sits in its documented place, with the SIMATIC NET software running the protocol.

The pattern is the one in linking a SCADA HMI to a legacy bus through an OPC gateway. The older-PLC-over-OPC logic also matches why WinCC V6 needs an OPC server to reach an S7-200 PPI port. A vendor support entry describes operating an S5 with IM 308-C as DP slave while an S7-300 or S7-400 is the master; the slave-side steps are the same with the PC in the master seat. The price of the route is one more software layer and OPC browsing instead of native cyclic connections.

Working the addresses for an IM 308-C at 3, an ET 200 at 4 and the CP at 1 #

Take the case behind this article — one S5 with an IM 308-C — and add the one ET 200 station that used to hang under it. The inputs:

  • IM 308-C as DP slave at PROFIBUS address 3: an example address; yours is whatever the S5-side configuration assigns.
  • The ET 200 station at address 4: an example; without its old master it is now described in the new master's file.
  • Segment baud rate of 1.5 Mbit/s: an example, inside the DP range of 9.6 kbit/s to 12 Mbit/s.
  • The CP 5613 at address 1: the usual 0 or 1 for the master.
  • One WinCC connection per slave: the channel's rule.

The rule: every station that is not the master is described once in the master text file at its own address; the master's address must differ from every slave's; the highest station address must exceed the highest slave address; and the CP must run the segment's baud rate.

The arithmetic:

  • Text-file entries: 1 IM 308-C + 1 ET 200 = 2 entries.
  • WinCC connections: 2 slaves × 1 connection per slave = 2 connections.
  • Highest slave address: max(3, 4) = 4, so the highest station address goes to 5 or above.
  • Master address: 1 differs from both 3 and 4 — no collision.
  • Baud: 1.5 Mbit/s lies between 9.6 kbit/s and 12 Mbit/s, and the CP is set to that same 1.5 Mbit/s.

Result: a two-entry master file, two WinCC connections, the CP at address 1, the highest station address above 4, and the terminators on at both segment ends. One consequence to accept: a station described in WinCC's master file exchanges its cyclic data with WinCC, so the S5 program no longer sees that station's I/O directly.

Decision: the card in the PC picks the route. With one hardnet CP and its SIMATIC NET license, build exactly this. With none, the same slave side and addresses move to the OPC route unchanged. Each further slave adds one text-file entry and one connection, so the file and the connection count grow one for one with the stations.

The decision for each case #

  • A hardnet CP (CP 5613 or CP 5614) with its SIMATIC NET license is in the PC: use the native PROFIBUS DP channel with the text-file master configuration.
  • Only a CP 5611 is at hand: keep the IM 308-C as DP slave, run the SIMATIC NET OPC server as the bus master and set WinCC up as its OPC client; the bus side does not change.
  • The IM 308-C must stay DP master: neither route can read it, because a class 1 master is not polled. Reach the CPU over its programmer port with a protocol converter on Ethernet and leave the segment as it is.
  • When the card question grows into a terminal replacement, the wider picture is in what decides a legacy S5 HMI PROFIBUS card migration.

Questions asked

Where do the WinCC tags come from on the S5 side?

Only from the I/O areas the IM 308-C exchanges as a DP slave. A value inside a data block is not addressable through the link by itself: the S5 program has to copy it into the exchanged input area, and a write from WinCC lands in the exchanged output area, which the program then has to use. Build the tag list and the copy instructions as one design.

Does an FMS or FDL setup from an older S5 link carry over to this DP link?

No. FMS and FDL are different PROFIBUS services with their own configurations, and the similarity between the protocols does not make the procedures interchangeable. The DP channel exchanges cyclic I/O with stations configured as slaves. On a running project, the channel named in WinCC's tag management tells you which service a link uses.

Is an S5 programmer-port-to-Ethernet converter an easier route?

It is a different route, not an easier version of this one. Such a converter attaches to the CPU's programmer port, not the IM 308-C, and carries the S5 programming protocol over TCP/IP, so the PROFIBUS segment stays untouched. It needs a WinCC channel that speaks that protocol over the network. Choose it when only a few S5 values are wanted and no DP exchange is required.

The channel stays faulty after setup: what fails first?

The card. A softnet CP 5611 in a channel that supports only hardnet CPs never initializes, so confirm the card family before anything else. Then look for a slave address that duplicates the master's, a terminating resistor not switched on at a segment end, or a baud rate that differs from the IM 308-C's. A slave missing from the live list points to its address or the wiring; one present without data points to the text file.

Keep reading

  • How-to

    Connecting a PROFIBUS DP slave to WinCC flexible over OPC

    Yes, no PLC is needed: a PC with a CP 5611 and SIMATIC NET takes the PROFIBUS DP master role, the slave-only device is configured from its GSD file inside the PC station, and the SIMATIC NET OPC server publishes its cyclic data. In WinCC flexible you select the OPC channel, not a controller driver from the device list.

    HMI and touchscreens

  • How-to

    Connecting an S5 PLC to WinCC flexible PC runtime

    Chapter 7 of the WinCC flexible 2008 Communication Part 1 manual documents two ways to connect an S5 PLC to WinCC flexible PC runtime: AS511 over the TTY current-loop serial interface, or PROFIBUS-DP. Use AS511 with a genuine active TTY converter for a direct serial link; use PROFIBUS-DP when the S5 already sits on a bus. Prove reads against the PLC, then write-test a free tag before any production screen goes live.

    HMI and touchscreens

  • Troubleshooting

    Why a WinCC TCP/IP connection fails with the PC as endpoint

    A WinCC TCP/IP connection under the S7 Protocol Suite dials exactly the address typed into it; that field must hold the LOGO! 0BA8's IP address, not the PC running WinCC, with rack 0 and slot 2 as the CPU location for an S7-300-class partner and the HMI service enabled on the LOGO!. Fix the endpoint, confirm the service through channel diagnostics and tag status, and only then add tags.

    HMI and touchscreens

Selecting a Compact HMI for ControlLogix Over Ethernet