Coder Social home page Coder Social logo

simaticmeetslinux / iot2050-nodered-datacollector Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 2.43 MB

Example how to read data from a S7-1500 with the IOT2050 via S7, Modbus TCP and OPC UA and store the data in a local database on the IOT2050 using node-red

License: MIT License

node-red modbus-tcp opcua mariadb iot2050

iot2050-nodered-datacollector's Introduction

IOT-Data-Collector

Overview

This application example shows three different options that enable the IOT2050 user to read data from a S7-PLC using Node-RED. The data exchange between a S7-1500 or a S7-1200 and the IOT2050 is carried out using the following protocols:

  • S7 Communication
  • Modbus TCP
  • OPC UA

In addition to collecting data, the example also shows, how this data can be stored in a SQL database. To avoid the loss of data in case the connection to the database is interrupted, 3600 values are stored in a ring buffer on the IOT and are immediately sent to the database whenever the connection is reestablished.

Figure 1-1 Overview

Used Components

This Example was created using the following Software:

  • On Windows:
    • TIA Portal V16 or V17
  • On Ubuntu:
    • Firefox Quantum for Ubuntu canonical - 1.0
    • MariaDB
    • Node-Red

The Tests were executed on the following Hardware:

  • SIMATIC IOT 2050
  • SIMATIC S7-1500

Goal

After working through the following documents, you will know how to:

  • Use different protocols to read values from a S7-1200 or S7-1500 PLC
  • Store data in a SQL database

Installation and configuration

Use the following documents for the configuration of the IOT2050 and S7-1500:

Related Links

Topic
1 SIMATIC IOT2050 forum: https://support.industry.siemens.com/tf/ww/en/threads/309
2 SIMATIC IOT2050 Getting Started: https://support.industry.siemens.com/tf/ww/en/posts/238945/
3 Operating Instructions: https://support.industry.siemens.com/cs/ww/en/view/109779016

Contribution and Contribution License Agreement

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 and Legal Information

Please read the Legal information.

iot2050-nodered-datacollector's People

Contributors

bergmanu avatar uwedaeu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.