IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Flexible exceeds the Modbus RTU driver connection limit

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

The Modbus RTU driver in WinCC Flexible serves all of its connections through one serial interface, so a second connection pointed at COM4 trips the interface limit and is flagged yellow. Move both devices onto one bus with distinct unit IDs, bridge through Modbus Plus, gate the devices to Modbus TCP, or migrate the project to TIA Portal WinCC. A fresh driver file or WinCC 7.0 SP2 will not lift the limit.

On this page
  1. What the interface error means
  2. Checks before you change anything
  3. Run both devices on one Modbus RTU bus
  4. Bridge through Modbus Plus
  5. Gate the RTU devices onto Modbus TCP
  6. Migrate the project to TIA Portal WinCC
  7. Why the driver file and the WinCC 7 route fail
  8. Counting the shared COM3 bus for two devices
  9. The decision for each case
  10. Questions asked

The yellow connection and the message "Maximum number of interface for the connection driver exceeded" are not a cable fault and not a Windows problem. The Modicon Modbus RTU channel driver in WinCC Flexible serves every one of its connections through a single serial interface. Your first connection took that interface on COM3; the second connection demands a second interface from the same driver, the driver refuses it, and the editor marks the row yellow before any cable is touched. No setting raises the count and no replacement driver file exists. The fix is topological: put both devices on one Modbus RTU bus with distinct unit IDs, bridge through Modbus Plus, gate the devices onto Modbus TCP, or migrate the project to TIA Portal WinCC, where several interfaces can be available depending on the HMI device.

What the interface error means #

The message comes from the connection driver, not from the operating system and not from either device. In WinCC Flexible every connection runs through a channel driver — here modbus rtu.chn, the Modicon Modbus RTU channel — and each driver supports a fixed set of serial interfaces. Chapter 6.1 of the WinCC flexible 2008 Communication Part 2 manual sets the limit you are hitting: four connections through the Modbus RTU driver, all served from one serial interface. The cap counts connections to the driver, not COM ports, so a second port adds nothing. Your COM3 connection consumed the driver's interface; pointing the second connection at COM4 demanded an interface the driver does not have, and the editor flagged the row yellow as an invalid configuration.

Checks before you change anything #

Work through these in order; each result points at one of the fixes below.

  • Open the Connections editor and read the interface set under each Modbus RTU connection: the working connection holds the driver's interface on COM3, the yellow one requests COM4.
  • Confirm both devices are Modbus RTU slaves that can share one RS-485 segment: settable unit IDs, multidrop-capable electrical interface, matching baud, parity and stop bits.
  • Read the unit ID stored in each device. Factory defaults collide, so expect to change one.
  • Plan the bus wiring: daisy-chain from device to device with termination at both ends, and keep stubs short.
  • If either device is RS-232 only, or the two devices sit on separate lines that cannot be merged, skip to the gateway fix.

Run both devices on one Modbus RTU bus #

Modbus RTU is a multidrop bus: one master, many slave addresses, one cable. Move both devices onto the RS-485 segment on COM3, give each its own unit ID, and define two connections in WinCC Flexible that both use COM3 and differ in that ID. Two connections sit well inside the driver's cap, and devices from different makers share one RTU segment routinely when their serial settings match — the same reasoning as running two different-brand VFDs on one Modbus RTU network. Delete the COM4 connection rather than leaving it in place: a connection on an interface the driver cannot serve stays flagged. Change addresses and move terminals with the machine in a safe state and the bus powered down, then recompile and confirm both rows show without the yellow mark.

Bridge through Modbus Plus #

When the controllers themselves live on a Modbus Plus network, use the multipoint layout the manual documents: the HMI connects as Modbus master to a Modbus Plus Bridge, or to a Modicon 984 CPU or a TSX Quantum CPU configured as a bridge, and reaches up to four controllers through it. The remaining PLCs hang off the first controller's bridge functionality and are reached under their own addresses through it. The HMI side stays one logical connection on one interface, so the driver limit never comes into play. This is the documented path for legacy Modbus Plus installations; for two plain RTU devices it is more hardware than the shared bus needs.

Gate the RTU devices onto Modbus TCP #

If the two devices cannot share a segment, translate the serial side to Ethernet with a Modbus RTU-to-TCP gateway and switch the connection to the Modbus TCP driver, which connects over Ethernet and leaves the single serial interface behind. Choose the gateway behavior deliberately: a transparent gateway passes your unit IDs through to the serial devices, while a gateway with a configured poll list answers from its own table. The HMI side must speak real Modbus TCP, because carrying RTU frames over Ethernet is a different protocol — the distinction is set out in why Modbus RTU over Ethernet is not Modbus TCP for an HMI. Set the gateway's serial parameters to match each device, and keep the segment's loading and biasing within the RS-485 limits.

Migrate the project to TIA Portal WinCC #

TIA Portal WinCC is the successor environment, and its Modicon Modbus RTU connections handle interfaces differently: you select the interface in the Inspector window under Parameters, and depending on the HMI device several interfaces are available, so COM3 and COM4 can genuinely coexist. The maximum number of communication partners depends on the HMI device used, so take the connection count for your exact target from its communication documentation before you commit the design. WinCC flexible projects carry into TIA Portal, and the panel route is the same one used when migrating an OP177B project to a Comfort panel in TIA Portal. If the migration lands on RT Advanced, the runtime runs on a PC, which is the point where you choose the touchscreen computer that carries it: industrial panel PCs.

