Hi everyone,
I’m working on a project to integrate real-time data from a Siemens S7-1200 PLC into my website’s dashboard. The goal is to display live machine status and production metrics for remote monitoring.
I’m using an OPC UA server to pull data from the PLC, and I’ve set up a Node.js backend to act as the intermediary between the server and the website. However, I’m running into two main issues:
- Data Latency: There’s a noticeable delay (2–3 seconds) in updating the data on the website, even though the PLC’s cycle time is set to 100ms.
- Connection Stability: Occasionally, the connection between the OPC UA server and the Node.js backend drops, and I have to restart the server to restore it.
I’ve already:
- Ensured the PLC and OPC UA server are on the same network with stable connectivity.
- Increased the sampling interval on the OPC UA server to match the PLC’s cycle time.
- Implemented error handling in the Node.js backend for reconnecting on failures.
Despite these measures, the issues persist. Has anyone successfully integrated Siemens PLC data into a web dashboard with minimal latency and stable connections? Any suggestions for optimization or alternative approaches would be greatly appreciated.
Thank you!