Need help with some easy code

bobwithdana

Member
Join Date
Dec 2003
Location
california
Posts
239
PLC5 What is the easiest most effencient way to program a panelview momentary pushbutton to latch a bit when pressed and unlatch same bit when pressed again. I have seen this done with one shots and latches and also with counters etc. Want it clean and simple

Thanks in advance

Bob
 
Why not latch it in the PV?


latch.gif
 
The above reply is on the right track, but I would use the maintained type...

Press once, it energizes.
Press again, it de-energizes.
 
it could also depend on what is button used for, does it need to maintain it's state during power down, what resources are available (latched button also requires handshake bit), what user (programmer) friendliness you want to achive. maybe you are logging what button is pressed and when so you don't like maintained or latched buttons, maybe you want for simplicity to keep all buttons momentary regardless if on HMI or not and assign them functionality you need by program etc. it all depends...

http://www.plctalk.net/qanda/showthread.php?t=22162
 

Similar Topics

I bought a moller easy 512 plc, in hopes of using it to be able to automate 3 pumps. Problem is how do I "program" this plc to do what I want...
Replies
11
Views
8,465
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
9
Views
149
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
135
Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
56
Back
Top Bottom