aws-solutions-library-samples / guidance-for-industrial-digital-twin-on-aws

This Guidance provides a set of artifacts that will guide customers in building a production monitoring architecture with AWS IoT TwinMaker and supporting services.
https://aws.amazon.com/solutions/guidance/industrial-digital-twin-on-aws/
MIT No Attribution
7 stars 3 forks source link

Guidance for Industrial Digital Twin on AWS

Table of Content

  1. Overview
  2. Prerequisites
  3. Deployment Steps
  4. Deployment Validation
  5. Running the Guidance
  6. Next Steps
  7. Cleanup
  8. Revisions
  9. Notices

Overview

This Guidance provides a set of artifacts that will guide customers in building a production monitoring architecture with AWS IoT TwinMaker and supporting services. The artifacts in this Guidance provide sample demo projects, data simulators, and articles that offer support for using various feature sets within AWS IoT TwinMaker and AWS IoT SiteWise. With AWS IoT TwinMaker, customers can get a 3D model of their plant operations derived from computer-aided design (CAD) or reality capture models, such as Matterport. Using AWS IoT TwinMaker’s Knowledge Graph, customers can view relationships between industrial assets and operations.

The sample demo project in this repository is called the Brewery Manufacturing demo. It provides guidance on how to build a Production Monitoring solution in an Industrial setting where Plant Managers or Line Supervisors can have visibility to plant operations, alerts, and situational awareness to downtime in a 3D visualization. Operations can monitor and diagnose alarms in a 3D visualization that helps reduce the mean time to repair (MTTR) by enabling teams to quickly see potential causes from upstream or downstream operations in a manufacturing process. This reduction in time will improve customer’s ROI by reducing downtime in operations and optimizing the output of product manufactured.

Cost

You are responsible for the cost of the AWS services used while running this Guidance. As of November 2023, excluding free tiers, the cost for running this Guidance with the default settings in the US East (N. Virginia) is approximately $450 per month for data simulation, storage, computations, retrieval, and visualization. The cost may vary on usage and with the increase of data stored over time.

A large majority of this cost is in AWS IoT SiteWise. Modifying the amount of assets in simulation and frequency of which data is streamed can reduce this cost.

Prerequisites

Operating System

Third-party tools

AWS account requirements

This deployment requires access to the following resources:

Example resources:

Service limits

If there is an increase on the number of IoT SiteWise Assets, Models, and/or transactions per second, make sure that the appropriate limits are extended to support both IoT SiteWise and synchronized service, IoT TwinMaker.

Supported Regions

This guidance supports the following regions:

Deployment Steps

Demo Description

This demo uses the Brewery SiteWise Simulator to build an Industrial Digital Twin in AWS IoT TwinMaker.

The diagram below is a view of the brewery material flow for the Irvine plant. The Brewery simulates production and consumption of items through the process below. This includes good production, scrap, and simulation of various utilization states. Telemetry data is also generated at the various operations for sensors like temperature, levels, and valve states. With the data produced by this simulation, metrics are calculated in the SiteWise Models for OEE (Utilization, Performance, and Quality).

An IoT TwinMaker Workspace is created and synchronized with the SiteWise models and assets. A set of Grafana dashboards and IoT TwinMaker scenes have been created that enables you to navigate across different equipment within the Irvine Plant to monitor performance metrics.

BreweriesMaterialFlow

Demo Screenshots

Irvine Plant - Overview

This high level plant view shows all the equipment in this simulated environment. Clicking on each Scene Tag will display the average KPI metrics (OEE, Performance, Quality, Utilization) for the time range of the dashboard. There is a data overlay on several assets that displays the latest State of the machine and a link to drill down into the dashboard for that asset.

IrvinePlant

Asset Dashboards

As you drill down into an asset, such as the MashTun below, you will be presented with several types of data for that asset. This includes telemetry data, KPIs, and production order data such as lots, items, and utilization reasons. In addition, alerts have been configured in Grafana for the OEE (Overall Equipment Effectiveness) when it drops below 50%. Clicking on each Scene Tag will trend various properties on the right time-series trends.

