Loading…

Method Name: meth_view_alert_severity_new

Method ID: 0x4C15

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 set;
  • 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(1936),disp_string1);
  • switch (view_choice)
  • {
  • case 0:
  • _get_dev_var_value(literal_string(2109),0,19478);
  • alarmNum = _ivar_value(19478);
  • 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(17033,alarmNum);
  • send(183,status);
  • if (status[0])
  • {
  • display_response_status(183,status[0]);
  • return;
  • }
  • alarmNum = _ivar_value(17033);
  • if (alarmNum > 39)
  • alarmNum = alarmNum + 60;
  • var_id[0] = 17034;
  • var_id[1] = 19478;
  • acknowledge(literal_string(2112),var_id);
  • }
  • break;
  • case 1:
  • for (x = 1; x <= 72; x++)
  • {
  • set = 1;
  • if (x == 7 || x == 15 || x == 59)
  • {
  • x = x + 1;
  • }
  • if (x == 29)
  • {
  • x = x + 2;
  • }


Please login for more