Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for converting ladder diagram program into instruction list program and compiling instruction list program

A ladder diagram program and conversion technology, applied in the field of PLC control system, can solve the problems of being easily affected by other factors, inconvenient function expansion, difficult maintenance and upgrading, etc., to achieve improved portability, reduced file size, and easy maintenance Effect

Inactive Publication Date: 2015-01-07
CENT SOUTH UNIV
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

C language constructs a variety of grammatical forms and a small number of keywords to achieve complex and changeable functions. This point is inconsistent between PLC and C language. The two language styles are very different, so it is not suitable for conversion
At the same time, such systems are highly dependent and are easily affected by other factors, such as C compilers.
It is difficult to maintain and upgrade in the later period, and it is inconvenient to expand functions. The conversion process needs to be restructured, which can easily cause new problems

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 and system for converting ladder diagram program into instruction list program and compiling instruction list program
  • Method and system for converting ladder diagram program into instruction list program and compiling instruction list program
  • Method and system for converting ladder diagram program into instruction list program and compiling instruction list program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Below in conjunction with accompanying drawing and preferred embodiment, the present invention will be further described:

[0051] The ladder diagram program is a graphical expression with a certain logical relationship formed by a series of graphic components connected in parallel through horizontal lines and vertical lines. For the convenience of processing, each component of the ladder diagram is converted into a vertex of the graph, and the connecting line is converted into The arc in the figure, for the graph G=(V, E), V corresponds to the element in the ladder diagram, and E corresponds to the connecting line.

[0052] 1. Convert to graph adjacency list

[0053] Define the ladder diagram vertex data structure as follows:

[0054]

[0055]

[0056] Among them, x and y indicate the location of the ladder diagram element corresponding to the vertex, cx and cy indicate the grid size occupied by the element, itemType indicates the type of the element, instructio...

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 and system for converting a ladder diagram program into an instruction list program and executing compiling and interpretation of the instruction list program. According to the ladder diagram conversion method, energy flow classes and auxiliary nodes are introduced according to the characteristics of edition and execution of a ladder diagram, the class is set on each diagram peak, and an auxiliary node is added; the serial and parallel connection relationship is judged according to the out-degree and in-degree of the class and the auxiliary node where an element is located. After the ladder diagram is converted into the instruction list, a PLC immediate compiling method combined with compiling and interpretation and a divide-and-conquer method concept are adopted, a compiling front end and an interpretation rear end are designed independently, and in combination with a GCC rear-end structure, a PLC compiling system specific to a special machine model is generated. The method and system for converting the ladder diagram program into the instruction list program and compiling the instruction list program have the advantages that the ladder diagram program with a complex logic structure can be accurately and rapidly converted into the instruction list program, and in the conversion process, grammar error checking is carried out on the program, and the common errors like an open circuit, a short circuit and a bridge circuit are excluded, so that the correctness of the generated instruction list program is guaranteed.

Description

technical field [0001] The invention relates to the field of PLC control systems, in particular to a method for converting a PLC ladder diagram program into an instruction list program and compiling and executing the same. Background technique [0002] Both ladder diagram and instruction list are commonly used programming languages ​​for embedded soft PLC. The ladder diagram programming language is developed and evolved on the basis of the control principles of contactors and relays commonly used in electrical control systems. Because it is very similar to the electrical operation control circuit diagram, it is intuitive and corresponding, and easy to learn and understand. , which is familiar and loved by the majority of electrical engineers. The instruction list programming language is a programming language similar to assembly language using mnemonics for programming. It is composed of operation codes and operands. It uses a series of mnemonic symbols composed of operatio...

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): G05B19/05
CPCG05B19/056
Inventor 陈晓方阳春华桂卫华刘正黄江波秦晨
Owner CENT SOUTH UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products