
Weberacw (Customer) asked a question.
How to make an momentary push button become latching in logic?
What is the best way to make a PB a latching contact in logic?

Weberacw (Customer) asked a question.
What is the best way to make a PB a latching contact in logic?
Copyright © 1999-2023 AutomationDirect. ALL RIGHTS RESERVED
Which PLC are you using?
Click
Here's a couple ways below. First example is a standard interlock using an OUT instruction.
Second example uses SET and RESET.
Stay away from duplicate outputs when using OUT.
"is this right? cause the stop button is momentary. and when i hit it i want it to latch and not allow controls to move."
The quick answer is, no. What do you want your STOP PB do? if you wish it to disable C1, it is doing so in the first rung.
Your rung 4 will never "latch." If that is what you wish it to do, then the N.C. in the rung needs to be a different address. Then, your X2 in the subroutine needs to instead be a N.C. C2.
i want it to disable c1 but also want it to disable the funtions of the subrouteine. when i hold it down now without the logic and i go to move the JOYSTICKS they dont opperate functions but if i let go and move the joysticks they still move.
Then change the N.O. X2 in rung 4 to N.C. X2; change N.C. X2 to N.C. X1, and change your N.O. X2 in your subroutine to N.C. C2.
With this, your C2 will go true when your stop pushbutton is depressed, and C2 will go false when you hit your start pushbutton.