Akgaurihar
Member
Hi,
I need a piece of expert advice on programming alarms in Structured Text.
I referred to the way my senior colleague programmed alarms in some projects, he did something like this;
if alarm1 then
alarmID :=1;
elsif alarm2 then
alarmID :=2;
elsif alarm3 then
alarmID :=3;
.
.
.
.
elsif alarm20 then
alarmID :=20;
end_if;
The alarmID is then sent to the HMI with a respective alarm description.
Now, the doubts are;
1. Is it really a nice way of programming 50 or more Alarms? If not, then any example on how to program it.
2. What if two alarms occur at the same time? How the PLC deals with it?
3. If any two alarms (A and B) out of 50 occur at the same time then how to prioritize that the A is more severe and A should be displayed until it is cleared out and then B is displayed.
Thanks in advance.
I need a piece of expert advice on programming alarms in Structured Text.
I referred to the way my senior colleague programmed alarms in some projects, he did something like this;
if alarm1 then
alarmID :=1;
elsif alarm2 then
alarmID :=2;
elsif alarm3 then
alarmID :=3;
.
.
.
.
elsif alarm20 then
alarmID :=20;
end_if;
The alarmID is then sent to the HMI with a respective alarm description.
Now, the doubts are;
1. Is it really a nice way of programming 50 or more Alarms? If not, then any example on how to program it.
2. What if two alarms occur at the same time? How the PLC deals with it?
3. If any two alarms (A and B) out of 50 occur at the same time then how to prioritize that the A is more severe and A should be displayed until it is cleared out and then B is displayed.
Thanks in advance.