An Output Instruction Based PLC Source Code Transformation Approach For Program Logic Simplification

Authors

  • Arup Ghosh Ph.D. student, Unified Digital Manufacturing Laboratory, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.
  • Shiming Qin Ph.D. student, Unified Digital Manufacturing Laboratory, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.
  • Jooyeoun Lee Associate Professor, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.
  • Gi-Nam Wang Professor, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.

Abstract

Due to the growing size and complexity of the PLC (Programmable Logic Controller) programs used for controlling the industrial processes, there is an increasing need for an approach that can help the users to understand the control logics of the PLC programs easily, and can assist them to analyze the programming errors effectively. In this paper, we propose an approach that takes the source code file of PLC program as the input; and transforms it into a hierarchical-structured XML (extensible markup language) file. The XML file format is based on the PLC output instructions and their corresponding conditions. It helps the users to identify the actual cause of a programming error quickly. In addition, a novel technique is applied that decomposes the PLC program into several smaller and modular sub-logic blocks. This makes the control logic simpler and easier to follow. An additional software application has also been developed for state-based graphical visualization of the XML file.

Author Biographies

Arup Ghosh, Ph.D. student, Unified Digital Manufacturing Laboratory, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.

Arup Ghosh was born in Barasat, India on March 22, 1989. He received the bachelor’s degree in computer science and engineering from the Birbhum Institute of Engineering and Technology, Suri, India in 2011, and the master’s degree in computer science from the University of Trento, Trento, Italy in 2012. He is currently pursuing the Ph.D. degree in industrial engineering with the Ajou University, Suwon, Republic of Korea.His current research interests include manufacturing process modelling, motor current signature analysis, fault detection and isolation in industrial processes, PLC log data analysis, intelligent process control, and virtual manufacturing.Mr. Ghosh was a recipient of the Erasmus Mundus External Cooperation Window (EMECW) scholarship in 2010, and has been a recipient of many grants from different ministries of the Government of the Republic of Korea.

Shiming Qin, Ph.D. student, Unified Digital Manufacturing Laboratory, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.

Shiming Qin was born in Heze, China on April 3, 1986. He received the master’s degree in industrial engineering from the Ajou University, Suwon, Republic of Korea in 2013. He is currently pursuing the Ph.D. degree in industrial engineering with the Ajou University.He is also a senior researcher in UDMTEK Co., Ltd. company. His current research interests include automatic manufacturing system optimization, PLC control system design, modelling and simulation, and fault detection and diagnosis.

Jooyeoun Lee, Associate Professor, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.

Jooyeoun Lee received the master’s degree in business administration from the Ajou University, Suwon, Republic of Korea in 1993, and the Ph.D. degree in business administration from the Inha University, Incheon, Republic of Korea in 2004.In past, he worked at Green Business Division, POSCO ICT as an Executive Vice President, and Strategic Marketing Division, SK C&C as a Vice President, and Strategic Solution Division, Oracle as a Senior Director. Since 2014, he has been an Associate Professor in the Department of Industrial Engineering, Ajou University. He is also an Ombudsman for Industrial Convergence, Ministry of Trade, Industry and Energy (MOTIE), Republic of Korea. His current research interests include smart grid, smart factory, virtual or augmented reality, business intelligence, smart manufacturing, and ICT convergence technology.

Gi-Nam Wang, Professor, Department of Industrial Engineering, Ajou University, Suwon, Republic of Korea.

Gi-Nam Wang received the M.S. degree in industrial engineering from the Korea Advanced Institute of Science and Technology, Daejeon, Republic of Korea in 1984, and the Ph.D. degree in industrial and system engineering from the Texas A&M University, Texas, USA in 1993.Since 1993, he has been a faculty member with the Ajou University, Suwon, Republic of Korea, where he teaches courses on advanced information system design and practice, neural networks, and intelligent manufacturing systems. He is currently a Full Professor at the Department of Industrial Engineering, Ajou University. He is the author of sixteen patents, and has published more than fifty original research papers in international journals, book chapters, and international conference proceedings. His current research interests include digital manufacturing, cyber-physical systems, virtual manufacturing, intelligent process control, and PLC control system design, modelling and simulation.

References

References

Liu, J. & Darabi. H. (2002). Ladder Logic Implementation of Ramadge-Wonham Supervisory Controller. Proceedings of the 6th International Workshop on Discrete Event Systems (WODES’02), Zaragoza, Spain, pp. 383–389.

Du, D., Liu, Y., Guo, X., Yamazaki, K., & Fujishima, M. (2009). Study on LD-VHDL conversion for FPGA-based PLC implementation. The International Journal of Advanced Manufacturing Technology, vol. 40, no. 11-12, pp. 1181–1190.

Bani Younis, M. & Frey, G. (2004). Visualization of PLC Programs Using XML. Proceedings of the American Control Conference (ACC’04), Boston, USA, pp. 3082–3087.

Siemens Simatic Step S7 Software. Website: http://w3.siemens.com/mcms/simatic-controller-software/en/step7/pages/default.aspx, last retrieved on 6th July, 2017.

