Interactively Converting Ladder Diagrams into Grafcet Diagrams on a Robotic Neutralization System Case Study

Authors

DOI:

https://doi.org/10.5753/jis.2026.6644

Keywords:

Discrete Event Systems, Algorithms, Translation, Binary Decision Diagrams

Abstract

Background: Programmable Logic Controllers (PLCs) are widely used to implement automation systems based on sequential control. For such systems, Ladder and Grafcet diagrams are standardized, respectively used as programming and specification formalisms. Additionally, a neutralization system is responsible for mixing a solution with a neutralizer so that the resulting liquid has a neutral pH. Purpose: This study proposes an interactive approach for converting Ladder Diagrams into Grafcet diagrams, and a robotic neutralization system is considered as a realistic case study. Methods: An algorithm is designed and programmed for converting Ladder diagrams into Grafcet diagrams using Binary Decision Diagrams (BDDs), and its time complexity is mathematically determined. For validating the effectiveness of the proposed algorithm, the Ladder diagram is simulated and compared side by side with the resulting Grafcet diagram for the same expected initial state and input sequences. Results: The resulting Grafcet diagram is considered equivalent to the original Ladder diagram, and the proposed algorithm is classified according to its time complexity. Conclusions: The proposed strategy helps the expert to identify the plant’s process control flow in a realistic case study where either transitions AND or OR are addressed. Besides, the exponential growth in running time is softened by the use of BDDs and the resulting Grafcet diagram’s flexibility is improved without compromising its equivalence to the Ladder diagram. Moreover, compared to preexisting neutralization systems, the proposed one preserves the solution acidity once its desired preset value is achieved.

Downloads

Download data is not yet available.

References

Abrishambaf, R., da Rocha, H., Gomes, D. E., and Espírito-Santo, A. (2023). Enhancing iec 61499 with an ieee 1451 tim function block. In IECON 2023-49th Annual Conference of the IEEE Industrial Electronics Society, pages 1–6. IEEE. DOI: https://doi.org/10.1109/IECON51785.2023.10312113.

Alsamhan, A. M., Saleem, W., Khan, R., Salah, B., and Soliman, A. T. A. (2023). 3d simulation of a yogurt filling machine using grafcet studio and factory io: realization of industry 4.0. Transactions of FAMENA, 47(3):15–30. DOI: https://doi.org/10.21278/TOF.473049922.

Barbosa, M. d. B., Barbosa, C., and Barbosa, A. (2016). Proposing a practical approach to extract and read xml meta-data from sprite sheets using blob detection algorithm. Journal on Interactive Systems, 7(1):17–27. DOI: https://doi.org/10.5753/jis.2016.666.

Bojnurdi, V. E., Lyu, T., Atmojo, U. D., and Vyatkin, V. (2024). Optimal function block distribution for iec 61499 distributed control application. In 2024 IEEE 3rd Industrial Electronics Society Annual On-Line Conference (ONCON), pages 1–6. IEEE. DOI: https://doi.org/10.1109/ONCON62778.2024.10931597.

Bryant, R. E. (1986). Graph-based algorithms for boolean function manipulation. IEEE Transactions on Computers., 35(8):677–691. DOI: https://doi.org/10.1109/TC.1986.1676819.

Burgos, A., Alvarez, M. L., Iriondo, N., and Sarachaga, I. (2020). Metodología para la transformación de diseños en grafcet a código iec 61131-3 [methodology for transforming grafcet designs into iec 61131-3 code]. Información tecnológica, 31(6):133–146. DOI: http://dx.doi.org/10.4067/S0718-07642020000600133.

Chen, Y.-R., Hsu, C.-H., Li, T.-F., Lin, C.-Y., Weng, S.-C., and Tsai, M.-Y. (2026). Automatic model transformation and formal verification for function block of iec 61499. Software and Systems Modeling, 25:615–633. DOI: https://doi.org/10.1007/s10270-025-01316-y.

Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C. (2009). Introduction to Algorithms. MIT Press, Cambridge.

David, R. (1995). Grafcet: A powerful tool for specification of logic controllers. IEEE Transactions on Control Systems Technology, 3(3):253–268. DOI: https://doi.org/10.1109/87.406973.

Dhanabalan, G. and Selvi, S. T. (2023). Software design of veriloghdl code generation for ladder diagram and data acquisition using labview. Wireless Personal Communications, 128:1087–1115. DOI: https://doi.org/10.1007/s11277-022-09990-7.

Falcione, A. and Krogh, B. H. (1993). Design recovery for relay ladder logic. IEEE Control Systems Magazine, 13(2):90–98. DOI: https://doi.org/10.1109/37.206990.

Galeano González, D. A. and Botero Castro, H. A. (2007). Representación mediante grafcet del accionamiento de generadores sincrónicos en una central hidroeléctrica modernizada [grafcet representation of the drive of synchronous generators in a modernized hydroelectric power plant]. Dyna, 74(153):325–332.

Giacomin, P. A. S. and Schneebeli, H. A. (2010). Um método interativo de recuperação de diagramas grafcet a partir de diagramas ladder [an interactive method for retrieving grafcet diagrams from ladder diagrams. In XVIII Congresso Brasileiro de Automática [XVIII Brazilian Congress of Automation], pages 1749–1754. SBA.

Godase, V. (2025). Comparative study of ladder logic and structured text programming for plc. Journal of Electronics Design and Technology, 2(2):34–44. [link], Accessed on 03 May 2026.

Harrington, B., Gould, T., and Hurst, N. a. (2003). Inkscape. Available at [link]. Accessed in 03 May 2026.

Hrbček, J., Ždánsky, J., Macko, D., and Bubeníková, E. (2026). Development of a digital twin controlled by plc in a simulation environment. Transportation Research Procedia, 93:723–728. DOI: https://doi.org/10.1016/j.trpro.2025.11.109.

Hu, X., Liang, Y., Zhu, S., Li, H., and Zhu, S. (2024). St-petri: A visual executable semantic model for plc structured text language. In 2024 IEEE 22nd International Conference on Industrial Informatics (INDIN), pages 1–6. IEEE. DOI: https://doi.org/10.1109/INDIN58382.2024.10774532.

IEC (2013). GRAFCET specification language for sequential function charts. International Electrotechnical Commission, Rue de Varembé 3, PO Box 131, CH-1211 Geneva 20, Switzerland, 3.0 edition. [link]. Accessed on 03 May 2026.

Liu, Y., Zhang, H., and Liu, Z. (2025). Research on performance evaluation and optimization algorithm of plc control system based on graph neural network. In 4th International Conference on Artificial Intelligence and Autonomous Robot Systems (AIARS 2025), volume 2025, pages 53–57. IET. DOI: https://doi.org/10.1049/icp.2025.2927.

Lopes, V. and Sousa, M. d. (2017). Algorithm and tool for ld to sfc conversion with state-space method. In 2017 IEEE 15th International Conference on Industrial Informatics (INDIN), pages 565–570. IEEE. DOI: https://doi.org/10.1109/INDIN.2017.8104834.

Mroß, R., Schnakenbeck, A., Völker, M., Fay, A., and Kowalewski, S. (2023). Unambiguous interpretation of iec 60848 grafcet based on a literature review. In 2023 IEEE 28th International Conference on Emerging Technologies and Factory Automation (ETFA), page 1–8. IEEE. DOI: https://doi.org/10.1109/ETFA54631.2023.10275504.

Palaniappan, R., Nataraj, S. K., Noaman, N. M., and Ismail, Z. (2023). Grafcet based modelling of processing operation in modular production system. In 2023 IEEE 8th International Conference on Engineering Technologies and Applied Sciences (ICETAS), pages 1–5. IEEE. DOI: https://doi.org/10.1109/ICETAS59148.2023.10346373.

Pressman, R. S. (2019). Software Engineering: A Practitoner’s Approach. McGraw-Hill, 9th edition edition.

Roisin, M., Renard, D., Annebicque, D., Riera, B., and Yvars, P. (2025). From algebraic synthesis and GRAFCET to logical controller design in ST code (IEC 61131-3). In Gini, G., Precup, R., and Filev, D. P., editors, Proceedings of the 22nd International Conference on Informatics in Control, Automation and Robotics, ICINCO 2025, Marbella, Spain, October 20-22, 2025, Volume 1, pages 494–501. SCITEPRESS. DOI: https://doi.org/10.5220/0013817800003982.

Schnakenbeck, A., Mroß, R., Völker, M., Kowalewski, S., and Fay, A. (2023). A control flow based static analysis of grafcet using abstract interpretation. In 2023 IEEE 21st International Conference on Industrial Informatics (INDIN), pages 1–7. IEEE. DOI: https://doi.org/10.1109/INDIN51400.2023.10218176.

Tavares, A. R., Zuin, G. L., Azpúrua, H., and Chaimowicz, L. (2017). Combining genetic algorithm and swarm intelligence for task allocation in a real time strategy game. Journal on Interactive Systems, 8(1):4–19. DOI: https://doi.org/10.5753/jis.2017.671.

Venkatesh, K., Zhou, M., and Caudill, R. J. (1994). Comparing ladder logic diagrams and petri nets for sequence controller design through a discrete manufacturing system. IEEE Transactions on Industrial Electronics, 41(6):611–619. DOI: https://doi.org/10.1109/41.334578.

Villela, H. F., Corrêa, F., Ribeiro, J. S. d. A. N., Rabelo, A., and Carvalho, D. B. F. (2023). Fake news detection: a systematic literature review of machine learning algorithms and datasets. Journal on Interactive Systems, 14(1):47–58. DOI: https://doi.org/10.5753/jis.2023.3020.

Zanma, T., Suzuki, T., Inaba, A., and Okuma, S. (1999). Transformation algorithm from ladder diagram to sfc using temporal logic. Electrical Engineering in Japan, 129(1):74–81. DOI: https://doi.org/10.1002/(SICI)1520-6416(199910)129:1<74::AID-EEJ9>3.0.CO;2-B.

Downloads

Published

2026-05-06

How to Cite

GIACOMIN, P. A. S. Interactively Converting Ladder Diagrams into Grafcet Diagrams on a Robotic Neutralization System Case Study. Journal on Interactive Systems, Porto Alegre, RS, v. 17, n. 1, p. 418–430, 2026. DOI: 10.5753/jis.2026.6644. Disponível em: https://journals-sol.sbc.org.br/index.php/jis/article/view/6644. Acesso em: 12 may. 2026.

Issue

Section

Regular Paper