Circuit and method for switching value input redundancy detection

By using two optocouple isolation devices in the switching quantity input detection circuit for series design, the problem of insufficient reliability of a single optocouple isolation device is solved, and a higher reliability of the detection circuit is achieved.

CN119727675APending Publication Date: 2025-03-28BEIJING SIFANG JIBAO ENG TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411760385.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the existing switching input detection circuit, the reliability of a single optocouple isolation device is insufficient, which easily leads to component failure and causes malfunction of the device to be refused.

Method used

Two optocouple isolation devices are used to connect in series to a switching quantity detection input circuit, and the switching quantity signal changes of the two optocouples are mutually reconciled to enhance reliability design.

Benefits of technology

In the case where one optocoupler fails, the other optocoupler can normally collect the input state, thereby improving the reliability of the switching quantity detection circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119727675A_ABST
    Figure CN119727675A_ABST
Patent Text Reader

Abstract

The invention relates to a circuit and a method for switching value input redundancy detection, the circuit comprises a voltage current limiting circuit, an RC filter circuit, an anti-reverse protection circuit, a dual-optocoupler isolation circuit and a switching value output circuit, and the voltage current limiting circuit is used for limiting switching value input current; the output end of the voltage current limiting circuit is connected with the input end of the dual-optocoupler isolation circuit, the dual-optocoupler isolation circuit is used for switching value input detection, the dual-optocoupler isolation circuit comprises a first optocoupler and a second optocoupler, mutual correction is carried out through switching value signal changes detected by the two optocoupler isolation devices, and the voltage current limiting circuit is connected with the input end of the dual-optocoupler isolation circuit. When one optocoupler fails, the other optocoupler can normally acquire the input state, so that the reliability of the switching value detection circuit is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of switch quantity redundancy detection technology, and in particular relates to a circuit and a method for switch quantity input redundancy detection. Background Art

[0002] The existing technologies for switch input detection are:

[0003] The patent with application number CN202011529804.2 discloses a switch quantity input channel circuit and a switch quantity receiving system. For the case where a third resistor is connected in parallel at both ends of the switch to be collected, the circuit includes a switch quantity signal collection circuit and a switch quantity signal diagnosis circuit. The switch quantity signal collection circuit adopts a resistor divider circuit composed of a first resistor and a second resistor. The collection signal output circuit connected in parallel at both ends of the second resistor realizes the collection of the switch quantity signal of the switch to be collected and inputs it into the switch quantity signal receiving end of the processor; the switch quantity signal diagnosis circuit includes a diode voltage regulator circuit and a diagnostic signal output circuit. As long as the line of the switch to be collected is not broken, current will flow through the diode voltage regulator circuit, and the diagnostic signal output circuit realizes feedback on the normal state of the switch line to be collected; when a ground fault or a circuit breaker fault occurs in the switch line to be collected, there is no current in the diode voltage regulator circuit, and the diagnostic signal output circuit can realize feedback on the abnormal state of the switch line to be collected.

[0004] The patent with application number CN202311448651.2 discloses a switch input detection circuit, including a voltage current limiting protection circuit, an RC filtering circuit, an anti-reverse protection circuit, a bidirectional coupling isolation circuit and a switch output circuit; the input end of the voltage current limiting protection circuit is connected to the switch input interface to be detected; the RC filtering circuit is connected in parallel with the output end of the voltage current limiting protection circuit; the output end of the voltage current limiting protection circuit is connected in parallel with the anti-reverse protection circuit; the output end of the voltage current limiting protection circuit is connected to the input end of the bidirectional coupling isolation circuit; the output end of the bidirectional coupling isolation circuit is connected to the switch output circuit.

[0005] However, the above switch input detection circuits are all designed with a single optocoupler isolation device. The current production process and reliability of optocoupler isolation devices are not yet mature, and individual component failures often occur, causing the device to malfunction and fail to operate. Summary of the invention

[0006] In order to solve the deficiencies in the prior art, the present invention provides a circuit and method for redundant detection of switch inputs. In order to improve the reliability of the device and avoid the risk of component failure, the circuit uses two optocoupler isolation devices connected in series to a switch detection input loop to enhance the reliability design.

[0007] The present invention adopts the following technical solution.

[0008] The first aspect of the present invention proposes a circuit for switching input redundancy detection, comprising: a voltage current limiting circuit, an RC filter circuit, an anti-reverse protection circuit, a dual optocoupler isolation circuit, and a switching output circuit; specifically:

