[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114518875A - Graphical programming system and programming method thereof - Google Patents

Graphical programming system and programming method thereof Download PDF

Info

Publication number
CN114518875A
CN114518875A CN202011300569.1A CN202011300569A CN114518875A CN 114518875 A CN114518875 A CN 114518875A CN 202011300569 A CN202011300569 A CN 202011300569A CN 114518875 A CN114518875 A CN 114518875A
Authority
CN
China
Prior art keywords
cfc
file
project
compiling
graphical programming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011300569.1A
Other languages
Chinese (zh)
Inventor
曾丽丽
郝俊芳
张爱玲
曹森
常亚威
刘海斌
刘晓光
胡欢
于海
杨亚璞
刘威鹏
杨敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202011300569.1A priority Critical patent/CN114518875A/en
Publication of CN114518875A publication Critical patent/CN114518875A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a graphical programming system and a programming method thereof. The system comprises a project management device, a CFC file editing device, a function block management device, a project compiling device and a graphical programming display device; the project management device is used for creating project files; the CFC file editing device is used for editing the CFC file; the project compiling device is used for compiling the CFC file; the graphical programming display device is used for displaying parameters and debugging on line in real time. The method comprises creating a project file; editing the CFC file; compiling the CFC file; and displaying various parameters and carrying out online real-time debugging. The invention can complete the programming of complex application through simple operation, and is very beneficial to developers to carry out rapid configuration programming and debugging.

Description

Graphical programming system and programming method thereof
Technical Field
The invention relates to the technical field of human-computer interaction, in particular to a graphical programming system and a programming method thereof.
Background
With the rapid development of computer technology, more and more application fields relate to embedded system programming, but programmers in many professional fields are not professional embedded software designers, text and symbol-based programming based on assembly, ST, LC, C languages and the like has considerable difficulty for non-professionals to learn and skillfully apply, the finished code quality is different, learning, programming and debugging of assembly, C languages and the like consume a lot of time and energy, and the attention time in the due professional fields is reduced. The prior art lacks an intuitive graphical programming system easy to operate, and cannot meet the development requirements of secondary application in the professional field.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a graphical programming system and a programming method thereof, which can complete programming of complex applications through simple operations, and are very beneficial for developers to perform rapid configuration programming and debugging.
In a first aspect, an embodiment of the present invention provides a graphical programming system, which includes a project management apparatus, a CFC file editing apparatus, a function block management apparatus, a project compiling apparatus, and a graphical programming display apparatus.
The project management device is used for creating project files.
The CFC file editing device is used for editing the CFC file.
The project compiling device is used for compiling the CFC file.
The graphical programming display device is used for displaying parameters and debugging on line in real time.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the item management apparatus includes:
and the name module is used for creating the project name.
A processor module for creating processor resources for the project.
A CFC module for creating a CFC file for each of the processor resources.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the CFC file editing apparatus includes:
and the selection module is used for selecting the required functional block.
And the input module is used for typing in the input pins and the output pins of the functional block to complete the connection between the input variables and the output variables of the functional block.
And the editing module is used for assigning the pin variables of the functional blocks.
And the function block configuration module is used for configuring the execution sequence of the function blocks according to the execution tasks.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the item compiling apparatus includes:
and the compiling module is used for compiling the edited CFC file according to the target code of the corresponding hardware platform or according to the analytic language irrelevant to the hardware.
And the downloading module is used for downloading the compiled object code.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the graphical programming display device includes:
and the display module is used for displaying the real-time running values of the input variables and the output variables of the function blocks.
And the debugging indication module is used for indicating names and comments of the function blocks, indicating comments and attribute settings of input pins and output pins of the function blocks and indicating modification of real-time variables.
In a second aspect, an embodiment of the present invention further provides a graphical programming method applying the graphical programming system, including:
a project file is created.
The CFC file is edited.
The CFC file is compiled.
And displaying various parameters and carrying out online real-time debugging.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the creating a project file includes:
a project name is created.
A processor resource for the project is created.
A CFC file is created for each of the processor resources.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the editing the CFC file includes:
the desired function block is selected.
Clicking and typing in an input pin and an output pin of the function block by a mouse, finishing the connection between an input variable and an output variable of the function block when the pins of the two function blocks have the same data type, and forming data transmission between the two variables in the CFC file.
And assigning the pin variables of the functional blocks in a dialog box.
And configuring the execution sequence of the function blocks through function block dragging according to the execution tasks.
In combination with the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the compiling a CFC file includes:
and compiling the edited CFC file according to the object code of the corresponding hardware platform or according to the analytic language which is in accordance with the IEC61131-3 standard and is irrelevant to the hardware.
And downloading the compiled object code.
With reference to the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the displaying parameters and performing online real-time debugging includes:
and displaying the real-time running values of the input variable and the output variable of the function block.
Indicating names and comments to the function blocks, indicating comments and attribute settings for input pins and output pins of the function blocks, and indicating modifications to real-time variables.
The embodiment of the invention has the beneficial effects that:
the graphical programming system and the graphical programming method provided by the invention are based on the CFC programming language of IEC61131-3 standard, provide an exchange type graphical programming debugging mode with complete functions and simple and convenient operation, integrate multiple functions of project creation, hardware configuration, CFC programming, CFC compiling and downloading, CFC file online debugging and the like, and an application developer can complete the programming of complex application only by performing simple function block configuration operation, thereby being very beneficial to the developer to perform rapid configuration programming and debugging.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a graphical programming method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein can be arranged and designed in a wide variety of different configurations.
The CFC refers to a continuous function block diagram, and is a newly added graphical programming language based on function blocks suitable for complex application programming in the international IEC611131-3 standard.
The invention provides a graphical programming system, which comprises a project management device, a CFC file editing device, a function block management device, a project compiling device and a graphical programming display device.
The project management device is used for creating project files.
The CFC file editing device is used for editing the CFC file.
The project compiling device is used for compiling the CFC file.
The graphical programming display device is used for displaying parameters and debugging on line in real time.
Wherein the project management apparatus includes:
and the name module is used for creating the project name.
A processor module for creating processor resources for the project.
A CFC module for creating a CFC file for each of the processor resources.
Wherein, the CFC file editing device comprises:
and the selection module is used for selecting the required functional block.
And the input module is used for typing in the input pin and the output pin of the functional block to complete the connection between the input variable and the output variable of the functional block.
And the editing module is used for assigning the pin variables of the functional blocks.
And the function block configuration module is used for configuring the execution sequence of the function blocks according to the execution tasks.
Wherein the item compiling apparatus includes:
and the compiling module is used for compiling the edited CFC file according to the target code of the corresponding hardware platform or according to the analytic language irrelevant to the hardware.
And the downloading module is used for downloading the compiled object code.
Wherein the graphical programming display device comprises:
and the display module is used for displaying the real-time running values of the input variables and the output variables of the function blocks.
And the debugging indication module is used for indicating names and comments of the function blocks, indicating comments and attribute settings of input pins and output pins of the function blocks and indicating modification of real-time variables.
Referring to fig. 1, a second embodiment of the present invention provides a graphical programming method using the graphical programming system, including:
a project file is created.
Editing the CFC file.
The CFC file is compiled.
And displaying various parameters and carrying out online real-time debugging.
Wherein the creating a project file comprises:
a project name is created.
A processor resource that creates a project.
A CFC file is created for each of the processor resources.
Wherein, the editing the CFC file comprises:
the desired function block is selected.
Clicking and typing in an input pin and an output pin of the function block by a mouse, finishing the connection between an input variable and an output variable of the function block when the pins of the two function blocks have the same data type, and forming data transmission between the two variables in the CFC file.
And assigning the pin variables of the functional blocks in a dialog box.
And configuring the execution sequence of the function blocks through function block dragging according to the execution tasks.
Wherein the compiled CFC file comprises:
and compiling the edited CFC file according to the object code of the corresponding hardware platform or according to the analytic language which is in accordance with the IEC61131-3 standard and is irrelevant to the hardware.
And downloading the compiled object code.
Wherein, show each item parameter and carry out online real-time debugging, include:
and displaying the real-time running values of the input variable and the output variable of the function block.
Indicating names and comments to the function blocks, indicating comments and attribute settings for input pins and output pins of the function blocks, and indicating modifications to real-time variables.
The embodiment of the invention aims to protect a graphical programming system and a programming method thereof, and has the following effects:
the invention provides a graphical programming system and a method, provides an exchange type graphical programming debugging mode based on the CFC programming language of IEC61131-3 standard, has complete functions and simple and convenient operation, integrates various functions of project creation, hardware configuration, CFC programming, CFC compiling and downloading, CFC file online debugging and the like, can complete the programming of complex application only by performing simple function block configuration operation by application developers, and is very beneficial to the developers to perform rapid configuration programming and debugging.
The computer program product of the graphical programming method and the graphical programming apparatus provided in the embodiments of the present invention includes a computer readable storage medium storing a program code, and instructions included in the program code may be used to execute the method in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
Specifically, the storage medium can be a general storage medium, such as a removable disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the graphical programming method can be executed, so that programming of complex applications can be completed through simple operations, and a developer can perform rapid configuration programming and debugging.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A graphical programming system is characterized by comprising a project management device, a CFC file editing device, a function block management device, a project compiling device and a graphical programming display device;
the project management device is used for creating project files;
the CFC file editing device is used for editing the CFC file;
the project compiling device is used for compiling the CFC file;
the graphical programming display device is used for displaying parameters and debugging on line in real time.
2. The graphical programming system according to claim 1, wherein the project management means comprises:
a name module for creating a project name;
a processor module for creating processor resources for a project;
a CFC module for creating a CFC file for each of the processor resources.
3. The graphical programming system according to claim 1, wherein the CFC file editing apparatus comprises:
the selection module is used for selecting the required functional block;
the input module is used for typing in an input pin and an output pin of the functional block to complete the connection between the input variable and the output variable of the functional block;
the editing module is used for assigning the pin variables of the functional blocks;
and the function block configuration module is used for configuring the execution sequence of the function blocks according to the execution tasks.
4. The graphical programming system according to claim 1, wherein said item compiling means comprises:
the compiling module is used for compiling the edited CFC file according to the target code of the corresponding hardware platform or according to the analytic language irrelevant to the hardware;
and the downloading module is used for downloading the compiled object code.
5. The graphical programming system of claim 3, wherein the graphical programming display device comprises:
the display module is used for displaying the real-time running values of the input variables and the output variables of the function blocks;
and the debugging indication module is used for indicating names and comments of the function blocks, indicating comments and attribute settings of input pins and output pins of the function blocks and indicating modification of real-time variables.
6. A graphic programming method using the graphic programming system according to any one of claims 1 to 5, comprising:
creating a project file;
editing the CFC file;
compiling the CFC file;
and displaying various parameters and carrying out online real-time debugging.
7. The graphical programming method according to claim 6, wherein the creating a project file comprises:
creating a project name;
creating a processor resource for a project;
a CFC file is created for each of the processor resources.
8. The graphical programming method according to claim 6, wherein the editing the CFC file comprises:
selecting a required function block;
typing in an input pin and an output pin of the function block, and completing the connection between an input variable and an output variable of the function block when the pins of the two function blocks have the same data type;
assigning a pin variable of the functional block;
and configuring the execution sequence of the functional blocks according to the execution tasks.
9. The graphical programming method according to claim 6, wherein compiling the CFC file comprises:
compiling the edited CFC file according to the target code of the corresponding hardware platform or according to an analytic language irrelevant to hardware;
and downloading the compiled object code.
10. The graphical programming method according to claim 8, wherein the displaying parameters and performing online real-time debugging comprises:
displaying real-time running values of the input variables and the output variables of the function blocks;
indicating names and comments to the function blocks, indicating comments and attribute settings for input pins and output pins of the function blocks, and indicating modifications to real-time variables.
CN202011300569.1A 2020-11-19 2020-11-19 Graphical programming system and programming method thereof Pending CN114518875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011300569.1A CN114518875A (en) 2020-11-19 2020-11-19 Graphical programming system and programming method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011300569.1A CN114518875A (en) 2020-11-19 2020-11-19 Graphical programming system and programming method thereof

Publications (1)

Publication Number Publication Date
CN114518875A true CN114518875A (en) 2022-05-20

Family

ID=81595299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011300569.1A Pending CN114518875A (en) 2020-11-19 2020-11-19 Graphical programming system and programming method thereof

Country Status (1)

Country Link
CN (1) CN114518875A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554863A (en) * 2018-05-31 2019-12-10 宁波科安网信通讯科技有限公司 Graphical programming method of quasi-integrated circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110554863A (en) * 2018-05-31 2019-12-10 宁波科安网信通讯科技有限公司 Graphical programming method of quasi-integrated circuit

Similar Documents

Publication Publication Date Title
US7613716B2 (en) Partitioning for model-based design
US20090100406A1 (en) Software factory specification and execution model
US20150095811A1 (en) Context aware user interface parts
US20120272213A1 (en) Dynamic generation of formatted user interfaces in software environments
US20170192877A1 (en) Mobile application development and deployment
Agarwal et al. Expert system and it's requirement engineering process
CN105739983A (en) Script program edition device and realization method thereof
CN109144511B (en) Method and system for automatically generating numerical simulation graphical user interface
US20070038947A1 (en) Method and device for generation of a parametric model associated with a 3D geometry
Bernaschina et al. Online model editing, simulation and code generation for web and mobile applications
Kautz et al. Achievements, Failures, and the Future of Model-Based Software Engineering.
US20090031226A1 (en) Method and System for Extending Task Models for Use In User-Interface Design
US8819620B1 (en) Case management software development
Radeke et al. PIM Tool: Support for pattern-driven and model-based UI development
Nowakowski et al. Requirements-level language and tools for capturing software system essence
Hill Measuring and reducing modeling effort in domain-specific modeling languages with examples
CN114518875A (en) Graphical programming system and programming method thereof
US20170161029A1 (en) Visual modeling method to construct system views based on a system meta view
US9542165B2 (en) Model to Petri-Net transformation
TWI694377B (en) Development platform of mobile native applications
Aquino et al. Conceptual modelling of interaction
CN113918198B (en) Model-code synchronization method
Silvestre et al. A Usable MDE-based Tool for Software Process Tailoring.
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
Yang et al. FuAET: A tool for developing fuzzy self-adaptive software systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination