A functional safety digital input module and its diagnostic method

By employing a 1oo2 dual-channel redundant architecture and comparator sampling technology, the single-point fault tolerance problem of digital input channels in petrochemical safety instrument systems has been solved, achieving high availability and high security, meeting the SIL3 level of the IEC61508 standard, and eliminating safety hazards caused by optocoupler aging.

CN123113283APending Publication Date: 2026-11-17BEIJING CONSEN AUTOMATION CONTROL
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611226448.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The existing petrochemical safety instrumented system (SIS) digital input channels suffer from incomplete channel diagnostic coverage, inability to predict device aging defects, and inability to effectively avoid safety hazards caused by optocoupler aging. This results in zero hardware fault margin, inability to achieve single-point fault tolerance, and poor channel availability.

Method used

Employing a 1oo2 dual-channel redundant architecture and comparator sampling technology, and using signal voltage division, diagnostic isolation, and level conversion circuits, combined with a microcontroller for inter-channel comparison and readback diagnosis, it achieves single-point fault tolerance and eliminates safety hazards caused by optocoupler aging.

Benefits of technology

It achieves high availability, high security and high diagnostic coverage, meets the SIL3 level requirements of IEC61508 standard, reduces the risk of signal misjudgment caused by optocoupler aging, and improves the availability and diagnostic coverage of the channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123113283A_ABST
    Figure CN123113283A_ABST
Patent Text Reader

Abstract

This invention proposes a functionally safe digital input module and diagnostic method, belonging to the field of industrial control technology. The module includes a signal input circuit and A-series and B-series processing channels. The signal input circuit divides the external digital input signal into two paths, which are respectively sent to the independent A-series and B-series processing channels. Each processing channel includes a signal acquisition circuit, a diagnostic isolation circuit, a level conversion circuit, and a microcontroller connected in sequence. The level conversion circuit uses a comparator to compare the acquired signal with a reference voltage to output a logic level. The microcontroller reads the received logic level and outputs a diagnostic control signal to the diagnostic control circuit to perform readback diagnosis of its own channel. This invention uses a 1002 redundant architecture and a comparator to replace the optocoupler, avoiding the risk of misjudgment caused by optocoupler aging, realizing inter-channel comparison and independent readback diagnosis, improving the system's safety, availability, and diagnostic coverage, and meeting SIL3 safety level requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial control and automation technology, and particularly relates to a functional safety digital input module and diagnostic method. Background Technology

[0002] The digital input (DI) channels of existing petrochemical safety instrumented systems (SIS) generally suffer from problems such as incomplete channel diagnostic coverage and inability to predict device aging defects.

[0003] Traditional processing solutions (such as CN106291167A) mostly adopt a time-division multiplexing single-link acquisition architecture with analog switches. The entire acquisition link has no redundancy design. If any component in the link fails, it can only lead to a safe state (fault-safe shutdown). The hardware fault margin (HFT) is 0, and it does not have single-point fault tolerance capability, resulting in poor channel availability.

[0004] Another improved solution (such as CN117991676A) discloses a digital input signal diagnostic device and method. It isolates external field signals from internal self-test excitation using diodes, outputs an analog voltage to the controller via an optocoupler, and utilizes two independent A / D channels for cross-comparison to achieve fault identification and aging warning. However, this solution is still a single-input hardware link with no redundant acquisition paths. If a single point of failure occurs in the front-end input circuit, optocoupler, or other components, it can only trigger an alarm but cannot maintain continuous acquisition, resulting in insufficient availability.

[0005] Furthermore, current PLCs, DCSs, and SIS digital input modules commonly use optocouplers for electrical isolation. However, the core parameter of the optocoupler—the current transfer ratio (CTR)—continuously decreases with operating conditions (such as high temperature, humid aging, and long-term operation). When a valid high-level safety signal is input in the field, if the optocoupler's CTR significantly decreases, it will cause abnormal analog voltage output at the back end. The controller may easily misinterpret the true high level as a low level. This dangerous failure can lead to the loss of critical safety feedback signals such as valve feedback and equipment arrival, thereby inducing unsafe process actions and causing major safety accidents.

[0006] Therefore, how to provide a low-cost, highly secure, highly available, and diagnostically comprehensive digital input module that can effectively avoid the risks of optocoupler aging is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0007] To address the aforementioned technical problems, this invention provides a functionally safe digital input module and diagnostic method. Based on a 1002 dual-channel redundant architecture and comparator sampling technology, this invention achieves single-point fault tolerance, improves channel availability, and eliminates safety hazards caused by optocoupler aging.

