Loading…
Loading…
Method Name: PST_calib_method
Method ID: 0x433C
Method Label: PST Calibration
Method Help:
- {
- 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;
- int i;
- float fRoundingFactor;
- long ids[3];
- _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;
- if (_ivar_value(16509) == 0x02)
- {
- ACKNOWLEDGE(literal_string(2497));
- process_abort();
- }
- 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));
- if (1 - SELECT_FROM_LIST(literal_string(2412),literal_string(2226)))
- {
- send(138,S);
- q0 = 0;
- q1 = 1;
- while ((_ivar_value(16792) & 0x08) > 0)
- {
- if (1 == q1)
- {
- send_trans(129,35,S);
- if (1 == _ivar_value(16464) && _ivar_value(16794) & 0x08)
- {
- q0 = SELECT_FROM_LIST(literal_string(2348),literal_string(2349));
- if (0 == q0)
- {
- q == SELECT_FROM_LIST(literal_string(209),literal_string(2350));
- aux_term_mode = 2 * q;
- send_trans(130,89,S);
- }
- }
- }
- if (0 == q0)
- {
- q0 = SELECT_FROM_LIST(literal_string(2351),literal_string(2352));
- }
- if (1 == q0)
- {
- remove_all_abort();
- _add_abort_method(17167);
- process_abort();
- }
- if (1 == q1)
- {
- q2 = _ivar_value(16529);
- if (2 == q2)
- q2 = -1;
- q2 = q2 * (-2 * _ivar_value(16508) + 1);
- if (0 == 0)
- {
- if (_ivar_value(171) == 0)
- {
- if (2 == _ivar_value(16529))
- {
- qa = 0.0;
- }
- else
- {
- qa = 1.0;
- }
- _fassign(16640,qa);
- send_trans(130,77,S);
- }
- local_inst_mode = 1;
- save_values();
- send_trans(130,6,S);
- }
- }
- if (_ivar_value(171) == 0)
- {
- if (1 == q1)
- {
- q1 = 2;
- _fassign(16405,qa * 100.0);
- save_values();
- send_trans(130,4,S);
- }
- if (1 == _ivar_value(16464))
- {
- ACKNOWLEDGE(literal_string(2353));
- }
- else
- {
- ACKNOWLEDGE(literal_string(2354));
- }
- }
- else
- {
- if (1 == _ivar_value(16464))
- {
- if (q2 < 0)
- {
- ACKNOWLEDGE(literal_string(2355));
- }
- else
- {
- ACKNOWLEDGE(literal_string(2356));
- }
- }
- else
- {
- if (q2 < 0)
- {
- ACKNOWLEDGE(literal_string(2357));
- }
- else
- {
- ACKNOWLEDGE(literal_string(2356));
- }
- }
- }
- send(138,S);
- }
- if (0 == 0)
- {
- local_inst_mode = 0;
- save_values();
- send_trans(130,6,S);
- send_trans(129,0,S);
- }
- ;
- if ((_ivar_value(16496) & 0x01) > 0)
- {
- if (_ivar_value(171) == 0)
- {
- ACKNOWLEDGE(literal_string(2228));
- process_abort();
- }
- else
- {
- send(3,S);
- if (3 == _ivar_value(16496))
- {
- while (_fvar_value(237) > 9.0)
- {
- if (select_from_list(literal_string(2286),ids,literal_string(2287)))
- {
- process_abort();
- }
- send(3,S);
- }
- }
- if (1 == _ivar_value(16496))
- {
- while (_fvar_value(237) < 15.0)
- {
- if (select_from_list(literal_string(2286),ids,literal_string(2287)))
- {
- process_abort();
- }
- send(3,S);
- }
- }
- }
- }
- else
- {
- send(138,S);
- if (_ivar_value(171) > 0)
- {
- send(3,S);
- while (_fvar_value(237) < 3.8)
- {
- if (select_from_list(literal_string(2288),ids,literal_string(2287)))
- {
- process_abort();
- }
- send(3,S);
- }
- }
- ;
- }
- ;
- 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,29,S);
- send_trans(129,62,S);
- send_trans(129,35,S);
- send_trans(129,18,S);
- q03 = local_var_117;
- q04 = act_style;
- qb4 = supply_press;
- qe7 = _fvar_value(16585);
- if (_ivar_value(16508) == 0 && _ivar_value(16529) == 1 || _ivar_value(16508) == 1 && _ivar_value(16529) == 2)
- {
- q01 = 1;
- }
- else
- if (_ivar_value(16508) == 0 && _ivar_value(16529) == 2 || _ivar_value(16508) == 1 && _ivar_value(16529) == 1)
- {
- q01 = 2;
- }
- else
- {
- q01 = 0;
- }
- q02 = 0;
- if ((_ivar_value(16530) & 0x01) == 0 && (_ivar_value(16532) & 0x01) == 0 && q01 == 1)
- {
- q02 = 1;
- }
- else
- if ((_ivar_value(16530) & 0x01) == 0 && (_ivar_value(16532) & 0x01) == 0 && q01 == 2)
- {
- q02 = 2;
- }
- else
- if ((_ivar_value(16530) & 0x01) == 0 && (_ivar_value(16532) & 0x01) == 1 && q01 == 1)
- {
- q02 = 3;
- }
- else
- if ((_ivar_value(16530) & 0x01) == 0 && (_ivar_value(16532) & 0x01) == 1 && q01 == 2)
- {
- q02 = 4;
- }
- else
- if ((_ivar_value(16530) & 0x01) == 1 && q01 == 1)
- {
- q02 = 5;
- }
- else
- if ((_ivar_value(16530) & 0x01) == 1 && q01 == 2)
- {
- q02 = 6;
- }
- if (q02 == 0)
- {
- ACKNOWLEDGE(literal_string(2498));
Please login for more