CN115657585A - Control program editing method, device, equipment and storage medium - Google Patents

Control program editing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115657585A
CN115657585A CN202211306774.8A CN202211306774A CN115657585A CN 115657585 A CN115657585 A CN 115657585A CN 202211306774 A CN202211306774 A CN 202211306774A CN 115657585 A CN115657585 A CN 115657585A
Authority
CN
China
Prior art keywords
editing
information
control program
control
target
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
CN202211306774.8A
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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN202211306774.8A priority Critical patent/CN115657585A/en
Publication of CN115657585A publication Critical patent/CN115657585A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a control program editing method, a control program editing device, control program editing equipment and a storage medium. The invention discloses: generating an editing strategy corresponding to the target equipment according to the equipment requirement information, acquiring an editing reference library corresponding to the target equipment according to the editing strategy, extracting control information required by the target equipment from the editing reference library, and editing a control program of the target equipment according to the control information; the method and the device have the advantages that the editing strategy of the target device is established according to the device requirement information, so that the control information required by the target device is extracted from the editing reference library according to the editing strategy, and then the control program of the target device is generated according to the control information, so that the program editing efficiency is greatly improved.

Description

Control program editing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of electrical control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for editing a control program.
Background
When different users (for example, electrical engineers) edit a control program of the same device, because different users edit programs with different editing means such as different program editing processes, different thinking and different program editing architectures, different users need to spend a lot of time understanding and interpreting program architectures and different program editing processes already edited by other users, and the prior art cannot effectively specify the means for editing programs by different users, which results in serious influence on efficiency and accuracy of program editing.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for controlling program editing, and aims to solve the technical problem that the efficiency and the accuracy of program editing are seriously influenced because the prior art cannot effectively standardize means for editing programs by different users.
In order to achieve the above object, the present invention provides a control program editing method, including the steps of:
generating an editing strategy corresponding to the target equipment according to the equipment requirement information;
acquiring an editing reference library corresponding to the target equipment according to the editing strategy, and extracting control information required by the target equipment from the editing reference library;
and editing the control program of the target equipment according to the control information.
Optionally, the obtaining an editing reference library corresponding to the target device according to the editing policy includes:
acquiring an original reference library corresponding to the target equipment according to the equipment requirement information;
screening the original reference information in the original reference library according to the editing strategy to obtain target reference information;
and constructing an editing reference library corresponding to the target equipment based on the target reference information.
Optionally, the extracting, from the edit reference library, control information required by the target device includes:
determining each object to be controlled in the target equipment according to the editing strategy;
acquiring variable information of each object to be controlled;
and extracting control information required by the target equipment from the editing reference library according to the variable information.
Optionally, the extracting, from the edit reference library, control information required by the target device according to the variable information includes:
determining target control point positions of the objects to be controlled, variable names and variable addresses of the target control point positions according to the variable information;
and extracting control information required by the target equipment from the editing reference library according to the variable name and the variable address.
Optionally, the editing the control program of the target device according to the control information includes:
acquiring a function block corresponding to each object to be controlled in the target equipment according to the control information;
acquiring pin data of each pin in the functional block according to the hardware equipment information of the target equipment and the preset control logic of the target equipment;
and editing the control program of the target equipment according to the pin data and the function block.
Optionally, after the editing the control program of the target device according to the control information, the method further includes:
acquiring a formula to be verified corresponding to the control program from a preset formula library according to the control information;
acquiring a code to be checked corresponding to the control program from a preset code library according to the control information;
and carrying out program verification on the control program according to the formula to be verified and the code to be verified.
Optionally, after the editing the control program of the target device according to the control information, the method further includes:
determining annotation information of each control object of the target equipment according to the control information;
generating a program annotation according to the annotation information;
and importing the program annotation into the control program.
In order to achieve the above object, the present invention also provides a control program editing apparatus comprising:
the program editing module is used for generating an editing strategy corresponding to the target equipment according to the equipment requirement information;
the editing reference module is used for acquiring an editing reference library corresponding to the target equipment according to the editing strategy and extracting control information required by the target equipment from the editing reference library;
and the program editing module is also used for generating a control program of the target equipment according to the control information.
Further, to achieve the above object, the present invention also proposes a control program editing apparatus comprising: a memory, a processor and a control program editing program stored on the memory and executable on the processor, the control program editing program being configured to implement the steps of the control program editing method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a control program editing program which, when executed by a processor, implements the steps of the control program editing method as described above.
The method comprises the steps of generating an editing strategy corresponding to target equipment according to equipment requirement information, acquiring an editing reference library corresponding to the target equipment according to the editing strategy, extracting control information required by the target equipment from the editing reference library, and editing a control program of the target equipment according to the control information; the method and the device have the advantages that the editing strategy of the target device is established according to the device requirement information, so that the control information required by the target device is extracted from the editing reference library according to the editing strategy, and then the control program of the target device is generated according to the control information, so that the program editing efficiency is greatly improved.
Drawings
Fig. 1 is a schematic structural diagram of a control program editing apparatus of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a control program editing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a control program editing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control program editing method according to a third embodiment of the present invention;
fig. 5 is a block diagram showing a control program editing apparatus according to a first embodiment of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a control program editing device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the control program editing apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the control program editing apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a control program editing program.
In the control program editing apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the control program editing apparatus of the present invention may be provided in a control program editing apparatus that calls the control program editing program stored in the memory 1005 through the processor 1001 and executes the control program editing method provided by the embodiment of the present invention.
An embodiment of the present invention provides a control program editing method, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a control program editing method according to the present invention.
In this embodiment, the control program editing method includes the following steps:
step S10: and generating an editing strategy corresponding to the target equipment according to the equipment requirement information.
It should be understood that the execution subject of the method of the embodiment may be a control program editing device with data processing, network communication and program execution functions, such as a computer, etc., or other apparatuses or devices capable of implementing the same or similar functions, and the control program editing device (hereinafter referred to as a program editing device) is used as an example for description herein.
It should be noted that the device requirement information may be electrical design requirement information of the target device, and for example, the device requirement information may include a cylinder or the like for controlling the target device. The target device may be an electrical device that needs to be electrically controlled or electrically designed. The editing policy may be a policy for editing control information carried by a control system corresponding to the target device.
It should be understood that, in order to effectively control the electrical device that needs to be controlled, the program editing device in this embodiment generates an editing policy of the control information carried by the control system corresponding to the target device according to the electrical design requirement information input by the user, and edits the control information of the control system of the target device through the editing policy, thereby implementing control of the target device.
Step S20: and acquiring an editing reference library corresponding to the target equipment according to the editing strategy, and extracting control information required by the target equipment from the editing reference library.
It should be noted that the editing reference library may be an editing reference database which is generated by the program editing device according to the history editing log and contains history operation information; the history editing log may be a log in which a control program of the history user editing target device is recorded; the historical operation information may be information related to historical user programming operations, for example, the historical editing information and the historical control information may include formulas, functions, databases, and the like used in the historical user programming process. The control information may be related information for editing the control program, and the control information may include information such as function block data of the editing program, pin data corresponding to the function block, and a programming function.
The history user may be a user who has historically edited the control program, and the edit reference library may include information such as a variable name and a variable address of each control object of the target device, and a specific control point of each control object.
It should be understood that, in order to effectively specify the editing means and editing manner of the control program of the target device by different users, the program editing device of the present embodiment creates an editing reference library in advance based on the historical operation information of the historical user editing control program, so that when detecting that a user inputs device requirement information, a relevant editing strategy is generated based on the device requirement information, the editing reference library of the target device is obtained according to the editing strategy, and the control information relevant to the editing strategy is extracted from the editing reference library, thereby implementing fast positioning of the control information required by the target device, and effectively specifying the editing means and editing manner of the control program of the target device by different users.
Step S30: and editing the control program of the target equipment according to the control information.
It should be noted that the control program may be a control program carried by a control system corresponding to the target device, and in order to meet the requirement that different users perform device control on the target device, the users may edit the control program of the target device based on their respective electrical design requirement information, thereby implementing control on the target device.
Further, in order to effectively edit the control program, the step S30 may include:
acquiring a function block corresponding to each object to be controlled in the target equipment according to the control information;
acquiring pin data of each pin in the functional block according to the hardware equipment information of the target equipment and the preset control logic of the target equipment;
and editing the control program of the target equipment according to the pin data and the function block.
The function block may be a function block in which a control program of an object to be controlled is packaged in advance. The pins may be function interfaces in the function blocks, and the program editing device may interface the function interfaces of the function blocks based on pin data, which may be function interface data, to implement control of the function blocks. The preset control logic may be preset program writing rule logic.
It should be understood that, in order to effectively edit a control program, in this embodiment, the program editing apparatus acquires a function block corresponding to each object to be controlled in the target apparatus according to the control information, and acquires pin data of each pin in the function block according to hardware apparatus information of the target apparatus and a preset control logic of the target apparatus, so that the pin can be controlled based on the pin data to control the function block corresponding to each object to be controlled, and the control program of the target apparatus is edited according to the pin data and the function block.
Further, in order to effectively avoid the control program editing error, after the step S30, the method may further include:
acquiring a formula to be verified corresponding to the control program from a preset formula library according to the control information;
acquiring a code to be checked corresponding to the control program from a preset code library according to the control information;
and carrying out program verification on the control program according to the formula to be verified and the code to be verified.
It should be noted that the preset formula library may be a preset database storing an Excel formula or other formulas. The formula to be verified may be a formula used by the editing control program. The preset code library is a preset database storing standard codes.
It should be understood that, in order to verify the edited control program to avoid a program editing error, the program editing device in this embodiment obtains a to-be-verified formula corresponding to the control program from a preset formula library according to the control information, obtains a to-be-verified code corresponding to the control program from a preset code library according to the control information, and verifies the formula and the code in the edited control program according to the to-be-verified formula and the to-be-verified code to implement program verification on the control program.
Further, in order to improve the use experience and the editing efficiency of the subsequent user editing program, after the step S30, the method may include:
determining annotation information of each control object of the target equipment according to the control information;
generating a program annotation according to the annotation information;
and importing the program annotation into the control program.
Note that the comment information may be a comment related to each piece of editing information in the control program editing process.
In this embodiment, an editing policy corresponding to a target device is generated according to device requirement information, an editing reference library corresponding to the target device is obtained according to the editing policy, control information required by the target device is extracted from the editing reference library, and a control program of the target device is edited according to the control information; the method and the device have the advantages that the editing strategy of the target device is established according to the device requirement information, so that the control information required by the target device is extracted from the editing reference library according to the editing strategy, and then the control program of the target device is generated according to the control information, so that the program editing efficiency is greatly improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a control program editing method according to a second embodiment of the present invention.
Based on the foregoing first embodiment, in this embodiment, the step of obtaining the editing reference library corresponding to the target device according to the editing policy includes:
step S211: and acquiring an original reference library corresponding to the target equipment according to the equipment requirement information.
It should be noted that the original reference library may be a reference library containing all operation information of the control program of the target device by the historical user.
It should be understood that, in order to ensure the comprehensiveness of the information in the reference library to avoid the problem of low programming efficiency caused by insufficient information, the program editing device of the present embodiment records and stores all the historical operation information of the control program of the target device by the historical user in advance, and then constructs the original reference library according to the historical operation information.
Step S212: and screening the original reference information in the original reference library according to the editing strategy to obtain target reference information.
It should be noted that the original reference information may be all the historical operation information in the original reference library, all the function block information of the target device, and the like. The target reference information may be reference information required by the user after being filtered.
It should be understood that, in order to refine and simplify the reference information so as to eliminate the invalid information that is not needed by the user, the program editing device in this embodiment determines the design requirement of the current electrical design of the user according to the editing policy, determines the information screening condition according to the design requirement, and screens the original reference information in the original reference library according to the information screening condition to obtain the target reference information corresponding to the design requirement, that is, the reference information that is needed by the current electrical design of the user.
Step S213: and constructing an editing reference library corresponding to the target equipment based on the target reference information.
It should be understood that, in order to simplify the original reference library so that the user can acquire information, the program editing device of this embodiment constructs the editing reference library corresponding to the target device based on the target reference information, thereby implementing quick positioning of the reference information when the user edits the program.
In this embodiment, an original reference library corresponding to the target device is obtained according to the device requirement information, original reference information in the original reference library is screened according to the editing strategy to obtain target reference information, and an editing reference library corresponding to the target device is constructed based on the target reference information; according to the method and the device, the original reference information in the original reference library is screened according to the editing strategy to obtain the target reference information, so that the information in the original reference library is refined, the information obtaining efficiency is effectively improved, the editing reference library corresponding to the target device is constructed based on the target reference information, the simplification of the reference library is realized, the accuracy of editing the information in the reference library is improved, and the program editing efficiency is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a control program editing method according to a third embodiment of the present invention.
Based on the first embodiment, in this embodiment, the step of extracting the control information required by the target device from the editing reference library includes:
step S221: and determining each object to be controlled in the target equipment according to the editing strategy.
It should be noted that there are multiple objects to be controlled in the target device, and the objects to be controlled may be functional components or functional modules in the target device.
It should be understood that, in order to accurately locate the object to be controlled in the target device, the program editing device in this embodiment determines each object in the target device according to the hardware information corresponding to the target device, and determines the object to be controlled in each object according to the editing policy.
Step S222: and acquiring variable information of each object to be controlled.
The variable information may be a variable name, a variable address, and the like of each object to be controlled.
It should be understood that, in this embodiment, the program editing device determines, according to the editing policy, a system variable of the control system corresponding to the target device, and determines, according to the system variable, a variable name and a variable address of each object to be controlled.
Step S223: and extracting control information required by the target equipment from the editing reference library according to the variable information.
It should be understood that, in this embodiment, the program editing device locates a specific control point location of each object to be controlled according to each variable information, thereby determining a target control point location of each object to be controlled, determines a variable name and a variable address of each target control point location according to a system variable, and extracts control information required by the target device from the editing reference library according to the variable name and the variable address.
Further, in order to accurately extract the control information required by the target device from the edit reference library, step S223 may include:
step S2231: determining target control point positions of the objects to be controlled, variable names and variable addresses of the target control point positions according to the variable information;
step S2232: and extracting control information required by the target equipment from the editing reference library according to the variable name and the variable address.
It should be noted that the target control point may be a specific location on the object to be controlled, which needs to be controlled. The variable name may be a parameter change name of the target control point. The variable address may be a parameter change address of the target control point.
In this embodiment, each object to be controlled in the target device is determined according to the editing strategy, variable information of each object to be controlled is obtained, and control information required by the target device is extracted from the editing reference library according to each variable information; in this embodiment, each object to be controlled in the target device is determined according to the editing strategy, so that control and positioning of the target device are achieved, and control information required by the target device is extracted from the editing reference library according to variable information of each object to be controlled, so that the efficiency of extracting the control information is improved.
Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a control program editing program, and the control program editing program, when executed by a processor, implements the steps of the control program editing method as described above.
Since the storage medium adopts all technical solutions of all the above embodiments, at least all the beneficial effects brought by the technical solutions of the above embodiments are provided, and details are not repeated herein.
Referring to fig. 5, fig. 5 is a block diagram illustrating a control program editing apparatus according to a first embodiment of the present invention.
As shown in fig. 5, the control program editing apparatus according to the embodiment of the present invention includes:
the program editing module 10 is configured to generate an editing policy corresponding to the target device according to the device requirement information;
the editing reference module 20 is configured to obtain an editing reference library corresponding to the target device according to the editing policy, and extract control information required by the target device from the editing reference library;
the program editing module 10 is further configured to generate a control program of the target device according to the control information.
Further, the edit reference module 20 is further configured to obtain an original reference library corresponding to the target device according to the device requirement information; screening the original reference information in the original reference library according to the editing strategy to obtain target reference information; and constructing an editing reference library corresponding to the target equipment based on the target reference information.
Further, the editing reference module 20 is further configured to determine each object to be controlled in the target device according to the editing policy; acquiring variable information of each object to be controlled; and extracting control information required by the target equipment from the editing reference library according to the variable information.
Further, the edit reference module 20 is further configured to determine, according to the variable information, a target control point location of each object to be controlled, and a variable name and a variable address of each target control point location; and extracting control information required by the target equipment from the editing reference library according to the variable name and the variable address.
Further, the program editing module 10 is further configured to obtain, according to the control information, a function block corresponding to each object to be controlled in the target device; acquiring pin data of each pin in the functional block according to the hardware equipment information of the target equipment and the preset control logic of the target equipment; and editing the control program of the target equipment according to the pin data and the functional block.
Further, the control program editing apparatus further includes:
the program checking module 30 is configured to obtain a to-be-checked formula corresponding to the control program from a preset formula library according to the control information; acquiring a code to be checked corresponding to the control program from a preset code library according to the control information; and carrying out program verification on the control program according to the formula to be verified and the code to be verified.
Further, the program editing module 10 is further configured to determine annotation information of each control object of the target device according to the control information; generating a program annotation according to the annotation information; and importing the program annotation into the control program.
In this embodiment, an editing policy corresponding to a target device is generated according to device requirement information, an editing reference library corresponding to the target device is obtained according to the editing policy, control information required by the target device is extracted from the editing reference library, and a control program of the target device is edited according to the control information; the method and the device have the advantages that the editing strategy of the target device is established according to the device requirement information, so that the control information required by the target device is extracted from the editing reference library according to the editing strategy, and then the control program of the target device is generated according to the control information, so that the program editing efficiency is greatly improved.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the control program editing method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A control program editing method, characterized by comprising:
generating an editing strategy corresponding to the target equipment according to the equipment requirement information;
acquiring an editing reference library corresponding to the target equipment according to the editing strategy, and extracting control information required by the target equipment from the editing reference library;
and editing the control program of the target equipment according to the control information.
2. The control program editing method according to claim 1, wherein the obtaining of the editing reference library corresponding to the target device according to the editing policy includes:
acquiring an original reference library corresponding to the target equipment according to the equipment requirement information;
screening the original reference information in the original reference library according to the editing strategy to obtain target reference information;
and constructing an editing reference library corresponding to the target equipment based on the target reference information.
3. The control program editing method according to claim 1, wherein the extracting of the control information required by the target device from the editing reference library includes:
determining each object to be controlled in the target equipment according to the editing strategy;
acquiring variable information of each object to be controlled;
and extracting control information required by the target equipment from the editing reference library according to the variable information.
4. The control program editing method according to claim 3, wherein the extracting of the control information required by the target device from the editing reference library based on the variable information includes:
determining target control point locations of objects to be controlled, and variable names and variable addresses of the target control point locations according to the variable information;
and extracting the control information required by the target equipment from the editing reference library according to the variable name and the variable address.
5. The control program editing method according to any one of claims 1 to 4, wherein the editing of the control program of the target device according to the control information includes:
acquiring a function block corresponding to each object to be controlled in the target equipment according to the control information;
acquiring pin data of each pin in the functional block according to the hardware equipment information of the target equipment and the preset control logic of the target equipment;
and editing the control program of the target equipment according to the pin data and the function block.
6. The control program editing method according to any one of claims 1 to 4, further comprising, after editing the control program of the target device according to the control information:
acquiring a formula to be verified corresponding to the control program from a preset formula library according to the control information;
acquiring a code to be checked corresponding to the control program from a preset code library according to the control information;
and carrying out program verification on the control program according to the formula to be verified and the code to be verified.
7. The control program editing method according to any one of claims 1 to 4, further comprising, after editing the control program of the target device according to the control information:
determining annotation information of each control object of the target equipment according to the control information;
generating a program annotation according to the annotation information;
and importing the program annotation into the control program.
8. A control program editing apparatus, characterized by comprising:
the program editing module is used for generating an editing strategy corresponding to the target equipment according to the equipment requirement information;
the editing reference module is used for acquiring an editing reference library corresponding to the target equipment according to the editing strategy and extracting control information required by the target equipment from the editing reference library;
and the program editing module is also used for generating a control program of the target equipment according to the control information.
9. A control program editing apparatus characterized by comprising: a memory, a processor, and a control program editing program stored on the memory and executable on the processor, the control program editing program being configured to implement the control program editing method according to any one of claims 1 to 7.
10. A storage medium, characterized in that a control program editing program is stored thereon, which when executed by a processor implements the control program editing method according to any one of claims 1 to 7.
CN202211306774.8A 2022-10-24 2022-10-24 Control program editing method, device, equipment and storage medium Pending CN115657585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211306774.8A CN115657585A (en) 2022-10-24 2022-10-24 Control program editing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211306774.8A CN115657585A (en) 2022-10-24 2022-10-24 Control program editing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115657585A true CN115657585A (en) 2023-01-31

