How do you group variables in Structured Text?
Say I have n global variables for lamps:
lamp1
lamp2
lamp3
... // and so on
Then I have a button, and pressing it should set all variables to TRUE:
IF buttonPressed Then
lamp1 := TRUE;
lamp2 := TRUE;
lamp3 := TRUE;
... // and so on
END_IF
How can I group the lamps in a way to not to have to set every varriable to TRUE manually?