Loading…

Method Name: angle_adjust_method

Method ID: 0x4123

Method Label: Angle Adjustment

Method Help: Angle adjustment is the method to calibrate zero/span by designating correction angle to preset 0% or 100% travel angle.


  • {
  • char status[3];
  • long var_id[1];
  • float tmp_cutoff;
  • float tmp_shutopen;
  • int choice;
  • int tmp_mode;
  • float fval;
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • send(196,status);
  • if (status[0])
  • {
  • display_response_status(196,status[0]);
  • DELAY(3,literal_string(1148));
  • process_abort();
  • }
  • tmp_mode = _ivar_value(16389);
  • if (tmp_mode != 0)
  • {
  • ACKNOWLEDGE(literal_string(1149));
  • process_abort();
  • }
  • do {
  • choice = SELECT_FROM_LIST(literal_string(1223),literal_string(1224));
  • tmp_cutoff = 0;
  • switch (choice)
  • {
  • case 0:
  • ACKNOWLEDGE(literal_string(1225));
  • send(204,status);
  • if (status[0])
  • {
  • display_response_status(204,status[0]);
  • DELAY(3,literal_string(1148));
  • process_abort();
  • }
  • tmp_cutoff = _fvar_value(16458);
  • if (tmp_cutoff >= 0)
  • {
  • do {
  • ACKNOWLEDGE(literal_string(1226));
  • _get_dev_var_value(literal_string(1227),0,16458);
  • fval = _fvar_value(16458);


Please login for more