SENTRON PAC3200 to WinCC Flexible via WiFi: Configuration Guide

David Krause18 min read
Industrial NetworkingSiemensTutorial / 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

System Overview

This reference documents the wireless integration of a Siemens SENTRON PAC3200 power meter, a Fatek FBs series PLC with built-in Ethernet, and SIMATIC WinCC Flexible Runtime running on an engineering laptop. Communication between the three devices is bridged by two TP-Link WiFi routers, and the host PC connects to the wireless network through its built-in WiFi adapter. The configuration pattern is generic and applies to any combination of Modbus TCP meters, Ethernet-capable PLCs, and PC-based HMI software that uses the Windows TCP/IP stack.

The end goal is to read three-phase voltage, current, active power, power factor, and energy values from the PAC3200, combine them with discrete and register data from the Fatek PLC, and surface the result on a WinCC Flexible screen that can be opened on a wireless laptop anywhere in the plant. WiFi is treated as a transparent Layer-2 bridge: the engineering PC, the PAC3200, and the Fatek PLC all share a single IP subnet, the WiFi adapters behave like Ethernet NICs from the perspective of WinCC Flexible, and the radio link is invisible to the application layer.

Critical principle: Configure and validate the wired Ethernet path first. Only after the wired path polls cleanly for at least 30 minutes should the radio link be substituted. This isolates radio-layer problems (RSSI, channel contention, roaming) from application-layer problems (driver selection, register mapping, tag addressing).

Network Architecture

The reference architecture places the PAC3200 and the Fatek PLC on a wired Ethernet segment that terminates at TP-Link Router A configured as a wireless access point. Router A bridges the wired segment onto the 2.4 GHz radio. A second router, TP-Link Router B, can be deployed as a wireless repeater or as a downstream access point on the same SSID to extend coverage. The engineering PC associates with the SSID using its built-in WiFi adapter, and WinCC Flexible Runtime opens TCP connections to the meter and the PLC exactly as it would on a wired LAN.

Wireless Integration Topology SENTRON PAC3200 192.168.10.20 Fatek FBs PLC 192.168.10.30 TP-Link Router A 192.168.10.1 AP Mode 2.4 GHz Radio SSID: PLANT_WIFI TP-Link Router B 192.168.10.2 Repeater Eng. PC WiFi Client 192.168.10.100 WinCC RT Subnet: 192.168.10.0/24 — single broadcast domain All Modbus TCP traffic crosses the radio transparently Solid lines: 100BASE-TX Ethernet · Dashed orange: 802.11b/g/n radio

Prerequisites

Confirm each of the following before touching the radio link:

  • SENTRON PAC3200 firmware 2.4.x or later with the Ethernet MODBUS TCP option installed. The integrated Ethernet port is the only one on the base unit; the PAC3200 does not have an RS-485 Modbus port on the same hardware revision used here. Reference the SENTRON PAC3200 manual on the Siemens Industry Online Support portal.
  • Fatek FBs series PLC with the FBs-ECAT or FBs-TCP communications daughterboard. Verify that the slot is populated and that the LINK LED is on when the cable is plugged in. Use Fatek's official product page to confirm the exact daughterboard model number for your CPU.
  • SIMATIC WinCC Flexible 2008 SP5 (or the latest available service pack). SP5 is the recommended baseline because earlier service packs have known issues with Windows 10/11 WiFi adapter binding.
  • Fatek WinProladder V3.91 or later for offline Ethernet parameter configuration.
  • Two TP-Link routers (TL-WR840N, TL-WR841N, TL-WR902AC or equivalent) that support Access Point mode and Repeater/Bridge mode on 2.4 GHz. Enterprise-class routers are not required for the testbed but are recommended for production.
  • Static IP allocation capability — the PAC3200 and the Fatek PLC do not support DHCP for the meter channel used here, and the engineering PC must be assigned a fixed address to avoid WinCC Flexible losing its peer on lease renewal.
  • Ping and Wireshark for the verification phase. WinCC Flexible's built-in channel diagnostics are useful but not sufficient to localize a TCP retransmit storm caused by a weak WiFi link.

IP Address Planning

Pick a private subnet that is not in use elsewhere in the plant. The reference design uses 192.168.10.0/24, which gives 254 usable addresses — more than enough for the meter, the PLC, two routers, and the engineering PC. The mask is 255.255.255.0.

