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
  • Azure
  • Azure IoT Hub & Device Provisioning Service

Connecting PLCs to Azure IoT Hub

This tutorial will show how to connect data from industrial controllers to Azure IoT Hub

Written by Mads Mikkelsen

Updated at May 3rd, 2024

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

Table of Contents

Prerequisite Configuring SIA Connect to send and receivedata from PLC to Azure Video tutorial Payload examples & good practices TODO

Articles in this section:

  • Creating a IoT Hub and device in Azure
  • Getting device Connection String from Azure IoT
  • Connecting PLCs to Azure IoT Hub
  • Monitoring IoT Hub events, messages & metrics
  • How to get started with Azure Device Provisioning Service in IIoT
  • Understanding telemetry message and properties in Azure IoT

Table of Contents

PrerequisiteConfiguring SIA Connect to tunnel data from PLC to AzureVideo tutorial

This tutorial will take you step-by-step of how to connect your PLCs to Microsoft Azure IoT Hub and getting started streaming data. 

Connecting PLCs to Azure IoT Hub will work for any PLCs supported by SIA Connect.
List can be seen here Supported Industrial & Buildings devices‍ 


Connecting your PLCs and industrial controllers to Azure opens up a lot of opportunities and possibilities for utilizing their data in their enterprise cloud infrastructure.
Just to name a few possibilities in Azure:

  • Visualize in Power BI or Time Series Insight
  • Combine with Microsoft Dynamics ERP solution
  • Store in databases 
  • Build Web Apps on top of the data

Before this can be done we need to get the data to Azure's IoT Hub and from there e.g. Stream Analytics jobs can stream it to the proper destination in Azure.

This guide will show you the steps of connecting the data from PLCs and into the IoT Hub. Connecting the PLCs tags and data only requires a few steps that will be described in this tutorial.


Prerequisite

  • Subscription free or paid on Azure
  • IoT Hub created in Azure‍ 
  • Generated Connection String for the IoT Hub device‍ 
  • PLC connected and configured on SIA Connect



Configuring SIA Connect to send and receive data from PLCs to Azure

So, Azure is ready. Now the final steps is to stream the PLCs data into the IoT Hub's device. 

Achieving this might contain the following steps:

  1. Add the Azure IoT Hub as instance on SIA Connect‍ 
  2. Locate the vendor and/or protocol to be used by SIA Connect to communicate with it
    1. Install the Connector on SIA Connect that supports the PLCs protocol‍
    2. Add the PLC as a instance on SIA Connect‍ 
  3. Find out which variables/tags to read from the PLC
    1. Add the variables/tags as items on SIA Connect‍ 
  4. Map PLC items to the Device-to-cloud item in the Azure instance‍ 
    1. Customize your payload to contain the metadata you wish to send to Azure IoT Hub‍ 
  5. Validate the data is streaming into Azure IoT Hub‍ by monitoring the messages using Azure CLI tool‍ 


After this you can play around with how your payload to Azure should look like and what meta data you would like to add. 


Video tutorial

The below video shows how to connect and make a tunnel between an Allen-Bradley instance and Azure IoT Hub.

Your browser does not support HTML5 video.





plc to azure iot hub plc to azure siemens to azure allen bradley to azure mitsubishi melsec to azure omron fins to azure modbus to azure bacnet to azure opc to azure azure tutorial azure gateway how to connect to azure siemens s7 to azure

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Getting device Connection String from Azure IoT
  • Monitoring IoT Hub events, messages & metrics
  • Creating a IoT Hub and device in Azure

0
0
Expand