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

Ladder diagram matrix compiling and interpreting method based on PLC

A ladder diagram and matrix technology, applied in the computer field, can solve problems such as difficulty in program implementation, error-prone, complex binary code process, etc., and achieve the effects of saving underlying CPU resources, improving program running speed, and simplifying the logic operation process

Active Publication Date: 2015-08-05
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Disadvantage 1: The compilation process is complicated and inefficient
Large project files take longer
And the compilation process is complicated and error-prone
[0006] Disadvantage 2: The interpretation process needs to translate the secondary code into binary code, and then perform interpretation and execution according to the instruction index table
The process of translating secondary codes into binary codes is complicated and needs to be interpreted according to the index table
Causes resource constraints, and due to the complicated translation process, it makes it difficult to implement the program and increases the number of failure points

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
  • Ladder diagram matrix compiling and interpreting method based on PLC
  • Ladder diagram matrix compiling and interpreting method based on PLC
  • Ladder diagram matrix compiling and interpreting method based on PLC

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Below with reference to shown in accompanying drawing, the present invention is further described by specific embodiment:

[0030] A method for compiling and interpreting a matrix based on a PLC ladder diagram. The method directly performs matrix operations on the ladder diagram without performing IL language conversion and interpretation.

[0031] The method includes a process compilation process and an interpretation process, wherein:

[0032] Compilation process: During the editing process of the ladder diagram, each element used is a block, such as "contact", "coil", "connecting line", "function block" and so on can be counted as a block in the ladder diagram. A block, each block in the ladder diagram file corresponds to a data structure, the data structure stores the information of the block, and different types of blocks are connected according to certain rules to form a network in the ladder diagram file , and multiple networks form a complete ladder diagram fil...

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 present invention discloses a ladder diagram matrix compiling and interpreting method based on a PLC. According to the method, the matrix operation of a ladder diagram is carried out directly without IL language conversion and interpretation. The method comprises a process compiling process and an interpreting process. According to the compiling process, since an IL language conversion process is omitted, only the simple scanning of the connection relationship of a matrix is needed, the ladder diagram compiling process is greatly simplified, fault points are reduced, and the compiling efficiency is improved. Since only the connection relation between elements in the matrix is processed in the compiling process, the complex AND OR and AND OR nesting logic are not processed, the logic operation process is simplified, the fault points are reduced, and the compiling efficiency is improved. In the interpreting process, the process of interpreting an IL language into a binary system index table is omitted, the scanning combination operation of the ladder diagram matrix is directly carried out, a lot of bottom layer CPU resources are saved, the program operating speed is improved, and the fault points are reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a compiling and interpreting method based on PLC ladder diagram matrix. Background technique [0002] The traditional PLC ladder diagram compilation and interpretation method uses the instruction list language (IL) as the intermediate interface. The instruction list programming language is a mnemonic programming language similar to assembly language, and is composed of opcodes and operands like assembly language. [0003] Compilation process: It is to compile the ladder diagram language into IL language, generally using the matrix analysis method, and the matrix analysis method is generally divided into two steps to convert into IL language. The first step is to generate a first-level code based on a mathematical formula, and the first-level code represents the relationship between the various elements of the ladder diagram. The second step is to generate the secondary code ac...

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/056G05B2219/13
Inventor 国庆利陈江
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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