beckhoff TE1000 — 2.1.1 Communication methods

Product description Multicast IP: A multicast IP address must be in the range 224.0.0.0 to 239.255.255.255 (IPv4). In the EAP device, TwinCAT generates a compliant multicast MAC address for each configured multicast IP address , which is used when TwinCAT starts up (i.e. when the Run mode is activated). Pushed Data Exchange (n:m connection) The Pushed Data Exchange mode is based on the same model as the NWV transfer (Publisher/Subscriber principle). It offers the option of an n:m connection in a network. Each EAP device can send one or several EAP telegrams, together with its output process data ( TxData ).

Each EAP device can “listen” to ascertain whether the process data contained in a received EAP telegram match its input process data (RxData), so that they can be processed, if applicable. One and the same EAP device can therefore send and receive process data. In this way a bidirectional communication can be established. With Pushed Data Exchange, the addressing mode (unicast, multicast or broadcast) for each configured EAP telegram can be freely selected as required. Polled Data Exchange (1:1 connection) The Polled Data Exchange mode is subject to the client/server architecture principle. With the aid of this architecture, it enables “soft” synchronization.

An EAP device can act as client and server at the same time. Connection type for Polled mode For the Polled Data Exchange mode, only the connection type unicast is defined uniquely. Unicast (1:1 connection) A client sends an EAP telegram together with its output process data to a server, which then returns its input process data to the client in a separate EAP telegram. Network protocols Ethernet protocol The Ethernet protocol is responsible for switching the data packets in the network. It handles the tasks of OSI layers 1 and 2 (physical layer and data link layer).

The Ethernet protocol header should contain a sender address, a receiver address and an Ethernet type, which specifies which protocol is used for the next higher OSI layer. The sender and receiver addresses are entered in the form of a MAC address. MAC stands for media access control and in this case refers to the unique hardware address assigned to each Ethernet device during production. The Ethernet port of a Beckhoff PC could be assigned the MAC address 00:01:05:34:05:84, for example; "00:01:05" is the Beckhoff ID, and the second part is specified during production. The sender and receiver MAC addresses determine the route of each Ethernet telegram between two PCs in the network.

An Ethernet telegram can be processed further via a switch, but usually not via a router. User Datagram Protocol / Internet Protocol (UDP/IP) The receiver is identified via an additional IP header in the Ethernet telegram, so that it can be processed further by a router. The telegram has the Ether type 0x0800, which specifies that it is an IP telegram. In the subsequent UDP header, the port number 0x88A4 is used for the source port as well as the destination port. Based on this port number, the TwinCAT system detects that the telegram is a real-time based user datagram.

TwinCAT identifies an EAP telegram either on the basis of Ether type 0x88A4 (if the Ethernet protocol is used) or on the basis of the destination port 0x88A4 (for UDP/IP). Accordingly, the TwinCAT Ethernet driver makes a received EAP telegram bypass the NDIS stack of the operating system, so that TwinCAT treats it preferentially as a Beckhoff real-time Ethernet telegram. When an EAP telegram is sent, the NDIS stack of the operating system is also bypassed. Once an EAP telegram has been received by a TwinCAT PC and identified as such, during further processing of the telegram the process data ( PD ) transported in the telegram are assigned to the RxData configured in the EAP device.

This assignment is based on the PD ID. The received PD is discarded, if no RxData with matching PD ID were configured at the receiver. Finally, the values of the individual process variables ( PV ) of a PD are only applied if, in addition, the data length and the version number of the received PD match the expected data length and version number. TE1000 12 Version: 1.7.1