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

Program mechanical code compiling method for programmable logic controller

A technology of programming logic and compilation method, applied in the field of program mechanical code compilation of programmable logic controller, can solve problems such as affecting speed

Inactive Publication Date: 2009-03-11
DELTA ELECTRONICS INC
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0018] (1) It takes a certain recognition time to recognize the memory code, so it will affect the execution speed
[0019] (2) All variables and constants need to be converted, which will affect the speed of execution

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
  • Program mechanical code compiling method for programmable logic controller
  • Program mechanical code compiling method for programmable logic controller
  • Program mechanical code compiling method for programmable logic controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] figure 1 It is a flow chart of a program machine code compiling method of a programmable logic controller according to a preferred embodiment of the present invention. The machine code compiling method of the present invention can be written into a program and executed by a computer to compile the program of the programmable logic controller into a machine code.

[0033] The method includes the following steps:

[0034] First, an edited PLC program file is opened (step S10 ), for example, it may be a ladder diagram file edited in advance through the WPL human-machine interface (HMI) of Delta Electronics Corporation. Then search for the location of the memory code (step S12), the memory code can be, for example, LD, AND, ANI and other memory codes; and judge whether the searched memory code is logical (step S20). If an illogical mnemonic is found, that is, a mnemonic that does not conform to the executable syntax of the PLC, the compilation process is left and the wron...

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 program machine code compilation method of a programmable logic controller (PLC). After reading a PLC program, mnemonics codes in the program are searched. Provided that all the syntaxes of the mnemonics codes in the PLC program are logical, the PLC program is converted into a C Language file. And then the C language file is converted into a C Language target file which is linked with a library file. If the link is successful, a link file is converted into a machine code for being directly operated by the PLC so as to control external input and output connection points (EXIO) on a human-computer interface.

Description

technical field [0001] The invention relates to a program compilation method of a programmable logic controller (PLC), in particular to a PLC program mechanical code compilation method. Background technique [0002] Most of the early PLC control program development software used LD (Ladder Diagram, ladder diagram) programming language, its syntax is easy to learn, so it is widely used in the development of PLC application programs. However, ladder diagram programs lack many features of high-level languages, such as variable data structures, numerical calculation capabilities, object-oriented design methods, and program execution control. In addition, on different PLC hardware platforms, the syntax and semantics of ladder diagram programs are also different. Therefore, IEC (International Electrotechnical Commission, International Electrotechnical Union) has formulated the international standard programming language of IEC61131-3, which not only has the characteristics of the...

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): G05B19/05
Inventor 谢柏承
Owner DELTA ELECTRONICS INC
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