Field Notes: Connecting Industrial Assets and Machines to the AWS Cloud

Original Post>

One of the challenges faced by manufacturers who are building a smart factory, is how to securely connect to and ingest data from operational data sources. These include machines and industrial assets connecting into their industrial data platform.

The ‘industrial edge’ is a foundational architectural building block that addresses this and enables OT/IT integration (operational technology/information technology) by extending Cloud services into the four walls of a factory. These services provide secure industrial connectivity, data ingestion and transformation, and the platform to deploy and run Industry 4.0 microservice applications and machine learning models in factories for low latency and production critical use cases.

This post shows how to connect to and extract data from industrial assets and machines via industrial protocols such as OPC UA using AWS IoT Greengrass connectors into AWS IoT SiteWise or an Industrial IoT (IIoT) application running in the AWS Cloud.

Advertisements

Architecture Overview

Industrial Edge

AWS IoT Greengrass is a software-based edge runtime and cloud service that is installed on an industrial PC or an Edge gateway and is connected to the manufacturing or industrial network.  It provides the platform to securely build, deploy, and manage industrial applications for local data processing and messaging.

Data can be ingested directly from industrial devices into the AWS Cloud by deploying the required industrial protocol connector to the AWS IoT Greengrass group as shown in the following diagram.

The AWS IoT SiteWise connector provides ingestion of data from OPC UA sources, and in December 2020 AWS announced the launch of the IoT Ethernet IP Protocol Adapter and Modbus-TCP Protocol Adapter connectors to ingest data from EtherNet/IP and Modbus-TCP data sources respectively.

Data ingestion

To ingest data into AWS IoT SiteWise, the AWS IoT Greengrass group must be configured to include the AWS IoT SiteWise gateway connector. Configuration of an AWS IoT SiteWise gateway can be done using the AWS Console, the AWS Command Line Interface or using AWS CloudFormation, which now supports AWS IoT SiteWise resources.

SaleBestseller No. 1
Acer Aspire 3 A315-24P-R7VH Slim Laptop | 15.6" Full HD IPS Display | AMD Ryzen 3 7320U Quad-Core Processor | AMD Radeon Graphics | 8GB LPDDR5 | 128GB NVMe SSD | Wi-Fi 6 | Windows 11 Home in S Mode
  • Purposeful Design: Travel with ease and look great...
  • Ready-to-Go Performance: The Aspire 3 is...
  • Visibly Stunning: Experience sharp details and...
  • Internal Specifications: 8GB LPDDR5 Onboard...
  • The HD front-facing camera uses Acer’s TNR...
Bestseller No. 2
HP Newest 14" Ultral Light Laptop for Students and Business, Intel Quad-Core N4120, 8GB RAM, 192GB Storage(64GB eMMC+128GB Micro SD), 1 Year Office 365, Webcam, HDMI, WiFi, USB-A&C, Win 11 S
  • 【14" HD Display】14.0-inch diagonal, HD (1366 x...
  • 【Processor & Graphics】Intel Celeron N4120, 4...
  • 【RAM & Storage】8GB high-bandwidth DDR4 Memory...
  • 【Ports】1 x USB 3.1 Type-C ports, 2 x USB 3.1...
  • 【Windows 11 Home in S mode】You may switch to...

Last update on 2024-04-05 / Affiliate links / Images from Amazon Product Advertising API

The following code is an example of a AWS IoT SiteWise gateway resource definition for an AWS CloudFormation template, which creates an AWS IoT SiteWise gateway to ingest data via OPC UA from a PLC. The example uses the following AWS CloudFormation parameters to define the connection:

