Jump to content

Recommended Posts

Posted

Hi All, need some guidance on how to set up a logic in FC where;

1. Each time a ToggleAB is pressed, the resultant ToggleLED will toggle bet. ( On to Off status) or (Off to On ) for one time.

Using Set/Reset(SR) function and |P| Pulse only possible?

Thanks in advance! Cheers!

Toggle.png


Posted (edited)

You are likely to get a lot of different answers to this post. Here is a discrete method that uses a lot of contacts but does not use any special instructions. I don't have Siemens software handy.

Mr_PLC_ToggleCircuit.JPG.270b2c6515086f1

Edited by IO_Rack
  • Like 1
Posted

one thing important to add is that order of first two rungs is important. it is used to detect signal edge when button is pressed

the next rung toggles the state. using XOR is efficient but in case it is not clear how that works, here is version using set/reset.

note that in this case you cannot use output value to change output, you need to store it into some temporary bit first and use that.

toggle.png

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...