MashTun

1. Steps

The deployment of the demo is spread out over several cloudformation stacks. The first two stacks will deploy the data simulator and the rest will deploy the IoT TwinMaker Workspace, Grafana Dashboard server, and Dashboard role. Here is an architecture of the complete brewery demo environment:

Brewery Architecture

1.1 Deploy Brewery SiteWise Simulator

  1. Install the Brewery SiteWise Simulator following the Quick Deploy steps.

1.2 Deploy IoT TwinMaker Workspace

  1. Open this cloudformation template and click "File->Save As" in your browser to download. This template deploys the IoT TwinMaker Workspace and Synchronize it with the SiteWise Assets created in step 1.
  2. Go to CloudFormation in your console and click Create Stack.
  3. Upload the template file your downloaded and proceed through the steps to deploy.
  4. Wait until the stack is completed successfully.

1.3a Deploy Grafana Dashboard Server (Automated)

  1. Open this cloudformation template and click "File->Save As" in your browser to download. This template deploys a self managed Grafana Dashboard server, IAM Role, IoT TwinMaker scenes, and preloaded dashboards for the Brewery demo.
  2. Go to CloudFormation in your console and click Create Stack.
  3. Upload the template file your downloaded and proceed through the steps to deploy.
  4. Wait until the stack is completed successfully.

    NOTE: If this step fails, your EC2 instance may be receiving a forced reboot signal from Systems Manager for a patch before the script in user-data completes. Delete this failed stack and proceed to step 1.3b for a manual install.

  5. The Grafana URL is found in the Outputs tab of the Cloudformation template.
  6. Open the Grafana portal. The default credential is admin/admin. Change this once you login.
  7. Go browse for the dashboards. The simulation will take several minutes to produce items and get processed downstream.

1.3b Deploy Grafana Dashboard Server (Manual)

  1. Open this cloudformation template and click "File->Save As" in your browser to download. This template deploys a self managed Grafana Dashboard server and IAM Role. We will manually install the IoT TwinMaker scenes and preloaded dashboards for the Brewery demo.
  2. Go to CloudFormation in your console and click Create Stack.
  3. Upload the template file your downloaded and proceed through the steps to deploy.
  4. Wait until the stack is completed successfully.
  5. Proceed to the EC2 Console and connect to the instance. connect
  6. Click on the tab EC2 Instance Connect, change the user name to root, and click Connect startsession
  7. Once logged into the session, run this script and wait for it to complete. You can ignore errors like this "ERROR:root:('Roaster200', 'null')"
yum install -y git
git clone https://github.com/aws-solutions-library-samples/guidance-for-industrial-digital-twin-on-aws.git                             
cd guidance-for-industrial-digital-twin-on-aws/scripts/
sh install.sh
  1. The Grafana URL is shown at the end of the installation and is found in the Outputs tab of the Cloudformation template.
  2. Open the Grafana portal. The default credential is admin/admin. Change this once you login.
  3. Go browse for the dashboards. The simulation will take several minutes to produce items and get processed downstream.

Deployment Validation

DemoClip

Running the Guidance

This guidance solution will run indefintely producing simulated data. If you are not using, be sure to perform a cleanup to stop billing. To access the system, just open the Grafana portal as instructed in the steps above.

Next Steps

This guidance provides a base framework from which you can build on top for your Industrial Solution. With this guidance, you can modify certain aspects of this system to be tailored to your environment. This may include the following:

Cleanup

To clean up, delete the following stacks in this order:

Revisions

Notices

Customers are responsible for making their own independent assessment of the information in this Guidance. This Guidance: (a) is for informational purposes only, (b) represents AWS current product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. AWS responsibilities and liabilities to its customers are controlled by AWS agreements, and this Guidance is not part of, nor does it modify, any agreement between AWS and its customers.