Loading…

Method Name: MthCalibrateZero

Method ID: 0x4425

Method Label: Calibrate Zero

Method Help: Performs Zero calibration/Displays current zero calibration value (Fct. A8, C1.1.1)


  • {
  • int iOptionChosen;
  • int iTimeResponseDelayedGdc;
  • float flTimeResponseDelayedGdc;
  • float flOffsetZeroCalibrationOld;
  • char achCmdStatus[3];
  • long ai32VariableIds[4];
  • char stStandardDct[60];
  • int iLengthStStandardDct;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • iOptionChosen = SELECT_FROM_LIST(literal_string(1977),literal_string(1978));
  • _lassign(17444,20432);
  • send(161,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(161,achCmdStatus[0]);
  • iLengthStStandardDct = 60;
  • _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
  • DELAY(2,stStandardDct);
  • process_abort();
  • }
  • flOffsetZeroCalibrationOld = _fvar_value(17292);
  • _add_abort_method(17443);
  • switch (iOptionChosen)
  • {
  • case 0:
  • return;
  • break;
  • case 1:
  • _get_dev_var_value(literal_string(1979),0,17292);
  • _lassign(17444,20432);
  • send(163,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(163,achCmdStatus[0]);
  • iLengthStStandardDct = 60;
  • _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
  • DELAY(2,stStandardDct);
  • process_abort();
  • }


Please login for more