Method and device for compiling control program

A technology for controlling programs and source programs, applied in program control design, instrumentation, electrical and digital data processing, etc. Safety integrity, the effect of avoiding safety hazards

Active Publication Date: 2015-01-07
ZHEJIANG SUPCON TECH
View PDF3 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the compilation complexity is still very large, which will increase the probability of system failure, so it is not suitable for systems with high reliability requirements
[0007] On the other hand, the general-purpose intermediate language is designed for general-purpose application scenarios, and its biggest feature is its powerful functions and operational capabilities, that is, it has high variability. However, it also makes the general-purpose intermediate language program The compilation process and compilation results have great uncertainty
This kind of uncertainty will form a disadvantage for industrial control systems with high safety requirements, especially when compiling general-purpose intermediate languages, if compilation errors or compilation exceptions occur, it may lead to problems such as illegal access to system resources, Problems such as system software crashes affect the security of the system
[0008] In addition, the general-purpose language compiler is a third-party compiler, and its development process does not and cannot follow the safety requirements and safety development process formulated for specific industrial control fields, and, from the perspective of actual operation, it is also It is difficult to implement security verification of the results compiled by third-party compilers
Therefore, general-purpose language compilers cannot meet high security requirements and are not suitable for systems with high security requirements

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 compiling control program
  • Method and device for compiling control program
  • Method and device for compiling control program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the above objects, features and advantages of the present invention more comprehensible, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0058] method embodiment

[0059] see figure 1 , which is a flowchart of an embodiment of a method for compiling a control program provided by the present invention, the method includes the following steps:

[0060] Step 101: Compile and link the source program to generate an intermediate language program with limited variable characteristics.

[0061] Step 102: Map the intermediate language program with limited variable characteristics into target instructions according to the mapping relationship between the intermediate language program with limited variable characteristics and the target instruction directly executable by the target processor.

[0062] The source program is edited in the source program editor, and this editor also has 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 embodiment of the invention discloses a method and a device for compiling a control program. The method comprises the steps of: compiling and linking a source program to generate an intermediate language program with limited variable features; mapping the intermediate language program with the limited variable features into a target command based on a mapping relationship between the intermediate language program with the limited variable features and the target command which can be directly carried out by a target processor. Through the embodiment of the invention, demands of the system on reliability and safety can be satisfied.

Description

technical field [0001] The invention relates to the field of industrial control, in particular to a method and device for compiling a control program. Background technique [0002] In the field of industrial control, it often involves converting the control program written by the user in a high-level language (that is, the source program) into a control instruction that can be directly executed by the industrial device (for example, a processor). This conversion process is the compilation of the control program. process. The high-level language used by the user is generally the programming language specified by the relevant standards in the field of industrial control, such as the programming language specified by IEC 61131-3, the programming language specified by IEC 61499, and the CFC (Sequential Function Chart) applicable to specific fields. Graph), SAMA (Scientific Apparatus Makers Association, Scientific Apparatus Manufacturers Association) graph and other programming ...

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): G06F9/45
Inventor 裘坤刘志勇周曼平志明
Owner ZHEJIANG SUPCON TECH
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