An Original Approach for Translating Grafcet into C/Unix Code for Validation Purposes


  • N. Benaouda Department of Computer Science, Ferhat Abbas University Setif I, Algeria
  • A. Benaouda Department of Computer Science, Ferhat Abbas University Setif I, Algeria
Volume: 12 | Issue: 6 | Pages: 9697-9702 | December 2022 |


This paper proposes an approach to simulate the function of the control part of a Grafcet model, translating it into C code in a Unix environment. First, the Grafcet/C generation schemes are established. The Grafcet model, described in graphic or text form, is transformed in an internal form and then to C code by a generation algorithm based on the previously found diagrams. The result is a program that simulates the operation of the automation in question and makes it possible to validate the functional specifications of sequential automation. This validation can be used for educational purposes, such as the learning of the Grafcet formalism, or corrective or evolutionary maintenance. Once the configuration, testing, and validation of the program are complete, it is possible to implement the object code on the microcontroller of the control system.


C/Unix, Grafcet, process, sequential automation


Download data is not yet available.


O. A. Adebimpe, V. Oladokun, and O. E. Charles-Owaba, "Preventive Maintenance Interval Prediction: a Spare Parts Inventory Cost and Lost Earning Based Model," Engineering, Technology & Applied Science Research, vol. 5, no. 3, pp. 811–817, Jun. 2015. DOI:

L. S. Tavassoli, N. Sakhavand, and S. S. Fazeli, "Integrated Preventive Maintenance Scheduling Model with Redundancy for Cutting Tools on a Single Machine," Engineering, Technology & Applied Science Research, vol. 10, no. 6, pp. 6542–6548, Dec. 2020. DOI:

M. A. Munir, M. A. Zaheer, M. Haider, M. Z. Rafique, M. A. Rasool, and M. S. Amjad, "Problems and Barriers Affecting Total Productive Maintenance Implementation," Engineering, Technology & Applied Science Research, vol. 9, no. 5, pp. 4818–4823, Oct. 2019. DOI:

B. M, Comprendre Maîtriser Et Appliquer Le Grafcet. Toulouse, France: Éditions Cépaduès, 2005.

Reeb Bernard, Développement des grafcets : des machines simples aux cellules flexibles, du cahier des charges à la programmation / Bernard Reeb, Nouvelle édition. Paris, France: Ellipses, 2011.

Z.Remaki, J. F. Ponsignon, M. Nekkache, "Schémas de traduction grafcet Occam2", presented at the 3rd Maghreb Congress on Artificial Intelligence and Software Engineering, Rabat, Morocco, 1994.

E. González, R. Marichal, and A. Hamilton, "Ontology-based approach to Basic Grafcet formalization," Journal of the Chinese Institute of Engineers, vol. 39, no. 8, pp. 946–953, Nov. 2016. DOI:

O. Miguel-Escrig, J.-A. Romero-Pérez, B. Wiesmayr, and A. Zoitl, "Distributed implementation of Grafcets through IEC 61499," in 2020 25th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), Vienna, Austria, Sep. 2020, vol. 1, pp. 402–409. DOI:

W. Stevens and S. Rago, Advanced Programming in the UNIX Environment, 3rd Edition, 3rd edition. Upper Saddle River, New Jersey: Addison-Wesley Professional, 2013.

Nacéra Benaouda and Abdelhafid Benaouda, "Translating Grafcet Specifications into C/Unix Program," presented at the IADIS International Conference Information Systems 2021, 2021, pp. 209–217.

M. Raynal, Concurrent Programming: Algorithms, Principles, and Foundations. Springer, 2013. DOI:


How to Cite

N. Benaouda and A. Benaouda, “An Original Approach for Translating Grafcet into C/Unix Code for Validation Purposes”, Eng. Technol. Appl. Sci. Res., vol. 12, no. 6, pp. 9697–9702, Dec. 2022.


Abstract Views: 444
PDF Downloads: 299

Metrics Information

Most read articles by the same author(s)