Device IPv4 Address Subnet Mask Default Gateway Notes
TP-Link Router A (AP) 192.168.10.1 255.255.255.0 192.168.10.1 DHCP server disabled; SSID PLANT_WIFI; channel 6 (non-DFS)
TP-Link Router B (Repeater) 192.168.10.2 255.255.255.0 192.168.10.1 Same SSID and PSK; client isolation OFF
SENTRON PAC3200 192.168.10.20 255.255.255.0 192.168.10.1 Modbus TCP port 502; unit ID 1
Fatek FBs PLC 192.168.10.30 255.255.255.0 192.168.10.1 Modbus TCP port 502; slave ID 1
Engineering PC (WiFi) 192.168.10.100 255.255.255.0 192.168.10.1 DNS not required; link-local only
Subnet rule: the engineering PC, the meter, and the PLC must all sit on the same Layer-2 broadcast domain. If the two TP-Link routers are placed on different subnets (for example, Router A on 192.168.10.0/24 and Router B on 192.168.11.0/24), Modbus TCP packets will be NAT-translated by the routers, which silently breaks both the connection and any unit-ID-based addressing. Always keep the radio side and the wired side on a single subnet.

TP-Link Router Configuration

Configure Router A in Access Point mode rather than router mode. In AP mode the device's WAN port is repurposed as a second LAN port, the DHCP server is disabled, and the radio is bridged onto the wired LAN. This produces a single Layer-2 domain, which is what the application layer expects.

  1. Reset the router to factory defaults by holding the recessed RESET button for 8 seconds with the unit powered on.
  2. Connect a configuration laptop to a LAN port on Router A and browse to 192.168.0.1 (the factory default). Log in with the printed admin password.
  3. Switch the operating mode to Access Point from Operation Mode on the dashboard. The router will reboot with a new management address; consult the quick-start card for the exact value (commonly 192.168.10.1 on TL-WR902AC).
  4. Disable the DHCP server. Static allocation is mandatory for the meter and the PLC, and the engineering PC is also static, so no DHCP service is required.
  5. Set the SSID to PLANT_WIFI, the channel to 6 (or 11, depending on site survey), the channel width to 20 MHz, and the security mode to WPA2-PSK AES. Use a pre-shared key of at least 16 characters.
  6. Connect the PAC3200 and the Fatek PLC Ethernet cables to the LAN ports of Router A. Verify that the LINK LEDs are solid on all three devices.

Configure Router B as a Repeater on the same SSID. On the TL-WR840N family this is Operation Mode → Range Extender. The repeater should be placed where the RSSI from Router A is at least −65 dBm — measured with a WiFi analyzer app — to avoid retransmit storms. Some TP-Link models require the repeater to use a different management IP on the same subnet; assign 192.168.10.2 and confirm that the repeater's built-in DHCP server is off.

Siemens SENTRON PAC3200 Configuration

The PAC3200 is configured through its on-device HMI: a four-button keypad on the front panel. Press the Menu button until Settings is highlighted, then enter the password (default 0000 on the field-installable firmware; production units ship with a customer-defined password — see the PAC3200 device manual).

  1. Navigate to Communication → Ethernet → IP Address and set the value to 192.168.10.20.
  2. Set Subnet Mask to 255.255.255.0 and Gateway to 192.168.10.1.
  3. Confirm Modbus TCP Port is 502. The PAC3200 ships with this port enabled.
  4. Set Modbus Unit ID to 1. WinCC Flexible's Modbus TCP driver defaults to unit ID 1; do not change it unless the wider plant assigns a different ID for the meter.
  5. Save and reboot the meter. After reboot, verify the IP from the front panel by stepping into Information → Communication.

The PAC3200 exposes process data as 16-bit input and holding registers. The default register map — provided in the PAC3200/PAC4200 Modbus TCP communication manual — is the only one that WinCC Flexible's generic Modbus driver can address without a custom import file. The subset that engineers usually surface on the HMI is shown below.

Register Address (decimal) Quantity Unit Scaling Function Code
1 Voltage L1-N V × 0.1 (integer 2300 = 230.0 V) 0x04 (Read Input Registers)
3 Voltage L2-N V × 0.1 0x04
5 Voltage L3-N V × 0.1 0x04
7 Current L1 A × 0.001 (integer 1234 = 1.234 A) 0x04
9 Current L2 A × 0.001 0x04
11 Current L3 A × 0.001 0x04
25 Total active power, 3-phase W × 1 (signed 32-bit, registers 25-26) 0x04
53 Power factor, 3-phase × 0.001 (integer 950 = 0.950) 0x04
801 Active energy, import kWh × 0.01 (signed 32-bit, 801-802) 0x04

