Loading…

方法名称: master_test

方法ID: 0x40F0

方法标签: 主测试

方法描述: Master Reset- Commands the YTA electronics to reset and perform a selftest. Reports any errors that occured.


  • {
  • char status[3];
  • char xmtr_status[25];
  • int number_of_tries;
  • {
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • }
  • ;
  • if (SELECT_FROM_LIST(literal_string(334),literal_string(335)) == 0)
  • {
  • process_abort();
  • }
  • ACKNOWLEDGE(literal_string(336));
  • send_command(42);
  • DELAY(8,literal_string(337));
  • number_of_tries = 0;
  • do {
  • get_more_status(status,xmtr_status);
  • }
  • while (status[0] == 32 && number_of_tries++ < 3);
  • if (status[0] == 32)
  • {
  • ACKNOWLEDGE(literal_string(338));
  • }
  • else
  • if (xmtr_status[0] || xmtr_status[1] || xmtr_status[2] || xmtr_status[3] || xmtr_status[4] || xmtr_status[5])
  • {
  • {
  • {
  • {
  • {
  • if (xmtr_status[0] & 0x01)
  • _display_xmtr_status(4021,0x01);
  • }
  • ;
  • {
  • if (xmtr_status[0] & 0x02)
  • _display_xmtr_status(4021,0x02);
  • }
  • ;
  • {
  • if (xmtr_status[0] & 0x04)
  • _display_xmtr_status(4021,0x04);
  • }


请登录以获得完整内容