FB_BA_FixedLimitCtrl
![FB_BA_FixedLimitCtrl 1:](Images/gif/9275560203__Web.gif)
This function block FB_BA_FixedLimitCtrl is used to monitor a fixed value.
A tolerance range is defined around the value fIn to be monitored.
The tolerance range results from an upper limit fHighLimit and a lower limit fLowLimit.
If the value fIn exceeds the upper limit value of the tolerance range, then the output bHighLimit is set. A response delay of the output bHighLimit can be parameterized with the time variable nDelay.
If the value fIn falls below the lower limit value of the tolerance range, then the output bLowLimit is set. A response delay of the output bLowLimit can be parameterized with the time variable nDelay.
If fLowLimit > fHighLimit, then internally fLowLimit is corrected to fHighLimit.
Inputs
VAR_INPUT
bEn : BOOL;
fHighLimit : REAL := 32;
fLowLimit : REAL := 16;
fIn : REAL;
nDelay : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bEn | BOOL | General enable of the function block. If bEn is FALSE, the message outputs bHighLimit and bLowLimit are also FALSE. |
fHighLimit | REAL | Default upper limit. |
fLowLimit | REAL | Default lower limit. |
fIn | REAL | Input value to be monitored. |
nDelay | UDINT | Response delay [s] of the outputs bHighLimit/bLowLimit. |
Outputs
VAR_OUTPUT
bHighLimit : BOOL;
bLowLimit : BOOL;
nRemTiDelay : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bHighLimit | BOOL | Upper limit value reached. |
bLowLimit | BOOL | Lower limit value reached. |
nRemTiDelay | UDINT | Remaining time after exceeding a limit value until one of the outputs bHighLimit or bLowLimit is set. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |