Escolar Documentos
Profissional Documentos
Cultura Documentos
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 1 of 38
Table of contents
Table of contents ..................................................................................................... 2 Introduction ............................................................................................................ 4 Glossary ................................................................................................................. 5 1. Architecture overview ........................................................................................ 9 2. BACnet rules that must be followed.................................................................... 11 General BACnet rules ....................................................................................... 11 No duplicate device instances .......................................................................... 11 No duplicate object identifiers within a device .................................................... 11 No duplicate network numbers ........................................................................ 11 One communication path only ......................................................................... 11 MS/TP network rules ........................................................................................ 13 No duplicate addresses! .................................................................................. 13 Install terminators ......................................................................................... 13 Set bias resistors ........................................................................................... 14 Use proper communication cable...................................................................... 14 Bond the shield to a proper ground .................................................................. 14 3. BACnet best practice guidelines ......................................................................... 15 MS/TP network guidelines................................................................................. 15 Keep exposed communication conductors short.................................................. 15 Make low resistance terminations..................................................................... 15 Address devices consecutively ......................................................................... 15 Router address should be 0 ............................................................................. 15 Few controllers per network ............................................................................ 15 Use B/IP for the MNB-1000 ............................................................................. 16 Use higher baud rates .................................................................................... 16 Changing baud rate........................................................................................ 16 Power the controllers properly ......................................................................... 16 Repeaters ..................................................................................................... 17 Change MaxInfoFrames value, larger than 1 ...................................................... 17 Set the MaxMaster value................................................................................. 17 Discussion of joining the token passing ............................................................. 18 Understanding the transmit and receive data LEDs ............................................. 19 Consider using simulated slave mode ............................................................... 20 BACnet/IP network guidelines ........................................................................... 21 Set the gateway address................................................................................. 21 Use BBMDs when needed ................................................................................ 21 BACnet/IP through a NAT router ...................................................................... 21 BACnet Ethernet network guidelines................................................................... 22 B/Eth is not routed......................................................................................... 22 Do not leave B/Eth enabled if not used ............................................................. 22 BACnet guidelines for UNCs .............................................................................. 23 Fewer points better performance ................................................................... 23 Use PollOnDemand containers ......................................................................... 23
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 2 of 38
Delete unused points...................................................................................... Keep the UNC routing..................................................................................... Keep the processor idle time above 20.............................................................. UNC bias resistors.......................................................................................... General BACnet guidelines ................................................................................ Consider network design carefully .................................................................... Appendix A. Improve MS/TP performance ......................................................... Simulating slave mode ..................................................................................... Appendix B. Remote connectivity..................................................................... BBMDs - connecting B/IP devices on different subnets .......................................... Setup of BBMD in the MNB-1000 ....................................................................... Use of VPN for off-site access ............................................................................ WPT/WPCT BACnet/IP remote connection setup ...................................................
23 24 24 24 25 25 26 26 30 31 33 35 36
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 3 of 38
Introduction
The BACnet product line (MNB-V2, MNB-V1, MNB-300 and the MNB-1000), has been a great addition to our family of I/A Series building automation products. With every new product, there is a learning curve. The purpose of this document is to provide current information in regards to BACnet Best Practices which have been acquired by factory testing and actual jobsite installations. Although the information contained in this document is what we consider to be the most current at the time of this writing, it is subject to change. As new information becomes available, this document will be expanded thus it is important to check our WEB site to ensure that the field offices have the latest document available.
New!
Items that are new or modified in the current version of this document will be designated by a scroll symbol in the left-hand margin like this one to the left.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 4 of 38
New items
Glossary
The following definitions, abbreviations and acronyms may be used in this document: Actual IP address The IP address with which a device has been configured. What the device knows as its own address. Often known as the local IP address. Apparent IP address The IP address that appears to belong to a device. This is the address that is used for accessing a device from outside the LAN that the device resides. The use of NAT dictates that the apparent address will be different than the actual address. The apparent IP address is often known as the global IP address or public IP. see BACnet Ethernet see BACnet/IP Any device, real or virtual, that supports digital communication using the BACnet protocol. BACnet over Ethernet a method for encapsulating BACnet messages with an Ethernet wrapper to be transmitted on a network type that uses the Ethernet protocol. BACnet Ethernet is non-routable. Two or more BACnet networks that are interconnected with one or more BACnet routers. A BACnet MAC address must be unique per network. This address takes one of two forms, either a one or six octet address. The form of the address is determined by the network type. If the BACnet MAC is from an MS/TP network the MAC will be just one octet, this means it will have a value of from 0 255 decimal or 0 FF hexadecimal example 63 or 3F (the same value). The MS/TP MAC address is the same as physical address (DIP switch setting). It will be unique because each separate MS/TP network must have a unique network number. If the BACnet MAC is from a B/Eth network the MAC will be the same as the network interface MAC, a six octet value that will normally be expressed as a hexadecimal number with the octets commonly separated by dashes example 00-13-CE-53-B3-E9 (hexadecimal). If the BACnet MAC is from a B/IP network the MAC will be derived from the combination of IP address plus UDP port number. This
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 5 of 38
provides a six octet value (4 octets from the IP address plus 2 from the port number,) that when expressed in hexadecimal will appear just like a B/Eth MAC address example 10.1.142.181:47808 (decimal) or 0A-01-8E-B5-BA-C0 (hexadecimal) BACnet router A device that communicates on two or more BACnet networks and routes BACnet messages between those networks. Do not confuse BACnet router and IP router. BACnet over IP a method for encapsulating BACnet messages with an IP wrapper to be transmitted on a network type that uses the Internet protocol. BACnet Broadcast Management Device a device used for transmitting BACnet broadcast messages across IP routers to a different network or subnet Also known as pull apart or pull up/pull down resistors provide a voltage differential on the communication conductors. Device object instance number. End Of Line terminating resistor, the value used for MS/TP is generally 120 Ohm. One is required at each end of the communications bus. A communication protocol and physical network specification that is the basis for much of todays network infrastructure for business and home LANs and WANs. A number used to identify a BACnet object. BACnet object instance numbers must be unique within a device per the object type. Device object instance numbers must be unique within a BACnet internetwork. Two or more networks connected by routers. Networks in an internetwork share information and services. Internet Protocol a common communication protocol that is used extensively on the Internet and widely used for home and business networking. A network device that forwards packets from one network to another using the IP protocol. see Actual IP address
BACnet/IP
BBMD
Ethernet
Instance number
Internetwork IP
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 6 of 38
see Apparent IP address Master Slave / Token Passing a BACnet network specification based on the EIA-485 (formerly RS-485) standard An MS/TP device that passes the communication token to other devices. Any MS/TP master must be capable of regenerating the token after a loss of communications. All MNB devices are MS/TP masters during normal operation. An MS/TP device that does not pass the communications token and communicates only when an MS/TP master makes a request. Network Address Translation a method for conserving IP addresses by assigning private IP addresses on a LAN and using a NAT router to translate those actual addresses to the apparent addresses that are outside the LAN, that is on the Internet. An object identifier is the combination of an objects type and its instance number. Object identifiers must be unique within a BACnet device. A binary number consisting of eight digits. An octet is often expressed as either a decimal or hexadecimal number for ease of human understanding. The value of an octet may be from 0000000011111111, these are the same as decimal values 0-256 or hexadecimal values 0-FF. see Apparent IP address Receive Data Transmit Data Communication between a single sender and a single receiver over a network. A message directed to a single device. Virtual Private Network extension of a private network that encompasses links across shared or public networks like the Internet using a secure tunnel. There are many types of VPNs, for our use with B/IP we mean remote access of computer to a private LAN using a client/server process through a tunneling protocol. WorkPlace Balance Tool
Object identifier
Octet
WPBT
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 7 of 38
WPCT WPT
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 8 of 38
1.
Architecture overview
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 9 of 38
Web Browser
Enterprise Server
LAN - BACnet/IP
BACnet router MS/TP Optional serial converter USB or EIA-232 to EIA-485. See note 1. Serial converter
120 ohm 120 ohm
MS/TP
120 ohm
MNB-x
MN-Sx
MNB-x
MN-Sx
MNB-x
MN-Sx
MNB-x
MN-Sx MN-Sx
MNB-x
MNB-x
MN-Sx
Total number limited to the lesser of 127, the UNC resource limit or the BACnet point limit. MNB-x
MN-Sx
Total number limited to the lesser of 127, the UNC resource limit or the BACnet point limit.
Total number limited to the lesser of 127, the UNC resource limit or the BACnet point limit. MNB-x
MN-Sx
MNB-x
120 ohm 120 ohm
MN-Sx
MNB-x
120 ohm
Note 1: When using the optional EIA-485 (RS-485) converter, it is important to do one of two things. One is disconnect the routing device above the MS/TP bus from the network when using the Commissioning Tool. Alternately; number two is configure the communications for the WorkPlace Tool suite to connect to the local network rather than global. If the tool is not limited to the local network either physically or with the communications setup, who Is messages generated from the commissioning tool will find all controllers on the entire internetwork and in this process will slow down or stop existing network traffic Note 2: All I/A Series controllers (UNC-520 and MNB-x) that can use BACnet MS/TP communications are capable of operating from 9.6k to 76.8 k baud, with one exception. The UNC-510 controllers should be limited to 19.2 k baud for proper operation. If an MS/TP network exists under a UNC-510 it should be configured for either 9.6k or 19.2k baud.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 10 of 38
2.
Although this document focuses on best practices, the items listed here are more than just best practices, these are mandatory. These rules must be followed for any BACnet project.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 11 of 38
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 12 of 38
No duplicate addresses!
It is imperative that the physical address (meaning node number, MS/TP MAC address or DIP switch setting) not be duplicated on any one MS/TP network. There is no reliable means for detecting duplicate physical addresses on an MS/TP network. WorkPlace Commissioning Tool (WPCT) may or may not detect multiple controllers with the same address. Duplicate addresses can exhibit multiple symptoms and will usually cause many of the controllers on the network to not communicate. If two controllers are set to the same physical address, the token will either be lost or be generated twice thus causing collisions. When two controllers are set to the same physical address, it will appear that part of the network will be up and part will be down. Controllers will come and go for no reason. The duplicate address cannot be determined by which controllers are up or down. The only method to reliably identify multiple controllers with the same address is to physically check each controller on the network. Often the MS/TP network can be temporarily divided into smaller sections. This can isolate the problem to a smaller area assisting in determining the location of the problem so that not every device address need be verified. Note: Any tool (WPT, WPCT, WPBT or other) that connects directly to the MS/TP network (not through a router) must have a unique address also. If your tool appears to be communicating but will not join the token passing check for address conflicts.
Install terminators
Do not forget to install or enable End of Line (EOL) resistors (120 Ohm) as terminators on both ends of the MS/TP network. Failure to do so may result in intermittent communications. Terminating resistors help to reduce signal reflections and RF interference, hence they are important. Ensure that only two terminators are used, one at each end (of the daisy-chained network). More than two terminators can excessively load the network and disrupt communications. Make sure that the MNB-300 and MNB-1000 controllers EOL jumpers are set correctly. Multiple EOL resistors on a network beyond the first and last device will cause intermittent communications.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 13 of 38
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 14 of 38
3.
The following guidelines will assist in maximizing the efficiency of an MS/TP network.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 15 of 38
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 16 of 38
Attention should also be paid to the wire distance between the central transformer and the secondary loads, especially in the case of half-wave input devices like the MNB-V series and MNB-300 controllers. With half-wave type input devices, significant AC input current spikes can occur during the positive half-cycle of the AC input. Large resistances due to the wire lengths can cause significant voltage drops as seen from the controller AC input. In extreme cases, the controller may enter the read-only mode at apparent AC voltages exceeding 20VAC due to the asymmetrical nature of the AC input voltage waveforms. In these cases, reducing the load on the transformer, reducing the wire length between the controller and the transformer, and using higher current rated wire will correct the problem.
Repeaters
Existing installations utilizing EIA-485 communications may have repeaters installed. These will generally have been required when the network total length is over 4000 feet or the device count is over 32. These repeaters will not work for BACnet MS/TP and must be removed before converting the network to MS/TP. IBS has not approved the use of any MS/TP repeaters at this time. If the length of the network will exceed 4000 feet, other provisions will need to be made such as creating multiple MS/TP networks.
A device knows that it is the highest addressed device one of two ways. The first way is if its address matches its MaxMaster value. The second way that a device knows it is the last (highest) device is if it cannot pass the token to any other devices with a higher address. To conserve communications bandwidth on an MS/TP network, a device that cannot pass the token to another device will ignore the missing device or devices. A missing device cannot be ignored forever though, so at a specified interval (50 token passes) a poll for master is initiated where the device asks consecutively for any devices between its address and its MaxMaster value. If the devices do not exist, this can waste time while the missing devices are being polled. Due to this wasted time spent trying to find missing devices you may want to tune the MaxMaster property for a gain in performance. This will be a small performance gain and may not be of benefit unless your MS/TP network is heavily loaded (lots of polled points). Tuning the MaxMaster property will be done by setting it to a value that is just one or two higher than the highest address on the network. This will be done for all controllers except address 0, the router (or area controller). It is of no benefit to set MaxMaster for device address 0 less than 127 because we want that device to always be able to find any missing devices, for instance if part of a network goes down. The reason that we set the value of MaxMaster higher than the highest address is so that a tool (WPT/WPCT) can have addresses available for joining the network. A device cannot join unless an empty address space is available.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 18 of 38
New!
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 20 of 38
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 21 of 38
New!
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 22 of 38
Do not link to any of the points in this container. Using this PollOnDemand container to store BACnet objects will prevent unnecessary polling of values. Create a second PollOnDemand container. Use this container for developing your graphics; PollOnDemand containers are usefull only with GxPages, as the point values are only updated when the GxPage is active. Transfer the point shadow objects to the appropriate container as needed. o Points for graphics into a PollOnDemand container. o Points that need to update continuously into other containers Once the database is complete, simply delete (if desired) the original PollOnDemand container named Holding or Store and you will have cleaned up any unused points. o
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 24 of 38
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 25 of 38
New!
Figure A-1: MS/TP network With the maxMaster of all devices set to the default value of 127, all controllers should join the network and automatically start passing the token. Token passing originates from the lowest device on the network (UNC) and passes to the next device and from that device to the next until it reaches the last device on the network. The last device is determined when
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 26 of 38
a device can find no others with a higher address, or the maxMaster value equals the devices address. The last device returns the token to the first device to begin the cycle again. In this scenario, as seen in Figure a-2, all masters are passing the token. A considerable amount of time is involved in this token passing.
Figure A-2: MS/TP network token passing In an MS/TP network, devices can make requests and send COV data only during the time that they have the token. COV subscription (peer-to-peer communications) is not yet implemented in the MNB devices. Because the MNB devices do not use COV and they do not make requests, they have no need to receive the token. Due to this, the time spent on passing the token is not utilized. When a master device communicates with a slave device it uses request/response messaging. The master requests an action (such as read or write), the slave responds with an action (answer). This is exactly the same action as when a master device interacts with another master without using COV subscription. Since the action is the same we can improve the performance of the network by simulating a master/slave situation. This is done simply by preventing the passing of the token.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 27 of 38
In simulated slave mode we will restrict the token passing to only two devices. These two devices will control the token, passing it back and forth, thus preventing any other devices from receiving the token. See figure A-3.
Figure A-3: Simulated slave mode As we see in Figure A-3, the token passing is greatly reduced saving time to pass data. This does however present a problem for us; if the token is not passed there will be no way for a tool to work the network. Without token passing we cannot browse for devices or upload/download devices. This problem is taken care of in two ways depending on how we are connecting to the network. The first method is used when connecting a tool to the MS/TP network via B/IP through a router. We must temporarily change the maxMaster value of device 1 back to 1 or 2 higher than the total number of devices. While the maxMaster is set to a high value the token will be passed around the entire MS/TP network. When finished the MaxMaster of device 1 will need to be returned to 2. The second method is shown in Figure A-3. Device 2 has been re-addressed to be the last device. Devices 0 and 1 have had their maxMaster values set to 2. Setting the maxMaster to 2 while having an empty slot at address 2 makes device 1 the last device.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 28 of 38
With device 1 being the last device it passes the token to 0 until it finds that a tool has connected at address 2. The tool needs to have a large maxMaster value so it will pass the token to device 3 which passes to 4 and so on. The results of this are shown in Figure A-4.
Figure A-4: Simulated slave mode bypassed by a tool connection Note: Anytime that the full token passing is in effect, either by changing maxMaster of device 1 or by connecting a tool to the network with a serial converter, the performance will be degraded to the previous performance level. Note: The same technique can be used with two open slots by re-addressing devices 2 and 3 and setting maxMaster of device 1 to 3. This would allow two tools to join the network at one time.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 29 of 38
New!
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 31 of 38
Subnet 10.1.137.0
Subnet 10.1.142.0
Subnet 10.1.144.0
Foreign Device WPT/WPCT May register with any BBMD IP 10.1.144.91 Mask 255.255.255.0 GW 10.1.137.200
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 32 of 38
Figure B-2: MNB-1000 property sheet - IP tab All properties on the IP tab of the MNB-1000 property sheet must be entered: Enable IP Port Network Number must be unique per internetwork, this means that all B/IP devices that will share data with each other must have the same network number IP address must be static, or a reserved DHCP address Subnet mask Default gateway must be included, this is the address of the router interface UDP port the default is 47808 (0xBAC0) Device type o Standard IP device used for most devices
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 33 of 38
o o
Figure B-3: MNB-1000 property sheet - BBMD tab On the BBMD tab the IP address and UDP port number and the distribution mask should be entered for each other BBMD that exists on this BACnet internetwork. The UDP port for all B/IP devices must be the same, so set the port the same here as on the IP tab. The distribution mask determines how the broadcast messages are sent between subnets. Most LANs will use two-hop distribution and two-hop should always work, whereas one-hop will only work if the LAN is configured for it. Always leave the distribution mask at 255.255.255.255 (FF:FF:FF:FF) unless the LAN has been configured for one-hop distribution. If the network is set for one-hop distribution you will get the distribution mask from IT personnel.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 34 of 38
Figure B-4: VPN access The firewall must be setup to open the B/IP UDP port when using a VPN. In most cases the VPN will be a part of or behind the firewall and will be constrained by firewall rules.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 35 of 38
Figure B-5: BACnet/IP local connection In Figure B-5 the workstation is located on subnet 10.1.144.0 and is acting as a local BACnet/IP device (Local IP Address: 10.1.144.52). BACnet messages will be sent on the local subnet and any BACnet/IP devices using the same UDP port number (47808) that are also on this subnet should communicate with the WPT/WPCT.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 36 of 38
Figure B-6: BACnet/IP Remote Connection In Figure B-6 the workstation is located on subnet 10.1.144.0 (10.1.144.52) but it is communicating with a BBMD on subnet 10.1.137.0 (at IP address 10.1.137.6). With this setup all BACnet communications will be directed to the BBMD and processed by the BBMD as required by its router table, broadcast distribution table and foreign device table entries. The BBMD will direct any responses that it receives back to the WPT/WPCT. Note: With a remote connection, devices (if any) on the local subnet will not appear in the WPT/WPCT. In Figure B-6 above the BACnet/IP devices located on the 10.1.144.0 subnet will not be shown on the list. Only devices having their communications directed through the BBMD will be shown. WPT/WPCT will automatically register as a foreign device to a BBMD when Access a remote internetwork is chosen for the connection type. This is selected as shown in Figure B-7. A networked PC may have multiple IP addresses. This might come about due to having multiple network interfaces (wired Ethernet and WI-FI wireless) or multiple services that provide IP addresses (company LAN and VPN network). The possibility of multiple IP addresses necessitates the ability to choose which IP address the WPT/WPCT will use. As shown in Figure B-7 this can be changed in the BACnet Communications Settings-IP Protocol dialog window. The Local IP Address and Subnet Mask field will list all available IP addresses and allow any to be chosen for BACnet/IP communication. It is necessary to select the correct IP address to open communications between the tool and the devices you wish to talk to. This chooses
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 37 of 38
the local BACnet/IP address that will be used and will therefore also select the specific interface associated with that address.
Figure B-7: WPT/WPCT BACnet/IP Connection Setup In addition to setting the IP address that will be used BACnet/IP needs a specific UDP port. The default port for BACnet/IP is 47808 (0xBAC0), if the port of the network that you are connecting to has not been changed you may leave the UDP port field empty and 47808 will be used. In Figure B-7 the port has been set to 47817 (0xBAC9) as the remote network uses this port number. To connect to a local network, select the Access a local internetwork radio button. To connect to a remote network select the Access a remote internetwork radio button and enter the IP address of the BBMD that will provide the interface to the remote network.
Confidential Information for TAC - Invensys Building Systems Employees and Affiliates 2006 TAC All Rights Reserved. Page 38 of 38