IMDTouchKnowledge BaseShop main store

Troubleshooting

WinCC logical device setting for PLCSIM TCP/IP communication

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

For a CPU with an integrated PN/DP interface, keep the tags under the WinCC TCP/IP channel unit and set the channel's Logical device name to PLCSIM(RFC 1006); for an IE CP, use the Industrial Ethernet channel unit with PLCSIM(ISO). Then match the STEP 7 PG/PC interface and the PLCSIM connection drop-down to PLCSIM (TCP/IP), and restart WinCC runtime. A running CFC and a started runtime do not prove this path.

A laptop showing a simulated PLC in run with its tags ramped and forced, cabled to a black touch panel running the line overview against the simulation
On this page
  1. Why does PLCSIM run the CFC while WinCC shows no data?
  2. Where is the logical device set in WinCC 7?
  3. Which logical device does a PN/DP CPU interface need?
  4. Which logical device does an Industrial Ethernet CP need?
  5. Which PG/PC interface matches the PLCSIM connection?
  6. How do you check that the PLC and PC share one network?
  7. What is the decision for each case?
  8. How do you apply the change without moving the tags?
  9. Questions asked

WinCC 7.0 shows no data from S7-PLCSIM V5.4 when the channel unit's logical device still names the physical network access instead of the simulation interface. For a CPU with an integrated PN/DP interface, your tags stay under the TCP/IP channel unit and the Logical device name is set to PLCSIM(RFC 1006); for an IE CP, the connection sits under the Industrial Ethernet channel unit and the name is PLCSIM(ISO). The STEP 7 PG/PC interface and the PLCSIM connection drop-down must match that choice, at PLCSIM (TCP/IP) for a TCP/IP project. A running CFC, a shared Ethernet subnet in the NetPro drawing and a runtime that starts prove nothing about this path.

Why does PLCSIM run the CFC while WinCC shows no data? #

A running CFC proves the simulated CPU executes its program, while WinCC values depend on a separate communication path with three selectors of its own, so PLC execution says nothing about HMI access.

Each observation from the reported fault has exactly one meaning:

  • The CFC runs in PLCSIM. The simulator holds a runnable program; the HMI path was never tested.
  • The tags appear under a channel unit in the tag tree. The variables are configured, and configuration is not an online read.
  • NetPro draws the PLC and the PC station on one Ethernet, yet going online reports the connection partner unavailable. The configured network relationship exists, while the online access path cannot reach the simulated partner.
  • The runtime starts after a MAC address was entered. Startup proves the project loads, not that a connection answers.
  • Choosing the ISO simulation interface stops a download that worked over TCP/IP. Download and simulator are answering on different transports, so the selectors disagree.

Three settings decide the path: the STEP 7 PG/PC interface, the PLCSIM connection drop-down, and the WinCC logical device. Setting one of them does not set the other two.

Where is the logical device set in WinCC 7? #

The logical device lives in the channel unit's System Parameter dialog under Tag Management in the SIMATIC S7 Protocol Suite, on the Unit tab, in the Logical device name field, and it is set separately for each channel unit.

The WinCC V7.5 configuration manual describes the system parameters on the SIMATIC S7 and Unit tabs as specific to the channel unit, set separately for each one, so a correction made under the TCP/IP unit does not reach the Industrial Ethernet unit. Three layers have to agree:

  • Channel unit — the protocol-specific part of the driver: TCP/IP or Industrial Ethernet in this case.
  • Connection — the entry under the unit that defines the controller endpoint; new connections are created from the unit's shortcut menu.
  • Logical device — the field naming the communication interface the unit uses to reach that endpoint.

Which logical device does a PN/DP CPU interface need? #

For a CPU with an integrated PN/DP interface, such as the CPU 416 PN/DP of the reported project, the connection sits under the TCP/IP channel unit and the Logical device name is set to PLCSIM(RFC 1006).

This is the combination reported working on a CPU 416 PN/DP project, and it fits the simulator side: the S7-PLCSIM V5.4 manual lists the interface types you can connect through, and its TCP/IP type is the one this name pairs with, as the reported working setup showed. RFC 1006 is the standard that carries the ISO transport service on top of TCP, so the label names a transport, not a separate simulation mode. Two addresses then have to name the same station: the IP address configured on the CPU interface, and the endpoint address in the WinCC connection.

