Dialog ‘Properties’ - ‘Network properties’

Symbol:

Function: In this dialog, you define network properties for the variable list that is selected in the device tree. Furthermore, any variables in it that are declared as network variables are also available.

Call: Right-Click Variable List in Device Tree ‣ Click Properties (Network properties tab).

Network type UDP, CAN etc.
Task Task of the current application that controls the variables to be sent. CODESYS always sends the variables at the end of a task cycle.
List identifier For identifying the network variable list; must be unique.
Pack variables

: CODESYS bundles the variables for sending in packets (telegrams); the size depends on the network type.

: CODESYS generates one packet per variable.

Transmit checksum : A checksum is performed for each variable packet. The receiver checks the checksum to make sure that the variable definitions match from the sender and receiver. A packet with nonmatching checksums is not accepted.
Acknowledgment

: CODESYS sends an acknowledgment message for each received data packet. If the sender does not receive a confirmation before it sends again, then an error is written to the diagnostic structure.

As from version 3.5.7.0 of the lNetVarUdp library not any longer a receiver channel will be used if you use acknowledged transfer. So also network variables exchange between 2 controllers on 1 hardware device is possible.

Cyclictransmission, Interval CODESYS sends the variables within the defined interval. Example for time definition: “T#70ms”.
Transmit on change, Minimum gap : CODESYS sends the variables only if their values have changed. You can use “minimum gap” to define the least amount of time between two transmissions.
Transmit on event, Variable : CODESYS sends the variables as soon as the defined variable yields TRUE.
Settings

Log-specific settings; possible entries depend on the network library.

Port: Number of the port that CODESYS uses for data exchange with other network units. The Default value is “1202”. You can change the current value in the Value field at any time. Select the field, press the spacebar, and type the value.

Important: The other nodes in the network must define the same port. If more than one UDP connection is defined in the project, then the port numbers in all configurations are adapted to this value.

Broadcast Adr.: The Default value is 255.255.255.255, which means that data exchange will take place with all network units. You can change the current value in the Value: select the field, press the spacebar, and type the address or address range of a subnetwork (for example, 197.200.100.255 when communication should be with all nodes that have an IP address in the range 197.200.100.x.

See also