Loading…

方法名称: board_self_test_method

方法ID: 0x40B4

方法标签: Board self-test

方法描述: Board Self-Test: This function instructs the ESR-D to run self diagnostic tests and report any problem found.


  • {
  • char status[3];
  • char xmtr_status[25];
  • char display_string[60];
  • int string_length;
  • int number_of_tries;
  • int smart_feedback_installed_local;
  • int io_select_local;
  • int position_sensor_direction_local;
  • int drive_direction_local;
  • long status_mask;
  • float after_cw_ret_position_value;
  • float after_ccw_ext_position_value;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • string_length = 60;
  • _get_dictionary_string(19726337,display_string,string_length);
  • ACKNOWLEDGE(display_string);
  • _add_abort_method(16567);
  • ACKNOWLEDGE(literal_string(405));
  • PUT_MESSAGE(literal_string(406));
  • send(41,status);
  • if (status[0])
  • {
  • display_response_status(41,status[0]);
  • }
  • _set_no_device(2);
  • number_of_tries = 0;
  • do {
  • get_more_status(status,xmtr_status);
  • }


请登录以获得完整内容