Loading…
Loading…
方法名称: highcv_press_tuning
方法ID: 0x45FC
方法标签: Pressure Tuning Set
方法描述: Select the Tuning Set. Tuning Set M provides the fastest response and C provides the slowest response. Expert allows users to adjust Pressure Proportional Gain, Pressure Integral Gain, and Pressure MLFB gain.
- {
- 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];
- long ids[4];
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_resp_code(8,0);
- if ((_ivar_value(16532) & 0x18) > 0)
- {
- ACKNOWLEDGE(literal_string(2300));
- process_abort();
- }
- ;
- send_trans(129,60,S);
- if ((_ivar_value(16532) & 0x18) > 0 == 0)
- {
- ACKNOWLEDGE(literal_string(2301));
- process_abort();
- }
- if (_ivar_value(16427))
- {
- ids[0] = 17856;
- acknowledge(literal_string(2258),ids);
- ACKNOWLEDGE(literal_string(2302));
- }
- else
- {
- 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));
- _get_dev_var_value(literal_string(2304),0,17856);
- _get_dev_var_value(literal_string(2303),0,17855);
- save_values();
- DELAY(1,literal_string(2305));
- local_flags = _ivar_value(17857) | 0x01;
- if ((_ivar_value(16532) & 0x18) > 0 & (_ivar_value(17857) & 0x01) > 0)
- {
- switch (_ivar_value(16434))
- {
- case 6:
- mpp = _fvar_value(16947);
- break;
- case 12:
请登录以获得完整内容