Loading…
Loading…
Method Name: met_edit_L_max
Method ID: 0x40A3
Method Label: Change L max
Method Help: 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;
Please login for more