Back

Topic

[KB1269]Configuring Multiple S7 Networks in PcVue: Using the device offset parameter

Tags: Communication, Data acquisition, Drivers, S7 Siemens

3 days ago
By ELCH
Options
Print
Applies to:
PcVue 16.3 onwards
Summary:
Starting with PcVue 16.3, a new parameter is available in the Advanced settings of the S7 network configuration. We recommend using a single S7 network whenever possible. If you need to split your devices into several S7 networks of the same protocol (typically to organize devices by site or area), this parameter must be configured — otherwise PcVue will silently read values from the wrong device.
Details:

The S7 driver DLL does not handle the notion of network: it only sees a flat list of equipment, each addressed by its position in that list (starting at 0).

As a result, when several S7 Ip Industrial Ethernet networks of the same protocol are declared, the driver restarts indexing from 0 in each network by default. The first equipment of Network 2 is therefore addressed at the same position as the first equipment of Network 1. PcVue raises no error and all devices is showen Connected. But values read on Network 2 actually come from devices on Network 1.

The Device offset parameter tells the driver where the equipment of a given network starts in that flat list, so each device is addressed at the correct position.

image
image

Consider a project with two sites, each represented by a S7 Ip Industrial Ethernet Network :

S7 KB1
Example of an architecture with multiple S7 networks

The offset of network N must equal the total number of S7 devices declared in all previous networks.

Result :

NetworkDevicesDevice offset
Network 1 — Site A20 (default)
Network 2 — Site B32
image
image

To avoid maintaining offsets manually each time a device is added or removed, this value can be assigned automatically in Application Architect by computing the number of equipment in each network with a count-type expression, and binding the result to the Device offset property. For details on this approach, refer to KB1113.

Created on: 27 May 2026 Last update: 28 May 2026