Method, device and storage medium for storing large and small alarm group states
Technical Field
The invention relates to the technical field of monitoring and alarming of automatic control technology of a thermal power generating unit, in particular to a method, a device and a storage medium for realizing the storage of alarming states of large and small alarming groups based on an information table structure of a process control station and an information table structure of a measuring point.
Background
According to engineering requirements, the distributed control system configures measuring points to belong to a small alarm group, a plurality of small alarm groups belong to a large alarm group, the system has m large alarm groups and n small alarm groups, and m is larger than or equal to n. If one measuring point is in an alarm state, the small alarm group to which the measuring point belongs and the large alarm group to which the small alarm group belongs are in the alarm state, and the monitoring picture carries out alarm prompt according to the alarm state of the large alarm group and the small alarm group.
The alarm state information for each alarm group includes: whether the alarm group gives an alarm or not, whether the alarm group has been confirmed, and the priority of the alarm and the alarm confirmation, wherein the information needs to be stored in a real-time database and updated in real time by a background program so that an online monitoring picture can read the state of each alarm group.
In order to store the alarm states of the alarm groups of different sizes, a state data table of the alarm group and a state data table of the small alarm group are newly added in a real-time database to respectively store the alarm states of the alarm groups of different sizes and update data in real time, so that the maintenance cost of the database is increased by a method of adding an additional data table.
Disclosure of Invention
In order to solve the above-mentioned defects in the prior art, the present invention aims to provide a method, an apparatus and a storage medium for storing the status of large and small alarm groups based on process control stations and measurement point information tables.
The invention is realized by the following technical scheme.
In a first aspect of the invention, a method for storing the status of a large alarm group and a small alarm group based on a process control station and a measurement point information table is provided, which comprises the following steps:
constructing a process control station alarm group record information table, comprising:
two data records are newly added in a process control station information table, wherein the first data record represents a large alarm group, and the second data record represents a small alarm group;
respectively constructing a large alarm item list and a small alarm item list based on the measuring point information list, wherein the large alarm item list and the small alarm item list comprise the measuring point information list;
the large alarm group item table construction process: adding a plurality of third data records in the measuring point information table, and associating the third data records with the first data records;
the small alarm group item table construction process: adding a plurality of fourth data records in the measuring point information table, and associating the fourth data records with the second data records;
correspondingly storing the alarm information of the large alarm group in a plurality of third data records; correspondingly storing the alarm information of the small alarm group in a plurality of fourth data records; and each alarm group item stores the alarm state information of the corresponding alarm item, is updated in real time by a background program, and displays the state of each alarm group in real time by reading the alarm state table of the online monitoring picture.
With respect to the above technical solutions, the present invention has a further preferable solution:
preferably, the addresses of the two data records are different from the original process control station addresses in the decentralized control system.
Preferably, the address of the first data record is different from the address of the second data record.
Preferably, the first data record process control station name field is a "large alarm group" and the second data record process control station name field is a "small alarm group".
Preferably, a plurality of third data records are associated with the first data record in a many-to-one manner.
Preferably, a plurality of fourth data records are associated with the second data record in a many-to-one manner.
Preferably, the third data record and the fourth data record include a name field, an alarm present field, an alarm acknowledge field, and an alarm priority field.
Preferably, the measurement point information table is a switch measurement point information table or an analog measurement point information table.
In a second aspect of the present invention, there is provided an apparatus for storing a size alarm group status, comprising a processor and a memory, the memory storing computer-executable instructions, and the processor executing the computer-executable instructions stored in the memory to perform the method of the first aspect.
In a third aspect of the invention, a computer-readable storage medium is provided, in which program instructions are stored, which program instructions, when executed by a processor, implement the method of the first aspect.
Due to the adoption of the technical scheme, the invention has the following beneficial effects:
the alarm group record table is based on the process control station information table, the large alarm group item table and the small alarm item table are based on the measuring point information table, and the process control station information table and the measuring point information table can be modified.
By adopting the method, an alarm group state table is not additionally arranged in the real-time database, so that the maintenance expense of the database is reduced, and the safety of the system is ensured.
The advantage of using the process control station information table and the measurement point information table is that: fields set in the measuring point information table can be matched with the alarm information of the large alarm group and the small alarm group, so that the storage requirement is met; the alarm group record table and the alarm group item table can be updated in real time through a data acquisition program, storage of alarm information is met, accuracy of a storage result is guaranteed, and timeliness of storage of the alarm information is guaranteed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention:
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic structural diagram of a device for implementing the large and small alarm group status storage according to the present invention;
FIG. 3 is a flow chart of an embodiment of the present invention.
Detailed Description
The present invention will now be described in detail with reference to the drawings and specific embodiments, wherein the exemplary embodiments and descriptions of the present invention are provided to explain the present invention without limiting the invention thereto.
As shown in fig. 1, the method for implementing a state storage of a large alarm group based on a process control station and a station information table according to the first aspect of the present invention includes the following steps:
step 1, constructing an alarm group record table; wherein the alarm group record table is based on a process control station information table;
the construction process comprises the following steps: two data records are newly added in an information table of the process control station, wherein the first data record represents a large alarm group, the name field of the process control station is a large alarm group, the second data record represents a small alarm group, and the name field of the process control station is a small alarm group.
The addresses of the two data records are different from the original process control station address in the distributed control system, and the address of the first data record is different from the address of the second data record.
Step 2, respectively constructing a large alarm item list and a small alarm item list; wherein, the large alarm group item table and the small alarm item table are both based on the measuring point information table.
The large alarm group item table construction process: and adding a plurality of third data records in the measuring point information table, and associating the third data records with the first data records (in one embodiment, associating the third data records with the first data records in a many-to-one manner).
The small alarm group item table construction process: and adding a plurality of fourth data records in the measuring point information table, and associating the fourth data records with the second data records (in one embodiment, associating the fourth data records with the second data records in a many-to-one manner).
Step 3, correspondingly storing the alarm information of the large alarm group in a plurality of third data records; and correspondingly storing the alarm information of the small alarm groups in a plurality of fourth data records. Each alarm group item stores the alarm state information of the corresponding alarm item, the alarm state information is updated in real time by a background program, and the state of each alarm group can be displayed in real time by reading the alarm state table of the online monitoring picture.
The third data record and the fourth data record comprise a name field, an alarm-in-progress field, an alarm confirmation field and an alarm priority field.
The measuring point information table is a switch measuring point information table or an analog measuring point information table.
The process control station information table and the measurement point information table are given below
1) Process control station information sheet
OID (object identifier) is used to uniquely identify a database object throughout the database.
2) Measuring point information table
The second aspect of the present invention, including the means for storing the status of the size alarm group used in the method, is shown in fig. 2 and includes a processor 21 and a memory 22, the memory storing computer-executable instructions, the processor executing the computer-executable instructions stored in the memory to perform the method described herein. The computer readable storage medium has stored therein program instructions that, when executed by a processor, implement the method described.
The invention is further illustrated by the following specific example.
And storing the alarm group item information by adopting a switch measurement point information table.
The alarm state for the large alarm group name "large alarm 1 group" is updated, as shown in FIG. 3, giving an alarm group update procedure.
And traversing the process control station alarm group record information table, and if the name field of the current record is not the large alarm group, continuing to search the next record until the record with the name field of the process control station as the large alarm group is found.
And finding out all large alarm items associated with the large alarm group in the large alarm group item table, and acquiring all large alarm group items recorded by the large alarm group.
And traversing the large alarm group item, if the currently recorded measuring point name field is not a large alarm 1 group, continuously searching the next record until the record with the measuring point name field being a large alarm 1 group is found, and updating the alarm field, the alarm confirmation field and the alarm priority field of the record.
It can be seen from the above embodiments that, the present invention stores the status information of the large and small alarm groups by using the process control station information table and the measurement point information table, and the updating of the large and small alarm groups can be rapidly realized without additionally adding an alarm group status table in the real-time database, thereby reducing the maintenance overhead of the database.
The present invention is not limited to the above-mentioned embodiments, and based on the technical solutions disclosed in the present invention, those skilled in the art can make some substitutions and modifications to some technical features without creative efforts according to the disclosed technical contents, and these substitutions and modifications are all within the protection scope of the present invention.