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