Loading…

Method Name: tvl_auto_calib_method

Method ID: 0x4348

Method Label: Auto Calibration

Method Help: Follow the prompts to initiate automatic calibration of the Travel Sensor.


  • {
  • float qa;
  • float qb;
  • float qc;
  • float qd;
  • float qe;
  • float mpp;
  • int q;
  • int q0;
  • int q1;
  • int q2;
  • int q3;
  • int q4;
  • int q5;
  • int q6;
  • int q7;
  • int q8;
  • char S[3];
  • int q01;
  • int q02;
  • int q03;
  • int q04;
  • int q05;
  • int q06;
  • int q07;
  • int q08;
  • int q09;
  • int q10;
  • int q11;
  • int q12;
  • int q13;
  • int q14;
  • int q15;
  • int q16;
  • int q17;
  • int q18;
  • int q19;
  • int q20;
  • int q21;
  • int q22;
  • int q23;
  • int q24;
  • int q25;
  • int q26;
  • int q27;
  • int q28;
  • int q29;
  • int q30;
  • int q31;
  • int q32;
  • int q33;
  • int q34;
  • int q35;
  • int q36;
  • int q37;
  • int q38;
  • int q39;
  • int q40;
  • int qj;
  • int qk;
  • int qm;
  • float qa0;
  • float qa1;
  • float qa2;
  • float qa3;
  • float qa4;
  • float qa5;
  • float qa6;
  • float qa7;
  • float qa8;
  • float qa9;
  • float qb0;
  • float qb1;
  • float qb2;
  • float qb3;
  • float qb4;
  • float qb5;
  • float qb6;
  • float qb7;
  • float qb8;
  • float qb9;
  • float qc0;
  • float qc1;
  • float qc2;
  • float qc3;
  • float qc4;
  • float qc5;
  • float qc6;
  • float qc7;
  • float qc8;
  • float qc9;
  • float qd0;
  • float qd1;
  • float qd2;
  • float qd3;
  • float qd4;
  • float qd5;
  • float qd6;
  • float qd7;
  • float qd8;
  • float qd9;
  • float qe0;
  • float qe1;
  • float qe2;
  • float qe3;
  • float qe4;
  • float qe5;
  • float qe6;
  • float qe7;
  • float qe8;
  • float qx;
  • float qy;
  • float qz;
  • float fRoundingFactor;
  • int iVar45;
  • int iVar46;
  • int i;
  • int n;
  • long ids[5];
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(1);
  • _set_resp_code(8,0);
  • send(151,S);
  • if (_ivar_value(16804) > 2)
  • {
  • ACKNOWLEDGE(literal_string(2015));
  • return;
  • }
  • ;
  • if ((_ivar_value(16532) & 0x18) > 0)
  • {
  • ACKNOWLEDGE(literal_string(2300));
  • process_abort();
  • }
  • ;
  • q = 0.9;
  • fRoundingFactor = 0.0;
  • if (q < 1)
  • fRoundingFactor = 0.5;
  • send_trans(129,35,S);
  • if (0x02 == _ivar_value(16509))
  • {
  • ACKNOWLEDGE(literal_string(2607));
  • return;
  • }
  • send(138,S);
  • if ((_ivar_value(16789) & 0x01) > 0)
  • {
  • ACKNOWLEDGE(literal_string(2608));
  • return;
  • }
  • ;
  • send_trans(129,0,S);
  • _vassign(16452,16427);
  • save_values();
  • if (1 == _ivar_value(167))
  • {
  • ACKNOWLEDGE(literal_string(2274));
  • process_abort();
  • }
  • if (_ivar_value(16427))
  • {
  • if ((_ivar_value(16465) & 0x01C0) == 0x0100)
  • {
  • _get_dev_var_value(literal_string(2275),0,16452);
  • }
  • else
  • {
  • _get_dev_var_value(literal_string(2276),0,16452);
  • }
  • save_values();
  • if (_ivar_value(16452) > 0)
  • {
  • ACKNOWLEDGE(literal_string(2277));
  • process_abort();
  • }
  • else
  • {
  • send_trans(130,6,S);
  • }
  • }
  • send_trans(129,0,S);
  • if (1 == _ivar_value(16472) || 5 == _ivar_value(16472))
  • {
  • if (1 == _ivar_value(16472))
  • {
  • ACKNOWLEDGE(literal_string(2256));
  • }
  • else
  • {
  • ACKNOWLEDGE(literal_string(2257));
  • }
  • process_abort();
  • }
  • _add_abort_method(17167);
  • DELAY(1,literal_string(2223));
  • send(138,S);
  • send_trans(129,0,S);
  • if ((_ivar_value(16790) & 0x31) > 0 || _ivar_value(10098) == 0)
  • {
  • send_trans(142,8,S);
  • send_trans(142,1,S);
  • send_trans(157,0,S);
  • if (1 != _ivar_value(167))
  • {
  • local_man_loader_status = 0;
  • save_values();
  • send_trans(130,75,S);
  • }
  • if (_ivar_value(171) == 0)
  • local_control_mode = 2;
  • else
  • local_control_mode = 3;
  • save_values();
  • send_trans(130,7,S);
  • send_trans(129,0,S);
  • DELAY(1,literal_string(2223));
  • }
  • ;
  • send_trans(129,35,S);
  • if (1 - SELECT_FROM_LIST(literal_string(2412),literal_string(2226)))
  • {
  • if (!!(inst_level & 0x0008))
  • {
  • i = 0;
  • send(138,S);
  • if ((_ivar_value(16789) & 0x02) > 0)
  • {
  • q = _ivar_value(16539);
  • var_103u = 0x07;
  • send_trans(130,134,S);
  • send_trans(129,30,S);


Please login for more