Register addresses are zero-based in the PAC3200 manual. Modbus protocol itself is zero-based for the address field. WinCC Flexible's Modbus TCP driver can be configured to use either 0-based or 1-based addressing — leave it on the default 1-based (Modicon convention) and add 1 to each value shown above. The PAC3200 manual uses 0-based values; the WinCC Flexible tag should reference 2, 4, 6, 8, 10, 12, 26, 54, and 802 respectively.

Fatek PLC Ethernet Configuration

The Fatek FBs series uses its Ethernet daughterboard to expose the full register map (R, D, M, X, Y, S, T, C) over Modbus TCP on port 502. The default slave ID is 1. Configure the IP address in WinProladder → Project → PLC Ethernet Parameter Setting. The relevant fields are:

  • IP Address: 192.168.10.30
  • Subnet Mask: 255.255.255.0
  • Gateway: 192.168.10.1
  • TCP Port: 502 (the Fatek port is configurable; do not change it from 502 unless the wider Modbus network requires it)
  • Communication Timeout: 3000 ms (a longer value is more forgiving of WiFi retransmits but slows down fault detection)

Write the new parameters to the PLC. The Ethernet port reboots in roughly 5 seconds; the LINK LED will blink twice to confirm the new address. The full register map and Modbus mapping rules are documented in the Fatek FBs series programming manual.

WinCC Flexible Runtime Configuration

WinCC Flexible supports the meter and the PLC through the Connections editor in the project tree. Two separate connections are defined, one per device, because the Modbus TCP driver instance is bound to a single remote endpoint. Open the project, double-click Connections, and add the entries below.

Parameter PAC3200 Connection Fatek Connection
Communication driver Modicon Modbus TCP Modicon Modbus TCP
Station address (IP) 192.168.10.20 192.168.10.30
Port 502 502
Modbus unit / slave ID 1 1
Addressing mode 1-based (Modicon) 1-based (Modicon)
Polling cycle (ms) 1000 500
Connection timeout (s) 5 5
Maximum number of tags 16 (default driver limit) 16
Driver choice: WinCC Flexible does not expose a Siemens-specific driver for the SENTRON PAC3200. The PAC3200 is a third-party Modbus TCP meter from the perspective of WinCC, so the generic Modicon Modbus TCP driver — which WinCC ships by default — is the correct choice. The same driver is also the correct choice for the Fatek PLC because Fatek's Ethernet daughterboard speaks the Modbus TCP protocol on the standard port 502.

Tag addressing is then driven by the Modbus function code. For each process value define a tag with the parameters shown below; the tag's Acquisition mode must be Cyclical on the chosen polling cycle.

Tag Data Type Register (1-based) Function Code Scaling (WinCC side)
PAC_U_L1N UINT 16 2 04 (Read Input Registers) × 0.1 → 230.0 V
PAC_I_L1 UINT 16 8 04 × 0.001 → 1.234 A
PAC_P_TOTAL DINT 32 (two registers) 26-27 04 × 1 → 1234 W
PAC_PF_TOTAL UINT 16 54 04 × 0.001 → 0.950
PAC_E_IMPORT DINT 32 (two registers) 802-803 04 × 0.01 → 12.34 kWh
FATEK_D100 UINT 16 4100 (Fatek D100 maps to Modbus 4xxxx address 100) 03 (Read Holding Registers) None

For the PAC3200 the function code column above corresponds to the Area dropdown in the tag properties: select Input Register (3x) for function code 0x04 and Holding Register (4x) for function code 0x03. The Modicon 1-based convention is preserved by the driver.

WiFi Adapter Configuration on the Engineering Station

The Windows WiFi adapter must be bound to the 192.168.10.0/24 subnet with a static address. WiFi is a Windows network adapter like any other — the application layer (WinCC Flexible Runtime) does not know or care that the link is wireless.

  1. Open Control Panel → Network and Sharing Center → Change adapter settings. Right-click the WiFi adapter and select Properties → Internet Protocol Version 4 → Properties.
  2. Select Use the following IP address and enter 192.168.10.100, mask 255.255.255.0, gateway 192.168.10.1.
  3. Click Use the following DNS server addresses and leave the fields blank. DNS is not used by Modbus TCP and a misconfigured DNS server can slow the connection establishment.
  4. Disable the Windows firewall or add a rule to allow inbound and outbound TCP/502 to 192.168.10.0/24. The Windows firewall, on a default install, blocks unsolicited inbound traffic but allows outbound — Modbus TCP is therefore usually not blocked outbound, but inbound WinCC Flexible diagnostic replies occasionally are. Be explicit.
  5. Connect to the SSID PLANT_WIFI with the pre-shared key. Confirm a link speed of at least 65 Mbps and an RSSI of at least −65 dBm with netsh wlan show interfaces from a command prompt.

