Report Set and Reset coil based on a condition (noob ladder question) in Vision & Samba PLC + HMI Controllers & VisiLogic Software Posted December 16, 2016 On 12/12/2016 at 11:09 AM, adambg said: I finally found two solutions that seems to work. 1. Use toggle coil: Probe Coil ---[P]------(X) 2. Use toggle logic: Probe Coil Coil -------[P]---+---[ ]------(R) | | Coil Coil +---[/]------(S) Thank you all! Be careful using a conditional to set and reset the same coil on the same rung of logic. When the program is compiled to down to code it may not compile how you think and can give weird logic bugs. You can get conditions in the final code where the coil changes states between evaluations and you set and reset the coil on the same pass. I highly recommend separating the logic out into multiple rungs.