Family

ID=84992025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211306774.8A Pending CN115657585A (en) 2022-10-24 2022-10-24 Control program editing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115657585A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011123630A (en) * 2009-12-10 2011-06-23 Toyo Electric Mfg Co Ltd Comment information download device for programmable controller
CN105160119A (en) * 2015-09-16 2015-12-16 中国电力科学研究院 Policy file based secondary electric power equipment simulation modeling method
CN107978310A (en) * 2017-11-30 2018-05-01 腾讯科技(深圳)有限公司 Audio-frequency processing method and device
CN109196481A (en) * 2016-04-29 2019-01-11 德州仪器公司 Entered by enabling DYNAMIC J TAG test pattern and the shared of all JTAG pins increases data transmission and processing amount
CN109242430A (en) * 2018-09-03 2019-01-18 山东浪潮通软信息科技有限公司 A kind of workflow design edit history storage control and its application method
CN112541203A (en) * 2019-09-04 2021-03-23 中冶赛迪重庆信息技术有限公司 Electrical design method and electrical design system
CN112966964A (en) * 2021-03-23 2021-06-15 佛山市太火红鸟科技有限公司 Product matching method, device, equipment and storage medium based on design requirements

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011123630A (en) * 2009-12-10 2011-06-23 Toyo Electric Mfg Co Ltd Comment information download device for programmable controller
CN105160119A (en) * 2015-09-16 2015-12-16 中国电力科学研究院 Policy file based secondary electric power equipment simulation modeling method
CN109196481A (en) * 2016-04-29 2019-01-11 德州仪器公司 Entered by enabling DYNAMIC J TAG test pattern and the shared of all JTAG pins increases data transmission and processing amount
CN107978310A (en) * 2017-11-30 2018-05-01 腾讯科技(深圳)有限公司 Audio-frequency processing method and device
CN109242430A (en) * 2018-09-03 2019-01-18 山东浪潮通软信息科技有限公司 A kind of workflow design edit history storage control and its application method
CN112541203A (en) * 2019-09-04 2021-03-23 中冶赛迪重庆信息技术有限公司 Electrical design method and electrical design system
CN112966964A (en) * 2021-03-23 2021-06-15 佛山市太火红鸟科技有限公司 Product matching method, device, equipment and storage medium based on design requirements

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN110008113B (en) Test method and device and electronic equipment
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN114048701B (en) Netlist ECO method, device, equipment and readable storage medium
CN111459495B (en) Unit test code file generation method, electronic device and storage medium
CN113741898B (en) Form generation method, device and equipment
CN113434395B (en) Automatic generation method, device, equipment and medium for test cases
CN113127347A (en) Interface testing method, device, equipment and readable storage medium
CN104536398B (en) Frequency converter monitoring method and system
CN115686631B (en) Random instruction generation method and device based on knowledge base and storage medium
CN110990274A (en) Data processing method, device and system for generating test case
CN111667231B (en) Automatic tax return method, device, system, computer equipment and storage medium
CN114610286A (en) Development document generation method and device, computer equipment and storage medium
CN112631704A (en) Interface element identification method and device, storage medium and electronic equipment
CN115617780A (en) Data import method, device, equipment and storage medium
CN111026670A (en) Test case generation method, test case generation device, and storage medium
CN113468212A (en) Event execution method and device and electronic equipment
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN116048480B (en) Method and device for automatically generating chart based on code tool
CN110806891B (en) Method and device for generating software version of embedded device
CN115657585A (en) Control program editing method, device, equipment and storage medium
CN115878475A (en) Abnormal scene testing method, device and system
CN115033436A (en) Page testing method and device, electronic equipment and storage medium

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