Online debugging implementation method of compiling soft programmable logic controller (PLC)

An implementation method and compiling technology, which is applied in the field of online debugging and realization of compiling soft PLC, can solve problems such as PLC program debugging, and achieve the effects of reducing the probability of accidents, high efficiency, and easy program modification

Active Publication Date: 2013-05-29
中国科学院沈阳计算技术研究所有限公司
View PDF1 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the inadequacy that existing PLC programs cannot be dynamically debugged during execution, the technical problem to be solved by the present invention is to provide a compiling and executing method capable of realizing a debugging function similar to a high-level language when a PLC ladder program is executed

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
  • Online debugging implementation method of compiling soft programmable logic controller (PLC)
  • Online debugging implementation method of compiling soft programmable logic controller (PLC)
  • Online debugging implementation method of compiling soft programmable logic controller (PLC)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0032] Such as figure 1 Shown, the present invention comprises the following steps:

[0033] Step 1: The ladder diagram translation program translates the PLC ladder diagram into a high-level language program with a special structure, and calls the high-level language compiler to compile and generate an executable module, waiting for the PLC operation management module to call;

[0034] Step 2: The PLC operation management module dynamically invokes the compiled executable module;

[0035] Step 3: Add a debugging interface to the PLC editing interface for human-computer interaction;

[0036] Step 4: The PLC operation management module dynamically executes the program in the ladder diagram according to the information contained in the ladder diagram program in the high-level language executable module and the interface operation information t...

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 the field of industrial automatic control, in particular to an Online debugging implementation method of a compiling soft programmable logic controller (PLC). A ladder diagram translator program translates PLC ladder diagrams into a high-level language program of a special structure and calls a high-level language compiler to generate an executable module in a compiling mode, and the executable module waits for calling of a PLC operation management module; the PLC operation management module dynamically calls the executable module generated in the compiling mode; a debugging interface is added to a PLC editing interface for man-machine interaction; and the PLC operation management module dynamically executes the program in the ladder diagrams according to information contained in the ladder diagrams in the high-level language executable module and interface operation information transmitted from the man-machine interaction debugging interface. Due to the method, the compiling soft PLC can be enabled to have the online debugging functions of adding breakpoints and single-step execution, and the soft PLC with the online debugging functions has higher efficiency in engineering development.

Description

technical field [0001] The invention relates to the field of industrial automatic control, in particular to an on-line debugging realization method of compiled soft PLC. Background technique [0002] With the development of industry, PLC has been widely used in the field of automatic control because of its own programmable and the characteristics of general programming language, modularization and reusability. [0003] The ladder language is one of the five languages ​​defined in the IEC61131-3 standard. And because it has the characteristics that programming symbols can correspond to electrical symbols, it has become the most familiar and commonly used PLC programming language for electrical engineers and mechanical engineers. [0004] PLC programs are executed periodically, and traditional ladder language does not have the same debugging function as high-level languages ​​such as C language. Program debuggers must judge the status of program execution by monitoring the s...

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): G06F11/26
Inventor 李忠琪杨东升刘明烈
Owner 中国科学院沈阳计算技术研究所有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products