Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/265166507

RS-485/MODBUS based Intelligent Building Automation System using


LabVIEW

Conference Paper · January 2010

CITATIONS READS

4 489

2 authors, including:

Jignesh G. Bhatt
Dharmsinh Desai University
33 PUBLICATIONS   63 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Solar City Smart Grid Project View project

Investigation on control valve sizing for controllability enhancement View project

All content following this page was uploaded by Jignesh G. Bhatt on 31 August 2014.

The user has requested enhancement of the downloaded file.


RS-485/MODBUS based Intelligent Building Automation System using LabVIEW

Jignesh G. Bhatt H.K. Verma


Instrumentation & Control Engineering Department Electrical Engineering Department
Faculty of Technology, Dharmsinh Desai University Indian Institute of Technology Roorkee
Nadiad 387 001, Gujarat, India Roorkee 247 667, Uttarakhand, India
e-mail: jigneshgbhatt@gmail.com e-mail: hkvfee@gmail.com

Abstract—Building automation systems (BAS) are A. Automation Subsystem


transforming from the legacy stand-alone security and safety (i) Internal Climate Control
systems to intelligent computerized network based solutions. This includes ambient temperature and humidity control
This paper presents the design of a three-layer BAS for a and allows the homeowner (or user) to control the
residential building. Sensors and MODBUS compliant digital building's heating and air conditioning systems locally as
I/O DAQ modules are wired to form an RS-485 network at well as remotely.
field level, that are connected to a PC based main controller.
The design incorporates central servers for-(i) OLE for Process
(ii) Lighting Control
Control (OPC), (ii) Camera, (iii) Graphical User Interfaces
Lighting of building is a major contributor to monthly
(GUIs) and (iv) Entertainment. A local or remote workstation
electricity bill that can be reduced significantly by
working as a client can access all functionalities using intranet controlling switching frequency and ON/OFF timings of
or internet respectively. RS-485 network is used for the time- electric lights in a prefixed scheduled or on the basis of
critical process-alarm data exchange, and Ethernet backbone
ambient light intensity.
is used for high speed Client-Server communication.
Various functionalities of the BAS have been validated through
laboratory implementation. (iii) Water-Level Control
Control of water level of underground and/or overhead
tanks is very crucial – for routine activities and to tackle
abnormal occurrences like fire. Hence, availability of
Keywords- Building Automation System, Intelligent Building, sufficient water can be ensured by automatic water-level
Virtual Instrumentation, LabVIEW, MODBUS, RS-485. control that switches ON/OFF the filling pump and
discharge pump as necessary.
I. INTRODUCTION
Building Automation System (BAS) is a data acquisition and B. Security Subsystem
control system that incorporates various functionalities provided by Security camera channels can be selected for viewing,
the control system of a building. Modern BAS is a computerized, camera control and to monitor activity. Motion sensing
intelligent network of electronic devices, designed to monitor and feature can be configured that will detect unauthorized
control the Lighting, Internal Climate and other systems in a movement and generate alerts via audio-visual
building for creating optimized energy usage, safety, security, annunciation. Audio-video recording of areas under
information, communication and entertainment facilities. monitoring can also be done. Past recordings can be
BAS maintains the internal climate of building within a stored on the server and replayed on demand.
specified range by regulating temperature and humidity, regulates Other major functions can be:
lighting based on parameters like occupancy, ambient light and 1. Detection of possible intrusion
timing schedule, monitors system performance & device failures 2. Detection of fire and gas leaks
and generates audio-visual-email and/or text notifications to
building O&M staff. The BAS reduces building energy 3. Medical alert
consumption and, thereby, reduces operational and maintenance 4. Tele-assistance
costs as compared to an uncontrolled building. A building
controlled by a BAS is often referred to as an Intelligent Building. C. Entertainment Subsystem
Typically, the functionalities like entertainment, communication The audio entertainment subsystem includes audio
and information exchange need high data rates, while the features switching and distribution on user demand. Audio
like automation, safety and security need low data rates but low switching determines the selection of an audio channel.
latency, high network reliability and data security. Moreover, the Audio distribution allows an audio source to be heard
BAS designs for residential buildings must be cost-effective and simultaneously in several locations of the building. This
affordable to common people and easy to operate without feature is often referred to as 'multi-zone' audio.
specialized training.