[0009] The input end of the voltage current limiting circuit is connected to the switch value input interface, and the voltage current limiting circuit is used to limit the switch value input current;

[0010] The output end of the voltage current limiting circuit is connected to the input end of the dual optocoupler isolation circuit, the dual optocoupler isolation circuit is used for switch input detection, and the circuit includes two optocoupler isolation devices;

[0011] The output end of the dual optocoupler isolation circuit is connected to the input end of the switch output circuit, and the switch output circuit is used to output the detection signal output by the dual optocoupler isolation circuit;

[0012] The RC filter circuit and the anti-reverse protection circuit are both connected between the two output ends of the voltage current limiting protection circuit.

[0013] Preferably, the voltage current limiting protection circuit includes: a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4; the first end of the switch input interface passes through the first resistor R1 and the second resistor R2 connected in series in sequence, as the first output end of the voltage current limiting protection circuit; the second end of the switch input interface passes through the first resistor R4 and the second resistor R3 connected in series in sequence, as the second output end of the voltage current limiting protection circuit.

[0014] Preferably, the RC filter circuit is composed of a tenth resistor R10 and a first capacitor C1 connected in parallel.

[0015] Preferably, the anti-reverse protection circuit is composed of a first diode D1, the cathode of the first diode D1 is connected to the first output end of the voltage current limiting protection circuit, and the anode of the first diode D1 is connected to the second output end of the voltage current limiting protection circuit.

[0016] Preferably, the dual optocoupler isolation circuit includes a first optocoupler G1 and a second optocoupler G2. The first optocoupler input terminal and the second optocoupler input terminal are connected in series and are respectively connected to the first output terminal and the second output terminal of the voltage current limiting protection circuit. A fifth resistor R5 is connected in parallel between the connection point between the first optocoupler input terminal and the second optocoupler input terminal and the second output terminal of the voltage current limiting protection circuit.

[0017] Preferably, the positive electrode of the input terminal of the first optical coupler G1 is connected to the first output terminal of the voltage current limiting protection circuit, the negative electrode of the input terminal of the first optical coupler G1 is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the second output terminal of the voltage current limiting protection circuit.

[0018] The collector of the output end of the first optocoupler G1 serves as the first output end of the dual optocoupler isolation circuit, and the emitter of the output end of the first optocoupler G1 serves as the second output end of the dual optocoupler isolation circuit.

[0019] Preferably, the positive electrode of the input terminal of the second optical coupler G2 is connected to the negative electrode of the second input terminal of the first optical coupler G1, and the negative electrode of the input terminal of the second optical coupler G2 is connected to the second output terminal of the voltage current limiting protection circuit.

[0020] The collector of the output end of the second optocoupler G2 serves as the third output end of the dual optocoupler isolation circuit, and the emitter of the output end of the second optocoupler G2 serves as the fourth output end of the dual optocoupler isolation circuit.

[0021] Preferably, the switch output circuit includes: a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, and a seventh capacitor C7;

[0022] One end of the third capacitor C3 and the first output end of the dual optocoupler isolation circuit are connected to the power supply V1, and the other end of the third capacitor C3 is connected to the ground; the second output end of the dual optocoupler isolation circuit, one end of the sixth resistor R6, one end of the second capacitor C2 and one end of the eighth resistor R8 are connected; the other end of the eighth resistor R8 is connected to one end of the sixth capacitor C6 as the first output end of the switch output circuit, and the other end of the sixth capacitor C6, the other end of the sixth resistor R6 and the other end of the second capacitor C2 are connected to the ground;

[0023] One end of the fifth capacitor C5, the third output end of the dual optocoupler isolation circuit and the power supply V1 are connected, and the other end of the fifth capacitor C5 is connected to the ground; the fourth output end of the dual optocoupler isolation circuit, one end of the seventh resistor R7, one end of the fourth capacitor C4 and one end of the ninth resistor R9 are connected; the other end of the ninth resistor R9 is connected to one end of the seventh capacitor C7 as the second output end of the switching output circuit, and the other end of the seventh capacitor C7, the other end of the seventh resistor R7 and the other end of the fourth capacitor C4 are connected to the ground.

[0024] The second aspect of the present invention provides a method for detecting switch redundancy using the circuit described in the first aspect of the present invention, specifically:

[0025] Input the switch value into the voltage current limiting circuit. If the switch value is at a high level, it is divided by the first resistor, the second resistor, and the third resistor, and filtered by the RC filter circuit, so that the transistors of the first optical coupler and the second optical coupler are turned on, and the first output terminal and the second output terminal of the switch value output circuit both output a high level.

