Blog

BACnet Device Instance Number, Network Number and MAC Address: How to Avoid Duplicates

2026-11-24 · 13 min read BACnetdevice instancenetwork numberMAC addressMS/TPcommissioningtroubleshooting

Short answer

The BACnet device instance number is the 22-bit ID of a controller's Device object, from 0 to 4,194,302, and it must be unique across the whole BACnet internetwork. It is separate from the address: the network number (1 to 65,534) names each BACnet network and must also be unique, while the MAC address only has to be unique on its own network. A duplicate instance makes a tool see one device where there are two, so reads and writes can reach the wrong controller.

A new rooftop unit goes in, the contractor copies the controller configuration from the air handler next door, and suddenly AHU-2 shows a supply fan that runs when it is off. Nobody changed the AHU. The problem is a number: the new controller kept the same BACnet device instance number.

BACnet uses three different numbers to find a controller: the device instance, the network number and the MAC address. Each has its own rules and its own kind of duplicate. This guide explains all three, gives numbering schemes that scale, and shows step by step how to find and fix duplicates, with screenshots of a simulated site in BacLens.

What is a BACnet device instance number?

The device instance number is the unique ID of a BACnet device on the whole internetwork. Every BACnet device has exactly one Device object, and the instance part of that object's identifier (for example device,11001) is what everyone calls the "device instance", "device ID" or "Device Object Instance".

ASHRAE Standard 135 (the BACnet standard) encodes every object identifier in 32 bits: 10 bits for the object type and 22 bits for the instance. That gives these limits:

Value Meaning
0 to 4,194,302 Valid device instances
4,194,303 Reserved wildcard ("whatever device you are"), never configure it on a controller
Above 4,194,303 Impossible in BACnet: it does not fit in 22 bits

Some products allow only part of that range (for example starting at 1), so check the manual. A few vendors use 4,194,303 to mean "not configured yet": a device showing it has not been commissioned.

Supervisors, graphics, trends and alarms are bound to the instance. To read AHU-2 / Supply Air Temp, a workstation reads device 11001, analog-input 1: it sends a Who-Is for 11001, takes the address from the I-Am answer and caches it. That is why a duplicate is dangerous: whichever answer the workstation keeps wins.

The rule: unique on the whole internetwork

The standard requires each device instance to be unique across the entire BACnet internetwork, not just on one trunk or one subnet. "Internetwork" means every BACnet network that routers and BBMDs connect together: all the MS/TP trunks, all the BACnet/IP subnets, the BACnet/SC hub, and anything joined later through a VPN or a campus link.

It is the rule most often broken: two unconnected buildings can share numbers without trouble, until someone joins them. The Device object's Object_Name should be unique internetwork-wide too.

Device instance vs network number vs MAC address

The device instance says who the controller is; the network number and MAC address say where it is. Together, the network number and the MAC address form the BACnet address of a device.

Number What it identifies Valid range Must be unique… Typical way to set it
Device instance The controller itself 0 to 4,194,302 On the whole internetwork Software, web page, DIP switches or rotary switches + offset
Network number One BACnet network (one MS/TP trunk, one IP subnet used for BACnet, one SC hub) 1 to 65,534 (65,535 = global broadcast) On the whole internetwork Configured in each BACnet router
MAC address (MS/TP) A node on one MS/TP trunk 0 to 127 masters, 128 to 254 slaves, 255 = broadcast Only on that trunk DIP or rotary switches, display, software
MAC address (BACnet/IP) IP address + UDP port (6 bytes) Any IP and port Only on that IP network Normal IP settings, port usually 47808
VMAC (BACnet/SC) A node connected to a hub 6 random bytes Only on that SC network Generated by the device

So 3:21 on a network map means "network 3, MAC 21", and the controller there has an instance such as 1001. Move it to another trunk and its address changes but its instance stays, so the supervisor finds it again with a Who-Is.

BacLens network map of a simulated office building: router BLDG-RTR device 1000, MS/TP network 2 with ELEC-MTR 1002 at 2:2 and VAV-101 2001 at 2:11, network 3 with AHU-1 1001 at 3:21 and PLANT-1 4001 at 3:23, network 900 with the energy meter 9001 at 900:2

