Supercharge Your Innovation With Domain-Expert AI Agents!

Method for compiling from ladder diagram to statement list

A compiling method and technology of ladder diagram, which is applied in the field of compiling from ladder diagram to statement list, can solve the problems of not intuitive enough, troublesome, low efficiency of code generation, etc., and achieve the effect of easy embedding, high code efficiency and less code

Inactive Publication Date: 2014-10-08
HUNAN SUPER INFORMATION
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the traditional ladder diagram method is not intuitive enough, the code generation efficiency is low, and it is troublesome to embed various development tools

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 from ladder diagram to statement list
  • Method for compiling from ladder diagram to statement list
  • Method for compiling from ladder diagram to statement list

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0022] Such as figure 1 The function of the ladder diagram shown can be described by the following set of logical expressions:

[0023] a) If((A*(B*C+D*E+H)*G*H) then ADD;

[0024] b) If((A*(B*C+D*E+H)*G*(I+J*K)) then SUB;

[0025] c) If((A*(B*C+D*E+H)*G) then MUL,

[0026] A method for compiling from a ladder diagram to a statement list, the specific steps are as follows:

[0027] 1. Generate the topology diagram corresponding to the ladder diagram: According to the position coordinates of the components in the ladder diagram, the connection relationship between the components can be established, so as to establish the corresponding topology diagram, in which each contact is expressed as a path (Path) , the functional element is expressed as a leaf (Leaf), and the pseudocode for generating the topology map is:

[0028] for(i=0;i

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 from a ladder diagram to a statement list. The method comprises the following steps of 1 generating a topological graph corresponding to the ladder diagram; 2 merging serial contacts in the ladder diagram; 3 merging paralleling contacts in the ladder diagram; 4 repeating the previous steps till no serial and paralleling contacts capable of being merged exists; 5 merging functional elements; 6 repeating the previous steps to finally generate a composite functional element. The method is intuitive and simple, the code generating efficiency is high, and achieved codes are few and can be easily embedded into various development tools.

Description

technical field [0001] The invention relates to the field of industrial control, in particular to a compiling method from a ladder diagram to a statement table. Background technique [0002] Ladder Diagram (Ladder Diagram) is a graphical programming language originating from early relay logic control circuits. Because of its simplicity and ease of use, it can efficiently and intuitively realize complex logic control functions. In the field of industrial control, from simple PLC to complex It is an indispensable and often the most important programming language in systems such as distributed control system (DCS) and fieldbus control system (FCS). IEC61131-3 has formulated some basic elements of the ladder diagram programming language, but in the specific implementation, the programming styles adopted by various manufacturers are quite different. With the advancement of science and technology, the computing and processing capabilities of microprocessors used in the control fi...

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/45
Inventor 周晓峰
Owner HUNAN SUPER INFORMATION
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More