Comparison of MATLAB Simulink application with PLC application of ‎real-time classical ‎PID controllers in laboratory

Bassam Mohsin Atiyah, Saber Hameed Yadgar, Murad Ghazy Khalaf Alabdullah


Process control is a common area of study for different engineering disciplines. Controllers working ‎with ‎the ‎proportional–integral–derivative (PID) method are generally used in process control. ‎Parameters like ‎level, ‎flow, position, pressure, and temperature are controlled in-process control. PID ‎algorithm can be ‎formed ‎with different microprocessor-based devices. Process control is ‎implemented by using analog input ‎and ‎outputs terminals of PLCs (Programmable logic controller) ‎which is recently the most commonly used ‎in ‎industries. Also, a real-time PID method can be ‎implemented by using a computer-based ‎MATLAB ‎
‎program in the laboratory.‎
The liquid level and flow control in the laboratory has been done by using PID algorithms and ‎PLC ‎device ‎and MATLAB real-time interface by using an experimental set. Necessary connections ‎and ‎configurations have ‎been prepared to perform process control. (SIMATIC Manager Step7) is ‎used for ‎programming in PLC. ‎Besides, the MATLAB simulation program is configured to implement ‎real-time ‎control to be ‎compatible with the MF624 data acquisition card. Liquid level and fluid flow ‎control ‎experiments were ‎performed separately for the same PID algorithms formed on two different ‎devices, then ‎liquid level ‎detection and liquid flow control results have been collected and ‎investigated. Based on these ‎results, a total ‎of four experiments were compared with both devices ‎considering the ease and difficulties of ‎using PLC and ‎MATLAB.‎


PID, PLC, Level Control, Flow Control.‎

Full Text:




‎[1]‎ ‎ Aström K.J. and Hagglund T, PID Controllers: Theory, Design and Tuning. 2nd edition, NC: ‎Instrument Society of America (3), 59-117, 1995.‎

‎[2]‎ Graham C. Goodwin, Stefan F. Graebe, Mario E. Salgado, Control System Design, (6), 157- ‎‎172, 2000.‎

‎[3]‎ Real-Time Workshop User's Guide, the Math Works Inc., September 2000.‎

‎[4]‎ Jing-Chung Shen Huann-Keng Chiang, PID Tunning Rules Of Second Order Systems. ‎Department of automation Engineering National Huwei Institute of Technology Huwei, ‎Yunlin, Taiwan, 2002.‎

‎[5]‎ Gwo-Ruey Yu and Rey-chue Hwang, Optimal PID Speed control of Brushless DC Motors ‎Using LQR Approoch, IEEE international conference on systems, Electrical Engineering ‎Department I-Shou University Kaohsiung County, Taiwan, 2004.‎

‎[6]‎ A. Calvallo, A. Di Nardo, M. Di Natale and C. Natale, “An optimal fuzzy approach to ‎automated reservoir management”, IFAC’papers, July, Prague, 2005.‎

‎[7]‎ D. Sbarbaro and R. Ortega, “Averaging level control of multiple tanks: A Passivity Based ‎Approach”, CDC-ECC’05 papers, December, pp. 7384- 7389, Seville, 2005.‎

‎[8]‎ Hug Jack, “Automating Manufacturing Systems with PLC”, V4.7 (25), 622- 627, 2005.‎

‎[9]‎ M.Azzouzi, and D. Popescu, “Optimal control of liquid level”, IA’2006 papers, September, ‎vol. 2, pp. 479-488, IASI, 2006.‎

‎[10]‎ M.zzouzi and D. Popescu, “Liquid level control using optimization and identification ‎software”CONTI’2006 papers, Jun, pp. 81-84, Timisoara, 2006.‎

‎[11]‎ Berger H, "Automating with STEP 7 in STL and SCL: Programmable Controllers SIMATIC S7-‎‎300/400", Wiley-VCH, (3), 187-191, 2007.‎

