Design and Simulation of A Monitoring Electrical Energy Consumption System Based On PLC Techniques

You might also like

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

st rd

2018 1 International Scientific Conference of Engineering Sciences - 3 Scientific Conference of Engineering Science (ISCES)

Design and Simulation of a Monitoring Electrical


Energy Consumption System based on PLC
Techniques
Hassaan Th. H. Thabet
Department of Electrical Technology, Technical Institute of Mosul
Northern Technical University
Mosul, Iraq
engineer.h.thabet@gmail.com

Abstract— This paper presents a simulation of a smart Therefore, this paper aims to design and simulate a smart
monitoring system based on programmable logic controller control system that is simple, low cost, comfortable, and able to
(PLC) techniques which monitor the power consumption of analyse the pattern of the power consumed by the load by using
industrial, residential or commercial sites. On the other hand, a PLC.
users can watch their energy consumption locally (on site) by a
Human Machine Interface (HMI) or remotely by their mobiles The PLC [1] that is the core of the system; is responsible of
via the Short Message Service (SMS) if they request that. This the following tasks:
smart control system will shut down any increase in the electrical
load as soon as it reaches the set value that is decided by the x Displaying the warning massages on site by an HMI
designer of the program by shutting down the least priority unit [1] when the load exceeds a predetermined setting
loads. Also, they could be warned either on site by HMI or value.
remotely by SMS which is referred to as "text message" using x Sending warning SMS massages to the consumer's
their mobile devices in real time via the mobile network; if their
mobile by a Communication Module Radio (CMR) [2]
power consumption reaches nearer to their predetermined set
via the mobile network when the load exceeds a
values. This paper aims to meet the needs of consumers for
electric power, which are: reduce the cost of electrical power predetermined setting value.
consumption and maintain the continuity of processing and x Shutting down the least priority loads when the main
handling of this vital energy. load reaches or exceeds the predetermined setting
value.
Keywords— PLC, Power consumption, HMI, SMS
x Displaying the current value of the electrical power
I. INTRODUCTION consumption of the load via the HMI (locally) on site
In any industrial, residential or commercial plants, the most and by SMS on the mobile (remotely) if requested by
important topic is to sustain the electrical power and save the user.
energy and cost. When implementing industrial or building As the power consumption reaches nearer to the set value;
automation, the aim is to plan an efficient energy system. The the PLC automatically shuts down the least priority loads
electrical energy consumption of industrial sites, residential or through contactors as seen in Fig. 2 and hence reduces the
commercial buildings shall be measured and monitored. If the electrical power consumption and slows down the rate of
energy consumption exceeds a certain limit as seen in Fig. 1, consumption.
the users shall be informed remotely via their mobiles and
locally on site. Also, reading the actual energy consumption Many papers and engineering sources [6, 7, 8] have
will be possible locally on site at any time by HMI. discussed the consumption of the electrical energy at
residential, commercial and industrial sites which becomes an
important problem in the energy management of the previous
KWh Warning Massage mentioned sites.
Max. For example; Jose A. Afonso et al [9] designed and
implemented a wireless system that monitors the electrical
energy consumption of residential areas; Sunna Bjorg [10]
suggests the application of smart grid techniques to monitor the
electrical energy consumption.
TIME(t) The previous papers suggest different solutions to monitor
the electrical energy consumption and how to reduce it for both
Fig. 1. Limits of the power consumption the companies producing electricity and end users; but they
neither provide how to determine the level of the electrical

978-1-5386-1498-3/ 18/31.00$©2018 IEEE

226
st rd
2018 1 International Scientific Conference of Engineering Sciences - 3 Scientific Conference of Engineering Science (ISCES)

energy to be consumed nor how to maintain this level; whereas


our system can provide both the monitoring and the controlling
of the electrical energy consumption level of the load.
Power Supply

From Energy Meter

INPUTS

PLC
Ethernet
HMI CMR

OUTPUTS

Least Priority C1 C3
Loads C1,C2,C3,C4 (Contactors)
L1 L3
(For Example)
L1, L2, L3, L4 (Loads)
C1 C4

L2 L4

Fig. 2. General scheme of the system


