CN113687621A - Alarm suppression method, system, device and storage medium based on time sequence alarm information - Google Patents

Alarm suppression method, system, device and storage medium based on time sequence alarm information Download PDF

Info

Publication number
CN113687621A
CN113687621A CN202111244149.0A CN202111244149A CN113687621A CN 113687621 A CN113687621 A CN 113687621A CN 202111244149 A CN202111244149 A CN 202111244149A CN 113687621 A CN113687621 A CN 113687621A
Authority
CN
China
Prior art keywords
alarm
value
state word
bit
information
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.)
Granted
Application number
CN202111244149.0A
Other languages
Chinese (zh)
Other versions
CN113687621B (en
Inventor
翟亮晶
张勇
杨柳
管磊
陈锋
沈正华
王俊
郑卫东
李晓燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Thermal Power Research Institute Co Ltd
Huaneng Zhejiang Energy Development Co Ltd Yuhuan Branch
Original Assignee
Xian Thermal Power Research Institute Co Ltd
Huaneng Zhejiang Energy Development Co Ltd Yuhuan Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Thermal Power Research Institute Co Ltd, Huaneng Zhejiang Energy Development Co Ltd Yuhuan Branch filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202111244149.0A priority Critical patent/CN113687621B/en
Publication of CN113687621A publication Critical patent/CN113687621A/en
Application granted granted Critical
Publication of CN113687621B publication Critical patent/CN113687621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Alarm Systems (AREA)

Abstract

The invention provides an alarm suppression method, system, equipment and storage medium based on time sequence alarm information, wherein the method comprises the steps of entering an operation cycle according to time sequence and loading an alarm suppression field value; judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word; the method can inhibit the alarm information of the measuring point configured with the alarm, and can inhibit both dynamic alarm and static alarm.

Description

Alarm suppression method, system, device and storage medium based on time sequence alarm information
Technical Field
The invention belongs to the technical field of controller data processing, and particularly relates to an alarm suppression method, an alarm suppression system, alarm suppression equipment and a storage medium based on time sequence alarm information.
Background
A Distributed Control System (DCS) is a specially designed Control System for controlling complex and large-scale applications in industrial processes. The controller is the brain of a distributed control system that controls the various subsystems distributed throughout the control area and executes control algorithms and configurations for the various devices, processes and engineering network communications between the PCs, which is done through simplex or redundant configurations to better control the performance of complex processes. The reliability, stability and high timeliness of the controller are the guarantee of high reliability, flexibility, coordination and stability of the distributed control system, so the design and implementation of any function in the controller must be premised on the reliability, stability and high timeliness.
In the field of industrial process control, due to the complexity and multilateral nature of the field environment, data collected on site at IO measuring points in a certain stage in a distributed control system may not be stable, and when the IO measuring points are configured with alarms, frequent alarms may be performed on the unstable data. When the values of some IO measurement points are not important, the alarm information of these IO measurement points needs to be shielded, so an alarm suppression function is needed to efficiently suppress the alarm information of these IO measurement points.
Disclosure of Invention
In order to solve the above problems, the present invention provides an alarm suppression method, system, device, and storage medium based on time-series alarm information, which can suppress alarm information of a measurement point to which an alarm is configured, and can suppress both dynamic alarms and static alarms.
In order to achieve the purpose, the invention adopts the following technical scheme:
an alarm suppression method based on time sequence alarm information comprises the following steps:
entering an operation cycle according to time sequence and loading an alarm suppression field value;
judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word;
and pressing the alarm information into an alarm queue.
As a further improvement of the present invention, the loading of the alarm suppression field value specifically includes:
when the operation task of each period starts, judging whether an alarm suppression field value issued by an upper computer exists in a real-time value queue;
if yes, loading the alarm suppression field value to an alarm enabling field section corresponding to the POU file where the IO measuring point is located to obtain the loaded alarm suppression field value;
if not, the former alarm suppression field value is adopted.
As a further improvement of the present invention, the determining a current alarm suppression field value, and sequentially comparing an IO measurement point real-time value with each alarm limit value configured at an IO measurement point specifically includes:
when the alarm suppression field value is true, sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, if the IO measurement point real-time value exceeds a certain alarm limit value, firstly converting the alarm state word at the previous moment and the alarm state word type at the current moment into a 32-bit number, and endowing a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the alarm state word at the previous moment to a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the current alarm state word; if the alarm limit value is not out of limit, the corresponding bit position 0 corresponding to the alarm limit value in the bit number of the current alarm state word is set;
if the alarm suppression field is false, sequentially comparing the real-time value of the IO measuring point with each alarm limit value configured at the IO measuring point, and converting the types of the alarm state word at the previous moment and the alarm state word at the current moment into a 32-bit number respectively; if the IO measurement point real-time value exceeds a certain alarm limit value, the bit number position true corresponding to the alarm limit value in the alarm state word bit number at the current moment is determined, otherwise, the bit number position false corresponding to the alarm limit value is determined.
As a further improvement of the present invention, the determining whether to generate new warning information at the current time specifically includes:
and performing XOR operation on the alarm state word at the previous moment and the alarm state word at the current moment to obtain a total alarm state word after XOR, judging whether the total alarm state word after XOR is 0, if so, proving that no new alarm information is generated at the current moment, otherwise, representing that new alarm information exists at the current moment and needing to process the new alarm information.
As a further improvement of the present invention, the specific operation of generating new alarm information according to the total number of bits of the alarm status word is as follows:
firstly, converting the type of a total alarm state word into a total alarm state word bit number of 32 bits, sequentially judging bit positions related to alarm limit values in the total alarm state word bit number, if the bit position of a certain alarm limit value corresponding to the bit number in the total alarm state word is not 0, proving that new alarm information corresponding to the alarm limit value is generated in the period, otherwise, proving that no new alarm information corresponding to the alarm limit value is generated in the period, and if no new alarm information is generated, exiting the alarm information processing process.
As a further improvement of the present invention, pushing the alarm information into an alarm queue specifically includes:
the specific process for the floating-point analog quantity and the integer analog quantity is as follows:
firstly, judging whether the reset alarm information exists:
sequentially judging whether different limits generate reset alarm information according to the priority order of the limits, if the value of a corresponding bit in 32-bit numbers corresponding to the alarm state word at the current moment is 0, but the value of a corresponding bit in the 32-bit numbers corresponding to the alarm state word at the previous moment is not 0, pressing the reset alarm information into an alarm queue, and simultaneously setting a flag variable to be 1;
secondly, judging whether action warning information exists:
judging whether action alarm information is generated by different limit values according to the priority sequence of the limit values, if the value of a corresponding bit in 32-bit numbers corresponding to the alarm state word at the current moment is 1, proving that the corresponding action alarm information exists, and pressing the action alarm information into an alarm queue after the bit position in the bit number corresponding to the total alarm state word is 1;
for the Boolean type switching value, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is not 0, the generation of the reset alarm information is proved, and the reset alarm information is pressed into an alarm queue; if no reset alarm information is generated, judging whether action alarm information is generated, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is not 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is 0, proving that the action alarm information is generated, and meanwhile, pressing the action alarm information into an alarm queue;
and after the processing is finished, assigning the value of the alarm state word at the current moment to the value of the alarm state word at the previous moment, exiting the alarm judgment process, and continuing to judge when the operation at the next moment is waited.
An alarm suppression system based on time sequence alarm information, comprising:
the acquisition module is used for entering an operation cycle according to time sequence and loading an alarm suppression field value;
the judging module is used for judging the current alarm suppression field value and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word;
and the pressing module is used for pressing the alarm information into an alarm queue to wait.
The acquisition module is specifically configured to:
when the operation task of each period starts, judging whether an alarm suppression field value issued by an upper computer exists in a real-time value queue;
if yes, loading the alarm suppression field value to an alarm enabling field section corresponding to the POU file where the IO measuring point is located to obtain the loaded alarm suppression field value;
if not, the previous alarm suppression field value is adopted as the loaded alarm suppression field value.
In the judging module, the current alarm suppression field value is judged, and the real-time value of the IO measurement point is sequentially compared with each alarm limit value configured at the IO measurement point, which is specifically used for:
when the alarm suppression field value is true, sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, if the IO measurement point real-time value exceeds a certain alarm limit value, firstly converting the alarm state word at the previous moment and the alarm state word type at the current moment into a 32-bit number, and endowing a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the alarm state word at the previous moment to a corresponding bit corresponding to the alarm limit value exceeding the limit in the bit number of the current alarm state word; if the alarm limit value is not out of limit, the corresponding bit position 0 corresponding to the alarm limit value in the bit number of the current alarm state word is set;
if the alarm suppression field is false, sequentially comparing the real-time value of the IO measuring point with each alarm limit value configured at the IO measuring point, and converting the types of the alarm state word at the previous moment and the alarm state word at the current moment into a 32-bit number respectively; if the IO measurement point real-time value exceeds a certain alarm limit value, the bit number value true corresponding to the alarm limit value in the alarm state word bit number at the current moment is determined, otherwise, the bit number value false corresponding to the alarm limit value is determined.
In the judging module, new warning information is generated according to the bit number of the total warning state word, and the judging module is specifically used for:
firstly, converting the type of the total alarm state word into a total alarm state word bit number of 32 bits, and sequentially judging the bit number related to the alarm limit value in the total alarm state word bit number, if the bit number in the total alarm state word corresponding to a certain alarm limit value is not 0, then proving that new alarm information corresponding to the alarm limit value is generated in the period, otherwise, proving that no new alarm information corresponding to the alarm limit value is generated in the period.
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 alarm suppression method based on time-series alarm information when executing the computer program.
A computer-readable storage medium, storing a computer program which, when executed by a processor, implements the steps of the alarm suppression method based on time-series alarm information.
The invention has the beneficial effects that:
the method can inhibit the alarm information of the IO measuring point configured with the alarm, particularly can inhibit both dynamic alarm and static alarm, the upper computer adjusts based on whether the alarm information is inhibited, the controller timely acquires the latest alarm inhibiting command and can quickly respond to the command to inhibit the alarm action information without inhibiting the alarm reset information; meanwhile, the alarm state word at the previous moment is stored, the controller compares the alarm state word at the previous moment with the alarm state word at the current moment, alarm information cannot be generated when the two alarm state words are the same, the alarm information cannot be generated at different times and is further judged, and the latest alarm information based on the alarm inhibition command is generated according to the obtained alarm inhibition command during judgment, so that abnormal alarm is avoided, the logic of the alarm information is enhanced, and the hysteresis of operation and the confusion of the alarm information are avoided.
Drawings
FIG. 1 is a flow chart of an alarm suppression method based on time sequence alarm information according to the present invention;
FIG. 2 is a schematic diagram of an alarm suppression system based on time sequence alarm information according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
As shown in fig. 1, the alarm suppression method based on time sequence alarm information of the present invention includes the following steps:
the controller enters an operation cycle according to time sequence and loads an alarm suppression field value;
judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new warning information is generated at the current moment; generating new alarm information according to the bit number of the total alarm state word;
and pressing the alarm information into an alarm queue to wait for the controller to send the information to an upper computer.
When the alarm suppression field is set to true, the method carries out alarm suppression by comparing with the alarm state word at the last moment, and the alarm suppression only suppresses action alarm and does not suppress reset alarm; when the alarm suppression is effective, when the alarm information is generated, only the reset information corresponding to the alarm of the action before the suppression is processed, and the alarm action information after the suppression only maintains the alarm state before the suppression without generating a new alarm state.
In order to make the aforementioned, characteristic and advantages of the present invention more comprehensible, a detailed description of the steps of the present invention is provided below with reference to the accompanying drawings.
Examples
As shown in fig. 1, the alarm suppression method based on time sequence alarm information of the present invention includes the following steps:
1) the controller enters an operation cycle according to time sequence and loads an alarm suppression field value;
because the upper computer can carry out value setting operation on the suppression field, when the operation task of each period starts, the controller needs to judge whether the real-time value queue has the alarm suppression field value issued by the upper computer; if the alarm suppression field value is loaded to the alarm enabling field section of the IO measuring point in the POU file where the IO measuring point is located, if the upper computer does not set the alarm suppression field value, the previous alarm suppression field value is adopted.
2) Judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point;
judging whether new warning information is generated at the current moment;
and storing the alarm state word capable of expressing the current alarm information so as to carry out generation judgment on the alarm information in the subsequent period.
Judging a current alarm suppression field value, and sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, wherein the obtained current alarm information specifically comprises:
when the alarm suppression field value is true, sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, if the IO measurement point real-time value exceeds the alarm limit value, firstly converting the alarm state word at the previous moment and the alarm state word at the current moment (the alarm state word type is integer) type into a 32-bit number, and endowing the bit value corresponding to the alarm limit value exceeding the alarm limit value in the bit number of the alarm state word at the previous moment to the corresponding bit value corresponding to the alarm limit value exceeding the alarm limit value in the bit number of the current alarm state word;
and if the alarm limit value is not out of limit, the corresponding bit position 0 corresponding to the alarm limit value in the current alarm state word is set.
If the alarm suppression field is false, sequentially comparing the real-time value of the IO measurement point with each alarm limit value configured at the IO measurement point, firstly converting the types of the alarm state word at the previous moment and the alarm state word at the current moment into 32-bit numbers respectively, if the real-time value of the IO measurement point is compared with a certain alarm limit value and exceeds the limit, setting true to the bit number corresponding to the alarm limit value in the bit number of the alarm state word at the current moment, and otherwise, setting false at the corresponding position.
The number of bits of 32 bits is specifically described as follows:
for floating point type analog quantity and integer type analog quantity, bit 0 represents whether the low limit is exceeded or not, bit 1 represents whether the high limit is exceeded or not, bit 2 represents whether the low limit is exceeded or not, bit 3 represents whether the high limit is exceeded or not, bit 16 represents whether the low limit is exceeded or not, bit 17 represents whether the high limit is exceeded or not, the bits are 1 representing the overrun, and the bits are 0 representing the non-overrun; for the boolean switching value, the 4 th bit represents whether to operate, a 0 represents normal, and a 1 represents operation.
3) Performing XOR operation on the alarm state word at the previous moment and the current alarm state word, judging alarm or reset information if the XOR result is not 0, and proving that no alarm information exists if the XOR result is 0;
judging whether to generate new warning information at the current moment specifically comprises the following operations:
performing XOR operation on the alarm state word at the previous moment and the alarm state word at the current moment to obtain a total alarm state word after XOR, judging whether the total alarm state word after XOR is 0, if so, proving that no new alarm information is generated at present, otherwise, representing that new alarm information exists at the current moment, and processing the new alarm information;
the specific operation of generating new alarm information according to the bit number of the total alarm state word is as follows:
firstly, converting the type of the total alarm state word into a total alarm state word bit number of 32 bits, and sequentially judging the bit number related to the alarm limit value in the total alarm state word bit number, if the bit number in the total alarm state word corresponding to a certain alarm limit value is not 0, then proving that new alarm information corresponding to the alarm limit value is generated in the period, otherwise, proving that no new alarm information corresponding to the alarm limit value is generated in the period.
4) And pressing the alarm information into an alarm queue to wait for the controller to send the information to an upper computer.
And storing the alarm state word capable of expressing the current alarm information so as to carry out generation judgment on the alarm information in the subsequent period.
If no new alarm information is generated, the alarm information processing process is quitted;
when new alarm information is generated, specific reset or action alarm information corresponding to the alarm information is judged for the floating point analog quantity and the integer analog quantity, and the specific process is as follows:
firstly, judging whether the reset alarm information exists:
judging whether the priority of the limit value generating the reset alarm information is a low limit, a high limit, namely judging whether the low limit has corresponding reset information or not, if the value of the bit corresponding to the low limit value in the 32-bit number corresponding to the alarm state word at the current moment is 0, but the value of the bit corresponding to the low limit value in the 32-bit number corresponding to the alarm state word at the previous moment is not 0, pressing the bit position 0 corresponding to the low limit value in the 32-bit number corresponding to the total alarm state word into an alarm queue, and simultaneously setting a reFlag variable to 1; then judging whether the upper limit has corresponding reset information, if so, judging the bit position 0 in the 32-bit total alarm state word corresponding to the upper limit, judging the value of a flag variable, and if so, not processing the flag variable; if the answer is 0, the reset information is pressed into an alarm queue, and meanwhile, a reFlag variable is set to be 1; then sequentially judging whether new reset information is generated in the low limit, the high limit, the low limit, the high limit and the low limit, and the high limit, wherein the judging process is the same as the high limit;
and then judging whether action warning information exists:
and judging whether the priority of the limit value of the action warning information is high, low, high and low. For the high and high limits, if the bit value corresponding to the low limit value in the 32-bit number corresponding to the alarm state word at the current moment is 1, the action alarm information corresponding to the high and high limits is proved, and the action alarm information is pressed into an alarm queue after the bit position 1 in the bit number of the total alarm state word corresponding to the high and high limits is pressed; if no action warning information of high and high limits exists, judging whether action warning information exists in the low and high limits, wherein the judging process is similar to the judging process of the high and high limits, and if no new action warning information exists in the low and high limits, judging whether action warning information exists in the high and high limits, and so on.
For the Boolean type switching value, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is not 0, the generation of the reset alarm information is proved, and the reset alarm information is pressed into an alarm queue; if no reset alarm information is generated, judging whether action alarm information is generated, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is not 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is 0, proving that the action alarm information is generated, and meanwhile, pressing the action alarm information into an alarm queue;
and after the processing is finished, assigning the value of the alarm state word at the current moment to the value of the alarm state word at the previous moment, exiting the alarm judgment process, and continuing to judge when the operation at the next moment is waited.
As shown in fig. 2, another objective of the present invention is to provide an alarm suppression system based on time-series alarm information, which includes:
the acquisition module is used for acquiring the set value data message and loading the alarm suppression field value;
the judging module is used for judging the current alarm suppression field value and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word;
and the pressing module is used for pressing the alarm information into an alarm queue to wait for the controller to upload the information to the upper computer.
The acquisition module is specifically configured to:
when the operation task of each period starts, judging whether an alarm suppression field value issued by an upper computer exists in a real-time value queue;
if yes, loading the alarm suppression field value to an alarm enabling field section corresponding to the POU file where the IO measuring point is located to obtain the loaded alarm suppression field value;
if not, the previous alarm suppression field value is adopted as the loaded alarm suppression field value.
In the judging module, the current alarm suppression field value is judged, and the real-time value of the IO measurement point is sequentially compared with each alarm limit value configured at the IO measurement point, which is specifically used for:
when the alarm suppression field value is true, sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, if the IO measurement point real-time value exceeds a certain alarm limit value, firstly converting the alarm state word at the previous moment and the alarm state word type at the current moment into a 32-bit number, and endowing a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the alarm state word at the previous moment to a corresponding bit corresponding to the alarm limit value exceeding the limit in the bit number of the current alarm state word; if the alarm limit value is not out of limit, the corresponding bit position 0 corresponding to the alarm limit value in the bit number of the current alarm state word is set;
if the alarm suppression field is false, sequentially comparing the real-time value of the IO measuring point with each alarm limit value configured at the IO measuring point, and converting the types of the alarm state word at the previous moment and the alarm state word at the current moment into a 32-bit number respectively; if the IO measurement point real-time value exceeds a certain alarm limit value, the bit number value true corresponding to the alarm limit value in the alarm state word bit number at the current moment is determined, otherwise, the bit number value false corresponding to the alarm limit value is determined.
In the judging module, new warning information is generated according to the bit number of the total warning state word, and the judging module is specifically used for:
firstly, converting the type of the total alarm state word into a 32-bit total bit number of the alarm state word (changing the alarm state word into an integer), and sequentially judging bit bits related to an alarm limit value in the total bit number of the alarm state word, if the bit bits in the total bit number of the alarm state word corresponding to a certain alarm limit value are not 0, then proving that new alarm information corresponding to the alarm limit value is generated in the period, otherwise, proving that no new alarm information corresponding to the alarm limit value is generated in the period.
As shown in fig. 3, a third object of the present invention is to provide an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the alarm suppression method based on the time-series alarm information when executing the computer program.
In the figure, the communication interface is used for accessing an external device to acquire data.
The alarm suppression method based on the time sequence alarm information comprises the following steps:
the controller enters an operation cycle according to time sequence and loads an alarm suppression field value;
judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new warning information is generated at the current moment; generating new alarm information according to the bit number of the total alarm state word;
and pressing the alarm information into an alarm queue to wait for the controller to send the information to an upper computer.
A fourth object of the present invention is to provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the alarm suppression method based on time-series alarm information.
The alarm suppression method based on the time sequence alarm information comprises the following steps:
the controller enters an operation cycle according to time sequence and loads an alarm suppression field value;
judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new warning information is generated at the current moment; generating new alarm information according to the bit number of the total alarm state word;
and pressing the alarm information into an alarm queue to wait for the controller to send the information to an upper computer.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (9)

