CN113064581A - Management method and device for automation equipment, electronic equipment and storage medium - Google Patents

Management method and device for automation equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN113064581A
CN113064581A CN202110226497.9A CN202110226497A CN113064581A CN 113064581 A CN113064581 A CN 113064581A CN 202110226497 A CN202110226497 A CN 202110226497A CN 113064581 A CN113064581 A CN 113064581A
Authority
CN
China
Prior art keywords
automation equipment
metadata
automation
template
interface
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
CN202110226497.9A
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.)
China Coal Research Institute CCRI
Original Assignee
China Coal Research Institute CCRI
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 China Coal Research Institute CCRI filed Critical China Coal Research Institute CCRI
Priority to CN202110226497.9A priority Critical patent/CN113064581A/en
Publication of CN113064581A publication Critical patent/CN113064581A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The disclosure relates to a management method and a management device for automation equipment, electronic equipment and a storage medium, and relates to the technical field of automation control, wherein the method comprises the following steps: acquiring the automation equipment to be managed, and creating a metadata table of the automation equipment by combining a preset metadata table template; combining the metadata table and a preset data model template to create a data model of the automation equipment; establishing an interface of the automation equipment by combining a data model and a preset interface format definition text; generating a service corresponding to the interface by combining the interface and a preset coding template, and deploying the service on an automation equipment platform; and combining the service and the interface format definition text to generate a client code corresponding to the service, compiling and packaging the client code, and generating management software to manage the automation equipment. Management software of the automation equipment is generated, and the automation equipment is managed through the management software, so that the real-time performance of the control of the automation equipment and the convenience of monitoring and analysis are ensured.

Description

