Hi, not sure if you are still seeking solution but regarding pictures you uploaded you set the bit when you press the button and reset it while you release button. So you get the short activation pulse while you keep the key pressed. Looking at your ladder code I don't feel like you want this kind of behaviour or?
If you want to bit remain energized until you second press that same button best is to use the event InvertBit on Press button event instead of events Setbit-Resetbit.
Hope I understood the problem and my solution helps you!