Voting method, device and equipment based on analog quantity of safety instrument system and medium

By using the 1oo2 algorithm to vote on the original code value of the analog data channel in the safety instrument system, the problem of reduced accuracy of the voting results is solved, the accuracy and speed of the system are improved, and reliable support is provided for security decision-making.

CN119861681APending Publication Date: 2025-04-22CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311370356.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The existing safety instrument system has the problem of reduced accuracy during the voting process, mainly because there may be deviations in the output timing of the two analog data channels, resulting in inaccurate voting results.

Method used

By obtaining the original quality code and the original code values ​​of the two analog data channels, calculate the difference between the two original code values ​​and determine whether they exceed the preset deviation. If it is not exceeded, the 1oo2 algorithm is used to vote on the two original code values, and the 1oo2 voting result is obtained. If the difference exceeds or the quality code is unavailable, the fail-safe value is output.

Benefits of technology

It improves the accuracy and speed of the voting results of the safety instrument system and ensures the reliability of safety decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861681A_ABST
    Figure CN119861681A_ABST
Patent Text Reader

Abstract

The invention provides a voting method, device and equipment based on safety instrument system analog quantity and a medium, and belongs to the field of safety instrument systems. The method comprises the following steps: acquiring original quality codes of two analog quantity data channels and original code values corresponding to the two original quality codes; determining a difference value of the original code values corresponding to the two original quality codes; judging whether the two original quality codes are available or not; when the two original quality codes are both available, whether the difference value of the original code values corresponding to the two original quality codes exceeds a preset deviation or not is judged; and when a difference value of the original code values corresponding to the two original quality codes does not exceed a preset deviation, voting the original code values corresponding to the two original quality codes based on a 1oo2 algorithm to obtain a 1oo2 voting result. The voting result accuracy and voting rapidity of the safety instrument system are improved, and guarantee and support are provided for safety decision making of the safety instrument system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of safety instrument systems, and in particular to a voting method based on analog quantities of safety instrument systems, a voting device based on analog quantities of safety instrument systems, an electronic device and a computer-readable storage medium. Background Art

[0002] In addition to the basic process control system (BPCS), the control system also needs a safety instrumented system (SIS) that meets the functional safety requirements. The safety instrumented system is one of the independent protection layers and is the most commonly used in industrial safety applications. It can be used to monitor potential dangers in industrial processes, issue alarm information in a timely manner, or automatically execute predetermined protection functions. It is the last and most critical layer of active protection. The reasonable design and operation of the system directly affect the safe operation of the device, so it is very important whether its own functions can be realized. In recent years, SIS based on electrical, electronic, and programmable electronic technologies have been adopted. This type of SIS consists of a set of hardware and software, usually using advanced and complex embedded designs.

[0003] Availability is an important indicator for measuring SIS performance. Specifically, it refers to the ability of the product to execute specified or restore functions under specified conditions and at specified times or time intervals, provided that the required external resources are guaranteed. Availability aims to minimize the impact on the business after a system failure (or partial failure). The evaluation of availability can be measured by the mean time to repair (MTTR). SIS systems generally use multiple redundant structures to improve the availability of the system (hardware fault margin), such as 1oo2, 2oo3, etc. These systems take into account both safety and availability, and a single failure will not cause the loss of the safety function of the SIS system.

[0004] The SIS system adopts a dual structure (DMR), and the sampling time of the two channels may be asynchronous, so there may be deviations in the output timing of the two channels. Although the output signals of the two channels are correct individually, the voting results of the two channels may be wrong, which reduces the accuracy of the voting results of the safety instrument system. Summary of the invention

[0005] The purpose of the present invention is to provide a voting method, device, equipment and medium based on analog quantity of a safety instrument system, so as to solve the problem that the voting results of the existing safety instrument system have reduced accuracy.

[0006] In order to achieve the above object, on the one hand, the present invention provides a voting method based on analog quantity of a safety instrument system, wherein the safety instrument system includes two analog quantity data channels, and the method includes:

[0007] Obtaining the original quality codes of two analog data channels and the original code values ​​corresponding to the two original quality codes;

[0008] Determine the difference between the original code values ​​corresponding to the two original quality codes;

[0009] Determine whether two original quality codes are available;

