Example Configuration for Data Communication via \ UDP/IPΒΆ
Fast data communication via UDP/IP is a proprietary (manufacturer-specific) protocol. This protocol is only supported by AC31 series 90 or AC500 controllers. It serves for the transmission of any data between the controllers and can be used in parallel to all other protocols. This protocol is based on the standardized protocols UDP and IP. The actual protocol is lying above UDP/IP.
Protocol handling corresponds to a large extent to the ARCNET processing. Aside from the corresponding configuration of the Ethernet Communication Module, the implementation of the following bocks is required for fast data communication via UDP/IP:
- ETH_UDP_REC: ETH_UDP_REC ETH_UDP_REC
- ETH_UDP_SEND: ETH_UDP_SEND ETH_UDP_SEND
- ETH_UDP_STO: ETH_UDP_STO ETH_UDP_STO
Caution
The user program should not be implemented as a cyclic task (PLC_PRG) if high communication traffic caused by the protocol for fast data communication via UDP/IP is expected. A task configuration has to be implemented instead with the cycle time to be adjusted in a way that sufficient communication resources are available in addition to the actual processing time for the program.
For our design example a closed installation-internal network is used. The network consists of two AC500 controllers. The devices are connected to each other via a switch. The controllers shall have the IP addresses 10.49.91.253 and 10.49.91.254. Each controller shall send 2 bytes of data to the other controller. The uniform and constant user data length has been chosen only to simplify the example. If necessary, it is also possible to use different data lengths for each controller as well as variable data lengths for each transmission.
The individual transmissions shall be controlled in different ways for each controller.
Controller 1 (IP address 10.49.91.253)
transmits the data to the other controller periodically and receives data from the other controller.
Controller 2 (IP address 10.49.91.254)
transmits the data to the other controller periodically and receives data from the other controller.