[0008] The first aspect of this invention discloses a functionally safe digital input module; the module includes: The signal input circuit is used to receive digital input signals from external field instruments and divide them into a first input signal and a second input signal. The A-series processing channel and the B-series processing channel are physically independent to form a dual-channel redundancy architecture; the A-series processing channel receives the first input signal, and the B-series processing channel receives the second input signal. Each processing channel includes: The signal acquisition circuit is used to perform voltage division processing on the received input signal; A diagnostic isolation circuit, the input of which is connected to the output of the signal acquisition circuit; A level conversion circuit, the input of which is connected to the output of the diagnostic isolation circuit; A diagnostic control circuit, the output of which is connected between the diagnostic isolation circuit and the level conversion circuit; The microcontroller has a first pin connected to the output of the level conversion circuit through a first isolation circuit, and a second pin connected to the input of the diagnostic control circuit through a second isolation circuit. The level conversion circuit includes a comparator for comparing the channel signal passing through the diagnostic isolation circuit with a reference voltage and outputting the corresponding logic level to the microcontroller. The microcontroller is used to control the diagnostic control circuit to turn on via the second pin when diagnostics are required, so as to inject a readback diagnostic voltage into the input terminal of the level conversion circuit.

[0009] Furthermore, the diagnostic isolation circuit includes a first diagnostic isolation resistor and a second diagnostic isolation resistor connected in series; the first diagnostic isolation resistor and the second diagnostic isolation resistor are redundant to each other, and when one of them has a short circuit fault, the other still maintains the channel isolation function, so as to avoid interference with the signal acquisition of the other channel during single-channel diagnosis.

[0010] Furthermore, the level conversion circuit in the A-system processing channel includes a first comparator, the non-inverting input of the first comparator receiving the channel signal through a resistor, and its inverting input connected to the A-system reference voltage; The level conversion circuit in the B-series processing channel includes a second comparator. The non-inverting input of the second comparator receives the channel signal through a resistor, and its inverting input is connected to the B-series reference voltage.

[0011] Furthermore, the signal acquisition circuit includes a first voltage divider resistor and a second voltage divider resistor connected in series. One end of the first voltage divider resistor receives the input signal, and its other end is connected to one end of the second voltage divider resistor and serves as the output terminal of the signal acquisition circuit. The other end of the second voltage divider resistor is grounded.

[0012] Furthermore, the diagnostic control circuit includes a diagnostic switch and a pull-up resistor; one end of the pull-up resistor is connected between the diagnostic isolation circuit and the level conversion circuit, and the other end is connected to a reference voltage through the diagnostic switch; the microcontroller controls the closing and opening of the diagnostic switch through the second pin.

[0013] Furthermore, the resistance value of the first voltage divider resistor is denoted as R1, and the resistance value of the second voltage divider resistor is denoted as R2; When the input voltage when the field instrument contacts are closed is greater than 15V and the input voltage when the contacts are open is less than 5V, the following conditions must be met: R1 < 2R2 and 0Ω < 5R1. The reference voltage is equal to the voltage value generated at the input terminal of the level conversion circuit when 5V is input at the input terminal.

[0014] Furthermore, the signal input circuit includes a reverse connection protection diode and a current limiting resistor. An external power supply powers the field instrument in sequence through the reverse connection protection diode and the current limiting resistor to acquire the digital input signal.

[0015] Furthermore, the microcontroller of the A-series processing channel is connected to the A-series communication bus, and the microcontroller of the B-series processing channel is connected to the B-series communication bus; the A-series processing channel and the B-series processing channel report the collected data and diagnostic results through their respective independent communication buses, and set the data quality bit according to the diagnostic results.

[0016] A second aspect of this invention discloses a channel diagnostic method for a functionally safe digital input module; the method is applied to the functionally safe digital input module described in the first aspect above, and the method includes the following steps: Acquire the first acquisition value of the A-system processing channel and the second acquisition value of the B-system processing channel; Determine whether the first collected value and the second collected value are consistent: If they are consistent, the collected value of any one system shall be used as the system report result; If there is a discrepancy, a readback diagnosis is performed on the target channel with a collected value of "1". The readback diagnosis process is as follows: the diagnostic control circuit of the target channel is closed, the input voltage of the target channel level conversion circuit is pulled to the diagnostic reference threshold, and the current pin value of the target channel microcontroller is read. If the current pin value becomes "0", the readback diagnosis of the target channel is determined to be successful; otherwise, the target channel is determined to be faulty.

