Loading…

方法名称: master_test

方法ID: 0x402C

方法标签: Transmitter reset

方法描述: Transmitter reset - The transmitter is restarted. Non-permanent stored data are lost. Self-test is subsequently conducted.


  • {
  • char status[3];
  • char xmtr_status[25];
  • int anzahl_der_versuche;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • ACKNOWLEDGE(literal_string(177));
  • ACKNOWLEDGE(literal_string(178));
  • _add_abort_method(4118);
  • send(42,status);
  • if (status[0])
  • {
  • display_response_status(42,status[0]);
  • ACKNOWLEDGE(literal_string(179));
  • process_abort();
  • }
  • DELAY(3,literal_string(180));
  • anzahl_der_versuche = 0;
  • do {
  • get_more_status(status,xmtr_status);
  • }
  • while (status[0] == 32 && anzahl_der_versuche++ < 2);
  • if (status[0] == 32)
  • {
  • ACKNOWLEDGE(literal_string(181));
  • process_abort();
  • }


请登录以获得完整内容