Blog

BACnet vs Modbus: Differences, When Each Is Used, and How They Work Together

2026-11-20 · 13 min read BACnetModbusBMSHVACintegrationgateway

Short answer

BACnet and Modbus are both open protocols, but they work at different levels. Modbus moves numbered 16-bit registers and bits, so you need the device's register map to know what each number means, its scale and its byte order. BACnet moves named objects with units, status flags, priorities, alarms, schedules and trends, and devices can be discovered on the network. Most buildings use both: Modbus for meters, VFDs and packaged equipment, BACnet for the controllers and the BMS, joined by a gateway or a controller that reads Modbus and serves BACnet.

On many HVAC jobs the question comes up: the chiller offers Modbus and BACnet, the energy meters only speak Modbus RTU, and the BMS is BACnet/IP. Which protocol do you use, and why is one so much faster to integrate?

This guide compares BACnet vs Modbus the way a field technician meets them: data, discovery, wiring, gateways and common mistakes. Facts come from ASHRAE Standard 135 and the Modbus specifications on modbus.org. The screenshots show simulated devices read with real tools.

BACnet vs Modbus: the short answer

Modbus is a simple way to read and write numbered registers. BACnet is a full building automation language with named objects, units, alarms, schedules and trends.

  • Modbus (created by Modicon in 1979 for PLCs) moves 16-bit registers and single bits. The device tells you nothing about what they mean: register 40001 could be a temperature ×10, half of a float, or a status word. You need the register map.
  • BACnet (ANSI/ASHRAE Standard 135, first published in 1995, also published as ISO 16484-5) moves objects such as Analog Input 4, which carries its own name, value, units, description and health flags. Devices announce themselves on the network.

Neither is "better". Modbus is everywhere in meters, drives, boilers and PLCs; BACnet is the language of building controllers and BMS front ends. Most sites use both.

BACnet vs Modbus comparison table

Modbus BACnet
Standard Modbus Application Protocol V1.1b3, Serial Line V1.02, Messaging on TCP/IP (modbus.org) ANSI/ASHRAE 135, ISO 16484-5
Data model Coils, discrete inputs, input registers, holding registers (numbered addresses) Objects (AI, AO, AV, BI, BO, BV, MSV, Schedule, Trend Log...) with properties
Meaning of the data Only in the vendor's register map Name, Units, Description, Status_Flags inside the device
Data types 16-bit registers; 32/64-bit values and floats split across registers (byte order not standardised) Typed values: REAL, enumerated, Boolean, date, time...
Discovery None in the protocol: you scan unit IDs and addresses Who-Is / I-Am, then read the Object_List
Serial version Modbus RTU (or ASCII) over RS-485 BACnet MS/TP over RS-485
IP version Modbus TCP, port 502 BACnet/IP, UDP port 47808 (0xBAC0)
Addressing on the bus Unit ID 1 to 247 MS/TP MAC 0 to 127 for masters (128 to 254 for slaves), device instance 0 to 4,194,302
Communication Client/server (master/slave): the client polls Peer to peer: any device can read, write, subscribe
Commands with priority No: the last write wins Priority array 1 to 16 with relinquish
Alarms, schedules, trends Not in the protocol Standard objects and services (Event Enrollment, Schedule, Trend Log, COV)
Security Plain protocol; a separate Modbus/TCP Security spec adds TLS BACnet/SC (Secure Connect) uses TLS over WebSockets
Typical devices Energy meters, VFDs, boilers, generators, PLCs, solar inverters VAV, AHU and plant controllers, BMS supervisors, some chillers and meters

What is the main difference between BACnet and Modbus?

The main difference is the data model: Modbus sends raw numbers, BACnet sends self-describing objects. Everything else (discovery, alarms, priorities) follows from that.

Modbus: numbers at addresses

A Modbus device exposes four tables: coils (read/write bits), discrete inputs (read-only bits), input registers (read-only 16-bit words) and holding registers (read/write 16-bit words). A read request says "give me 5 holding registers starting at address 0 from unit 1", and the answer is five 16-bit numbers. Nothing else.

What those numbers mean is up to the manufacturer: an integer ×10 (145 = 14.5 °C), a float split over two registers in ABCD or CDAB order (see Modbus float byte order), addresses documented as 40001 or 0. The register map is not optional.

BACnet: objects with properties

