latch and unlatch

PLC BOY

Guest
P
What is the equivalant ladder logic for latch and unlatch instruction. Thanks
 
Homework...?
Ok here is one example. First two rungs are classic latch/unlatch.
Next two rungs are equivalent (at least on 16-bit word level).
Feel free to use it. I hope you get good answer when your teacher
asks you to explain how it works...

latch.jpg
 
Last edited:
To furhter exlpain:

The LATCH or SET instruction enables the assigned relay coil to stay on when the rung (that ends with the LATCH?SET) is compleated. The assigned coil will stay on when the circuit in the rung that feeds the coil goes off.

The UNLATCH or RST instruction turns off the assigned coil when the circuit that feeds the UNLATCH/RST is compleated..

For example.


start Motor on
---||----------------------(SET A)
n/o button

stop Motor off
---||---------------------(RST A)
m/o button

 
Another one is the KEEP function.

---[input 1]-----[KEEP  ]


---[input 2]-----[bit no]



16.gif
 
Alternative!

See what you think of this one!
In the MVM
N7:0 contains the value 0
N7:1 contains the mask value which is 0001 Hex

Obviously, when you press latch, the output latches itself on and will not turn off until the unlatch is pressed which uses the MVM. This method only manipulates the B3:1/0 bit and leaves the other bits in the word free to use any way you choose.

newlatch.jpg
 
Last edited:
Randy,

The MVM instructions do not display the values in your post, the logic will be much clear if it were shown
 
BobB said:
Another one is the KEEP function.

---[input 1]-----[KEEP  ]


---[input 2]-----[bit no]



16.gif

Just so there's no confusion, Omron's KEEP function is a 2 input device. Some might confused Bob's example as two separate rungs, so just to clarify...

| +----------+
|---[input 1]------------| SET |
| | |
| | KEEP(11) |
| | bit no. |
| | |
|---[input 2]------------| RESET |
+----------+


I actually prefer the 'combined' KEEP instruction over separate SET and RESET instructions. In my Omron days, you didn't have a choice. There were no separate SET and RESET functions. Therefore, there was no temptation to put the SET and RESET a mile apart in the program!... :D

I think Siemens gives you a choice as well. Choice is good... :nodi:

beerchug

-Eric

P.S. to Bob... I see you're enjoying your new 'crotchety old man' smiley... :D
You might want to stick it in your signature so you don't have to paste it in each time.
 

Similar Topics

Hello All, Can someone see what I did wrong here. My "PA" bit never seems to get energized despite hitting "SOFTKEY7" many times
Replies
5
Views
724
Hi guys, I have a question regarding studio 5000 with processor 1769-L33ER V33.011 and Factorytalk View SE V12. I have an home-made pop-up...
Replies
3
Views
1,553
I'm troubleshooting a machine for a customer right now, and the output that is not working needs this bit to go high to activate the coil. But the...
Replies
36
Views
13,575
I am trying to convert an old PLC5 program. I have several instances in the unlatch instruction where they give a B file on top of the unlatch...
Replies
9
Views
2,012
Hi everyone. First time poster here. I am very new to PLC programming (my programming background is more in computers). I have a question with...
Replies
12
Views
3,210
Back
Top Bottom