1. An alarm suppression method based on time sequence alarm information is characterized by comprising the following steps:
entering an operation cycle according to time sequence and loading an alarm suppression field value;
judging a current alarm suppression field value, and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word;
and pressing the alarm information into an alarm queue.
2. The alarm suppression method based on time series alarm information according to claim 1, characterized in that:
the loading of the alarm suppression field value specifically includes:
when the operation task of each period starts, judging whether an alarm suppression field value issued by an upper computer exists in a real-time value queue;
if yes, loading the alarm suppression field value to an alarm enabling field section corresponding to the POU file where the IO measuring point is located to obtain the loaded alarm suppression field value;
if not, the former alarm suppression field value is adopted.
3. The alarm suppression method based on time series alarm information according to claim 1, characterized in that:
the method for judging the current alarm suppression field value and sequentially comparing the real-time value of the IO measurement point with each alarm limit value configured at the IO measurement point specifically comprises the following steps:
when the alarm suppression field value is true, sequentially comparing the IO measurement point real-time value with each alarm limit value configured at the IO measurement point, if the IO measurement point real-time value exceeds a certain alarm limit value, firstly converting the alarm state word at the previous moment and the alarm state word type at the current moment into a 32-bit number, and endowing a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the alarm state word at the previous moment to a bit value corresponding to the alarm limit value exceeding the limit in the bit number of the current alarm state word; if the alarm limit value is not out of limit, the corresponding bit position 0 corresponding to the alarm limit value in the bit number of the current alarm state word is set;
if the alarm suppression field is false, sequentially comparing the real-time value of the IO measuring point with each alarm limit value configured at the IO measuring point, and converting the types of the alarm state word at the previous moment and the alarm state word at the current moment into a 32-bit number respectively; if the IO measurement point real-time value exceeds a certain alarm limit value, the bit number position true corresponding to the alarm limit value in the alarm state word bit number at the current moment is determined, otherwise, the bit number position false corresponding to the alarm limit value is determined.
4. The alarm suppression method based on time series alarm information according to claim 1, characterized in that:
the method for judging whether new warning information is generated at the current moment specifically comprises the following steps:
and performing XOR operation on the alarm state word at the previous moment and the alarm state word at the current moment to obtain a total alarm state word after XOR, judging whether the total alarm state word after XOR is 0, if so, proving that no new alarm information is generated at the current moment, otherwise, representing that new alarm information exists at the current moment and needing to process the new alarm information.
5. The alarm suppression method based on time series alarm information according to claim 1, characterized in that:
the specific operation of generating new alarm information according to the total alarm state word bit number is as follows:
firstly, converting the type of a total alarm state word into a total alarm state word bit number of 32 bits, sequentially judging bit positions related to alarm limit values in the total alarm state word bit number, if the bit position of a certain alarm limit value corresponding to the bit number in the total alarm state word is not 0, proving that new alarm information corresponding to the alarm limit value is generated in the period, otherwise, proving that no new alarm information corresponding to the alarm limit value is generated in the period, and if no new alarm information is generated, exiting the alarm information processing process.
6. The alarm suppression method based on time series alarm information according to claim 1, characterized in that:
pressing the alarm information into an alarm queue, which specifically comprises:
the specific process for the floating-point analog quantity and the integer analog quantity is as follows:
firstly, judging whether the reset alarm information exists:
sequentially judging whether different limits generate reset alarm information according to the priority order of the limits, if the value of a corresponding bit in 32-bit numbers corresponding to the alarm state word at the current moment is 0, but the value of a corresponding bit in the 32-bit numbers corresponding to the alarm state word at the previous moment is not 0, pressing the reset alarm information into an alarm queue, and simultaneously setting a flag variable to be 1;
secondly, judging whether action warning information exists:
judging whether action alarm information is generated by different limit values according to the priority sequence of the limit values, if the value of a corresponding bit in 32-bit numbers corresponding to the alarm state word at the current moment is 1, proving that the corresponding action alarm information exists, and pressing the action alarm information into an alarm queue after the bit position in the bit number corresponding to the total alarm state word is 1;
for the Boolean type switching value, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is not 0, the generation of the reset alarm information is proved, and the reset alarm information is pressed into an alarm queue; if no reset alarm information is generated, judging whether action alarm information is generated, if the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the current moment is not 0, but the value of the bit corresponding to the switching value in the 32-bit number corresponding to the alarm state word at the previous moment is 0, proving that the action alarm information is generated, and meanwhile, pressing the action alarm information into an alarm queue;
and after the processing is finished, assigning the value of the alarm state word at the current moment to the value of the alarm state word at the previous moment, exiting the alarm judgment process, and continuing to judge when the operation at the next moment is waited.
7. An alarm suppression system based on time-series alarm information, comprising:
the acquisition module is used for entering an operation cycle according to time sequence and loading an alarm suppression field value;
the judging module is used for judging the current alarm suppression field value and sequentially comparing the IO measuring point real-time value with each alarm limit value configured at the IO measuring point; judging whether new alarm information is generated at the current moment, if so, generating new alarm information according to the bit number of the total alarm state word;
and the pressing module is used for pressing the alarm information into an alarm queue to wait.
8. 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 time series alarm information based alarm suppression method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the time series alert information based alert suppression method of any one of claims 1 to 6.
CN202111244149.0A 2021-10-26 2021-10-26 Alarm suppression method, system, device and storage medium based on time sequence alarm information Active CN113687621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111244149.0A CN113687621B (en) 2021-10-26 2021-10-26 Alarm suppression method, system, device and storage medium based on time sequence alarm information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111244149.0A CN113687621B (en) 2021-10-26 2021-10-26 Alarm suppression method, system, device and storage medium based on time sequence alarm information

Publications (2)

Publication Number Publication Date
CN113687621A true CN113687621A (en) 2021-11-23
CN113687621B CN113687621B (en) 2022-01-25

Family

ID=78587899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111244149.0A Active CN113687621B (en) 2021-10-26 2021-10-26 Alarm suppression method, system, device and storage medium based on time sequence alarm information

Country Status (1)

Country Link
CN (1) CN113687621B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002291036A (en) * 2001-03-26 2002-10-04 Hitachi Kokusai Electric Inc Alarm unit and alarm system
CN102088363A (en) * 2009-12-08 2011-06-08 大唐移动通信设备有限公司 Alarm processing method and system
CN103679354A (en) * 2013-12-02 2014-03-26 南京磐能电力科技股份有限公司 Intelligent warning method on basis of multilayer fault inference library and intelligent inference machine
CN105184446A (en) * 2015-08-11 2015-12-23 北京科东电力控制系统有限责任公司 Electric-power-automation-system real-time alarm data folding display method
CN108111326A (en) * 2016-11-24 2018-06-01 中国移动通信有限公司研究院 A kind of method and device for inhibiting alarm windstorm
CN110211353A (en) * 2019-06-12 2019-09-06 国家电网有限公司 A kind of effective ways that monitoring system warning information inhibits
CN110769069A (en) * 2019-10-30 2020-02-07 许继集团有限公司 Method and device for pushing alarm information
CN111064635A (en) * 2019-12-10 2020-04-24 中盈优创资讯科技有限公司 Abnormal traffic monitoring method and system
CN111813638A (en) * 2020-06-30 2020-10-23 厦门科灿信息技术有限公司 Alarm information processing method and device and terminal equipment
CN112685247A (en) * 2020-12-24 2021-04-20 京东方科技集团股份有限公司 Alarm suppression method based on Zabbix monitoring system and monitoring system
CN113485281A (en) * 2021-09-07 2021-10-08 西安热工研究院有限公司 Method and system for generating measuring point alarm and reset information in background of distributed control system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002291036A (en) * 2001-03-26 2002-10-04 Hitachi Kokusai Electric Inc Alarm unit and alarm system
CN102088363A (en) * 2009-12-08 2011-06-08 大唐移动通信设备有限公司 Alarm processing method and system
CN103679354A (en) * 2013-12-02 2014-03-26 南京磐能电力科技股份有限公司 Intelligent warning method on basis of multilayer fault inference library and intelligent inference machine
CN105184446A (en) * 2015-08-11 2015-12-23 北京科东电力控制系统有限责任公司 Electric-power-automation-system real-time alarm data folding display method
CN108111326A (en) * 2016-11-24 2018-06-01 中国移动通信有限公司研究院 A kind of method and device for inhibiting alarm windstorm
CN110211353A (en) * 2019-06-12 2019-09-06 国家电网有限公司 A kind of effective ways that monitoring system warning information inhibits
CN110769069A (en) * 2019-10-30 2020-02-07 许继集团有限公司 Method and device for pushing alarm information
CN111064635A (en) * 2019-12-10 2020-04-24 中盈优创资讯科技有限公司 Abnormal traffic monitoring method and system
CN111813638A (en) * 2020-06-30 2020-10-23 厦门科灿信息技术有限公司 Alarm information processing method and device and terminal equipment
CN112685247A (en) * 2020-12-24 2021-04-20 京东方科技集团股份有限公司 Alarm suppression method based on Zabbix monitoring system and monitoring system
CN113485281A (en) * 2021-09-07 2021-10-08 西安热工研究院有限公司 Method and system for generating measuring point alarm and reset information in background of distributed control system

