The values of network variables can be exchanged between different PLCs in a network. The variables have to be defined in rigid, identical lists in both the transmitter device and the receiver device, where only one application of a device may defined network variables. The lists can be in one or more projects.
The network variable list in the sender is a global variable list where specific log and transfer parameters are defined in their object properties. By adding these properties, you create a "network variable list (sender)" from an ordinary GVL. You can also insert a
Network Variable List (Sender) object directly into the device tree when this object already has these parameters set.
The network variable list in the receiver is a
Network Variable List (Receiver) type. When creating one, select the respective network variable list of the server. As an alternative, you can read this variable list from an export file that was generated from the sender list. An export file is required anyway for defining the sender list in another project.
The network variables are transmitted as broadcasting in one direction only: sender to receiver. However, it is also possible for a device to contain both sender and receiver lists.
For the NetVarUdp library version 3.5.7.0 and higher, a receiver channel is no longer assigned when confirmed transfer is not selected. As a result, network variable exchange is also possible between two controllers on one hardware device.
|
Important |
|---|---|
|
|
Important |
|---|---|
|
During data transmission via UDP from the sender to the receiver, data can be lost in each cycle at the following positions or events:
This means that the data received by the receiver in a cycle may not be up-to-date, but outdated. |
For more information, see: Network Variables