FB_BA_RampLmt

FB_BA_RampLmt 1:

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.

FB_BA_RampLmt 2:

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

FB_BA_RampLmt 3: 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]

FB_BA_RampLmt 4: Outputs

Name

Type

Description

fOut

REAL

Output signal, slope-limited through the ramps.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0