The map above shows a healthy layout. Router BLDG-RTR (device 1000) routes to networks 2, 3 and 900. On network 2, VAV-101 is device 2001 at address 2:11 (network 2, MAC 11). On network 3, AHU-1 is device 1001 at 3:21. Every instance is different, every network number is different, and MAC addresses only repeat across different networks, which is allowed.

Can two networks have the same network number?

Only if they are never connected. Routers learn which router leads to which network number. If two routers both announce network 3, traffic for network 3 goes to whichever router was learned last, so devices on both trunks appear and disappear. This typically shows up when two buildings numbered by different contractors are joined on one campus network.

Why do duplicate device instances happen?

Duplicates are almost never random. These are the causes seen most often in the field:

  1. Copied configuration. A controller file is copied from an existing unit to a new one, and the instance comes with it (the example in this article).
  2. Factory defaults. Several controllers leave the box with the same default instance, and nobody changes it.
  3. Instance from switches. Some controllers compute the instance from their MAC switches, sometimes plus an offset. Two trunks with the same MAC range then give the same instances.
  4. Joining sites. Two buildings with their own numbering are connected later through a BBMD, a VPN or a campus network.
  5. Replacements. A spare is installed with the instance of a controller that is still online.
  6. Gateways. Protocol gateways (Modbus, LON, KNX to BACnet) create virtual devices with instances from a formula; two gateways with the same formula collide.

Symptoms of a duplicate device instance

A duplicate does not raise an alarm by itself. You see side effects:

Symptom What is happening
A device's name, model or point list changes after a rediscovery The tool kept the I-Am from the other controller this time
Values that make no sense (fan "on" when it is off, wrong temperature) Reads go to the wrong controller
A write or override "doesn't stick" or changes the wrong equipment The write reached the other device
A whole trunk looks empty although devices are wired and powered Their instances also exist elsewhere, so the tool lists only one copy
Device online / offline flapping in the supervisor The cached address keeps switching between two controllers
"Unknown object" or "unknown property" errors on points that exist The other controller does not have that object

The write case is the serious one: an override can move real equipment you never meant to touch. Fix duplicates before any commissioning writes.

How to find a duplicate device instance, step by step

The method below works with any BACnet tool that shows I-Am answers and their source addresses. The screenshots come from BacLens, a free BACnet explorer, connected to BacLens Sim, the free BACnet simulator. We added a simulated rooftop unit, RTU-1, behind its own router RTU-GW on network 50, and gave it instance 11001, the same as AHU-2. Everything shown is simulated.

Step 1: Discover the site and look at the map

Run a normal discovery (Who-Is with no range) and note each network number, router and expected device count.

BacLens network map of the simulated plant building: RTU-GW device 7000 at 127.0.2.20:47809 routing to network 50, BLDG2-RTR 11000 BBMD and router to network 3, AHU-2 device 11001 at 127.0.2.2:47809, and network 50 shown with no device answered

BacLens is a foreign device of the plant BBMD here. The map shows the new gateway RTU-GW (device 7000, 127.0.2.20:47809, Router → 50) and AHU-2 (device 11001, 127.0.2.2:47809), both outlined. But under RTU-GW it says Network 50: no device answered. The rooftop controller is powered and wired, so why is the network empty?

Because a device list is keyed by instance: two devices answered as 11001, and only one entry can exist. A network that looks emptier than it is often is the first clue.

Step 2: Watch the I-Am answers for one instance

Send a Who-Is limited to one instance (low limit = high limit = the suspect instance) or simply capture a discovery, and filter on that instance. One instance should produce one I-Am. Two I-Am answers from two different addresses is proof of a duplicate.

BacLens analyzer on the plant connection: a Who-Is sent through the BBMD, then I-Am device,11001 from 127.0.2.20:47809 and a second I-Am device,11001 from AHU-2 at 127.0.2.2:47809, both outlined

The analyzer shows it clearly. After the Who-Is at 12:15:57.065, I-Am device,11001 arrives from 127.0.2.20:47809 (the RTU-GW router, forwarding for network 50) at .085, and a second I-Am device,11001 arrives from AHU-2 at 127.0.2.2:47809 at .113. Same instance, two sources, 28 ms apart.

