Hi, I am trying to access active alarms in code(As alarm count variable updates only when we go to to alarm table frame in visualization). I wrote following code but it is not working:
VAR
iCountActiveAlarms : INT;
parritfActiveAlarms : POINTER TO ARRAY[0..0] OF IAlarm;
itfAlarmManagerClientAll : IAlarmManagerClient;
END_VAR
Hi, I am trying to access active alarms in code(As alarm count variable updates only when we go to to alarm table frame in visualization). I wrote following code but it is not working:
VAR
iCountActiveAlarms : INT;
parritfActiveAlarms : POINTER TO ARRAY[0..0] OF IAlarm;
itfAlarmManagerClientAll : IAlarmManagerClient;
END_VAR
AlarmManager.g_AlarmHandler.GetActiveAlarms(
itfAlarmManagerClient :=itfAlarmManagerClientAll,
iCountActiveAlarms => iCountActiveAlarms,
parritfActiveAlarms => parritfActiveAlarms);
The Value is always 0.
Please help.