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

Hybrid compiling method, storage medium and program product for programmable logic controller

A technology of programming logic and compiling method, which is applied in the field of storage media and program products, and the hybrid compiling method of programmable logic controllers. It can solve problems such as difficult logical operations, slow speed, and inability to apply cross-platforms, and achieve high execution efficiency. The effect of high execution efficiency

Active Publication Date: 2022-07-26
SHENZHEN INOVANCE TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Compilation by an interpretive compiler requires interpretation and execution at the same time. The speed is relatively slow, and it is very difficult to handle complex logical operations, but it can be used across platforms; while the program files compiled by a compiled compiler can be directly executed on the target platform. Fast, but not cross-platform

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
  • Hybrid compiling method, storage medium and program product for programmable logic controller
  • Hybrid compiling method, storage medium and program product for programmable logic controller
  • Hybrid compiling method, storage medium and program product for programmable logic controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] Please refer to figure 2 , Based on the hardware architecture of the hybrid compiling device of the above-mentioned programmable logic controller, an embodiment 1 of the hybrid compiling method of the programmable logic controller of the present application is proposed below, and the hybrid compiling method of the programmable logic controller is applied to the compiling end; Hybrid compilation methods for programmable logic controllers include:

[0075] S100. Acquire a mixed instruction program, where the mixed instruction program includes interpretive instructions and pseudo-interpreted instructions, and the pseudo-interpreted instructions are composed of compiled instructions;

[0076] The compiler side obtains the mixed instruction program. In order to take into account the advantages of interpreted compilation and compiled compilation, the mixed instruction program is divided into two parts in this embodiment, one part is interpreted instructions, and the other p...

Embodiment 2

[0113] Based on the same inventive concept, the present application also proposes a second embodiment, which is applied to the parsing end of the target platform;

[0114] Please refer to image 3 , a hybrid compiling method for a programmable logic controller, the method comprising:

[0115] S500. Receive an interpreted instruction compilation file and a compiled execution file formed by compiling the mixed instruction program by the compiling end;

[0116] In a feasible embodiment, the parsing end of the target platform can receive, through the serial port, an interpreted instruction compilation file and a compiled execution file formed by compiling the mixed instruction program.

[0117] It should be noted that the parsing end of the target platform can also receive the interpretation command compilation file and the compiled execution file formed by compiling the mixed command program through a UART port, a COM port, a USB port, or the like.

[0118] S600, performing ini...

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 present application discloses a hybrid compiling method, a storage medium and a program product for a programmable logic controller, and a hybrid compiling method for a programmable logic controller, which is applied to a compiling end; the method includes: acquiring a hybrid instruction program, where the hybrid instruction program includes an interpreter type Instructions and pseudo-interpreted instructions. Pseudo-interpreted instructions are composed of compiled instructions; interpreting all interpreting instructions to form an interpreted instruction compilation file; compiling all pseudo-interpreted instructions to form a compiled execution file; sending interpretation instructions to compile files and compiled executable files to the target platform so that the target platform can execute mixed-instruction programs. The present application aims to take into account both the execution efficiency of the programmable logic controller compilation operation and the improvement of the expansibility of cross-platform applications.

Description

technical field [0001] The present application relates to the technical field of programmable logic controllers, and in particular, to a hybrid compilation method, storage medium and program product of a programmable logic controller. Background technique [0002] Traditional PLC (Programmable Logic Controllers, Programmable Logic Controllers) compilers are divided into instruction-based interpreting compilers and instruction-based compiling compilers. When compiling a programming language, if an interpretive compiler is used, the instructions need to be converted into corresponding interpretive instructions, and then an interpretive instruction list program file is generated, and the parsing side executes the parsing instruction -> execute instruction operation; The compiled compiler needs to be compiled into an executable program file of the target platform, and the parsing end can directly run the executable program file. [0003] Interpretation compilers need to inte...

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): G05B19/05G06F8/41
CPCG05B19/056G06F8/427G05B2219/13004
Inventor 戴正国郭福坤
Owner SHENZHEN INOVANCE TECH