180 likes | 821 Views
750-841, CodeSys Network Variables. Multiple controllers sharing the same data pool on the network. 750-841, CodeSys Network Variables. Boadcast Architecture. UDP Broadcast communication, cyclic, or event triggered. switch. COB ID 4711. COB ID 4711. COB ID 4711. COB ID 4711.
E N D
750-841, CodeSys Network Variables Multiple controllers sharing the same data pool on the network
750-841, CodeSys Network Variables Boadcast Architecture UDP Broadcast communication, cyclic, or event triggered switch COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711 COB ID 4711
750-841, CodeSys Network Variables Communication UDP Broadcast communication, default port 1202 (changeable) Screenshot with two handshaking 750-841’s , PLC cycl time 1-3ms, handshake cycletime app. 6 ms
750-841, CodeSys Network Variables Multicast Communication TCP/IP defines the range from 224.0.0.0 through 239.255.255.255 as multicast addresses. The addresses in the range 224.0.0.x and 224.0.1.x are partly used for special purposes and should be avoided. For communication there are following options: Example Controller: IP: 192.168. 0. 45 SM: 255.255.255. 0 1. Broadcast 255.255.255.255 2. Broadcast 192.168.0.255 3. Multicast 225.10.10.10 (for example, possible IP see above)
750-841, CodeSys Network Variables Multiple controllers sharing the same data pool on the network Variable1:BOOL; Variabe2:INT; Variable3:ARRAY[1..10] OF REAL; Prerequisits: 750-841 Firmware > 01.02.11(00) CodeSys Target > 21.06.2004 Library NetVarUdp_LIB_V23.lib
750-841, CodeSys Network Variables Write file on compile Netvar001.exp saved on Hard Disk Variable1:BOOL; Variabe2:INT; Variable3:ARRAY[1..10] OF REAL; Read file on compile
750-841, CodeSys Network Variables Enable Network variable support in the target settings Producer
750-841, CodeSys Network Variables Add a new global variable list Name and path of the network variable file Node #1 producer with export, All other nodes consumer with import function COB-ID must match (similar to CANopen) Configure the transmission type Producer
750-841, CodeSys Network Variables Define in it the network variables in the created variable list Producer
750-841, CodeSys Network Variables Enable Network variable support in the target settings Consumer
750-841, CodeSys Network Variables Name and path of the network variable file Node #1 producer with export, All other nodes consumer with import function The network variables popping up us Global variable and can be used in the program COB-ID must match (similar to CANopen) Consumer