A BACnet device contains a Device object and a list of other objects. Each object has a type and an instance (for example analog-input,4) and standard properties: Object_Name, Present_Value, Units, Description, Status_Flags, Out_Of_Service and, for commandable objects, a Priority_Array. A BACnet client reads Present_Value of analog-input,4 and receives a REAL value; it can then read Units and get "degrees-Celsius" from the device itself. See BACnet object types for the full list.

Side by side: the same supply air temperature in both protocols

Read one value both ways and the difference is obvious. The screenshots come from two free simulators: ModLens Sim (a Modbus air handler, unit 1) and BacLens Sim (a BACnet air handler, device 1001). They are two different simulated units, so the values differ, but the method is the one you use on site.

Step 1 (Modbus): find which unit IDs answer

Modbus has no "who is there?" message. To find devices on a serial bus or behind a gateway, a tool sends a small read to each unit ID and waits for an answer or a timeout.

ModLens Scanner, Find unit IDs from 1 to 10 on ModLens Sim at 127.0.0.1:5020: done in 7.5 s, 3 found. Unit 1 answers holding 0 = 144, unit 2 responds with Illegal data address, unit 3 answers holding 0 = 645

Scanning unit IDs 1 to 10 took 7.5 seconds and found three devices. Unit 1 answers "holding 0 = 144". Unit 2 answers with exception code 2, Illegal data address: the device is there, but it has no holding register 0 (it is a power meter that uses input registers). Unit 3 answers "holding 0 = 645". You get no name, no model and no list of points.

Step 2 (Modbus): read the registers and decode them

Next, read a block of holding registers from unit 1, starting at address 0.

ModLens Explorer reading 12 holding registers from unit 1, address 0: address 0 raw 145, address 1 and 2 decode as float32 ABCD 22.05941, address 3 and 4 decode as float32 CDAB 1.462228, addresses 5 to 8 do not exist on this device

This is what Modbus really gives you:

  • Address 0 reads 145 (hex 0x0091). The simulator's map says it is the supply air temperature, int16 with scale 0.1, so 145 means 14.5 °C. Without the map, 145 could be anything.
  • Addresses 1 and 2 together decode as a float32 in ABCD order: 22.06, the return air temperature in °C.
  • Addresses 3 and 4 decode as a float32 in CDAB (word swap) order: 1.46, the duct static pressure in inches of water column.
  • Addresses 5 to 8 do not exist: the device answered "illegal data address" for them. Modbus maps often have gaps like this.

The Explorer shows every interpretation side by side and highlights values that look real. It also highlights 22.00028 under "float32 CDAB" at address 0: registers 0 and 1 read together in the wrong order, a value that only looks plausible. That is the classic Modbus trap, so always confirm with the map or a second reading after the value changes. The units are not in the data at all.

Step 3 (BACnet): discover the devices with Who-Is

On BACnet, discovery is part of the protocol. A client broadcasts Who-Is, and every device answers I-Am with its device instance, maximum message size, segmentation support and vendor ID.

BacLens packet analyzer: one Who-Is broadcast from 127.0.0.9, then I-Am answers from device 1000, 1001, 3001, 4001, 4002 and from VAV-101 to VAV-106 (devices 2001 to 2006) through router 127.0.1.1

One broadcast, and within 0.05 seconds eleven devices answer, including AHU-1 (device 1001) and six VAV controllers (2001 to 2006) on an MS/TP network behind the router at 127.0.1.1. BACnet routes messages between networks by itself; Modbus has no equivalent. More details in how to discover BACnet devices.

Step 4 (BACnet): read the object list

Next, read the device's Object_List and each object's name, value and description.

BacLens All points tab of AHU-1, device 1001 on network 3: AI1 AHU-1 OA-T 3.88 °C Outdoor air temperature, AI4 AHU-1 SA-T 14.01 °C Supply air temperature, AO1 OA-DPR 20 %, AV1 SAT-SP 13.5 °C, AV2 DSP-SP 250 Pa, BO1 SF-C OFF, BV1 OCC OFF

The supply air temperature is AI4, "AHU-1 SA-T", 14.01 °C, "Supply air temperature". The name, unit and description all come from the controller. The list also shows what you can command: outputs (AO, BO) and values (AV, BV) have a write icon, inputs (AI) do not.

Step 5 (BACnet): read standard properties as columns

Every object has the same standard properties, so you can read them in bulk and compare.

BacLens points of AHU-1 with three extra BACnet property columns: object-type 0 for analog inputs, 1 for analog outputs, 2 for analog values, 3, 4 and 5 for the binary objects; units °C, Pa, kW and %; status-flags none on every point