Allen-Bradley RSLogix Software. Website: http://www.rockwellautomation.com/rockwellsoftware/products/rslogix.page, last retrieved on 6th July, 2017.

Fen, G. & Ning, W. (2006). A Transformation Algorithm of Ladder Diagram into Instruction List Based on AOV Digraph and Binary Tree. Proceedings of the IEEE Region 10 International Conference (TENCON’06), Hong Kong, China, pp. 1–4.

Hu, F., Fu, L., Liu, L., & Zhang, G. (2008). An Algorithm about Transforming PLC Ladder Diagram to Instruction List Based on Series-Parallel Merging Method. Proceedings of the Pacific-Asia Workshop on Computational Intelligence and Industrial Application (PACIIA’08), Wuhan, China, pp. 812–816.

Tan, A. & Ju, C. (2011). The Application of Maze algorithm in Translating Ladder Diagram into Instruction Lists of Programmable Logical Controller. Procedia Engineering, vol. 15, no. 1, pp. 264–268.

Yan, Y. & Zhang, H. (2010). Compiling ladder diagram into instruction list to comply with IEC 61131-3. Computers in Industry, vol. 61, no. 5, pp. 448–462.

Huang, L., Liu, W., & Liu, Z. (2009). Algorithm of transformation from PLC ladder diagram to structured text. Proceedings of the 9th International Conference on Electronic Measurement & Instruments (ICEMI’09), Beijing, China, pp. 4-778–4-782.

Estevez, E., Marcos, M., Iriondo, N., & Orive, D. (2007). Graphical Modelling of PLC-based Industrial Control Applications. Proceedings of the 26th American Control Conference (ACC’07), New York City, USA, pp. 220–225.

Estevez, E., Marcos, M., Orive, D., Irisarri, E., & Lopez, F. (2007). XML based Visualization of the IEC 61131-3 Graphical Languages. Proceedings of the 5th IEEE International Conference on Industrial Informatics (INDIN’07), Vienna, Austria, pp. 279–284.

Estevez, E., Marcos, M., Irisarri, E., Lopez, F., Sarachaga, I., & Burgos, A. (2008). A novel Approach to attain the true reusability of the code between different PLC programming Tools. Proceedings of the 7th IEEE International Workshop on Factory Communication Systems (WFCS’08), Dresden, Germany, pp. 315–322.

Estevez, E., Marcos, M., Orive, D., Lopez, F., Irisarri, E., & Perez, F. (2008). Middleware based on XML technologies for achieving true interoperability between PLC programming tools. Proceedings of the 17th World Congress of the International Federation of Automatic Control (IFAC’08), Seoul, Republic of Korea, pp. 8461–8466.

Marcos, M., Estevez, E., Perez, F., & Der Wal, E. (2009). XML exchange of control programs. IEEE Industrial Electronics Magazine, vol. 3, no. 4, pp. 32–35.

Lopez, F., Irisarri, E., Estevez, E., & Marcos, M. (2008). Graphical representation of factory automation Markup Languages. Proceedings of the 13th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA’08), Hamburg, Germany, pp. 29–32.

Frey, G. & Bani Younis, M. (2004). A Re-Engineering Approach for PLC Programs using Finite Automata and UML. Proceedings of the IEEE International Conference on Information Reuse and Integration (IRI’04), Las Vegas, USA, pp. 24–29.

Bani Younis, M. & Frey, G. (2005). Formalization and Visualization of Non-binary PLC Programs. Proceedings of the 44th IEEE Conference on Decision and Control and European Control Conference (CDC-ECC’05), Seville, Spain, pp. 8367–8372.

Bani Younis, M. & Frey, G. (2006). UML-based approach for the re-engineering of PLC programs. Proceedings of the 32nd Annual Conference on IEEE Industrial Electronics (IECON’06), Paris, France, pp. 3691–3696.

Siemens Simatic Ladder Logic (LAD) for S7-300 and S7-400 Programming (Reference Manual). URL: https://cache.industry.siemens.com/dl/files/822/45523822/att_82001/v1/s7kop__b.pdf, last retrieved on 6th July, 2017.

Siemens Simatic Statement List (STL) for S7-300 and S7-400 Programming (Reference Manual). URL: https://cache.industry.siemens.com/dl/files/446/45523446/att_79269/v1/s7awl__b.pdf, last retrieved on 6th July, 2017.

Graphviz Software. Website: http://www.graphviz.org, last retrieved on 6th July, 2017.

Siemens Simatic System Software for S7-300/400 System and Standard Functions (Volume 1/2, Reference Manual). URL: https://cache.industry.siemens.com/dl/files/574/1214574/att_44504/v1/SFC_e.pdf, last retrieved on 6th July, 2017.

Downloads

Published

2017-07-26

How to Cite

Ghosh, A., Qin, S., Lee, J., & Wang, G.-N. (2017). An Output Instruction Based PLC Source Code Transformation Approach For Program Logic Simplification. Informatica, 41(3). Retrieved from https://puffbird.ijs.si/index.php/informatica/article/view/1352

Issue

Section

Regular papers