Ron Beaufort
Lifetime Supporting Member
Greetings Ben,
again, I apologize that I don’t really have time to dig into your question - so maybe I’m missing something ... but you said:
unless there’s more to the program than you posted above, then you shouldn’t really count on CleanA to be “unset” every time the processor starts up ... specifically, an ONS which is programmed “unconditionally” (the way you’ve shown it) will NOT “fire” and give you the expected pulse of “TRUE” logic at start up ... that means that if CleanA happens to be left “on” when the processor is shut down, then it will still be “on” when the processor starts back up ... oops! ... again, since you didn’t post ALL of your program,, then I might be missing something - but I just tried out your program in the lab to confirm my suspicions ... I’d bet more than pocket change that you’re in for a bit of a surprise the first time you try to restart the machine after leaving CleanA turned “on” ...
you might want to consider the approach shown below instead ... the circled addresses are the ones that I’ve changed from your original program ...
notice the use of the ControlLogix “Status:FirstScan” bit instead of the ONS ... I think that this will give the effect that you’re looking for at “startup” time ... let us know how things turn out ...
again, I apologize that I don’t really have time to dig into your question - so maybe I’m missing something ... but you said:
... so aside from the first scan that unsets CleanA if it's set ...
unless there’s more to the program than you posted above, then you shouldn’t really count on CleanA to be “unset” every time the processor starts up ... specifically, an ONS which is programmed “unconditionally” (the way you’ve shown it) will NOT “fire” and give you the expected pulse of “TRUE” logic at start up ... that means that if CleanA happens to be left “on” when the processor is shut down, then it will still be “on” when the processor starts back up ... oops! ... again, since you didn’t post ALL of your program,, then I might be missing something - but I just tried out your program in the lab to confirm my suspicions ... I’d bet more than pocket change that you’re in for a bit of a surprise the first time you try to restart the machine after leaving CleanA turned “on” ...
you might want to consider the approach shown below instead ... the circled addresses are the ones that I’ve changed from your original program ...
notice the use of the ControlLogix “Status:FirstScan” bit instead of the ONS ... I think that this will give the effect that you’re looking for at “startup” time ... let us know how things turn out ...