Which logical device does an Industrial Ethernet CP need? #

For an IE CP, the connection sits under the Industrial Ethernet channel unit and the Logical device name is set to PLCSIM(ISO), with the MAC address taken from the PLC's hardware configuration rather than from the laptop adapter.

ISO Ethernet reaches a station by MAC address, and the address the connection uses is the one entered in the CPU's hardware configuration in STEP 7; the simulator exposes no MAC setting of its own, so a MAC typed in on the PC-station side leaves the endpoint unmatched. For an ISO download, both simulator-side selectors take PLCSIM (ISO). What was reported and did not work: giving the Industrial Ethernet channel the laptop's name and IP address, then starting the runtime — the logical device was still wrong, and startup tested nothing.

Which PG/PC interface matches the PLCSIM connection? #

When the project downloads over TCP/IP, both the STEP 7 PG/PC interface and the PLCSIM connection drop-down are set to the TCP/IP simulation interface, because S7-PLCSIM V5.4 documents exactly two interface types to connect through: PLCSIM (ISO) and PLCSIM (TCP/IP).

The download and the runtime are two conversations on one agreed path: the PG/PC interface routes the STEP 7 download, the PLCSIM drop-down selects the interface the simulator answers on, and the WinCC logical device routes the runtime traffic. The reported failure fits exactly — with the station configured for TCP/IP, choosing the ISO simulation interface in the PG/PC interface sends the download down a transport the simulator was never given, and the download stops. Restore the TCP/IP selection there instead of chasing the WinCC side with mismatched settings underneath.

How do you check that the PLC and PC share one network? #

The PLC interface and the PC station must hold addresses whose network portions match under the same subnet mask, and the mask is what decides it: two addresses can differ in their last octet and still belong to one network.

Worked example, with example addresses: the CPU interface is configured at 192.168.1.10, the PC station at 192.168.1.50, both with the mask 255.255.255.0. The mask decides what must match: an address octet under a 255 passes through unchanged, an octet under a 0 becomes zero. PLC: 192.168.1.10 gives the network 192.168.1.0. PC: 192.168.1.50 gives 192.168.1.0. The networks are equal, so this pair shares one subnet and passes.

Now move only the PC station to 192.168.0.50 with the same mask: its network becomes 192.168.0.0, which differs from the PLC's 192.168.1.0 in the third octet. That pair fails, and no logical-device setting repairs it — correct the address or the mask first.

The PLCSIM interfaces answer on the PC itself, so no cable carries this traffic, but the addresses still decide whether the endpoint WinCC addresses matches the network the project declares. Keep them consistent and the project later moves to the real CPU without rework.

What is the decision for each case? #

Each case gets one decision: keep your existing TCP/IP tags and change only the logical device for the PN/DP case, take the Industrial Ethernet channel with the ISO simulation name only when an IE CP actually carries the connection, and leave MPI to projects already wired that way.

Case Channel unit in WinCC Logical device name Selectors on the simulator side
CPU with an integrated PN/DP interface, the CPU 416 PN/DP case TCP/IP PLCSIM(RFC 1006) PLCSIM (TCP/IP)
IE CP in the PLC station Industrial Ethernet PLCSIM(ISO) PLCSIM (ISO)

The second reported project, a 317F station moved to a laptop for development, follows the same table by whichever interface its hardware configuration shows. One limit holds for it: the simulation proves the communication path only, so the safety functions of the F-CPU keep their validation on the real hardware. If a project already runs over MPI, that route works as well and its access-point variant is covered in Connecting WinCC to PLCSIM Through the S7Online Access Point, but moving every tag to another channel unit to reach it is exactly the job you are avoiding.

How do you apply the change without moving the tags? #