[0017] Furthermore, when the first collected value and the second collected value are inconsistent: If the first acquisition value is "1" and the second acquisition value is "0", then the A-system processing channel is read back for diagnosis. If the A-system diagnosis is normal, the system reports a result of "0". Otherwise, the A-system is determined to be faulty, and the system reports using the second acquisition value of "0". If the first acquisition value is "0" and the second acquisition value is "1", then the B-system processing channel is read back for diagnosis. If the B-system diagnosis is normal, the system reports a result of "0". Otherwise, the B-system is determined to be faulty, and the system reports using the first acquisition value of "0".

[0018] In summary, the solution proposed in this invention can: 1. High availability and high security: Adopting a 1oo2d redundancy architecture, when one channel experiences a hardware failure, the other channel can still maintain normal data acquisition and diagnosis. The hardware failure margin (HFT) is 1, which effectively solves the problem of channel paralysis caused by single point of failure.

[0019] 2. Avoid the risk of optocoupler aging: The traditional "optocoupler + ADC" direct sampling circuit is abandoned. The innovative level conversion architecture based on comparator is introduced, which eliminates the threshold drift and signal misjudgment caused by the attenuation of optocoupler current transfer ratio (CTR), so that the channel judgment threshold is accurately fixed.

[0020] 3. High diagnostic coverage and low cost: Physical isolation between the two channels is achieved through redundant diagnostic isolation resistors in series, supplemented by inter-channel comparison diagnostics and online readback diagnostics ("1->0" test). There is no need for expensive and complex multi-channel analog switches. By using passive components and comparators, the channel diagnostic coverage can reach 99%, which meets the SIL3 functional safety level requirements specified in the IEC61508 standard. Attached Figure Description

[0021] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0022] Figure 1 This is a schematic diagram of the device connection relationship of the functional safety digital input module in an embodiment of the present invention; Figure 2 This is a schematic diagram of the functional safety digital input module in an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] This invention is a technical solution based on the 1oo2 architecture. When one channel fails, the other channel can still ensure system operation. It has high diagnostic coverage and can perform real-time diagnosis of failures of devices on the signal input link. That is, it can diagnose failures of devices such as signal acquisition circuits, diagnostic isolation circuits, and level conversion circuits. Therefore, it solves both the security and availability of the module. It has high diagnostic coverage and can also achieve the functional safety standard SIL3 level certification of IEC61508. It solves the technical problems of high cost of 2oo3 architecture technology and poor availability of 1oo1 architecture technology.

[0025] Secondly, the current transfer ratio (CTR) of optocouplers exhibits a problem of continuous decay and uncontrollable fluctuations under varying operating conditions, posing a significant safety hazard to functional safety I / O modules. This solution innovatively introduces a comparator architecture to replace the traditional optocoupler direct sampling circuit. On one hand, this eliminates the sampling voltage offset problem caused by CTR decay and drift, avoiding misinterpretation of digital signals; on the other hand, it enables precise fixing of channel thresholds, reducing the concealment of soft faults, simplifying FMEA failure analysis, and fundamentally mitigating various functional safety risks caused by CTR uncertainty.

[0026] Example 1: The first aspect of this invention discloses a functionally safe digital input module, such as... Figure 1 The module includes: The signal input circuit is used to receive digital input signals from external field instruments and divide them into a first input signal and a second input signal. The A-series processing channel and the B-series processing channel are physically independent to form a dual-channel redundancy architecture; the A-series processing channel receives the first input signal, and the B-series processing channel receives the second input signal. Each processing channel includes: The signal acquisition circuit is used to perform voltage division processing on the received input signal; A diagnostic isolation circuit, the input of which is connected to the output of the signal acquisition circuit; A level conversion circuit, the input of which is connected to the output of the diagnostic isolation circuit; A diagnostic control circuit, the output of which is connected between the diagnostic isolation circuit and the level conversion circuit; The microcontroller has a first pin connected to the output of the level conversion circuit through a first isolation circuit, and a second pin connected to the input of the diagnostic control circuit through a second isolation circuit. Signal input circuit: corresponding Figure 2 The left side of the middle section is the part for field power supply and signal reception (including reverse connection protection diode D1, current limiting resistor R0, and terminals DI+ and DI-).

