Loading…

Method Name: meth_view_alert_severity_new

Method ID: 0x4931

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(858981324,disp_string,slen);
  • _get_dictionary_string(858981314,disp_string1,slen1);
  • view_choice = SELECT_FROM_LIST(disp_string,disp_string1);
  • switch (view_choice)
  • {
  • case 0:
  • _get_dev_var_value(literal_string(615),0,18738);
  • alarmNum = _ivar_value(18738);
  • 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(16859,alarmNum);
  • send(183,status);
  • if (status[0])
  • {
  • display_response_status(183,status[0]);
  • return;
  • }
  • alarmNum = _ivar_value(16859);
  • if (alarmNum > 39)
  • alarmNum = alarmNum + 60;


Please login for more