Step 3: Let the automatic check confirm it

BacLens compares every I-Am it sees and raises a check when one instance answers from more than one place.

BacLens automatic checks: high level, Device instance 11001 exists twice, seen at 127.0.2.2:47809 and 50:5 on the plant connection, likely cause two controllers share the same device instance, action give each controller a unique device instance

The check says Device instance 11001 exists twice, with the two places: 127.0.2.2:47809 (AHU-2 on the IP network) and 50:5 (network 50, MAC 5, the rooftop controller behind RTU-GW). Now you know both physical locations, which is what you need to go and fix one of them.

Step 4: Identify each controller by address, not by instance

Before you change anything, confirm which physical controller is which. Read properties by address, not by instance, because a request by instance may reach either one:

  • Object_Name, Vendor_Name, Model_Name and Firmware_Revision of the Device object,
  • Location and Description if they were filled in,
  • a point you can check physically (a supply air temperature you can measure, a status LED you can watch).

Many tools let you read a device at a given address using the wildcard instance 4,194,303 in a ReadProperty of the Device object's Object_Identifier. The device answers with its own real instance. Support for this depends on the device's BACnet protocol revision, so if it fails, use the vendor's tool or the controller's display.

Step 5: Renumber the newer or less-connected device

Change the instance on the device that has fewer bindings: usually the new one. AHU-2 has graphics, trends, alarms and schedules tied to 11001; RTU-1 has nothing yet. Renumbering AHU-2 would break all of that.

