DOI QR코드

DOI QR Code

Protocol Monitor System Between Cortex M7 Based PLC And HMI

  • Kim, Ki-Su (School of Computer Information Engineering, Kunsan University) ;
  • Lee, Jong-Chan (Dept. of Computer Information Engineering, Kunsan University) ;
  • Ha, Heon-Seong (School of Computer Information Engineering, Kunsan University)
  • Received : 2020.04.21
  • Accepted : 2020.05.31
  • Published : 2020.06.30

Abstract

In this paper, collecting real-time data frames that occur during RS232 communication between an HMI and PLC of automation equipment by sniffing real-time information data frames through MCU without modification of the HMI or PLC, a method is proposed that allows users to collect data without being dependent on the modification of PLC and HMI systems. The user collects necessary information from the sniffing data through the parsing operation, and the original communication interface is maintained by transmitting the corresponding sniffing frame to the destination. The MCU's UART communication interface circuit is physically designed according to the RS232 communication standard, and this additionally improves efficiency more so than an interrupt-based system by using the DMA device inside the MCU. In addition, the data frame IO operation is performed by logically separating the work of the DMA interrupt service routine from the work of the main thread using the circular queue. Through this method, the user receives the sniffing data frame between the HMI and PLC in RS232 format, and the frame transfer between PLC and HMI arrives normally at the original destination. By sniffing the data frame without further modification of the PLC and HMI, it can be confirmed that it arrives at the user system normally.

본 논문에서는 자동화 설비 장비의 HMI와 PLC간 RS232 통신 시에 발생하는 실시간 데이터 프레임의 수집을 위하여, 별도의 HMI 혹은 PLC의 수정 없이 MCU를 통하여 실시간 정보 데이터 프레임을 스니핑 함으로서, 사용자가 PLC, HMI 시스템의 수정 작업에 종속되지 않고 데이터를 수집할 수 있는 방법을 제안한다. 사용자는 스니핑 데이터로부터 파싱작업을 통하여 필요한 정보를 수집하고 해당 스니핑 프레임을 목적지로 송신함으로서 본래의 통신 인터페이스를 유지한다. RS232 통신규격으로 MCU의 UART통신 인터페이스 회로를 물리적으로 설계하고, 더불어 MCU내부 DMA장치를 사용함으로서 인터럽트기반 시스템 보다 효율을 개선한다. 또한 환형큐를 사용하여 DMA인터럽트 서비스 루틴의 작업과 메인 스레드의 작업을 논리적으로 분리함으로서 데이터 프레임 IO 작업 처리를 수행한다. 이 방법을 통하여, 사용자는 RS232 규격으로 HMI, PLC간 스니핑 데이터 프레임을 수신하고 PLC와 HMI 간의 프레임 전송이 원래의 목적지에 정상적으로 도착하며 PLC와 HMI의 추가적인 수정 없이 데이터 프레임을 스니핑 함으로서 사용자 시스템에 정상적으로 도착함을 확인할 수 있다.

Keywords

References

  1. Jae-Jun Oh, Seong-Ju Choi, and Jin-Sa Kim, “Development of Multiple Wireless Communication Controller for Smart Factory Construction,” J. Korean Inst. Electr. Electron. Mater. Eng, Vol. 30, No. 9, pp. 602-608, September 2017 DOI: https://doi.org/10.4313/JKEM.2017.30.9.602
  2. So Jeong Nam, Seung Woo Lee, Jai-Kyung Lee, "Behaviour Data Acquisition of Equipment in real-time by using PLC ," The Korean Society of Mechanical Engineers, pp. 2368-2371, November 2012
  3. Jae-Jun Oh1, Seong-Ju Choi2, and Jin-Sa Kim3, “Development of Multiple Wireless Communication Controller for Smart Factory Construction,” J. Korean Inst. Electr. Electron. Mater. Eng, Vol. 30, No. 9, pp. 602-608, September 2017 DOI:https://doi.org/10.4313/JKEM.2017.30.9.602
  4. Clive Seguna , Luke Tanti , Jeremy Scerri, Kris Scicluna, "A Low-Cost Real Time Monitoring System for an Industrial Mini-Climatic Chamber," IECON 2019 - 45th Annual Conference of the IEEE Industrial Electronics Society," pp. 14-17 Oct. 2019. DOI: 10.1109/IECON.2019.8927396
  5. M. Martinez Flores et al., "Implementation of control algorithms in a climatic chamber", International Conference on Mechatronics Electronics and Automotive Engineering, pp. 107-112, 2016. DOI: 10.1109/ICMEAE.2016.028
  6. G. Jayanthi ,S Arunachalam, K Praveen ,Krishnan PS Unni,"Cost Effective SCADA for Remote Monitoring and Control for Effective Process Automation Using HMI,"2018 International Conference on Power, Energy, Control and Transmission Systems (ICPECTS), pp. 22-23 Feb. 2018. DOI: 10.1109/ICPECTS.2018.8521608
  7. P. K. Bhowmik ; S. K. Dhar,"Boiler gas burner management system automation using PLC," 2012 7th International Conference on Electrical and Computer Engineering, pp. 20-22, December 2012. DOI: 10.1109/ICECE.2012.6471702
  8. P.K. Shadhu Khan ; Abdullah-Al-Noman ; Rajib Kumar Dey,"PLC based operation of three natural gas generator models- a learing aid for undergraduate students," IEEE Third International Conference on Power Systems Kharagpur, pp. 27-29, December 2009. DOI: 10.1109/ICPWS.2009.5442778
  9. Hugh Jack, Automating Manufacturing Systems with PLCs. Version ,http://claymore.engineer.gvsu.edu/-jackh/books/plcs/
  10. Easy View Co., Ltd. ,"EasyView User Manual," Easy View Co.Ltd, pp.92, 2015.