[0026] If the switching value is at a low level and is smaller than the conduction voltage drop of the first diode, the transistors of the first optocoupler and the second optocoupler are not turned on, and the first output terminal and the second output terminal of the switching value output circuit both output a low level;

[0027] Compare the outputs of the first output terminal and the second output terminal of the switch output current. If one is high level and the other is low level, it means that one of the first optocoupler and the second optocoupler is damaged. The failed optocoupler is judged according to the switch quantity. If the switch quantity is high level, the corresponding optocoupler with low level output is the failed optocoupler; if both are high level or both are low level, it means that the first optocoupler and the second optocoupler are working normally.

[0028] The third aspect of the present invention proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when loaded into the processor, implements the switch input redundancy detection method according to the second aspect of the present invention.

[0029] The fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the switch input redundancy detection method according to the second aspect of the present invention.

[0030] The beneficial effect of the present invention is that, compared with the prior art, the switch quantity input detection circuit of the present invention adopts two optocoupler isolation devices, and mutual calibration is performed through the switch quantity signal changes of the two optocouplers, which can effectively prevent the failure of one optocoupler while the other optocoupler can normally collect the input state, thereby effectively improving the reliability of the switch quantity detection circuit. The present invention prevents reverse current through diodes to avoid damage to the optocouplers, and limits current through resistors. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a schematic diagram of the circuit structure of the present invention; DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only embodiments of a part of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the protection scope of the present invention.

[0033] like Figure 1 As shown, Embodiment 1 of the present invention provides a circuit for switch input redundancy detection, including: a voltage current limiting circuit, an RC filter circuit, an anti-reverse protection circuit, a dual optocoupler isolation circuit, and a switch output circuit; specifically:

[0034] The input end of the voltage current limiting circuit is connected to the switch value input interface, and the voltage current limiting circuit is used to limit the switch value input current;

[0035] The output end of the voltage current limiting circuit is connected to the input end of the dual optocoupler isolation circuit, the dual optocoupler isolation circuit is used for switch input detection, and the circuit includes two optocoupler isolation devices;

[0036] The output end of the dual optocoupler isolation circuit is connected to the input end of the switch output circuit, and the switch output circuit is used to output the detection signal output by the dual optocoupler isolation circuit;

[0037] The RC filter circuit and the anti-reverse protection circuit are both connected between the two output ends of the voltage current limiting protection circuit.

[0038] Preferably, the voltage current limiting protection circuit includes: a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4; the first end of the switch input interface passes through the first resistor R1 and the second resistor R2 connected in series in sequence, as the first output end of the voltage current limiting protection circuit; the second end of the switch input interface passes through the first resistor R4 and the second resistor R3 connected in series in sequence, as the second output end of the voltage current limiting protection circuit.

[0039] Preferably, the RC filter circuit is composed of a tenth resistor R10 and a first capacitor C1 connected in parallel.

[0040] Preferably, the anti-reverse protection circuit is composed of a first diode D1, the cathode of the first diode D1 is connected to the first output end of the voltage current limiting protection circuit, and the anode of the first diode D1 is connected to the second output end of the voltage current limiting protection circuit.

[0041] Preferably, the dual optocoupler isolation circuit includes a first optocoupler G1 and a second optocoupler G2. The first optocoupler input terminal and the second optocoupler input terminal are connected in series and are respectively connected to the first output terminal and the second output terminal of the voltage current limiting protection circuit. A fifth resistor R5 is connected in parallel between the connection point between the first optocoupler input terminal and the second optocoupler input terminal and the second output terminal of the voltage current limiting protection circuit.

[0042] Preferably, the positive electrode of the input terminal of the first optical coupler G1 is connected to the first output terminal of the voltage current limiting protection circuit, the negative electrode of the input terminal of the first optical coupler G1 is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the second output terminal of the voltage current limiting protection circuit.

[0043] The collector of the output end of the first optocoupler G1 serves as the first output end of the dual optocoupler isolation circuit, and the emitter of the output end of the first optocoupler G1 serves as the second output end of the dual optocoupler isolation circuit.

[0044] Preferably, the positive electrode of the input terminal of the second optical coupler G2 is connected to the negative electrode of the second input terminal of the first optical coupler G1, and the negative electrode of the input terminal of the second optical coupler G2 is connected to the second output terminal of the voltage current limiting protection circuit.

