Loading…

方法名称: methodReadFaults

方法ID: 0x4031

方法标签: Current Faults

方法描述: Read the device's current 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]);
  • }
  • if (status[2] & 0x10)
  • {
  • fault[0] = _ivar_value(16439);
  • fault[1] = _ivar_value(16440);
  • fault[2] = _ivar_value(16441);
  • fault[3] = _ivar_value(16442);
  • fault[4] = _ivar_value(16443);
  • fault[5] = _ivar_value(16444);
  • if (fault[0] != 0)
  • {
  • if (fault[0] & 1)
  • ACKNOWLEDGE(literal_string(3));
  • if (fault[0] & 2)
  • ACKNOWLEDGE(literal_string(5));
  • if (fault[0] & 4)
  • ACKNOWLEDGE(literal_string(6));
  • if (fault[0] & 8)
  • ACKNOWLEDGE(literal_string(7));


请登录以获得完整内容