SiteWiseGateway:
    Type: AWS::IoTSiteWise::Gateway
    Properties:
      GatewayName: Edge-GW-01
      GatewayPlatform:
        Greengrass:
          GroupArn: !Sub "arn:aws:greengrass:${AWS::Region}:${AWS::AccountId}:/greengrass/groups/${GreengrassGroupId}"
      GatewayCapabilitySummaries:
        - CapabilityConfiguration: !Sub >-
            {
              "sources": [
                {
                  "name": "${PlcName}",
                  "endpoint": {
                    "certificateTrust": {
                      "type": "TrustAny"
                    },
                    "endpointUri": "opc.tcp://${ PlcIp}:${PlcPort}",
                    "securityPolicy": "NONE",
                    "messageSecurityMode": "NONE",
                    "identityProvider": {
                      "type": "Anonymous"
                    },
                    "nodeFilterRules": [
                      {
                        "action": "INCLUDE",
                        "definition": {
                            "type": "OpcUaRootPath",
                            "rootPath": ""
                        }
                      }
                    ]
                  },
                  "measurementDataStreamPrefix": "/${PlcPrefix}"
                }
              ]
            }
          CapabilityNamespace: iotsitewise:opcuacollector:1

Alternately from the AWS console you can navigate to AWS IoT SiteWise > Gateways > Create Gateway to configure and deploy the AWS IoT SiteWise connector to the required AWS IoT Greengrass group device.

In addition to ingesting data directly into AWS IoT SiteWise, the AWS IoT Greengrass industrial protocol connectors can be configured to send the data to AWS IoT AnalyticsAmazon S3 and Kinesis Data Streams using Stream Manager.

For example, data from industrial data sources using Stream Manager can be transferred easily and reliably to an IIoT application running in the AWS cloud. This is done by configuring the data streams from Kinesis Data Streams to an Amazon TimeStream database using Amazon Kinesis Data Analytics for Apache Flink.

Conclusion

New
Naclud Laptops, 15 Inch Laptop, Laptop Computer with 128GB ROM 4GB RAM, Intel N4000 Processor(Up to 2.6GHz), 2.4G/5G WiFi, BT5.0, Type C, USB3.2, Mini-HDMI, 53200mWh Long Battery Life
  • EFFICIENT PERFORMANCE: Equipped with 4GB...
  • Powerful configuration: Equipped with the Intel...
  • LIGHTWEIGHT AND ADVANCED - The slim case weighs...
  • Multifunctional interface: fast connection with...
  • Worry-free customer service: from date of...
New
HP - Victus 15.6" Full HD 144Hz Gaming Laptop - Intel Core i5-13420H - 8GB Memory - NVIDIA GeForce RTX 3050-512GB SSD - Performance Blue (Renewed)
  • Powered by an Intel Core i5 13th Gen 13420H 1.5GHz...
  • Equipped with an NVIDIA GeForce RTX 3050 6GB GDDR6...
  • Includes 8GB of DDR4-3200 RAM for smooth...
  • Features a spacious 512GB Solid State Drive for...
  • Boasts a vibrant 15.6" FHD IPS Micro-Edge...
New
HP EliteBook 850 G8 15.6" FHD Laptop Computer – Intel Core i5-11th Gen. up to 4.40GHz – 16GB DDR4 RAM – 512GB NVMe SSD – USB C – Thunderbolt – Webcam – Windows 11 Pro – 3 Yr Warranty – Notebook PC
  • Processor - Powered by 11 Gen i5-1145G7 Processor...
  • Memory and Storage - Equipped with 16GB of...
  • FHD Display - 15.6 inch (1920 x 1080) FHD display,...
  • FEATURES - Intel Iris Xe Graphics – Audio by...
  • Convenience & Warranty: 2 x Thunderbolt 4 with...

Last update on 2024-04-05 / Affiliate links / Images from Amazon Product Advertising API

By providing industrial connectivity, data ingestion and storing of data from industrial data sources such as PLCs in AWS IoT SiteWise, Amazon S3, AWS IoT Analytics, or Amazon Timestream the challenge of getting access to isolated data as part of architecting a smart factory is made simpler.

From here, the data is analyzed to optimize production assets or to identify anomalies using AWS for Industrial service and Amazon Lookout for Equipment as part of a predictive maintenance application.

Stay tuned for more blogs in this space, also, don’t forget to check out the Architecture Monthly magazine on Manufacturing.

Field Notes provides hands-on technical guidance from AWS Solutions Architects, consultants, and technical account managers, based on their experiences in the field solving real-world business problems for customers.