st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
111 stars 58 forks source link

Best way to read from multiple PLCs #64

Closed sklr closed 4 years ago

sklr commented 4 years ago

Hello, I have a network of two s7 PLCs with almost identical programs. My goal is to read single variables from both PLCs then do math with them. Is there any way to read multiple PLCs and get the results from all in a single node?

Currently I read from both PLCs to flow variables then with a third node chain I check if the values are timed correctly and do the math. I check the reading times to be sure that there is no reading error with some PLC.

gfcittolin commented 4 years ago

Unfortunately there's no way of reading multiple PLCs from a single node. I think the strategy you're currently employing is the best to solve this kind of problem. The only thing I can think of is to use the status node to detect reading error or connection issues instead of timing, but that may also depend on your use case.