You really just need simple maths to always output 0 - 100. I personally would do it in Simpl+, but you could achieve the same with sums/divmods etc. Simpl+ would like like:
?
ANALOG_INPUT RangeMin;
ANALOG_INPUT RangeMax;
ANALOG_INPUT Level;
ANALOG_OUTPUT Level_FB;
?
EVENT
{
? ? Level_FB = ((Level - RangeMin) * 100) / (RangeMax - RangeMin);
}
?
That way whenever any of the inputs change the Level_FB will always output 0- 100.