Simple logic for an Indicator

Hi guys! Help me write a simple code to control our indicator by pressing pushbutton. So, when we press the pushbutton at the first time the indicator shoud be on, on the second pressing the indicator shoud be off, thus we have one input I0.0 and one output Q0.0. Thank you in advance!

1 Like

It’s a simple latching circuit.

Follow this video

Thank you bro! But my question meant something different. I have one pushbutton and one output

Hi,

Check these similar PLC examples

1 Like

Thanks so much!