Issue facing connection with node-red-contrib-s7 node while connecting siemens s7 200 plc

Hi,
I’m facing a strange issue in Node-RED related to Siemens S7-200 communication.

I have an existing Node-RED flow with S7 nodes that connects properly to a Siemens S7-200 PLC. As long as I don’t modify the flow, the connection remains stable.

However, as soon as I make any change to that flow—such as:

  • adding another S7 node
  • adding or modifying an S7 variable
  • or editing the existing S7 configuration

the S7 connection gets closed / disconnected immediately.

Important points:

  • The problem occurs only on an ELPRO industrial panel PC running Windows 10 Pro.
  • The same modified flow works perfectly fine on another PC.
  • The original (unchanged) flow also works fine on the ELPRO PC until any modification is made.

Has anyone faced a similar issue on industrial PCs or Windows 10 systems?
Any ideas on what could cause Node-RED to drop the S7 connection only after flow changes?
node-red flow which is running.json (6.4 MB)
node-red flow which to be run.json (7.7 MB)

Thank you

What kind of deploy are you using? Full? Flows? Nodes?

I recommend using changed nodes only deploy mode when networked connections are used (to avoid destroying and reconnecting) It won't solve all issues but will reduce friction until you figure out the real issue.

I was using Full Deploy.

To isolate the issue, I also tried bypassing deploy completely by manually replacing the flows.json file in the .node-red folder with the other flow and then restarting Node-RED. In this case as well:

  • the old flow connects successfully to the PLC
  • the other (modified) flow fails to connect, even though no deploy action is involved