[0010] When both original quality codes are available, determining whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation;

[0011] When the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo2 algorithm to obtain a 1oo2 voting result.

[0012] Preferably, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average value of original code values ​​corresponding to two original quality codes.

[0013] Preferably, the method further comprises:

[0014] When both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation, a fail-safe value is output.

[0015] Preferably, the method further comprises:

[0016] When only one original quality code is available in two analog data channels, determine whether the safety instrumented system supports the 1oo1 algorithm;

[0017] The safety instrument system supports the 1oo1 algorithm. Based on the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted to obtain the 1oo1 voting result.

[0018] Preferably, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to an available original quality code.

[0019] Preferably, the method further comprises:

[0020] Outputs fail-safe values ​​when the safety instrumented system does not support the 1oo1 algorithm.

[0021] On the other hand, a voting device based on analog quantity of a safety instrument system is used to implement the above voting method based on analog quantity of a safety instrument system, and the device comprises:

[0022] An acquisition module, used for acquiring original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes;

[0023] A difference determination module, used to determine the difference between the original code values ​​corresponding to the two original quality codes;

[0024] A first judgment module is used to judge whether two original quality codes are available;

[0025] A second judgment module is used to judge whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation when both original quality codes are available;

[0026] The first voting module is used to vote on the original code values ​​corresponding to the two original quality codes based on the 1oo2 algorithm to obtain a 1oo2 voting result when the difference between the original code values ​​corresponding to the two original quality codes does not exceed a preset deviation.

[0027] Preferably, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average value of original code values ​​corresponding to two original quality codes.

[0028] Preferably, the device further comprises:

[0029] The first output module is used to output a fail-safe value when both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation.

[0030] Preferably, the device further comprises:

[0031] A third judgment module is used to judge whether the safety instrument system supports the 1oo1 algorithm when only one original quality code is available in the two analog data channels;

[0032] The second voting module is used to support the 1oo1 algorithm in the safety instrument system. Based on the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted to obtain the 1oo1 voting result.

[0033] Preferably, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to an available original quality code.

[0034] Preferably, the device further comprises:

[0035] The second output module is used to output a fail-safe value when the safety instrumented system does not support the 1oo1 algorithm.

[0036] On the other hand, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned voting method based on analog quantity of a safety instrument system when executing the computer program.

[0037] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned voting method based on analog quantity of a safety instrumented system when executed by a processor.

[0038] Through the above technical solution, the present invention has at least the following technical effects:

[0039] The present invention can solve the problem of low efficiency and accuracy of voting results of the safety instrument system caused by the asynchronous operation of multiple systems in the prior art, improve the accuracy and rapidity of voting results of the safety instrument system, and provide guarantee and support for safety decision-making of the safety instrument system.

[0040] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0042] Figure 1 It is a flowchart of a voting method based on analog quantity of a safety instrument system provided by an embodiment of the present invention;

[0043] Figure 2 It is a schematic diagram of the voting process of two analog data channels of the safety instrument system;

[0044] Figure 3 It is a complete flow chart of a voting method based on analog quantity of a safety instrument system provided by an embodiment of the present invention;

[0045] Figure 4 The block diagram of a voting device based on analog quantity of a safety instrument system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0048] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0050] Embodiment 1

[0051] Figure 2 This is a schematic diagram of the voting process of the two analog data channels of the safety instrument system, such as Figure 2 As shown, the safety instrument system includes two analog data channels, which are module channel A and module channel B respectively. The analog data channels include the line fault code value, original quality code, original code value and fault status of the channel. The quality code is used to indicate whether the value used in voting is reliable.

[0052] The fault status of this module of each channel includes multiple fault levels. When the original quality code of a channel is not available (that is, the quality code in the voting data is "fault"), the original code value of the channel will not be used during voting, and the fault level corresponding to the channel will be downgraded; when the original quality codes of both channels are available, the fault level will be reduced to the lowest level, and the lowest level is used to characterize that the module of the safety instrument system is in a fault.

[0053] Based on the two analog data channels of the safety instrument system, this embodiment provides a voting method based on analog quantities of the safety instrument system. Figure 1 is a flowchart of a voting method based on analog quantity of a safety instrument system provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0054] Step 101: obtaining original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes;

