BACnet Library Documentation

Company

3S - Smart Software Solutions GmbH

Title

BACnet

Version

1.6.1.0

Categories

Intern|BACnet

Namespace

BACnet

Author

3S - Smart Software Solutions GmbH

Placeholder

BACnet

Description 1

The BACnet library is the connection between BACnet devices inserted in the device tree, to the CmpBACnet library, which then communicates the BACnet configuration and dynamics to the component on the runtime system.

An introduction of BACnet can be found at http://www.bacnet.org . There is a tutorial at http://www.bacnet.org/Tutorial/HMN-Overview/sld001.htm and a tutorial covering BACnet IP http://www.bacnet.org/Tutorial/BACnetIP/index.html .

The CODESYS BACnet package includes extensive examples covering lots of practical aspects using CODESYS BACnet in applications.

Since this library is intended to be easy usable and is not confined to specialized runtime component functionalities, the BACnet library should be always used instead of directly accessing the runtime component via the CmpBACnet library.

compile options to enable specific logging

The BACnet library provides complex functionality. Bringup of a BACnet application might involve detailed analysis of actions and their ordering. Debugging is not always the best option to do this, because the actions will happen in a callback (which is not a valid breakpoint location) or would simply interfere with timeouts. So there are compile options to enable specific logging for such analysis.

BACnetLogErrors - enables logging for error conditions. In case a function or function block method returns an error more information regarding the error conditions are logged.

BACnetLogInitialization - enables logging for initialization actions of BACnet objects, their properties and releated function block instances.

BACNetLogCreateDeleteObjects - enables logging for creation and deletion of BACnet objects.

BACnetLogClientCreateDeleteObjects - enables logging for creation and deletion of BACnet objects triggered by client requests.

BACnetLogStartStopServer - enables logging for actions during start / stop of the BACnet server.

BACnetLogRegisterEvents - enables logging of event callback registration and deregistration.

BACnetLogEventCallbacks - enables logging of event callback execution.

BACnetLogBACnetHooksCallbacksRegister - enables logging of BACstack hook / callback registration and deregistration of IBACnetEventConsumer’s.

BACnetLogBACnetHooksCallbacks - enables logging of BACstack hook / callback dispatching to IBACnetEventConsumer’s.

BACnetLogBACnetEventCallbacks - enables logging of BACstack hook / callback executions of IBACnetEventConsumer’s BACnetEventCallback method.

BACnetLogPlugins - enables logging of BACnetServer plugin registration and deregistration.

other compile options

BACnetUnprotectedBACnetEventCallbacks - __TRY/__CATCH is eventually not supported for a certain combination of PLC/compiler. Compiling with BACnetUnprotectedBACnetEventCallbacks could be used in this case to fall back to unprotected callbacks. Faulty code in the callback handler will terminate the PLC instead throwing exceptions, so YOU !!! need to ensure there is NO faulty code in the callback handler !!!

CODESYS BACnet library - detailed information

Contents:

Indices and tables

1
Based on BACnet.library, last modified 23.08.2021, 11:37:37. LibDoc 4.0.0.0
The content file BACnet.clean.json was generated with CODESYS V3.5 SP16 Patch 1 on 23.08.2021, 11:37:38.