[0027] Signal acquisition circuit: corresponding Figure 2 The first voltage divider section after receiving the signal, such as R1 and R2 in system A; and R11 and R12 in system B.

[0028] Diagnostic isolation circuit: Corresponding Figure 2 The series resistors used to prevent interference between the two systems, such as R3 and R4 in system A; and R13 and R14 in system B.

[0029] Level conversion circuit: corresponding Figure 2 The comparators and their peripheral components, such as comparator U1 and reference voltage in the A series, and comparator U2 and reference voltage in the B series, replace the traditional "optical coupler".

[0030] Diagnostic control circuit: Corresponding Figure 2 The circuits used by the microcontroller to send diagnostic pull-down signals include, for example, pull-down resistor R5 and switch SW1 in series A; and R15 and SW2 in series B.

[0031] The level conversion circuit includes a comparator for comparing the channel signal passing through the diagnostic isolation circuit with a reference voltage and outputting the corresponding logic level to the microcontroller. The microcontroller is used to control the diagnostic control circuit to turn on via the second pin when diagnostics are required, so as to inject a readback diagnostic voltage into the input terminal of the level conversion circuit.

[0032] The diagnostic isolation circuit includes a first diagnostic isolation resistor and a second diagnostic isolation resistor connected in series. The first diagnostic isolation resistor and the second diagnostic isolation resistor are redundant. When one of them experiences a short circuit fault, the other still maintains its channel isolation function to avoid interference with the signal acquisition of the other channel during single-channel diagnosis.

[0033] The level conversion circuit in the A-system processing channel includes a first comparator. The non-inverting input terminal of the first comparator receives the channel signal through a resistor, and its inverting input terminal is connected to the A-system reference voltage. The level conversion circuit in the B-series processing channel includes a second comparator. The non-inverting input of the second comparator receives the channel signal through a resistor, and its inverting input is connected to the B-series reference voltage.

[0034] The signal acquisition circuit includes a first voltage divider resistor and a second voltage divider resistor connected in series. One end of the first voltage divider resistor receives the input signal, and the other end is connected to one end of the second voltage divider resistor and serves as the output terminal of the signal acquisition circuit. The other end of the second voltage divider resistor is grounded.

[0035] The diagnostic control circuit includes a diagnostic switch and a pull-up resistor; one end of the pull-up resistor is connected between the diagnostic isolation circuit and the level conversion circuit, and the other end is connected to a reference voltage through the diagnostic switch; the microcontroller controls the closing and opening of the diagnostic switch through the second pin.

[0036] like Figure 2 As shown, the resistance value of the first voltage divider resistor is denoted as R1, and the resistance value of the second voltage divider resistor is denoted as R2; When the input voltage when the field instrument contacts are closed is greater than 15V and the input voltage when the contacts are open is less than 5V, the following conditions must be met: R1 < 2R2 and 0Ω < 5R1. The reference voltage is equal to the voltage value generated at the input terminal of the level conversion circuit when 5V is input at the input terminal.

[0037] The signal input circuit includes a reverse connection protection diode and a current limiting resistor. An external power supply powers the field instrument in sequence through the reverse connection protection diode and the current limiting resistor to acquire the digital input signal.

[0038] The microcontroller of the A-series processing channel is connected to the A-series communication bus, and the microcontroller of the B-series processing channel is connected to the B-series communication bus. The A-series processing channel and the B-series processing channel report the collected data and diagnostic results through their respective independent communication buses, and set the data quality bit according to the diagnostic results.

