FB_BACnetCAL1201
BACnet calendar
Functional description
This function block generates a BACnet calendar object and provides write and read variables for the object within the PLC.
The object is parameterized either from BACnet or via comment lines in the PLC declaration part.
Inputs/outputs
VAR_OUTPUT
bPrVal : BOOL;
dwObjId : DWORD;
bErr : BOOL;
udiErrId : UDINT;
udiErrArg : UDINT;
bPrVal: TRUE at this output indicates that the current date is within the parameterized periods.
dwObjId: BACnet object ID of the calendar 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 |