FB_BA_RampLimitIncrease
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.
The initialization of the template takes place within the method FB_Init. |
Block diagram
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
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 |
---|---|---|
TiUp | AV object for entering the time for the ramp limitation to rise. | |
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 |