47
Views
4
CrossRef citations to date
0
Altmetric
Original Articles

The development of a generic PC-based programmable logic controller simulator

&
Pages 151-168 | Received 01 Jan 1991, Published online: 27 Apr 2007
 

Abstract

Programmable logic controllers (PLC) are used extensively for controlling discrete processes. The PLC's versatility is based on its reprogrammability, but this versatility is bought at the expense of program correctness and verification. Modifications to existing PLC programs, or generation of new ones, requires the use of the controller and the hardware associated with it in order to debug the new instructions. This leads to a greatly increased program design cycle as equipment down-times must be scheduled to accommodate debugging. At the same time, testing uncertain instructions on the plant floor places all the hardware connected to the PLC in jeopardy of damage due to program errors.

This paper presents the development of a generic personal computer (PC) based PLC simulator. The development of the simulator comprises two stages: one for the creation of the virtual PLC and the other for the manipulation of this virtual PLC. The virtual PLC comprises a lexical analyser and a parser which function as a 'compiler', checking syntax, and recognizing commands of the PLC language, and creating the internal representation of the PLC in the PC's memory which interacts with a graphical interface to allow interaction with the virtual PLC. Program verification is then performed on the emulator instead of on the actual controller, thus both decreasing the debugging time for new instructions and protecting the hardware on the shop floor. The technique is not specific to any particular system, and may be applied genetically to any controller.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.