admin管理员组文章数量:1394980
I'm new to Node-RED and Siemens PLCs, and I'm using the node-red-contrib-s7 node to communicate with my PLC. Currently, I can successfully read and write data to individual records in a data block.
Problem :
I don't want to create a separate node for every variable because:
- More records will be added in the future. (New zones or added heaters to a zone etc)
- There are already many records, making it inefficient to manage manually.
Data Structure:
I have an array called zones, where:
Each zone is a struct containing multiple heaters.
Each heater also has associated data (e.g., temperature).
Goal:
I want to read the entire array or at least an entire zone at once.
Ideally, the data should be structured as a JSON object, where each zone contains all its heaters and their respective data.
This data will be used to display a real-time dashboard showing:
- The current temperature in each zone.
- The status of each heater.
Issue:
The node-red-contrib-s7 node doesn't seem to support reading entire structs, objects, or arrays at once. I haven't found a way to loop through the zones efficiently within Node-RED.
Question:
How can I efficiently read the entire array (or at least an entire zone with all its heaters) from my Siemens PLC without manually defining nodes for each variable?
Any suggestions or best practices would be greatly appreciated!
本文标签: Efficiently Reading Structured Data (Zones amp Heaters) from Siemens PLC in NodeREDStack Overflow
版权声明:本文标题:Efficiently Reading Structured Data (Zones & Heaters) from Siemens PLC in Node-RED - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744104268a2590993.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论