
Upon the occurrence of an event at the
REQ
input, an instance of this Function Block type converts a scaled
UINT
input value in the range
{0..100}
percent to a corresponding unscaled
INT
value in the range
{MIN..MAX}
according to the Java™ statement below, and then issues an
event at the
CNF
output.
OUT.value =
(short)(MIN.value+(MAX.value-MIN.value)*Math.max(0,Math.min(100,IN.value))/100);