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

ST language source code compiling method and device, computer equipment and medium

A compilation method and source code technology, applied in the field of computer software, can solve the problems of C language error prompts, slow compilation speed, and difficulty in debugging, and achieve the effect of good support and fast compilation speed.

Pending Publication Date: 2020-08-04
KYLAND TECH CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The compilation process requires two stages, resulting in slow compilation speed: it needs to be compiled into C language by iec2c first, and then continue to call GCC for secondary compilation
[0005] 2. Difficulty in debugging: The code instructions of the downloaded program compiled by GCC are converted from C language, so the code displayed during debugging is the converted C language code, which cannot be directly compared with the ST language source code Yes, it is difficult to support breakpoint debugging
[0006] 3. The error message is inaccurate: Since the code instructions of the downloaded program are compiled by GCC to the C language, during the debugging process, the prompts during the operation of the code instructions are all prompts to the errors of the C language, not directly to the ST It is not only cumbersome to prompt the error of the language source code, so the developer of the ST compiler needs to do the conversion to prompt the engineer. Poor debugging support for language source code

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
  • ST language source code compiling method and device, computer equipment and medium
  • ST language source code compiling method and device, computer equipment and medium
  • ST language source code compiling method and device, computer equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.

[0045] In the following description, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects, and do not represent a specific ordering of objects. It is understandable Obviously, where permitted, the specific order or sequence can be interchanged such that the embodiments of the application described herein can be practiced in other sequences than those illustrated or described herein.

[0046] In the following description, the involved reference numerals representing steps, such as S331, S332...etc., do not mean that this step must be executed, and the order of the preceding and following steps can be interchanged or executed ...

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

An ST language source code compiling method comprises the steps that service source codes in ST language source codes are acquired; lexical and grammatical analysis is carried out on the service source code according to lexical and grammatical rules to obtain an abstract syntax tree; and the GCC back end generates an instruction code which can be identified by the target equipment according to theabstract syntax tree. Correspondingly, the invention further provides a compiling device, computing equipment and a storage medium. By means of the method, compiling of the ST language source code based on the GCC rear end can be achieved, and therefore direct debugging of the ST language source code is supported.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a ST language source code compiling method, device, computer equipment and media. Background technique [0002] ST language source code is one of the programmable controller (PLC) programming languages ​​in the IEC61131-3 standard, which is suitable for writing complex PLC programs in large and medium-sized systems. PLC is designed and manufactured for industrial control applications, and its logic control is realized through PLC programming language. The international standard IEC61131-3 defines five PLC programming languages: Ladder Diagram (LD), Function Block Diagram (FBD), Sequential Function Diagram (SFC), Instruction List (IL) and Structured Text (ST). The first three are visual programming languages, which are simple and intuitive. Among them, the ladder diagram is similar to the traditional relay control diagram. Users do not need to have professional computer...

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): G06F8/41
CPCG06F8/42G06F8/425G06F8/447Y02D10/00
Inventor 李胤颉宋健玮
Owner KYLAND TECH CO LTD
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