CN113687622B - Dynamic alarm method, system, equipment and storage medium based on logic function block - Google Patents

Dynamic alarm method, system, equipment and storage medium based on logic function block Download PDF

Info

Publication number
CN113687622B
CN113687622B CN202111244150.3A CN202111244150A CN113687622B CN 113687622 B CN113687622 B CN 113687622B CN 202111244150 A CN202111244150 A CN 202111244150A CN 113687622 B CN113687622 B CN 113687622B
Authority
CN
China
Prior art keywords
alarm
logic function
function block
measuring point
dynamic
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.)
Active
Application number
CN202111244150.3A
Other languages
Chinese (zh)
Other versions
CN113687622A (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.)
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
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 NR Electric Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202111244150.3A priority Critical patent/CN113687622B/en
Publication of CN113687622A publication Critical patent/CN113687622A/en
Application granted granted Critical
Publication of CN113687622B publication Critical patent/CN113687622B/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

Abstract

The invention provides a dynamic alarm method, a system, equipment and a storage medium based on a logic function block, comprising the following steps: linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information; and judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm. The method avoids the operation of directly writing the alarm limit value into the measuring point channel, ensures the data safety at the measuring point and further improves the stability and the safety of the system.

Description

Dynamic alarm method, system, equipment and storage medium based on logic function block
Technical Field
The invention belongs to the technical field of electric signal processing, and particularly relates to a dynamic alarm method, a dynamic alarm system, dynamic alarm equipment and a storage medium based on a logic function block.
Background
With the rapid development of the industrial automation industry, a Distributed Control System (DCS for short) is widely used in the thermal power industry. The thermal power control process is complex and fine, so that the requirements on the stability and the reliability of the distributed control system are higher, in order to improve the system reliability, the distributed control system is used for processing and alarming collected field data (IO measuring points), the monitoring and alarming function of the IO measuring points is particularly important for the whole system, and the monitoring IO measuring point alarming function of the lower computer is particularly important for the whole system.
In the existing lower computer, the alarm mode of the IO measurement point can only be static alarm, that is, the alarm limit value is static and unchanged, if the alarm limit value needs to be changed, the IO measurement point channel of the upper computer tool needs to be configured, the alarm limit value can be changed after the configuration file is downloaded to the lower computer, frequent modification of the alarm limit value under static alarm needs frequent download operation to the lower computer, further frequent disturbance to the system is not beneficial to stable operation of the system, and under static alarm, the alarm limit value can only be a specific value during configuration, and cannot be flexible logic output. However, the current application scenario of the thermal power plant requires that the alarm limit value in the alarm function is not only fixed but also dynamically changes with the period.
Disclosure of Invention
In order to overcome the problems in the prior art, the invention aims to provide a dynamic alarm method, a dynamic alarm system, a dynamic alarm device and a storage medium based on a logic function block, wherein the method can monitor the real-time value of an IO measuring point at the logic function block of an analog quantity dynamic alarm device and generate real-time alarm information according to a dynamic alarm limit value.
In order to achieve the purpose, the invention adopts the following technical scheme:
a dynamic alarm method based on logic function blocks comprises the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
and judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm.
As a further improvement of the present invention, the linking of the analog dynamic alarm logic function block with the IO measurement point which is expected to generate dynamic alarm information specifically includes:
after the label names of IO measuring points are input at the source end measuring point name parameters of the parameter items of the analog dynamic alarm logic function block, the related information of the IO measuring points can be indexed, and then the successful link of the upper computer is judged;
after the upper computer is successfully linked, alarm upper and lower limit input values are configured at the analog quantity dynamic alarm logic function block, the alarm upper and lower limit input values of the analog quantity dynamic alarm logic function block are input and configured at the input items, or the output items of other logic function blocks are connected to the input positions of the analog quantity dynamic alarm logic function block;
loading the POU page after the link configuration, and acquiring the address of the first data corresponding to the IO measuring point in the POU page in the memory according to the relevant information of the IO measuring point stored in the logic function block of the analog dynamic alarm and the IO class instruction type corresponding to the data type of the IO measuring point; and comparing and checking the instruction type stored at the head data of the IO measuring point with the instruction type corresponding to the data type of the IO measuring point, and if the instruction type stored at the head data of the IO measuring point belongs to the instruction type corresponding to the data type of the IO measuring point, judging that the lower computer is successfully linked.
As a further improvement of the invention, the relevant information of the IO measurement point comprises a page number, a station number, a branch number and a slot number of the POU where the IO measurement point is located.
As a further improvement of the present invention, after the determining the link failure, the method further includes:
and setting the quality of the output parameter of the analog quantity dynamic alarm logic function block as a non-reference source end, uploading the quality to a tool end, and displaying the color of the analog quantity dynamic alarm logic function block by the corresponding tool end.
As a further improvement of the present invention, the determining the alarm state value at the IO measurement point specifically includes:
after the logical function block of the analog quantity dynamic alarm is successfully linked with the IO measuring point, acquiring address information of head data of the IO measuring point, acquiring an alarm state value configured at the IO measuring point according to a relative offset value of the alarm state value configured at the IO measuring point from the head data of the IO measuring point, and when the alarm state value configured at the IO measuring point is not alarming or static alarming, prompting that the alarming fails and quitting subsequent judgment by the logical function block of the analog quantity dynamic alarm; and when the alarm state value configured at the IO measuring point is dynamic alarm, the logic function block continues to process alarm information.
As a further improvement of the present invention, when the alarm state value at the IO measurement point is a dynamic alarm, the method specifically includes:
acquiring alarm limit values of the analog dynamic alarm logic function blocks, and acquiring each alarm limit value in a data area corresponding to the analog dynamic alarm logic function blocks when the alarm limit values are directly input in the analog dynamic alarm logic function blocks;
when the alarm limit value of the analog dynamic alarm logic function block is the output item of other logic function blocks, the data area of the analog dynamic alarm logic function block stores the relative offset value of the output item of other logic function blocks relative to the input item in the data area, the output items of other logic function blocks are directly obtained in the data area of other logic function blocks through the relative offset value, and the output values of other logic function blocks are assigned to the corresponding alarm limit values of the analog dynamic alarm logic function block;
when the alarm limit value of the analog dynamic alarm logic function block refers to the output items of the logic function blocks in other POU pages, the alarm limit value is acquired according to the page number of the referred POU page and the relative deviation value of the output value of the referred logic function block in the data area of the POU page; wherein the relative offset value of the output value of the cited logic function block in the data area of the POU page is obtained by traversing the instance name of the logic function block in the POU page corresponding to the POU page number, and the traversing process is as follows: and if the instance name of the logic function block is equal to that of the logic function block in all the logic function blocks in the POU page, acquiring a relative offset value of the data stored in the data area by the logic function block.
As a further improvement of the present invention, the generating of the dynamic alarm information at the analog dynamic alarm logic function block specifically includes:
when the alarm state value configured at the IO measuring point is dynamic alarm, the analog dynamic alarm logic function block acquires the real-time value of the IO measuring point in real time through the acquired head data address of the IO measuring point and the relative offset value of the real-time value of the IO measuring point from the head data address, and judges whether the real-time value of the IO measuring point exceeds the alarm limit value of the analog dynamic alarm logic function block or not;
if the analog quantity dynamic alarm exceeds the preset threshold value, generating alarm information at the logic function block of the analog quantity dynamic alarm and pressing the alarm information into an alarm queue stored in the controller;
and after the press-in is successful, the controller uploads the alarm information to the upper computer.
A logical function block based dynamic alarm system comprising:
the link module is used for linking the analog dynamic alarm logic function block with an IO measuring point expected to generate dynamic alarm information;
and the dynamic alarm module is used for judging the alarm state value at the IO measuring point, and when the alarm state value at the IO measuring point is dynamic alarm, generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm.
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 logical function block based dynamic alerting method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the logical function block based dynamic alerting method.
Compared with the prior art, the invention has the beneficial effects that:
the existing system stipulates that only static alarms can be generated at IO measuring points, only dynamic alarms can be generated at logic function blocks, engineering personnel can mutually match the logic function blocks of the analog quantity dynamic alarm and the IO measuring points at the same moment after alarm types are configured at the IO measuring points, only alarm information can be generated at one position, and other dynamic alarm methods are used, so that IO measuring point information displayed at a point directory of an upper computer is not matched with upper and lower alarm limits in an alarm frame of the upper computer sometimes. By using the method, the point directory of the upper computer marks the alarm state at the IO measuring point, the alarm state is the upper and lower alarm limits at the IO measuring point when static alarm is performed, the alarm state is the upper and lower alarm limits at the logic function block of the analog quantity dynamic alarm when dynamic alarm is performed, and the stored current alarm state can be cleared when the alarm state changes, so that the alarm information presented by the upper computer has more logicality and orderliness; meanwhile, real-time values at IO measuring points can be quoted in real time according to the information of the IO measuring points stored in the logic function block of the analog dynamic alarm, and the same alarm information as the IO measuring points is generated according to the upper limit and the lower limit of the logic function block of the analog dynamic alarm, so that the operation of directly writing alarm limit values into measuring point channels is avoided. The analog dynamic alarm logic function block can timely acquire the alarm types configured at the IO measuring points and select whether to alarm or not according to the alarm types at the IO measuring points. The data safety at the measuring point is ensured, and the stability and the safety of the system are further improved; meanwhile, the alarm limit value of the analog dynamic alarm logic function block can be flexibly set, can be an input value, can be an output value of other logic blocks, and even can be a logic output value under the combination of a plurality of logic function blocks, so that the complex process requirements are met.
Drawings
FIG. 1 is a flow chart of a dynamic alarm method based on logic function blocks according to the present invention;
FIG. 2 is a schematic diagram of a dynamic alarm system based on logic function blocks according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to the present 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 present invention provides a dynamic alarm method based on a logic function block, which specifically includes the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
and judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm.
The logic function block is specifically an analog quantity dynamic alarm logic function block.
By using the method, the point directory of the upper computer marks the alarm state at the IO measuring point, the alarm state is the upper and lower alarm limits at the IO measuring point when static alarm is performed, the alarm state is the upper and lower alarm limits at the logic function block of the analog quantity dynamic alarm when dynamic alarm is performed, and the stored current alarm state word can be emptied when the alarm state value changes, so that the alarm information presented by the upper computer has more logicality and orderliness; meanwhile, real-time values at IO measuring points can be quoted in real time according to the information of the IO measuring points stored in the logic function block of the analog dynamic alarm, and alarm information which is the same as that at the IO measuring points is generated according to the upper limit and the lower limit of the logic function block of the analog dynamic alarm, so that the operation of directly writing the alarm limit values into measuring point channels is avoided, the data safety at the measuring points is ensured, and the stability and the safety of the system are further improved.
The method comprises the steps that an analog quantity dynamic alarm logic function block judges alarm configuration at an IO measuring point before processing alarm information, only when dynamic alarm is allowed at the IO measuring point, the analog quantity dynamic alarm logic function block processes real-time alarm information according to dynamic alarm limit values and generates alarm information completely consistent with the IO measuring point alarm information, and after a controller sends the alarm information to an upper computer, the upper computer does not need to judge whether the alarm information is static or dynamic, and only needs to analyze and display according to the same analysis method.
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
A dynamic alarm method based on logic function blocks comprises the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
the specific steps of linking the analog quantity dynamic alarm logic function block with the IO measuring point expected to generate dynamic alarm information comprise:
after the label names of the IO measuring points are input at the source end measuring point name parameters of the parameter items of the analog quantity dynamic alarm logic function block, the upper computer is judged to be successfully linked by indexing the relevant information of the IO measuring points, wherein the relevant information comprises the page number, the station number, the branch number and the slot number of the POU where the IO measuring points are located;
the parameters contained in the logic function block of the analog quantity dynamic alarm comprise:
the Enable parameter (Enable) is a Boolean quantity;
the 6 input limit values are respectively low-low limit, high-high limit and floating point number;
source end measurement point name of IO measurement point: a character string type;
and (3) related information of IO measuring points: the POU monitoring system comprises a POU page number, a station number, a branch number and a slot number where an IO measuring point is located.
The IO measurement point comprises a plurality of data, and the initial data refers to the first data in the plurality of data. The relative offset value refers to the distance between two data.
The information of the IO measuring points comprises label names of the IO measuring points, source end page numbers, branch numbers, slot numbers and channel numbers of the IO measuring points, the length of the label names of the IO measuring points is smaller than 20, the source end page numbers of the IO measuring points are smaller than 1364, the branch numbers (smaller than 6) and the slot numbers (smaller than 10), alarm upper and lower limit input values are configured at a logic function block of the analog quantity dynamic alarm after instruction types (whether the instruction types of the IO measuring points belong to the instruction types) stored at the head data are successfully linked, the alarm upper and lower limit input values of the logic function block of the analog quantity dynamic alarm can be input and configured at input items of the input values, and output items of other logic function blocks can also be connected to input positions of the logic function block of the analog quantity dynamic alarm. Downloading a POU (Program organization unit) after link configuration, acquiring the address of the first data of the IO measuring point in the POU page in the memory according to the related information of the IO measuring point stored in the logic function block of the analog dynamic alarm and the IO type instruction type corresponding to the data type of the IO measuring point, comparing and checking the instruction type stored at the first data of the IO measuring point and the instruction type corresponding to the data type of the IO measuring point, and judging that the lower computer is successfully linked if the instruction type corresponding to the data type of the IO measuring point is the same as the instruction type stored at the first data of the IO measuring point.
When the data type of the IO measuring point is a floating point type, the corresponding instruction types comprise a hard point floating point type belt alarm channel instruction, a communication point floating point type belt alarm instruction channel and a soft point floating point type belt alarm channel; when the data type of the IO measuring point is Boolean type, the corresponding instruction types comprise a hard point Boolean type belt alarm channel instruction, a communication point Boolean type belt alarm instruction channel and a soft point Boolean type belt alarm channel; when the data type of the IO measuring point is integer, the corresponding instruction types comprise a hard point integer type instruction with an alarm channel, a communication point integer type instruction channel with an alarm, and a soft point integer type channel with an alarm.
Wherein, still include after judging the link failure:
the quality of the analog quantity dynamic alarm logic function block is set as a non-reference source end and is sent to a tool end, and the corresponding tool end displays the analog quantity dynamic alarm logic function block in red, wherein the red can also be displayed in other striking colors to prove that the analog quantity dynamic alarm logic function block and the tool end are in failure to be linked in the controller.
And judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm.
Preferably, the determining the alarm state value at the IO measurement point specifically includes:
the method comprises the steps that after an analog quantity dynamic alarm logic function block is successfully linked with an IO measuring point, address information of head data of the IO measuring point can be obtained, an alarm state value configured at the IO measuring point is obtained according to a relative offset value of the alarm state value from the head data of the IO measuring point, and when the alarm state value configured at the measuring point is a non-alarm or static alarm, the analog quantity dynamic alarm logic function block prompts alarm failure and quits subsequent judgment; and only when the alarm state value configured at the IO measuring point is a dynamic alarm, the logic function block can continuously process the alarm information.
For example: the relative deviation value of the hard point class IO measuring point and the communication point class IO measuring point is 7, and the relative deviation value of the soft point class IO measuring point is 6.
Preferably, when the alarm state value at the measurement point is a dynamic alarm, the method specifically includes:
acquiring alarm limit values of the analog dynamic alarm logic function blocks, acquiring each alarm limit value in a data area of the analog dynamic alarm logic function blocks when the alarm limit values are directly input in the analog dynamic alarm logic function blocks, storing relative offset values of output items of other logic function blocks in the data area relative to the input items of the logic function blocks when the alarm limit values of the analog dynamic alarm logic function blocks are output items of other logic function blocks in the data area of the analog dynamic alarm logic function blocks, directly acquiring the output items of other logic function blocks through the relative offset values, and assigning the values of the output items of other logic function blocks to the corresponding alarm limit values of the analog dynamic alarm logic function blocks; when the alarm limit value of the analog dynamic alarm logic function block refers to the output items of the logic function blocks in other POU pages, the alarm limit value is acquired in the relative offset value of the data area by adding the output value of the referred logic function block with the page number of the referred POU page, and the output value of the referred logic function block in the relative offset value of the data area is acquired by traversing the instance name of the logic function block in the POU page corresponding to the POU page number; the traversal process is as follows: and if the instance name of the logic function block is equal to that of the logic function block in all the logic function blocks in the POU page, acquiring a relative offset value of the data stored in the data area by the logic function block.
Preferably, the generating of the alarm information specifically includes:
when the alarm state value configured at the IO measuring point is a dynamic alarm, the analog dynamic alarm logic function block acquires an IO measuring point real-time value in real time through the acquired head data address of the IO measuring point and a relative offset value of the real-time value of the IO measuring point from the head data address, judges whether the IO measuring point real-time value exceeds the alarm limit value of the analog dynamic alarm logic function block, if so, generates alarm information at the analog dynamic alarm logic function block and presses the alarm information into an alarm queue stored in the controller, and if the alarm state value configured at the IO measuring point is a static alarm, when the real-time value of the IO measuring point exceeds the alarm limit value at the IO measuring point, generates alarm information at the IO measuring point and presses the alarm information into the alarm queue stored in the controller; and after the press-in is successful, the controller uploads the alarm information to the upper computer.
For example: the relative offset values of the hard point IO measuring point, the communication point IO measuring point and the soft point IO measuring point are all 1.
As shown in fig. 2, another object of the present invention is to provide a dynamic alarm system based on logic function blocks, which includes:
the link module is used for linking the analog dynamic alarm logic function block with an IO measuring point expected to generate dynamic alarm information;
and the dynamic alarm module is used for judging the alarm state value at the IO measuring point, and when the alarm state value at the IO measuring point is dynamic alarm, generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm.
A third object of the present invention is to provide an electronic device, as shown in fig. 3, including 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 dynamic alarm method based on logic function blocks when executing the computer program.
In fig. 3, the communication interface is used to access an external device to obtain data.
The dynamic alarm method based on the logic function block comprises the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
and judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm.
It is a fourth object of the present invention to provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the logical function block based dynamic alerting method.
The dynamic alarm method based on the logic function block comprises the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
and judging the alarm state value at the IO measuring point, and generating dynamic alarm information at the logic function block of the analog quantity dynamic alarm when the alarm state value at the IO measuring point is dynamic alarm.
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 (6)

