Real-time Digital Control of a Coupled-Tank Plant with a Cyber-Physical System Node





Real-time digital control, Cyber-physical systems, Proportional-integral control, Coupled-tank plant


A real-time implementation of a digital proportional-integral controller on a Cyber-Physical Systems (CPS) node for a coupled-tank plant to provide a testbed for verification of control algorithm and communication is described. The CPS node embedded computer is based on the ADuC841 8-bit microcontroller and the embedded real-time multitasking software was written in Pascal language.  The node is interfaced to the Quanser's coupled-tank plant via the on-chip 12-bit analog-to-digital and digital-to-analog converters, and a RS-485 communication network connects it to other nodes to form a CPS. Experimental results on the closed-loop control performances of the digital proportional-integral controller with three different tuning sets on the coupled-tank plant, verified the functionality of the digital control algorithm.

Author Biography


Division of Control & Mechatronics


E. A. Lee, “Cyber Physical Systems: Design Challengesâ€, Proc. 11th IEEE Int’l Symp. On Object and Component-Oriented Real-Time Distributed Computing (ISORC 08), 2008, pp. 363–369.

B. Rumpe, I.Schaefer, B. Schlingloff and A. Vogelsang, “Special issue on engineering collaborative embedded systemsâ€, in SICS Software-Intensive Cyber-Physical Systems, vol. 34, pp. 173–175, 2019.

T. Hägglund, “The one-third rule for PI controller tuningâ€, Computer and Chemical Engineering, vol. 127, pp. 25–30, 2019.

T. Bures, D. Weyns et. al, “Software Engineering for Smart Cyber-Physical System – Towards a Research Agendaâ€, ACM SIGSOFT Software Engineering Notes, vol. 40, pp. 28–32, November 2015.

K. H. Johansson, “The quadruple-tank process: A multivariable laboratory process with an adjustable zeroâ€â€™, IEEE Transactions on Control Systems Technology, vol. 8, pp. 456 – 465, 2000.

J. B. M. Santos, G. A. J’unior, H. C. Barroso and P. R. Barros, “A Flexible Laboratory-Scale Quadruple- Tank Coupled System for Control Education and Research Purposesâ€, Proc. 10th International Symposium on Process Systems Engineering - PSE2009, 2009, pp. 2151-2156.

J. Carrasco, W. P. Heath, M. C. R. Liñan, R. Alli- Oke, O. A. R. Abdel Kerim and S. R. Gutierrez, “Controlling a quadruple tanks rig with PLCs as a Masters dissertation projectâ€, 10th IFAC Symposium Advances in Control Education, August 28-30, Sheffield, UK, 2013, pp. 238 – 243.

K.J. Åström and B. Wittenmark, Computer Controlled Systems, Theory and Design, 2nd ed., Prentice-Hall, Englewood Cliffs., N.J., 1990.

Analog Devices Inc., aduc841_842_843 Datasheet, 2017,, Accessed 20 February, 2020.

Telecommunications Industry Association (TIA), Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems, ANSI TIA/EIA-485A, March 1998.

Turbo51, Turbo Pascal for 8051 microcontrollers,, Accessed 20 February, 2020.

Quanser Inc., User Manual Couple Tank Experiment Set Up and Configuration, Quanser Inc., Canada, 2012.

S. Skogestad, “Simple analytic rules for model reduction and PID controller tuningâ€, Journal of Process Control, vol. 13, pp. 291 – 309, 2003.

J.G. Ziegler and N.B. Nichols, “Optimum settings for automatic controllersâ€, Trans. ASME, vol. 64, pp. 759 – 768, 1942.

K.J. Ã…ström and T. Hägglund, “Revisiting the Ziegler–Nichols step response method for PID controlâ€, Journal of Process Control, vol. 14, pp. 635 – 650, 2004.




How to Cite

Mamat, R. (2020). Real-time Digital Control of a Coupled-Tank Plant with a Cyber-Physical System Node. ELEKTRIKA- Journal of Electrical Engineering, 19(3), 1–6.