PLCBased Real Time Process Controlusing MATLAB
PLCBased Real Time Process Controlusing MATLAB
net/publication/332680708
PLC Based Real Time Process Control Using SCADA and MATLAB
CITATIONS READS
20 2,917
4 authors, including:
Pratap Vikhe
Pravara Rural Engineering College Loni
44 PUBLICATIONS 266 CITATIONS
SEE PROFILE
All content following this page was uploaded by Pratap Vikhe on 28 September 2020.
Abstract— This paper presents real time control of process applications. One of the most efficient and easiest ways of
through Programmable Logic Controller using SCADA and exchanging real time data between Matlab and other
MATLAB OPC Toolbox. It uses KEPServerEX.V4 from automation product is using Matlab OPC toolbox integrated
Kepware technologies as OPC DA Server that works on server with OPC DA server. The Matlab OPC toolbox can be used
client architecture. In this SCADA and MATLAB are acting as with Matlab code (command prompt) or Simulink model. To
clients. The design and implementation is carried in three communicate with OPC DA server connected to PLC or
phases. In the first phase PLC based application has been other automation controllers. OPC DA Server is a software
designed, and then SCADA application were developed and tool that works on client server architecture, offers benefit of
integrated with process through OPC server. Finally,
integrating more than one client accessing data from the
MATLAB SIMULINK model is designed for accessing real
time process data. The realization of the test system has been
server in real time [2]. This feature of OPC enables us to
validated using Mitsubishi FX2N 32MR PLC, CitectSCADAv2 have Matlab as one client and other automation product like
and MATLAB. The control of process and results of test SCADA as another client accessing the process data
system show efficient and reliable exchange of real time data simultaneously.
between PLC, MATLAB and SCADA.
II. RELATED WORK
Keywords— PLC, MATLAB, OPC DA Server, SCADA,
Simulink, Real time Process control, Server – Client. In recent studies, a method of implementing remote real
time communication based on OPC between MATLAB and
PLC using Ethernet were developed by Z. lieping et al [3].
I. INTRODUCTION
In this method authors realised a real time data exchange
In many industrial automation applications, control between Matlab and S7-300 PLC by configuring PLC
system are employed to operate particular application that hardware, OPC server Matlab OPC Toolbox. In similar
involves controllers like Proportional Integral Derivative approach a method for full integration of Matlab and
(PID) controllers, Programmable Logic Controllers (PLCs), Simulink with control application development using OPC
Distributed Control system (DCS), Supervisory Control and unified architecture (UA) is proposed by H. Elfaham et al
Data Acquisition system (SCADA) etc. According to
[2].
predefined program or sequence these controllers achieves
control of a specific system in a real time. The industrial
process operations are controlled automatically and run The realization of three tank system which includes
continuously without any shutdown for months. If any nonlinear multiple input multiple output with two actuator
changes are to be made in the operation, then it requires and digital controller were demonstrated by Q. Huang and
shutting down or stopping the entire operation or specific S. sang of Guangxi university [4]. In this research work, a
section of the plant [1]. This results into significant loss of communication based on OPC technology between
time, manpower, production and cost. To avoid this problem, MATLAB and PCAuto (a popular SCADA) is presented
proposed changes can be tested into the design laboratory to and a real time improved single neuron adaptive PID level
obtain desired results, and can be implemented in real plant control system is realised. Similar research is carried out by
operation. Stojan Persin, a faculty of electrical engineering and
computer science, university of Maribor, Slovenia. In his
The industrial automation equipment such as PLC,
SCADA, DCS or PAS does not allow online testing of work author tested data transfer rate from a physical device
changes (although online programming is possible) that are into MATLAB, established communication reliability by
made in the application. This is nothing but the limitation of rating the relationship between successful and unsuccessful
these products. Therefore, the platform like MATLAB plays transfer of data and experimented the alternative method for
significant role in designing, testing, or simulating changes transferring data into MATLAB i.e. data transfers from
to be made in the industrial automation application. The Microsoft excel to MATLAB through OPC. He also has
appropriate results obtained in Matlab can be implemented suggested the use of this method in teaching the
on the manufacturing process through industrial automation undergraduate engineering students.
products like PLCs. The major difficulty is limited
connectivity of Matlab to other real time systems and
2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA)
Tag Name Data Type
inspeed1 Boolean
inspeed2 Boolean
inspeed3 Boolean
inspeed4 Boolean
mspeed1 Boolean
mspeed2 Boolean
mspeed3 Boolean
mspeed4 Boolean
start Boolean
stop Boolean
2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA)
connection between MATLAB/Simulink client and PLC
through OPC server [10] one is command prompt in 10000
RPM
commands were used for this purpose: 6000
opcregister(‘install’)
5000
info= opcserverinfo(‘localhost’)
da=opcda(‘localhost’, ‘KEPware.KEPServerEX.V4’) 4000
connect(da)
3000
get(da, ‘status’)
opcregister function installs the OPC foundation core 2000
1 1.5 2 2.5 3 3.5 4
components so that OPC Toolbox software is able to speed levels
[1] A. Pereira, C. Lima and J.F. Martins “The use of IEC 61131-3 to
Fig. 7 SIMULINK model of DC motor speed control enhance PLC control and MATLAB/Simulink Process simulations”,
IEEE International symposium on industrial electronics (ISIE), 2011.
Three OPC toolbox objects/blocks are prominently used DOI: 10.1109/ISIE.2011.5984336.
in this model are OPC configuration, OPC read and OPC [2] Haitham Elfaham, Florian Palm , Sten Gruner, Ulrich Epple, “Full
write. The OPC configuration block defines OPC clients to integration of MATLAB/Simulink with control Application
be used in a model, configures pseudo real-time behavior for Development using OPC Unified Architecture”, IEEE 14th
the model, and defines behavior for OPC errors and events. International conference on industrial informatics,france,2016. DOI:
10.1109/INDIN.2016.7819188.
The OPC read block reads data from one or more items on
[3] Lieping Zhang, Aiqun Zeng, Yunsheng Zhang, “On Remote Real-
an OPC server. The read operation takes place time Communication between MATLAB and PLC based on OPC
synchronously (from the cache or from device) or technology,” Proceedings of the 26th Chinese Control Conference,
asynchronously (from the device). The OPC write block Zhangjiajie, Hunnan, China, 2007. DOI: 10.1109/CHICC .2006
writes data to one or more items on an OPC server. The .4346760.
write operation takes place synchronously or [4] Qingbao Huang, Shaojian Song, "Real-time Control System Based on
asynchronously. Each element of input vector is written to MATLAB and PCAuto via OPC Technology" Published in IEEE
the corresponding item in Item ID list defined for the OPC international conference on intelligent computing & intelligent
write block. system, Nov. 2009, china. DOI: 10.1109/ICICISYS .2009.5358304.
2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA)
[5] Stojan Persin, Boris Tovornik and Nenad Muskinja, “OPC driven data
exchange between MATLAB and PLC controlled system”,
International journal of Engg. Education, Vol.19, No.4, 2003.
[6] KEPServerEX User manual, Kepware Technologies.
[7] Mitsubishi Electric, "MELSEC FX2N Series Programmable Logic
Controller Hardware Manual".
[8] Mitsubishi Electric, "Programmable Controller- MELSEC-F,
Programming Manual II ".
[9] Schneider Electric, "Getting started with CitectSCADA V7.2"
Manual.
[10] The Math Works Inc., OPC Toolbox for Use with MATLAB.
[11] Kadu, C. B., and C. Y. Patil. "Design and Implementation of Stable
PID Controller for Interacting Level Control System." Procedia
Computer Science79 (2016): 737-746.
[12] Jadhav, Vilas K., Chandrakant B. Kadu, and Pratap S. Vikhe. "PLC
based High Speed Steam Sterilizer." Proceedings published in
International Journal of Computer Applications, 37-41, 2012.
[13] P.S.Vikhe, N. Punjabi, C.B. Kadu, “Real Time DC Motor Speed
Control using PID Controller in Lab VIEW”, International Journal of
Advanced Research in Electrical, Electronics and Instrumentation
Energy, Vol.3, Issue 9, 2014.
[14] P.S.Vikhe, N. Punjabi, C.B. Kadu, “DC motor speed control using
PID controller in lab view”, Int. J. Innovative Sci. Mod. Engg, 2015.
[15] R. Salunke, P. Vikhe, T. Sarode, “Implementation of automatic PLC
code from MATLAB simulation model using B&R automation target
for Simulink”, Int. Conf. on Control, Communication and Power
Engineering, January,2013.
[16] Ujjwal Deep Dahal, Dhendup Cheten, “Substation Automation:
Matlab and OPC driven substation monitoring system”, Published in
IEEE international conference on microelectronics, computing and
communication (microcom), 2016. DOI: 10.1109/ microcom.
2016.7522566.
2018 Fourth International Conference on Computing Communication Control and Automation (ICCUBEA)