1. A dynamic alarm method based on a logic function block is characterized by comprising the following steps:
linking the logic function block of the analog dynamic alarm with IO measuring points expected to generate dynamic alarm information;
judging an alarm state value at an IO test point, and generating dynamic alarm information at a logic function block of the analog quantity dynamic alarm when the alarm state value at the IO test point is dynamic alarm;
the method for linking the analog quantity dynamic alarm logic function block with the IO measuring point expected to generate dynamic alarm information specifically comprises the following steps:
after the label names of IO measuring points are input at the source end measuring point name parameters of the parameter items of the analog dynamic alarm logic function block, the related information of the IO measuring points can be indexed, and then the successful link of the upper computer is judged;
after the upper computer is successfully linked, alarm upper and lower limit input values are configured at the analog quantity dynamic alarm logic function block, the alarm upper and lower limit input values of the analog quantity dynamic alarm logic function block are input and configured at the input items, or the output items of other logic function blocks are connected to the input positions of the analog quantity dynamic alarm logic function block;
loading the POU page after the link configuration, and acquiring the address of the first data corresponding to the IO measuring point in the POU page in the memory according to the relevant information of the IO measuring point stored in the logic function block of the analog dynamic alarm and the IO class instruction type corresponding to the data type of the IO measuring point; comparing and checking the instruction type stored at the head data of the IO measuring point with a class of instruction type corresponding to the data type of the IO measuring point, and if the instruction type stored at the head data of the IO measuring point belongs to the class of instruction type corresponding to the data type of the IO measuring point, judging that the lower computer is successfully linked;
the judging of the alarm state value at the IO measurement point specifically includes:
after the logical function block of the analog quantity dynamic alarm is successfully linked with the IO measuring point, acquiring address information of head data of the IO measuring point, acquiring an alarm state value configured at the IO measuring point according to a relative offset value of the alarm state value configured at the IO measuring point from the head data of the IO measuring point, and when the alarm state value configured at the IO measuring point is not alarming or static alarming, prompting that the alarming fails and quitting subsequent judgment by the logical function block of the analog quantity dynamic alarm; when the alarm state value configured at the IO measuring point is a dynamic alarm, the logic function block continues to process alarm information;
when the alarm state value at the IO measurement point is a dynamic alarm, the method specifically includes:
acquiring alarm limit values of the analog dynamic alarm logic function blocks, and acquiring each alarm limit value in a data area corresponding to the analog dynamic alarm logic function blocks when the alarm limit values are directly input in the analog dynamic alarm logic function blocks;
when the alarm limit value of the analog dynamic alarm logic function block is the output item of other logic function blocks, the data area of the analog dynamic alarm logic function block stores the relative offset value of the output item of other logic function blocks relative to the input item in the data area, the output items of other logic function blocks are directly obtained in the data area of other logic function blocks through the relative offset value, and the output values of other logic function blocks are assigned to the corresponding alarm limit values of the analog dynamic alarm logic function block;
when the alarm limit value of the analog dynamic alarm logic function block refers to the output items of the logic function blocks in other POU pages, the alarm limit value is acquired according to the page number of the referred POU page and the relative deviation value of the output value of the referred logic function block in the data area of the POU page; wherein the relative offset value of the output value of the cited logic function block in the data area of the POU page is obtained by traversing the instance name of the logic function block in the POU page corresponding to the POU page number, and the traversing process is as follows: if the instance names of all the logic function blocks in the POU page are equal to the instance names of the logic function blocks, acquiring the relative offset value of the data stored in the data area by the logic function blocks;
the generating of the dynamic alarm information at the analog dynamic alarm logic function block specifically includes:
when the alarm state value configured at the IO measuring point is dynamic alarm, the analog dynamic alarm logic function block acquires the real-time value of the IO measuring point in real time through the acquired head data address of the IO measuring point and the relative offset value of the real-time value of the IO measuring point from the head data address, and judges whether the real-time value of the IO measuring point exceeds the alarm limit value of the analog dynamic alarm logic function block or not;
if the analog quantity dynamic alarm exceeds the preset threshold value, generating alarm information at the logic function block of the analog quantity dynamic alarm and pressing the alarm information into an alarm queue stored in the controller;
and after the press-in is successful, the controller uploads the alarm information to the upper computer.
2. The dynamic alarm method based on logic function block as claimed in claim 1, wherein:
the related information of the IO measuring point comprises a POU page number, a station number, a branch number and a slot number of the IO measuring point.
3. The dynamic alarm method based on logic function block as claimed in claim 1, wherein:
after the link failure is judged, the method further comprises the following steps:
and setting the quality of the output parameter of the analog quantity dynamic alarm logic function block as a non-reference source end, uploading the quality to a tool end, and displaying the color of the analog quantity dynamic alarm logic function block by the corresponding tool end.
4. A dynamic alarm system based on logic function blocks, comprising:
the link module is used for linking the analog dynamic alarm logic function block with an IO measuring point expected to generate dynamic alarm information;
the dynamic alarm module is used for judging the alarm state value at the IO test point, and when the alarm state value at the IO test point is dynamic alarm, dynamic alarm information is generated at the logic function block of the analog quantity dynamic alarm;
the method for linking the analog quantity dynamic alarm logic function block with the IO measuring point expected to generate dynamic alarm information specifically comprises the following steps:
after the label names of IO measuring points are input at the source end measuring point name parameters of the parameter items of the analog dynamic alarm logic function block, the related information of the IO measuring points can be indexed, and then the successful link of the upper computer is judged;
after the upper computer is successfully linked, alarm upper and lower limit input values are configured at the analog quantity dynamic alarm logic function block, the alarm upper and lower limit input values of the analog quantity dynamic alarm logic function block are input and configured at the input items, or the output items of other logic function blocks are connected to the input positions of the analog quantity dynamic alarm logic function block;
loading the POU page after the link configuration, and acquiring the address of the first data corresponding to the IO measuring point in the POU page in the memory according to the relevant information of the IO measuring point stored in the logic function block of the analog dynamic alarm and the IO class instruction type corresponding to the data type of the IO measuring point; comparing and checking the instruction type stored at the head data of the IO measuring point with a class of instruction type corresponding to the data type of the IO measuring point, and if the instruction type stored at the head data of the IO measuring point belongs to the class of instruction type corresponding to the data type of the IO measuring point, judging that the lower computer is successfully linked;
the judging of the alarm state value at the IO measurement point specifically includes:
after the logical function block of the analog quantity dynamic alarm is successfully linked with the IO measuring point, acquiring address information of head data of the IO measuring point, acquiring an alarm state value configured at the IO measuring point according to a relative offset value of the alarm state value configured at the IO measuring point from the head data of the IO measuring point, and when the alarm state value configured at the IO measuring point is not alarming or static alarming, prompting that the alarming fails and quitting subsequent judgment by the logical function block of the analog quantity dynamic alarm; when the alarm state value configured at the IO measuring point is a dynamic alarm, the logic function block continues to process alarm information;
when the alarm state value at the IO measurement point is a dynamic alarm, the method specifically includes:
acquiring alarm limit values of the analog dynamic alarm logic function blocks, and acquiring each alarm limit value in a data area corresponding to the analog dynamic alarm logic function blocks when the alarm limit values are directly input in the analog dynamic alarm logic function blocks;
when the alarm limit value of the analog dynamic alarm logic function block is the output item of other logic function blocks, the data area of the analog dynamic alarm logic function block stores the relative offset value of the output item of other logic function blocks relative to the input item in the data area, the output items of other logic function blocks are directly obtained in the data area of other logic function blocks through the relative offset value, and the output values of other logic function blocks are assigned to the corresponding alarm limit values of the analog dynamic alarm logic function block;
when the alarm limit value of the analog dynamic alarm logic function block refers to the output items of the logic function blocks in other POU pages, the alarm limit value is acquired according to the page number of the referred POU page and the relative deviation value of the output value of the referred logic function block in the data area of the POU page; wherein the relative offset value of the output value of the cited logic function block in the data area of the POU page is obtained by traversing the instance name of the logic function block in the POU page corresponding to the POU page number, and the traversing process is as follows: if the instance names of all the logic function blocks in the POU page are equal to the instance names of the logic function blocks, acquiring the relative offset value of the data stored in the data area by the logic function blocks;
the generating of the dynamic alarm information at the analog dynamic alarm logic function block specifically includes:
when the alarm state value configured at the IO measuring point is dynamic alarm, the analog dynamic alarm logic function block acquires the real-time value of the IO measuring point in real time through the acquired head data address of the IO measuring point and the relative offset value of the real-time value of the IO measuring point from the head data address, and judges whether the real-time value of the IO measuring point exceeds the alarm limit value of the analog dynamic alarm logic function block or not;
if the analog quantity dynamic alarm exceeds the preset threshold value, generating alarm information at the logic function block of the analog quantity dynamic alarm and pressing the alarm information into an alarm queue stored in the controller;
and after the press-in is successful, the controller uploads the alarm information to the upper computer.
5. 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 logical function block based dynamic alerting method of any one of claims 1-3 when executing the computer program.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the logical function block based dynamic alerting method of any one of claims 1-3.
CN202111244150.3A 2021-10-26 2021-10-26 Dynamic alarm method, system, equipment and storage medium based on logic function block Active CN113687622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111244150.3A CN113687622B (en) 2021-10-26 2021-10-26 Dynamic alarm method, system, equipment and storage medium based on logic function block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111244150.3A CN113687622B (en) 2021-10-26 2021-10-26 Dynamic alarm method, system, equipment and storage medium based on logic function block

