Docsity

Programming Normally Closed Inputs in PLCs: Examine-ON vs. Examine-OFF, Slides of Digital Logic Design and Programming

Partial preview of the text

Download Programming Normally Closed Inputs in PLCs: Examine-ON vs. Examine-OFF and more Slides Digital Logic Design and Programming in PDF only on Docsity!

  • Programming Normally ClosedInputs  Implementing the same logic means that the pilot light PL1 inthe PLC should behave in the same manner as the one in thehardwired circuit.  If PB1 is not pushed, PL1 will be ON; if PB1 is pushed, PL1 willbe OFF.  Figure 1 below show one possible method for programmingPB1 and implementing the logic. Figure
  • Programming Normally ClosedInputs  Figure 2 below show second possible method forprogramming PB1 and implementing the logic.  At first glance, you may think that the solution inprevious Figure 1 is the answer, but that is not true;the figure 2 below is the correct implementation. Figure

Illustration^ ^ Conversely, if PB1 is pushed, figure (b), the inputmodule^ at^ location^10

will^ be^ logic^0 (power

not flowing to the module).  The processor’s examination for an OFF condition atreference^10 will^ then^

be^ TRUE;^ therefore,^ the instruction^ will^ provide^ continuity

to^ the^ rung^ and turn output 100 and PL1 ON.

Illustration^ ^ In^ Figure^ 2,^ the^ normally

closed^ input^ condition^ has^

been programmed as an examine-ON instruction.  During operation figure (a), if PB1 is not pushed, the inputmodule 10 will read an ON status.  When the processor evaluates the ladder rung, its examinationfor an ON condition at reference 10 will be TRUE.  Therefore, contact 10 will close to provide power to the rung,turning output 100 and PL1 ON.

Summarizing^ ^ For^ a^ normally^ closed^ wired

input^ device^ to^ behave^ as

a normally closed device when connected, it must be programmedas an examine-ON, or normally open, contact instruction.  Discrete inputs to a PLC can be made to act as normally open ornormally^ closed^ contacts,^

regardless^ of^ their^ original configuration.  This ability to examine a single device for either an open orclosed state is the key to the flexibility of PLCs—no matter howa^ device^ is^ wired^ (normally^

open^ or^ normally^ closed),^ the controller can be programmed to perform the desired actionwithout changing the wiring.  NOTE: The programming state of an input depends not only onhow it is wired, but also on the desired control action.

docsity.com

Summarizing^ ^ A normally open input can be programmed in a PLCto^ behave^ like^ a^ normally

closed^ device^ and^ vice versa.  However, for fail-safe reasons, normally closed inputdevices^ should^ be^ wired

to^ the^ input^ module^ as normally^ closed^ devices^

and^ then^ programmed^ as examine-ON^ instructions,

so^ that^ they^ behave^ like normally closed devices.  A^ wired^ normally^ open

device^ must^ not^ be programmed^ to^ act^ as^

a^ normally^ closed^ device, especially if it is being used to interrupt continuitywhen a device is pushed or closed.

Example Illustration of a Normally Closed StopPush Button Used To Stop The Power To aMotor

Example Illustration of a Normally Closed StopPush Button Used To Stop The Power To aMotor

Program/Flow Control Instructions^ ^ Direct the flow of operations, as well as the executionof instructions, within a ladder program.^ ^ They perform these functions using branching andreturn instructions, which are executed when certainalready programmed control logic conditions occur.^ ^ Program/flow^ control^

instructions^ form^ a^ “fence”within a program. ^ This^ fence^ contains

groups^ of^ other^ ladderinstructions that are used to implement the desiredfunction.

Figure Illustrating A Fence Created UsingProgram/Flow Control Instructions

Table Showing Some Of The MostCommonly Used Program/Flow ControlInstructions.

Master Control Relay^ ^ A master control relay (MCR) output instruction activates ordeactivates the execution of a group or zone of ladder rungs.^ ^ An MCR rung is used in conjunction with an END rung to fencea group of rungs.^ ^ The fence consists of an MCR rung with conditional inputs at thebeginning of the zone and an END rung with no conditionalinputs at the end of the zone.^ ^ When^ the^ MCR^ rung^ condition

is^ TRUE,^ it^ activates^ the referenced output, allowing all rung outputs within the zone tobe controlled by their respective rung input conditions.  When the MCR output is turned OFF, it de-energizes all nonretentive (non latched) outputs within the zone.

Zone Control Last State^ ^ A zone control last state (ZCL) instruction is similar to an MCRinstruction.^ ^ Determines whether or not a group of ladder rungs will beevaluated.^ ^ In this instruction, a ZCL output with conditional inputs occursat the start of the fenced zone, while an END ZCL output withno conditional inputs occurs at the end of the zone.^ ^ When the referenced ZCL output is activated, the outputs withinthe zone are controlled by their respective input conditions.^ ^ When the ZCL output is turned OFF, the outputs within the zonestay in their last state.

End^ ^ An end (END) instruction signifies the last rung of amaster^ control^ relay^

or^ zone^ control^ last^ stateinstruction. ^ This^ instruction^ is^

usually^ unconditional^

(i.e., programmed without any conditions to energize).  An end instruction reference address may or may notreference a MCR or ZCL.  If a reference is included, the END instruction willend that particular MCR or ZCL.  If^ the^ instruction^ does

not^ include^ a^ reference address,^ it^ will^ terminate

the^ latest^ MCR^ or^ ZCL instruction.