Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Latch Instructions

Now that we understand how inputs and outputs are


processed by the plc, let's look at a variation of our regular outputs.
Regular output coils are of course an essential part of our programs
but we must remember that they are only TRUE when ALL
INSTRUCTIONS before them on the rung are also TRUE. What
happens if they are not? Then of course, the output will become
false. (Turn off)
Think back to the lunch bell example we did a few chapters
ago. What would've happened if we couldn't find a "push on/push
off" switch? Then we would've had to keep pressing the button for
as long as we wanted the bell to sound. (A momentary switch) The
latching instructions let us use momentary switches and program the
plc so that when we push one the output turns on and when we push
another the output turns off.
Maybe now you're saying to yourself "What the heck is he
talking about?” (It's also what I'm thinking!) So let's do a real world
example.
Picture the remote control for your TV. It has a button for ON and
another for OFF. (Mine does, anyway) When I push the ON button
the TV turns on. When I push the OFF button the TV turns off. I
don't have to keep pushing the ON button to keep the TV on. This
would be the function of a latching instruction.
The latch instruction is often called a SET or OTL (output
latch). The unlatch instruction is often called a RES (reset), OUT
(output unlatch) or RST (reset). The diagram below shows how to
use them in a program.
Here we are using 2 momentary push button switches. One
is physically connected to input 0000 while the other is physically
connected to input 0001. When the operator pushes switch 0000 the
instruction "set 0500" will become true and output 0500 physically
turns on. Even after the operator stops pushing the switch, the
output (0500) will remain on. It is latched on. The only way to turn
off output 0500 is turn on input 0001. This will cause the instruction
"res 0500" to become true thereby unlatching or resetting output
0500.

You might also like