Correct communication with PLC

I have a connected Omron PLC with Nodered, which I use as a control panel. I have Ethernet/IP communication and it works fine.

But I'm not sure how to use it properly.

Example:
I have a relay, and I want to change its state using the Dashboard element switch.

  1. The switch element is connected to the output to the PLC
    This method does not reflect the changes made in the PLC.
    image

  2. The output from the communication with the PLC is connected to the Switch element and the communication to the PLC is connected after the element.
    This method reacts to changes in the PLC, but sometimes overwrites the switch element command before it is written to the PLC.

Please advise me how to do this correctly. Thanks!

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