Loading…

Method Name: ejx_method_set_burst_trigger_sub

Method ID: 0x423A

Method Label:

Method Help:


  • {
  • int tmp_msg_num;
  • char status[3];
  • float tmp_burst_trigger_level;
  • int tmp_choice;
  • long var_id[5];
  • unsigned int tmp_burst_trigger_mode1[5];
  • unsigned int tmp_burst_trigger_mode2[2];
  • unsigned int tmp_class;
  • unsigned int tmp_unit;
  • unsigned int tmp_mode;
  • unsigned int tmp_cmd_no;
  • unsigned int tmp_var_code;
  • char disp_string1[60];
  • int slen1;
  • unsigned int tmp_dev_code;
  • unsigned int tmp_class_dev_var[5];
  • unsigned int tmp_unit_dev_var[5];
  • char tmp_disp_dev_var_fl[60];
  • char tmp_disp_dev_var_dp[60];
  • char tmp_disp_dev_var_sp[60];
  • char tmp_disp_dev_var_et[60];
  • char tmp_disp_dev_var_tf[60];
  • tmp_msg_num = n_burst_msg;
  • slen1 = 60;
  • tmp_burst_trigger_mode1[0] = 0;
  • tmp_burst_trigger_mode1[1] = 1;
  • tmp_burst_trigger_mode1[2] = 2;
  • tmp_burst_trigger_mode1[3] = 3;
  • tmp_burst_trigger_mode1[4] = 4;
  • tmp_burst_trigger_mode2[0] = 0;
  • tmp_burst_trigger_mode2[1] = 4;
  • tmp_class_dev_var[0] = 72;
  • if (_ivar_value(8059) < 70 || _ivar_value(8059) > 88)
  • {
  • tmp_class_dev_var[0] = 66;
  • }
  • tmp_class_dev_var[1] = 65;
  • tmp_class_dev_var[2] = 65;
  • tmp_class_dev_var[3] = 64;
  • tmp_class_dev_var[4] = 71;
  • if ((_ivar_value(16494) < 60 || _ivar_value(16494) > 65) && _ivar_value(16494) != 125)
  • {
  • tmp_class_dev_var[4] = 68;
  • }
  • tmp_unit_dev_var[0] = flow_units;
  • tmp_unit_dev_var[1] = pressure_units;
  • tmp_unit_dev_var[2] = static_pressure_units;
  • tmp_unit_dev_var[3] = et_units;
  • tmp_unit_dev_var[4] = total_flow_units;
  • _get_dictionary_string(18481162,disp_string1,slen1);
  • if (_ivar_value(8059) < 70 || _ivar_value(8059) > 88)
  • {
  • _get_dictionary_string(18481167,disp_string1,slen1);
  • }
  • tmp_disp_dev_var_fl = strtrim(disp_string1);
  • _get_dictionary_string(18481170,disp_string1,slen1);
  • tmp_disp_dev_var_dp = strtrim(disp_string1);
  • _get_dictionary_string(19267599,disp_string1,slen1);
  • tmp_disp_dev_var_sp = strtrim(disp_string1);
  • _get_dictionary_string(18481163,disp_string1,slen1);
  • tmp_disp_dev_var_et = strtrim(disp_string1);
  • _get_dictionary_string(18481164,disp_string1,slen1);
  • if ((_ivar_value(16494) < 60 || _ivar_value(16494) > 65) && _ivar_value(16494) != 125)
  • {
  • _get_dictionary_string(18481173,disp_string1,slen1);
  • }
  • tmp_disp_dev_var_tf = strtrim(disp_string1);
  • tmp_dev_code = _ivar_value(4048);
  • tmp_class = tmp_class_dev_var[tmp_dev_code];
  • tmp_unit = tmp_unit_dev_var[tmp_dev_code];
  • switch (tmp_dev_code)
  • {


Please login for more