Loading…

Method Name: HistReset_method

Method ID: 0x41AA

Method Label: Reset History

Method Help: Clears entries in Status History and resets the run time to zero.


  • {
  • char status[3];
  • char disp_string1[60];
  • int result;
  • int i;
  • int event;
  • int number_of_events;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • result = SELECT_FROM_LIST(literal_string(725),literal_string(726));
  • if (result == 1)
  • {
  • send_trans(253,3,status);
  • if (status[0] != 0)
  • {
  • _get_dev_var_value(literal_string(363),0,16523);
  • send_command(172);
  • send_trans(253,3,status);
  • if (status[0] != 0)
  • {
  • ACKNOWLEDGE(literal_string(727));
  • process_abort();
  • }
  • }
  • send_command(240);
  • send(241,status);
  • _vassign(16812,16851);
  • _vassign(16813,16852);
  • _vassign(16853,16854);
  • _vassign(16814,16855);


Please login for more