Loading…

Method Name: enable_alert_method

Method ID: 0x46F5

Method Label: Alert Enable

Method Help:


  • {
  • int qBitEnabled;
  • int q05;
  • int qStatusEnableValue;
  • int qStatusValue;
  • int alert_bit;
  • int alert_byte;
  • int i;
  • char qq[3];
  • long ids[4];
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code(8,0);
  • switch (tab_id)
  • {
  • case 0:
  • send_trans(129,40,qq);
  • send_trans(129,43,qq);
  • if (0 == output_function && 1 == option_module_installed)
  • {
  • i = SELECT_FROM_LIST(literal_string(2678),literal_string(2692));
  • }
  • else
  • {
  • i = SELECT_FROM_LIST(literal_string(2678),literal_string(2693));
  • }
  • switch (i)
  • {
  • case 0:
  • alert_byte = 0x10;
  • alert_bit = 0x01;
  • local_alert_strings = 40;
  • break;
  • case 1:
  • alert_byte = 0x04;
  • alert_bit = 0x02;
  • local_alert_strings = 21;
  • break;
  • case 2:
  • alert_byte = 0x20;
  • alert_bit = 0x04;
  • local_alert_strings = 52;
  • break;
  • }
  • break;
  • case 1:
  • if (software_revision > 6)
  • {
  • switch (SELECT_FROM_LIST(literal_string(2678),literal_string(2694)))
  • {
  • case 0:
  • alert_byte = 0x08;
  • alert_bit = 0x04;
  • local_alert_strings = 32;
  • break;
  • case 1:
  • alert_byte = 0x08;
  • alert_bit = 0x20;
  • local_alert_strings = 35;
  • break;
  • case 2:
  • alert_byte = 0x08;
  • alert_bit = 0x10;
  • local_alert_strings = 34;
  • break;
  • case 3:
  • alert_byte = 0x20;
  • alert_bit = 0x02;
  • local_alert_strings = 51;
  • break;
  • }
  • }
  • else
  • {
  • switch (SELECT_FROM_LIST(literal_string(2678),literal_string(2695)))
  • {
  • case 0:
  • alert_byte = 0x08;
  • alert_bit = 0x20;
  • local_alert_strings = 35;
  • break;
  • case 1:
  • alert_byte = 0x08;
  • alert_bit = 0x10;
  • local_alert_strings = 34;
  • break;
  • }
  • }


Please login for more