Fig. 3. System Description
Fig. 2 describes the general scheme of our system that
consists of The PLC, which is the core of the system. It The basic working principle of this system depends on one
receives digital signals (as inputs) from the digital energy of the features of the digital energy meter used [3]. This energy
meter; processing and calculating these inputs in order to meter has a property of producing pulses that are analogous to
decide which contactors to be activated or deactivated (as the disc which revolves specific number of times for a given
outputs) according to the designed set point of the electrical energy consumption in analog energy meters, the speed of its
power consumption; so by this way the electrical power revolutions is directly proportional to the electrical energy
consumption of our load is monitored and controlled. The PLC consumption at a given instant. In the same way in a digital
is connected to HMI by an Ethernet cable for displaying energy meter, the rate of pulses of the digital energy meter is
information, warning messages and activating the alarm system also directly proportional to the electrical energy consumption.
for users in the site. Also, the PLC is connected to the CMR via The energy meter constant of this type of digital energy meter
an Ethernet cable in order to contact the mobile of the remote is 500pulses/KWh [3]. By counting those pulses, it will be easy
user by sending a warning SMS when the electrical power to calculate the power consumed by the load. To count these
consumption exceeds a predetermined value. pulses [4], a PLC is used to do this job automatically by
connecting one of its high speed digital input ports to the pulse
II. SYSTEM DESIGN output port of the digital energy meter in order to receive these
As presented in Fig. 3; our system consists of the following pulses, calculate the power consumption; control and monitor
hardware components [1, 2]: this consumption with warning massages. The PLC's outputs
are connected to four actuators (contactors) to supply the load
x Programmable Logic Controller (PLC): 8 Digital and connect or disconnect the least priority loads depending on
Inputs; 4 Analog Inputs; 4 Relay Outputs; 12/24 DCV the electrical power consumption limit decided by the designer.
power supply; Ethernet port.
The PLC is connected to a CMR via Ethernet cable; this
x Digital energy meter: Meter Constant = 500 Pulses / device can send SMS massages (via a SIM Card) to a mobile
KWh. device by creating a trigger to insert the count value of the
x Communication Module Radio (CMR): 1 Ethernet port; counter in the memory mapping table of the PLC as a
SIM card for the local mobile network connection. parameter in the program [1, 2]. Also, a variable of the same
memory address can be created in the configuration of the
x Human Machine Interface (HMI): Type LOGO! TDE CMR to receive the requests from the consumers' mobiles [2].
text display (6 lines; 3 background colors; 2 Ethernet
ports). III. SOFTWARE DESIGN AND SIMULATION
As mentioned in [4],
x Mobile device.
Number of pulses Energy consumption made (1)
x Actuators: Power contactors (coil voltage 24 volts;
power voltage 220 volts) for different types of loads. The energy meter forwards the energy consumption to PLC
in form of pulse signals; the PLC will evaluate these pulse
signals. If the number of the measured pulse signals exceeds a
definite set value, this will be interpreted as an error. As soon

227
st rd
2018 1 International Scientific Conference of Engineering Sciences - 3 Scientific Conference of Engineering Science (ISCES)

as an error occurs, a warning massage is sent from CMR to the 3 1500 3


user via SMS (remote monitoring). The warning massage is
output also on the HMI (local monitoring). This warning 4 2000 4
massage can be acknowledged locally by the user via the HMI.
The energy-based pulse count of the energy meter (meter The current electrical energy consumption of the load can
constant) is 500 pulses/KWh [3], that is, if this number of be read at any time via SMS and HMI. To read the current
pulses (500 pulses) is measured in one hour, the electrical electrical energy consumption of the load via SMS, a trigger
energy consumed by the user is 1 KWh as shown by equation must be created, the count value of the counter must be inserted
(2). in the memory mapping table of the PLC by an analog
multiplexer function block shown in Fig. 6 which has the same
From the previous information; we can get the following memory address as the network analog input in our PLC
fact: program [1].
"In our program, the electrical energy consumed by a user The flowchart in Fig. 5 demonstrates the whole situation.
as pulses can be evaluated by means of counters within an
evaluation time of 7.2 seconds" [4].
START
Fig. 4 explains this fact; when one pulse is presented within
the previous mentioned time (7.2 seconds); this means that period =7.2 seconds
energy consumption is 1 KWh; when two pulses are presented
within this time; it means that energy consumption is 2 KWh
and so on. Set Reference Value (X)
X=No. of Pulses / 7.2 seconds

4KWh
PLC recieves pulses from
3KWh Energy Meter & evaluates them

Warning Massage locally on site


Pulses 2KWh No
IS
No. of pulses =< X Acknowledgment
1KWh ?
Yes PLC shuts down
1 2 3 4 the least priority loads

Actual value of load


consumption
Displayed on HMI Waring SMS by CMR
User's Mobile
via Ethernet
t
7.2 sec. No Yes SMS by CMR via Sim card
Is there to the consumer's mobile
any requests from indicating the actaul value
consumer's mbile? of the the electrical power
Fig. 4. Time evaluation of pulses consumption

Let Y is the number of pulses/hour and P is the number of


pulses, then
Y= 3600 * P/7.2 (2) Fig. 5. Main flowchart of the simulated system

From equation (2); the following table is constructed: The design of the simulation model, in this paper, mainly
adopted the technology of the controller type (PLC LOGO!
TABLE I. THE RELATION BETWEEN PULSES AND KWH v8.0) and the software (Soft Comfort v8.0) from Siemens [1]
as they are inexpensive, simple and containing high
P Y KWh specifications as compared with other conventional systems.
1 500 1 Fig. 6 shows the program which receives the pulses from the
digital energy meter and how it evaluates them.
2 1000 2

