Loading…

Method Name: MthdDeviceState

Method ID: 0x41CB

Method Label: Device status

Method Help:


  • {
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • send_command(48);
  • if ((device_status & 0x80) == 0x80 || (extended_fld_device_status & 0x04) == 0x04 || (device_specific_status_5 & 0x01) == 0x01 || (device_specific_status_5 & 0x02) == 0x02 || (device_specific_status_5 & 0x04) == 0x04 || (device_specific_status_5 & 0x08) == 0x08 || (device_specific_status_5 & 0x10) == 0x10 || (device_specific_status_5 & 0x20) == 0x20 || (device_specific_status_5 & 0x40) == 0x40 || (device_specific_status_5 & 0x80) == 0x80)
  • {
  • ACKNOWLEDGE(literal_string(1099));
  • }
  • else
  • {
  • if ((device_status & 0x08) == 0x08 || (device_specific_status_23 & 0x01) == 0x01 || (device_specific_status_23 & 0x02) == 0x02 || (device_specific_status_23 & 0x20) == 0x20 || (device_specific_status_23 & 0x40) == 0x40)
  • {
  • ACKNOWLEDGE(literal_string(1100));
  • }
  • else
  • {
  • if ((device_status & 0x04) == 0x04 || (device_status & 0x02) == 0x02 || (device_status & 0x01) == 0x01)
  • {
  • ACKNOWLEDGE(literal_string(1101));


Please login for more