[0055] Step 102: Determine the difference between the original code values ​​corresponding to the two original quality codes;

[0056] Step 103: determine whether the two original quality codes are available. The original quality code in this embodiment is defined as: 1 indicates that the channel data is available, and 0 indicates that the channel data is unavailable;

[0057] Step 104: when both original quality codes are available, determine whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation. The preset deviation in this embodiment is the safety accuracy of the safety instrument system. The safety accuracy is 1% of the full scale of the safety instrument system. The full scale of the safety instrument system is 20000, that is, the preset deviation is 200.

[0058] Step 105: When the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo2 algorithm to obtain a 1oo2 voting result.

[0059] In this embodiment, when the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the 1oo2 fault-tolerant selection mode is entered. The fault-tolerant selection mode includes determining that the output signals of the two analog data channels are the 1oo2 voting results of the safety instrument system within a preset fault-tolerant time period.

[0060] In this embodiment, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

[0061] As a further optimization of this embodiment, the 1oo2 voting algorithm is shown in Table 1.

[0062] Table 1 1oo2 voting algorithm

[0063]

[0064] In this embodiment, the original code values ​​of the two analog data channels are DataA and DataB, respectively, and the code value DataC (i.e., the 1oo2 voting code value) after 1oo2 voting is the average value of DataA and DataB, and the code value types before and after voting are both two bytes. Assuming that the original code values ​​of the two analog data channels DataA are 10800 and DataB are 11000, the difference between the two original code values ​​is 200, which does not exceed the safety accuracy, so DataC is obtained as the average value of DataA and DataB, i.e., 10900, i.e., Vote(1oo2)Avg(DataA, DataB)=10900.

[0065] In this embodiment, after the 1oo2 voting result is obtained, the 1oo2 voting quality code is outputted at the same time.

[0066] As a further optimization of this embodiment, Figure 3 As shown, the method also includes:

[0067] When both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, a fail-safe value is output; that is, when both original quality codes are unavailable, a fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable); when both original quality codes are available, but the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, it means that the original code values ​​of the two analog data channels do not reach the safety accuracy, then the original quality code is also unavailable, and the two analog data channels are set to fail-safe values, and a fail-safe value is output at the same time (i.e., 0 is output to indicate that the original quality code is unavailable).

[0068] As a further optimization of this embodiment, the method further includes:

[0069] Step a01: when only one original quality code is available in two analog data channels, determine whether the safety instrument system supports the 1oo1 algorithm;

[0070] Step a01: When the safety instrument system supports the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo1 algorithm to obtain the 1oo1 voting result.

[0071] In this embodiment, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

[0072] As a further optimization of this embodiment, the 1oo1 voting algorithm is shown in Table 2.

[0073] Table 2 1oo1 voting algorithm

[0074]

[0075]

[0076] The original code values ​​of the two analog data channels are DataA and DataB respectively. First, the original quality codes of the two analog data channels are checked to see if they are available. When the quality code of only one analog data channel is available, the code value DataC after 1oo1 voting is the original code value of the available analog data channel, and the code value types before and after the voting are both two bytes. Assuming that the code value of analog data channel A is unavailable, that is, DataA is 0 (fail-safe value) and DataB is 11000, the code value after voting is DataC=DataB=10900, that is, Vote(1oo1)(DataB)=11000.

[0077] As a further optimization of this embodiment, the method further includes: when the safety instrument system does not support the 1oo1 algorithm, outputting a fail-safe value. That is, when the original quality code of one of the analog data channels is available but does not support the 1oo1 algorithm, the analog data channel is set to a fail-safe value, indicating that the original quality code is also unavailable; and at the same time, the fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable).

[0078] The present invention can solve the problem of low efficiency and accuracy of voting results of the safety instrument system caused by the asynchronous operation of multiple systems in the prior art, improve the accuracy and rapidity of voting results of the safety instrument system, and provide guarantee and support for safety decision-making of the safety instrument system.

[0079] Embodiment 2

