Loading…
Loading…
Method Name: meth_view_alert_severity_new
Method ID: 0x4A04
Method Label: View Alert Severity
Method Help:
- {
- char status[3];
- long var_id[2];
- long var_id_1[3];
- char disp_string[100];
- char disp_string1[100];
- int slen;
- int slen1;
- int x;
- int alarmNum;
- int index;
- int view_choice;
- int loop_option;
- slen1 = 100;
- slen = 100;
- loop_option = 0;
- x = 0;
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- do {
- _get_dictionary_string(858981314,disp_string1,slen1);
- view_choice = SELECT_FROM_LIST(literal_string(751),disp_string1);
- switch (view_choice)
- {
- case 0:
- _get_dev_var_value(literal_string(853),0,18949);
- alarmNum = _ivar_value(18949);
- if (alarmNum > 39 && alarmNum < 100 || alarmNum > 140)
- {
- _get_dictionary_string(858783850,disp_string,slen);
- ACKNOWLEDGE(disp_string);
- }
- else
- {
- if (alarmNum >= 100)
- alarmNum = alarmNum - 60;
- _iassign(16747,alarmNum);
- send(183,status);
- if (status[0])
- {
- display_response_status(183,status[0]);
- return;
- }
- alarmNum = _ivar_value(16747);
- if (alarmNum > 39)
- alarmNum = alarmNum + 60;
- var_id[0] = 16748;
- var_id[1] = 18949;
- acknowledge(literal_string(855),var_id);
- }
Please login for more