Posted 11 Feb 2022 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! Share this post Link to post Share on other sites
Posted 11 Feb 2022 (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. Edited 11 Feb 2022 by IO_Rack 1 person likes this Share this post Link to post Share on other sites
Posted 11 Feb 2022 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. 1 person likes this Share this post Link to post Share on other sites
Posted 11 Feb 2022 Appreciate the kind responses! Looking through and testing em.. :) Share this post Link to post Share on other sites