[0080] Figure 4 is a block diagram of a voting device based on analog quantity of a safety instrument system provided by an embodiment of the present invention, such as Figure 4 As shown, based on the same inventive concept as in the first embodiment, this embodiment further provides a voting device based on the analog quantity of a safety instrument system, the device is used to implement the voting method based on the analog quantity of a safety instrument system in the first embodiment, and the device includes:

[0081] An acquisition module, used for acquiring original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes;

[0082] A difference determination module, used to determine the difference between the original code values ​​corresponding to the two original quality codes;

[0083] The first judgment module is used to judge whether two original quality codes are available. The original quality code of this embodiment is defined as: 1 indicates that the channel data is available, and 0 indicates that the channel data is unavailable;

[0084] The second judgment module is used to judge whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation when both original quality codes are available. The preset deviation in this embodiment is the safety accuracy of the safety instrument system. The safety accuracy is 1% of the full scale of the safety instrument system. The full scale of the safety instrument system is 20000, that is, the preset deviation is 200;

[0085] The first voting module is used to vote on the original code values ​​corresponding to the two original quality codes based on the 1oo2 algorithm to obtain a 1oo2 voting result when the difference between the original code values ​​corresponding to the two original quality codes does not exceed a preset deviation.

[0086] In this embodiment, when the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the 1oo2 fault-tolerant selection mode is entered. The fault-tolerant selection mode includes determining that the output signals of the two analog data channels are the 1oo2 voting results of the safety instrument system within a preset fault-tolerant time period.

[0087] In this embodiment, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

[0088] As a further optimization of this embodiment, the 1oo2 voting algorithm is shown in Table 1.

[0089] Table 1 1oo2 voting algorithm

[0090]

[0091] In this embodiment, the original code values ​​of the two analog data channels are DataA and DataB, respectively, and the code value DataC (i.e., the 1oo2 voting code value) after 1oo2 voting is the average value of DataA and DataB, and the code value types before and after voting are both two bytes. Assuming that the original code values ​​of the two analog data channels DataA are 10800 and DataB are 11000, the difference between the two original code values ​​is 200, which does not exceed the safety accuracy, so DataC is obtained as the average value of DataA and DataB, i.e., 10900, i.e., Vote(1oo2)Avg(DataA, DataB)=10900.

[0092] In this embodiment, after the 1oo2 voting result is obtained, the 1oo2 voting quality code is outputted at the same time.

[0093] As a further optimization of this embodiment, the device further includes:

[0094] The first output module is used to output a fail-safe value when both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation.

[0095] That is to say, when both original quality codes are unavailable, a fail-safe value is output (i.e., output 0 to indicate that the original quality code is unavailable); when both original quality codes are available, but the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, it means that the original code values ​​of the two analog data channels do not reach the safety accuracy, then the original quality code is also unavailable, and the two analog data channels are set to fail-safe values, and a fail-safe value is output at the same time (i.e., output 0 to indicate that the original quality code is unavailable).

[0096] As a further optimization of this embodiment, the device further includes:

[0097] A third judgment module is used to judge whether the safety instrument system supports the 1oo1 algorithm when only one original quality code is available in the two analog data channels;

[0098] The second voting module is used to support the 1oo1 algorithm in the safety instrument system. Based on the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted to obtain the 1oo1 voting result.

[0099] In this embodiment, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

[0100] As a further optimization of this embodiment, the 1oo1 voting algorithm is shown in Table 2.

[0101] Table 2 1oo1 voting algorithm

[0102]

[0103] The original code values ​​of the two analog data channels are DataA and DataB respectively. First, the original quality codes of the two analog data channels are checked to see if they are available. When the quality code of only one analog data channel is available, the code value DataC after 1oo1 voting (i.e., 1oo1 voting code value) is the original code value of the available analog data channel, and the code value types before and after the voting are both two bytes. Assuming that the code value of analog data channel A is unavailable, i.e., DataA is 0 (fail-safe value) and DataB is 11000, the code value after voting is DataC=DataB=10900, i.e., Vote(1oo1)(DataB)=11000.

[0104] As a further optimization of this embodiment, the device further includes:

[0105] The second output module is used to output a fail-safe value when the safety instrument system does not support the 1oo1 algorithm. That is, when the original quality code of one of the analog data channels is available but does not support the 1oo1 algorithm, the analog data channel is set to a fail-safe value, which means that the original quality code is also unavailable; and the fail-safe value is output at the same time (that is, 0 is output to indicate that the original quality code is unavailable).

