I put the instruction on the Main Program routine just to eliminate the JSR issue to test the input.
I'm tempted to ask, "But is your 'MainRoutine' actually the main routine, as configured in the Program (see below for the difference: the one with the underscore is the "real" mail, as indicated by the icon).
But the fact remains that you claim the value of the tag when monitored in the PLC is a "1", but the -| |- is not green.
Frankly, that's impossible. And it's independent of whether the ladder is being scanned.
The only way it can happen is if you have the wrong tag somewhere, and your HMI is linked to one tag, while another is linked to a similar tag. You could be offline with the program and a '1' will still change a contact green.
Click on the tag in the PLC logic. Right click and select Monitor "<tagname>".
What's the value?
Which instruction are you using: -| |- or -|/|- ?
Note that I'm leaving the HMI out of the equation. That's a red herring for now. I want to confirm that the value as monitored in the PLC is what should drive the output. The next step will be to see if you can change the value wholly using Logix. And that it if you do, it drives the output. THEN we'll bring the HMI back into things to see if it can change your bit.
One step at a time. This is how you troubleshoot.
Last edited: