/livetwin-earthquake-detection-ie-fc

Running a simulation model on edge device using the Siemens app LiveTwin by creating Flow Creator project.

MIT LicenseMIT

Simulating virtual sensor with LiveTwin

Running a simulation model on the edge device using the Siemens app LiveTwin.

Description

Overview

This application example shows how to export a Simulink virtual sensor model and run it on an Industrial Edge Device with the LiveTwin application. The model can read data from a PLC and send the current status back to the PLC.

General task

The main goal of this automation task is to create a Simulink model that simulates a shock sensor, export it to the required format and run it on the Industrial Edge Device using LiveTwin. The Industrial Edge Device can read data from the PLC simulating vibrations via SIMATIC Flow Creator application using the S7 communication protocol. The model can evaluate whether the vibrations have occurred and send the current shock status back to the PLC. The data flow can be visualized by using the SIMATIC Flow Creator application.

Requirements

Prerequisities

  • Onboarded Industrial Edge Device on IEM
  • Installed system configurators
  • Installed Industrial Edge System Applications applications
  • Installed LiveTwin and SIMATIC Flow Creator applications
  • Industrial Edge Device is connected to the PLC
  • TIA portal project downloaded to the PLC (TIA project)

Used components

  • Industrial Edge Device V 1.2.0-56
  • PLC: CPU 1511
  • TIA Portal V16
  • Matlab 2019b
  • SIMATIC Flow Creator V 1.0.5
  • Livetwin V1.1.4

Installation steps

You can find the further information about the following steps in the docs

  • Export Simulink model
  • Import the model to LiveTwin
    • Create instance
    • Create SIMATIC Flow Creator project
  • Configure the SIMATIC Flow Creator project properties
  • Run the simulation
    • Visualize the data
    • Send shock status back to PLC

Documentation

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.

Licence & Legal Information

Please read the Legal information