GimmeTheLoot420
Member
0 down vote favorite
I am using B&R Automation Studio on a simulation PLC. I am just playing around with some programs and have come across a problem.
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.
However, what if I was to have 100 alarms, it would take a long time to enter these all in maunally. 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 utilise so that I can skip the manual process of entering 100+ variables into an array?
Thanks
I am using B&R Automation Studio on a simulation PLC. I am just playing around with some programs and have come across a problem.
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.
However, what if I was to have 100 alarms, it would take a long time to enter these all in maunally. 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 utilise so that I can skip the manual process of entering 100+ variables into an array?
Thanks