UpperLimit THEN LimitValueINT := UpperLimit; (* If input is above upper limit, set output to upper limit *) ELSIF Input < LowerLimit THEN LimitValueINT := LowerLimit; (* If input is below lower limit, set output to lower limit *) ELSE LimitValueINT := Input; (* If input is within limits, pass it through *) END_IF;]]>