Also Published As

Publication number Publication date
CN113687621B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
US10050987B1 (en) Real-time anomaly detection in a network using state transitions
CN105589757A (en) Method for protecting working process in server framework and server
KR102004456B1 (en) Apparatus and method for transforming PLC control program into structured data
CN113687621B (en) Alarm suppression method, system, device and storage medium based on time sequence alarm information
CN111953569B (en) State information reporting method, device, equipment and medium
EP3118696B1 (en) Programmable controller system
WO2006128148A1 (en) System and method for bypassing execution of an algorithm
CN111475159A (en) Method, device and storage medium for automatically generating program
CN111147542A (en) Secret-free access setting method, device, equipment and medium
CN113886196A (en) On-chip power consumption management method, electronic device and storage medium
CN113377295B (en) Data storage and reading method, device and equipment for multi-producer single-consumer
CN111158317B (en) Numerical control machining control method, device, system, equipment and storage medium
CN113325795A (en) PLC centralized monitoring method and system
CN113805910B (en) Method and system for sharing data in application
CN117743472B (en) Storage task breakpoint synchronization method, device, medium and equipment
US11378941B2 (en) Configuration tool and method for scheduling at least one control application on an industrial controller
CN113110278B (en) Information interaction method and device, storage medium and processor
CN111694701B (en) Method and system for detecting off-line state of hardware module of embedded system
CN113985826A (en) Multi-operation-cycle-oriented real-time value loading method, system, equipment and storage medium
WO2021038612A1 (en) Security assessment apparatus, security assessment method, and non-transitory computer readable medium
CN113162032A (en) Power generation control circuit, power generation control method and device
CN118197022A (en) Alarm method, alarm device, alarm equipment and storage medium
CN116488341A (en) Cable monitoring fault alarm method and system
CN116597621A (en) Cable monitoring method and system for adjusting monitoring weight based on fault data
CN118193089A (en) Top window monitoring method and device, storage medium and terminal

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
GR01 Patent grant
GR01 Patent grant