Method for compiling ladder diagram language into instruction list language according to IEC61131-3 standard

A technology of instruction tables and ladder diagrams, which is applied in the direction of program control, program control design, and instruments in sequence/logic controllers, can solve problems such as low efficiency and difficult transplantation, and achieve the effect of improving efficiency and product reliability

Inactive Publication Date: 2009-02-18
HANGZHOU DIANZI UNIV
View PDF0 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This makes it difficult to transplant the existing ladder diagram language code after replacing th...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for compiling ladder diagram language into instruction list language according to IEC61131-3 standard
  • Method for compiling ladder diagram language into instruction list language according to IEC61131-3 standard
  • Method for compiling ladder diagram language into instruction list language according to IEC61131-3 standard

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In the software system that provides the programmable logic controller programming environment, the essence of realizing the method of programming the ladder diagram language into the instruction list language according to the IEC 61131-3 standard is to convert the data structure of the ladder diagram language into the instruction list language. data structure. Therefore, there are problems in the compilation process. One is to determine a reasonable data structure representing the ladder diagram language and instruction list language, and the structure must fully support the syntax definition of the ladder diagram and instruction list in IEC61131-3. The second is to establish a method for converting the data structure representing the ladder diagram into the data structure representing the instruction table, and ensure that the control logic expressed by the two structures is completely consistent.

[0022] The present invention defines six data structures: the data st...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for compiling the ladder diagram language into the instruction list language in accordance with the IEC 61131-3 standard. A ladder diagram applicable to the method can process logic quantity and non-logic quantity, and the obtained instruction list language accords with the IEC 61131-3 instruction set completely. The method specifically comprises: the ladder diagram is abstracted to a directed graph, and the varieties of the nodes in the directed graph are defined on the basis of the varieties of the elements in the ladder diagram; if the ladder diagram has a plurality of outputs, the directed graph will be decomposed into a plurality of subgraphs; the node stipulation method is used to judge whether the directed graph is a serial-parallel graph. The method currently only supports the compilation for the ladder diagram of a serial-parallel structure; the node stipulation method is used to build a binary decomposition tree, the result of post order traversal for the binary decomposition tree accords with the ladder diagram analysis method from top to bottom and left to right; the instruction of stipulation node of the binary decomposition tree is calculated in accordance with the sequence of post order traversal until the root node is calculated. The obtained instruction list of the root node is the final instruction list language.

Description

technical field [0001] The invention relates to a compiling method of an industrial control language, in particular to a method for compiling a ladder diagram language into an instruction list language according to the IEC 61131-3 international standard. Background technique [0002] Programmable logic controllers are used in a wide variety of industries today. IEC 61131-3 is an international standard for programmable controller programming languages. This standard defines four programming languages, namely Ladder Diagram (LD), Instruction List (IL), Structured Text (ST) and Function Block Diagram (FBD). ). Among them, the ladder diagram language is the most popular programming language in the field of industrial control. Since the ladder diagram language is a graphical high-level language, the control logic written in the ladder diagram language cannot be directly executed by the processor of the programmable logic controller. At present, the commercial programmable cont...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/45G05B19/05
Inventor 严义章航平
Owner HANGZHOU DIANZI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products