Skip to content

BACnet/IP

The BACnet/IP (building automation) connection reads and writes objects of BACnet controllers: air handlers, heating and cooling plants, lighting, room controllers. Scadora works as a BACnet client: it reads properties with ReadPropertyMultiple (or ReadProperty) and writes with WriteProperty using a command priority. Devices on MS/TP are reached through a BACnet router.

The implementation is Scadora’s own, with no third-party libraries.

  1. Get the point list of the device: object types and numbers (AI:1, BO:2…). It is in the integrator’s documentation or any BACnet browser.
  2. In the editor: Connection → BACnet/IP (building automation). Set the device Address.
  3. Create tags: AI:1 (Float32), BO:2 (Bool), MSV:1 (Int32).
  4. Start the project.
Setting Default Meaning
Address, Port —, 47808 IP address of the device or the BACnet router; UDP port (BAC0)
Network (DNET) 0 Network number behind the router (MS/TP); 0 — the device is on this IP network
MAC address (DADR) empty Device address behind the router: the MS/TP node number, for example 5
Write priority 8 Command priority 1–16 for commandable objects. 8 — manual operator
Batch reading on ReadPropertyMultiple: many properties in one request
Properties per request 20 Size of one ReadPropertyMultiple; the reply must not be segmented
Local port 0 Scadora UDP port; 0 — any free one. 47808 — if the device answers only to the standard port
Timeout, ms; Retries 3000; 1 Wait for a reply and repeat an unanswered request

The address is an object type and number, then optionally a property and an array index. Without a property, present-value is read.

BACnet address panel

Address Meaning Tag type
AI:1 Analog input, present value Float32
AV:3 Analog value (setpoint) Float32
BI:4, BO:2, BV:5 Binary input, output, value: inactive / active Bool
MSI:1, MSO:1, MSV:1 Multi-state, state number from 1 Int32
AI:1.statusFlags Flags: bit 0 in alarm, 1 fault, 2 overridden, 3 out of service UInt16
AI:1.objectName, .description Name and description of the object String
AO:5.priorityArray[8] Command at priority 8 Float32
DEV:1234.objectName Device name String
130:5.85 Vendor object type and property in numbers —

Object types: AI, AO, AV, BI, BO, BV, MSI, MSO, MSV, ACC, IV, PIV, LAV, CSV, LOOP, SCH, CAL, NC, DEV, or a number. Properties by name: presentValue, statusFlags, outOfService, reliability, eventState, objectName, description, units, priorityArray, relinquishDefault, setpoint, highLimit, lowLimit and others, or a number.

Reading. Every poll cycle reads all properties with ReadPropertyMultiple, 20 per request. A property the device does not have gets Bad, the others are read. If the device does not support ReadPropertyMultiple, Scadora switches to ReadProperty by itself.

Writing. The value is sent with the type the device reported when reading (REAL, enumerated, unsigned…). Present-value of commandable objects (AO, AV, BO, BV, MSO, MSV and others) is written with Write priority: the device acts on the highest active priority, so a write at 8 overrides the schedule (priority 16) but not life safety (1–2). Inputs (AI, BI) cannot be written.

By default the driver subscribes to present-value changes of analog, binary and multi-state objects (SubscribeCOV): the device sends new values itself, and those objects are not polled. A subscription lasts COV subscription lifetime and is renewed in advance. Objects and devices without COV are polled as usual. To poll everything, turn off COV subscriptions.

Project → Find BACnet devices… broadcasts Who-Is and lists the devices that answer, on this network and behind BACnet routers. Connections are created for the checked ones, with the address, network and MAC.

Project → Browse BACnet device objects… reads the object list of the connection’s device together with object names. Check the objects you need and click Import: tags appear with addresses such as AI:1 and BO:2 and a type that follows the object type; inputs are read-only.

Symptom Cause and what to do
“No connection”, “no response” Wrong address, UDP 47808 blocked, or the device answers only to port 47808: set Local port 47808
MS/TP device does not answer Wrong Network (DNET) or MAC address: take them from the router settings
Tag Bad, unknown-object or unknown-property No such object or property: check the point list
“Response is segmented” Lower Properties per request
Writes fail, write-access-denied The object is not writable, or the property is read only
The value does not change after a write A higher priority holds the object: check priorityArray
  • BACnet/IP client only: Scadora does not act as a BACnet device.
  • COV covers present-value only; notifications about other properties are not used.
  • Segmented replies are not supported: keep requests small.
  • Releasing a command (writing NULL to a priority) is not supported.
  • BACnet MS/TP over a serial port directly and BACnet/SC are not supported.
  • Checked against an in-test device, not yet on real controllers.