title: Using Arrays in structured text
body: <p>I am using B&amp;R Automation Studio on a simulation PLC. I am just playing around with some programs and have come across a problem.</p>
  <p>I have a list of alarms for my system. If anyone of these alarms go off, I want there to be an alarm flag. This is simple enough to do by a simple OR statement made even easier because I only have 5 alarms.</p>
  <p>However, what if I was to have 100 alarms, it would take a long time to enter these all in manually. My first thoughts are to put all the alarms into an array so then I can access any element easily, but in order to do this would I not need to type all these variables into the system anyway? so I wouldn't be saving a great deal of time? Is there a way or a function block I can utilize so that I can skip the manual process of entering 100+ variables into an array?</p>