Loading…
Loading…
方法名称: relay_adjust_method
方法ID: 0x4332
方法标签: Relay Adjust
方法描述:
- {
- 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 c;
- int i;
- long ids[2];
- _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;
- }
- ;
- 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));
- }
- ;
- c = 1;
- send_trans(129,35,S);
- if (1 - SELECT_FROM_LIST(literal_string(2454),literal_string(2226)))
- {
- while ((_ivar_value(16530) & 0x01) > 0 && (_ivar_value(16532) & 0x1B) > 0)
- {
- ACKNOWLEDGE(literal_string(2455));
- _get_dev_var_value(literal_string(383),0,16530);
- _get_dev_var_value(literal_string(389),0,16533);
- _vassign(16532,16533);
- if (!((_ivar_value(16530) & 0x01) > 0 && (_ivar_value(16532) & 0x1B) > 0))
- {
- send_trans(130,97,S);
- if ((_ivar_value(16465) & 0x0100) == 0x0100)
- {
- PST_enable = 1;
- end_point_control_enab = 0;
- send_trans(130,102,S);
- }
- }
- }
- 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);
- if (0x7FA00000 == _lvar_value(16940))
- i = 0x01;
- if (0x7FA00000 == _lvar_value(16938))
- i = i | 0x02;
- if (0x7FA00000 == _lvar_value(16939))
- i = i | 0x04;
- var_103u = q;
- send_trans(130,134,S);
- if ((i & 0x01) > 0 && (_ivar_value(16465) & 0x0200) == 0x0200)
- {
- ACKNOWLEDGE(literal_string(2343));
- }
- if ((i & 0x02) > 0)
- {
- ACKNOWLEDGE(literal_string(2344));
- }
- if ((i & 0x04) > 0)
- {
- ACKNOWLEDGE(literal_string(2345));
- }
- }
- switch (_ivar_value(16434))
- {
- case 7:
- if ((_ivar_value(16532) & 0x18) > 0)
- qb = 2.41;
请登录以获得完整内容