FB_BACnetSchedBinPV

BACnet scheduler of the type Binary Present Value with the function "predictive switch-on and switch-off time".

FB_BACnetSchedBinPV 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_INPUT

udiPredictTime : UDINT;    

udiPredictTime: predicted switch-on and switch-off time in seconds. The time value specified here switches the output bPredictedVal on or off in advance, depending on the timer channels of the BACnet property WeeklySchedule.

VAR_OUTPUT

bPrVal         : BOOL;
bPredictedVal  : BOOL;
bErr           : BOOL;
udiErrId       : UDINT;
udiErrArg      : UDINT;

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

bPredictedVal: output that is switched depending on the switch-on and switch-off time udiPredictTime and the BACnet property WeeklySchedule.

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

fbDvc     : FB_BACnet_Device;

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