Troubleshooting
Why WinCC Runtime Advanced shows no data through a CP343-1 Lean
Short answer
STEP 7 goes online through the CP343-1 Lean, but WinCC Runtime Advanced opens with no tag update and no error banner, because the S7 connection was given the CP's slot number. The CP cannot service an HMI read; the CPU-side endpoint lives in the CPU. Enter the CP's IP address with rack 0 and slot 2 — the CPU 316-2 DP's slot in a standard S7-300 central rack — and no FC5 or FC6 call is needed in the PLC program.
On this page
STEP 7 goes online through the CP343-1 Lean, the runtime PC reaches the module, and WinCC Runtime Advanced still opens with no tag update and no error banner. The fault is one field in the HMI connection: the slot number.
An S7 connection carries three coordinates — IP address, rack, slot — and they split across two modules. The IP address belongs to the communications processor, because its Ethernet port is the door the HMI driver knocks on. The rack and slot belong to the CPU, because the CPU owns the connection resources an HMI read consumes: rack 0 and slot 2 for a CPU 316-2 DP in the central rack of an S7-300. A slot aimed at the CP hands every request to a module with no HMI endpoint, the connection never establishes, and the tags stay frozen. The fix is one edit in the HMI project; the PLC program needs nothing, not even a communication block.
Why the connection fails while STEP 7 still works #
The three coordinates split across two modules, and each module answers for only its share. Ping, accessible nodes and a project download all terminate at the CP, so they prove the door works while saying nothing about the addressing the HMI driver uses. A tag read is different: the CPU must accept it, because the CPU is where the connection resources for HMI communication live. Named correctly, the request passes the CP and the CPU answers. Named with the CP's own slot, the request lands on a module that cannot accept it, and every read fails before anything can respond.
The failure stays quiet. Runtime starts without a banner, the driver retries in the background, and the tags hold their initial value; only the connection status reveals that no exchange exists. A serial MPI line to the same CPU hides this trap, because MPI addressing has pointed at the CPU all along. The Ethernet path through the CP makes the CP the visible entry module in the rack, its slot number sits in plain sight, and that is exactly how it ends up typed into the connection.
The rack slots to read before you type anything #
Slot numbers in an S7-300 are fixed physical positions, not a count of installed modules, so they can be read off the rack before anything is typed. The power supply takes position 1, the CPU takes position 2, position 3 is reserved for an interface module and keeps its number even when empty, and signal and communications modules fill positions 4 through 11 in order. STEP 7's hardware configuration (HW Config) places every module in its position; open the rack there and read the two numbers the connection needs: the rack the CPU sits in and the CPU's slot.
| Rack position | Module in this rack | Role in the HMI connection |
|---|---|---|
| Slot 1 | Power supply | none |
| Slot 2 | CPU 316-2 DP | the endpoint the connection addresses |
| Slot 3 | Interface module position, empty here | none |
| Slot 4 | Digital input module | none |
| Slot 5 | CP343-1 Lean | the Ethernet entry only |
Worked example, using the rack as built for this fault: power supply in position 1, CPU 316-2 DP in position 2, position 3 empty, a digital input module in position 4, CP343-1 Lean in position 5. Count the positions from the left — 1 for the supply, 2 for the CPU, 3 for the interface position, 4 for the input module, 5 for the CP — and the CP lands on 5, exactly as the online view shows. Position does not make it the target. The connection takes the CP's example address 192.168.0.10, rack 0 for the central rack and slot 2 for the CPU. Entered that way, the driver knocks on the CP's door and the CPU answers, and the tags move; entered with the CP's own slot, the same request dies at the CP.
Fix the connection in the HMI project #
One edit ends the fault. Work the steps in order and transfer once:
- Open the connection settings for the project's S7 channel — the Connections editor in WinCC flexible, or the connections editor of the HMI device in TIA Portal — and select the connection to the CPU.
- Leave the IP address as the CP343-1 Lean's, the address that answers a ping from the runtime PC. It is the door, and the door already works.
- Enter rack 0 and slot 2, the CPU's position in the central rack of an S7-300. This single entry is the whole fix in the reported failure.
- Leave the connection type as the driver's standard S7 entry for an S7-300; the slot field carried the fault, not the type.
- Compile, then transfer during a pause in production — the new project replaces the screens the operator is watching — and confirm at runtime that a tag with a live value moves and the connection status reports exchange.
- If the HMI project can be integrated into the STEP 7 project tree, prefer the integrated connection: it takes rack and slot from the CPU itself and creates the communication shortcut described in why an HMI cannot read PLC tags without a communication shortcut. When the insert refuses, the hand-entered values above are fully equivalent.
What FC5 and FC6 are actually for #
FC5 (AG_SEND) and FC6 (AG_RECV) belong to programmed communication: the PLC program opens a link to a partner it selects and exchanges buffers of data under its own control. An HMI connection is not that. The HMI driver and the CPU's operating system negotiate the reading and writing of tags between themselves, so a runtime station supervises data and alarms on a project that contains no communication logic at all. Adding send and receive blocks over a connection whose slot names the CP repairs nothing, because the request fails before the user program is ever involved; no block call in the PLC can redirect it.
The FC5 AG_SEND and FC6 AG_RECV programming reference documents the jobs the blocks do serve, for a project that later needs the PLC to push data to a station of its own choice. For supervising tags and alarms from WinCC Runtime Advanced through a CP343-1 Lean, the answer is none.
When the CPU's slot still leaves tags frozen #
If the slot field already holds the CPU's position and the tags stay frozen, work this list in order — the fault is reachability or resources, not addressing.
- Ping the CP's address from the runtime PC; a reply clears the cable, the switch and the IP layer.
- Go online in STEP 7 through the CP and open the accessible nodes view; the CPU and the CP should both answer, matching the rack table above.
- Confirm the runtime PC's address sits in the same subnet as the CP's.
- Confirm the CPU has a free connection resource for HMI or OP communication; a pool consumed by other stations leaves the runtime nothing to take.
- Confirm the CPU's protection settings allow remote access from this station for HMI communication.
- Check that no firewall on the runtime PC blocks the driver's Ethernet traffic.
- If tags move only while the engineering tool is online and freeze when it closes, the fault is the access point rather than the slot — the article on why WinCC runtime connects to the PLC only via TIA Portal walks that case.
The decision for each case #
- The connection named the CP's slot: enter the CP's IP address with the CPU's rack and slot from the rack table, transfer once, and the tags move — no download to the PLC, no block in the user program, nothing else to touch.
- The connection already names the CPU and the tags stay frozen: the checklist above is the path; expect the cause in reachability, subnet or connection resources, not in addressing.
- The project must have the PLC push data to a station of its own: that is programmed communication, and the send and receive blocks are the tool there — a different requirement from supervising tags and alarms, which takes no change in the PLC program.
Questions asked
Does the rack or slot change when the S7-300 uses expansion racks?
No for both fields. An S7-300 CPU sits in the central rack, rack 0, at slot 2. Expansion racks 1 to 3 hang signal modules behind an interface module and are never the target of the HMI connection. The IP address stays the communications processor's in whatever rack it sits; only the CPU's rack and slot belong in the connection fields.
Can STEP 7 and WinCC Runtime Advanced use the CP343-1 Lean at the same time?
Yes. The CPU sets aside separate connection resources for engineering access and for HMI or OP communication, so STEP 7 going online through the CP while runtime is connected is normal operation. The limit is the number of resources the CPU provides; if other stations have taken them all, the HMI connection waits until one is freed. This is independent of the slot number.
Every tag froze at once — does that prove the slot number is the fault?
It fits the fault: a wrong slot stops the connection itself, so every tag freezes together and no tag-address message appears. If only some tags stay at zero while others update, the connection is healthy and the problem is in the tag list — a wrong data block number, start address or data type on exactly those tags.
Where do FC5 and FC6 come from if the HMI project does not call them?
They ship with STEP 7's SIMATIC_NET_CP library for user-programmed communication jobs, where the program itself manages a send or receive. A project that contains no programmed exchange should not insert them; the HMI connection works from the values in the HMI project alone, and the PLC program stays untouched.