Publications (2)

Publication Number Publication Date
CN113687622A CN113687622A (en) 2021-11-23
CN113687622B true CN113687622B (en) 2022-02-01

Family

ID=78587894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111244150.3A Active CN113687622B (en) 2021-10-26 2021-10-26 Dynamic alarm method, system, equipment and storage medium based on logic function block

Country Status (1)

Country Link
CN (1) CN113687622B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7612661B1 (en) * 2006-09-29 2009-11-03 Rockwell Automation Technologies, Inc. Dynamic messages
WO2020132799A1 (en) * 2018-12-24 2020-07-02 深圳迈瑞生物医疗电子股份有限公司 Method and apparatus for setting alarm limit value for monitoring device
CN110769068A (en) * 2019-10-30 2020-02-07 软通动力信息技术有限公司 Method, device, server and storage medium for generating alarm message
CN111142493A (en) * 2020-01-10 2020-05-12 汉威科技集团股份有限公司 Heterogeneous data acquisition device and method for industrial safety supervision
CN113485281B (en) * 2021-09-07 2021-11-26 西安热工研究院有限公司 Method and system for generating measuring point alarm and reset information in background of distributed control system

Also Published As

Publication number Publication date
CN113687622A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
EP3101547A1 (en) Control system, method, program and information processing device
CN107924173B (en) Monitoring device, monitoring system, and computer-readable storage medium
CN109523752B (en) Equipment fault early warning method and device, electronic equipment and medium
EP3432463B1 (en) Motor control system, motor control device, program and recording medium
US20180275631A1 (en) Control system, control device, and control method
CN107984471B (en) Method and device for determining working state of robot and robot
CN113687622B (en) Dynamic alarm method, system, equipment and storage medium based on logic function block
CN109815124B (en) MBSE-based interlocking function defect analysis method and device and interlocking system
CN114327765A (en) Server testing method and device based on Docker virtual container
CN103593429B (en) Commodity template failure detection method and device
JP6096874B1 (en) State change management system for manufacturing cell in cell control system
CN116843107A (en) Building information intelligent management system based on BIM technology
CN116520156A (en) Battery pack detection system and method
CN114638096A (en) Method, device and equipment for displaying logic among program variables and storage medium
CN111625410A (en) Information processing method, device and computer storage medium
CN112348211B (en) Process diagnosis method, device, equipment and medium
US11092945B2 (en) Control device, control method, and non-transitory storage medium storing control program
CN109361192B (en) Terminal equipment, and constant value modification method and device
CN113901849A (en) Intelligent material detection method and system
KR101916771B1 (en) Method for managing a monitoring apparatus
CN110674573A (en) Method, device and storage medium for simulating hardware work in MES system
US20230176559A1 (en) Data management device and data management method
CN114487758B (en) Test method and test system for semiconductor equipment
CN113741410B (en) Distributed control system debugging data refreshing method and system
WO2023281732A1 (en) Analysis device

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