Overview
The function blocks of the PLC library Tc3_IotBase can be used for publisher/subscriber based data exchange between the TwinCAT PLC and a message broker via the MQTT communication protocol. Symbols can be sent (publish mode) and received (subscribe mode). The data format to be used is freely definable and can be created via additional PLC libraries, e.g. the Tc3_JsonXml library.
In addition to the PLC library, a TwinCAT I/O device is available, via which a device-to-device communication connection can be configured via a message broker. The main application case for this I/O device is where two TwinCAT-based systems are to exchange data with each other via a message broker. Alternatively, an EK9160 can also be connected to a TwinCAT system via MQTT.
Product components
TF6701 IoT Communication consists of the following components, which are installed with TwinCAT 3 as standard:
- Driver: TcIotDrivers.sys (supplied with TwinCAT 3 XAE and XAR Setups)
- PLC library: Tc3_IotBase (supplied with TwinCAT 3 XAE Setup)