Programmer's reference

The programmer's reference provides an overview of the different parameters, interfaces and their methods.

These include:

The TCP/UDP RT module can be used by different protocols. An InterfacePointer and an interface to be implemented always go hand in hand:

For all uses of IP addresses (e.g. "IpAddr"), the most significant elements are displayed in the last position. (Example: 192.168.2.1 -> 01 02 A8 C0)

Performance

The TCP/UDP RT TcCOM object runs in real-time. Thus, the module is also directly dependent on the cycling of the real-time. The frequency with which data can be communicated can therefore be influenced by the cycling of the task used (and therefore also the real-time settings):

Programmer's reference 1:
Programmer's reference 2:

Communication via the network interface depends on this cycle. A corresponding call to the CheckReceived() methods (see API documentation) must be made in each cycle.

Incoming data: CheckReceived()

Programmer's reference 3:

Context of the incoming data

The customer must ensure that the method CheckReceived is called cyclically. Samples illustrate the procedure in PLC and C++

The CheckReveived() method is called cyclically in order to ensure that the data can be provided in the same context as the client project. The protocol-dependent Receive() methods of the customer project are called within this method call, if data have been received.

Programmer's reference 4:

Disconnection of Engineering connection on breakpoints

If breakpoints are used, we strongly advise to use different network interfaces, since a breakpoint stops parts of the TwinCAT systems, which may be relevant for the communication with Engineering.