Disclosure of Invention
In view of the above-mentioned drawbacks, an object of the present invention is to provide a device management method, apparatus, device and storage medium, which solve the problems of poor flexibility, high development cost and low development efficiency of the existing factory device management system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a device management method includes the following steps,
acquiring query keywords input by a user, querying an equipment model from a model library, and creating a new model if the equipment model is not queried in the model library;
selecting the equipment model from the model library to construct an equipment instance;
acquiring a configuration instruction input by a user, configuring an equipment model component of the equipment instance, and defining an equipment acquisition point corresponding to the equipment instance in the equipment model component;
acquiring real-time parameter values of the equipment acquisition points, and displaying the real-time parameter values through a data chart of the equipment instance;
and judging whether the equipment instance triggers an alarm event or not, and if so, executing an alarm action associated with the alarm event.
Preferably, the method for creating the new model comprises the following steps:
obtaining a new model command, newly building a model in the database,
receiving parameter information input by a user, and establishing and configuring the following basic parameter definitions for the new model:
creating and configuring static attributes, and modifying fixed attribute information defining the equipment model;
creating and configuring acquisition parameters, and modifying parameter information which can be obtained by defining the equipment model;
creating and configuring event definition, modifying an alarm rule for defining the alarm event trigger threshold value, and defining the alarm action;
creating and configuring a state value definition, and modifying the state of the equipment model and the parameter value attribute of the corresponding state;
creating and configuring alarm code definition, and modifying information defining the alarm code, alarm description, alarm type and the like of the equipment model and mapping relation thereof;
creating and configuring a custom parameter; and modifying the model indexes defining the user-defined algorithm.
Preferably, before the selecting the equipment model from the model library and constructing the equipment instance, the method further comprises receiving a copy instruction, selecting and copying the equipment model from the model library, and forming a new model by configuring the equipment model.
Preferably, the method configures the equipment model component of the equipment instance, and further includes independently editing, adding, or deleting the parameter definition of the equipment model in the equipment model component of the equipment instance:
independently editing and modifying the original parameter definition of the equipment model in the equipment instance;
or, independently adding the parameter definition of the equipment model in the equipment instance;
or independently deleting the parameter definition of the equipment model in the equipment instance.
Preferably, the method further comprises independent editing, adding or deleting of parameter definitions of the equipment models in the model library:
independently editing and modifying the original parameter definition of the equipment model in the model library;
or, independently adding the parameter definition of the equipment model in the model library;
or independently deleting the parameter definition of the equipment model in the model library.
Preferably, the method configures the device acquisition point corresponding to the device model, and further includes the step of missing alarm of the device acquisition point:
judging whether each acquisition parameter in the equipment model and the corresponding equipment acquisition point exist, if not, popping up to prompt the acquisition parameter missing equipment acquisition point
Preferably, the method further comprises the step of equipment inquiry:
configuring the equipment name, the equipment type, the equipment state, the alarm type and the parameter information corresponding to the equipment model in an equipment card;
acquiring a keyword of a query;
and retrieving the equipment models related to the keywords from the equipment cards, and listing the retrieved equipment models.
The present application additionally provides an apparatus management device, comprising:
the model library is used for storing the equipment model and the parameter definition of the equipment model;
the model query module is used for acquiring query keywords input by a user and querying the equipment model from the model library;
the model new building module is used for building a new model;
the equipment instance building module is used for selecting the equipment model from the model library and building an equipment instance;
the parameter configuration module is used for acquiring a configuration instruction input by a user, configuring an equipment model component of the equipment instance, and defining an equipment acquisition point corresponding to the equipment instance in the equipment model component;
the parameter acquisition module is used for acquiring real-time parameter values of the equipment acquisition points;
the display module is used for displaying the real-time parameter values acquired by the parameter acquisition module through a data chart of the equipment instance;
the judging module is used for judging whether the equipment instance triggers an alarm event or not;
and the execution module is used for executing the alarm action associated with the alarm event.
An apparatus management apparatus further provided by the present application, a memory storing executable program code; a processor coupled with the memory; the processor calls the executable program code stored in the memory to execute the device management method.
The present application further provides a computer storage medium storing computer instructions for executing the device management method when the computer instructions are called.
One of the above technical solutions has the following advantages or beneficial effects:
according to the established equipment model, an equipment instance is created, and the equipment instance is quickly and flexibly created in batches; the method and the device have the advantages that real-time parameter data are obtained from production equipment in actual production, real-time parameter values are displayed through the equipment model, and the production equipment is monitored by judging whether an alarm event is triggered or not, so that unified management of the whole production example is realized, the problem that equipment of different manufacturers cannot be compatible in the same system and cannot be managed in a unified mode is solved, the equipment model is flexibly defined, compatibility is high, and the cost of secondary development of the system can be greatly reduced.
Detailed Description
The embodiments of the present invention will be described in detail below, examples of which are illustrated in the accompanying drawings, and the embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present invention and are not to be construed as limiting the present invention.
In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means two or more unless specifically limited otherwise.
As shown in fig. 1-2, an apparatus management method includes the steps of obtaining a query keyword input by a user, querying an apparatus model from a model library, and creating a new model if the apparatus model is not queried in the model library;
selecting the equipment model from the model library to construct an equipment instance;
acquiring a configuration instruction input by a user, configuring an equipment model component of the equipment instance, and defining an equipment acquisition point corresponding to the equipment instance in the equipment model component;
acquiring real-time parameter values of the equipment acquisition points, and displaying the real-time parameter values through a data chart of the equipment instance;
and judging whether the equipment instance triggers an alarm event or not, and if so, executing an alarm action associated with the alarm event.
Specifically, the method can be used for flexibly making the equipment instance by a user, completing the management model of the equipment instance by copying the equipment model into the equipment instance in the model library, and defining a new parameter definition by newly building the equipment model when the required equipment model does not exist in the database; creating the equipment instance according to the established equipment model, copying all parameter configuration, state configuration, alarm event configuration and the like of the equipment model into the equipment instance after selecting the model, and realizing quick and flexible batch creation of the equipment instance; the method comprises the steps of obtaining data parameters from production equipment in actual production, associating real-time parameter values of equipment acquisition points with corresponding equipment models in models of equipment examples, displaying the real-time parameter values through the equipment models, and monitoring the production equipment by judging whether alarm events are triggered, so that unified management of the whole production examples is realized, the problem that equipment of different manufacturers cannot be compatible in the same system and cannot be uniformly managed is solved, and the equipment models are flexibly defined, so that the compatibility is high, and the cost of secondary development of the system can be greatly reduced;
an embodiment of applying the application to printing and dyeing production is provided, wherein an example is newly built and named as a printing and dyeing example, equipment needing to be managed in a printing and dyeing workshop comprises a bleaching machine, a padding machine, a printing machine, a baking machine, a washing machine and the like, inquiry search is carried out from a model base, the searched equipment model is copied into the printing and dyeing example, if the printing machine is not searched in the model base, a blank model is newly built in the model base, relevant parameter definitions are configured on the printing machine model, data provided by a data interface of the printing machine are completely configured on the printing machine model, so that the construction of the printing machine model is completed, then the printing machine model is copied into the printing and dyeing example from the model base, all equipment needing to be managed in the printing and dyeing production workshop corresponds to the printing and dyeing example one by one, and then the equipment model in the printing and dyeing example is subjected to parameter correspondence with production equipment corresponding to the printing and dyeing workshop The production equipment corresponding to the printing and dyeing production workshop is generally provided with data acquisition point output, after acquiring the running parameter data of the production equipment through an acquisition point, the parameters are sent to the equipment model corresponding to the printing and dyeing example, for example, the information such as the temperature, the running speed, the running time and the like of a padding machine in the production workshop are acquired, the padding machine model in the printing and dyeing example displays the acquired information, a worker can directly acquire the parameter data of the padding machine in actual production from the padding machine model, the data of other instruments in the production workshop can be synchronized to the corresponding equipment model to be displayed in the same way, and the worker can uniformly manage and monitor all instruments in the workshop through the equipment model simulated in the printing and dyeing example; alarm events are set in the bleaching machine model, the pad dyeing machine model, the printing machine model, the baking machine model and the washing machine model, and if the alarm event is triggered by the equipment model, a message is sent to inform workers, so that the safety monitoring of a workshop is realized.
Further, creating a new model comprises the steps of:
obtaining a new model command, newly building a model in the database,
receiving parameter information input by a user, and establishing and configuring the following basic parameter definitions for the new model:
creating and configuring static attributes, and modifying fixed attribute information defining the equipment model;
creating and configuring acquisition parameters, and modifying parameter information which can be obtained by defining the equipment model;
creating and configuring event definition, modifying an alarm rule for defining the alarm event trigger threshold value, and defining the alarm action;
creating and configuring a state value definition, and modifying the state of the equipment model and the parameter value attribute of the corresponding state;
creating and configuring alarm code definition, and modifying information defining the alarm code, alarm description, alarm type and the like of the equipment model and mapping relation thereof;
creating and configuring a custom parameter; and modifying the model indexes defining the user-defined algorithm.
The constructed equipment instance has high compatibility, new equipment can be defined by creating a new model, various parameters of the new equipment are defined according to the requirements of the equipment,
static attributes, fixed attribute information describing the model, are not necessarily filled in, such as: equipment brand, model, specification;
acquiring parameters, defining parameter information which can be acquired by a machine type from an edge end/sensor, wherein identifiers in the acquired parameters need to be accessed from a data processing platform interface; after selecting the production equipment in the corresponding data acquisition module, acquiescing that the acquisition paths of all the parameters are the ID, and modifying the acquisition paths separately by the parameters; when the production equipment is selected, the production equipment of the associated example cannot be selected;
event definition, defining rules for editing alarms, defining actions such as threshold triggering alarms of identifiers and the like, supporting the establishment and editing of a plurality of rules, and supporting the pushing of event notifications of triggering actions when conditions are met, such as: when the water volume is more than 50L, the rule logic definition of the message is pushed, and the message pushing configuration code is supported and set in the event definition;
state value definition, which defines the escape of parameter enumeration of machine type device state, and some state values are device state attributes combined by multiple parameters, such as: the equipment state is the combination of the MachineStateInt and OnLine parameters, and the running, stopping, off-line and on-line are respectively displayed; storing the values obtained by the self-defined state values according to a time sequence, and temporarily storing for 5 years (for generating fluctuation history of each parameter of equipment operation in a statistical time period);
defining alarm code definition, defining the mapping relation of the alarm code, alarm description, alarm type and other information of the machine type, such as: alarm code 101 is that the temperature of the electric cabinet is too high; the alarm code definition supports setting message pushing configuration codes; each rule (namely each alarm code) in the event in the alarm code definition can be triggered independently, and one level of each rule comprises a serious alarm, an important alarm and a general alarm;
self-defining parameters, and self-defining algorithm to create indexes of the model, such as: the on-day opening rate is equal to the opening time length/24 hours; when the user-defined parameters are created, whether a formula is established or not needs to be judged, whether the result can be calculated through test and verification or not is tested, and whether the result needing to be verified is consistent with the data type selected by the current user-defined parameters or not is judged;
it should be noted that, after the device model is successfully created, if a custom parameter and a state value are defined in the device model, a data acquisition module interface needs to be called, and the custom acquisition parameter or the state value is stored in the corresponding device production device (because the value of the custom parameter is a result obtained by formula operation of other parameters, no custom parameter exists in an acquisition point table on the original data acquisition module), so that the custom parameter or the state value is used for storing a history value of the custom parameter in a data acquisition module in a time sequence manner later.
Each parameter set price supports self-defined sequencing, and a plurality of components of the same type are added in the model; the same model cannot have the same component name; the frequency of storing the collection parameters, the user-defined parameters and the user-defined state values is 1 minute per record; when the operation clicked by the user is to leave the current page or switch other parameter assemblies, whether the editing information of the current parameter assembly is stored or not needs to be checked, and if the editing information is not stored, a popup prompt is given.
In a further embodiment, before selecting the device model from the model library and building the device instance, the method further includes receiving a copy instruction, selecting and copying the device model from the model library, and forming a new model by configuring the device model.
Further, configuring the equipment model component of the equipment instance further includes independently editing, adding or deleting parameter definitions of the equipment models in the equipment model component of the equipment instance:
independently editing and modifying the original parameter definition of the equipment model in the equipment instance;
or, independently adding the parameter definition of the equipment model in the equipment instance;
or independently deleting the parameter definition of the equipment model in the equipment instance.
Specifically, in this embodiment, when the parameters required by the device model in the database are not consistent with the parameters required by the device instance, the parameter definition of the device model may be flexibly configured according to the actual requirements of the device instance, and the static attributes, the collection parameters, the event definitions, the state value definitions, the alarm code definitions, the configuration custom parameters of the device model are modified and edited, or the parameters are added/deleted, after the device model in the model base of the present application is copied to the device instance, the device model in the device instance and the device model in the model base will be disconnected, and the modification operation of the device model in the device instance will only independently modify the parameter definition of the device model in the device instance, and will not affect the device model in the database, the independent modification only acts on the equipment model of the current equipment instance, so that the flexible configuration of the equipment model is realized, information can be deleted only after secondary confirmation is needed before the parameter definition of the equipment model in the instance is deleted, and batch deletion is supported.
Further, the method further comprises independent editing, adding or deleting of parameter definitions of the equipment models in the model library:
independently editing and modifying the original parameter definition of the equipment model in the model library;
or, independently adding the parameter definition of the equipment model in the model library;
or independently deleting the parameter definition of the equipment model in the model library.
Specifically, in this embodiment, when the device model in the database needs to be modified according to the requirement, the device model in the model library may be independently modified, the parameter definition of the device model is flexibly configured, and the static attribute, the collection parameter, the event definition, the state value definition, the alarm code definition, and the configuration custom parameter of the device model are modified and edited, or parameters are added/deleted, after the device model in the model library of the present application is copied to the device instance, the device model in the device instance and the device model in the model library will be disconnected, and the modification operation on the parameter definition of the device model in the model library will only independently modify the device model in the model library, and will not affect the device model in the device instance that has been constructed, the independent modification only acts on the equipment models in the model base, and when the models are copied backwards, the models are copied according to the modified equipment models, so that flexible configuration of each equipment model is realized, information can be deleted only after secondary confirmation is needed before parameter definition of the equipment models in the model base is deleted, and batch deletion is supported.
Further, configuring the device acquisition point corresponding to the device model, further comprising the step of missing alarm of the device acquisition point:
and judging whether the acquisition parameters in the equipment model and the corresponding equipment acquisition points exist or not, and if not, popping up and prompting the acquisition parameters to lack the equipment acquisition points.
Specifically, in this embodiment, after the device model selects the production device in the corresponding data acquisition module, the default acquisition path of all the parameters is the ID, if the production device is modified, all the parameter paths are triggered to be automatically modified, and meanwhile, the embodiment can also modify the acquisition path independently for the independent acquisition parameters.
Further, the method also comprises the equipment query step:
configuring the equipment name, the equipment type, the equipment state, the alarm type and the parameter information corresponding to the equipment model in an equipment card;
acquiring a keyword of a query;
and retrieving the equipment models related to the keywords from the equipment cards, and listing the retrieved equipment models.
Specifically, in this embodiment, in order to facilitate query of the device model, a device card is configured for the device model, and a device name, a device state, an alarm type and parameter information corresponding to the device model are configured in the device card, where the device state includes operation, stop, online and offline, the alarm type includes a serious alarm, an important alarm and a general alarm, and the parameter information is parameter information acquired by the device model from production equipment, and the device model required by a user can be quickly searched through keyword query, so as to obtain relevant information of the device model; and when the equipment state is off-line, displaying the latest on-line time, clicking to view historical data before the off-line, and only displaying equipment with non-meter type attributes and open-meter monitoring attributes in the equipment according to the query result. When there is alarm, it supports displaying alarm label, if several alarms are not finished in one device in the same time, it displays alarm mark with highest event grade. The default ordering of the query results is firstly according to the priority of the equipment state (1 in operation, 2 stops, 3 waits for production, 4 is off-line), then according to the equipment type (Pinyin initial letters), and finally according to the alarm level (1 urgent, 2 serious, 3 important, 4 common).
As shown in fig. 3, the present application provides a device management apparatus, including:
the model library is used for storing the equipment model and the parameter definition of the equipment model;
the model query module is used for acquiring query keywords input by a user and querying the equipment model from the model library;
the model new building module is used for building a new model;
the equipment instance building module is used for selecting the equipment model from the model library and building an equipment instance;
the parameter configuration module is used for acquiring a configuration instruction input by a user, configuring an equipment model component of the equipment instance, and defining an equipment acquisition point corresponding to the equipment instance in the equipment model component;
the parameter acquisition module is used for acquiring real-time parameter values of the equipment acquisition points;
the display module is used for displaying the real-time parameter values acquired by the parameter acquisition module through a data chart of the equipment instance;
the judging module is used for judging whether the equipment instance triggers an alarm event or not;
and the execution module is used for executing the alarm action associated with the alarm event.
Specifically, the model query module queries the equipment model, and if the corresponding equipment model is not queried in the model library, a new model is created through the model creation module; copying an equipment model from the model library through an equipment instance building module to build an equipment instance; configuring parameter definitions of equipment models in an equipment instance through a parameter configuration module, and configuring equipment acquisition points corresponding to the equipment models; acquiring real-time parameter values of acquisition points of each device by using a parameter acquisition module, and displaying the real-time parameter values in each device model in a device example by using a display module; and judging whether each equipment model triggers an alarm event or not through the judging module, and if so, executing an alarm action associated with the current alarm event by using the executing module.
In this embodiment, the above-described apparatus embodiments are only schematic, where the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In addition, the present application proposes a device management device, a memory storing executable program code; a processor coupled with the memory; the processor calls the executable program code stored in the memory to execute the device management method.
The present application further provides a computer storage medium storing computer instructions for executing the device management method when the computer instructions are called.
For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires (control method), a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art within the scope of the present invention.