From the engineering PC, ping each device to verify the IP layer:

C:\> ping 192.168.10.20 -n 4
Pinging 192.168.10.20 with 32 bytes of data:
Reply from 192.168.10.20: bytes=32 time=8ms TTL=64
Reply from 192.168.10.20: bytes=32 time=11ms TTL=64
Reply from 192.168.10.20: bytes=32 time=9ms TTL=64
Reply from 192.168.10.20: bytes=32 time=10ms TTL=64

C:\> ping 192.168.10.30 -n 4
Pinging 192.168.10.30 with 32 bytes of data:
Reply from 192.168.10.30: bytes=32 time=6ms TTL=64
Reply from 192.168.10.30: bytes=32 time=7ms TTL=64
Reply from 192.168.10.30: bytes=32 time=5ms TTL=64
Reply from 192.168.10.30: bytes=32 time=8ms TTL=64

Typical round-trip time on a healthy 2.4 GHz link with 65 Mbps signal is 5-15 ms. A round-trip time above 50 ms or a packet loss above 1% is a WiFi problem, not a Modbus problem — fix the radio before changing any WinCC Flexible parameter.

Verification and Commissioning

Commission the system in this order. Each step has a deterministic pass/fail criterion, and the next step must not be attempted until the previous one is green.

  1. Wired Ethernet test: connect the engineering PC directly to Router A's LAN port with a patch cable, disable the WiFi adapter, and run WinCC Flexible Runtime. Every tag in the project should update within the configured polling cycle. Leave the system running for 30 minutes and verify zero communication errors in the WinCC Flexible alarm log.
  2. WiFi connectivity test: disconnect the patch cable, enable the WiFi adapter, associate with PLANT_WIFI, and verify the IP layer with ping as shown above. The ping must succeed with at least 95% packet success before any Modbus test is attempted.
  3. Modbus TCP smoke test with a third-party client: install a free Modbus TCP client such as Modbus Poll (trial) or diagslave on the engineering PC. Connect to 192.168.10.20:502 and read registers 2, 8, 26-27, 54, and 802-803. Verify that the integer values match the values displayed on the PAC3200's own HMI. Repeat for 192.168.10.30:502 and a holding register such as D100 (Modbus address 4100).
  4. WinCC Flexible Runtime test: start WinCC Flexible Runtime. The first screen should populate every tag within two polling cycles. Trigger a deliberate change (toggle a discrete input on the Fatek PLC, apply a known load on the meter) and verify the value updates.
  5. Long-duration test: leave Runtime running for at least 24 hours. Capture Wireshark on the WiFi adapter to record TCP retransmit and connection-reset counters. A healthy link shows less than 0.1% retransmits and zero connection resets.

If any step fails, do not proceed to the next. Refer to the troubleshooting matrix in the next section.

Troubleshooting Matrix

Symptom Likely Root Cause Diagnostic Command / Action Corrective Action
WinCC Flexible shows no connection to PAC3200; ping succeeds Wrong Modbus unit ID or wrong function code in tag Run a third-party Modbus client against 192.168.10.20:502 with unit ID 1, function code 0x04, register 1 Set the tag's area to Input Register (3x) and unit ID to 1
WinCC Flexible shows no connection to either device; ping fails WiFi not associated, wrong SSID, or wrong subnet netsh wlan show interfaces, ipconfig /all Re-associate with the correct SSID; verify the static IP is on 192.168.10.0/24
Connection drops every 30-90 seconds WiFi power-save mode on the client adapter is putting the radio to sleep Disable power management on the WiFi adapter under Device Manager → Power Management Uncheck Allow the computer to turn off this device to save power
Tags update slowly (5-10 s latency) Polling cycle too short for a congested channel; or the channel is on a DFS band and is hopping Wireshark capture on the WiFi interface; WiFi analyzer app Move to channel 1, 6, or 11; widen the polling cycle to 2000 ms; disable DFS
Intermittent connection resets on the PLC channel only Default 500 ms polling on a PLC that is also serving a multi-drop serial bus Capture on the PLC's Ethernet port; check the Communication Timeout field in WinProladder Raise the timeout to 5000 ms; reduce the number of tags polled on the PLC connection
All tags read 65535 (0xFFFF) consistently Modbus function code mismatch — driver sending 0x03 where the meter requires 0x04 Modbus Poll trace Change the tag area from Holding Register (4x) to Input Register (3x) for meter process values
Energy counter wraps at 65535 WinCC Flexible tag is UINT 16 but the meter emits a signed 32-bit value across two registers Modbus Poll trace; read registers 802-803 as 32-bit long Define the tag as DINT 32 in WinCC; configure the driver to read two consecutive registers in little-endian order
Engineer can ping the meter from the wired side but not from the WiFi side Client isolation enabled on Router B (or on a guest SSID) Router B → Wireless → Advanced Disable AP Isolation / Client Isolation
WinCC Flexible Runtime starts but the connection status is red Wrong connection partner — the project still references a development-time IP Compare the connection editor with the running device IP Recompile the project after changing the connection IP; redeploy the Runtime file
Wireshark shows repeated TCP retransmits, no SYN-ACK from the meter Wireless retransmits are starving the meter; or the meter has crashed Power-cycle the meter; ping the meter from the wired side Power-cycle the meter; if the wired ping also fails, escalate to a hardware issue with the meter

