The 'AlarmListSetFiter' function sets search conditons to display alarms in Alarm Window.
void AlarmListSetFilter(string class_name, int filter1, int filter2)
Parameters
string class_name : Class name of Alarm Window.
int filter1 : Search condition1
0 = To see all alarms.
1 = To search for alarms by using Port Number. If you input '1' in this part, you must input Port Number in 'filter2'.
2 = To search for alarms by using Alarm Priority. If you input '2' in this part, you must input Alarm Priority in 'filter2'.
int filter2 - Search condition2. Depending on 'filter1', you may not use 'filter2'.
Return Value
None
Example 1
@AlarmListSetFilter("Alarm1", 0, 0);
Description : All alarms are shown. (If 'filter1' is '0', 'filter2' is not valid.)
Example 2
@AlarmListSetFilter("Alarm1", 1, 0);
Description : If you execute the above statements, you can see alarms of Port 0 among all alarms.
@AlarmListSetFilter("Alarm1", 1, 1);
Description : If you execute the above statements, you can see alarms of Port 1 among all alarms.
Example 3
@AlarmListSetFilter("Alarm1", 2, 100);
Description : If you execute the above statements, you can see alarms of Alarm Priority 100 among all alarms.
@AlarmListSetFilter("Alarm1", 2, 0);
Description : If you execute the above statements, you can see alarms of Alarm Priority 0 among all alarms.
Relate items)