FB_BA_RampLmt

FB_BA_RampLmt 1:

The function block limits the increase or decrease speed of an input signal.
An increase of rIn results in the output rOut to be limited to the slope of (rHi-rLo)/udiTiUp.
A decrease of rIn results in the output rOut to be limited to the slope of (rHi-rLo)/udiTiUp.

FB_BA_RampLmt 2:

VAR_INPUT

bEn            : BOOL;
bEnRamp        : BOOL;
rIn            : REAL;
rHi            : REAL;
rLo            : REAL;
udiTiUp_sec    : UDINT;
udiTiDwn_sec   : UDINT;

bEn: Enable function block if FALSE, in which case rOut = 0.0.

bEnRamp: Enable ramp limitation if FALSE, in which case rOut = rIn.

rIn: Input value of the ramp function

rHi: Upper interpolation point for calculating the ramps.

rLo: Lower interpolation point for calculating the ramps. rHi must be greater than rLo, otherwise an error is output!

udiTiUp_sec: Rise time [s].

udiTiDwn_sec: Fall time [s]

VAR_OUTPUT

rOut    : REAL;

rOut: Output signal, slope-limited through the ramps

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0