Application example 1 - Transferring floating-point numbers
This application example shows how a floating-point number of data type "real"(TwinCAT) or "float"(Mitsubishi) is transferred from a Beckhoff to a Mitsubishi controller and vice versa via CC-Link.
Because a floating-point variable of data type "float" or "real" occupies four bytes, we need two UINT16 PDO entries in the configuration for sending and receiving.

To transfer a floating-point number, a UNION with the structure as shown in the next diagram is used.

This is instantiated in Main and linked with the applied PDOs of the terminal, once for sending and once for receiving a floating-point number.

If both controllers are logged in and operational, the data exchange looks as follows:
