FB_BACnetAVSetpoint

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

FB_BACnetAVSetpoint 1:

Functional description

This function block generates a BACnet analog 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 from the PLC via ADS and into the PLC via a cyclic interface.
The value of rForceVal is written once to the Present Value of the AV object on each rising edge at bForce.

PLC variable

Comment

BACnet-Property (Property ID)

bForce

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

 

rForceVal

Value to be written to the BACnet property Present Value

Present Value (85)

Inputs/outputs

VAR_INPUT

bForce    : BOOL;
rForceVal : REAL;

bForce: The value of rForceVal is written once to the Present Value of the AV object on each rising edge at bForce.

rForceVal: Value that is written to the BACnet property Present Value.

VAR_OUTPUT

rPrVal      : REAL;
bErrs       : BOOL;
udiErrId    : UDINT;
udiErrArg   : UDINT;

rPrVal: 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