FB_BA_RampLimitIncrease

FB_BA_RampLimitIncrease 1:

The template implements a rising ramp limitation from 0 to 100 and remains at this value.

The ramp limitation is triggered by a rising edge at the bTrig input and is timed by TiUp.

FB_BA_RampLimitIncrease 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_RampLimitIncrease 3:

Syntax

FUNCTION_BLOCK FB_BA_RampLimitIncrease EXTENDS FB_BA_View
VAR_INPUT
  bEn         : BOOL;
  bTrig       : BOOL;
END_VAR
VAR_OUTPUT
  fY          : REAL;
END_VAR
VAR_INPUT CONSTANT
  TiUp        : FB_BA_AV_Op;
  Y           : FB_BA_AV_Op;
END_VAR
VAR
  RampFnct    : FB_BA_RampLmt;
  rtrigSync   : R_TRIG;
END_VAR

FB_BA_RampLimitIncrease 4: Inputs

Name

Type

Description

bEn

BOOL

General enable of the template.

bTrig

BOOL

The ramp limitation is activated by a rising edge at this input.

FB_BA_RampLimitIncrease 5: Outputs

Name

Type

Description

fY

REAL

Output of the ramp limiting value.

FB_BA_RampLimitIncrease 6: Inputs CONSTANT

Name

Type

Description

TiUp

FB_BA_AV_Op

AV object for entering the time for the ramp limitation to rise.

Y

FB_BA_AV_Op

AV object for displaying the ramp limitation value.

Variables

Name

Type

Description

RampFnct

FB_BA_RampLmt

The function block for the output of a ramp limitation is the core of this template.

rtrigSync

R_TRIG

The function block triggers a rising edge and activates the ramp limitation.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0