Closed jpillman closed 5 years ago
Thanks for the report. I'll try to simulate it here, and eventually I may ask for more details then.
It's a great module and you have done some good work on it. If I can be of any assistance, just let me know.
Finally I had some time to simulate the issue, and looks like it should be fixed now. Could you install the just released 1.0.1 and try it?
That fixed it! Thank you!
I'm using your module to communicate with a CompactLogix PLC and am using the "All tags" mode to return a group of tags as a single message. In a scenario where I lose communication with the PLC, the module does not function correctly when communication is restored. When communication is restored, the module begins functioning again but all values from the PLC are returned as null.
The debug output from the module looks like this:
Communicating correctly Debug: {"BE505Hazmon.HDSR.o_SensorData":59.67499923706055,"BE505Hazmon.HDSR.o_Fault":false}
Loss of communication Debug: Error communicating with the PLC: Error: TIMEOUT occurred while writing Reading Tag Group.
Communication restored Debug: {"BE505Hazmon.HDSR.o_SensorData":null,"BE505Hazmon.HDSR.o_Fault":null}
The values will continue as null until Node-Red is restarted or the flow is redeployed.
Note: If I use the mode "All tags, one per message" this issue doesn't present itself.