This should be a nice question for different approaches.I am very new, so pardon my simple question.
Say I have 6 LEDs.
LED1 AT %Q* : BOOL;
LED2 AT %Q* : BOOL;
LED3 AT %Q* : BOOL;
LED4 AT %Q* : BOOL;
LED5 AT %Q* : BOOL;
LED6 AT %Q* : BOOL;
My goal is to be able to toggle 3 LEDS (which ever I would like). therefore, if you press a specific button and toggle it ON, it will do so with the respective LED:
LED[i] := button[i];
That is easy. Now say I have 3 that are currently ON.
I would like to be able to press a Unique "Pulse" button and Pulse all 3 Currently Lit LEDs simultaneously for 3 pulse cycles. each 1 second long. ex. ON --> OFF --> ON --> OFF --> ON --> OFF
What would be the best way in Structured Text to be able to know which ones are currently ON, and if so, Pulse the currently ON LEDS 3 times using Timers.
Thanks!