Configuring TP177B Ethernet Bridging in WinCC Flexible

David Krause12 min read
HMI / SCADASiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

The Siemens SIMATIC TP177B (PN/DP 6-inch) is a compact HMI panel with an integrated Ethernet interface (PN variant) or PROFIBUS DP (DP variant). When the PC-based engineering station or a secondary visualization client needs to share the same tag database as the panel without rerouting PLC traffic, WinCC Flexible provides two native options:

  1. Simatic HMI HTTP connection – a peer-to-peer tag exchange channel between two WinCC Flexible devices in the same project, where one device is configured as a PC with WinCC Flexible Runtime and the other is the TP177B.
  2. SmartAccess – a licensed service that opens a direct service/remote-assistance tunnel over TCP from a WinCC Flexible Runtime PC to the panel's WinCE image.

Both options rely on the panel's Configuring WinCC flexible Internet Settings block on the WinCE Control Panel (Start > Settings > Network and Dial-up Connections or Control Panel > Internet Settings) and on the engineering PC's IP being routable to the panel's IP. This document covers the engineering procedure in WinCC Flexible 2008 SP2/SP3 and 2009, the wiring/cabling prerequisites, the HTTP connection parameter set, the tag-address syntax used to point PC-side tags to panel-side tags, and the verification sequence that confirms end-to-end tag refresh.

The Simatic HMI HTTP protocol and SmartAccess are not substitutes for the PLC's MPI/PROFIBUS/Ethernet connection to the HMI. They are a parallel channel between two WinCC Flexible stations sharing the project tag database.

Prerequisites

Item Specification Notes
WinCC Flexible Engineering 2008 SP2/SP3 or 2009 (ES) Compact / Standard / Advanced edition; matching component support packages installed
TP177B firmware WinCE 5.0 image, image version compatible with WinCC Flexible 2008/2009 Image is restored via ProSave; see Siemens entry ID 23308794 for TP177B PN/DP operating instructions
PC runtime WinCC Flexible Runtime 2008 SP3 / 2009 Required for the second "PC" device inside the WinCC Flexible project
SmartAccess license (optional) 6AV6618-1AA01-1AA0 or successor 6AV2181-8AB00-0AA0 Activates the remote-service feature inside WinCC Flexible Runtime on the PC
Ethernet cable Cat5e or better, RJ45 Patch for switch; crossover only for direct PC↔HMI without switch
IP plan Same subnet on PC and TP177B Example: 192.168.0.10 (PC) / 255.255.255.0, 192.168.0.20 (TP177B) / 255.255.255.0
User rights Administrator on engineering PC; transfer rights enabled on TP177B Set in TP177B Control Panel > Transfer / Permissions

Network Topology

The recommended layout keeps the PLC on its native fieldbus (MPI/PROFIBUS or PROFINET) and places the PC and the TP177B on a parallel Ethernet segment. The HTTP channel between the two HMI stations is independent of PLC address layout.

+-------------------+      Ethernet (HTTP)       +-------------------+
|  Engineering PC   | <----------------------> |   TP177B PN/DP    |
|  192.168.0.10/24  |                            |  192.168.0.20/24  |
|  WinCC Flex ES +  |                            |  WinCE 5.0        |
|  Runtime          |                            |  HTTP server      |
+---------+---------+                            +---------+---------+
          |                                                |
          | MPI / DP / PN (PLC connection in project)      | MPI / DP / PN
          v                                                v
   +-------------+                                  +-------------+
   | PLC S7-300/ | <- shared tag database ->        |  PLC same   |
   |  S7-400     |                                  |  network    |
   +-------------+                                  +-------------+

If a managed switch is between the PC and the TP177B, ensure port 80 (HTTP default) and, when SmartAccess is used, port 5900/5901 are not filtered. Corporate firewalls between office and plant floor typically block port 80 — bring the engineering PC onto the same VLAN as the panel.

WinCC Flexible Project Configuration: Two-Device Setup