II. BAS SUBSYSTEMS Similarly, the video subsystem includes video switching
and distribution on user demand, and the feature is often
The BAS needed be split into various subsystems according to referred to as 'multi-zone' video. Video door entry
the basic functionalities as below: system can be integrated with the TV screens, allowing
the user to view the entrant as seen by a door camera.
D. Communication Subsystem 7. Recording of alarms in MS Excel format and
An intercom system allows communication via a maintaining history of events / alarms.
microphone and speaker between multiple rooms. 8. Remote monitoring and control facility from any PC in
Following features can be added: the Intranet / Internet.
1. Remote Control: using Intranet / Internet / PDA
with wireless connectivity.
2. Alarm annunciation. C. BAS Hardware
3. Inter-person communications. The proposed BAS system is modular in nature and has a 3-
layer architecture[3]. Modules in each layer are described below:
This paper presents a design of BAS based on a wired-network
operating on RS-485/MODBUS protocol for a residential building. 1. Field Level Modules (Layer-1)
These are also known as device level modules and consist of
For automation, MODBUS protocol is used for data sensors, actuators and controllers. Such field devices are
communication. Although not formally standardized, it is regarded ordinary ones, which are inexpensive, easy to interface and
as an open protocol[1][2]. The physical layer of communication readily available from a large number of vendors. They function
system is an RS-485 two-wire network, chosen for its simplicity, directly in the physical environment and are deployed for data
low cost and adequate data bandwidth. At the management level, acquisition and control of the environment.
the high-bandwidth Ethernet technology is used. Remote operation Examples of such Field Level Modules are the smoke sensors,
of the BAS is provided by the TCP/IP-based Intranet/Internet. glass break detectors, PIR sensors, door-window sensors, LPG
detectors, etc. Digital I/O Modules are also included here that
The next section presents a detailed design of a BAS for a perform the function of data acquisition from sensors.
residential building, including the design objectives, BAS
functions and the hardware and software of the system. The design 2. Interconnecting Modules (Layer-2)
has been validated by implementing most of the functionalities and Also known as interfacing modules, they link various networks
all the network technologies selected for the BAS in laboratory, and/or network segments together for meaningful application
and its results are reported here. The paper ends with concluding development. These modules enable various BAS modules to
notes and showing future scope of work in form of suggestions for interact either with the same protocol or by conversion of
value addition to the proposed work. protocol. They are also used to provide network range extension,
isolation and interfacing at various levels of ISO/OSI Model.
III. DESIGN OF BAS For example an RS485/RS232 convertor used in the proposed
BAS is an Interconnecting Module.
A. Design Objectives
3. Management and Configuration Modules (Layer-3)
Following are the design objectives of the proposed BAS for
residential buildings: The main purpose of these modules is to configure and manage
1. Energy conservation by switching off lights when not various functionalities of BAS. They can be accessed locally or
remotely. Such modules are deployed for monitoring,
required.
controlling, logging and archiving the processed data values.
2. Security of residents from intruders.
They function at the backbone level and provide GUI for
3. Safety against fire and gas leakage.
monitoring and control using the data collected from the both
4. Remote operation (control) of any electric appliance from a
types of modules described earlier. These modules also generate
central location within the building as well as from outside
the building. audio-visual alarm annunciation with some other useful features
5. Connectivity to the Internet to meet information, e-services for user comfort.
and communication needs of the residents.
RS-485 network is implemented to construct the physical layer,
6. Access to a central digital entertainment library.
while MODBUS is chosen to implement the application layer for
7. Simple and user-friendly Human Machine Interface (HMI).
the laboratory implementation of the BAS. GUI of this system has
8. Low cost of the solution.
been prepared using LabVIEW software, and is very user-friendly.
9. Simplicity, future expandability and interoperability.
The BAS is divided into three layers as indicated in Fig. 1,
B. BAS Functions which shows only one residence with a room, a corridor, a water
tank and a lawn with main entrance monitored and controlled from
The system has been designed to perform the functions
the control room. The central servers for OPC, Camera, GUI and
mentioned below:
Entertainment as well as remote workstation, that are at the top
1. Reporting alarms and status of different areas under
coverage in the GUI. (Layer-3) forming the configuration or management modules, are
2. Alarm reporting by audio-visual annunciation. connected to the ethernet backbone and to the Internet. A PC based
3. Provides control of various devices via GUI. main controller and IP camera are at the middle layer (Layer-2).
4. Live video of view (with audio) captured by IP camera The main controller has features like TCP/IP support, Integrated
and its live streaming as well as recording facility. OPC server and multiple communication ports. An RS-485 to RS-
232 Convertor Module is also at the same layer (Layer-2) as an
5. Entertainment panel provides continuous broadcast of
interfacing module. This module performs dual functions of
live radio via GUI.
6. Entertainment panel provides unique video-on-demand protocol conversion and isolation. Various sensors and digital I/O
facility via GUI. modules forms the third and last layer (Layer-1). This layer also
consists of digital input and output (I/O) modules connected on an digital I/O modules perform data acquisition from sensors and
RS-485 network in multi-drop configuration and further to the avails control outputs of main controller to actuators.
main controller via RS-485 to RS-232 Convertor Module. These

Figure 1. Schematic of the Building Automation System.

D. BAS Software IV. LABORATORY IMPLEMENTATION


