FB_BA_StpDly
This function block is used for delayed output of switching stages.
Functional description
The function is enabled via the input bEn. If this is the case, the number present at input udiValI is output at udiValQ with a delay. If the number at the input is greater than one at the output, the output is delayed by udiDlyStpUp [s], if it is smaller, the delay is udiDlyStpDwn.
If the number at the output continues to increase while the timer counts up, the timer is NOT restarted. The same applies for a countdown. The respective switching cycle is regarded as complete, if the corresponding countdown has elapsed, or if during the countdown the same number occurs at the input (again) as at the output. |
If bEn is FALSE, the input value udiValI is output without delay to udiValQ.
Inputs/outputs
VAR_INPUT
bEn : BOOL;
udiValI : UDINT;
udiDlyStpUp : UDINT;
udiDlyStpDwn : UDINT;
bEn: a TRUE signal at this input activates the function block. The value at input udiVall is only output with a delay at udiValQ. If bEn is FALSE, the input value udiValI is output without delay.
udiValI: input value
udiDlyStpUp: delay time for up-switching [s]
udiDlyStpDwn: delay time for down-switching [s]
VAR_OUTPUT
udiValQ : UDINT;
udiRemTiDlyUp : UDINT;
udiRemTiDlyDwn : UDINT;
udiValQ: output value.
udiRemTiDlyUp: countdown to up-switching [s]
udiRemTiDlyDwn: countdown to down-switching [s]
Requirements
Development environment | Target system | required library | required supplement |
---|---|---|---|
TwinCAT 2.11 R3/x64 | PC/CX | TcBA library from V1.0.0 | TS8040 | TwinCAT Building Automation from V1.0.0 |