[0045] The collector of the output end of the second optocoupler G2 serves as the third output end of the dual optocoupler isolation circuit, and the emitter of the output end of the second optocoupler G2 serves as the fourth output end of the dual optocoupler isolation circuit.

[0046] Preferably, the switch output circuit includes: a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, and a seventh capacitor C7;

[0047] One end of the third capacitor C3 and the first output end of the dual optocoupler isolation circuit are connected to the power supply V1, and the other end of the third capacitor C3 is connected to the ground; the second output end of the dual optocoupler isolation circuit, one end of the sixth resistor R6, one end of the second capacitor C2 and one end of the eighth resistor R8 are connected; the other end of the eighth resistor R8 is connected to one end of the sixth capacitor C6 as the first output end of the switch output circuit, and the other end of the sixth capacitor C6, the other end of the sixth resistor R6 and the other end of the second capacitor C2 are connected to the ground;

[0048] One end of the fifth capacitor C5, the third output end of the dual optocoupler isolation circuit and the power supply V1 are connected, and the other end of the fifth capacitor C5 is connected to the ground; the fourth output end of the dual optocoupler isolation circuit, one end of the seventh resistor R7, one end of the fourth capacitor C4 and one end of the ninth resistor R9 are connected; the other end of the ninth resistor R9 is connected to one end of the seventh capacitor C7 as the second output end of the switching output circuit, and the other end of the seventh capacitor C7, the other end of the seventh resistor R7 and the other end of the fourth capacitor C4 are connected to the ground.

[0049] Embodiment 2 of the present invention provides a method for detecting switch value redundancy using the circuit described in Embodiment 1 of the present invention, specifically:

[0050] Input the switch value into the voltage current limiting circuit. If the switch value is at a high level, it is divided by the first resistor, the second resistor, and the third resistor, and filtered by the RC filter circuit, so that the transistors of the first optical coupler and the second optical coupler are turned on, and the first output terminal and the second output terminal of the switch value output circuit both output a high level.

[0051] If the switching value is at a low level and is smaller than the conduction voltage drop of the first diode, the transistors of the first optocoupler and the second optocoupler are not turned on, and the first output terminal and the second output terminal of the switching value output circuit both output a low level;

[0052] Compare the outputs of the first output terminal and the second output terminal of the switch output current. If one is high level and the other is low level, it means that one of the first optocoupler and the second optocoupler is damaged. The failed optocoupler is judged according to the switch quantity. If the switch quantity is high level, the corresponding optocoupler with low level output is the failed optocoupler; if both are high level or both are low level, it means that the first optocoupler and the second optocoupler are working normally.

[0053] Embodiment 3 of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is loaded into the processor, the method for detecting redundant switch input according to embodiment 2 of the present invention is implemented.

[0054] Embodiment 4 of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and is characterized in that when the computer program is executed by a processor, the switch input redundancy detection method according to Embodiment 2 of the present invention is implemented.

[0055] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0056] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0057] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0058] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A circuit for detecting redundant switching input, comprising: Voltage current limiting circuit, RC filter circuit, anti-reverse protection circuit, dual optocoupler isolation circuit, switch output circuit; characterized in that, The input end of the voltage current limiting circuit is connected to the switch value input interface, and the voltage current limiting circuit is used to limit the switch value input current; The output end of the voltage current limiting circuit is connected to the input end of the dual optocoupler isolation circuit, the dual optocoupler isolation circuit is used for switch input detection, and the circuit includes two optocoupler isolation devices; The output end of the dual optocoupler isolation circuit is connected to the input end of the switch output circuit, and the switch output circuit is used to output the detection signal output by the dual optocoupler isolation circuit; The RC filter circuit and the anti-reverse protection circuit are both connected between the two output ends of the voltage current limiting protection circuit.

2. A circuit for detecting redundant switching input according to claim 1, characterized in that: The voltage current limiting protection circuit includes: a first resistor R1, a second resistor R2, a third resistor R3, and a fourth resistor R4; the first end of the switch input interface passes through the first resistor R1 and the second resistor R2 connected in series in sequence, as the first output end of the voltage current limiting protection circuit; the second end of the switch input interface passes through the first resistor R4 and the second resistor R3 connected in series in sequence, as the second output end of the voltage current limiting protection circuit.

3. A circuit for detecting switch quantity redundancy according to claim 1, characterized in that: The RC filter circuit is composed of a tenth resistor R10 and a first capacitor C1 connected in parallel.

