FB_BACnetSchedB1201

BACnet scheduler of output type BOOL

FB_BACnetSchedB1201 1:

Functional description

This function block generates a BACnet scheduler object and provides write and read variables for the object within the PLC. The output type of the object is BOOL.

The object is parameterized either from BACnet or via comment lines in the PLC declaration part.

Inputs/outputs

VAR_OUTPUT

bPrVal     : BOOL;
bStaOoServ : BOOL;
bStaFlt    : BOOL;
dwObjId    : DWORD;
bErr       : BOOL;
udiErrId   : UDINT;
udiErrArg  : UDINT;

bPrVal: output value of the schedule depending on the currently selected date/time and the schedule entries.

bStaOvrrd: indicates the state of the status flag "Overridden" of the binary value object.

bStaFlt: indicates the state of the status flag "Fault" of the binary value object.

dwObjId: BACnet object ID of the binary value object.

bErr: indicates a general error in the function block. The cause can be in BACnet, in the ADS data exchange, or due to incorrect parameterization.

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

VAR_IN_OUT

stComnMsg : ST_BA_ComnMsg;
fbDvc     : FB_BACnet_Device;

stComnMsg: reference to the connection structure for the collective message function block FB_BA_ComMsg.

fbDvc: reference to the function block of the BACnet device object

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