[0039] In some specific embodiments, such as Figure 1As shown, the signal input circuit outputs a signal that is split into two parts: Input1 and Input2. Input1 is sent to the input of signal acquisition circuit A (system A). The output of signal acquisition circuit A is sent to the input of diagnostic isolation circuit A. The output of diagnostic isolation circuit A is sent to the input of level conversion circuit A, and also connected to the output of diagnostic control circuit A. The output of level conversion circuit A is sent to the input of isolation circuit A1, which then sends the input signal to the GPIO1 input of MCUA. The GPIO2 output of MCUA, after passing through isolation circuit A2, is sent to the diagnostic control circuit. The input of circuit A is used for control of A-system diagnostics; the Input2 signal is sent to the input of the signal acquisition circuit B of system B; the output of the signal acquisition circuit B is sent to the input of the diagnostic isolation circuit B; the output of the diagnostic isolation circuit B is sent to the input of the level conversion circuit B, and is also connected to the output of the diagnostic control circuit B; the output of the level conversion circuit B is sent to the input of the isolation circuit B1, and after the isolation circuit B1, the input signal is sent to the GPIO3 input of MCUB; the GPIO4 output of MCUB, after the isolation circuit B2, is sent to the input of the diagnostic control circuit B for control of B-system diagnostics. The A and B system devices are physically independent and do not share a common cause of failure. Communication BUS1 and Communication BUS2 are two independent redundant buses, reporting the acquired data through these two independent buses. Data quality bits are set according to the diagnostic results. The processor is mainly responsible for controlling the acquired signals, switching channels, reading data, and performing data diagnostic processing, etc.

[0040] Furthermore, such as Figure 2 As shown, the DI channel circuit receives Type 1 signals from the field (IEC 61131-2, the standard specifies <5V as logic "0", >15V as logic "1"); the module outputs a query power supply F_24V, which first achieves reverse connection protection through diode D1, then current is limited by current-limiting resistor R0, and finally led to the external terminal DI+ to power the field instruments. The external terminal DI- is the channel input signal, and the standard specifies that input <5V is logic "0", and input >15V is logic "1".

[0041] When the field instrument contact is open, the Va1 input should be less than 5V, and the logic value should be "0", meaning that the following exists: Series A: Vb1 = 5V × R2 / (R1 + R2) < 5V (Equation 1); B series: Vb2=5V×R12 / (R11+R12)<5V (Equation 2); We can conclude that: 0Ω < 5R1, 0Ω < 5R11. When the field instrument contacts are closed, the Va1 input should be greater than 15V, and the logic value should be "1", meaning that the following exists: System A: Vb1=15V×R2 / (R1+R2)>15V (Equation 3); System B: Vb2=15V×R12 / (R11+R12)>15V (Equation 4); It can be derived that: R1<2R2, R11<2R12.

[0042] After Vb1 of System A passes through series-connected diagnostic isolation resistors R3 and R4, the channel signal Vc1 and the reference voltage REF_5V_A are compared by the U1 comparator. When Vc1>REF_5V_A, the signal Vd1 is at a logic high level; when Vc1<REF_5V_A, the signal Vd1 is at a logic low level. The logic signal is sent to the system-side MCU through the isolation circuit.

[0043] After Vb2 of System B passes through series-connected diagnostic isolation resistors R13 and R14, the channel signal Vc2 and the reference voltage REF_5V_B are compared by the U2 comparator. When Vc2>REF_5V_B, the signal Vd2 is at a logic high level; when Vc2<REF_5V_B, the signal Vd2 is at a logic low level. The logic signal is sent to the system-side MCU through the isolation circuit.

[0044] In summary, R0 is selected as 2KΩ, R1 and R11 are selected as 4KΩ, and R2 and R12 are selected as 5KΩ; When the contact of the field instrument is open, Vb1=Vb2=0V*5 / (5+4) =0<5V, then the MCU reads a logic "0".

[0045] When the contact of the field instrument is closed, Vb1=Vb2=(24V-0.5V)*5 / (5+4+2)=10.68V>5V, the voltage drop of the anti-reverse diode D1 is generally 0.5V, then the MCU reads a logic "1".

