Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
FOR i:=0 TO iCountRowsFromHistory-1
itfIAlarm := arritfAlarmsFromHistoryAll[i];
itfAlarmClass := itfIAlarm.GetAlarmClass();
END_FOR
but itfAlarmClass is always 0 so I can't use itfIAlarm.GetAlarmClass().GetName() method
The rest of Alarm elements like timestamps, message, latchvalues, etc. have proper values.
Same behavior I see in simulation AlarmManager examle app from Codesys Store and in real environment with Wago PFC200 controller.
Maybe someone knows where is the problem and how to read proper itfAlarmClass value ?
Regards
Marek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to read Alarm Class from Alarm Storage by this code, of course in the beginning I define AlarmManagerClient, etc.
AlarmManager.g_AlarmHandler.GetAlarmsFromStorage( ...... );
FOR i:=0 TO iCountRowsFromHistory-1
itfIAlarm := arritfAlarmsFromHistoryAll[i];
itfAlarmClass := itfIAlarm.GetAlarmClass();
END_FOR
but itfAlarmClass is always 0 so I can't use itfIAlarm.GetAlarmClass().GetName() method
The rest of Alarm elements like timestamps, message, latchvalues, etc. have proper values.
Same behavior I see in simulation AlarmManager examle app from Codesys Store and in real environment with Wago PFC200 controller.
Maybe someone knows where is the problem and how to read proper itfAlarmClass value ?
Regards
Marek