How depends on the product (software, web page, display, or switches plus an offset; some accept a write to the Device object's Object_Identifier). Most controllers need a restart or a ReinitializeDevice to announce the new instance.

Step 6: Clear caches and rediscover

After the change, rediscover the whole site and check that each instance answers once, from one address. Refresh the supervisor's address cache (many keep the old binding until a rediscovery), treat trend data from the duplicate period with suspicion, and update the numbering sheet.

How should you number BACnet devices?

Use a written scheme that encodes location, keeps instances independent of MAC switches where possible, and leaves room to grow. There is no numbering scheme in the standard. The only hard rules are the ranges and the uniqueness. The schemes below are common practice, not requirements.

Scheme 1: building, network and MAC

A common pattern packs the building, the trunk and the MAC into the instance:

instance = building × 100,000 + trunk × 1,000 + MAC

Building Trunk MAC Device instance Network number (building × 100 + trunk)
1 1 5 101,005 101
1 3 21 103,021 103
12 3 21 1,203,021 1203
41 9 127 4,109,127 4109

Reading 1,203,021 tells you: building 12, trunk 3, MAC 21. The largest building number that still fits under 4,194,302 is 41, so this scheme works for campuses up to 41 buildings and 99 trunks each. The network number follows the same logic and stays well below 65,534.

The weakness: a controller that moves keeps an instance that no longer matches its location. Decide in advance whether you renumber or just document it.

Scheme 2: blocks per equipment type

Each type of equipment gets a block: air handlers 1001 to 1999, VAV boxes 2001 to 2999, plant 4001 to 4999. The simulated office above uses that style (AHU-1 = 1001, VAV-101 = 2001). It reads well on small sites, but on a campus add a building prefix, or two buildings collide the day they are joined. If your controllers compute instance = offset + MAC, give each trunk its own offset.

Tips that prevent most duplicates

  • Keep one numbering sheet per site (instances, network numbers, MAC and IP addresses), reserve ranges per contractor, and make everyone use it.
  • Number networks so they are unique campus-wide, even before buildings are connected.
  • Change factory default instances during installation.
  • On MS/TP, masters must be 0 to 127, and Max_Master close to the highest MAC in use keeps the token fast (see our MS/TP troubleshooting guide).

BacLens map of a simulated MS/TP line at 38,400 baud: BacLens at MAC 3, fan coils FCU-201 device 6001 at MAC 11, FCU-202 device 6002 at MAC 12, FCU-203 device 6003 at MAC 13

On this simulated MS/TP line the rule is simple: MAC 11 → device 6001, MAC 12 → 6002, MAC 13 → 6003.

Worked example: joining two buildings

Building A and Building B were installed by different contractors. Each one used network numbers 1 (IP), 2 and 3 (MS/TP) and instances 1001 upward. They now share a campus network with BBMDs.

Item Building A Building B Problem after joining
IP network number 1 1 None: BBMDs join both subnets into one BACnet/IP network, which must have one number
MS/TP network numbers 2, 3 2, 3 Two routers announce networks 2 and 3: devices flap between buildings
Device instances 1001 to 1040 1001 to 1025 25 duplicate instances

The fix, in order:

  1. Network numbers first. Renumber Building B's MS/TP networks (for example 202 and 203) in its routers, and keep the shared BACnet/IP network on one number in every router. Network numbers are set in a few routers, and the change does not break graphics bound by device instance.
  2. Then instances. Renumber the 25 Building B devices, for example to 201,001 to 201,025 with the building × 100,000 rule, or to any free block from the site sheet.
  3. Rebind Building B's supervisor to the new instances (graphics, trends, alarms, schedules).
  4. Rediscover from a point that sees both buildings and confirm: every instance once, every network number from one router.

If renumbering must wait, keep the buildings separated (no BBMD entries between them) until it is done.

Common mistakes

  • Renumbering the wrong device. Identify both controllers by address first (Step 4), or you create hours of rebinding work.
  • Fixing the MAC when the instance is the problem, or the reverse. A duplicate MAC breaks one trunk; a duplicate instance breaks bindings across the site.
  • Forgetting the supervisor's cache. It may keep using the old address until it rediscovers.
  • Trusting the device list alone. A list keyed by instance hides the duplicate by design. Look at the raw I-Am answers.
  • Discovering only one trunk. A duplicate can sit in another building. Discover from where you see the whole internetwork, or through the BBMD (see our BBMD guide).
  • Leaving 4,194,303 or a factory default on a device that is already online.

To practise without a live site, run BacLens Sim and explore it with BacLens. For the discovery side, read how Who-Is and I-Am work.

FAQ

What is the maximum BACnet device instance number?

The maximum usable device instance is 4,194,302. The instance field is 22 bits, so the highest possible value is 4,194,303, but that value is reserved as a wildcard and must not be configured on a controller. Some products allow a smaller range, so check the manual.

Is the BACnet device instance the same as the MAC address?

No. The device instance identifies the controller on the whole internetwork, while the MAC address only locates it on one network (MS/TP MAC, IP and port, or SC VMAC). Some small sites make them equal for convenience, and some controllers compute the instance from the MAC, but they are separate numbers with separate rules.

What happens if two BACnet devices have the same device instance?

Both answer a Who-Is for that instance, and tools keep only one of the answers. Reads, writes, trends and alarms can then go to the wrong controller, values look wrong, and a whole trunk can appear empty. Find both addresses from the I-Am answers, then renumber the device with fewer bindings.

Do MS/TP MAC addresses need to be unique?

Only on their own trunk. Two devices with MAC 11 on two different MS/TP networks are fine because their full addresses differ (for example 2:11 and 3:11). Two devices with the same MAC on the same trunk break token passing and cause errors on the wire.

What is a BACnet network number?

It is the number a BACnet router gives to each network it connects: an MS/TP trunk, a BACnet/IP subnet or an SC hub. Valid values are 1 to 65,534, and 65,535 is used for global broadcasts. Every network number must be unique on the internetwork, otherwise routers send traffic to the wrong place.

How do I find duplicate device instances on a BACnet network?

Run a discovery and look at the raw I-Am answers, not only the device list. If one instance answers from two addresses, you have a duplicate. A Who-Is limited to one instance (low and high limit equal) is a quick test. Tools such as BacLens also flag it automatically.

Can I change a BACnet device instance number?

Yes, on almost every controller, but how depends on the product: configuration software, a web page, the local display, or switches plus an offset. Some devices accept a write to the Device object's Object_Identifier. After a change, restart the device, rediscover the site and rebind any graphics, trends and alarms that used the old number.