Management method and device for automation equipment, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of automation control technologies, and in particular, to a management method and apparatus for automation devices, an electronic device, and a storage medium.
Background
Currently, the connection and control of automation devices are usually implemented by configuration software. The configuration software is upper computer software. After the configuration software realizes the connection of the automation equipment, the operation data of the automation equipment is monitored and processed, OPC (OLE for Process Control) service, OPC-UA (OPC Unified Architecture, time sensitive network technology based on OPC Unified Architecture), WebService (web service) service, and Restful (Representational state transfer) service are provided to the outside through an interface, and a client develops a corresponding upper application through an engineering file and an interface description of the configuration software.
In the above manner of implementing connection and control of the automation device by using the configuration software, since the interface format, the services provided by the interface, and the like are complex and diverse, and the data processing and the instruction processing are mixed, when the automation device is controlled, a large amount of time is consumed for interface access, data processing, instruction processing, and the like, and thus the real-time performance of control and the convenience of monitoring and analysis of the automation device are difficult to guarantee.
Disclosure of Invention
The present disclosure provides a management method and apparatus for an automation device, an electronic device, and a storage medium, to at least solve a problem that a connection and control manner of the automation device in related technologies is difficult to ensure real-time performance of automation control and convenience of monitoring and analysis.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a management method of an automation device, including: acquiring automatic equipment to be managed, and creating a metadata table of the automatic equipment by combining a preset metadata table template; creating a data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template; establishing an interface of the automation equipment by combining a data model of the automation equipment and a preset interface format definition text; generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform; and combining the service and the interface format definition text to generate a client code corresponding to the service, compiling and packaging the client code, and generating management software of the automation equipment so as to manage the automation equipment through the management software.
According to a second aspect of the embodiments of the present disclosure, there is provided a management apparatus of an automation device, including:
the system comprises a first creating module, a second creating module and a third creating module, wherein the first creating module is used for acquiring the automation equipment to be managed and creating a metadata table of the automation equipment by combining a preset metadata table template; the second creating module is used for creating the data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template; the third establishing module is used for establishing an interface of the automation equipment by combining a data model of the automation equipment and a preset interface format definition text; the processing module is used for generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform; and the generating module is used for generating a client code corresponding to the service by combining the service and the interface format definition text, compiling and packaging the client code, generating management software of the automation equipment and managing the automation equipment through the management software.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the management method of the automation device set forth in the embodiment of the first aspect of the disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the management method for an automation device set forth in the first aspect of the present disclosure.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, which includes a computer program, when executed by a processor of an electronic device, enables the electronic device to execute the management method of an automation device set forth in the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the application has the following beneficial effects:
the method comprises the steps that a metadata table of the automation equipment is created by acquiring the automation equipment to be managed and combining a preset metadata table template; creating a data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template; establishing an interface of the automation equipment by combining a data model of the automation equipment and a preset interface format definition text; generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform; and combining the service and the interface format definition text to generate a client code corresponding to the service, compiling and packaging the client code to generate management software of the automation equipment, managing the automation equipment through the management software, generating the management software of the automation equipment by combining a preset metadata table template, a data model template, the interface format definition text and a coding template, managing the automation equipment through the generated management software of the automation equipment, and ensuring the real-time property of control, monitoring and analysis of the automation equipment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow chart illustrating a method of managing automation devices in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of a metadata table shown in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating a data model template, according to an exemplary embodiment;
FIG. 4 is a diagram illustrating an example deployment of a client and automation device platform, in accordance with an illustrative embodiment;
FIG. 5 is a block diagram of a management device of an automation appliance shown in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating an electronic device for management of automation devices in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Currently, the connection and control of automation devices are usually implemented by configuration software. The configuration software is upper computer software. After the configuration software realizes the connection of the automation equipment, the operation data of the automation equipment is monitored and processed, OPC-UA, WebService and Restful services are provided to the outside through an interface, and a client develops corresponding upper-layer application through engineering files and interface description of the configuration software.
In the above manner of implementing connection and control of the automation device by using the configuration software, since the interface format, the services provided by the interface, and the like are complex and diverse, and the data processing and the instruction processing are mixed, when the automation device is controlled, a large amount of time is consumed for interface access, data processing, instruction processing, and the like, and thus the real-time performance of control and the convenience of monitoring and analysis of the automation device are difficult to guarantee.
The present disclosure provides a management method for an automation device, which mainly addresses the above problems. The management method of the automation equipment of the embodiment of the disclosure firstly obtains the automation equipment to be managed, creating a metadata table of the automation equipment by combining a preset metadata table template, then creating a data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template, then creating an interface of the automation equipment by combining the data model of the automation equipment and a preset interface format definition text, then generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform, further, the text is defined by combining the service and the interface format to generate the client code corresponding to the service, and compiling and packaging the client codes to generate management software of the automation equipment so as to manage the automation equipment through the management software. Therefore, the management software of the automation equipment is generated by combining the preset metadata table template, the data model template, the interface format definition text and the coding template, the automation equipment is managed through the generated management software of the automation equipment, and the real-time property of the control of the automation equipment and the convenience of monitoring and analysis can be ensured.
The following describes a management method and apparatus of an automation device, an electronic device, and a storage medium, provided by an embodiment of the present application, with reference to the accompanying drawings.
FIG. 1 is a flow chart illustrating a method of managing automation devices in accordance with an exemplary embodiment.
The execution subject of the embodiment of the present disclosure may be a management apparatus of an automation device, and the management apparatus of the automation device may be a hardware device, or software installed in the hardware device, or the like.
As shown in fig. 1, the method for managing an automated device may include the following steps 101-105.
In step 101, an automation device to be managed is acquired, and a metadata table of the automation device is created in combination with a preset metadata table template.
The automated equipment may be, for example, coal excavation equipment in mine construction.
In an exemplary embodiment, a metadata template may be preset, so that after the to-be-managed automation device is acquired, the metadata of the to-be-managed automation device may be sorted by combining with the preset metadata table template to create a metadata table of the automation device.
In an exemplary embodiment, the metadata table template may include names and metadata descriptions of various metadata, and accordingly, the metadata table of the automation device may be created by combining a preset metadata table template in the following manner:
for each metadata in the metadata table template, judging whether the automation equipment is configured with the metadata;
if the automation equipment is provided with metadata, the metadata is used as first metadata;
a metadata table of the automation device is generated based on each first metadata and the corresponding metadata description.
For example, a metadata table template shown in table 1 below may be preset, and for metadata corresponding to each metadata name in the metadata table template, it may be determined whether the automation device is configured with the metadata, if yes, the metadata is used as first metadata, and the metadata is entered in a corresponding position in the metadata table template according to the metadata and a corresponding metadata description until all metadata configured by the automation device are entered in the metadata table template, so as to generate a metadata table of the automation device.
Table 1 metadata table template
Figure BDA0002956552670000051
In an exemplary embodiment, the metadata table created may be of the form shown in FIG. 2.
It should be noted that, after the metadata table of the automation device is created, the content in the metadata table may be checked, and the incorrect content in the metadata table may be corrected, so as to obtain a more accurate metadata table.
In step 102, a data model of the automation device is created in combination with the metadata table of the automation device and a preset data model template.
In an exemplary embodiment, the data model template may be preset, so that the data model of the automation device may be created in combination with the created metadata table of the automation device and the preset data model template.
It is understood that the metadata of the automation device may include real-time status data of the automation device, event data of status change reported by the automation device, and command data issued to the automation device for execution. The real-time status data includes, for example, an operating status, a function switch, a gear status, etc., the event data includes, for example, an alarm, a gear, a change in switching value, etc., and the command data includes, for example, a parameter, a return value, etc. of the command.
Accordingly, in an exemplary embodiment, the pre-setting of the data model template may include: a state data model template, an event data model template, and a command data model template.
Wherein, the state data model template comprises: each state variable model template, wherein a state variable model template comprises: respective metadata associated with the state variables;
the event data model template comprises: each event model template, a threshold type model template of an event in the event model templates and a parameter model template of a threshold type;
the command data model template comprises: individual command model templates, and parametric model templates in the command.
Referring to fig. 3, the state data model templates may include various state variable model templates, wherein, as shown on the right side of fig. 3, each state variable model template may include a variable number and the following various metadata names related to the state variables: the variable English name, the variable Chinese name, the variable storage type, the variable storage address, the variable register address, the initial value, the maximum value, the minimum value, the variable starting state and the like.
The event data model templates may include respective event model templates, threshold type model templates of events, and parameter model templates of threshold types. As shown in the middle of fig. 3, each event model template may include an event number and the following metadata names related to the event: event English name, event Chinese name, event type, event text, parent event number, event enable status, etc. In each threshold type model template for an event, a threshold type number may be included, along with the following metadata names associated with the threshold type: threshold type english name, threshold type chinese name, threshold type enable status, etc. In each parametric model template of the threshold type, a threshold parameter variation may be included, along with the following respective metadata associated with the threshold parameter: value, the number of the threshold type to which it belongs, the number of the event to which it belongs.
The command data model templates may include individual command model templates as well as parametric model templates in the commands. As shown in the left side of fig. 3, each command model template may include a command number and the following metadata names related to the command: command English name, command Chinese name, and command enable state. In each parametric model template in the command, a command parameter number may be included, along with the following respective metadata associated with the command parameter: parameter type, parameter register number, parameter command number, etc.
During specific implementation, whether corresponding metadata exist in the metadata table or not can be judged according to the name of each metadata in the data model template, if the corresponding metadata exist in the metadata table, the metadata are recorded into corresponding positions in the data model template until all metadata in the metadata table are recorded in the data model template, and therefore the data model of the automation equipment is generated. The generated data model of the automation device may include the following three types: a state data model, an event data model, a command data model.
In an exemplary embodiment, when the number of the automation devices is multiple, referring to fig. 3, the data model template may further include: the device model template, as shown in the upper side of fig. 3, may include a device name, a device number, and the like, the device name may include a device chinese name and a device english name, and the device number may include a device number of the current device and a number of a parent device of the current device. Correspondingly, the state variable model template, the event model template and the command model template may further include a device number of the device.
The device model templates are arranged in the preset data model templates, and the device serial numbers of the devices are respectively included in the device model templates, the state variable model templates, the event model templates and the command model templates, so that when a plurality of automatic devices are arranged, the metadata of the automatic devices can be simultaneously input into the data model templates according to the metadata tables of the automatic devices, and the high-frequency data acquisition of the automatic devices is realized.
In step 103, an interface of the automation device is created in conjunction with the data model of the automation device and the predefined interface format definition text.
In an exemplary embodiment, the interface format definition text may be generated in advance according to all writable variables of the automation device, where the entry in the interface format definition text may be a writable variable list, and the exit may be an execution result state. After the data model of the automation device is created, the interface of the automation device can be created by combining the data model of the automation device and the preset interface format definition text.
In an exemplary embodiment, the format item and the description of the format item in the interface format definition text may be as shown in table 2 below.
Table 2 format items and description
Figure BDA0002956552670000081
In step 104, a service corresponding to the interface is generated by combining the interface of the automation device and a preset encoding template, and the service is deployed on the automation device platform.
In an exemplary embodiment, a coding template capable of generating a service corresponding to an interface may be preset, so that after an interface of an automation device is created, the service corresponding to the interface may be generated by combining the interface of the automation device and the preset coding template, and then the service is deployed on an automation device platform.
In an exemplary embodiment, the interface of the automation device may include information such as an interface name and a parameter, and when the implementation is specific, a service corresponding to the interface may be generated by combining the interface of the automation device and a preset encoding template in the following manner:
replacing the interface name and the parameters in the coding template by combining the interface name and the parameters of the automation equipment to generate a service code;
and compiling and packaging the service codes to generate an executable file of the service corresponding to the interface.
Specifically, information such as an interface name and parameters in the coding template can be replaced by combining information such as an interface name and parameters of the automation equipment, a service code is generated, the service code is compiled and packaged, an executable file of the service corresponding to the interface is generated, the executable file is stored in a preset storage position, the automation equipment platform is subjected to hot loading, the interface is issued to the automation equipment platform, the service is deployed on the automation equipment platform, and therefore the automation equipment platform can achieve the service corresponding to the interface by calling the interface.
In step 105, a client code corresponding to the service is generated by combining the service and the interface format definition text, and the client code is compiled and packaged to generate management software of the automation device, so that the automation device is managed through the management software.
In an exemplary embodiment, after the service is deployed on the automation device platform, a client code corresponding to the service may be generated by combining the service and the created interface format definition text, and the client code is compiled and packaged to generate management software of the automation device, so that the automation device may be managed by the management software.
In an exemplary embodiment, the client code corresponding to the service may be generated based on the https restful service of Java in conjunction with the service and the created interface format definition text.
In an exemplary embodiment, the management software can communicate with the automation device platform in a https security certificate mutual authentication mode for mutual authentication.
Specifically, an https security certificate bidirectional authentication mode can be adopted to perform identity authentication on management software and an automation equipment platform and to perform security encryption on communication content. The management software and the automation equipment platform can exchange security certificates in a offline mode, and the respective security certificates of the management software and the automation equipment platform are imported into a certificate warehouse of the other party for storage after being agreed by the two parties. Therefore, the communication safety of the management software and the automation equipment platform is ensured.
In addition, the management software and the automation equipment platform are respectively communicated with the cloud end or the third-party system, and identity authentication and encryption of communication contents can be performed in a mode of adding a digital signature to a security certificate, so that the communication security of the management software and the automation equipment platform and the external cloud end or the third-party system is ensured.
In an exemplary embodiment, as shown in FIG. 4, the management of the automation devices may be in a multi-node coordinated distributed cache manner.
As shown in fig. 4, the automation device platform and the database server may collectively provide services to the client. Each client and the automation equipment platform can adopt multi-level deployment, so that the computing and processing capacity can be infinitely expanded, the metadata tables and the metadata and other data in the metadata tables can be stored in the distributed cache, and the storage and access of the metadata tables and the metadata with large data volume are realized. In addition, load balancing can be realized between the client and the automation equipment platform through a load balancer.
It can be understood that, in the embodiment of the present application, a metadata table of an automation device is created by combining a preset metadata table template, all metadata of each automation device can be arranged, a data model of the automation device is created by combining the metadata table and the data model template, all metadata of each automation device can be divided into corresponding data models, so that unification of the data models is realized, an interface of the automation device is created by combining the data models and an interface format definition text, and unification of an interface format can be realized.
The management software of the automation equipment is generated by combining the created interface of the automation equipment and the service corresponding to the interface generated by the preset coding template, the client code corresponding to the service is generated by combining the service and the interface format definition text, and the client code is compiled and packaged, the interface format of the automation equipment is uniform, the data model of the automation equipment is uniform, and when the automation equipment is managed by the management software of the automation equipment, the time consumed by interface access, data processing, instruction processing and the like can be greatly shortened, so that the real-time performance of automation equipment control and the convenience of monitoring and analysis are ensured. Moreover, the management method of the automation equipment does not need manual operation, avoids the situation of manual operation errors, does not need a large amount of research, development and test work, and enables remote docking and development to be possible.
The management method of the automation equipment of the embodiment of the disclosure includes the steps of firstly obtaining the automation equipment to be managed, combining a preset metadata table template, creating a metadata table of the automation equipment, combining the metadata table of the automation equipment and a preset data model template, creating a data model of the automation equipment, combining the data model of the automation equipment and a preset interface format definition text, creating an interface of the automation equipment, combining the interface of the automation equipment and a preset coding template, generating a service corresponding to the interface, deploying the service on an automation equipment platform, further combining the service and the interface format definition text, generating a client code corresponding to the service, compiling and packaging the client code, generating management software of the automation equipment, and managing the automation equipment through the management software, therefore, the management software of the automation equipment is generated by combining the preset metadata table template, the data model template, the interface format definition text and the coding template, the automation equipment is managed through the generated management software of the automation equipment, and the real-time property of the control of the automation equipment and the convenience of monitoring and analysis can be ensured.
In order to implement the foregoing embodiments, the present disclosure provides a management apparatus for an automation device.
Fig. 5 is a block diagram of a management apparatus of an automation device according to an exemplary embodiment, and referring to fig. 5, the management apparatus 100 of the automation device may include: a first creation module 110, a second creation module 120, a third creation module 130, a processing module 140, and a generation module 150.
The first creating module 110 is configured to obtain an automation device to be managed, and create a metadata table of the automation device in combination with a preset metadata table template;
the second creating module 120 is configured to create a data model of the automation device in combination with the metadata table of the automation device and a preset data model template;
a third creating module 130, configured to create an interface of the automation device in combination with the data model of the automation device and a preset interface format definition text;
the processing module 140 is configured to generate a service corresponding to an interface in combination with the interface of the automation device and a preset encoding template, and deploy the service on an automation device platform;
the generating module 150 is configured to generate a client code corresponding to the service in combination with the service and the interface format definition text, compile and package the client code, and generate management software for the automation device, so as to manage the automation device through the management software.
Optionally, the metadata table template includes: the name and metadata description of each metadata;
correspondingly, the first creating module 150 is specifically configured to:
for each metadata in the metadata table template, judging whether the automation equipment is configured with the metadata;
if the automation equipment is provided with metadata, the metadata is used as first metadata;
a metadata table of the automation device is generated based on each first metadata and the corresponding metadata description.
Optionally, the data model template includes: a state data model template, an event data model template and a command data model template;
wherein, the state data model template comprises: each state variable model template, wherein a state variable model template comprises: respective metadata associated with the state variables;
the event data model template comprises: each event model template, a threshold type model template of an event in the event model templates and a parameter model template of a threshold type;
the command data model template comprises: individual command model templates, and parametric model templates in the command.
Optionally, the number of the automation devices is multiple, and the data model template further includes: an equipment model template; the equipment model template includes: device name and device number;
the state variable model template, the event model template and the command model template further include the device number of the device.
Optionally, the interface of the automation device includes: interface name and parameters;
the processing module 140 is specifically configured to:
replacing the interface name and the parameters in the coding template by combining the interface name and the parameters of the automation equipment to generate a service code;
and compiling and packaging the service codes to generate an executable file of the service corresponding to the interface.
Optionally, the management software communicates with the automation device platform, and performs bidirectional authentication by using https security certificate bidirectional authentication.
It should be noted that, for the implementation process and the technical principle of the management apparatus of the automation device of the embodiment, reference is made to the foregoing explanation of the management method of the automation device of the embodiment of the present disclosure, and details are not described here.
The management device of the automation equipment of the embodiment of the disclosure firstly obtains the automation equipment to be managed, combines a preset metadata table template, creates a metadata table of the automation equipment, combines the metadata table of the automation equipment and a preset data model template, creates a data model of the automation equipment, combines the data model of the automation equipment and a preset interface format definition text, creates an interface of the automation equipment, combines the interface of the automation equipment and a preset coding template, generates a service corresponding to the interface, deploys the service on an automation equipment platform, further combines the service and the interface format definition text, generates a client code corresponding to the service, compiles and packages the client code, generates management software of the automation equipment so as to manage the automation equipment through the management software, therefore, the management software of the automation equipment is generated by combining the preset metadata table template, the data model template, the interface format definition text and the coding template, the automation equipment is managed through the generated management software of the automation equipment, and the real-time property of the control of the automation equipment and the convenience of monitoring and analysis can be ensured.
In order to implement the above embodiments, the embodiment of the present disclosure further provides an electronic device.
Wherein, electronic equipment includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of managing an automation device as previously described.
As an example, fig. 6 is a block diagram of an electronic device 200 for managing an automation device according to an exemplary embodiment, where as shown in fig. 6, the electronic device 200 may further include:
a memory 210 and a processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 storing a computer program, and the processor 220 implementing the management method of the automation device according to the embodiment of the disclosure when executing the program.
Bus 230 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)240 and/or cache memory 250. The server 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 by one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with electronic device 200, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 292. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 293. As shown, the network adapter 293 communicates with the other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 220 executes various functional applications and data processing by executing programs stored in the memory 210.
It should be noted that, for the implementation process and the technical principle of the electronic device of the embodiment, reference is made to the foregoing explanation of the management method of the automation device of the embodiment of the present disclosure, and details are not described here.
The electronic equipment provided by the embodiment of the disclosure can realize the generation of management software of the automation equipment by combining a preset metadata table template, a data model template and an interface format definition text and a coding template, and can manage the automation equipment through the generated management software of the automation equipment, thereby ensuring the real-time property of the control of the automation equipment and the convenience of monitoring and analysis.
In order to implement the foregoing embodiments, the present disclosure also proposes a storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the management method of an automation device as described above.
In order to implement the above embodiments, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform the method of managing an automation device as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for managing an automation device, comprising:
acquiring automatic equipment to be managed, and creating a metadata table of the automatic equipment by combining a preset metadata table template;
creating a data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template;
establishing an interface of the automation equipment by combining a data model of the automation equipment and a preset interface format definition text;
generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform;
and combining the service and the interface format definition text to generate a client code corresponding to the service, compiling and packaging the client code, and generating management software of the automation equipment so as to manage the automation equipment through the management software.
2. The method of claim 1, wherein the metadata table template comprises: the name and metadata description of each metadata;
the creating of the metadata table of the automation equipment by combining the preset metadata table template comprises the following steps:
for each metadata in the metadata table template, determining whether the automation device is configured with the metadata;
if the metadata is configured in the automation equipment, taking the metadata as first metadata;
and generating a metadata table of the automation equipment according to the first metadata and the corresponding metadata description.
3. The method of claim 1, wherein the data model template comprises: a state data model template, an event data model template and a command data model template;
wherein, the state data model template comprises: each state variable model template, wherein a state variable model template comprises: respective metadata associated with the state variables;
the event data model template comprises: each event model template, a threshold type model template of an event in the event model templates and a parameter model template of a threshold type;
the command data model template comprises: individual command model templates, and parametric model templates in the command.
4. The method of claim 3, wherein the number of the automation devices is plural, and the data model template further comprises: an equipment model template; the equipment model template includes: device name and device number;
the state variable model template, the event model template and the command model template further include a device number of the device.
5. The method of claim 1, wherein the interface of the automation device comprises: interface name and parameters;
the generating of the service corresponding to the interface by combining the interface of the automation device and a preset coding template includes:
replacing the interface name and the parameters in the coding template by combining the interface name and the parameters of the automation equipment to generate service codes;
and compiling and packaging the service code to generate an executable file of the service corresponding to the interface.
6. The method of claim 1, wherein the management software communicates with the automation device platform using https security credential mutual authentication.
7. An apparatus for managing an automation device, comprising:
the system comprises a first creating module, a second creating module and a third creating module, wherein the first creating module is used for acquiring the automation equipment to be managed and creating a metadata table of the automation equipment by combining a preset metadata table template;
the second creating module is used for creating the data model of the automation equipment by combining the metadata table of the automation equipment and a preset data model template;
the third establishing module is used for establishing an interface of the automation equipment by combining a data model of the automation equipment and a preset interface format definition text;
the processing module is used for generating a service corresponding to the interface by combining the interface of the automation equipment and a preset coding template, and deploying the service on an automation equipment platform;
and the generating module is used for generating a client code corresponding to the service by combining the service and the interface format definition text, compiling and packaging the client code, generating management software of the automation equipment and managing the automation equipment through the management software.
8. The apparatus of claim 7, wherein the metadata table template comprises: the name and metadata description of each metadata;
the first creating module is specifically configured to:
for each metadata in the metadata table template, determining whether the automation device is configured with the metadata;
if the metadata is configured in the automation equipment, taking the metadata as first metadata;
and generating a metadata table of the automation equipment according to the first metadata and the corresponding metadata description.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of managing an automation device as claimed in any one of claims 1 to 6.
10. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a management method of an automation device according to any one of claims 1 to 6.
CN202110226497.9A 2021-03-01 2021-03-01 Management method and device for automation equipment, electronic equipment and storage medium Pending CN113064581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110226497.9A CN113064581A (en) 2021-03-01 2021-03-01 Management method and device for automation equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110226497.9A CN113064581A (en) 2021-03-01 2021-03-01 Management method and device for automation equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113064581A true CN113064581A (en) 2021-07-02