Object-type numbers (0 Analog Input, 1 Analog Output, 2 Analog Value, 3 to 5 for the binary types) are fixed by ASHRAE 135, so every BACnet tool agrees on them. Status_Flags (in alarm, fault, overridden, out of service) reports the health of each point. A Modbus register has no such field: what it shows when a sensor fails depends on the vendor.

What the example shows

Question Modbus (unit 1) BACnet (device 1001)
How did I find the device? Scanned unit IDs 1 to 10 One Who-Is, I-Am answers
Where is supply air temp? Holding register 0 (40001), from the map AI4, named "AHU-1 SA-T"
Raw value 145 14.01 (REAL)
Scale and units ×0.1, °C, from the map °C, read from the Units property
Is the point healthy? Not in the protocol Status_Flags = none
Can I write it? Depends on the map (holding = read/write) Not in normal operation: an AI is a measurement; AV and AO are commandable

Wiring and networks: MS/TP vs Modbus RTU, BACnet/IP vs Modbus TCP

Both protocols have a serial version on RS-485 and an IP version on Ethernet, but they cannot share the same bus.

Serial: Modbus RTU vs BACnet MS/TP

Both use two-wire RS-485 (TIA-485) in a daisy chain with 120 Ω termination at both ends and biasing. The wiring rules are the same; the protocols are not:

  • Modbus RTU: one master polls; slaves only answer. Common settings are 9600 or 19200 baud, 8 data bits, even parity (the Serial Line spec's default) or no parity with 2 stop bits. Unit IDs 1 to 247.
  • BACnet MS/TP (Master-Slave/Token-Passing): masters pass a token, and only the token holder can start a conversation. Common speeds are 9600, 19200, 38400 and 76800 baud. MAC addresses 0 to 127 for masters. See BACnet MS/TP troubleshooting.

Never mix Modbus RTU and MS/TP devices on the same pair of wires.

IP: Modbus TCP vs BACnet/IP

  • Modbus TCP uses a TCP connection to port 502. The client connects to one IP address; a gateway behind that IP can forward to several unit IDs on RS-485. See Modbus TCP vs RTU.
  • BACnet/IP uses UDP, normally port 47808. Discovery uses broadcasts, which routers do not forward, so devices on another subnet need a BBMD or foreign device registration. See BBMD explained.

So a Modbus TCP device on another subnet usually works if the firewall allows port 502, while a BACnet/IP device there stays invisible to Who-Is until a BBMD is set up.

When should you use Modbus, and when BACnet?

Use BACnet for controllers the BMS commands, and Modbus where the equipment only offers Modbus.

Choose BACnet when:

  • The device is an HVAC controller that the BMS operator will command (setpoints, overrides, schedules). The priority array prevents one source from silently overwriting another. See the BACnet priority array.
  • You need alarms, schedules or trend logs held in the device.
  • The site has many points and you want discovery and readable names.
  • The specification asks for BACnet with a BTL listing or a specific device profile (B-ASC, B-AAC, B-BC).

Choose Modbus when:

  • The device is a meter, a VFD, a generator controller, a boiler or a PLC where Modbus is the native option and BACnet is an extra-cost card.
  • You only need a few values read by polling, or a PLC or SCADA does the integration.

When a device offers both, BACnet usually saves time, but check the vendor's object list first: some devices expose far less data on BACnet than on Modbus.

How BACnet and Modbus work together: gateways

Most buildings join the two with a gateway or with a BMS controller that reads Modbus and serves the values as BACnet objects. The BMS then sees, for example, the main meter's active power as an Analog Input in kW.

The gateway does what you did by hand in Steps 1 and 2: it polls the registers, applies data type, byte order and scale, and writes the result into a BACnet object with a name and units. Every mapping line can hide a mistake.

Worked example: mapping a Modbus power meter to BACnet

The simulated power meter in ModLens Sim (unit 2) uses input registers with floats in CDAB order. A typical mapping looks like this:

Modbus source Type, order, scale BACnet object Units
Input reg 0 (30001), unit 2 float32 CDAB AI 101 "MTR-1 Voltage" volts
Input reg 2 (30003), unit 2 float32 CDAB AI 102 "MTR-1 Current" amperes
Input reg 4 (30005), unit 2 float32 CDAB AI 103 "MTR-1 kW" kilowatts
Input reg 6 (30007), unit 2 uint16 ×0.001 AI 104 "MTR-1 PF" no-units
Input reg 10 (30011), unit 2 uint32 AI 105 "MTR-1 Energy" kilowatt-hours

On site, first confirm each line with a Modbus tool on the meter (compare with its display), then check the BACnet side. If Modbus is right and BACnet is wrong, the problem is the gateway mapping.

Gateway checklist

  1. Table: holding (4x) or input (3x)? Exception code 2 often means the wrong table. See holding vs input registers.
  2. Address offset: 30001 in the map is address 0 in most gateways. Check the gateway's convention.
  3. Data type and byte order: float32 ABCD or CDAB, int16 or uint16, 32-bit counters.
  4. Scale: ×0.1, ×0.01 or a separate scale register.
  5. Units: set the BACnet Units property; the gateway cannot guess them.
  6. Communication loss: the BACnet object should show a fault in Status_Flags (or Reliability) when the Modbus device stops answering, not freeze on the last value.
  7. Writes: Modbus has no priority array, so the device's keypad or another master can overwrite a value the BMS wrote. Test it.
  8. Poll rate: group consecutive registers into one read (up to 125 registers per request with function code 03 or 04) instead of one request per point.

Common mistakes when comparing or mixing BACnet and Modbus

  • Assuming BACnet means no setup. BACnet discovery finds devices, but a badly named object list ("AV-17", "BI-3") still needs a points list from the vendor.
  • Putting Modbus and MS/TP devices on the same RS-485 trunk. Same wires, different protocols: it never works.
  • Forgetting byte order in the gateway. A float in CDAB order read as ABCD gives a huge or tiny number such as 1.13e+35, exactly as in the Explorer screenshot above.
  • Exposing either protocol to the internet. Neither Modbus TCP nor BACnet/IP has authentication in its classic form. Keep them on a separate VLAN behind a firewall, use a VPN for remote access, and consider BACnet/SC or Modbus/TCP Security where the devices support them.

Testing both protocols before going to site

You can practise this whole comparison on a laptop for free. For Modbus, ModLens Sim simulates an air handler and a power meter, and ModLens reads them with the Scanner, the Explorer and Find a value (type the number on the display, get the register); the 14-day trial key unlocks Pro and Lite stays free after. For BACnet, BacLens Sim simulates a small building with a router, an MS/TP network and HVAC controllers, and BacLens is a free BACnet explorer that discovers, reads, writes and logs every point. Other good tools exist, such as YABE for BACnet and Modbus Poll or QModMaster for Modbus. What matters is that you can see the raw data on each side of a gateway.

FAQ

Is BACnet better than Modbus?

Neither is better in every case. BACnet is better for HVAC controllers and BMS work because it carries names, units, priorities, alarms, schedules and trends, and devices can be discovered. Modbus is simpler, cheaper and very common in meters, drives and industrial equipment. Most buildings use both.

Can BACnet and Modbus be on the same RS-485 network?

No. BACnet MS/TP and Modbus RTU both use RS-485 wiring, but their frames and timing are different, so devices of one protocol corrupt the other's traffic. Run separate trunks, or connect the Modbus devices to a gateway or controller port dedicated to Modbus.

How do I convert Modbus to BACnet?

Use a protocol gateway or a BMS controller with a Modbus port. It polls the Modbus registers, applies the data type, byte order and scale from the register map, and serves each value as a BACnet object with a name and units. Check every mapping line with a Modbus tool before you trust the BACnet values.

What ports do BACnet and Modbus use?

Modbus TCP uses TCP port 502. BACnet/IP uses UDP port 47808 (0xBAC0) by default, though other UDP ports can be configured. A firewall must allow these ports, and BACnet/IP across subnets also needs a BBMD or foreign device registration because broadcasts are not routed.

Why is Modbus still used in buildings?

Modbus is easy to implement, so almost every meter, VFD, generator, boiler and inverter offers it, often at no extra cost. It is also fast and robust on RS-485. For a few read-only values, a Modbus integration through a gateway is often the cheapest option.

Is BACnet more secure than Modbus?

Classic BACnet/IP and MS/TP have no authentication or encryption, just like classic Modbus TCP and RTU. BACnet/SC adds TLS-secured connections with certificates, and a separate Modbus/TCP Security specification adds TLS for Modbus. In practice, network segmentation, firewalls and VPNs protect most sites today.

Do I need a register map for BACnet like for Modbus?

Usually not to read the data, because a BACnet device gives you its object list with names, units and descriptions. A points list from the vendor still helps when object names are cryptic or when you need to know which values are safe to write. For Modbus, the register map is essential, or a tool that finds registers from the value shown on the device display.