Loading…
Loading…
方法名称: show_device_status_method
方法ID: 0x4C77
方法标签: Device Status
方法描述: Shows alarm and error conditions reported by the device.
- {
- char status[3];
- char xmtr_data[25];
- int alarm_status;
- int temp1;
- int temp2;
- int temp3;
- int temp4;
- int temp5;
- int temp6;
- int temp7;
- int temp8;
- int temp9;
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- send(233,status);
- alarm_status = _ivar_value(19522);
- if (alarm_status != 0)
- {
- ACKNOWLEDGE(literal_string(1224));
- process_abort();
- }
- get_more_status(status,xmtr_data);
- temp1 = _ivar_value(4145);
- temp2 = _ivar_value(4146);
- temp3 = _ivar_value(4147);
- temp4 = _ivar_value(4148);
请登录以获得完整内容