Loading…
Loading…
Method Name: actuator_selection_method
Method ID: 0x4325
Method Label: Actuator Selection
Method Help:
- {
- int q;
- char S[3];
- long act_mfg;
- int act_model;
- int act_size;
- _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(15,S);
- if (_ivar_value(167) == 1)
- {
- ACKNOWLEDGE(literal_string(2377));
- }
- else
- {
- send_trans(164,4,S);
- if (0 == _ivar_value(16861))
- {
- spec_actuator_manufacturer = 0x005100;
- spec_actuator_model = 14;
- spec_actuator_size = 27;
- }
- else
- if (0 == _ivar_value(16862))
- {
- spec_actuator_model = 0xFFFF;
- spec_actuator_size = 0xFFFF;
- }
- else
- if (0 == _ivar_value(16863))
- {
- spec_actuator_size = 0xFFFF;
- }
- save_values();
- act_mfg = _ivar_value(16861);
- act_model = _ivar_value(16862);
- _vassign(17108,16861);
- _vassign(17109,16862);
- _vassign(17112,16863);
- save_values();
- _get_dev_var_value(literal_string(1237),0,17108);
- save_values();
- if (act_mfg != _ivar_value(17108))
- {
- act_mfg = _ivar_value(17108);
- switch (act_mfg)
Please login for more