Loading…

Method Name: methodReadHistoricFaults

Method ID: 0x4033

Method Label: Historical Faults

Method Help: Read the device's historical faults.


  • {
  • char status[3];
  • int fault[6];
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • send(136,status);
  • if (status[0])
  • {
  • display_response_status(136,status[0]);
  • }
  • fault[0] = _ivar_value(16445);
  • fault[1] = _ivar_value(16446);
  • fault[2] = _ivar_value(16447);
  • fault[3] = _ivar_value(16448);
  • fault[4] = _ivar_value(16449);
  • fault[5] = _ivar_value(16450);
  • if (fault[0] + fault[1] + fault[2] + fault[3] + fault[4] + fault[5] == 0)
  • {
  • ACKNOWLEDGE(literal_string(1279));
  • }
  • else
  • {
  • if (fault[0] != 0)
  • {
  • if (fault[0] & 1)
  • ACKNOWLEDGE(literal_string(3));
  • if (fault[0] & 2)


Please login for more