FB_BA_RampLmt

The function block FB_BA_RampLmt limits the increase or decrease speed of an input signal.
When fIn rises, the output fOut is limited to the slope of (fHi-fLo)/nTiUp.
When fIn falls, the output fOut is limited to the slope of (fHi-fLo)/nTiDwn.

Syntax
FUNCTION_BLOCK FB_BA_RampLmt
VAR_INPUT
  bEn            : REAL;
  fIn            : REAL;
  bSync          : BOOL;
  fSync          : REAL;
  fHi            : REAL;
  fLo            : REAL;
  nTiUp          : UDINT;
  nTiDwn         : UDINT;
END_VAR
VAR_OUTPUT
  fOut           : REAL;
END_VAR Inputs
 Inputs
| Name | Type | Description | 
|---|---|---|
| bEn | BOOL | Enable function block if FALSE, then fOut = 0.0. | 
| bEnRamp | BOOL | Enable ramp limitation, if FALSE, then fOut = fIn. | 
| fIn | REAL | Input value of the ramp function | 
| fHi | REAL | Upper interpolation point for calculating the ramps | 
| fLo | REAL | Lower interpolation point for calculating the ramps. fHi must be greater than fLo, otherwise an error is output! | 
| nTiUp | UDINT | Rise time [s] | 
| nTiDwn | UDINT | Fall time [s] | 
Requirements
| Development environment | Required PLC library | 
|---|---|
| TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 | 
 Outputs
 Outputs