Skip to content

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

Notifications You must be signed in to change notification settings

SIMATICmeetsLinux/IOT2050-NodeRed-DataCollector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published