WinCC Flexible supports multiple HMI devices inside one project. To bridge a PC runtime with a TP177B over HTTP, add both devices to the same project so they share the tag database.

  1. Open the project in WinCC Flexible ES.
  2. In the project tree, right-click the root project node.
  3. Select Add Device with Wizard.
  4. Choose HMI device as the device class.
  5. For the connection type, select Simatic HMI HTTP as the symbolic protocol when prompted, or finish the wizard and modify the connection afterwards.
  6. Click through the wizard (next > next > finish).
  7. A second device (e.g. Device_2) now appears in the project tree, configured as the PC runtime station.

The wizard creates both the panel device and the PC device under one project, so tag changes propagate to both. This is the foundation of the panel↔PC bridge.

Simatic HMI HTTP Connection Setup

The HTTP connection is configured under the panel device's Communications > Connections node. WinCC Flexible offers a connection editor that pairs the local interface with the remote partner.

  1. Navigate to Device_1 (TP177B) > Communications > Connections.
  2. Open the connection editor. The default connection to the PLC remains intact; add a second connection with the following parameters:
Parameter Value (TP177B side) Value (PC side)
Name Connection_1 Connection_1 (mirror)
Driver / Protocol Simatic HMI HTTP Simatic HMI HTTP
Active / Passive Passive (server) Active (client)
Interface Ethernet (built-in PN port) Ethernet (PC NIC)
Address 192.168.0.20 192.168.0.10
Partner address 192.168.0.10 192.168.0.20
Port 80 (default) 80
Timeout / Retry 3 s / 2 retries (engineering judgment) 3 s / 2 retries

On the PC-side device (Device_2), the same connection is mirrored. Because the project shares one tag database, WinCC Flexible automatically generates the partner entry when both devices reference the same Connection_1.

If the TP177B is behind a NAT or a stateful firewall, the timeout must exceed the keep-alive interval of the firewall. 3 s is the minimum engineering practice; raise to 10 s on cellular or routed links.

Tag Configuration and Address Mapping

Tags declared on Device_1 (TP177B) are visible to Device_2 (PC) through the connection. To reference a panel tag from a screen on the PC runtime, use the symbolic tag name and select Connection_1 as the source.

  1. In Device_2's tag editor, create a tag (for example PC_TankLevel) of type Int or Real.
  2. Open the tag properties; under Connection select Connection_1.
  3. Under Address, do not type a PLC address. Click the address helper button.
  4. In the address dialog, navigate to Device_1 (TP177B) > Communication > Tags and select the panel-side tag you want to mirror (for example TankLevel).
  5. Confirm. The PC tag now has the symbolic reference Device_1\Communication\Tags\TankLevel instead of a raw PLC address.
PC-side tag (Device_2):
  Name        : PC_TankLevel
  Type        : Real
  Connection  : Connection_1 (Simatic HMI HTTP)
  Address     : Device_1\Communication\Tags\TankLevel
  Update cycle: 1 s (minimum for HTTP polling)

Polling cycle influences CPU and network load on both devices. Typical values are 1 s for slowly-changing process values and 250 ms for alarms or motor states. Below 250 ms the HTTP channel becomes the bottleneck because of TCP overhead on WinCE.

SmartAccess Alternative Path

When the engineering goal is remote service (start/stop/runtime observation of the TP177B from the PC), SmartAccess replaces the Simatic HMI HTTP tag bridge with a service/remote-assistance tunnel. SmartAccess requires:

  1. A valid WinCC Flexible Runtime + SmartAccess license on the PC (USB stick or hard-disk license).
  2. SmartAccess enabled on the TP177B via WinCC Flexible > Device Settings > SmartAccess tab, or via the Control Panel > WinCC flexible Internet Settings applet on the panel.
  3. The PC's IP allowed in the SmartAccess address list of the TP177B.

SmartAccess uses TCP port 5900 (display) and 5901 (input) by default, plus HTTP 80 for control. If only SmartService (read-only service) is licensed, port 5900 is sufficient.