[0106] The present invention can solve the problem of low efficiency and accuracy of voting results of the safety instrument system caused by the asynchronous operation of multiple systems in the prior art, improve the accuracy and rapidity of voting results of the safety instrument system, and provide guarantee and support for safety decision-making of the safety instrument system.

[0107] Embodiment 3

[0108] Based on the same inventive concept as in the first embodiment, this embodiment further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the voting method based on analog quantity of the safety instrument system in the first embodiment when executing the computer program.

[0109] The method comprises:

[0110] Step 101: obtaining original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes;

[0111] Step 102: Determine the difference between the original code values ​​corresponding to the two original quality codes;

[0112] Step 103: determine whether the two original quality codes are available. The original quality code in this embodiment is defined as: 1 indicates that the channel data is available, and 0 indicates that the channel data is unavailable;

[0113] Step 104: when both original quality codes are available, determine whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation. The preset deviation in this embodiment is the safety accuracy of the safety instrument system. The safety accuracy is 1% of the full scale of the safety instrument system. The full scale of the safety instrument system is 20000, that is, the preset deviation is 200.

[0114] Step 105: When the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo2 algorithm to obtain a 1oo2 voting result.

[0115] In this embodiment, when the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the 1oo2 fault-tolerant selection mode is entered. The fault-tolerant selection mode includes determining that the output signals of the two analog data channels are the 1oo2 voting results of the safety instrument system within a preset fault-tolerant time period.

[0116] In this embodiment, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

[0117] As a further optimization of this embodiment, the 1oo2 voting algorithm is shown in Table 1.

[0118] Table 1 1oo2 voting algorithm

[0119]

[0120]

[0121] In this embodiment, the original code values ​​of the two analog data channels are DataA and DataB, respectively, and the code value DataC (i.e., the 1oo2 voting code value) after 1oo2 voting is the average value of DataA and DataB, and the code value types before and after voting are both two bytes. Assuming that the original code values ​​of the two analog data channels DataA are 10800 and DataB are 11000, the difference between the two original code values ​​is 200, which does not exceed the safety accuracy, so DataC is obtained as the average value of DataA and DataB, i.e., 10900, i.e., Vote(1oo2)Avg(DataA, DataB)=10900.

[0122] In this embodiment, after the 1oo2 voting result is obtained, the 1oo2 voting quality code is outputted at the same time.

[0123] As a further optimization of this embodiment, the method further includes:

[0124] When both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, a fail-safe value is output; that is, when both original quality codes are unavailable, a fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable); when both original quality codes are available, but the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, it means that the original code values ​​of the two analog data channels do not reach the safety accuracy, then the original quality code is also unavailable, and the two analog data channels are set to fail-safe values, and a fail-safe value is output at the same time (i.e., 0 is output to indicate that the original quality code is unavailable).

[0125] As a further optimization of this embodiment, the method further includes:

[0126] Step a01: when only one original quality code is available in two analog data channels, determine whether the safety instrument system supports the 1oo1 algorithm;

[0127] Step a01: When the safety instrument system supports the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo1 algorithm to obtain the 1oo1 voting result.

[0128] In this embodiment, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

[0129] As a further optimization of this embodiment, the 1oo1 voting algorithm is shown in Table 2.

[0130] Table 2 1oo1 voting algorithm

[0131]

[0132] The original code values ​​of the two analog data channels are DataA and DataB respectively. First, the original quality codes of the two analog data channels are checked to see if they are available. When the quality code of only one analog data channel is available, the code value DataC after 1oo1 voting is the original code value of the available analog data channel, and the code value types before and after the voting are both two bytes. Assuming that the code value of analog data channel A is unavailable, that is, DataA is 0 (fail-safe value) and DataB is 11000, the code value after voting is DataC=DataB=10900, that is, Vote(1oo1)(DataB)=11000.

[0133] As a further optimization of this embodiment, the method further includes: when the safety instrument system does not support the 1oo1 algorithm, outputting a fail-safe value. That is, when the original quality code of one of the analog data channels is available but does not support the 1oo1 algorithm, the analog data channel is set to a fail-safe value, indicating that the original quality code is also unavailable; and at the same time, the fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable).