Change one field and restart the runtime: the tags stay under their channel unit, the logical device changes to the simulation interface, and the reported working sequence is set the name, confirm with OK, restart WinCC, then read a value the CFC is moving.

  1. In WinCC Explorer, open Tag Management, expand SIMATIC S7 Protocol Suite, and note which channel unit holds the process tags — in the reported laptop project, TCP/IP.
  2. In the STEP 7 hardware configuration, identify the interface the connection uses, the CPU's integrated PN/DP interface or an IE CP, and note its configured address.
  3. In PLCSIM, set the connection drop-down to PLCSIM (TCP/IP) for a TCP/IP project.
  4. In the STEP 7 PG/PC interface, select the same TCP/IP simulation interface and download; if an ISO selection stops a download that worked, restore the TCP/IP selection before touching WinCC.
  5. Open the channel unit's System Parameter, Unit tab, and set Logical device name to PLCSIM(RFC 1006) for the PN/DP case or PLCSIM(ISO) for the IE CP case.
  6. Confirm the PLC and PC-station addresses share one network under the subnet mask, as in the worked example above.
  7. Restart WinCC runtime and watch a tag whose value the CFC changes; a moving value ends the troubleshooting.

If the values update and the connection later drops again after a runtime start, that is a separate fault with its own fix in Why WinCC runtime loses an S7-300 connection after startup.

Questions asked

Does the laptop's real network adapter address matter for the PLCSIM connection?

No. The simulation interfaces are virtual paths inside the PC, so the physical adapter's address is never consulted; giving the WinCC PC station the laptop's address and name routes nothing to the simulator. On a WinCC 7 project running a CPU 416 PN/DP in PLCSIM V5.4 over the TCP/IP channel, a matching address and a started runtime still showed no data until the logical device was corrected, because that field alone decides the path.

Why did entering a MAC address not fix the TCP/IP connection?

A MAC address is the addressing of the ISO transport. The tags in the reported project sit under the TCP/IP channel unit, which reaches its endpoint by IP address, so a MAC entered for the Industrial Ethernet side changes nothing on the path those tags use; the fix there is the logical device, not an address.

Is switching the project to MPI quicker than fixing the TCP/IP path?

Only for a project that already runs over MPI. The reported shortcut puts a CP5512 adapter into the channel configuration and recompiles, which is quick on an MPI-wired project. For tags sitting under TCP/IP, the move means reassigning every tag to new connections, while the logical device fix is one field plus a runtime restart.

Can tag writes be tested against PLCSIM, not only reads?

Yes. Once values update, write to a tag from a runtime screen and watch the corresponding input in the CFC change. The write stays inside the simulation on the development laptop, and the test confirms the path in both directions before the project goes back against the real CPU.

Does the logical device change apply to both channel units at once?

No. The Unit tab parameters are specific to each channel unit, so setting the TCP/IP unit leaves the Industrial Ethernet unit on its old access path. A project holding tags under both units needs the field set once in each, matched to the interface that connection actually uses.

Keep reading

  • How-to

    Connect an S7-400H to WinCC Professional with a Device Proxy

    Yes: keep the S7-400H project in SIMATIC Manager under STEP 7 V5.6, build the WinCC Professional V15.1 runtime station in TIA Portal, and join the two projects with a Device Proxy. Enable the redundancy option on the SIMATIC S7-300/400 connection so the runtime follows the active H-CPU, then prove the switchover on a bench before the plant relies on it.

    HMI and touchscreens

  • Selection guide

    When your HMI needs more than the bundled communication license

    Since WinCC V6.0 SP3, every RT/RC license bundles a SIMATIC NET S7-Softnet Lean license for 8 S7 connections (10 from WinCC V8.1); Client licenses bundle none. Above that limit, Industrial Ethernet SOFTNET-S7 covers 64 and Extended 128, and from WinCC V7.5 SP2 the bundled key upgrades with a regular Powerpack. Count configured connections and inventory the keys before ordering.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC OA 3.11 cannot read an S7-1500 tag over the S7 driver

    A successful ping only proves IP reachability. WinCC OA 3.11 also needs CPU connection resources in the selected category, PUT/GET permission in the CPU protection settings, a standard-access communication block and a periphery address mapped to a datapoint element. A zero 'other connections' count and an unmapped datapoint are two separate faults; fix them separately.

    HMI and touchscreens

Why KTP 1000 PN simulation needs the TCP/IP PLCSIM interface