Capture static data from plc


Hello, I am trying to capture this data that is shown in the figure to be able to generate operations, but the problem is that I can only capture it once, since the node that I occupy only sends me the data every time it changes, how could I always capture it and store them in a node and be able to manage an addition or subtraction operation.
I capture these data from an allen bradley plc with the node "node-red-contrib-cip-ethernet-ip". it does a read every time the data changes it is written again in my debug, if the node does not receive data it does not write me in my debug. Thank you

You can Store your data in context or a file/csv/database, using file node or database nodes. you can the recall it when required.

1 Like

In what way does this question differ from your previous post?

The last post, i was traying to colect all my data in an array, but now i need that those array, give me all the time my data because i am trying to calculate the OEE, so i need to take all my information in realtime, but some data, doesnt change ecery time, only in one moments, so if the datta didnt change, they never arrive to my array.

In the join node set the box 'and every successive message' (I don't remember the exact text, but it is something like that). Then you will get an output with the latest value from both inputs every time.

The problem, is that i need, to operate in real time, and every moment i need to operate the information, so when i use a calculate node, this one requiered every moment data, but some of my data, doesnt change, and if my data doesnt change, this information doesnt transmit to the calculate node, and i lose information

Thank you, i´ll try it

You need to have the Join node set to key/value mode and make sure the two paths in to it have different topic strings. Also you need 'and every subsequent message' ticked? With that ticked then you will not loose any messages and every output from the Join will have both values in it, and you can construct your array (if that is really what you want) from the data in the payload. If that doesn't work show us how you have configured the join node and and show us what you get out of it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.