[0046] In the present invention, the channel input values are collected through GPIO1 and GPIO3, and then an inter-channel comparison diagnosis method is adopted to compare whether the collected values of System A and System B are consistent. If they are consistent, the collected value of any one system is reported; if they are inconsistent, further determination needs to be made through read-back diagnosis. The read-back diagnosis only performs read-back on the state where the collected value is read as "1". No read-back diagnosis is performed on the state where the collected value is read as "0", because from the perspective of functional safety, the collected value of "0" is a safe state. Assuming System A is to be diagnosed, MCUA controls the SW1 switch of System A to close through GPIO2, so that the voltage value of the channel signal Vc1 is pulled to approximately REF_A through the resistor R5, where REF_A is the corresponding voltage value of Vc1 when the input terminal inputs 5V, that is, REF_A=5v*R2 / (R1+R2). Then MCUA checks through GPIO1 whether the measured channel samples "0". If 0 is sampled, "1->0" passes; otherwise, it fails This invention eliminates the need for an analog switch at the input. When system A is being diagnosed, system B acquisition is not affected; instead, isolation is achieved through diagnostic resistors R3 and R4. These two resistors are redundant, ensuring that if one resistor short-circuits, the other still provides isolation. Assuming system B is being diagnosed, MCUB controls the A-system SW2 switch to close via GPIO4, causing the channel signal Vc2 voltage value to be pulled to approximately REF_B through resistor R15. REF_B is the voltage value of Vc2 when the input is 5V, i.e., REF_B = 5V * R12 / (R11 + R12). Then, MCUB checks via GPIO3 whether the tested channel has sampled "0". If 0 is sampled, "1->0" passes; otherwise, it fails. Similarly, when system B is being diagnosed, system A acquisition is not affected; instead, isolation is achieved through diagnostic resistors R13 and R14. These two resistors are redundant, ensuring that if one resistor short-circuits, the other still provides isolation.

[0047] Example 2: like Figure 1 and Figure 2 As shown, this embodiment provides a functionally safe digital input module based on a 1002 architecture design, including a signal input circuit, and an A-series processing channel (Channel A) and a B-series processing channel (Channel B) that are physically independent of each other and do not constitute a common cause failure.

[0048] The signal input circuit receives the digital input signal Va1 from the field instrument contact and splits it into two: the first input signal Input1 is sent to the A-system processing channel, and the second input signal Input2 is sent to the B-system processing channel.

[0049] In the A-series processing channel: The first input signal, Input1, is sent to signal acquisition circuit A. Signal acquisition circuit A consists of voltage divider resistors R1 and R2, and outputs a voltage divider signal Vb1. Vb1 passes through diagnostic isolation circuit A, which consists of resistors R3 and R4 connected in series, to obtain channel signal Vc1, which is then sent to the non-inverting input of level conversion circuit A (containing comparator U1). Comparator U1 compares Vc1 with the A-system reference voltage REF_5V_A. When Vc1 > REF_5V_A, it outputs a high logic level; otherwise, it outputs a low logic level Vd1. This logic level is then sent to pin GPIO1 of microcontroller MCUA via isolation circuit A1.

[0050] To enable readback diagnostics, GPIO2 of MCUA is connected to the diagnostic control circuit A (which includes switch SW1 and pull-low resistor R5) via isolation circuit A2. Resistor R5 is connected between the diagnostic isolation circuit A and the level conversion circuit A.

[0051] The hardware circuit of the B-series processing channel is completely symmetrical to that of the A-series, including signal acquisition circuit B (R11, R12), diagnostic isolation circuit B (R13, R14), level conversion circuit B (comparator U2), diagnostic control circuit B (R15, SW2), and microcontroller MCUB (GPIO3, GPIO4).

[0052] When this module is powered, the output power F_24V is led to the external terminal DI+ through the reverse polarity protection diode D1 and the current limiting resistor R0 to power the field instruments. According to the IEC 61131-2 standard, input <5V is logic "0" and >15V is logic "1".

[0053] The resistor parameters are selected as follows: R0=2KΩ, R1=R11=4KΩ, R2=R12=5KΩ.

[0054] When the contact is open, the input is equivalent to 0V. After voltage division, Vb1 = 0V, and the comparator outputs a low level "0".

[0055] When the contacts are closed, assuming the voltage drop of D1 is 0.5V, the input voltage Va1 = (24-0.5)×5 / (5+4+2) =10.68V. The voltage divider meets the comparator's toggling threshold requirement, and the microcontroller reads logic "1".

[0056] The logic of the channel diagnostic method is explained below, in conjunction with Table 1: Table 1

[0057] The microcontroller synchronizes and compares data from systems A and B via a communication bus. If the values ​​collected from systems A and B are identical (both 0 or both 1), then either system's value is directly used for reporting.

[0058] When the two systems are inconsistent, a readback diagnosis is performed, and the readback diagnosis is only performed on the channel that reads "1" (because reading "0" is a safe state).

[0059] For example, when system A reads "1" and system B reads "0", MCUA controls GPIO2 to output signal to close SW1, pulling node Vc1 to the reference threshold REF_A through R5 (REF_A=5V×R2 / (R1+R2)).

