I am trying to communicate with a Siemens 1212 PLC using the open TCP blocks. On the node red side I have a TCP in (Port 2000) tied to a debug node. Additionally I have an inject tied to the TCP out node on port 2001.
On the PLC side I have it set to "active" communication to node red (port 2000). The receive from Node red is a passive connection (port 2001).
In my flow I have a "connect" indication and can send data from the PLC to node red. On the node red side, on the send (NR -> PLC) it shows a red box and "disconnected".
Is there something I am missing with the TCP out node that would otherwise force it to create an "active" connection with the PLC? Ive tried the same flow to another VM running a separate flow. All connected fine in both directions. This has been driving me crazy for a week and a half now. Ive tried every conceivable adjustment on the PLC side. Any suggestions on the NR side of things? I need to be able to do this as straight TCP and not with something like Modbus, S7, or MQTT.
Eventually I must communicate with a DB (in or out of Node red). Because of this I need to figure out straight open TCP comms. I already tested MQTT and Im sure that S7 or Modbus would work but I will need straight TCP.