Greetings, Harry,
I think that what you're asking about is "when to use Examine On and when to use Examine Off" ... if I'm right, then maybe this will help ... I'll assume (gosh I hate that word) that you're working with an Allen-Bradley processor ...
here is the basic idea using a 120 volt input module as an example ...
before we begin, you need to know that the word “bit” refers to a “box” in the processor’s memory ... the bit/box can hold either a “1” or it can hold a “0” ...
now let’s consider a screw on the input module ... assume that the address of the screw is I:000/0 ...
first suppose that there IS a 120 volt signal present at that screw ... the PLC processor will see that signal and put a “1” in the bit/box assigned to that screw ... and so I:000/0 will now have a “1” stored in it ...
now suppose that there is NOT a 120 volt signal present at that screw ... the PLC processor will see that there is no signal and will put a “0” in the bit/box assigned to that screw ... and so I:000/0 will now have a “0” stored in it ...
it is IMPORTANT that you realize that the on/off status of the bit/box will be handled automatically by the processor EVEN WITHOUT a program ... specifically, even before you have programmed any rungs into the processor, you can still see the “1” and “0” status of the inputs being recorded on the input table ...
now suppose that you enter a rung and that the only input condition on the rung is an XIC (Examine If Closed) instruction ...
let’s stop for a second and think about that word “instruction” ... the INSTRUCTIONS in the ladder program are called “instructions” for a reason ... they literally are instructions FROM (you) the programmer TO the processor ... in the case of an XIC, the instruction tells the processor to “examine a bit to see if it contains a 1” ...
now suppose that at the time that the processor executes the XIC instruction, there just happens to be a “1” in the bit/box at I:000/0 ... the processor will look for a “1” ... and it will see a “1” and it will be happy ... that will make the XIC “true” ... it will highlight green on your computer screen ...
but now suppose that at the time that the processor executes the XIC instruction, there just happens to be a “0” in the bit/box at I:000/0 ... the processor will still be looking for a “1” ... but it will not see a “1” and it will be sad ... that will make the XIC “false” ... it will not be highlighted on your computer screen ...
so that’s it for an XIC ... now for the flip side of the coin ... the XIO instruction ...
now suppose that you enter a rung and that the only input condition on the rung is an XIO (Examine If Open) instruction ...
again, think about that word “instruction” ... the INSTRUCTIONS in the ladder program are literally instructions FROM (you) the programmer TO the processor ... in the case of an XIO, the instruction tells the processor to “examine a bit to see if it contains a 0” ...
now suppose that at the time that the processor executes the XIO instruction, there just happens to be a “0” in the bit/box at I:000/0 ... the processor will look for a “0” ... and it will see a “0” and it will be happy ... that will make the XIO “true” ... it will highlight green on your computer screen ...
but now suppose that at the time that the processor executes the XIO instruction, there just happens to be a “1” in the bit/box at I:000/0 ... the processor will still be looking for a “0” ... but it will not see a “0” and it will be sad ... that will make the XIO “false” ... it will not be highlighted on your computer screen ...
to summarize:
many people make the mistake of trying to think of the XIC and XIO instructions as representing actual “switches” in the field ... in fact, some well-meaning instructors will use the “switches” analogy to try to make the concepts of XIC and XIO “easier” for beginners to understand ... this is unfortunate ... and it often just leads to more confusion down the road ...
it is much better to consider the XIC and the XIO to be instructions to the processor ...
the XIC instruction tells the processor to go look in a bit/box for a “1” ... the processor will either find a “1” (and be true) or it will not find a “1” (and be false) ...
the XIO instruction tells the processor to go look in a bit/box for a “0” ... the processor will either find a “0” (and be true) or it will not find a “0” (and be false) ...
finally ... this might help too:
old post about processor scan
friendly advice ... put some more detail in your questions from now on ... you'll get much better answers ... and welcome aboard ...
PS ... I see that randylud has already done a good job of answering what we both assume (gosh I hate that word) to be your question while I was typing this up ... sorry if I've overkilled again ...