st-one-io / node-red-contrib-cip-ethernet-ip

A Node-RED node to interact with Allen Bradley / Rockwell PLCs
GNU General Public License v3.0
51 stars 26 forks source link

unstable reading tags #4

Closed tokke100 closed 6 years ago

tokke100 commented 6 years ago

I have setup the node to read a list of tags every second. It sometimes returns every 3 seconds, sometimes 3-4 times in the same second.

gfcittolin commented 6 years ago

Internally, the library performs the following activities in a loop:

So I'd expect that it could take a bit more time than the configured amount, mainly if there are a lot of tags, but not being faster than that. Also, please note that Node.JS (and therefore also Node-RED) is single-threaded, so if your flow is performing other blocking activities, it could affect the readings.

gfcittolin commented 6 years ago

Closing due to the lack of activity in the thread. Please feel free to reopen it if needed