Why the driver file and the WinCC 7 route fail #

A fresh copy of modbus rtu.chn cannot help: the working COM3 connection proves the runtime already loads the driver, and the message reports an interface count, not a missing file. Moving the application to WinCC 7.0 SP2 does not help either: WinCC V7 carries its own channel architecture, WinCC Flexible channels do not install into it, and there is no import that turns a WinCC Flexible connection into a WinCC V7 connection. WinCC 7 is itself a legacy platform whose forward path is the same TIA Portal migration shown in migrating a WinCC 7.0 project to TIA Portal in two stages.

Counting the shared COM3 bus for two devices #

Inputs, from the case in front of you: one working Modbus RTU connection on COM3, one refused connection intended for COM4, two Modbus RTU slave devices to serve, and the driver cap of four connections on its single interface, from chapter 6.1 of the WinCC flexible 2008 Communication Part 2 manual.

Rule: each slave needs exactly one connection in the project; all Modbus RTU connections share the driver's one interface; the connection count on that interface must stay at or below four; every slave on the shared segment carries a distinct unit ID in the 1 to 247 range.

Arithmetic: connections after the move = 1 (existing, COM3) + 1 (moved off COM4) = 2. Cap check: 2 against a limit of 4 — the configuration fits, with 4 - 2 = 2 connection slots free.

Result: both devices are served from the COM3 segment, and the interface error disappears once the COM4 connection is deleted.

Decision: move the second device onto the COM3 bus, delete the COM4 row, and set distinct unit IDs. A third and a fourth device still fit on the same segment; a fifth connection exceeds the cap, and at that point the bridge, the gateway or the TIA Portal migration becomes the path.

The decision for each case #

  • Both devices are RS-485 slaves with settable IDs: one segment on COM3, two connections with distinct unit IDs, COM4 row deleted.
  • A device is RS-232-only, or the lines cannot merge: RTU-to-TCP gateway and the Modbus TCP driver.
  • The controllers live on Modbus Plus: Modbus Plus Bridge, or a Modicon 984 or TSX Quantum CPU configured as one, reaching up to four controllers.
  • The design needs more interfaces or more connections than the cap: migrate to TIA Portal WinCC and size the target from its documented per-device limits.

Questions asked

My two Modbus devices are RS-232 only. Can they share one COM port?

No. RS-232 is a point-to-point link with no multidrop, so two RS-232-only devices cannot sit on one serial line. Serve each line through its own serial device server that presents the device as Modbus TCP, or use an RTU-to-TCP gateway per line, and connect the HMI over Ethernet instead of a second COM port.

Can a second HMI join the same Modbus RTU bus?

Not as a second master. Modbus RTU is a single-master bus; two masters would transmit over each other and corrupt exchanges. Give the second HMI its own route to the devices' Ethernet side through a gateway, or let one controller own the RTU segment and share its data with the second HMI over the controller's own protocol.

Where is the Modbus RTU connection limit documented?

In chapter 6.1 of the SIMATIC HMI WinCC flexible 2008 Communication Part 2 manual, Siemens support entry 18797249. For TIA Portal targets the maximum number of communication partners depends on the HMI device used, so the count for your panel lives in the TIA communication documentation for that exact device.

Which unit IDs can the two devices use on the shared bus?

Any two distinct IDs in the Modbus RTU range of 1 to 247. Devices often ship set to 1, so change one of them, for example to 2, and match baud, parity and stop bits to the working connection. Keep 0 out of the plan: it is the broadcast address.

Keep reading

  • How-to

    Connecting an HMI to a Controller Over a Serial COM Port

    A serial link between an HMI and a controller fails in a fixed order: cable, driver, then port settings. Ring the cable out end to end, run the driver that matches the controller with generic Modbus RTU only as a fallback, copy the controller's baud, parity, data bits, stop bits and station address exactly, then prove the link with read, write, unplug and reconnect tests.

    HMI and touchscreens

  • Troubleshooting

    Why the S7-200 PPI connection limit is one CPU

    WinCC flexible Runtime on a PC supports a single S7-200 connection when it talks PPI through a PC/PPI cable, and adding CPUs to the bus does not change that. To read three S7-200 CPUs, keep the cable and serve all of them through PC Access as the OPC server, or change the PC interface to MPI with a CP card such as the CP5611.

    HMI and touchscreens

  • How-to

    Migrating an HMI serial connection from RS-232 to RS-485

    Yes — when the controller's RS-485 port already runs its built-in Modbus slave, rewire the pair and switch the panel's device entry to Modbus RTU two-wire with the same 115200 baud, even parity, 8 data bits and 1 stop bit; no PLC reprogramming. Verify A/B polarity before wiring, power-cycle the controller only if you change its port settings, and accept the migration when a known register returns a valid reply.

    HMI and touchscreens

Why STEP 7 symbols are missing in WinCC Flexible tag lists