AWS IoT Core

AWS IoT Core is a managed cloud service that enables connected devices to easily and securely communicate bi-directionally with cloud applications and other devices. Special functionalities, such as the AWS IoT Device Shadow Service, enable communication with devices that are not yet connected.

AWS IoT Core 1:

AWS IoT Core and TwinCAT IoT

AWS IoT Core is based on the MQTT transport protocol. It is therefore possible to use TwinCAT IoT to send or receive messages to or from AWS IoT Core or AWS IoT Greengrass.

Various samples illustrate how to connect to the AWS IoT Core service.

Sample

Product

Description

IotMqttSampleAwsIoT

TF6701

This sample demonstrates how you can use MQTT function blocks within the PLC logic to connect to AWS IoT Core and exchange data.

Data Agent AWS IoT

TF6720

This sample demonstrates how to configure the TwinCAT IoT Data Agent to connect to AWS IoT Core and exchange data.

In a similar way, the samples can also be applied to AWS IoT Greengrass. The associated AWS IoT Greengrass Core can be installed and operated on a C6015 Industrial PC, for example. Typically, the Greengrass Core (or a Lambda function provided there) initiates data communication with the controller, e.g. via OPC UA. However, since the Greengrass Core has an integrated message broker, this communication direction may be reversed. In this case, TwinCAT IoT would establish a connection to the Greengrass Core via an MQTT channel and exchange data accordingly, for example.

AWS IoT Core 2:

Further Information

Further information about AWS IoT Core can be found in the AWS IoT Core documentation.