FB_BACnetSchedR1201
BACnet scheduler of output type REAL
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 REAL.
The object is parameterized either from BACnet or via comment lines in the PLC declaration part.
Inputs/outputs
VAR_OUTPUT
rPrVal : REAL;
bStaOoServ : BOOL;
bStaFlt : BOOL;
dwObjId : DWORD;
bErr : BOOL;
udiErrId : UDINT;
udiErrArg : UDINT;
rPrVal: 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 |