Articles

Modbus and BACnet: integrating industrial and building equipment

· Frederico Conte

Modbus is common in industry. BACnet, in building automation. When your equipment speaks one of these protocols, other systems can read its data and send it commands, without replacing the equipment.

What Modbus is

Modbus was created in 1979 for programmable logic controllers (PLCs) and became an open standard. It is simple: one device asks, the other answers. It is found in variable frequency drives, energy meters, PLCs, sensors and controllers of every kind.

There are two main forms:

  • Modbus RTU, over a serial network (usually RS-485), common in control panels and older equipment.
  • Modbus TCP, over Ethernet, the same protocol on an IP network.

Data is organised in registers: each value (a temperature, a status, a command) has an address, described in the manufacturer’s manual.

What BACnet is

BACnet is the building automation protocol, defined in the ASHRAE 135 standard (ISO 16484-5). Instead of registers, it organises data in objects with properties: an analogue input, a binary output, a schedule.

It is found in chillers, central air conditioning, lighting controllers and building management systems, in two main forms: BACnet/IP, on the network, and BACnet MS/TP, over a serial network.

What integration makes possible

  • Reading data: temperature, consumption, operating status, alarms.
  • Sending commands: switch on, switch off, change a setpoint.
  • Connecting to other systems: supervision dashboards, databases, the cloud (over MQTT, for example), or an audio system that announces an alarm.

How we integrate

  1. Survey: we gather the register or object map of each device from the manufacturer’s documentation.
  2. Scope: what to read, what to command and how often.
  3. Bridge between systems: when the other side does not speak the same protocol, we use a gateway (Modbus to BACnet, Modbus to MQTT) or develop the software that converts between them.
  4. Tests on the real equipment: including failures, such as lost communication and out-of-range values.
  5. Documentation: what was integrated, how and where, for whoever maintains the system.

Precautions that prevent problems

  • Addressing: many manuals number registers from 1, while the protocol counts from 0. An off-by-one address reads the wrong value without raising any error.
  • 32-bit values: they take two registers, and the order between them changes from one manufacturer to another.
  • Polling rate: reading too fast overloads simple devices and the serial network.
  • Security: classic Modbus and BACnet have no authentication. The automation network should be kept apart from the corporate network and never exposed to the internet.

Does your equipment speak Modbus or BACnet and need to talk to another system? Talk to CONTE.