Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for compiling and processing program organization unit

A technology of program organization unit and processing method, which is applied in the direction of code compilation, program code conversion, etc., can solve the problems of difficult data and instruction processing, and the implementation method has not been described in the literature, so as to achieve the effect of fast execution

Active Publication Date: 2022-02-18
NR ELECTRIC CO LTD +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the mode of compiling-interpreting and executing, for the program organization unit with multi-layer nested structure, the processing of data and instructions is a difficult problem, and no literature has yet elaborated on the specific implementation method

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
  • A method for compiling and processing program organization unit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The technical solutions and beneficial effects of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0017] Such as figure 1 As shown, the present invention provides a method for compiling and processing a program organization unit, comprising the following steps:

[0018] (1) The program organization unit is a tree-like hierarchical structure, and the program organization unit includes local variables, structured text codes and several subunits. Each subunit has input and output interface variables, and the function of the subunit is executed in the structured text code of the parent unit in a way similar to a function, and only called once. Access and compile program organization units and subunits in depth-first traversal order.

[0019] Such as figure 1 As shown, POU1 includes 2 sub-units SUBPOU1 and SUBPOU2, and SUPOU1 includes 2 sub-units SUBPOU11 and SUBPOU12, then the traversal processing sequence is shown...

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 discloses a method for compiling and processing a program organization unit, comprising the following steps: step 1, accessing and compiling program organization units and subunits according to depth-first traversal order; step 2, merging data areas of program organization units and subunits; step 3 , in the instruction area of ​​the parent unit, search for the instruction calling the subunit, delete the instruction, insert the instruction set of the subunit, and perform relocation processing; step 4, repeat the above operations until the compilation process of the top program organization unit is completed . This method can compile and process organizational units and subunits of programs, and supports hierarchical management of structured text programs.

Description

technical field [0001] The invention belongs to the field of industrial control programming, and in particular relates to a method for compiling and processing program organization units. Background technique [0002] The structured text programming language defined by the IEC61131 standard is a high-level programming language suitable for industrial control application development. Large-scale industrial control programs are divided into several program organization units (POU) for management, and the program organization units can be divided into several layers of sub-units to realize the modular and hierarchical organization of the program, which is convenient for maintenance, development and debugging. In the mode of compiling-interpreting and executing, the processing of data and instructions is a difficult problem for the program organization unit with multi-layer nested structure, and no literature has yet elaborated on the specific implementation method. In order to...

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 Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/41
Inventor 张磊陈宏君文继锋谭良良徐睿熊蕙周磊曾凯刘坤顾熹谭林丰
Owner NR ELECTRIC CO LTD