228
st rd
2018 1 International Scientific Conference of Engineering Sciences - 3 Scientific Conference of Engineering Science (ISCES)

Analog Threshold Trigger

OFF Delay Timer


The Multiplexer

Fig. 6. The program which receives the pulses from the digital energy meter

The actual energy consumption of the load is displayed on The description of the above statement is shown in the
site by an HMI as presented in Fig. 7, it shows the real time program; Fig. 6. An analogue network input (NAI1) was
and date with the value of the actual energy consumption in projected in the PLC program for any value change of the
KWh. This value is displayed graphically by a bar curve. analogue output of the analogue multiplexer; as soon as an
analogue value (at least the value "1") is written in the
analogue network input (NAI1); a specified input of the
analogue multiplexer is set and the analogue multiplexer will
output that value; which will create the trigger for sending an
SMS.
The output of the analogue multiplexer is set back to its
initial value "0" by an OFF Delay timer after 2 seconds. As
long as both the output of the analogue multiplexer and the
Fig. 7. The display of the HMI onsite
analogue network input (NAI1) have the same memory address
When the load exceeds the predetermined setting value, a such as, VW10; as shown in the program in Fig. 6; so NAI1 is
red warning message is displayed on the HMI as seen in Fig. 8. also set to "0". A new trigger can be created any time for
This massage can be acknowledged by the user via the HMI sending SMS by inserting an analogue value in the analogue
itself as described in Fig. 6. network input (NAI1).
The Ethernet connection is shown in Fig. 9; each device has
its own IP address; for LOGO! 8, LOGO! TDE and LOGO!
CMR, an IP address and a subnet mask must be assigned to
each of them so they are located in the same subnet [5].

Fig. 8. The onsite warning massage

To send a warning SMS massage to the consumer's mobile,


a trigger must be created by configuring the CMR in the
following way [5]:
"In case of any value change of the analogue output of the
analogue multiplexer, an SMS is sent" Fig. 9. Ethernet connection

229
st rd
2018 1 International Scientific Conference of Engineering Sciences - 3 Scientific Conference of Engineering Science (ISCES)

IV. CONCLUSION AND FUTURE STUDY REFERENCES


This work describes an idea for the design of an electrical [1] LOGO! 0BA8; User's Manual; Ed. June 2014; SIEMENS AG;
power consumption smart system (controlling and monitoring) available online at http://www.siemens.com/logo
which is simulated by a personal computer (PC). The system [2] Simatic Net, "LOGO! – Industrial Ethernet; LOGO! CMR
2040", Operating Instructions, available online at
design and simulation illustrates an inexpensive way to
measure, monitor and control the electrical energy http://support.automation.siemens.com/WW/view/en/91689511.
consumption through user's interaction remotely via the mobile [3] Sentron. (2015). Measuring Devices and Monitoring Power.
Configuration Manual. available online at
network and locally via HMI. By a successful implementation
http://www.siemens.com/low.
of this system at any load; it can be expected to reduce the
electricity bill of the consumer as well as reducing the load [4] Y. Narendra, P.B. Bahdur, S.P. Varma, V. Srikanth and T.L.
Naidu. (2014). Microcontroller based Power Consumption
fluctuations on the main network system. The maximum Monitoring and warning system. Int. Journal of Engineering
demand can be brought into tolerable limits. This system offers Research and Applications. Vol.4, Issue 4 (Version 4), pp. 121-
the following advantages if implemented in real life: 128.
[5] Monitoring Energy Consumption with LOGO! 8 and LOGO!
x Saves energy and costs by means of early warnings CMR, SIEMENS AG 2015, available online at
(locally or remotely) and controlling the consumed https://support.industry.siemens.com/cs/document/109062859.
load. [6] Alberta Department of Environment and Water. (2012). Real-
Time Electricity Consumption Monitoring. Alberta Department
x Reads the current energy consumption locally or of Energy.
remotely; if requested by the user. [7] Stinson, Jonathan Willia. (2015). Smart energy monitoring
technology to reduce domestic electricity and gas consumption
x Maintains the sustainability of the electrical power through behavior change. Ph.D. Thesis. University of Edinburgh
supply and reduces frequent electrical power Napier.
interruptions. [8] Nader, Wisam. (2011). Real-Time Power Monitoring, Home
Automation and Sustainability, Master thesis, University of
In case of future works: Nebraska.
x This system could be connected to the maximum [9] Jose A. Afonso, Filipe Rodrigues, Pedro Pereira, Henrique
demand controller in order to control both the Goncalves and Joao L. Afonso. (2015). Wireless Monitoring and
Management of Energy Consumption and Power Quality
maximum demand and the consumer's electricity bill. Events. Proceedings of the World Congress on Engineering.
Volume I, London, U.K.
x Making the system able to change the level of the
[10] Bjorg, Sunna. (2013). Monitoring and Reducing the
electrical power consumption manually (locally or consumption of home electric appliances. Master thesis,
remotely) by the consumer. University of Groningen.

230

You might also like