本文出于处理EPC缓存的问题,因为当前很多客户希望网关设备可以帮助处理大量的缓存当设备出现断网的时候。
而EPC1522只有在2023年5月发布的2023.3固件中才会系统性的通过SD卡去处理设备断网缓存的问题,但至此之前我们需要找到另外一个option帮助客户处理缓存问题。
以下将通过EPC内置的Nodered结合内置的influxDB来处理缓存问题,该方案能缓存的数据量将依赖于您所定义的influxDB的大小。
1. All variables from PLCnext Engineer could be read via Node-RED (pre-installed) and stored inside InfluxDB, for example via OPC UA or REST protocol.
EdgeDevices/1_OPCUA_Demo.md at main · PLCnext/EdgeDevices (github.com)
2. The data will be stored inside InfluxDB for a configured duration.
3、The data will be read from InfluxDB into Proficloud via Node-RED again per 2s. In case of network issues, the data will still be buffered inside InfluxDB.
(InfluxDB to Proficloud, multiple variables)