4. The circuit for detecting switch quantity redundancy according to claim 1, characterized in that: The anti-reverse protection circuit is composed of a first diode D1, the cathode of the first diode D1 is connected to the first output end of the voltage current limiting protection circuit, and the anode of the first diode D1 is connected to the second output end of the voltage current limiting protection circuit.

5. The circuit for detecting switch quantity redundancy according to claim 1, characterized in that: The dual optocoupler isolation circuit includes a first optocoupler G1 and a second optocoupler G2. The first optocoupler input terminal and the second optocoupler input terminal are connected in series and are respectively connected to the first output terminal and the second output terminal of the voltage current limiting protection circuit. A fifth resistor R5 is connected in parallel between the connection point between the first optocoupler input terminal and the second optocoupler input terminal and the second output terminal of the voltage current limiting protection circuit.

6. A circuit for detecting switch quantity redundancy according to claim 5, characterized in that: The positive electrode of the input end of the first optical coupler G1 is connected to the first output end of the voltage current limiting protection circuit, the negative electrode of the input end of the first optical coupler G1 is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the second output end of the voltage current limiting protection circuit. The collector of the output end of the first optocoupler G1 serves as the first output end of the dual optocoupler isolation circuit, and the emitter of the output end of the first optocoupler G1 serves as the second output end of the dual optocoupler isolation circuit.

7. A circuit for detecting switch quantity redundancy according to claim 6, characterized in that: The positive electrode of the input terminal of the second optical coupler G2 is connected to the negative electrode of the second input terminal of the first optical coupler G1, and the negative electrode of the input terminal of the second optical coupler G2 is connected to the second output terminal of the voltage current limiting protection circuit. The collector of the output end of the second optocoupler G2 serves as the third output end of the dual optocoupler isolation circuit, and the emitter of the output end of the second optocoupler G2 serves as the fourth output end of the dual optocoupler isolation circuit.

8. A circuit for detecting switch quantity redundancy according to claim 6, characterized in that: The switch output circuit includes: a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, and a seventh capacitor C7; One end of the third capacitor C3 and the first output end of the dual optocoupler isolation circuit are connected to the power supply V1, and the other end of the third capacitor C3 is connected to the ground; the second output end of the dual optocoupler isolation circuit, one end of the sixth resistor R6, one end of the second capacitor C2 and one end of the eighth resistor R8 are connected; the other end of the eighth resistor R8 is connected to one end of the sixth capacitor C6 as the first output end of the switch output circuit, and the other end of the sixth capacitor C6, the other end of the sixth resistor R6 and the other end of the second capacitor C2 are connected to the ground; One end of the fifth capacitor C5, the third output end of the dual optocoupler isolation circuit and the power supply V1 are connected, and the other end of the fifth capacitor C5 is connected to the ground; the fourth output end of the dual optocoupler isolation circuit, one end of the seventh resistor R7, one end of the fourth capacitor C4 and one end of the ninth resistor R9 are connected; the other end of the ninth resistor R9 is connected to one end of the seventh capacitor C7 as the second output end of the switching output circuit, and the other end of the seventh capacitor C7, the other end of the seventh resistor R7 and the other end of the fourth capacitor C4 are connected to the ground.

9. A method for detecting switch redundancy based on the circuit according to any one of claims 1 to 8, characterized in that: Input the switch value into the voltage current limiting circuit. If the switch value is at a high level, it is divided by the first resistor, the second resistor, and the third resistor, and filtered by the RC filter circuit, so that the transistors of the first optical coupler and the second optical coupler are turned on, and the first output terminal and the second output terminal of the switch value output circuit both output a high level. If the switching value is at a low level and is smaller than the conduction voltage drop of the first diode, the transistors of the first optocoupler and the second optocoupler are not turned on, and the first output terminal and the second output terminal of the switching value output circuit both output a low level; Compare the outputs of the first output terminal and the second output terminal of the switch output current. If one is high level and the other is low level, it means that one of the first optocoupler and the second optocoupler is damaged. The failed optocoupler is judged according to the switch quantity. If the switch quantity is high level, the corresponding optocoupler with low level output is the failed optocoupler; if both are high level or both are low level, it means that the first optocoupler and the second optocoupler are working normally.

10. 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 computer program is loaded into a processor, the method for detecting switch input redundancy according to claim 9 is implemented.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for detecting switch input redundancy according to claim 9 is implemented.

Citation Information

Patent Citations

  • A switch quantity input channel circuit and a switch quantity receiving system

    CN112702054B

  • Switching value input detection circuit

    CN117491860A