I have 2 buttons that I want to use to select different programs
When button A is pushed IN#0001 (IG#00010) lights up, wen button B is pressed IN#0002 (IG#00011) lights up
The input does not stay on when the button is released. How can I use these inputs as my program selection in my master program?
Edit 1: I was able to get the input to change B020 to either 1 or 2 with
DIN B020 IG#(1)
The issue is i dont want to have to hold the button. Once pressed I want B020 to change and stay at any time, not just if the button is pressed when command DIN B020 IG#(1) comes by.