CN118131987A - Process data storage method and device of batch control system - Google Patents
Process data storage method and device of batch control system Download PDFInfo
- Publication number
- CN118131987A CN118131987A CN202311862539.3A CN202311862539A CN118131987A CN 118131987 A CN118131987 A CN 118131987A CN 202311862539 A CN202311862539 A CN 202311862539A CN 118131987 A CN118131987 A CN 118131987A
- Authority
- CN
- China
- Prior art keywords
- physical
- data
- storage area
- model
- program control
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 230000008569 process Effects 0.000 title claims abstract description 43
- 238000013500 data storage Methods 0.000 title claims abstract description 33
- 238000003860 storage Methods 0.000 claims abstract description 153
- 230000008859 change Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012423 maintenance Methods 0.000 abstract description 8
- 238000000638 solvent extraction Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000004519 manufacturing process Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000002537 cosmetic Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000012847 fine chemical Substances 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to the technical field of batch control, and provides a process data storage method and device of a batch control system. The method comprises the following steps: setting a plurality of storage areas; based on the structure levels of the physical model, storing physical model data corresponding to each structure level in the physical model into a physical model storage area; based on the structure levels of the program control model, storing program control model data corresponding to each structure level in the program control model into a program model storage area; storing the binding relation between the unit elements and the physical units into a binding relation storage area; and carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into an instantiation data storage area. According to the method, the data of different types are stored in a partitioning mode, the convenience degree of data maintenance is improved, meanwhile, the instantiation range is reduced due to split process data, the quantity of the instantiation data is reduced, and the storage space is greatly saved.
Description
Technical Field
The application relates to the technical field of batch control, in particular to a process data storage method and device of a batch control system.
Background
Along with the development of enterprise production intellectualization, the batch control system is widely applied to the industrial fields of intermittent and obvious batch fine chemical industry, food, cosmetics, pharmacy and the like, and aims to produce different products according to different formulas and production processes in a limited time period by utilizing the same device.
In a batch control system, process data is used to describe a process organization method and a production flow of batch control production, and the core includes a physical model and a program control model. The physical model is used for constructing a physical equipment organization structure of a mass production site; the program control model is used to organize execution of a series of process-oriented tasks, and is a collection of a series of device-oriented control activities.
At present, the maintenance of process data is realized manually, the traditional process data storage mode is to sequence physical model data and program control model data into a whole, and the whole is stored, and the method has the following defects: the data is stored as a whole, when only part of the data is needed to be modified, the whole data is needed to be read, and the whole data is stored in a serialization way after the modification, so that the efficiency is low; the data is poor in integral storage readability, and is unfavorable for the investigation and positioning of problems in practical engineering application; part of the process data is template data and needs to be instantiated, if the whole is stored, the whole needs to be instantiated together during the instantiation, so that more resources and space are occupied.
Along with the increasing complexity of batch control production process, the process data volume is larger and larger, the internal logic relationship is more complex, the defects bring high maintenance cost to the process data, the stability of industrial production can be reduced, and the potential safety hazard is increased.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the embodiment of the application provides a process data storage method and device of a batch control system, so as to solve the problems of high overall storage and maintenance cost and poor stability in the prior art.
In a first aspect of an embodiment of the present application, a process data storage method of a batch control system is provided, including:
Setting a plurality of storage areas, wherein the storage areas comprise a physical model storage area, a program model storage area, a binding relation storage area and an instantiation data storage area;
Based on the structure levels of the physical model, storing physical model data corresponding to each structure level in the physical model into a physical model storage area; the physical model data includes physical units and physical operations;
based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model are stored in a program model storage area, wherein the program control model data comprises operation elements corresponding to an operation element layer, unit elements corresponding to a unit element layer and program control data corresponding to the program control layer;
storing the binding relation between the unit elements and the physical units into a binding relation storage area;
And carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into an instantiation data storage area.
In a second aspect of an embodiment of the present application, there is provided a process data storage device of a batch control system, including:
The setting module is used for setting a plurality of storage areas, wherein the storage areas comprise a physical model storage area, a program model storage area, a binding relation storage area and an instantiation data storage area;
The first storage module is used for storing physical model data corresponding to each structure level in the physical model into the physical model storage area based on the structure level of the physical model; the physical model data includes physical units and physical operations;
The second storage module is used for storing the program control model data corresponding to each structure level in the program control model to the program model storage area based on the structure level of the program control model, wherein the program control model data comprises operation elements corresponding to the operation element layer, unit elements corresponding to the unit element layer and program control data corresponding to the program control layer;
the third storage module is used for storing the binding relation between the unit elements and the physical units into a binding relation storage area;
And the fourth storage module is used for carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into an instantiation data storage area.
In a third aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present application, there is provided a readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above method.
Compared with the prior art, the embodiment of the application has the beneficial effects that: according to the embodiment of the application, the process data of the batch control system are divided into the physical model data, the program control model data, the binding relation data and the instantiation data to be respectively stored by arranging the plurality of storage areas, and compared with the integral storage, the method and the device for partitioning and storing the different types of data optimize the storage efficiency on the premise of ensuring the relation between the data and the data, improve the convenience degree of data maintenance, reduce the instantiation range by the split process data, reduce the quantity of the instantiation data and greatly save the storage space.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
FIG. 2 is a flow chart of a process data storage method for a batch control system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an association relationship between a conventional physical model and a program control model according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the structure of a physical model according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an association relationship between a physical model and a program control model according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of a parameter instantiation provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a structure of a stored data unit according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of an association relationship according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a process data storage device of a batch control system according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
A process data storage method and apparatus for a batch control system according to embodiments of the present application will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application. The application scenario may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a server 104, and a network 105.
The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be hardware or software. When the first terminal device 101, the second terminal device 102, the third terminal device 103 are hardware, they may be various electronic devices having a display screen and supporting communication with the server 104, including but not limited to smartphones, tablets, laptop portable computers, desktop computers, and the like; when the first terminal device 101, the second terminal device 102, and the third terminal device 103 are software, they may be installed in the electronic device as above. The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not limited in this embodiment of the present application. Further, various applications, such as a data processing application, an instant messaging tool, social platform software, a search class application, a shopping class application, and the like, may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The server 104 may be a server that provides various services, for example, a background server that receives a request transmitted from a terminal device with which communication connection is established, and the background server may perform processing such as receiving and analyzing the request transmitted from the terminal device and generate a processing result. The server 104 may be a server, a server cluster formed by a plurality of servers, or a cloud computing service center, which is not limited in this embodiment of the present application.
The server 104 may be hardware or software. When the server 104 is hardware, it may be various electronic devices that provide various services to the first terminal device 101, the second terminal device 102, and the third terminal device 103. When the server 104 is software, it may be a plurality of software or software modules providing various services to the first terminal device 101, the second terminal device 102, and the third terminal device 103, or may be a single software or software module providing various services to the first terminal device 101, the second terminal device 102, and the third terminal device 103, which is not limited in this embodiment of the present application.
The network 105 may be a wired network using coaxial cable, twisted pair wire, and optical fiber connection, or may be a wireless network that can implement interconnection of various Communication devices without wiring, for example, bluetooth (Bluetooth), near Field Communication (NFC), infrared (Infrared), etc., which are not limited by the embodiment of the present application.
It should be noted that the specific types, numbers and combinations of the first terminal device 101, the second terminal device 102, the third terminal device 103, the server 104 and the network 105 may be adjusted according to the actual requirements of the application scenario, which is not limited in the embodiment of the present application.
Fig. 2 is a flow chart of a process data storage method of a batch control system according to an embodiment of the present application. A process data storage method of the batch control system of fig. 2 may be performed by the first or second or third terminal device or server of fig. 1. As shown in fig. 2, the process data storage method of the batch control system includes:
S201: setting a plurality of storage areas, wherein the storage areas comprise a physical model storage area, a program model storage area, a binding relation storage area and an instantiation data storage area;
S202: based on the structure levels of the physical model, storing physical model data corresponding to each structure level in the physical model into a physical model storage area; the physical model data includes physical units and physical operations;
S203: based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model are stored in a program model storage area, wherein the program control model data comprises operation elements corresponding to an operation element layer, unit elements corresponding to a unit element layer and program control data corresponding to the program control layer;
s204: storing the binding relation between the unit elements and the physical units into a binding relation storage area;
S205: and carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into an instantiation data storage area.
It should be understood that, in this embodiment, the multiple storage areas may be located in the same memory or the same storage system, where a storage area refers to a storage area for storing data of the same class, for example, a physical model storage area is used for storing data corresponding to a physical model, a program model storage area is used for storing data corresponding to a program control model, a binding relation storage area is used for storing an association relation between the physical model and the program control model, and an instantiated data storage area is used for storing data obtained by parameterizing the data of the physical model. Each storage area may be implemented in the form of one or more separate files or data schema storage spaces, which may be provided in a MySQL database.
It can be understood that, as shown in fig. 3, the association relationship between the conventional physical model and the program control model may be based on the conventional physical model, the program control model, and the association relationship therebetween, and in this embodiment, various types of data are classified and stored separately, as shown in steps S202-S205.
Specifically, in step S202, the physical model data is stored in the physical model storage area, where the structure levels of the physical model are shown in fig. 4, and the structure levels are respectively from level 1 to level 5 from high to low, where the highest level is the factory area, then the production line, then the physical unit, the physical operation, and finally the parameters. Considering classification of structure levels, when the whole physical model data is stored, the data of each structure level can be stored according to the structure level of the physical model data, and meanwhile, the corresponding identification number of the structure level and the identification number of the last structure level are marked on each data so as to establish association between the data of each structure level. Specifically, based on the structure level of the physical model, the process of storing the physical model data corresponding to each structure level in the physical model into the physical model storage area includes:
based on the structure levels of the physical model, respectively storing physical model data corresponding to each structure level in the physical model into a physical model storage area, and simultaneously storing the identification number of the structure level where each physical model data is located and the identification number of the last structure level;
Correspondingly, based on the structure level of the program control model, the process of storing the program control model data corresponding to each structure level in the program control model into the program model storage area includes:
Based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model are respectively stored in a program model storage area, and meanwhile, the identification number of the structure level where each program control model data is located and the identification number of the last structure level are stored.
Further, for the operation element and the unit element in the program control model, there is a one-to-one relationship, and one operation element and one unit element which can have a corresponding relationship are bound and stored together, that is, the operation element and the unit element can be bound and stored in a data structure form of the data unit, and the corresponding element identifier is stored. That is, for each unit element, the unit element identifier corresponding to the unit element, the operation element corresponding to the unit element, and the operation element identifier corresponding to the operation element are stored together in the program model storage area in the form of a data structure of the data unit.
It will be understood that the physical model data includes physical units and physical operations, and the program control model data mainly includes a unit program, an operation program, and program control data, wherein the unit program includes a plurality of unit elements, that is, corresponding unit element layers, and the operation program includes a plurality of operation elements, that is, corresponding operation element layers. As shown in fig. 5, the association between the physical model and the program control model is actually implemented as a binding relationship between an operation element and a physical operation, and a binding relationship between a unit element and a physical unit. The binding relationship between the operation elements and the physical operations is one-to-one, that is, each physical operation corresponds to a unique operation element, and each operation element corresponds to a unique physical operation, so that the binding relationship can be directly realized by adding a physical operation identifier of the physical operation when the operation elements are stored; accordingly, the unit elements and the physical units are not necessarily in one-to-one relation, for example, the same unit element may have a plurality of corresponding physical units, at this time, the binding relation needs to be stored separately in the binding relation storage area, meanwhile, in order to decouple the binding relation network between the plurality of unit elements and the plurality of physical units, each binding relation may be set in a one-to-one form, that is, traverse the binding relation network, store all the binding relations in a one-to-one binding relation form of one unit element and one physical unit, at this time, if a new binding relation needs to occur, the original binding relation does not need to be adjusted, and the new binding relation needs to be directly and separately added.
Therefore, based on the structure levels of the program control model, after storing the program control model data corresponding to each structure level in the program control model into the program model storage area, the method further comprises:
Based on the binding relation between the physical operation and the operation element, adding a physical operation identifier of the physical operation corresponding to the binding relation to the operation element in a program model storage area.
Correspondingly, the process of storing the binding relation between the unit element and the physical unit in the binding relation storage area comprises the following steps:
Determining a one-to-one binding relationship between each unit element and each physical unit;
and storing all the binding relations to a binding relation storage area.
In accordance with the above description, taking fig. 5 as an example, three binding relationships between the unit element 1 and the physical units 1-3 are stored in three binding relationships to the binding relationship storage area. Correspondingly, in the program model storage area, for the operation element 2, the corresponding unit element is the unit element 1, and meanwhile, the physical operation 2 is bound, and the identification number of the last structure level, namely the parent node identification, is the program 1 and the unit element 2 respectively.
Further, the association relationship between the physical unit and the physical operation needs to be locally instantiated, the instantiated parameters thereof are stored in the instantiated data storage area, and the specific process of step S205 may be as shown in fig. 6, where it is understood that the process of parameter instantiation is based on the structural hierarchy of the physical model, and the storage after parameter instantiation also needs to identify the relevant physical unit and physical operation.
Further, besides the binding relationship, the physical operation and the association relationship between the physical units, there is an association relationship between the operation elements and between the unit elements in the program control model, as in the program control model shown in fig. 7, the program control model includes a unit program and operation programs 1-n, where the unit program includes at least unit elements 1-3, each operation program includes an operation element, for operation element 2 in operation program 1, the stored data unit is shown in the table in fig. 7, where the parent element is identified as an object corresponding to a structural level on the operation element, and here is unit element 1; for all the operation elements in the operation program 1, the previous operation element of the operation element 2 is the operation element 1, the first element identifier is used for marking, the next operation element of the operation element 2 is the operation element 3, the last element identifier is used for marking, and the link type refers to the association relationship between the operation element 2 and the operation elements 1 and 3, which is common.
It can be understood that the association relationship includes branching and nesting besides the common association relationship, and various association relationships are shown in fig. 8, where elements 1-6 may be unit elements, or all operation elements. Wherein the common association can be stored directly using the simple data unit.
Furthermore, the association relationship is marked by the identification number of the simple structure level, and can be stored in a more effective and clear way, so that the readability of a more complex structure is enhanced, and therefore, the management relationship storage area is independently arranged for storing the complex association relationship, and the storage area also comprises an association relationship storage area; the method of the embodiment further comprises the following steps:
storing the first association relation among all the operation elements into an association relation storage area;
and storing the second association relation among all the unit elements into an association relation storage area.
Specifically, as shown in fig. 8, when the association relationship has branches and nested branches, elements related to each other can still be stored as a record, except that the intra-branch conditions include selecting branches and parallel branches, for parallel branches, from the beginning to the end of the parallel branches can be represented by equivalent elements, and the connection relationship between the elements and the branches is converted into the connection relationship between the elements and the equivalent elements; selecting the connection relation between the branch and the element, directly representing the connection relation between the first element in the branch and the element outside the branch, and directly storing the connection relation; the connection relation between the selected branch and the element is directly represented by the relation between the first element in the branch and the element outside the branch. Here, the first association relationship and the second association relationship may be described in the above representation manner and stored in the association relationship storage area.
Because the process data in this embodiment are stored in different storage areas in different categories, once the data change requirement occurs, only the data in the corresponding storage area needs to be adjusted, so the method of this embodiment further includes:
When a data change instruction is received;
determining change content according to the data change instruction;
determining a storage area to be changed corresponding to the change content in all the storage areas;
and changing the data in the storage area to be changed based on the changing content.
It will be appreciated that one data change instruction may correspond to a plurality of storage areas to be changed and a plurality of change actions, and even then the change actions will not affect other data unrelated to the change actions, so that the data change in this embodiment is limited to a part of data, the modification cost of the data change is low, and the data maintenance cost is low, compared with the large-scale data disturbance during the change when the whole data is stored.
According to the method, the process data of the batch control system are divided into the physical model data, the program control model data, the binding relation data and the instantiation data to be stored respectively through the plurality of storage areas, and compared with the whole storage, the method for storing the data in the partitioned mode, the storage efficiency is optimized on the premise that the data and the data relation are ensured, the convenience degree of data maintenance is improved, meanwhile, the instantiation range is reduced due to the split process data, the quantity of the instantiation data is reduced, and the storage space is greatly saved.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein. It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
FIG. 9 is a schematic diagram of a process data storage device of a batch control system according to an embodiment of the present application. As shown in fig. 9, the process data storage device of the batch control system includes:
a setting module 900, configured to set a plurality of storage areas, where the storage areas include a physical model storage area, a program model storage area, a binding relation storage area, and an instantiation data storage area;
The first storage module 901 is configured to store physical model data corresponding to each structure level in the physical model to a physical model storage area based on the structure level of the physical model; the physical model data includes physical units and physical operations;
The second storage module 902 is configured to store, based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model to a program model storage area, where the program control model data includes an operation element corresponding to an operation element layer, a unit element corresponding to a unit element layer, and program control data corresponding to the program control layer;
a third storage module 903, configured to store a binding relationship between a unit element and a physical unit in a binding relationship storage area;
and the fourth storage module 904 is configured to perform parameter instantiation on an association relationship between the physical unit and the physical operation, obtain instantiation data, and store the instantiation data into an instantiation data storage area.
The device of the embodiment of the application divides the process data of the batch control system into the physical model data, the program control model data, the binding relation data and the instantiation data to be respectively stored by arranging the plurality of storage areas, and compared with the integral storage, the device of the embodiment of the application carries out the partition storage on different types of data, optimizes the storage efficiency on the premise of ensuring the relation between the data and the data, improves the convenience degree of data maintenance, reduces the instantiation range by the split process data, reduces the quantity of the instantiation data and greatly saves the storage space.
In an exemplary embodiment, the process of storing physical model data corresponding to each structure level in a physical model to a physical model storage area based on the structure level of the physical model includes:
based on the structure levels of the physical model, respectively storing physical model data corresponding to each structure level in the physical model into a physical model storage area, and simultaneously storing the identification number of the structure level where each physical model data is located and the identification number of the last structure level;
A process for storing program control model data corresponding to each structure level in a program control model to a program model storage area based on the structure level of the program control model, comprising:
Based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model are respectively stored in a program model storage area, and meanwhile, the identification number of the structure level where each program control model data is located and the identification number of the last structure level are stored.
In an exemplary embodiment, for each unit element, the unit element identifier corresponding to the unit element, the operation element corresponding to the unit element, and the operation element identifier corresponding to the operation element are stored together in the program model storage area in a data structure of a data unit.
In an exemplary embodiment, the second storage module 902 is further configured to, after storing the program control model data corresponding to each structure level in the program control model in the program model storage area based on the structure level of the program control model:
Based on the binding relation between the physical operation and the operation element, adding a physical operation identifier of the physical operation corresponding to the binding relation to the operation element in a program model storage area.
In an exemplary embodiment, the process of storing the binding relationship of the unit element and the physical unit in the binding relationship storage area includes:
Determining a one-to-one binding relationship between each unit element and each physical unit;
and storing all the binding relations to a binding relation storage area.
In an exemplary embodiment, the memory area further includes an association memory area; the apparatus further comprises a pair non-storage module 905 for:
storing the first association relation among all the operation elements into an association relation storage area;
and storing the second association relation among all the unit elements into an association relation storage area.
In an exemplary embodiment, the apparatus further comprises a change module 906 for:
When a data change instruction is received;
determining change content according to the data change instruction;
determining a storage area to be changed corresponding to the change content in all the storage areas;
and changing the data in the storage area to be changed based on the changing content.
Fig. 10 is a schematic diagram of an electronic device 10 according to an embodiment of the present application. As shown in fig. 10, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002 and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. The steps of the various method embodiments described above are implemented by the processor 1001 when executing the computer program 1003. Or the processor 1001 when executing the computer program 1003 implements the functions of the modules/units in the above-described device embodiments.
The electronic device 10 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. It will be appreciated by those skilled in the art that fig. 10 is merely an example of the electronic device 10 and is not limiting of the electronic device 10 and may include more or fewer components than shown, or different components.
The Processor 1001 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or a memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 10. Memory 1002 may also include both internal and external storage units of electronic device 10. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium, such as a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a readable storage medium, where the computer program may implement the steps of the method embodiments described above when executed by a processor. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The readable storage medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (10)
1. A process data storage method for a batch control system, comprising:
Setting a plurality of storage areas, wherein the storage areas comprise a physical model storage area, a program model storage area, a binding relation storage area and an instantiation data storage area;
Based on the structure level of a physical model, storing physical model data corresponding to each structure level in the physical model into the physical model storage area; the physical model data comprises physical units and physical operations;
Based on the structure levels of a program control model, storing program control model data corresponding to each structure level in the program control model into the program model storage area, wherein the program control model data comprises operation elements corresponding to an operation element layer, unit elements corresponding to a unit element layer and program control data corresponding to the program control layer;
storing the binding relation between the unit element and the physical unit into the binding relation storage area;
and carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into the instantiation data storage area.
2. The method of claim 1, wherein storing physical model data corresponding to each structure level in the physical model to the physical model storage area based on the structure level of the physical model comprises:
based on the structure levels of a physical model, respectively storing physical model data corresponding to each structure level in the physical model into the physical model storage area, and simultaneously storing the identification number of the structure level where each physical model data is located and the identification number of the last structure level;
Based on the structure level of the program control model, the process of storing the program control model data corresponding to each structure level in the program control model into the program model storage area comprises the following steps:
Based on the structure levels of the program control model, program control model data corresponding to each structure level in the program control model are respectively stored in the program model storage area, and meanwhile, the identification number of the structure level where each program control model data is located and the identification number of the last structure level are stored.
3. The method according to claim 2, wherein for each of the unit elements, the unit element identifier corresponding to the unit element, the operation element corresponding to the unit element, and the operation element identifier corresponding to the operation element are stored together in the program model storage area in a data structure of a data unit.
4. The method of claim 1, further comprising, after storing the program control model data corresponding to each of the structure levels in the program control model to the program model storage area based on the structure levels of the program control model:
Based on the binding relation between the physical operation and the operation element, adding a physical operation identifier of the physical operation corresponding to the binding relation to the operation element in the program model storage area.
5. The method of claim 1, wherein storing the binding of the element with the physical element in the binding store comprises:
determining a one-to-one binding relationship between each unit element and each physical unit;
and storing all the binding relations to the binding relation storage area.
6. The method of claim 1, wherein the memory area further comprises an associative memory area; the method further comprises the steps of:
storing a first association relation among all the operation elements into the association relation storage area;
and storing the second association relation among all the unit elements into the association relation storage area.
7. The method according to any one of claims 1 to 6, further comprising:
When a data change instruction is received;
determining change content according to the data change instruction;
determining a storage area to be changed corresponding to the change content in all the storage areas;
And changing the data in the storage area to be changed based on the changing content.
8. A process data storage device for a batch control system, comprising:
the setting module is used for setting a plurality of storage areas, wherein the storage areas comprise a physical model storage area, a program model storage area, a binding relation storage area and an instantiation data storage area;
The first storage module is used for storing physical model data corresponding to each structure level in the physical model into the physical model storage area based on the structure level of the physical model; the physical model data comprises physical units and physical operations;
The second storage module is used for storing the program control model data corresponding to each structure level in the program control model to the program model storage area based on the structure level of the program control model, wherein the program control model data comprises operation elements corresponding to an operation element layer, unit elements corresponding to a unit element layer and program control data corresponding to the program control layer;
the third storage module is used for storing the binding relation between the unit elements and the physical units into the binding relation storage area;
and the fourth storage module is used for carrying out parameter instantiation on the association relation between the physical unit and the physical operation to obtain instantiation data, and storing the instantiation data into the instantiation data storage area.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when the computer program is executed.
10. A readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311862539.3A CN118131987A (en) | 2023-12-29 | 2023-12-29 | Process data storage method and device of batch control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311862539.3A CN118131987A (en) | 2023-12-29 | 2023-12-29 | Process data storage method and device of batch control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118131987A true CN118131987A (en) | 2024-06-04 |
Family
ID=91244736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311862539.3A Pending CN118131987A (en) | 2023-12-29 | 2023-12-29 | Process data storage method and device of batch control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118131987A (en) |
-
2023
- 2023-12-29 CN CN202311862539.3A patent/CN118131987A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111614775B (en) | Industrial Internet cloud platform | |
US10354343B2 (en) | Automated process control hardware engineering using schema-represented requirements | |
CN111190888A (en) | Method and device for managing graph database cluster | |
CN111125107A (en) | Data processing method, device, electronic equipment and medium | |
CN107908680A (en) | Management method, electronic device and the computer-readable recording medium of wechat public platform | |
CN111611249A (en) | Data management method, device, equipment and storage medium | |
CN111950857A (en) | Index system management method and device based on service indexes and electronic equipment | |
CN110309142A (en) | The method and apparatus of regulation management | |
CN112597126A (en) | Data migration method and device | |
CN116820714A (en) | Scheduling method, device, equipment and storage medium of computing equipment | |
CN104408183A (en) | Data import method and device of data system | |
CN110704099B (en) | Alliance chain construction method and device and electronic equipment | |
CN118131987A (en) | Process data storage method and device of batch control system | |
CN115034175A (en) | Table data processing method, device, terminal and storage medium | |
CN111143464A (en) | Data acquisition method and device and electronic equipment | |
CN113268967B (en) | Method and equipment for processing data information | |
CN117076515B (en) | Metadata tracing method and device in medical management system, server and storage medium | |
CN111882294B (en) | Method and device for flow approval | |
CN114189365B (en) | Universal multi-tenant service authorization method and device based on field mapping | |
CN111523295B (en) | Data rendering method, device, medium and electronic equipment | |
CN116049134A (en) | Method and device for uniformly monitoring multiple service databases | |
CN111163088A (en) | Message processing method, system and device and electronic equipment | |
CN114840372A (en) | Interface testing method and device, electronic equipment and computer readable storage medium | |
CN113344706A (en) | Product quota control method, device, electronic equipment and computer readable medium | |
CN113590372A (en) | Log-based link tracking method and device, computer 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 |