The display rendered on the PC is identical in resolution (320 × 240) to the TP177B. Touch/mouse clicks on the PC are forwarded to the panel. This is intentionally not a "scaled-up" remote desktop; it is a 1:1 mirror.

WinCE Panel-Side Internet Settings

Several settings on the TP177B must be active before either the HTTP bridge or SmartAccess work. Open Start > Programs > WinCC flexible Internet Settings on the panel.

Setting Required value Purpose
IP address 192.168.0.20 / 255.255.255.0 Reachable from the engineering PC
DNS / WINS Empty or LAN-specific No name resolution needed unless you use hostname in the connection
Proxy Disabled Plant Ethernet rarely uses a proxy; leave blank
Web server / HTTP server Enabled Mandatory for Simatic HMI HTTP and SmartAccess
Transfer mode PN/IE (Ethernet) enabled Allows project download from ES to TP177B
User / Password Set per plant policy Default user "Administrator" with password "100" must be changed in production

After editing, reboot the panel. Internet Settings changes in WinCE are not applied to live sockets until the stack restarts.

Downloading the Project to the TP177B

Before the bridge can carry tags, the compiled project must be on the panel. Two transfer paths are supported over Ethernet.

  1. In WinCC Flexible ES, select Project > Transfer > Transfer (or Ctrl+Shift+F7).
  2. Choose mode Ethernet (PN/IE).
  3. Enter the panel IP 192.168.0.20. Optionally enable Show all accessible stations to let the ES broadcast-probe the subnet.
  4. Click Transfer. The first transfer prompts for the panel's administrator password (default 100).

If the broadcast probe fails (common on routed networks or when the engineering PC is on a different VLAN), set the IP manually. Reference the TP177B operating instructions listed in the Siemens Industry Online Support under entry ID 23308794 for the exact Transfer applet paths.

Verification and Commissioning Tests

After transfer and connection configuration, perform the following checks in order. Each step has a pass criterion that can be observed on-screen or in the diagnostic log.

  1. Physical link – link LED on the TP177B Ethernet port is steady green. Pass: green LED steady, amber LED dark or blinking on traffic.
  2. IP reachability – from the PC run ping 192.168.0.20 -t. Pass: replies < 5 ms on a switched LAN.
  3. HTTP probe – from the PC browser open http://192.168.0.20. Pass: WinCC Flexible web top page or login dialog appears.
  4. Tag refresh – in WinCC Flexible Runtime on the PC, force a known value on a TP177B tag (for example TankLevel := 50.0 via a button script on the panel) and observe the mirrored PC tag PC_TankLevel. Pass: PC tag updates within one update cycle (typically ≤ 1 s).
  5. Bidirectional – write a value from the PC runtime and confirm the panel screen updates. Pass: process screen on TP177B reflects the value within one cycle.
  6. Cold reboot – power-cycle the TP177B. Pass: tags reconnect automatically; no manual restart of the PC runtime required.

Troubleshooting Matrix

Symptom Likely root cause Corrective action
PC cannot ping TP177B Subnet mismatch, wrong cable, disabled Ethernet on panel Verify both stations share /24 subnet; replace with crossover cable if no switch; enable Ethernet in Control Panel
Ping works, HTTP probe fails Web/HTTP server disabled on panel; corporate proxy intercepts port 80 Enable Web Server in WinCC flexible Internet Settings; bypass proxy for the panel IP in IE settings
Browser returns 401 / authentication prompt User rights not granted Set transfer rights in panel's Control Panel; create a non-default user with password on the PC side
Tags show "No connection" on PC runtime Wrong connection selected on the PC tag; address helper did not bind to Connection_1 Open tag properties; re-select Connection_1; re-bind address through the address helper
Tags refresh intermittently Update cycle too short; panel CPU saturated Raise cycle to 1 s; reduce number of mirrored tags; check WinCE task manager for CPU > 80%
SmartAccess shows "license missing" on PC License not detected or transferred to wrong PC Reinstall SmartAccess license via Automation License Manager; verify USB stick is recognized
Download to TP177B aborts at 40% TCP keep-alive on long transfer; firewall drops idle connection Disable antivirus personal firewall; use direct Ethernet instead of routed network; set ES to "Restore" instead of "Transfer" if image upgrade is acceptable
Mirror shows wrong resolution on PC SmartAccess is mirroring as expected This is a 1:1 320 × 240 mirror, not a bug. Switch to Simatic HMI HTTP tag bridge for full-resolution PC runtime
Internet Settings change not taking effect WinCE did not restart network stack Reboot the panel; verify in Start > Settings > Network > Adapters that the IP is saved

