Cross debugging system and method based on PLC programming language

A programming language and debugging method technology, applied in software testing/debugging, code compilation, program code conversion, etc., can solve problems such as inconsistent debugging granularity, inability to see assembly-level running instructions, etc.

Active Publication Date: 2019-11-12
中电智能科技有限公司
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the language used in PLC programming is divided into text language and graphic language. When debugging, the assembly-level operation instructions compiled by the language cannot be seen, and due to language restrictions, the debugging granularity is not uniform during debugging. In order to solve this problem , invented an assembly-level cross-debugging method based on PLC programming language

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
  • Cross debugging system and method based on PLC programming language
  • Cross debugging system and method based on PLC programming language
  • Cross debugging system and method based on PLC programming language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] To achieve the above object, the present invention implements the following technical solutions:

[0021] When PLC is in use, it must provide corresponding programming software platform with ST, LD, FBD and other language programming functions. PLC, so as to realize the control task of specific equipment or process. At present, PLC programming and compiling software generally adopts foreign programming environments such as Step7, CodeSys, etc. These tools have debugging functions and support debugging instructions such as breakpoints, stepping, stepping, and jumping, but they cannot support assembly instructions. , The register information of the target controller has not been debugged and implemented. The invention studies the debugging technology of industrial control programming language, realizes the assembly-level cross debugging technology oriented to PLC programming language, and realizes debugging functions such as breakpoint, single step, step-in, and step-out...

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 relates to an assembly-level cross debugging method based on a PLC programming language. The PLC programming language-based assembly-level cross debugging method comprises the followingsteps of: embedding breakpoint information during PLC programming compiling, and generating a code block identifier, a target instruction and ST language mapping identifier, a target instruction and LD language mapping identifier and a target language and FBD language mapping identifier; in the compiling stage, a mapping relationship between ST, LD and FBD languages and a target assembly instruction is established through an intermediate language structure; in the online stage, the collected information, identifiers, mapping relations and the like are downloaded into a target programmable controller or simulator; in the operation process, breakpoint information is collected and issued, debugging processes such as breakpoint, stepping, step-out, skipping and single step are achieved throughdebugging commands, when an assembly view is entered, breakpoint, stepping, step-out, skipping and single step commands based on assembly commands are provided, and the assembly commands and registerinformation corresponding to the debugging processes can be displayed in the assembly view.

Description

technical field [0001] The present invention relates to PLC programming and debugging, in particular to an assembly-level cross-debugging method based on PLC programming language, which is used to design and realize the assembly-level cross-debugging of PLC programming language embedded in programmable controller (PLC) programming software module. Background technique [0002] At present, debugging functions such as breakpoint, single step, step in, and step out can be used when programming languages ​​such as C\C++\Java in computer programming, but these languages ​​are all text languages, and the text language and The relationship between running instructions can easily debug each execution state of the function when debugging. However, the language used in PLC programming is divided into text language and graphic language. When debugging, the assembly-level operation instructions compiled by the language cannot be seen, and due to language restrictions, the debugging gra...

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 & AuthorityApplications(China)
IPC IPC(8): G06F11/36G06F8/41
CPCG06F11/3624G06F8/41Y02P90/02
Inventor郭肖旺赵德政丰大军陈海孙少乙原惠峰郝瑞华张湾
Owner中电智能科技有限公司