get Alarmclass name at RT start
Hello,
is there a way to get the name (and not the ID) of the alarmclass designated for a variable when it reaches a Limit at the RT?
I have to alarm classes in my Project:
0 - Info
1 - Error
myVar has at Limit 1 the Alarm 1 - Error.
With this I get the ID at starting the RT:
C# Code:
this.Project.Variables().Item("myVar").Limits().Item(1).AlarmClass
So I get a 1 and I would like to get the name (Error).
Is there a way to do this?
Thanks.
Cis
This is a migrated post! Originally posted on 17.10.2014 by user cisnetandazo. Please be aware that information can be outdated.