Field-Commissioning Notes

  • Channel selection on the 2.4 GHz band matters more than transmit power. In a plant with several WiFi networks, channels 1, 6, and 11 are the only non-overlapping options. Use a WiFi analyzer app to pick the quietest one.
  • Static IPs are mandatory for the meter and the PLC. Both devices ignore DHCP offers, and a transient DHCP failure on the router can knock the engineering PC off the subnet for the duration of the lease negotiation.
  • Modbus TCP is connectionless on the meter side. The meter accepts and closes TCP connections at will. WinCC Flexible reopens the connection after a configurable timeout; do not set the timeout below 5 s on a WiFi network.
  • WinCC Flexible's diagnostic view is on the Tools → Status menu of Runtime. It shows connection state, last error, and tag freshness, but it does not show the underlying Modbus exception code. For exception codes 0x01 (illegal function), 0x02 (illegal data address), and 0x03 (illegal data value), use a third-party client.
  • The Fatek FBs series uses 1-based Modbus addressing for the 0xxxx (Coil), 1xxxx (Input), 3xxxx (Input Register), and 4xxxx (Holding Register) areas. This matches WinCC Flexible's default Modicon convention and is the reason no address translation is needed beyond the 1-based offset.
  • TP-Link repeaters halve the available bandwidth on the radio side. If a repeater is required to reach the engineering PC, expect roughly half the throughput and a corresponding doubling of round-trip time. If the long-duration test shows more than 1% retransmits, deploy a wired drop to the second AP rather than relying on a wireless backhaul.

FAQ

Does WinCC Flexible support communication through a built-in laptop WiFi adapter?

Yes. WinCC Flexible Runtime uses the standard Windows TCP/IP stack, so any Windows-recognized network adapter — including the built-in WiFi radio — is supported. The radio is treated as a regular Ethernet interface; the application does not need a special driver or flag.

Do I have to test the wired path before switching to WiFi?

Yes. Always verify the wired Ethernet path first. If the wired path does not poll cleanly, the issue is at the application layer (driver selection, register mapping, tag addressing), and the WiFi radio will only obscure it. Once the wired path is green, the radio becomes the only variable in the equation.

Which Modbus driver should I pick in WinCC Flexible for the PAC3200?

Pick the Modicon Modbus TCP driver. The PAC3200 does not have a Siemens-specific WinCC driver; it speaks Modbus TCP on port 502. Use function code 0x04 (Read Input Registers) for process values like voltage, current, and power, and address the meter at unit ID 1.

Can I change the baud rate of the SENTRON PAC3200?

The PAC3200's integrated Ethernet port uses TCP/IP and does not have a baud rate in the RS-485 sense. The relevant parameters are the IP address, the subnet mask, the gateway, the Modbus TCP port (default 502), and the unit ID. For the older PAC3100 or for the optional RS-485 module, the baud rate is configurable from the device HMI at 1200, 2400, 4800, 9600, 19200, or 38400 bps; the default is 9600 bps.

Why does the energy counter wrap or read zero in WinCC Flexible?

The PAC3200 emits energy as a signed 32-bit value across two consecutive registers (801-802 for active energy import). If the tag is configured as a 16-bit UINT, the value wraps at 65535. Define the tag as a 32-bit DINT and confirm the driver is reading two consecutive registers in little-endian order. The same pattern applies to total active power, which occupies registers 25-26.

Is the engineering PC required to be on the same subnet as the meter and the PLC?

Yes. Modbus TCP uses the unit ID field to address multiple slaves on a single TCP connection, but it does not survive NAT. Both routers and the engineering PC must share a single Layer-2 broadcast domain. Keep the whole radio network on a single /24 subnet such as 192.168.10.0/24.

Back to blog