FB_BA_RampLimitDecrease
The template implements a falling ramp limitation from 100 to 0 and remains at this value.
Ramp limitation is triggered by a rising edge at the input bTrig and specified in terms of time by TiDown.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_RampLimitDecrease EXTENDS FB_BA_View
VAR_INPUT
bEn : BOOL;
bTrig : BOOL;
END_VAR
VAR_OUTPUT
fY : REAL;
END_VAR
VAR_INPUT CONSTANT
TiDown : FB_BA_AV_Op;
Y : FB_BA_AV_Op;
END_VAR
VAR
RampFnct : FB_BA_RampLmt;
rtrigSync : R_TRIG;
END_VAR
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. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
TiDown | AV object for entering the fall time of the ramp limitation. | |
Y | AV object for displaying the ramp limitation value. |
Variables
Name | Type | Description |
---|---|---|
RampFnct | 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 |