FB_BA_BrtnsHysDly

Brightness threshold switch

FB_BA_BrtnsHysDly 1:

Functional description

This function block represents a threshold switch for brightness. The switch-on and switch-off behaviour can additionally be delayed.

Inputs/outputs

VAR_INPUT

lrBrtns     : LREAL;
lrOnVal     : LREAL;
lrOffVal    : LREAL;
udiOnDly    : UDINT;
udiOffDly   : UDINT;

lrBrtns: outdoor brightness [lx]

lrOnVal: switch-on threshold value [lx]. This must be larger than the switch-off threshold value usiOffValue.

lrOffVal: switch-off threshold value [lx]. This must be smaller than the switch-on threshold value usiOnValue.

udiOnDly: start-up delay [s]

udiOffDly: switch-off delay [s]

VAR_OUTPUT

bOut      : BOOL;
bErr      : BOOL;
udiErrId  : UDINT;
udiErrArg : UDINT;

bOut: Binary delayed output of the threshold switch.

bErr: This output is switched to TRUE if the parameters entered are erroneous.

udiErrId / udiErrArg: Contains the error number and the error argument. See Error codes.

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