A rule-based procedure for generating programmable logic controller code from graphical input in the form of ladder diagrams
✍ Scribed by H.A. Barker; J. Song; P. Townsend
- Publisher
- Elsevier Science
- Year
- 1989
- Tongue
- English
- Weight
- 570 KB
- Volume
- 2
- Category
- Article
- ISSN
- 0952-1976
No coin nor oath required. For personal study only.
✦ Synopsis
This paper is concerned with a procedure for the automatic generation of code for programmable logic controllers. Input to the procedure is data from a graphical model of the discrete event dynamic system which is to be implemented. The model is constructed in the form of a ladder diagram at a graphics workstation. The data are held as Prolog tuples, and Prolog is used in the procedure to implement a rule base through which the data are mapped into the programmable logic controller code. Underlying the rule base are two methodologies. The first is a top-down decomposition of the ladder diagram to a level of three basic structures. The second is a bottom-up integration of code based on these structures into code for the whole system. An example is used throughout and the approach is shown to be effective.