FB_BACnetBVSetpoint

BACnet binary value object that maps the BACnet property Present Value in the PLC.

FB_BACnetBVSetpoint 1:

Functional description

This function block generates a BACnet binary value object and provides write and read variables for the object within the PLC.
Alternatively, the following versions are available:

The parameters, which can be written from the PLC, can also be written from the BACnet side; the last change is always the valid one. These parameters are transferred out of the PLC via ADS and into the PLC via cyclic interface.
With each rising edge at bForce the value of rForceVal is written once to the Present Value of the BV object.

PLC variable

Comment

BACnet-Property (Property ID)

bForce

The value of bForceVal is written once to the Present Value of the BV object on each rising edge at bForce.

 

bForceVal

Value to be written to the BACnet property Present Value

Present Value (85)

Inputs/outputs

VAR_INPUT

bForce    : BOOL;
bForceVal : BOOL;

bForce: the value of bForceVal is written once to the Present Value of the BV object on each rising edge at bForce.

bForceVal: value that is written to the BACnet property Present Value.

VAR_OUTPUT

bPrVal      : BOOL;
bErrs       : BOOL;
udiErrId    : UDINT;
udiErrArg   : UDINT;

bPrVal: current value of the BACnet property Present Value – read directly from the BACnet

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