Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Home
  • Knowledge base
  • Contact Us
  • Home
  • Tutorials & Guides
  • AWS IoT Core - Amazon Web Services

Validating data exchange between AWS IoT Core and PLC

This tutorial shows how to validate the data exchange between the PLC and AWS IoT Core

Written by Benjamin Pinnerup

Updated at March 20th, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Installation & Technical information
    Introduction SIA Connect Standalone SIA Connect ANY-Ware Cellular & WiFi connectivity
  • Configuration in the Web UI
    Getting started with the UI Connectors Instances Items Mapping Data System Network Tools & Add-ons DigiCert IoT Trust Manager
  • Connectors
    Siemens S7 Azure IoT Ethernet/IP Mitsubishi MELSEC OPC-UA Server SQL MQTT Omron Host Link REST API Omron FINS Keyence Beckhoff TwinCAT BACnet Virtual OPC-UA Client MS SQL File M-Bus Modbus
  • Scripting & Variables
    Data formatting
  • Developers
    API documentation Shadow API
  • Tutorials & Guides
    InfluxDB AWS IoT Core - Amazon Web Services Microsoft Power BI KaaIoT Siemens S7 AVEVA Insight SIA Connect Demo Rack Grafana Azure
  • General
+ More

Articles in this section:

  • Setting up an AWS IoT Core
  • Connecting PLCs to AWS IoT Core
  • Validating data exchange between AWS IoT Core and PLC

Table of Contents

Setting up the AWS IoT MQTT ClientUsing the SIA Connect and AWS IoT Core togetherPublishing from SIA and subscribing in AWS IoT CorePublishing from AWS IoT Core and subscribing in SIA


Your browser does not support HTML5 video.


After setting up AWS IoT Core and an virtual representation in SIA Connect, you can test the connection and message flow between the two.
To validate the message flow and data exchange you can setup an MQTT Client in AWS IoT Core to subscribe and publish data from and to the PLC. 

This article will guide you through the process of validating the data exchange. 


Setting up MQTT Test Client in AWS

In the AWS IoT Console, go to Test page, where you will find the MQTT Test Client. 
To subscribe to a topic, you enter the name of the topic and click the Subscribe button. If you subscribe to the topic '#' you will read all the data sent to your endpoint, regardless of the topic.

To publish to a topic, you will need to enter a specific topic. Here you cannot broadcast to all topics using the '#' topic.


Validating data exchange to IoT Core

To validate the data exchange from AWS IoT Core and to SIA Connect you can publish and subscribe items and afterwards validate if the messages arrives on both sides of the connection. This section will guide you through the validation process.


Publishing from SIA Connect and subscribing in AWS IoT Core

The two pictures below show the SIA side and the AWS side. We publish a message with the write-only item to the PublishTopic. On the AWS side we see that the PublishTopic recieves the message.

Here we publish a message using the read/write item to the Pub/SubTopic. On the AWS side we can see that when monitoring the topic, the message comes through.

Here we see AWS subscribe to the '#' topic. This topic will show all messages sent to your endpoint. We see that both the PublishTopic and the Pub/SubTopic is shown in the same table.


Publishing from AWS IoT Core and subscribing in SIA Connect

Here we publish a message from AWS to a topic in SIA that will act as the subscriber. You need to enter a specific topic, the AWS publish will not work with the '#' topic. We see that our read-only item with the SubscribeTopic topic receives the payload from AWS.



validate data exchange connect plcs to aws read plc data in aws plc data in aws read from plc in aws write to plc from aws

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Setting up an AWS IoT Core
  • Connecting PLCs to AWS IoT Core

0
0
Expand