FB_BACnetMVSetpoint

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

FB_BACnetMVSetpoint 1:

Functional description

This function block generates a BACnet multistate 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 udiForceVal is written once to the Present Value of the MV object on each rising edge at bForce.

PLC variable

Comment

BACnet-Property (Property ID)

bForce

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

 

udiForceVal

Value to be written to the BACnet property Present Value

Present Value (85)

Inputs/outputs

VAR_INPUT

bForce      : BOOL;
udiForceVal : UDINT;

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

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

VAR_OUTPUT

udiPrVal      : UDINT;
bErr          : BOOL;
udiErrId      : UDINT;
udiErrArg     : UDINT;

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