Family

ID=76559460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110226497.9A Pending CN113064581A (en) 2021-03-01 2021-03-01 Management method and device for automation equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113064581A (en)

Similar Documents

Publication Publication Date Title
US11822906B2 (en) Industrial programming development with a converted industrial control program
US20180101371A1 (en) Deployment manager
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
CN112558946A (en) Method, device and equipment for generating code and computer readable storage medium
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN109144511B (en) Method and system for automatically generating numerical simulation graphical user interface
CN101379504A (en) Virtual roles
CN110390184A (en) For executing the method, apparatus and computer program product of application in cloud
CN113296823A (en) Method, device, equipment and storage medium for generating resource configuration file
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
US20150213069A1 (en) Tag Based System For Leveraging Design Data
CN113064581A (en) Management method and device for automation equipment, electronic equipment and storage medium
US10691635B1 (en) Data translation system and method of use
CN113254158B (en) Deployment method and device of deep learning system
CN112784417B (en) Avionics distributed joint simulation method and system based on SysML
US20180278472A1 (en) System and method for performing mass renaming of list of items at run-time with variable differentiation factor
CN110928761B (en) Demand chain and system and method for application thereof
CN113326145A (en) Method and system for managing app
Priggouris et al. The system design life cycle
CN114217899B (en) Data persistence method, device, electronic equipment and storage medium
CN109828752A (en) Item code automatic generation method, device, computer equipment and storage medium
CN110795207B (en) Virtual container minimum resource unit mutual trust configuration method and device
US20230237249A1 (en) Method and system for generating an automation engineering project in a technical installation using multidisciplinary approach
CN109800155B (en) Method and device for testing QTE interlocking application software based on Probe

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