Real-Time Communication between S7-1200 PLC and Matlab/Simulink and a Fuzzy Logic Temperature Humidity Control Application

Real-Time Communication between S7-1200 PLC and Matlab/Simulink and a Fuzzy Logic Temperature Humidity Control Application

It is not much possible for controllers such as PLC (Programmable Logic Controller) and DCS (Distributed Control System) used in the industry to solve complex systems. On the contrary, Matlab/Simulink provides advantages with the solutions it offers in the complex systems. It is highly significant that PLCs have a real-time communication with Matlab to solve this kind of complex systems. For industrial automation, interoperability standard OPC (OLE for process control) plays the role of a bridge between Matlab/Simulink and PLC and enables data exchange between them.  On the other hand, Fuzzy Logic provides advantage in solving complex systems. There are two inputs in this research. Temperature and relative humidity data is transferred to Matlab/Simulink via OPC by PLCs. Based on the temperature and relative humidity felt depending on the temperature, the percentage of fan speed is calculated by using Fuzzy controller in Matlab/Simulink and transferred to PLC via OPC and the required physical output connected to PLC is activated. This system shows how fast the processes which are complex in PLC can be solved with Matlab/Simulink.  A complex system developed in Matlab/ Simulink can be automatically converted to any microcontroller code.  The PLC used in industry can communicate with this microcontroller as well and obtain the desired output in the best way possible. Nowadays, Artificial Intelligence develops day by day and such a system gains even more importance.

___

  • [1]. Zhang Lieping, Zeng Aiqun, Zhang Yunsheng, (2007). On Remote Real-time Communication between MATLAB and PLC Based on OPC Technology, Chinese Control Conference, 26-31 July , China.
  • [2]. Sevil, M., Elalmış, N., Görgün, H., Aydın, N. (2015). “Control of Air Conditioning with Fuzzy Logic Controller .Design for Smart Home Systems”, Sigma Journal of Engineering and Natural Sciences.
  • [3]. Ünlü Y., (2007)“SÜREÇ KONTROLUNDA NESNELERİN BAĞLAŞMASI VE İLİŞKİLENDİRİLMESİ (OPC). STANDARDI VE UYGULAMASI”, Master Science Thesis-Istanbul University.
  • [4]. The General Directorate Meteorology www.mgm.gov.tr/genel/sss.aspx?s=hissedilensicaklik.
  • [5]. The Matworks, (2008). MATLAB OPC Toolbox User’s Guide.
  • [6]. S7-1200 Programmable controller, (2017). System Manual.
  • [7]. Tekinalp Z., Öztürk S., Kuncan M., (2013). “OPC Kullanarak Gerçek Zamanlı Haberleşen Matlab ve PLC Kontrollü Sistem