Programming logic controllers (PLC) using ladder and structured control language (SCL) in MATLAB

Main Article Content


Heyder David Páez-Logreira
Ronald Zamora-Musa
José Bohórquez-Pérez


There are different programming languages for Programmable Logic Controllers (PLC), the most common of these is the graphical programming language called LADDER. However, LADDER is not friendly in programs requiring calculations of mathematical equations, for example, to calculate the volume of a tank on level control situations. Alternative languages such as Structured Control Language (SCL) are less studied because of their complexity and unpopular in small and medium industry. In this article, the results LADDER programming language and language are compared with SCL generated by Simulink PLC Coder MATLAB tool taking as a case study the calculating the volume of a tank. Finally, this work shows that the Simulink PLC Coder tool presents an alternative to more efficient development.


Article Details


All articles included in the Revista Facultad de Ingeniería are published under the Creative Commons (BY) license.

Authors must complete, sign, and submit the Review and Publication Authorization Form of the manuscript provided by the Journal; this form should contain all the originality and copyright information of the manuscript.

The authors who publish in this Journal accept the following conditions:

a. The authors retain the copyright and transfer the right of the first publication to the journal, with the work registered under the Creative Commons attribution license, which allows third parties to use what is published as long as they mention the authorship of the work and the first publication in this Journal.

b. Authors can make other independent and additional contractual agreements for the non-exclusive distribution of the version of the article published in this journal (eg, include it in an institutional repository or publish it in a book) provided they clearly indicate that the work It was first published in this Journal.

c. Authors are allowed and recommended to publish their work on the Internet (for example on institutional or personal pages) before and during the process.
review and publication, as it can lead to productive exchanges and a greater and faster dissemination of published work.

d. The Journal authorizes the total or partial reproduction of the content of the publication, as long as the source is cited, that is, the name of the Journal, name of the author (s), year, volume, publication number and pages of the article.

e. The ideas and statements issued by the authors are their responsibility and in no case bind the Journal.


[1] Y.-C. Wu y C.-F. Fan, «Automatic test case generation for structural testing of function block diagrams», Inf. Softw. Technol., vol. 56 (10), pp. 1360-1376, oct. 2014.

[2] A. Mader, «A Classification of PLC Models and Applications», en Discrete Event Systems, vol. 569, R. Boel y G. Stremersch, Eds. Springer US, 2000, pp. 239-246.

[3] L. Wang, G. Adamson, M. Holm, y P. Moore, «A review of function blocks for process planning and control of manufacturing equipment», J. Manuf. Syst., vol. 31 (3), pp. 269-279, 2012.

[4] International Electrotechnical Commission, «IEC 61499-1: Function Blocks - Part 1 Architecture», Int. Stand. First Ed. Geneva, vol. 1, 2005.

[5] I. E. Commission, «Programmable Controllers - Part 3: Programming languages», vol. 3, 2003.

[6] N. Völker y B. J. Krämer, «Automated verification of function block-based industrial control systems», Sci. Comput. Program., vol. 42 (1), pp. 101-113, 2002.

[7] C. Yuan y P. Ferreira, «An integrated rapid prototyping environment for reconfigurable manufacturing systems», en ASME 2003 International Mechanical Engineering Congress and Exposition, 2003, pp. 737-744.

[8] C. Yuan y P. Ferreira, «An integrated environment for the design and control of deadlock - free flexible manufacturing cells», en ASME 2004 International Mechanical Engineering Congress and Exposition, 2004, pp. 471-481.

[9] K. Thramboulidis y C. Tranoris, «An architecture for the development of function block oriented engineering support systems», en Computational Intelligence in Robotics and Automation, 2001. Proceedings 2001 IEEE International Symposium on, 2001, pp. 536-542.

[10] C. Yang y V. Vyatkin, «Transformation of Simulink models to IEC 61499 Function Blocks for verification of distributed control systems», Control Eng. Pract., vol. 20 (12), pp. 1259-1269, dic. 2012.

[11] V. Vyatkin, IEC 61499 function blocks for embedded and distributed control systems design. ISA-Instrumentation, Systems, and Automation Society, 2007.

[12] A. D. Kshemkalyani y M. Singhal, Distributed computing: principles, algorithms, and systems. Cambridge University Press, 2008.

[13] J. Peltola, J. Christensen, S. Sierla, y K. Koskinen, «A migration path to IEC 61499 for the batch process industry», en Industrial Informatics, 2007 5th IEEE International Conference on, 2007, vol. 2, pp. 811-816.

[14] MathWorks, «Simulink PLC Coder». [En línea]. Disponible en: [Accedido: 02-dic-2014].

[15] M. Bonfè, C. Fantuzzi, y C. Secchi, «Design patterns for model-based automation software design and implementation», Control Eng. Pract., vol. 21 (11), pp. 1608-1619, 2013.

[16] C. Yang y V. Vyatkin, «Model transformation between MATLAB simulink and Function Blocks», en Industrial Informatics (INDIN), 2010 8th IEEE International Conference on, 2010, pp. 1130-1135.

[17] C. H. Yang y V. Vyatkin, «Automated Model Transformation between MATLAB Simulink/Stateflow and Function Blocks», en 13th IFAC Symposium on Information and Control in Manufacturing (INCOM’09), Moscow, 2009, vol. 13, pp. 205-210.

[18] Siemens, «Structured Control Language (SCL) for S7-300/S7-400 Programming». [En línea]. Disponible en: [Accedido: 02-dic-2014].

[19] L. R. Peñalver, D. G. Arroniz, A. R. Canales, M. J. Buendía, y J. M. Martínez, «Sistema de automatización y telecontrol mediante microcontroladores para la gestión del riego de cultivos en maceta con lisímetros de pesada.», presentado en VII Congreso Ibérico de Agroingeniería y Ciencias Hortícolas, Madrid, 2013, p. 52.

[20] H. Berger, Automating with SIMATIC: Controllers, Software, Programming, Data. John Wiley & Sons, 2012.


Download data is not yet available.