SCADA system alarm processing method, device and equipment and storage medium
By obtaining the correspondence between the monitoring object and the alarm item and the correspondence between the alarm item and the alarm output group, the alarm result is automatically determined, which solves the problem of data monitoring flexibility and low efficiency in the SCADA system, and achieves more efficient Data monitoring and alarm processing.
Patent Information
- Application Number
- CN202411364958.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
AI Technical Summary
The existing SCADA system requires operators to pre-write scripts when monitoring on-site data, which makes it difficult to modify data collection and monitoring alarms in real time, and is less flexible and efficient.
By obtaining the correspondence between the monitoring object and the alarm item and the correspondence between the alarm item and the alarm output group, the alarm result is automatically determined and whether to output the alarm is determined, which avoids pre-writing of scripts and improves the flexibility and efficiency of data monitoring .
It realizes the flexibility and efficiency of data monitoring in SCADA system, simplifies the relationship setting between monitoring data, alarm items and alarm output, and improves monitoring efficiency and flexibility.
Smart Images

Figure CN119247901A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial automation technology, and in particular to a SCADA system alarm processing method, device, equipment and storage medium. Background Art
[0002] Industrial production sites usually deploy a large number of monitoring equipment to monitor the operation of production tasks. The monitoring equipment will generate a large amount of production operation data, and much of the data can be used to improve equipment operation and maintenance response and improve equipment production efficiency. Among them, the Supervisory Control And Data Acquisition (SCADA) system is a computer-based automated monitoring system that uses configuration software and data transmission links to achieve remote monitoring and control of industrial field equipment, including data acquisition, equipment control, measurement, parameter adjustment, and various signal alarm functions.
[0003] At present, to monitor field data through SCADA system, operators need to write scripts in advance and run scripts to monitor the alarms of field data. However, the writing and modification of scripts is very cumbersome, which makes it difficult to modify the alarms of real-time data collection and monitoring, resulting in low flexibility and efficiency of data monitoring. Summary of the invention
[0004] In view of this, the SCADA system alarm processing method, device, equipment and storage medium provided in the present application improve the flexibility and efficiency of data monitoring of the SCADA system.
[0005] According to a first aspect of an embodiment of the present application, a SCADA system alarm processing method is provided, including: acquiring real-time data of multiple monitored objects, acquiring a first correspondence between the monitored objects and alarm items and a second correspondence between the alarm items and alarm output groups; based on the first correspondence, determining the alarm result of the alarm item according to the real-time data of the monitored objects corresponding to the alarm item; wherein the alarm result includes requesting an alarm or not requesting an alarm; based on the second correspondence, obtaining the sum of the number of alarm requests of the alarm output group according to the alarm result of the alarm item corresponding to the alarm output group; and determining whether to output an alarm according to the sum of the number of alarm requests of the alarm output group.
[0006] According to a second aspect of an embodiment of the present application, a SCADA system alarm processing device is provided, including: an acquisition module, used to acquire real-time data of multiple monitored objects, acquire a first correspondence between the monitored objects and the alarm items, and a second correspondence between the alarm items and the alarm output groups; a monitoring data analysis module, used to determine the alarm result of the alarm item based on the first correspondence and according to the real-time data of the monitored objects corresponding to the alarm items; wherein the alarm result includes requesting an alarm or not requesting an alarm; an alarm statistics module, used to obtain the sum of the number of requested alarms of the alarm output group based on the second correspondence and according to the alarm result of the alarm item corresponding to the alarm output group; an alarm output module, used to determine whether to output an alarm based on the sum of the number of requested alarms of the alarm output group.
[0007] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a bus, wherein the processor, the memory and the communication interface communicate with each other through the bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method provided in the first aspect above.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the method provided in the first aspect.
[0009] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform the method provided in the first aspect above.
[0010] It can be seen from the above technical solution that the first corresponding relationship between the set monitoring object and the alarm item and the second corresponding relationship between the alarm item and the alarm output group can be obtained, and the real-time data of multiple monitoring objects can be obtained. According to the first corresponding relationship between the monitoring object and the alarm item, it can be determined whether the alarm item requests an alarm, and according to the second corresponding relationship between the alarm item and the alarm output group, it can be determined whether the alarm output group outputs an alarm, thereby avoiding pre-written scripts and improving the flexibility and efficiency of data monitoring of the SCADA system. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is an architecture diagram of data monitoring of a SCADA system provided in an embodiment of the present application;
[0012] Figure 2It is a flow chart of the SCADA system alarm processing method provided in the embodiment of the present application;
[0013] Figure 3 It is a schematic diagram of a SCADA system alarm processing device provided in an embodiment of the present application;
[0014] Figure 4 It is a schematic diagram of an electronic device provided in an embodiment of the present application.
[0015] The reference numerals are as follows:
[0016] 201: Acquire real-time data of multiple monitoring objects, acquire a first correspondence between the monitoring objects and the alarm items, and acquire a second correspondence between the alarm items and the alarm output groups
[0017] 202: Based on the first corresponding relationship, determine the alarm result of the alarm item according to the real-time data of the monitoring object corresponding to the alarm item
[0018] 203: Based on the second corresponding relationship, according to the alarm result of the alarm item corresponding to the alarm output group, obtain the number of alarm requests and
[0019] 204: Determine whether to output an alarm based on the number of alarm requests from the alarm output group
[0020] 10: Data source 15: SCADA system architecture 19: Physical alarm equipment
[0021] 101: OS server data package 102: ODBC interface function 103: OLE interface function
[0022] 151: Alarm server architecture 152: Front-end interface 1511: Monitoring object data source 1512: Alarm item 1513: Alarm output group 1521: Operation interface
[0023] 1522: Monitoring interface 191: Buzzer 192: Indicator light
[0024] 200: SCADA system alarm processing method 302: Monitoring data analysis module 301: Acquisition module
[0025] 300: SCADA system alarm processing device 303: alarm statistics module 304: alarm output module
[0026] 700: electronic device 702: processor 704: communication interface
[0027] 706: memory 708: bus 710: program DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be described below in conjunction with the accompanying drawings.
[0029] As mentioned above, monitoring field data through the SCADA system requires operators to write scripts in advance and monitor the alarms of field data by running the scripts, which results in low flexibility and efficiency in data monitoring.
[0030] In the embodiment of the present application, the first correspondence between the set monitoring object and the alarm item and the second correspondence between the alarm item and the alarm output group can be obtained, avoiding the need to pre-write scripts and improving the flexibility of setting the correspondence between monitoring data, alarm items and alarm outputs. Furthermore, based on the first correspondence between the monitoring object and the alarm item, it can be determined whether the alarm item requests an alarm, and based on the second correspondence between the alarm item and the alarm output group, it can be determined whether the alarm output group outputs an alarm. This improves the flexibility and efficiency of data monitoring in the SCADA system.
[0031] In order to facilitate the understanding of the present application, the architecture of data monitoring and alarm output of the SCADA system in the present application is first exemplarily described.
[0032] For example, Figure 1 This is a data monitoring architecture diagram of the SCADA system provided in the embodiment of the present application. Figure 1 As shown, the electronic device or the SCADA system alarm processing device deploys the SCADA system architecture 15. The SCADA system architecture 15 includes an alarm server architecture 151 and a front-end interface 152. The alarm server architecture 151 is used for back-end processing, obtains the real-time data of the monitored object from the data source 10, and outputs an alarm according to the real-time data of the monitored object. The alarm server architecture 151 can be associated with an external physical alarm device 19, so that an alarm signal is output through the physical alarm device 19. Among them, the alarm server architecture 151 includes a monitored object data source 1511, an alarm item 1512, and an alarm output group 1513. The front-end interface 152 is used for front-end display to realize information interaction with the operator. Optionally, the front-end interface 152 includes an operation interface 1521 and a monitoring interface 1522. For example, the operator enters the first corresponding relationship between the monitored object and the alarm item, and the second corresponding relationship between the alarm item and the alarm output group by operating in the operation interface 1521. For example, the real-time data of the monitored object obtained or the output alarm can be displayed in the monitoring interface 1522.
[0033] The implementation methods of the present application are described in detail below with reference to the accompanying drawings.
[0034] Figure 2This is a flow chart of the SCADA system alarm processing method provided by the embodiment of the present application. Figure 2 As shown, the SCADA system alarm processing method 200 provided in this embodiment includes:
[0035] Step 201: Acquire real-time data of a plurality of monitored objects, acquire a first corresponding relationship between the monitored objects and the alarm items, and acquire a second corresponding relationship between the alarm items and the alarm output groups.
[0036] The real-time data of the monitored object refers to the data generated in real time at the industrial site, and the real-time data of multiple monitored objects can be obtained periodically.
[0037] This embodiment does not limit the name and generation method of the monitoring object. For example, the name of the monitoring object can be: high pressure gas pressure of air compressor station, low pressure gas pressure of air compressor station, temperature of annealing furnace zone 1, temperature of annealing furnace zone 2, etc. For example, when the monitoring object is the temperature of annealing furnace zone 1, the real-time data of the monitoring object is the temperature data detected by the temperature sensor in real time.
[0038] This embodiment does not limit the number of monitored objects. For example, the number of monitored objects may be 8,000.
[0039] The monitored object has an object number. Optionally, the object number of the monitored object can be set by an operator through an operation in an operation interface. Optionally, the object number of the monitored object can be written in a script, and the object number of the monitored object can be obtained by running the script. Figure 1 , Assume that, S1 represents monitoring object 1, which is the high pressure of the air compressor station, and the object number is 1. Similarly, S2 represents monitoring object 2, which is the low pressure of the air compressor station, and the object number is 2; S3 represents monitoring object 3, which is the temperature of zone 1 of the annealing furnace, and the object number is 3; S4 represents monitoring object 4, which is the temperature of zone 2 of the annealing furnace, and the object number is 4.
[0040] Optionally, obtain real-time data of multiple monitoring objects, including:
[0041] The real-time data of the monitored object is obtained by calling at least one of an operating system (OS) server data packet, an open database connectivity (ODBC) interface function and an object linking and embedding (OLE) interface function.
[0042] By calling the data interfaces provided by different data platforms, real-time data of industrial sites collected by different data platforms can be obtained, which improves the efficiency of data collection and expands the compatibility of different data platforms.
[0043] For example, Figure 1 As shown, the data source 10 includes data obtained by calling an OS server data package 101, data obtained by calling an ODBC interface function 102, and data obtained by calling an OLE interface function 103. By calling the OS server data package 101, the real-time data of the monitored object can be obtained from systems developed by Siemens, such as PCS7 and WinCC. By calling the ODBC interface function 102 or the OLE interface function 103, the real-time data of the monitored object can be obtained from systems not developed by Siemens, such as KingView and DataBase.
[0044] Among them, PCS7 is a completely seamlessly integrated automation solution developed by Siemens. Its application fields include process industry, manufacturing industry, mixed industry and manufacturing and process automation products involved in industry. PCS7 is based on process automation, from sensors, actuators to controllers, and then to the host computer, forming a complete Totally Integrated Automation (TIA) architecture from bottom to top.
[0045] WinCC refers to Windows Control Center, a process monitoring system developed by Siemens with good openness and flexibility. WinCC can be the human-machine interface component in PCS7 process control system and other Siemens control systems.
[0046] KingView refers to KingView, an industrial automation configuration software that can be used for visualization and control processes in industrial production sites.
[0047] DataBase refers to a database, which is a software system that stores and manages data.
[0048] It should be noted that the above-mentioned PCS7, WinCC, KingView and DataBase are only examples and do not limit the source of obtaining the real-time data of the monitored object.
[0049] In this step, a first correspondence between the monitored object and the alarm item, and a second correspondence between the alarm item and the alarm output group are also obtained. Optionally, the first correspondence and the second correspondence can be set by an operator through an operation interface. Among them, the alarm item can select at least one monitored object from multiple monitored objects as alarm data, monitor, and output the alarm result to the corresponding alarm output group. Correspondingly, the alarm output group determines whether to output an alarm based on the alarm result of the input alarm item.
[0050] Optionally, the data of the alarm output group can be reset or cleared to re-count the output alarms in some scenarios to improve the flexibility and accuracy of alarm monitoring. Optionally, the reset or clearing of the alarm output group can be set by the operator through operations in the relevant display interface.
[0051] Optionally, the alarm output group can be associated with a physical alarm device. Figure 1 As shown, the physical alarm device 19 includes a buzzer 191 and an indicator light 192. Depending on the type of the physical alarm device, the physical alarm device is used to output a light signal or an audio signal. By associating the physical alarm device with the alarm output group and outputting a light signal or an audio signal through the physical alarm device, the operator can be more intuitively and efficiently reminded that there is an abnormality at the current industrial site, so that the operator can handle the abnormality in a timely manner to ensure the normal progress of industrial production.
[0052] Optionally, in order to improve the accuracy and efficiency of alarm monitoring, in the first correspondence, there is a one-to-one correspondence between the monitoring object and the alarm item. For example, when the number of monitoring objects is 8000, the number of alarm items is also 8000. For example, when the monitoring object is the high pressure gas pressure of the air compressor station, the corresponding alarm item is used to monitor whether the value of the high pressure gas pressure of the air compressor station exceeds the preset pressure value.
[0053] Optionally, in order to improve the flexibility of alarm monitoring, in the second correspondence, there is a many-to-many correspondence between alarm items and alarm output groups. Specifically, the same alarm item can correspond to at least one alarm output group, or the same alarm output group can correspond to at least one alarm item.
[0054] Combine the following Figure 1 The first corresponding relationship and the second corresponding relationship are exemplarily described. Figure 1As shown, the monitoring object is represented by S, and the monitoring objects include S1, S2, S3, S4, etc. Assume that S1 (i.e. monitoring object 1) is the temperature of zone 1 of annealing furnace No. 1, S2 (i.e. monitoring object 2) is the temperature of zone 2 of annealing furnace No. 1, S3 (i.e. monitoring object 3) is the temperature of zone 1 of annealing furnace No. 2, and S4 (i.e. monitoring object 4) is the temperature of zone 2 of annealing furnace No. 2. Monitoring objects 1 to 4 all correspond to D1 (i.e. department 1). Among them, the industrial system usually includes multiple departments, which are represented by D. Different departments can be pre-assigned with multiple alarm items, which are represented by t. Assume that alarm items 1 to 100 are assigned to department 1 (i.e. D1), represented by t1-t100; and alarm items 101 to 200 are assigned to department 2 (i.e. D2), represented by t101-t200. Assume that monitoring objects 1 to 4 correspond to alarm items 1 to 4 in department 1, respectively, that is, the first corresponding relationship. In the second corresponding relationship, alarm items 1 to 4 are all used to monitor the temperature of the annealing furnace, corresponding to alarm output group 1, represented by G1; alarm item 1 and alarm item 2 are used to monitor the temperature of different areas of annealing furnace No. 1, corresponding to alarm output group 2, represented by G2; alarm item 1 and alarm item 3 are used to monitor the temperature of the same area of different annealing furnaces, corresponding to alarm output group 3, represented by G3; wherein G represents the alarm output group.
[0055] In this embodiment, the operator can set the first correspondence between the monitored object and the alarm item and the second correspondence between the alarm item and the alarm output group through the operation interface. Since the operator can perform the setting operation on the operation interface, the pre-writing of scripts is avoided, and the flexibility of setting the correspondence between the monitored data, the alarm item and the alarm output is improved.
[0056] Step 202: Based on the first corresponding relationship, determine the alarm result of the alarm item according to the real-time data of the monitoring object corresponding to the alarm item, wherein the alarm result includes requesting an alarm or not requesting an alarm.
[0057] Specifically, the alarm item setting includes an item number and an alarm condition. Optionally, the alarm condition can be set by an operator through an operation interface.
[0058] Determine the alarm result of the alarm item according to the real-time data of the monitoring object corresponding to the alarm item, which may include:
[0059] Determine whether the real-time data of the monitored object corresponding to the alarm project meets the alarm conditions; if the alarm conditions are met, determine the alarm result of the alarm project as requesting an alarm; if the alarm conditions are not met, determine the alarm result of the alarm project as not requesting an alarm.
[0060] Optionally, the alarm condition includes a numerical condition. For example, if the monitored object is the temperature of the annealing furnace, the corresponding alarm item is to monitor the temperature of the annealing furnace. The numerical condition can set a preset temperature range, assuming it is (T1, T2), and T2 is greater than T1. When the temperature of the annealing furnace is between (T1, T2), it is a normal situation, the alarm condition is not met, and no alarm is requested; when the temperature of the annealing furnace exceeds the range of (T1, T2), it is an abnormal situation, the alarm condition is met, and an alarm is requested.
[0061] Optionally, the alarm condition also includes a delay condition.
[0062] Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the alarm condition, including:
[0063] Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the numerical condition; if the numerical condition is met, obtain the continuous multiple alarm results of the alarm item before the current time; and determine whether the delay condition is met based on the continuous multiple alarm results.
[0064] Specifically, when the real-time data of the monitored object meets the numerical condition and continues to meet it for a certain period of time, that is, it also meets the delay condition, it is determined that the alarm condition is met and an alarm is requested. Otherwise, if the numerical condition or the delay condition is not met, it is determined that the alarm condition is not met and no alarm is requested. By setting the delay condition, the stability and reliability of the alarm data analysis are improved.
[0065] Let's take an example. For example, the monitoring object is the temperature of the annealing furnace, the numerical condition is the preset temperature range (T1, T2), and the delay condition is set to last for 5 statistical cycles. Assume that the statistical time is expressed as t1, t2, t3, ... At time t1 and t6, the temperature of the annealing furnace is within the range (T1, T2), which is not satisfied with the numerical condition. At time t2~t5 and t7~t12, the temperature of the annealing furnace exceeds the temperature range (T1, T2) and satisfies the numerical condition. Assume that the current time is t5 and the temperature of the annealing furnace satisfies the numerical condition, then obtain the 4 statistical results before time t5, that is, the statistical results of time t1~t4. Since the temperature of the annealing furnace does not meet the numerical condition at time t1, it does not meet the delay condition. Therefore, at the current time t5, it is determined that the alarm item does not meet the alarm condition and no alarm is requested. Assuming that the current time is t11 and the temperature of the annealing furnace meets the numerical condition, the four statistical results before time t11, that is, the statistical results of time t7 to t10, are obtained. Since the temperature of the annealing furnace meets the numerical condition, that is, the delay condition, at the current time t11, it is determined that the alarm item meets the alarm condition and an alarm is requested. Similarly, assuming that the current time is t12 and the alarm item meets the alarm condition, an alarm is continuously requested after time t11.
[0066] Step 203: Based on the second corresponding relationship, the total number of alarm requests of the alarm output group is obtained according to the alarm results of the alarm items corresponding to the alarm output group.
[0067] Specifically, the alarm output group is provided with a group number.
[0068] Based on the second corresponding relationship, the alarm output group corresponds to at least one alarm item, and for each alarm item, an alarm may be requested or not. According to the alarm result of at least one alarm item corresponding to the alarm output group, the number of alarm requests of the alarm output group is obtained.
[0069] Step 204: Determine whether to output an alarm based on the number of alarm requests from the alarm output group.
[0070] The alarm output group corresponds to at least one alarm item. It can be understood that when the alarm result of the alarm item in at least one alarm item corresponding to the alarm output group is a request for alarm, the sum of the number of alarm requests in the alarm output group is greater than 0, and an alarm will be output; when the alarm result of the alarm item in at least one alarm item corresponding to the alarm output group is not a request for alarm, or in other words, the alarm result of at least one alarm item is not a request for alarm, the sum of the number of alarm requests in the alarm output group is equal to 0, and no alarm will be output.
[0071] Optionally, determining whether to output an alarm based on the number of alarm requests of the alarm output group includes:
[0072] Determine whether the alarm output group is bound to a physical alarm device, which is used to output light signals or audio signals.
[0073] If it is determined to bind a physical alarm device, and it is determined that the sum of the number of alarm requests of the alarm output group is greater than 0, an alarm signal is output to the physical alarm device, and the alarm signal is used to control the physical alarm device to output a light signal or an audio signal.
[0074] By associating the physical alarm device with the alarm output group and using the physical alarm device to output an alarm signal, i.e., a light signal or an audio signal, the operator can be reminded intuitively and efficiently that there is an abnormality at the current industrial site, so that the operator can deal with the abnormal situation in a timely manner.
[0075] It can be seen that the SCADA system alarm processing method provided by the present embodiment obtains the first corresponding relationship between the set monitoring object and the alarm item and the second corresponding relationship between the alarm item and the alarm output group, avoids pre-scripting, and improves the flexibility of setting the corresponding relationship between the monitoring data, the alarm item and the alarm output. According to the first corresponding relationship between the monitoring object and the alarm item, it can be determined whether the alarm item requests an alarm, and according to the second corresponding relationship between the alarm item and the alarm output group, it can be determined whether the alarm output group outputs an alarm. The SCADA system alarm processing method provided by the present embodiment improves the flexibility, scalability and monitoring efficiency of data monitoring of the SCADA system.
[0076] Optionally, in one implementation, in step 202, based on the first corresponding relationship, according to the real-time data of the monitoring object corresponding to the alarm item, determining the alarm result of the alarm item includes:
[0077] Get the first execution order of multiple alarm items;
[0078] According to the first execution order, for each alarm item, real-time data of the monitoring object corresponding to the alarm item is obtained based on the first corresponding relationship;
[0079] Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the alarm condition;
[0080] If the alarm condition is met, the alarm result of the alarm item is determined to be a request alarm;
[0081] If the alarm condition is not satisfied, the alarm result of the alarm item is determined to be no alarm request.
[0082] Optionally, according to the first execution order, for each alarm item, before acquiring the real-time data of the monitoring object corresponding to the alarm item based on the first corresponding relationship, the method further includes:
[0083] According to the first execution order, for each alarm item, it is determined whether the item number of the alarm item belongs to the first number range.
[0084] If it does not belong to the first number range, the data of the alarm output group is cleared and the first prompt information is output, wherein the first prompt information is used to indicate that the item number of the alarm item exceeds the first number range.
[0085] It should be noted that this embodiment does not limit the first execution order.
[0086] Optionally, the first execution order can be determined according to the size of the item numbers of the alarm items. For example, if there are 8,000 alarm items, and the item numbers of the 8,000 alarm items are 1 to 8,000, then the first execution order is the order of alarm item 1 to item number 8,000.
[0087] Optionally, the first execution sequence can be determined according to the priority of the alarm item. It can be understood that the higher the priority of the alarm item, the higher the order of the alarm item in the first execution sequence.
[0088] The execution process of step 202 is described below by taking an example. Assume that the first number range is [1,100], and the first execution sequence is the sequence of the alarm item numbers from small to large.
[0089] According to the first execution sequence, the project number of the current alarm project is obtained, which is assumed to be 0. It is determined whether the project number 0 belongs to the first number range [1,100]. Since the project number 0 does not belong to the first number range [1,100], it means that there is an abnormality in the information of the alarm project, and the data of the alarm output group is cleared and the first prompt information is output. The operator can check and correct the alarm project of project number 0 according to the first prompt information. After that, according to the first execution sequence, the next project number after the project number 0 is obtained, which is assumed to be 1. It is determined whether the project number 1 belongs to the first number range [1,100]. Since the project number 1 belongs to the first number range [1,100], according to the first execution sequence, the next project number after the project number 1 is obtained, and the operation of whether it belongs to the first number range is cyclically executed to determine whether the project numbers of the alarm projects are all valid project numbers.
[0090] According to the first execution order, for alarm item 1, based on the first corresponding relationship, determine the monitoring object 1 corresponding to alarm item 1, assuming it is the temperature of zone 1 of annealing furnace No. 1. Obtain the real-time data of monitoring object 1, determine whether the alarm condition is met according to the numerical conditions and delay conditions set for alarm item 1, and determine whether to request an alarm based on whether the alarm condition is met. The technical principle can be found in the relevant description of step 202 above, which will not be repeated here. Afterwards, according to the first execution order, obtain the next alarm item after alarm item 1, such as alarm item 2, and continue to execute the operation of obtaining the real-time data of the monitoring object corresponding to the alarm item and judging whether the alarm condition is met. According to the first execution order, each alarm item is processed in turn, thereby completing the cyclic processing of data.
[0091] It can be understood that after the current loop processing according to the first execution sequence is completed, the next round of loop processing continues according to the first execution sequence.
[0092] Optionally, in one implementation, in step 203, based on the second corresponding relationship, according to the alarm result of the alarm item corresponding to the alarm output group, the sum of the number of alarm requests of the alarm output group is obtained, including:
[0093] Gets the second execution order of multiple alarm output groups.
[0094] According to the second execution order, for each alarm output group, at least one alarm item corresponding to the alarm output group is acquired based on the second corresponding relationship.
[0095] According to the alarm results respectively corresponding to at least one alarm item, the sum of the number of alarm requests of the alarm output group is obtained.
[0096] It should be noted that this embodiment does not limit the second execution order.
[0097] Optionally, the second execution order can be determined according to the size of the group number of the alarm output group. For example, there are 256 alarm output groups, and the group numbers of the 256 alarm output groups are 1 to 256, then the second execution order is the order of alarm output group 1 to alarm output group 256.
[0098] Optionally, the second execution sequence may be determined according to the priority of the alarm output group. It is understood that the higher the priority of the alarm output group, the higher the order of the alarm output group in the second execution sequence.
[0099] In this implementation, the alarm outputs of the plurality of alarm output groups are processed cyclically according to the second execution sequence, and after completion, the next round of cyclic processing is continued according to the second execution sequence.
[0100] Optionally, the SCADA system alarm processing method provided in this embodiment may further include:
[0101] Display the operation interface;
[0102] At least one of the following information input by the operator in the operation interface is received: the object number of the monitored object, the item number and alarm condition of the alarm item, the group number of the alarm output group, the first corresponding relationship and the second corresponding relationship.
[0103] It should be noted that this embodiment does not limit the layout and contents of the operation interface.
[0104] Optionally, in order to improve the rationality and efficiency of data monitoring and alarm management, multiple number ranges can be divided according to the actual situation of the industrial site and each department, so as to uniformly manage the data and alarms of the same department. Figure 1As shown, it is assumed that the alarm items (also indicated as t) are numbered from 1 to 8000. For department 1 (D1), the alarm items are pre-assigned with item numbers from 1 to 100 (also indicated as t1-t100); for department 2 (D2), the alarm items are pre-assigned with item numbers from 101 to 200 (also indicated as t101-t200), and so on.
[0105] Optionally, the SCADA system alarm processing method provided in this embodiment may further include:
[0106] Receive data query operations from operators;
[0107] In response to the data query operation, a query result of the data query operation is obtained, and the query result is displayed in the operation interface.
[0108] This embodiment does not limit the data to be queried by the data query operation. Optionally, the data query operation is used to query at least one of the following: the object number of the monitored object, the item number and alarm condition of the alarm item, the group number of the alarm output group, the first corresponding relationship and the second corresponding relationship.
[0109] Corresponding to the above method embodiment, Figure 3 Schematic diagram of a SCADA system alarm processing device provided in an embodiment of the present application. Figure 3 As shown, the SCADA system alarm processing device 300 includes:
[0110] An acquisition module 301 is used to acquire real-time data of multiple monitored objects, acquire a first correspondence between the monitored objects and the alarm items, and acquire a second correspondence between the alarm items and the alarm output groups;
[0111] A monitoring data analysis module 302 is used to determine the alarm result of the alarm item based on the first corresponding relationship and the real-time data of the monitoring object corresponding to the alarm item; wherein the alarm result includes requesting an alarm or not requesting an alarm;
[0112] An alarm statistics module 303 is used to obtain the number of alarm requests of the alarm output group and the number of alarm results of the alarm items corresponding to the alarm output group based on the second corresponding relationship;
[0113] The alarm output module 304 is used to determine whether to output an alarm according to the number of alarm requests of the alarm output group.
[0114] Optionally, the acquisition module 301 is further used for:
[0115] Obtaining the item number and alarm condition of the preset alarm item;
[0116] The monitoring data analysis module 302 is used to:
[0117] Obtaining a first execution order of a plurality of the alarm items;
[0118] According to the first execution order, for each of the alarm items, obtaining the real-time data of the monitoring object corresponding to the alarm item based on the first corresponding relationship;
[0119] Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the alarm condition;
[0120] If the alarm condition is met, determining the alarm result of the alarm item as a request for alarm;
[0121] If the alarm condition is not satisfied, the alarm result of the alarm item is determined to be no alarm request.
[0122] Optionally, the alarm condition includes a numerical condition and a delay condition;
[0123] The monitoring data analysis module 302 is used to:
[0124] Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the numerical condition;
[0125] If the numerical condition is met, multiple consecutive alarm results of the alarm item before the current time are obtained;
[0126] Whether the delay condition is met is determined based on the multiple consecutive alarm results.
[0127] Optionally, the monitoring data analysis module 302 is further used for:
[0128] According to the first execution order, for each of the alarm items, determining whether the item number of the alarm item belongs to a first number range;
[0129] If it does not belong to the first numbering range, the data of the alarm output group is cleared and a first prompt message is output; wherein the first prompt message is used to indicate that the item number of the alarm item exceeds the first numbering range.
[0130] Optionally, the alarm statistics module 303 is used to:
[0131] Obtaining a second execution order of a plurality of the alarm output groups;
[0132] According to the second execution order, for each of the alarm output groups, obtaining at least one alarm item corresponding to the alarm output group based on the second corresponding relationship;
[0133] The sum of the number of alarm requests of the alarm output group is obtained according to the alarm results respectively corresponding to the at least one alarm item.
[0134] Optionally, the alarm output module 304 is used to:
[0135] Determine whether the alarm output group is bound to a physical alarm device; the physical alarm device is used to output a light signal or an audio signal;
[0136] If it is determined to bind the physical alarm device, and it is determined that the sum of the number of alarm requests of the alarm output group is greater than 0, an alarm signal is output to the physical alarm device; the alarm signal is used to control the physical alarm device to output a light signal or an audio signal.
[0137] Optionally, the acquisition module 301 is used to:
[0138] The real-time data of the monitored object is obtained by calling at least one of an operating system server data packet, an open database interconnection interface function, and an object connection and embedding interface function.
[0139] Optionally, an interaction module is further included, wherein the interaction module is used to:
[0140] Displaying the operation interface;
[0141] Receive at least one of the following information input by the operator in the operation interface: the object number of the monitored object, the item number and alarm condition of the alarm item, the group number of the alarm output group, the first corresponding relationship, and the second corresponding relationship.
[0142] The SCADA system alarm processing device 300 provided in the embodiment of the present application can be used to execute the SCADA system alarm processing method 200 provided in the aforementioned method embodiment, which belongs to the same concept. The specific content can be found in the description in the aforementioned method embodiment, which will not be repeated here.
[0143] Figure 4 is a schematic diagram of an electronic device provided in an embodiment of the present application. Figure 4 The electronic device 700 provided in the embodiment of the present application includes: a processor 702, a communication interface 704, a memory 706, and a bus 708. Among them:
[0144] The processor 702 , the communication interface 704 , and the memory 706 communicate with each other via a bus 708 .
[0145] The communication interface 704 is used to communicate with other electronic devices or servers.
[0146] The processor 702 is used to execute the program 710, and specifically can execute the relevant steps in the method embodiment.
[0147] Specifically, the program 710 may include program codes, which include computer operation instructions.
[0148] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0149] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0150] The program 710 can be specifically used to enable the processor 702 to execute the method provided by any of the aforementioned method embodiments.
[0151] The specific implementation of each step in program 710 can refer to the corresponding description of the corresponding steps and units in the above method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.
[0152] The present application also provides a computer-readable storage medium storing instructions for causing a machine to execute the SCADA system alarm processing method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0153] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.
[0154] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0155] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0156] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0157] The embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer executable instructions, which, when executed, cause at least one processor to perform the method provided in the above method embodiment. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.
[0158] It should be noted that not all steps and modules in the above-mentioned processes and device structure diagrams are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0159] Nouns and pronouns relating to persons in this patent application are not limited to a specific gender.
[0160] In the above embodiments, the hardware module can be implemented mechanically or electrically. For example, a hardware module can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation. The hardware module can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation. The specific implementation method (mechanical method, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.
[0161] The present application is presented and described in detail above through the accompanying drawings and preferred embodiments; however, the present application is not limited to these disclosed embodiments, and those skilled in the art may know based on the above-mentioned multiple embodiments that the code review methods in the above-mentioned different embodiments may be combined to obtain more embodiments of the present application, and these embodiments are also within the protection scope of the present application.
Claims
1. A SCADA system alarm processing method (200), characterized in that: include: Acquire real-time data of multiple monitored objects, acquire a first corresponding relationship between the monitored objects and the alarm items, and acquire a second corresponding relationship between the alarm items and the alarm output groups; Based on the first corresponding relationship, according to the real-time data of the monitoring object corresponding to the alarm item, determine the alarm result of the alarm item; wherein the alarm result includes requesting an alarm or not requesting an alarm; Based on the second corresponding relationship, according to the alarm result of the alarm item corresponding to the alarm output group, the sum of the number of alarm requests of the alarm output group is obtained; Whether to output an alarm is determined according to the number of alarm requests of the alarm output group.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining the item number and alarm condition of the preset alarm item; The determining, based on the first corresponding relationship and according to the real-time data of the monitoring object corresponding to the alarm item, the alarm result of the alarm item includes: Obtaining a first execution order of a plurality of the alarm items; According to the first execution order, for each of the alarm items, obtaining the real-time data of the monitoring object corresponding to the alarm item based on the first corresponding relationship; Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the alarm condition; If the alarm condition is met, the alarm result of the alarm item is determined to be a request for alarm.
3. The method according to claim 2, characterized in that The alarm conditions include numerical conditions and delay conditions; The determining whether the real-time data of the monitoring object corresponding to the alarm item meets the alarm condition includes: Determine whether the real-time data of the monitoring object corresponding to the alarm item meets the numerical condition; If the numerical condition is met, multiple consecutive alarm results of the alarm item before the current time are obtained; Whether the delay condition is met is determined based on the multiple consecutive alarm results.
4. The method according to claim 2, characterized in that: Before acquiring the real-time data of the monitoring object corresponding to each alarm item based on the first corresponding relationship according to the first execution order, the method further includes: According to the first execution order, for each of the alarm items, determining whether the item number of the alarm item belongs to a first number range; If it does not belong to the first numbering range, the data of the alarm output group is cleared and a first prompt message is output; wherein the first prompt message is used to indicate that the item number of the alarm item exceeds the first numbering range.
5. The method according to any one of claims 1 to 4, characterized in that The obtaining, based on the second corresponding relationship and according to the alarm result of the alarm item corresponding to the alarm output group, the number of times of alarm requests of the alarm output group includes: Obtaining a second execution order of a plurality of the alarm output groups; According to the second execution order, for each of the alarm output groups, obtaining at least one alarm item corresponding to the alarm output group based on the second corresponding relationship; The sum of the number of alarm requests of the alarm output group is obtained according to the alarm results respectively corresponding to the at least one alarm item.
6. The method according to any one of claims 1 to 4, characterized in that The step of determining whether to output an alarm according to the number of alarm requests of the alarm output group includes: Determine whether the alarm output group is bound to a physical alarm device; the physical alarm device is used to output a light signal or an audio signal; If it is determined to bind the physical alarm device, and it is determined that the sum of the number of alarm requests of the alarm output group is greater than 0, an alarm signal is output to the physical alarm device; the alarm signal is used to control the physical alarm device to output a light signal or an audio signal.
7. The method according to any one of claims 1 to 4, characterized in that The obtaining of real-time data of multiple monitoring objects includes: The real-time data of the monitored object is obtained by calling at least one of an operating system server data packet, an open database interconnection interface function, and an object connection and embedding interface function.
8. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Displaying the operation interface; Receive at least one of the following information input by the operator in the operation interface: the object number of the monitored object, the item number and alarm condition of the alarm item, the group number of the alarm output group, the first corresponding relationship, and the second corresponding relationship.
9. A SCADA system alarm processing device (300), characterized in that: include: An acquisition module (301) is used to acquire real-time data of a plurality of monitored objects, acquire a first corresponding relationship between the monitored objects and the alarm items, and acquire a second corresponding relationship between the alarm items and the alarm output groups; A monitoring data analysis module (302) is used to determine the alarm result of the alarm item based on the first corresponding relationship and the real-time data of the monitoring object corresponding to the alarm item; wherein the alarm result includes requesting an alarm or not requesting an alarm; An alarm statistics module (303) is used to obtain the number of alarm requests of the alarm output group and the number of alarm results of the alarm items corresponding to the alarm output group based on the second corresponding relationship; The alarm output module (304) is used to determine whether to output an alarm according to the number of alarm requests of the alarm output group.
10. An electronic device (700), comprising: A processor (702), a communication interface (704), a memory (706) and a bus (708), wherein the processor (702), the communication interface (704) and the memory (706) communicate with each other via the bus (708); The memory (706) is used to store at least one executable instruction, and the executable instruction enables the processor (702) to perform operations corresponding to the method as described in any one of claims 1-8.
11. A computer-readable storage medium having computer instructions stored thereon, wherein when the computer instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 8.
