IEC_BACNET_TEMPLATE_DEVICE (STRUCT)

TYPE IEC_BACNET_TEMPLATE_DEVICE : STRUCT

This defines an device object template which is part of an network.

It is used for constructing devices in the server API database. For every device that an network has a single device template structure is needed.

InOut:

Name

Type

Comment

instNumber

IEC_BACNET_INST_NUMBER

The device instance number under which the device object will be accessable on the BACnet network.

A valid range is from ::BACNET_INST_NUMBER_MIN to ::BACNET_INST_NUMBER_MAX.

address

IEC_BACNET_ADDRESS

The BACnet MAC address under which the device object will be accessable on the BACnet network.

This part needs to be initialized by the user before the device may be constructed with a call to ::BACnetConstructDevice. If the network address member of this part address is set to ::BACNET_NETWORK_LOCAL or ::BACNET_NETWORK_GLOBAL the device will bind to the first found datalink layer which isn’t already bound to an device. If the network address member of this part address is set to an specified network number the API will search for that number in the configured datalinks and if present and unbound will bind the device to it. The device construction will fail if no address could be bound to the device.

maxNumberOfObjects

IEC_BACNET_UINT

Specifies the maximum number of objects which may be created in this device. If no limit checking is required set this parameter to 0.

numberOfObjects

IEC_BACNET_UINT

Count of objects in the array of object templates

objectTemplates

POINTER TO IEC_BACNET_TEMPLATE_OBJECT

object templates in this device.