The software used in the BAS is based on OPC, an acronym The proposed BAS design has been validated by
for OLE (Object Linking and Embedding) for Process Control. implementing most of its functionalities in laboratory.
Its purpose is to provide standards based vendor independent The laboratory implementation of three layer BAS is shown
infrastructure for data exchange[4][5]. on a panel in Fig. 2. It provides the functions of automation,
OPC is based on client-server architecture and enables a fully safety, security, communication and entertainment.
scalable solution for future changes and expansion. OPC
specifications include OPC Data Access, Alarms and events,
Historical Data Access, OPC Data eXchange, access to OPC
server data through web services, etc.
The software used in the BAS is based on OPC, an acronym
for OLE (Object Linking and Embedding) for Process Control.
Its purpose is to provide standards based vendor independent
infrastructure for data exchange[4][5].
There can be multiple local or remote OPC clients accessing
the same data from single or multiple OPC servers and running
the same program.
Figure 2. Front view of the BAS Panel. Figure 4. Entertainment panel of LabVIEW GUI.

At the top layer (Layer-3), PCs acting as local OPC clients are
connected on an Ethernet LAN and that are acting as remote VI. CONCLUSION
workstations are connected using internet. At the middle layer The design implemented in laboratory employs high speed
(Layer-2), the BAS consists of a PC acting as the main Ethernet at layer-3 for establishing connection between servers
controller, OPC server and OPC client, and an IP camera and clients. Data acquisition and control in layer-1 use RS-485
connected to LAN. Data acquisition and control modules are and MODBUS protocols, which are industry standard. In this
connected on RS-485 network in half duplex mode. At the layer, application is implemented using LabVIEW GUIs. For
device level, a smoke sensor, motion detector, glass break BAS software, OPC is selected because of interoperability,
detector, door-window sensors, ambient light detector, vendor independence and other merits.
occupancy sensor, water level sensor and LEDs are connected. The BAS scheme presented here is based entirely on wired
Remote control and event notification facilities have been also network. Rewiring of existing buildings may be difficult and
implemented. costly, and hence in such cases power line and wireless
OPC server is configured in NAPOPC[6] software supplied networks can be more suitable. In fact, a mixed-network
by ICPCON configured for data exchange, while GUI based protocol at the device level could be the best solution.
OPC client has been developed on LabVIEW[7] (Graphical
Programming Environment from National Instruments) as VII. FUTURE SCOPE
shown in Figs. 3 and 4, developed for serving control and
In modern contexts, BAS is a rapidly growing phenomenon.
entertainment purposes respectively.
Emerging wired/wireless communication technologies are
V. RESULTS expected to transform the present partially networked houses
into Smart, Intelligent and Adaptive Homes. Higher and higher
penetration of automation will lead to increased device
intelligence and they would be performing their routine tasks in
vivid situations autonomously and without much human
intervention. Such smart homes will provide high level of
energy optimization, security, communication and entertainment
facilities.
Enhancement of each and every facet is important for rapid
growth and wide acceptance of BAS. Focus should be on
making BAS more and more user-friendly and a part of
residents’ routine life. Therefore, serious efforts should be made
to make BAS rugged, reliable and cost-effective as well as user-
friendly.
This work can be further extended by
1. connecting GSM Modem– to enable sending of SMS
alerts in case of alarm/event.
2. adding more and more functionalities to the GUI to
make it more attractive and user-friendly.
Figure 3. Front panel of LabVIEW GUI.
3. trying to build similar GUI for commercially available
Wireless Sensor Network Motes.
4. trying to build similar GUI for commercially available
power line based automation devices and home
appliances.
5. for adding more and more security, communication Proceedings 6th IEEE International Workshop on Factory
and entertainment features. Communication Systems, Torino, Italy, 2006, June 28-30, pp. 99-
102.
REFERENCES [4] OPC Overview [Online] Available: http://www.opcfoundation.org
[5] Randy Kondor, “Integrating OPC into Building Automation”
[1] MODBUS Specifications and Implementation Guidelines [Online] [Online] Available: http://www.automatedbuildings.com/news/
Available: http://www.modbus.org dec03/articles/matrikon/matri.htm
[2] W. Kastner, G. Neugschwandtner, S. Soucek, and H. M. Newman, [6] User’s Manual, “NAPOPC DA Server” [Online] Available:
“Communication Systems for Building Automation and Control”, http://www.icpdas.com/products/Software/NAPOPC/napopc.htm
Proceedings of IEEE, Vol. 93, Issue 6, June 2005, pp. 1178-1203. [7] Online Help and Technical Support Documentation [Online]
[3] W. Granzer, W. Kastner, G. Neugschwandtner, and F. Praus, “A Available: http://www.ni.com/support
Modular Architecture for Building Automation Systems”,

View publication stats

You might also like