[0060] If circuit A is intact, GPIO1 should read "0" (i.e., the "1->0" test is passed), indicating that circuit A is normal and the system output is 0; if the test fails, it indicates that there is a fault in circuit A, the system discards the data from circuit A and reports the "0" value from circuit B.

[0061] Similarly, when system A reads "0" and system B reads "1", system B initiates a readback verification of its own channel.

[0062] It is worth noting that during A-system readback diagnostics, the applied diagnostic excitation will not significantly interfere with the Va1 node due to the blocking effect of the series-connected diagnostic isolation resistors R3 and R4, thus not affecting the normal real-time acquisition of the B-system. Furthermore, R3 and R4 are redundant; even if one is short-circuited, the other can still provide isolation protection.

[0063] Whether the above channel diagnostic measures can meet the requirements of SIL3 level according to the IEC61508 standard, the diagnostic coverage rate is high according to the "Test Pattern" recommended in IEC61508-2 Table A.7. The channel side of this module adopts inter-channel comparison diagnosis and channel read-back diagnosis methods, and the diagnostic coverage rate can reach a high level of 99%.

[0064] According to IEC61508-2 Table 3, the channel circuit is of type B. When the hardware fault margin (HFT) is equal to 1, the safety failure score required to achieve SIL3 level is 90%-99%. This module has two systems, A and B, on the channel side, and can tolerate the failure of one system. Therefore, the HFT is 1. The channel diagnostic coverage of this module is 99%, which can achieve the required safety failure score. Therefore, the channel-side diagnostics of this module can meet the requirements of SIL3 level. In summary, this invention, through reasonable hardware architecture design and software diagnostic logic coordination, achieves a diagnostic coverage rate of up to 99% at extremely low cost, meets the requirements of the SIL3 standard, and has broad application prospects in scenarios with extremely high reliability requirements, such as petrochemical safety control.

[0065] A second aspect of this invention discloses a channel diagnostic method for a functionally safe digital input module, the method being applied to the functionally safe digital input module described in the first aspect above, the method comprising: Acquire the first acquisition value of the A-system processing channel and the second acquisition value of the B-system processing channel; Determine whether the first collected value and the second collected value are consistent: If they are consistent, the collected value of any one system shall be used as the system report result; If there is a discrepancy, a readback diagnosis is performed on the target channel with a collected value of "1". The readback diagnosis process is as follows: the diagnostic control circuit of the target channel is closed, the input voltage of the target channel level conversion circuit is pulled to the diagnostic reference threshold, and the current pin value of the target channel microcontroller is read. If the current pin value becomes "0", the readback diagnosis of the target channel is determined to be successful; otherwise, the target channel is determined to be faulty.

[0066] When the first collected value is inconsistent with the second collected value: If the first acquisition value is "1" and the second acquisition value is "0", then the A-system processing channel is read back for diagnosis. If the A-system diagnosis is normal, the system reports a result of "0". Otherwise, the A-system is determined to be faulty, and the system reports using the second acquisition value of "0". If the first acquisition value is "0" and the second acquisition value is "1", then the B-system processing channel is read back for diagnosis. If the B-system diagnosis is normal, the system reports a result of "0". Otherwise, the B-system is determined to be faulty, and the system reports using the first acquisition value of "0".

[0067] Please note that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments have been described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be pointed out that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A functionally safe digital input module, characterized in that, include: The signal input circuit is used to receive digital input signals from external field instruments and divide them into a first input signal and a second input signal. The A-series processing channel and the B-series processing channel are physically independent to form a dual-channel redundancy architecture. The A-system processing channel receives the first input signal, and the B-system processing channel receives the second input signal; Each processing channel includes: The signal acquisition circuit is used to perform voltage division processing on the received input signal; A diagnostic isolation circuit, the input of which is connected to the output of the signal acquisition circuit; A level conversion circuit, the input of which is connected to the output of the diagnostic isolation circuit; A diagnostic control circuit, the output of which is connected between the diagnostic isolation circuit and the level conversion circuit; The microcontroller has a first pin connected to the output of the level conversion circuit through a first isolation circuit, and a second pin connected to the input of the diagnostic control circuit through a second isolation circuit. The level conversion circuit includes a comparator for comparing the channel signal passing through the diagnostic isolation circuit with a reference voltage and outputting the corresponding logic level to the microcontroller. The microcontroller is used to control the diagnostic control circuit to turn on via the second pin when diagnostics are required, so as to inject a readback diagnostic voltage into the input terminal of the level conversion circuit.

