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.
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
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
Use the following documents for the configuration of the IOT2050 and S7-1500:
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 |
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.
Please read the Legal information.