About Implementation of IEC 61131-3 IL Function Blocks in Standard Microcontrollers
Abstract
The paper presents considerations on implementation of function blocks of the IL language, as fragments of control programs that use these blocks. Subsequently, the predefined function blocks of the IL language have been applied to implementation in a Central Processing Unit for a programmable controller based on standard microcontroller from such families as MCS-51, AVR and ARM with the Cortex-M3 core. The considerations refer to the IL language revision that is fully compliant with the IEC-61131-3 standards. The completed theoretical analysis demonstrated that the adopted method of the module description is really reasonable and offers substantial advantages as compared to direct calls of function modules already developed as subroutines. Also the executed experiments have proved the feasibility to arrange central units of programmable controllers on the basis of standard microcontrollers and such central units may be competitive to compact CPUs available on the market for typical PLCs.References
F. Bonfati, P. D. Monari, and U. Sampieri, IEC 61131-3 Programming Methodology; Software engineering methods for industrial automated systems. ICS Triplex ISaGRAF, 2003.
J. A. Rehg and G. J. Sartori, Programmable Controllers. Prentice Hall, 2007.
K. H. John and M. Tiegelkamp, IEC 61131-3: Programming Industrial Automation Systems. Berlin Heidelberg: Springer-Verlag, 2010.
M. Chmiel, J. Mocha, E. Hrynkiewicz, and D. Polok, “About implementation of IEC 61131-3 IL operators in standard microcontrollers,” in Proceedings of 12th IFAC/IEEE International Conference on PDeS’13, Velke Karlovice, Czech Republic, September 25-27 2013, pp. 30–35.
K. Koo, G. S. Rho, W. H. Kwon, J. Park, and N. Chang, “Architectural Design of an RISC Processor for Programmable Logic Controllers,” Journal of Systems Architecture, vol. 44, no. 5, pp. 311–325, February 1998.
M. S. Boggs, T. L. Fulton, S. Hausman, G. McNabb, A. McNutt, and S. W. Stimmel, “Programmable Logic Controller – Method, System and Apparatus,” June 3 2003, US Patent No. US 6,574,743 B1.
M. Chmiel, J. Mocha, E. Hrynkiewicz, and A. Milik, “Central Processing Units for PLC implementation in Virtex-4 FPGA,” in Proceedings of the 18th IFAC World Congress, Milano, Italy, August 28-September 2 2011, pp. 7860–7865, vol. 18, part 1.
A. Milik, “High Level Synthesis – Reconfigurable Hardware Implementation of Programmable Logic Controller,” in PDeS’06, Brno, February 14-16 2006, pp. 138–143.
J. Mocha and D. Kania, “Hardware Implementation of a Control Program in FPGA Structures,” Electrical Review, vol. 88, no. 12/2012, pp. 95–100, 2012, (in Polish).
H. Berger, Automatic with STEP7 in STL and SCL – SIMATIC S7- 300/400 Programmable Controllers. Germany: Siemens AG, 2001.
J. Kulisz, M. Chmiel, and A. Malcher, “Generating time intervals in Programmable Logic Controllers,” in Proceedings of 12th IFAC/IEEE International Conference on PDeS’13, Velke Karlovice, Czech Republic, September 25-27 2013, pp. 42–47.
T. Białas, “The compact controller based on ’51 microcontroller, master thesis,,” Master’s thesis, Silesian University of Technology, Gliwice, 2012, (in Polish).
R. Zych, “The compact controller based on AVR microcontroller,” Master’s thesis, Silesian University of Technology, Gliwice, 2012, (in Polish).
M. Juraszek, “The compact controller based on ARM microcontroller,” Master’s thesis, Silesian University of Technology, Gliwice, 2012, (in Polish).
DCD, “DQ80251 – Revolutionary Quad-Pipelined Ultra High Performance 16/32-bit Configurable Microcontroller,” 2013.
Downloads
Published
Issue
Section
License
1. License
The non-commercial use of the article will be governed by the Creative Commons Attribution license as currently displayed on https://creativecommons.org/licenses/by/4.0/.
2. Author’s Warranties
The author warrants that the article is original, written by stated author/s, has not been published before, contains no unlawful statements, does not infringe the rights of others, is subject to copyright that is vested exclusively in the author and free of any third party rights, and that any necessary written permissions to quote from other sources have been obtained by the author/s. The undersigned also warrants that the manuscript (or its essential substance) has not been published other than as an abstract or doctorate thesis and has not been submitted for consideration elsewhere, for print, electronic or digital publication.
3. User Rights
Under the Creative Commons Attribution license, the author(s) and users are free to share (copy, distribute and transmit the contribution) under the following conditions: 1. they must attribute the contribution in the manner specified by the author or licensor, 2. they may alter, transform, or build upon this work, 3. they may use this contribution for commercial purposes.
4. Rights of Authors
Authors retain the following rights:
- copyright, and other proprietary rights relating to the article, such as patent rights,
- the right to use the substance of the article in own future works, including lectures and books,
- the right to reproduce the article for own purposes, provided the copies are not offered for sale,
- the right to self-archive the article
- the right to supervision over the integrity of the content of the work and its fair use.
5. Co-Authorship
If the article was prepared jointly with other authors, the signatory of this form warrants that he/she has been authorized by all co-authors to sign this agreement on their behalf, and agrees to inform his/her co-authors of the terms of this agreement.
6. Termination
This agreement can be terminated by the author or the Journal Owner upon two months’ notice where the other party has materially breached this agreement and failed to remedy such breach within a month of being given the terminating party’s notice requesting such breach to be remedied. No breach or violation of this agreement will cause this agreement or any license granted in it to terminate automatically or affect the definition of the Journal Owner. The author and the Journal Owner may agree to terminate this agreement at any time. This agreement or any license granted in it cannot be terminated otherwise than in accordance with this section 6. This License shall remain in effect throughout the term of copyright in the Work and may not be revoked without the express written consent of both parties.
7. Royalties
This agreement entitles the author to no royalties or other fees. To such extent as legally permissible, the author waives his or her right to collect royalties relative to the article in respect of any use of the article by the Journal Owner or its sublicensee.
8. Miscellaneous
The Journal Owner will publish the article (or have it published) in the Journal if the article’s editorial process is successfully completed and the Journal Owner or its sublicensee has become obligated to have the article published. Where such obligation depends on the payment of a fee, it shall not be deemed to exist until such time as that fee is paid. The Journal Owner may conform the article to a style of punctuation, spelling, capitalization and usage that it deems appropriate. The Journal Owner will be allowed to sublicense the rights that are licensed to it under this agreement. This agreement will be governed by the laws of Poland.
By signing this License, Author(s) warrant(s) that they have the full power to enter into this agreement. This License shall remain in effect throughout the term of copyright in the Work and may not be revoked without the express written consent of both parties.