2. The functionally safe digital input module according to claim 1, characterized in that, The diagnostic isolation circuit includes a first diagnostic isolation resistor and a second diagnostic isolation resistor connected in series. The first diagnostic isolation resistor and the second diagnostic isolation resistor are redundant. When one of them experiences a short circuit fault, the other still maintains its channel isolation function to avoid interference with the signal acquisition of the other channel during single-channel diagnosis.

3. The functionally safe digital input module according to claim 1, characterized in that, The level conversion circuit in the A-system processing channel includes a first comparator. The non-inverting input terminal of the first comparator receives the channel signal through a resistor, and its inverting input terminal is connected to the A-system reference voltage. The level conversion circuit in the B-series processing channel includes a second comparator. The non-inverting input of the second comparator receives the channel signal through a resistor, and its inverting input is connected to the B-series reference voltage.

4. A functionally safe digital input module according to claim 1, characterized in that, The signal acquisition circuit includes a first voltage divider resistor and a second voltage divider resistor connected in series. One end of the first voltage divider resistor receives the input signal, and the other end is connected to one end of the second voltage divider resistor and serves as the output terminal of the signal acquisition circuit. The other end of the second voltage divider resistor is grounded.

5. A functionally safe digital input module according to claim 4, characterized in that, The diagnostic control circuit includes a diagnostic switch and a pull-up resistor; one end of the pull-up resistor is connected between the diagnostic isolation circuit and the level conversion circuit, and the other end is connected to a reference voltage through the diagnostic switch; the microcontroller controls the closing and opening of the diagnostic switch through the second pin.

6. A functionally safe digital input module according to claim 5, characterized in that, The resistance value of the first voltage divider resistor is denoted as R1, and the resistance value of the second voltage divider resistor is denoted as R2; When the input voltage when the field instrument contacts are closed is greater than 15V and the input voltage when the contacts are open is less than 5V, the following conditions must be met: R1 < 2R2 and 0Ω < 5R1. The reference voltage is equal to the voltage value generated at the input terminal of the level conversion circuit when 5V is input at the input terminal.

7. A functionally safe digital input module according to claim 1, characterized in that, The signal input circuit includes a reverse connection protection diode and a current limiting resistor. An external power supply powers the field instrument in sequence through the reverse connection protection diode and the current limiting resistor to acquire the digital input signal.

8. A functionally safe digital input module according to claim 1, characterized in that, The microcontroller of the A-series processing channel is connected to the A-series communication bus, and the microcontroller of the B-series processing channel is connected to the B-series communication bus. The A-series processing channel and the B-series processing channel report the collected data and diagnostic results through their respective independent communication buses, and set the data quality bit according to the diagnostic results.

9. A channel diagnostic method based on the functionally safe digital input module according to any one of claims 1 to 8, characterized in that, Includes the following steps: Acquire the first acquisition value of the A-system processing channel and the second acquisition value of the B-system processing channel; Determine whether the first collected value and the second collected value are consistent: If they are consistent, the collected value of any one system shall be used as the system report result; If there is a discrepancy, a readback diagnosis is performed on the target channel with a collected value of "1". The readback diagnosis process is as follows: the diagnostic control circuit of the target channel is closed, the input voltage of the target channel level conversion circuit is pulled to the diagnostic reference threshold, and the current pin value of the target channel microcontroller is read. If the current pin value becomes "0", the readback diagnosis of the target channel is determined to be successful; otherwise, the target channel is determined to be faulty.

10. A channel diagnostic method for a functionally safe digital input module according to claim 9, characterized in that, When the first collected value is inconsistent with the second collected value: If the first acquisition value is "1" and the second acquisition value is "0", then the A-system processing channel is read back for diagnosis. If the A-system diagnosis is normal, the system reports a result of "0". Otherwise, the A-system is determined to be faulty, and the system reports using the second acquisition value of "0". If the first acquisition value is "0" and the second acquisition value is "1", then the B-system processing channel is read back for diagnosis. If the B-system diagnosis is normal, the system reports a result of "0". Otherwise, the B-system is determined to be faulty, and the system reports using the first acquisition value of "0".

Citation Information

Patent Citations

  • One-subtracting and one-adding diagnostic functional safety digital quantity input module

    CN106291167A

  • Digital quantity input signal diagnosis device and method

    CN117991676A