Loading…

方法名称: HART_7_burst_method

方法ID: 0x4781

方法标签: View/Edit Burst Messages

方法描述:


  • {
  • int q, q1, q5, q6;
  • char S[3];
  • long ids[15];
  • unsigned long m_update_period;
  • int m_vars[8],
  • m_mode,
  • m_burst_cmd,
  • m_trigger_mode,
  • m_classification,
  • m_units,
  • m_period,
  • m_max_period,
  • m_update_103,
  • m_update_104,
  • m_update_107;
  • float m_trigger_lvl;
  • _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("|en|The DD revision is not compatible with the firmware in the device.\nContact your Fisher sales office for an upgrade to your DD."); return; };
  • do
  • {
  • q6 = SELECT_FROM_LIST("|en|Select Burst Message Number","|en|Message 0;Message 1;Message 2;Exit");
  • if(q6 != 3)
  • {
  • _iassign(18221,(q6));
  • save_values();
  • ids[0] = resolve_record_ref(resolve_array_ref(18222,q6),4385);
  • ids[1] = resolve_record_ref(resolve_array_ref(18222,q6),4381);
  • ids[2] = resolve_record_ref(resolve_array_ref(18222,q6),4394);
  • ids[3] = resolve_record_ref(resolve_array_ref(18222,q6),4383);
  • ids[4] = resolve_record_ref(resolve_array_ref(18222,q6),4384);
  • ids[5] = resolve_record_ref(resolve_array_ref(18222,q6),4397);
  • ids[6] = resolve_record_ref(resolve_array_ref(18222,q6),4396);
  • ids[7] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),0);
  • ids[8] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),1);
  • ids[9] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),2);
  • ids[10] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),3);
  • ids[11] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),4);
  • ids[12] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),5);
  • ids[13] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),6);
  • ids[14] = resolve_array_ref(resolve_array_ref(18223,compat_burst_message_number),7);
  • do
  • {
  • q5 = SELECT_FROM_LIST("|en|Do you wish to view, edit, or exit burst message %{q6} configuration","|en|View;Edit;Exit");
  • if(q5 == 1)
  • {
  • _iassign(16969,(_ivar_value(resolve_record_ref(resolve_array_ref(18222,q6),4381))));
  • _get_dev_var_value(("|en|Burst Cmd"),0,16969);
  • m_burst_cmd = _ivar_value(16969);
  • save_values();
  • DELAY(1,"|en|Please wait...");
  • switch (m_burst_cmd)
  • {
  • case 1:
  • m_classification = _ivar_value(17780);
  • m_units = _ivar_value(16426);
  • break;
  • case 2:
  • m_classification = 0;
  • m_units = 57;
  • break;
  • case 3:
  • m_vars[0] = _ivar_value(4048);
  • m_vars[1] = _ivar_value(4049);


请登录以获得完整内容