Loading…

方法名称: calibrate_demand_method

方法ID: 0x40AC

方法标签: Calibrate

方法描述: Calibrate Demand: This procedure calibrates the control drive's Demand circuit.


  • {
  • char status[3];
  • char display_string[60];
  • int demand_cal_source_local;
  • int string_length;
  • int original_drive_operating_mode;
  • int calibration_technique_selection;
  • int recalibrate_lower_point;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _add_abort_method(16566);
  • _iassign(4054,1);
  • send_command(140);
  • demand_cal_source_local = _ivar_value(16521);
  • if (demand_cal_source_local == 0x01)
  • {
  • send_command(134);
  • original_drive_operating_mode = _ivar_value(16421);
  • string_length = 60;
  • _get_dictionary_string(19726337,display_string,string_length);
  • ACKNOWLEDGE(display_string);
  • _iassign(16421,1);
  • send(143,status);
  • if (status[0])
  • {
  • display_response_status(143,status[0]);
  • process_abort();
  • }
  • calibration_technique_selection = SELECT_FROM_LIST(literal_string(365),literal_string(366));
  • if (calibration_technique_selection == 0)
  • {
  • ACKNOWLEDGE(literal_string(367));
  • _iassign(4054,1);
  • _iassign(16445,1);
  • _iassign(16470,57);


请登录以获得完整内容