Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for converting ladder diagram into binary tree, equipment and storage medium

A technology of binary tree and ladder diagram, applied in the direction of program control, instrument, control/regulation system, etc. in sequence/logic controller, can solve the problems of lack of generality and low conversion efficiency of binary tree, and achieve the effect of improving generality

Active Publication Date: 2021-01-05
KYLAND TECH CO LTD
View PDF14 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the structure of the ladder diagram is complex, this conversion method is obviously not universal, resulting in low conversion efficiency of the binary tree

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 device for converting ladder diagram into binary tree, equipment and storage medium
  • Method and device for converting ladder diagram into binary tree, equipment and storage medium
  • Method and device for converting ladder diagram into binary tree, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] Figure 1a It is a flowchart of a method for converting a ladder diagram into a binary tree in Embodiment 1 of the present invention. The technical solution of this embodiment is applicable to converting a ladder diagram into an AOV diagram, and further converting the AOV diagram into a binary tree. The method can Performed by a device for converting a binary tree from a ladder diagram, the device can be implemented by software and / or hardware, and can be integrated in various general electronic devices, specifically including the following steps:

[0042] Step 110, obtaining each icon in the ladder diagram and the connection relationship between the icons.

[0043] Among them, the ladder diagram is the most commonly used graphic programming language for PLC. It follows the form of the relay control circuit and is evolved from the simplified symbols on the basis of the commonly used relay and contactor logic control. Therefore, the ladder diagram often contains various ...

Embodiment 2

[0057] Figure 2a It is a flow chart of a method for converting a ladder diagram into a binary tree in Embodiment 2 of the present invention. This embodiment is further refined on the basis of the above embodiment, and provides processing logic based on the input and output of the icon to generate a corresponding to the icon. The specific steps of the logic diagram, and the technical solution of this embodiment is applicable to the case of converting a multi-input single-output or single-input single-output icon into a logic diagram and finally into a binary tree. Combine below Figure 2a A method for converting a ladder diagram into a binary tree provided in Embodiment 2 of the present invention is described, including the following steps:

[0058] Step 210, obtaining each icon in the ladder diagram and the connection relationship between the icons.

[0059] Optionally, the icon is a multi-input-single-output or single-input-single-output icon.

[0060] Wherein, the multi-...

Embodiment 3

[0075] Figure 3a It is a flow chart of a method for converting a ladder diagram into a binary tree in Embodiment 3 of the present invention. This embodiment is further refined on the basis of the above-mentioned embodiment, and provides processing logic based on the input and output of each icon, generating and The specific steps of the logic diagram corresponding to the symbol, and the technical solution of this embodiment is applicable to the situation where the MIMO or SIO icon is converted into a logic diagram, and finally converted into a binary tree. Combine below Figure 3a A method for converting a ladder diagram into a binary tree provided by Embodiment 3 of the present invention is described, including the following steps:

[0076] Step 310, obtaining each icon in the ladder diagram and the connection relationship between the icons.

[0077] Optionally, the icon is a multiple-input multiple-output or single-input multiple-output icon.

[0078] Wherein, the multi-...

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 embodiment of the invention discloses a method and a device for converting a ladder diagram into a binary tree, equipment and a storage medium. The method for converting the ladder diagram into the binary tree comprises the steps of obtaining all icons in the ladder diagram and the connection relation between the icons; according to the input and output processing logic of each icon, generating a logic diagram corresponding to each icon, the logic diagram comprising one node or more than two nodes and a connection relationship between the nodes; generating a connection relationship betweenthe corresponding logic diagrams according to the connection relationship between the icons to form a vertex activity AOV diagram; and converting the AOV graph into a binary tree. According to the technical scheme of the embodiment of the invention, the logic diagrams corresponding to the icons are generated according to the icons contained in the ladder diagram, and the logic diagrams are connected according to the connection relationship between the icons, so that the AOV diagram is generated, the binary tree is further generated according to the AOV diagram, analysis of complex ladder diagram logic is realized, and meanwhile, the universality of the AOV diagram generation method is improved.

Description

technical field [0001] Embodiments of the present invention relate to programmable logic controller technology, and in particular to a method, device, device and storage medium for converting a ladder diagram into a binary tree. Background technique [0002] Ladder Diagram (LD) is a commonly used programming language for Programmable logic controllers (PLC). Ladder Diagram uses different icons to represent different control instructions, which is intuitive to the staff, but for PLC, It is a language that cannot be directly executed. It is necessary to first convert the ladder diagram into an Activity On Vertex (AOV) diagram, then convert the AOV diagram into a binary tree, and finally traverse the binary tree to generate an instruction table, so that the instruction table can be compiled or interpreted to execute Implement the corresponding control logic. The instruction table is a series of instruction sets conforming to the IEC61131-3 (GB / T 15969.3) standard, similar to a...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G05B19/05
CPCG05B19/056G05B2219/13026
Inventor 李胤颉宋健玮
Owner KYLAND TECH CO LTD
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