Loading…
Loading…
方法名称: methodReadHistoricFaults
方法ID: 0x4041
方法标签: Historical Faults
方法描述: 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(16453);
- fault[1] = _ivar_value(16454);
- fault[2] = _ivar_value(16455);
- fault[3] = _ivar_value(16456);
- fault[4] = _ivar_value(16457);
- fault[5] = _ivar_value(16458);
- if (fault[0] + fault[1] + fault[2] + fault[3] + fault[4] + fault[5] == 0)
- {
- ACKNOWLEDGE(literal_string(808));
- }
- else
- {
- if (fault[0] != 0)
- {
- if (fault[0] & 1)
- ACKNOWLEDGE(literal_string(41));
- if (fault[0] & 2)
请登录以获得完整内容