FB_BA_FixedLimitCtrl
Function block for monitoring a fixed limit value.
The input bEn is used for enabling the function block.
A tolerance range is defined around the value rIn to be monitored.
The tolerance range results from an upper limit value rInHighLimit and a lower limit value rInLowLimit.
If the value rIn exceeds the upper limit value of the tolerance range, then the output bHighLimit becomes TRUE. A response delay of the output bHighLimit must be parameterized with the timer udiDelay_sec.
If the value rIn falls below the lower limit of the tolerance range, output bLowLimit becomes TRUE. A response delay of the output bLowLimit must be parameterized with the timer udiDelay_sec.
VAR_INPUT
bEn : BOOL;
rHighLimit : REAL := 32;
rLowLimit : REAL := 16;
rIn : REAL;
udiDelay_sec : UDINT;
bEn: Function block enable.
rHighLimit: Default upper limit value, preset to 32.
rLowLimit: Default lower limit value, preset to 16.
rIn: Input value to be monitored.
udiDelay_sec: Output response delay [s]. Internally limited to values between 0 and Const.udiTiSec.
VAR_OUTPUT
bHighLimit : BOOL;
bLowLimit : BOOL;
udiRemTiDelay_sec : UDINT;
bHighLimit: Upper limit value reached.
bLowLimit: Lower limit value reached.
udiRemTiDelay_sec: Time remaining after a limit value has been exceeded until either the output bHighLimit or bLowLimit responds.
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.7 | Tc3_BA from v1.1.6.0 |