[0134] The present invention can solve the problem of low efficiency and accuracy of voting results of the safety instrument system caused by the asynchronous operation of multiple systems in the prior art, improve the accuracy and rapidity of voting results of the safety instrument system, and provide guarantee and support for safety decision-making of the safety instrument system.

[0135] Embodiment 4

[0136] Based on the same inventive concept as the first embodiment, this embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the voting method based on the analog quantity of the safety instrument system of the first embodiment is implemented.

[0137] The method comprises:

[0138] Step 101: obtaining original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes;

[0139] Step 102: Determine the difference between the original code values ​​corresponding to the two original quality codes;

[0140] Step 103: determine whether the two original quality codes are available. The original quality code in this embodiment is defined as: 1 indicates that the channel data is available, and 0 indicates that the channel data is unavailable;

[0141] Step 104: when both original quality codes are available, determine whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation. The preset deviation in this embodiment is the safety accuracy of the safety instrument system. The safety accuracy is 1% of the full scale of the safety instrument system. The full scale of the safety instrument system is 20000, that is, the preset deviation is 200.

[0142] Step 105: When the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo2 algorithm to obtain a 1oo2 voting result.

[0143] In this embodiment, when the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the 1oo2 fault-tolerant selection mode is entered. The fault-tolerant selection mode includes determining that the output signals of the two analog data channels are the 1oo2 voting results of the safety instrument system within a preset fault-tolerant time period.

[0144] In this embodiment, the 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

[0145] As a further optimization of this embodiment, the 1oo2 voting algorithm is shown in Table 1.

[0146] Table 1 1oo2 voting algorithm

[0147]

[0148] In this embodiment, the original code values ​​of the two analog data channels are DataA and DataB, respectively, and the code value DataC (i.e., the 1oo2 voting code value) after 1oo2 voting is the average value of DataA and DataB, and the code value types before and after voting are both two bytes. Assuming that the original code values ​​of the two analog data channels DataA are 10800 and DataB are 11000, the difference between the two original code values ​​is 200, which does not exceed the safety accuracy, so DataC is obtained as the average value of DataA and DataB, i.e., 10900, i.e., Vote(1oo2)Avg(DataA, DataB)=10900.

[0149] In this embodiment, after the 1oo2 voting result is obtained, the 1oo2 voting quality code is outputted at the same time.

[0150] As a further optimization of this embodiment, the method further includes:

[0151] When both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, a fail-safe value is output; that is, when both original quality codes are unavailable, a fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable); when both original quality codes are available, but the difference between the original code values ​​corresponding to the two original quality codes exceeds the preset deviation, it means that the original code values ​​of the two analog data channels do not reach the safety accuracy, then the original quality code is also unavailable, and the two analog data channels are set to fail-safe values, and a fail-safe value is output at the same time (i.e., 0 is output to indicate that the original quality code is unavailable).

[0152] As a further optimization of this embodiment, the method further includes:

[0153] Step a01: when only one original quality code is available in two analog data channels, determine whether the safety instrument system supports the 1oo1 algorithm;

[0154] Step a01: When the safety instrument system supports the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo1 algorithm to obtain the 1oo1 voting result.

[0155] In this embodiment, the 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

[0156] As a further optimization of this embodiment, the 1oo1 voting algorithm is shown in Table 2.

[0157] Table 2 1oo1 voting algorithm

[0158]

[0159] The original code values ​​of the two analog data channels are DataA and DataB respectively. First, the original quality codes of the two analog data channels are checked to see if they are available. When the quality code of only one analog data channel is available, the code value DataC after 1oo1 voting is the original code value of the available analog data channel, and the code value types before and after the voting are both two bytes. Assuming that the code value of analog data channel A is unavailable, that is, DataA is 0 (fail-safe value) and DataB is 11000, the code value after voting is DataC=DataB=10900, that is, Vote(1oo1)(DataB)=11000.

[0160] As a further optimization of this embodiment, the method further includes: when the safety instrument system does not support the 1oo1 algorithm, outputting a fail-safe value. That is, when the original quality code of one of the analog data channels is available but does not support the 1oo1 algorithm, the analog data channel is set to a fail-safe value, indicating that the original quality code is also unavailable; and at the same time, the fail-safe value is output (i.e., 0 is output to indicate that the original quality code is unavailable).

