Loading…

方法名称: m_set_predefined_curve_method

方法ID: 0x4075

方法标签: Init Table with Predefined Curves

方法描述: Send one of the predefined flow modification curves to the device. You must set Modification Type to 'Custom Table' to use this curve. You can select 1) Linear Curve 2)1/25 Curve 3)Quick 1/25 Curve 4)1/33 Curve 5)Quick 1/33 Curve 6)1/50 Curve 7) Quick 1/50 Curve


  • {
  • char status[3];
  • float temp;
  • float percentage;
  • int curve_select;
  • int index;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _fassign(19463,0.000);
  • _fassign(19483,1.000);
  • curve_select = SELECT_FROM_LIST(literal_string(1173),literal_string(1174));
  • switch (curve_select)
  • {
  • case 0:
  • percentage = 0.0;
  • _fassign(resolve_array_ref(16508,1),percentage);
  • for (index = 2; index < 22; index++)
  • {
  • percentage = (index - 1) * 5;
  • _fassign(resolve_array_ref(16508,index),percentage);
  • }
  • save_values();
  • break;
  • case 1:
  • _fassign(resolve_array_ref(16508,1),0);
  • _fassign(resolve_array_ref(16508,2),0.07);
  • _fassign(resolve_array_ref(16508,3),1.5);
  • _fassign(resolve_array_ref(16508,4),2.5);
  • _fassign(resolve_array_ref(16508,5),3.6);
  • _fassign(resolve_array_ref(16508,6),4.9);
  • _fassign(resolve_array_ref(16508,7),6.5);


请登录以获得完整内容