Some background on what I am trying to accomplish. My company is a manufacturing facility, that has automated manufacturing lines. I have used node-red in the past for various projects, for example creating data streams form MQTT to Influx, as well as storing data into google drive and an sql database.
Currently I am trying to send Machine Status to a smartwatch/smartphone using the ethernet-IP node and telegram node. I'm sending data from a allen-bradley plc to telegram application on my smartphone.
After set-up and deploying the flow, everything will work fine for awhile and then node-Red will crash and I have to then uninstall everything and reinstall.
I have ran node-red using injects, instead of the Ethernet-IP node and this functions great.
I have tried with all data types, it does not matter if its Boolean, Int, Dint or Real.
I am running node-red on my windows 10 machine if anyone is wondering.
If anyone has any information on this node this would help out a lot.
Here is what's in the function node if anyone is wondering.
Once node red is installed and started, i configure my flow to the one shown above. Everything runs great for a few hours and then i get the error shown, like it stops communicating. Once this error is thrown on node red, Node-red completely crashes and I can not get back to my flows. The only way to get back in to the node-Red interface is to uninstall node red and reinstall.
Yes, I have tried starting and stopping, but once this error happens you can not do anything with it.
It seems my issue happened to be a timing issue between the plc and the windows machine. I changed the plc from continuous 500ms to periodic 10ms and then changed cycle time on ethernet IP node to 2000 ms. This seems to have worked for now.