[0161] The present invention can solve the problem of low efficiency and accuracy of voting results of the safety instrument system caused by the asynchronous operation of multiple systems in the prior art, improve the accuracy and rapidity of voting results of the safety instrument system, and provide guarantee and support for safety decision-making of the safety instrument system.

[0162] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0163] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0166] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0167] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0168] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0169] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0170] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A voting method based on analog quantity of a safety instrument system, wherein the safety instrument system includes two analog quantity data channels, characterized in that: The method comprises: Obtaining the original quality codes of two analog data channels and the original code values ​​corresponding to the two original quality codes; Determine the difference between the original code values ​​corresponding to the two original quality codes; Determine whether two original quality codes are available; When both original quality codes are available, determining whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation; When the difference between the original code values ​​corresponding to the two original quality codes does not exceed the preset deviation, the original code values ​​corresponding to the two original quality codes are voted based on the 1oo2 algorithm to obtain a 1oo2 voting result.

2. The method according to claim 1, characterized in that: The 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

3. The method according to claim 1, characterized in that The method further comprises: When both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation, a fail-safe value is output.

4. The method according to claim 1, characterized in that The method further comprises: When only one original quality code is available in two analog data channels, determine whether the safety instrumented system supports the 1oo1 algorithm; The safety instrument system supports the 1oo1 algorithm. Based on the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted to obtain the 1oo1 voting result.

5. The method according to claim 4, characterized in that The 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

6. The method according to claim 4, characterized in that The method further comprises: Outputs fail-safe values ​​when the safety instrumented system does not support the 1oo1 algorithm.

7. A voting device based on analog quantity of safety instrument system, characterized in that: The device comprises: An acquisition module, used for acquiring original quality codes of two analog data channels and original code values ​​corresponding to the two original quality codes; A difference determination module, used to determine the difference between the original code values ​​corresponding to the two original quality codes; A first judgment module is used to judge whether two original quality codes are available; A second judgment module is used to judge whether the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation when both original quality codes are available; The first voting module is used to vote on the original code values ​​corresponding to the two original quality codes based on the 1oo2 algorithm to obtain a 1oo2 voting result when the difference between the original code values ​​corresponding to the two original quality codes does not exceed a preset deviation.

8. The voting device based on analog quantity of safety instrument system according to claim 7 is characterized in that: The 1oo2 voting result includes: a 1oo2 voting quality code and a 1oo2 voting code value corresponding to the 1oo2 voting quality code, and the 1oo2 voting code value is an average of original code values ​​corresponding to two original quality codes.

9. The voting device based on analog quantity of safety instrument system according to claim 7, characterized in that: The device also includes: The first output module is used to output a fail-safe value when both original quality codes are unavailable and / or the difference between the original code values ​​corresponding to the two original quality codes exceeds a preset deviation.

10. The voting device based on analog quantity of safety instrument system according to claim 7, characterized in that: The device also includes: A third judgment module is used to judge whether the safety instrument system supports the 1oo1 algorithm when only one original quality code is available in the two analog data channels; The second voting module is used to support the 1oo1 algorithm in the safety instrument system. Based on the 1oo1 algorithm, the original code values ​​corresponding to the two original quality codes are voted to obtain the 1oo1 voting result.

11. The voting device based on analog quantity of safety instrument system according to claim 10, characterized in that: The 1oo1 voting result includes: a 1oo1 voting quality code and a 1oo1 voting code value corresponding to the 1oo1 voting quality code, and the 1oo1 voting code value is an original code value corresponding to the available original quality code.

12. The voting device based on analog quantity of safety instrument system according to claim 7, characterized in that: The device also includes: The second output module is used to output a fail-safe value when the safety instrumented system does not support the 1oo1 algorithm.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the voting method based on the analog quantity of the safety instrumented system according to any one of claims 1 to 6 is implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the voting method based on analog quantity of a safety instrumented system described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method for evaluating functional safety of safety instrument system

    CN102034025A

  • Voting method and device for dual-channel safety instrument system

    CN115185225A