Functional block function modeling method for visual programming

A modeling method and a technology of function blocks, applied in the field of visual programming, can solve problems such as limited code space, limited code space, and lack of cross-platform transplantation that are difficult to solve in modeling methods, so as to improve code operation efficiency and better Economic benefits and the effect of enhancing data interaction capabilities

Active Publication Date: 2012-08-01
NR ELECTRIC CO LTD +1
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Some of the existing modeling methods refer to the IEC61131 standard, and use structured text description to form code interpretation and execution. However, embedded device programs require high-efficiency code, and the code space is limited. The modeling method based on IEC61131 is difficult to solve. Efficient 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
  • Functional block function modeling method for visual programming
  • Functional block function modeling method for visual programming
  • Functional block function modeling method for visual programming

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The technical solution of the present invention will be described in detail below.

[0018] The present invention provides a function block function modeling method for visual programming, which includes the following three parts:

[0019] The first part defines the text segment of the function block function;

[0020] In order to improve editing efficiency, a function block text definition edit box is provided, which automatically lists 7 key fields, namely: description information, included header file content, parameter information, member variables, construction code segment, initialization code segment and function body Code snippets, where header files contain information and variable definitions. By dividing the function block attributes and code into seven parts, the content related to the code is described in C language, the format is flexible, and it can run across platforms.

[0021] After listing 7 key fields, users can fill in the description information,...

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 functional block function modeling method for visual programming, which includes: the first step, defining text segments of the functional block function as seven key fields including information description, header file content, parameters, member variables, a code structuring segment, a code initializing segment and a function body code segment, wherein a header file comprises information and variable definition; the second step, analyzing a functional block defining text, extracting segment content corresponding to the key fields, extracting formal parameters of function to form input points of graphs; utilizing a returned value as a first input point in a default manner; analyzing definition statements of the member variables to form an output variable table and output the same; and the third step, processing extensional conditional-compilation statements during code generation, and outputting branch codes corresponding to the conditions. The member variables in the functional block function modeling method are flexible in definition, easy to transplant, visual and understandable, and are convenient for users to develop and maintain.

Description

technical field [0001] The invention belongs to the field of visual programming, and provides a modeling and editing method of visual editing symbols for application personnel, and specifically relates to the modeling processing of function block functions. Background technique [0002] Visual programming is an object-oriented graphical software development method. In order to realize application functions, various programming symbols are used to build program models and configure data flows, and schematic diagrams are used to represent program languages ​​and form target files. Before visual programming, it is necessary to create a set of functional function libraries for graphical programming. For this purpose, it is necessary to define a set of modeling methods and rules for functional blocks, which are convenient for application personnel to master, and provide tools for data definition and graphic editing. Some of the existing modeling methods refer to the IEC61131 stan...

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): G06F9/45
Inventor 冯亚东刘克金陈宏君周强邱大为徐东方张磊王国栋
Owner NR ELECTRIC CO LTD
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