Hey, Karl! How are you doing?
I’m happy to see our tutorial is helping you. I believe the main issue here is that you’re trying to interact with physical Input and Output data. This is not recommended and will not work properly most of the time, when talking about communication between devices.
What’s usually done, is to do I/O Mirroring. This way, you’ll interact with memories (B3:0/1) and this memory will energize your physical output (O0:0/2). This is a programming non-spoken rule, meant to make your controller always do the final interaction with physical devices (sensors and actuators).
So your logic should look something like:
Inputs:
XIC (I0:0/2) OTE (B3:0/1)
Outputs:
XIC (B3:0/2) OTE (O0:0/2)
XIC (B3:0/3) OTE (O0:0/3)
In the HMI side, utilize B3:0/1 when referring to the input signal and set B3:0/2 / 3 when you want to set the digital outputs.
Please reach back to us if there’s anything else we can help with, or if the code runs well now. Thanks!