Performance and Sizing Notes

The TP177B PN variant integrates a 10/100 Mbit Ethernet controller. The HTTP channel used by WinCC Flexible is request/response and is not designed for high-volume streaming. A practical sizing rule, derived from the WinCE image capabilities, is:

  • Up to ~200 tags mirrored simultaneously with a 1 s update cycle.
  • Up to ~50 tags with a 250 ms update cycle.
  • Above those numbers, favor PROFINET direct connection between the PC and the PLC, or use a PLC tag subscription through OPC rather than the HMI HTTP bridge.

Network load for 200 tags at 1 s cycle on a single HTTP connection is on the order of 80–120 kbit/s with default tag sizes (mix of Bool, Int, Real). The TP177B's CPU overhead is dominated by tag-acquisition polling, not by HTTP framing.

Security and Production Hardening

The TP177B default user "Administrator" with password "100" is a well-known engineering backdoor. Before commissioning on a production network:

  1. Change the administrator password in the panel's Control Panel > User Administration.
  2. Restrict SmartAccess access list to known engineering PC IPs only.
  3. If the plant has an IEC 62443 zone model, place the TP177B and engineering PC in the same zone; do not expose port 80 to the office network without a stateful inspection firewall.
  4. Disable the Web Server in WinCC flexible Internet Settings when remote access is no longer required.
The Simatic HMI HTTP bridge is unencrypted. Values travel in plaintext over the plant Ethernet. For sensitive process data, use PROFINET with TLS-capable S7-CPU firmware or an OPC UA gateway instead.

FAQ

Can I use a crossover cable to connect the engineering PC directly to the TP177B without a switch?

Yes. The TP177B PN port supports auto-MDIX on most firmware revisions, so a straight-through Cat5e also works. Set the PC NIC to 100 Mbit/full duplex and assign a fixed IP in the same /24 subnet as the panel, for example 192.168.0.10/24 versus 192.168.0.20/24 on the TP177B.

Do I need WinCC Flexible Runtime on the PC to use the Simatic HMI HTTP bridge?

Yes. The bridge is implemented inside the WinCC Flexible Runtime on the PC; engineering-only setup without a runtime does not poll tag values. If you only need remote service without mirroring tags, use SmartService/SmartAccess instead.

What default port does the Simatic HMI HTTP connection use?

TCP port 80 by default. Confirm in the TP177B's WinCC flexible Internet Settings that the HTTP/Web server is enabled and that no firewall on the engineering PC blocks outbound port 80 to the panel IP.

Why does my tag refresh show a one-second delay even with a 250 ms cycle?

The HTTP channel request/response round-trip on WinCE is bounded by the panel's scheduler. With 50 tags at 250 ms cycle and a 100 Mbit link, observed end-to-end latency is typically 200–400 ms; one tag with a 250 ms cycle may still report a 1 s average because WinCC Flexible batches HTTP requests per cycle. Above 200 tags, raise the cycle to 1 s to keep CPU on the panel below 70%.

Is it possible to download a project to a TP177B PN/DP over Ethernet without MPI/PROFIBUS?

Yes. In WinCC Flexible ES select Project > Transfer > Transfer, choose mode Ethernet (PN/IE), and enter the panel's IP. The panel must have Transfer enabled in its Control Panel and an administrator password configured. See Siemens entry ID 23308794 for the TP177B PN/DP operating instructions covering the Transfer applet and the PN/IE transfer checklist.

Back to blog