‎[12]‎ M. J. Lengare, R. H. Chile, L. M. Waghmare and Bhavesh Parmar, Auto Tuning of PID ‎Controller for MIMO Processes. International Journal of Electrical, Computer, Energetic, ‎Electronic and Communication Engineering, Vol. 2, No.9, 2008.‎

‎[13]‎ Bijay Kumar, Rohtash Dhiman, Optimization of PID Controller for liquid level Tank system ‎using Intelligent Techniques”, Canadian Journal on Electrical and Electronics ‎Engineering Vol. 2, No. 11, 2011.‎

‎[14]‎ Bernard Friedland, Control System Design: An Introduction to State-Space Methods, Dover ‎Publications, ISBN: 978-0486442785, March, 2005.‎

‎[15]‎ Radu Duma, Mirela Trusca, Petru Dobra, “Tuning and Implementation of PID Controllers using ‎Rapid Control Prototyping”, Control Engineering and Applied Informatics, Vol.13, No.4, pp. ‎‎64-73, 2011.‎

‎[16]‎ Rames C. Panda, Introduction to PID Controllers: Theory, Tuning and Application to Frontier ‎Areas, ISBN: 978-953307927-1, DOI: 10.5772/2422, February, 2012.‎

‎[17]‎ Marjan Golob, Bozidar Bratina, “Web-Based Monitoring and Control of Industrial Processes ‎Used for Control Education”, The International Federation of Automatic Control, Sheffield, ‎UK, August 28-30, 2013.‎

‎[18]‎ Swetla Barwal, Hari Mohan Rai, Seema Das, Rinku Sanghwan, “PID And Fuzzy-PID ‎Controller ‎For Various Electrical Machine Applications: A Comparative Study”, International ‎Journal ‎of Advanced and Innovative Research (2278-7844), Vol. 2, No. 11, 2013.‎

‎[19]‎ H.I Jaafar, S.Y.S Hussien, N.A Selamat, M.S.M Aras, M.Z.A Rashid, “Development of PID ‎Controller for Controlling Desired Level of Coupled Tank System”, International Journal of ‎Innovative Technology and Exploring Engineering (IJITEE), ISSN: 2278-3075, Vol. 3, No. 9, ‎February 2014.‎

‎[20]‎ Sk Hasan Hafizul Haque, H. M. Imran Hassan, S. M. Abul Hossain, “Comparison of Control ‎System Using PLC & PID”, ASEE 2014 Zone I Conference, University of Bridgeport, ‎Bridgpeort, CT, USA, April 3-5, 2014.‎

‎[21]‎ S.Y.S Hussien, H.I Jaafar, N.A Selamat, F.S Daud, A.F.Z Abidin, “PID Control Tuning VIA ‎Particle Swarm Optimization for Coupled Tank System”, International Journal of Soft ‎Computing and Engineering (IJSCE), ISSN: 2231-2307, Vol. 4, No. 2, May 2014.‎

‎[22]‎ Amruta S.Jondhale, Varsha J.Gaikwad, Satish R. Jondhale, “Level Control of Tank ‎System ‎using PID Controller-A Review”, International Journal for Scientific Research ‎& ‎Development, ISSN (online): 2321-0613, Vol. 3, No. 10, 2015.‎

‎[23]‎ Pooja Panchal, Prof. Alpesh Patel, “Interfacing of PLC with NI-Lab-view using Modbus ‎Protocol”, International Journal of Advance Engineering and Research Development, ISSN: ‎‎2348 – 4470‎‏,‏‎ Vol. 6, No. 1, pp. 19-26‎‏,‏‎ ‎‏ ‏Jan. 2015.‎

‎[24]‎ ‎Haoqiang Ji, “PLC Programming for a Water Level Control System: Design ‎and ‎System ‎Implementation” University of Victoria, 2017.‎



  • There are currently no refbacks.

Copyright (c) 2019 BASSAM MOHSIN ATIYAH, SABER HAMEED YADGAR, murad ghazy khalaf alabdullah

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

ISSN: 2303-4521

Digital Object Identifier DOI: 10.21533/pen

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License