Giter Site home page Giter Site logo

iot-gateway's Introduction

IoT Gateway - PLC to Edge to AWS Cloud

Using the Industrial Edge system apps to preprocess PLC data and push it to the cloud

Description

This example demonstrates how to use the Industrial Edge System Apps to read data from a PLC, preprocess it and push it to the cloud.

Overview


The OPC UA Connector is used to read status data from the PLC in a 100ms cycle and publishes it to the Databus.

The Flow Creator is used to read the data and calculate the flow in m3/min and publish it back to the Databus.

The Cloud Connector then reads this preprocessed data and publishes it to the AWS Cloud.

General task

To set up this example, the industrial Edge Apps Databus, OPC UA Connector and Cloud Connector have to be configured. Furthermore an AWS IoT Devices has to be created.

Requirements

Used components

  • Industrial Edge Management (IEM) v2.0.1-1

    • Databus Configurator V2.3.2-2
    • Common Connector Configurator V1.9.1-1
    • Cloud Connector Configurator V1.17.0-3
  • Industrial Edge Virtual Device (IEVD) 1.16.1-1

    • Databus V2.3.1-2
    • Common Import Converter V2.1.0-2
    • IIH Registry Service V1.9.0-0
    • IIH Essentials V1.10.0
    • OPC UA Connector V2.0.1-0
    • Cloud Connector V1.14.0-2
    • Flow Creator V1.17.0-2
  • PLC: CPU 1511 FW 2.8.3

Further requirements

  • The Bottle filling example project is loaded to a PLC on which a OPC-UA server is running
  • The minimum publishing interval and sampling interval of the OPC UA server of the PLC is set to 100ms
  • The following Apps are installed on the Industrial Edge Device (IED): Databus, Common Import Converter, IIH Registry Service, IIH Essentials, OPC UA Connector, Cloud Connector and Flow Creator
  • The following Apps are installed on the Industrial Edge Management (IEM) in the Application Manager Platform: Databus Configurator, Common Connector Configurator and Cloud Connector Configurator
  • Access to AWS with permission to create IoT Devices and policies

TIA Project

The used TIA Portal project can be found in the miscellaneous repository in the tank application folder and is also used for several further application examples:

Installation

Please refer to the Installation documentation.

Usage

To publish preprocessed data of the PLC to the cloud, the Flow Creator is used to receive the data published to the Databus by the OPC UA Connector, preprocess it and publish the result to the topic the Cloud Connector is listening to.

With the following flow, the filling level of the tank is used to calculate the flowrate of the tanks filling which is then published to the AWS IoT thing.

Configure the Industrial Edge System Applications according to the Installation documentation and deploy the provided flow into the Flow creator.

Before deploying the flow enter the user credentials configured in Databus in the MQTT-Node.

bottlefilling example

Start the flow and the PLC Program. The calculated flowrate is now visible in the aws IoT management console:

aws result flowrate

Documentation

You can find further documentation and help in the following links:

Contribution

Thank you for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section. Additionally everybody is free to propose any changes to this repository using Pull Requests.

If you haven't previously signed the Siemens Contributor License Agreement (CLA), the system will automatically prompt you to do so when you submit your Pull Request. This can be conveniently done through the CLA Assistant's online platform. Once the CLA is signed, your Pull Request will automatically be cleared and made ready for merging if all other test stages succeed.

License and Legal Information

Please read the Legal information.

iot-gateway's People

Contributors

boehmi-tb avatar endycz avatar evakaul avatar filipd147 avatar freylena avatar hummeln7872 avatar kkhooi avatar molanger avatar stancd-siemens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iot-gateway's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.