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

Method for realizing hybrid programming by embedding high-level language into ladder diagram

A high-level language and implementation method technology, applied in the field of computer information, can solve the problems of complex process, inability to meet equipment control, complex functions of the controlled equipment, etc., to achieve the effect of enhancing functions, improving development efficiency, and overcoming implementation difficulties

Inactive Publication Date: 2012-03-28
HANGZHOU DIANZI UNIV
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, PLC is mainly used for logic control, so the ladder diagram is easy to use when designing logic control programs, but as the functions of the controlled equipment become more and more complex, simple logic control can no longer meet the needs of equipment control
Therefore, in order to meet the actual needs of enhancing PLC functions, it is often necessary to add intelligent algorithms to the original logic control, but the process of implementing the algorithm in the ladder diagram is too complicated

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 realizing hybrid programming by embedding high-level language into ladder diagram
  • Method for realizing hybrid programming by embedding high-level language into ladder diagram
  • Method for realizing hybrid programming by embedding high-level language into ladder diagram

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] A method of embedding high-level programming language in the ladder diagram of the present invention to realize mixed programming and unified compilation, its idea is to insert the high-level language program into the ladder diagram as a module, and the inserted program module is stored in the file in the form of a function, such as figure 1 shown. The high-level language program file and the machine instruction code generated by the ladder diagram program are compiled into an executable file and downloaded to the PLC. During operation, the high-level language program module is called in the machine instructions generated by the ladder diagram program to realize the execution of the high-level language program module. The following uses C language as an example to illustrate the implementation process of the method. The specific design steps are as follows:

[0031] 1. In the ladder diagram design environment, add high-level language program modules in the form of cont...

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 a method for realizing hybrid programming by embedding a high-level language into a ladder diagram. In the method, a high-level language program taken as a module is inserted into the ladder diagram, and the inserted grogram module is stored in a file in a function type. The high-level language program file and a machine instruction code generated by the ladder diagram program are compiled into an executable file to be downloaded on a PLC (Programmable Logic Controller). In running, the high-level language program module is called from a machine instruction generated by the ladder diagram program so as to execute the high-level language program module. By embedding the algorithm module compiled by the high-level computer language in the ladder diagram, the method solves the problem that a complicated algorithm is difficult to realize; and by utilizing the advantages of stability and reliability of the ladder diagram, the development efficiency of a complicated control system is enhanced, and the aim of enhancing the functions of the ladder diagram can be realized by embedding an intelligent algorithm at the same time.

Description

technical field [0001] The invention belongs to the field of computer information technology, and relates to a method for implementing mixed programming by embedding a high-level language in a ladder diagram. Background technique [0002] For a long time, PLC has been widely used in the field of industrial control. The ladder diagram is the main means of PLC program design, which has the advantages of simple use, intuitive and clear. However, PLC is mainly used for logic control, so the ladder diagram is easy to use when designing logic control programs. However, as the functions of the controlled equipment become more and more complex, simple logic control can no longer meet the needs of equipment control. Therefore, in order to meet the actual needs of enhancing PLC functions, it is often necessary to add intelligent algorithms to the original logic control, but the process of implementing the algorithms in the ladder diagram is too complicated. Computer high-level progra...

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
Inventor 邬惠峰赵建勇严义
Owner HANGZHOU DIANZI UNIV
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