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,470
I have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
101
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
67
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
11
Views
376
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
194
Back
Top Bottom