Loading…

方法名称: actuator_selection_method

方法ID: 0x4325

方法标签: Actuator Selection

方法描述:


  • {
  • 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)


请登录以获得完整内容