Loading…

方法名称: met_edit_L_max

方法ID: 0x40A3

方法标签: Change L max

方法描述: L max is a Maximal Distance, taken into Account for Distance Measuring


  • {
  • DD_STRING varName;
  • DD_STRING varUnit;
  • unsigned short mbadr;
  • unsigned short temp_short;
  • float temp_float;
  • float oldValue;
  • float newValue;
  • float requestedValue;
  • varName = literal_string(218);
  • varUnit = literal_string(561);
  • mbadr = 1604;
  • oldValue = met_mo_get(mbadr) / 100.0;
  • requestedValue = oldValue;
  • _get_local_var_value(literal_string(562),0,literal_string(556));
  • temp_short = requestedValue * 100.0 + 0.5;
  • temp_float = met_mo_set(mbadr,temp_short);
  • newValue = temp_float / 100.0;


请登录以获得完整内容