Greetings TWControls,
I only have a few minutes, but I think that I'll have time to answer your questions ... Ken's will take a little bit longer ... I'll get back to those ...
QUOTE
If you have an unconditional output statement, you are saying that on power up, the output is turned off during the power up, then it is not turned on until the end of the 1st scan. Is that correct?
a lot depends on what you mean by "output" ...
(1) do you mean the OTE instruction on the rung? ... or ...
(2) the bit/box in the processor's memory? ... or ...
(3) the actual device (example: a pump) in the field? ...
personally, I only use the word "output" to refer to the field device ... but a LOT of people (most?) use it interchangeably to mean any one of the other items listed above ... let's try to nail some of this down ...
suppose that we're dealing with a ControlLogix platform ... suppose that we have only one simple unconditional rung located in the MainRoutine ladder file ... the rung contains ONLY one OTE instruction with the address Local:2:O.Data.0 ... suppose that this address is assigned to a pump in the field ... the output module has been left in its default "Configuration" ... specifically, all outputs on this module will be turned Off when the processor is in the "Program Mode" ... and also, all outputs on this module will be turned Off when the processor is in the "Fault Mode" ... the processor is in the "Run Mode" ... our rung in the MainRoutine of the program is being scanned ... the OTE is highlighted in green on our ladder display screen ... the bit/box addressed as Local:2:O.Data.0 contains a 1 ... the "0" LED on the front of the output module is lit ... the pump in the field is running ...
the sun is shining ... the birds are singing ... life is lovely ...
now the 120VAC service to the power supply for the ControlLogix chassis is turned off ... while the power remains off, here are our conditions ...
(1) the screen display has gone offline ... we can't communicate with the processor since it has no power ... but the OTE on the screen is still highlighted in green ... the software displays the OTE this way because, in the offline file, the bit/box Local:2:O.Data.0 still contains a 1 ... actually this is pretty well meaningless at this point, but since some people are confused by the green indication, I thought I'd add the detail ...
(2) inside the processor, the rung is no longer being scanned ... no power - no scanning ...
(3) inside the processor, bit/box Local:2:O.Data.0 still contains a 1 ... that was the "last state" when the processor shut down ... so far there has been nothing available to change that state ... the 1 is maintained by the processor's battery power ...
(4) the 0 LED on the front of the output module has gone off ... no power - no LED ...
(5) the pump in the field has gone off ... with no backplane power, the output module cannot drive the output on ...
now let's turn the 120VAC service to the power supply for the ControlLogix chassis back on and see what happens ... the processor takes a few seconds to "warm up" and get started ... since it was in the "Run Mode" when it powered down, it comes back to the "Run Mode" when it powers back up ... and then ...
(1) the processor does a "prescan" routine ... one of the features of the "prescan" is that our rung will be executed (just once) with "false" logic ... think about that ... we have an UNCONDITIONAL (guaranteed-to-be-true) rung here ... but the processor (at least on the "prescan") still executes the rung as "false" ... quick question: what does an OTE do when it is executed with "false" logic? ... answer: it instructs the processor to go write a 0 into the bit/box that has the same address ... at this point the status of the bit/box Local:2:O.Data.0 becomes a 0 ...
note that the "prescan" is NOT the same thing as the "first scan" ... specifically, any conditional references to S:FS will be ignored during the "prescan" sequence ...
(2) the processor has now "warmed up" in the "Run Mode" and also finished its "prescan" routine ... now the processor begins its normal scan of the ladder program ... our rung is now being scanned again ... since the rung is unconditional, the OTE is now executed with "true" logic ... quick question: what does an OTE do when it is executed with "true" logic? ... answer: it instructs the processor to go write a 1 into the bit/box that has the same address ... at this point the status of the bit/box Local:2:O.Data.0 becomes a 1 again ...
(oops! Wanda Faye just called and I've got to head home for dinner VERY soon) ...
but what about the pump in the field?
while the service to the power supply was turned off, the pump was also off in the field ... as the processor was coming back up again, the "prescan" took place and wrote a 0 into the pump's bit/box ... but that was just for one quick scan ... the pump in the field stayed off during this period ... then the processor scanned the OTE with "true" logic and wrote a 1 into the pump's bit/box ... then the output module received the "on" signal over the backplane and turned the field output (the pump) back on again ...
now to someone standing in the field, all that they saw was that the pump was originally running ... then the power failed and the pump went off ... then the power came back on again and the pump turned back on ...
sorry but that's as much as I have time for right now ... did that help - or hurt? ...
final specific question/answer:
QUOTE
For an output that is not referenced in the ladder (just has a 1 in the data value to turn it on), would this fall under the same category as a latched output?
yes ... the status of the bit/box would "retain" a 1 ... because the processor would have no "instruction" available to tell it to turn the bit/box back to a 0 ...
that concept drives a LOT of electricians NUTS when they first try to deal with PLCs ... "but they told me that this OTE thing works JUST-LIKE-A-RELAY-COIL" ... big problem ... if a "true" rung has an OTE on it, then the bit/box has a 1 in it ... and the output is ON in the field ... now delete the rung ... the bit/box STAYS a 1 ... and the output in the field stays ON ... that's NOT the way a relay coil works is it? ... nope ... when you disconnect a relay coil, the durn thing turns OFF ...
gotta go ...