Self-detection recovery circuit for switching value input board card and switching value input board card

By integrated self -test recovery circuits in the switch quantity input board card, self -testing of DI ports is realized, the problem of detecting the function detection of the input interface of the switching volume in the harsh industrial environment is solved, and the accuracy and reliability of the detection are improved.

CN119355484APending Publication Date: 2025-01-24CHINA STATE SHIPBUILDING CORP LTD RESEARCH INSTITUTE 719
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411429109.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In harsh industrial environments, the function detection of the switch quantity input interface is difficult, and external detection equipment is easily affected by factors such as electromagnetic interference, high temperature and high humidity, making it difficult to ensure the accuracy and real-timeness of the detection results.

Method used

Internal inside the switching volume input board card integrate self -test recovery circuit, detect signals through the output unit output unit output unit, the signal recovery unit samples the DI port signal, and detect signals and sampling signals through the controller to achieve DI port self -detection.

Benefits of technology

It effectively avoids the problem of false detection or missed detection caused by external interference, improves the accuracy and real-timeness of detection results, reduces time and labor costs, and improves the detectability and reliability of the switching input board.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119355484A_ABST
    Figure CN119355484A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of detection circuits, and discloses a self-detection recovery circuit for a switching value input board card and the switching value input board card, and the self-detection recovery circuit comprises a signal output unit which is configured to output a first detection signal and send the first detection signal to a DI port; the signal recovery unit is configured to carry out sampling on a signal on the DI port so as to obtain a first sampling signal; and the first controller is configured to control the signal output unit to output the first detection signal, compare the first detection signal with the first sampling signal and detect whether the DI port is abnormal or not according to a comparison result. According to the invention, the self-detection recovery circuit is integrated in the switching value input board card, so that the accuracy and the real-time performance of a detection result can be ensured in a severe environment, and the detectability and the reliability of a DI port are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of detection circuits, and in particular to a self-detection and recovery circuit for a switch quantity input board and a switch quantity input board. Background Art

[0002] The switch input interface is an important control unit in the industrial control system. It is usually used to convert the control instructions into corresponding switch signals, and then output the switch signals to drive the external load to achieve the control of industrial equipment. Therefore, the switch input interface is crucial to the normal operation of the entire industrial control system, and therefore puts forward higher requirements on the reliability of the switch input interface.

[0003] In order to ensure the normal function of the switch input interface, in the related technology, external detection equipment is usually used to detect the output function of the switch input interface, which not only increases the equipment cost and time cost, but may also be affected by the external environment where the industrial control system is located. Especially in harsh environments, the accuracy of the detection results is easily affected by interference factors such as electromagnetic interference, high temperature and high humidity, which increases the difficulty of detecting the switch input interface. Summary of the invention

[0004] The present application provides a self-detection and recovery circuit and a switch quantity input board that can be used for a switch quantity input board, which solves the technical problem that the function detection of the switch quantity input interface is difficult in a relatively harsh industrial environment. By integrating a recovery circuit inside the switch quantity input board to realize DI (digital input) port self-detection, it is possible to timely detect whether the function of the switch quantity input board is normal, and reduce the interference of the external environment on the function detection of the switch quantity input board, thereby improving the reliability of the switch quantity input board.

[0005] In order to achieve the above objectives, the main technical solutions adopted in this application include:

[0006] In a first aspect, an embodiment of the present application provides a self-detection and recovery circuit for a switch input card, wherein the switch input card is provided with a plurality of independent DI ports, wherein the self-detection and recovery circuit comprises:

[0007] a signal output unit, the signal output unit being configured to output a first detection signal and send the first detection signal to the DI port;

[0008] A signal sampling unit, wherein the signal sampling unit is configured to sample the signal on the DI port to obtain a first sampling signal;

[0009] A first controller is configured to control the signal output unit to output the first detection signal, compare the first detection signal with the first sampling signal, and detect whether an abnormality occurs in the DI port according to the comparison result.

[0010] According to the self-detection sampling circuit proposed in the embodiment of the present application, the first detection signal output by the DI port is sampled by the signal sampling unit to generate a first sampling signal, and the first sampling signal is fed back to the first controller, so that the first sampling signal is compared with the original first detection signal by the first controller, thereby timely detecting whether an abnormality occurs in the DI port. Therefore, the embodiment of the present application forms a self-detection feedback mechanism inside the switch input board by integrating the self-detection sampling circuit in the switch input board, which can effectively avoid the problem of false detection or missed detection caused by external interference in harsh environments, not only effectively suppressing the interference of external environmental changes on the detection of the DI port, ensuring the accuracy and real-time nature of the detection results, but also reducing the time cost and labor cost of detection in harsh environments, greatly improving the detectability and reliability of the DI port.

[0011] Optionally, in some embodiments of the present application, the signal output unit includes:

[0012] a first solid-state relay, wherein the first solid-state relay is configured to receive a control signal from the first controller and to close a contact according to the control signal to generate the first detection signal and send the first detection signal to the DI port;

[0013] A first protection circuit is configured to provide overvoltage protection for an output terminal of the first solid-state relay.

[0014] Optionally, in some embodiments of the present application, the first input end of the first solid-state relay is connected in series with a first current limiting resistor and connected to a power supply, the second input end of the first solid-state relay is connected to a control output port of the first controller, the first output end of the first solid-state relay is connected in series with a second current limiting resistor and configured as a DO+ port of the information output unit, and the second output end of the first solid-state relay is configured as a DO- port of the information output unit.

[0015] In the embodiment of the present application, a first detection signal is generated by a signal output unit, and the first detection signal is sent to the DI port to be self-detected through the DO+ port and DO- port configured by the signal output unit, thereby realizing DI port self-detection inside the switch input board. Compared with mechanical relays, the use of solid-state relays can increase the response speed of generating the first detection signal, and the device has a longer life, which greatly improves the stability of the self-detection recovery circuit.

[0016] Optionally, in some embodiments of the present application, the first protection circuit includes a first TVS tube, wherein a first end of the first TVS tube is connected to the DO+ port, and a second end of the first TVS tube is connected to the DO- port.

[0017] The embodiment of the present application provides an overvoltage protection mechanism for the output end of the first solid-state relay through the TVS tube, which can effectively prevent damage to the first solid-state relay due to high voltage or other abnormal power supply interference, and ensure that the signal recovery unit operates stably in a complex circuit environment.

[0018] Optionally, in some embodiments of the present application, the signal recovery unit includes:

[0019] a second solid-state relay, the second solid-state relay being configured to receive the first detection signal, and to close a contact according to the first detection signal to generate the first sampling signal, and to send the first sampling signal to the first controller;

[0020] A second protection circuit is configured to provide overvoltage protection for an input terminal of the second solid-state relay.

[0021] Optionally, in some embodiments of the present application, the first input end of the second solid-state relay is connected in series with the third current limiting resistor and connected to the DI+ port in the DI port, the second input end of the second solid-state relay is connected to the DI- port in the DI port, a filter capacitor is connected between the first input end and the second input end of the second solid-state relay, the first output end of the second solid-state relay is connected to the detection port of the first controller, and the second output end of the second solid-state relay is grounded.

[0022] The embodiment of the present application realizes signal collection of the DI port by using the second solid-state relay, and the first sampling signal generated by the collection truly reflects the input state of the DI port, so as to facilitate subsequent signal comparison and abnormal state detection. Compared with mechanical relays, the use of solid-state relays can improve the response speed of DI port signal collection, and the device life is longer, which greatly improves the accuracy and stability of DI port detection.

[0023] Optionally, in some embodiments of the present application, the second protection circuit includes a second TVS tube and a diode;

[0024] Wherein, the first end of the second TVS tube is connected to the DI+ port, and the second end of the second TVS tube is connected to the DI- port;

[0025] The anode of the diode is connected to the second input terminal of the first solid-state relay, and the cathode of the diode is connected to the second end of the TVS tube.

[0026] The embodiment of the present application provides an overvoltage protection mechanism for the input end of the second solid-state relay through a protection circuit composed of a TVS tube and a diode, which can effectively prevent damage to the second solid-state relay due to high voltage or other abnormal power supply interference, and ensure that the signal recovery unit operates stably in a complex circuit environment.

[0027] In a second aspect, an embodiment of the present application provides a switch input card, comprising:

[0028] A plurality of DI signal acquisition units, wherein the input end of each of the DI signal acquisition units is configured as a DI port;

[0029] According to the self-detection recovery circuit described in the above embodiment, the self-detection recovery circuit is configured corresponding to the DI port.

[0030] The switch input card proposed in the embodiment of the present application detects the working state of the DI port through the above-mentioned self-detection feedback circuit, and timely detects whether the DI port is abnormal. Therefore, the embodiment of the present application forms a self-detection feedback mechanism inside the switch input card by integrating the self-detection feedback circuit in the switch input card, which can effectively avoid the problem of false detection or missed detection caused by external interference in harsh environments, not only effectively suppressing the interference of external environmental changes on DI port detection, ensuring the accuracy and real-time nature of the detection results, but also reducing the time cost and labor cost of detection in harsh environments, greatly improving the detectability and reliability of the switch input card.

[0031] Optionally, in some embodiments of the present application, the DI signal acquisition unit adopts a redundant design, and the DI signal acquisition unit includes a main DI signal acquisition unit and a backup DI signal acquisition unit;

[0032] The DI ports of the main DI signal acquisition unit and the backup DI signal acquisition unit are both designed to be redundant, and the DI ports include a main DI port and a backup DI port.

[0033] The embodiment of the present application sets up a DI signal acquisition unit with a redundant design. The main DI signal acquisition unit is responsible for the DI signal input under normal circumstances, and the backup DI signal acquisition unit is enabled when an abnormality occurs in the main DI signal acquisition unit. This improves the reliability and fault tolerance of the self-detection and recovery circuit, and helps the switch input board to accurately and stably complete self-detection in harsh external environments.

[0034] Optionally, in some embodiments of the present application, the switch input board further includes a health management unit, wherein the health management unit includes:

[0035] A voltage detection circuit, wherein the voltage detection circuit is configured to collect the working voltage of the switch input card;

[0036] A current detection circuit, wherein the current detection circuit is configured to collect the working current of the switch input card;

[0037] A temperature detection circuit, wherein the temperature detection circuit is configured to detect the operating temperature of the switch input board;

[0038] The second controller is configured to receive the operating voltage, the operating current and the operating temperature, and to generate an alarm when the operating voltage, the operating current and the operating temperature exceed a preset rated range.

[0039] The embodiment of the present application detects the voltage, current and temperature of the switch input board through the voltage detection circuit, current detection circuit and temperature detection circuit in the health management unit, and alarms the abnormal detection results through the second controller, which helps to ensure the normal operation of the switch input board and improve the reliability and stability of the switch input board. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A schematic diagram of the structure of a self-detection and recovery circuit for a switch input card proposed in one embodiment of the present application;

[0042] Figure 2 A circuit structure diagram of a signal output unit proposed in an embodiment of the present application;

[0043] Figure 3 A circuit structure diagram of a signal recovery unit proposed in an embodiment of the present application;

[0044] Figure 4 This is a schematic diagram of the structure of the health management unit proposed in the embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0046] As an important component of industrial control systems, the switch input interface is mainly used to output the switch quantity related to the control instructions to external loads such as actuators, relays, and equipment switches. With the expansion of the scale and increase of complexity of automation control systems, higher requirements are placed on the reliability and detectability of the switch input interface.

[0047] In the related art, the switch input interface usually uses an external detection device to detect the output function of the switch input interface. This detection method has many shortcomings. First, relying on external detection equipment requires adding additional hardware modules, which increases equipment and labor costs, and reduces the real-time detection of the working status of the switch input interface, resulting in low detection efficiency.

[0048] In addition, in outdoor industrial environments such as ship systems, there are external factors such as high temperature and humidity, salt spray, mold, impact, vibration, electromagnetic interference, etc., which increase the difficulty of detecting the switch input interface and may affect the effective detection of the switch input interface by external detection equipment, thereby reducing the stability, reliability and detectability of the switch input interface.

[0049] In this embodiment, a self-detection and recovery circuit for a switch input card is provided, which can be used in industrial control systems, such as programmable logic controllers (PLCs) such as ship systems and electrical equipment control systems.

[0050] like Figure 1 As shown, an embodiment of the present application provides a self-detection recovery circuit 20 for a switch input board, and the switch input board is provided with a plurality of independent DI ports 10, including a DI1 port, a DI2 port, ..., DIn-1 and a DIn common n-way input port.

[0051] The self-detection recovery circuit 20 includes a signal output unit 100, a signal recovery unit 200 and a first controller 300;

[0052] The signal output unit 100 is configured to output a first detection signal and send the first detection signal to the DI port 10;

[0053] The signal sampling unit 200 is configured to sample the signal on the DI port 10 to obtain a first sampling signal;

[0054] The first controller 300 is configured to control the signal output unit 100 to output the first detection signal, compare the first detection signal with the first sampling signal, and detect whether an abnormality occurs in the DI port 10 according to the comparison result.

[0055] According to the self-detection and sampling circuit 20 proposed in the embodiment of the present application, a first detection signal for DI port self-detection is generated through the signal output unit 100, and the signal at the DI port is sampled through the signal sampling unit 200 to generate a first sampling signal, and the first sampling signal is fed back to the first controller 300, so that the first sampling signal is compared with the original first detection signal through the first controller 300, so as to timely detect whether the DI port is abnormal. Therefore, the embodiment of the present application forms a self-detection feedback mechanism inside the switch input board by integrating the self-detection and sampling circuit 20 in the switch input board, which can effectively avoid the problem of false detection or missed detection caused by external interference in harsh environments, not only effectively suppressing the interference of external environmental changes on the detection of the DI port 10, ensuring the accuracy and real-time nature of the detection results, but also reducing the time cost and labor cost of detection in harsh environments, greatly improving the detectability and reliability of the DI port 10.

[0056] In order to realize the self-detection of the DI port, the embodiment of the present application sets another set of DO ports (including DO+ port and DO- port) on the switch input board. The first controller 300 outputs the first detection signal to the DI port 10 through the signal output unit 100, and switches the DI port 10 to the above-mentioned DO port through the selector 400, so as to transfer the above-mentioned first detection signal to the signal collection unit 200 and generate a corresponding first sampling signal, which can truly reflect the signal output state on the DI port 10. Finally, the signal feedback mechanism of self-detection is realized by feeding the first sampling signal back to the first controller 300.

[0057] Furthermore, if Figure 2 As shown, in some embodiments of the present application, the signal output unit 100 includes a first solid-state relay 110 and a first protection circuit 120;

[0058] The first solid-state relay 110 is configured to receive a control signal from the first controller 300 and to close a contact according to the control signal to generate a first detection signal and send it to the DI port 10;

[0059] The first protection circuit 120 is configured to provide overvoltage protection for the input terminal of the first solid-state relay 110 .

[0060] Further, in some embodiments of the present application, Figure 2 As shown, the first input end of the first solid-state relay 110 is connected in series with the first current limiting resistor R1 and connected to the power supply, the second input end of the first solid-state relay 110 is connected to the control output port DOUT1 of the first controller 300, the first output end of the first solid-state relay 110 is connected in series with the second current limiting resistor R2 and configured as the DO+ port of the information output unit 100, and the second output end of the first solid-state relay 110 is configured as the DO- port of the information output unit 100.

[0061] In some embodiments of the present application, the first solid-state relay 110 is a photoelectric solid-state relay of model HSSR-DA05 to achieve signal generation and isolation.

[0062] The embodiment of the present application utilizes the first solid-state relay 110 to realize the self-detection signal generation of the DI port 10, so as to truly reflect the output state of the DI port 10, so as to facilitate subsequent signal comparison and abnormal state detection. Specifically, after receiving the control signal sent by the first controller 300, the light-emitting diode at the optical coupling end is turned on through the first input end and the second input end of the first solid-state relay 110, so that the first output end of the first solid-state relay 110 generates the above-mentioned first detection signal and sends it to the DI port 10.

[0063] The first protection circuit 120 includes a first TVS tube (transient voltage suppressor diode, Transient Voltage Suppressor) D1, wherein a first end of the TVS tube D1 is connected to the DO+ port, and a second end of the first TVS tube D2 is connected to the DO- port.

[0064] The embodiment of the present application provides an overvoltage protection mechanism for the output end of the first solid-state relay 110 through the TVS tube, which can effectively prevent damage to the first solid-state relay 110 caused by high voltage or other abnormal power supply interference, and ensure that the signal recovery unit operates stably in a complex circuit environment.

[0065] In the embodiments of the present application, Figure 3 As shown, the signal recovery unit 200 includes a second solid-state relay 210 and a second protection circuit 220, wherein the second solid-state relay 210 is configured to receive a first detection signal, and to close contacts according to the first detection signal to generate a first sampling signal, and to send the first sampling signal to the first controller 300; the second protection circuit 220 is configured to provide overvoltage protection for the input end of the second solid-state relay 210.

[0066] Further, the first input end of the second solid-state relay 210 is connected in series with the third current limiting resistor R3 and then connected to the DI+ port of the DI port, the second input end of the second solid-state relay 210 is connected to the DI- port of the DI port, a filter capacitor C1 is connected between the first input end and the second input end of the second solid-state relay 210, the first output end of the second solid-state relay 210 is connected to the detection port gpio1 of the first controller 300, and the second output end of the second solid-state relay 210 is grounded. At the same time, the first output end of the second solid-state relay 210 is connected in series with the fourth current limiting resistor R4 and then connected to the power supply.

[0067] The embodiment of the present application utilizes the second solid-state relay 210 to realize the signal collection of the DI port 10, and utilizes the first sampling signal generated by the collection to truly reflect the input state of the DI port 10, so as to facilitate subsequent signal comparison and abnormal state detection. Specifically, after the DI+ port and the DI- port receive the above-mentioned first detection signal, the light-emitting diode at the optocoupler end is turned on through the first input end and the second input end of the second solid-state relay 20, so that the first output end of the second solid-state relay 210 generates the above-mentioned first sampling signal, and sends it to the first detection port gpio1 of the first controller 300.

[0068] Subsequently, the first controller 300 compares the first sampling signal and the first detection signal to see whether they meet the requirements, for example, whether the signal waveforms are consistent. If they are consistent, it is determined that no abnormality occurs in the DI port 10; if they are inconsistent, it is determined that an abnormality occurs in the DI port 10.

[0069] Compared with mechanical relays, the solid-state relay used in the embodiment of the present application can improve the response speed of DI port signal acquisition, and the device life is longer, which greatly improves the accuracy and stability of DI port detection.

[0070] Further, in some embodiments of the present application, Figure 3 As shown, the second protection circuit 120 includes a second TVS tube D2 and a diode D3;

[0071] Among them, the first end of the second TVS tube D2 is connected to the DI+ port, and the second end of the second TVS tube D2 is connected to the DI- port; the anode of the diode D3 is connected to the second input end of the second solid-state relay 210, and the cathode of the diode D3 is connected to the second end of the second TVS tube D2.

[0072] In the embodiment of the present application, the second TVS tube D2 is used to provide overvoltage protection. One end of the second TVS tube D2 is connected to the DI+ port, and the other end is connected to the DI- port. When the input end is overvoltage or transient high voltage, the second TVS tube D2 will quickly turn on and shunt the excess current to the ground, thereby protecting the second solid-state relay 210 and subsequent circuits from being damaged by overvoltage. The diode D3 is used to prevent the reverse current from damaging the second solid-state relay 210. The anode of the diode D3 is connected to the second input end of the second solid-state relay 210, and the cathode of the diode D3 is connected to the second end of the second TVS tube D2, that is, the DI- port, thereby ensuring that the current flows in a predetermined direction under normal working conditions. When the input voltage is reversed or exceeds the rated range, the diode D3 will prevent the reverse current from flowing into the second solid-state relay 210, further improving the anti-interference performance of the signal recovery unit 200.

[0073] It should be noted that the embodiment of the present application realizes the connection switching of the DI port 10 between the signal recovery unit 200 and the external load through the above-mentioned selector 400, and the above-mentioned selector 400 includes but is not limited to circuit components with signal selection function such as multi-pole multi-throw switches, relay chips, and logic selection chips. The input end of the selector 400 is connected to the DI port 10, and the corresponding channel is selected according to the signal on the DI port. In the case where the selector 400 receives the first drive signal, it means that the DI port 10 normally inputs the switch quantity to the outside, and the selector 400 selects the connection channel between the DI port 10 and the external load. In the case where the selector 400 receives the above-mentioned first detection signal, it means that the DI port 10 needs to be self-detected. At this time, the selector 400 selects the connection channel between the DI port 10 and the signal recovery unit 200, and disconnects the connection channel between the DI port 10 and the external load. Therefore, in the process of self-detecting the DI port 10, the DI port 10 will not input the switch quantity from controlling the external load.

[0074] In order to ensure that the selector 400 can stably and reliably complete the connection switching between the DI port and the signal recovery unit 200 and the external load, the embodiment of the present application also sets a corresponding signal recovery unit for the selector 400. Similarly, the signal recovery unit can realize the signal recovery and isolation of the output end of the selector 400 through the third solid-state relay to obtain the third sampling signal. The input end of the third solid-state relay is connected to the output end of the selector 400, and the output end of the third solid-state relay is connected to the third detection port gpio2 of the first controller 300.

[0075] Similarly, the first controller 300 is also configured to drive the DI port 10 to output a third detection signal and send it to the input end of the selector 400, and sample the signal on the output end of the selector 400 through the signal sampling unit set corresponding to the selector 400 to obtain a third sampling signal.

[0076] The first controller 300 is further configured to compare the third detection signal with the third sampling signal, and detect whether an abnormality occurs in the selector 400 according to the comparison result. Specifically, the first controller 300 compares the third sampling signal with the third detection signal to see whether they meet the requirements, such as whether the signal waveforms are consistent. If they are consistent, it is determined that no abnormality occurs in the selector 400, and if they are inconsistent, it is determined that an abnormality occurs in the selector 400.

[0077] The embodiment of the present application configures the above-mentioned signal acquisition unit corresponding to the selector 400 to effectively detect the working status of the selector 400, thereby forming a self-detection feedback mechanism inside the switch input board, which can effectively avoid false detection or missed detection problems caused by external interference in harsh environments, and can ensure the detectability and reliability of the selector 400 in harsh environments.

[0078] Accordingly, an embodiment of the present application proposes a switch input board, comprising a plurality of DI signal acquisition units and a self-detection and recovery circuit 20 according to the above embodiment, wherein the input end of each DI signal acquisition unit is respectively configured as a DI port 10, and the self-detection and recovery circuit 20 is configured corresponding to the DI port 10.

[0079] In an embodiment of the present application, a DI port 10 on a switch quantity input board is set through a DI signal acquisition unit. When the switch quantity input board is in normal working mode, the switch quantity sent by an external load is received through the DI port 10 on the DI signal acquisition unit. When the switch quantity input board is in self-detection mode, the first detection signal sent by the self-detection feedback circuit 20 is received through the DI port 10 on the DI signal acquisition unit to detect whether the DI port 10 of the above-mentioned DI signal acquisition unit is abnormal.

[0080] Furthermore, in order to improve the reliability of the switch input card in a relatively harsh industrial environment, the DI signal acquisition unit in the embodiment of the present application adopts a redundant design, and the DI signal acquisition unit includes a main DI signal acquisition unit and a backup DI signal acquisition unit;

[0081] The DI ports of the main DI signal acquisition unit and the backup DI signal acquisition unit are both designed to be redundant, and the DI ports include a main DI port and a backup DI port.

[0082] Among them, during normal operation, the main DI signal acquisition unit is responsible for receiving the switch quantity of the external load and the first detection signal sent by the self-detection recovery circuit 20. The standby DI signal acquisition unit is in standby state when the main DI signal acquisition unit works normally. In the event of an abnormality in the main DI signal acquisition unit, the internal logic circuit of the switch quantity input board will be switched to the standby DI signal acquisition unit, so that the standby DI signal acquisition unit takes over the reception of the switch quantity and the first detection signal, ensuring the normal operation of the switch quantity input board.

[0083] The embodiment of the present application adopts a redundantly designed DI signal acquisition unit. The main DI signal acquisition unit is responsible for the DO signal output under normal circumstances, while the backup DI signal acquisition unit is enabled when an abnormality occurs in the main DI signal acquisition unit. This improves the reliability and fault tolerance of the self-detection and recovery circuit, and helps the switch input board to accurately and stably complete self-detection in harsh external environments.

[0084] In the embodiments of the present application, Figure 4 As shown, the above-mentioned switch input board also includes a health management unit 40, which includes a voltage detection circuit 410, a current detection circuit 420, a temperature detection circuit 430 and a second controller 400. The voltage detection circuit 410 is configured to collect the working voltage of the switch input board, the current detection circuit 420 is configured to collect the working current of the switch input board, the temperature detection circuit 430 is configured to detect the working temperature of the switch input board, and the second controller 400 is configured to receive the working voltage, working current and working temperature, and to alarm when the working voltage, working current and working temperature exceed the preset rated range.

[0085] In some embodiments of the present application, the model of the second controller 400 is QJ32F103CBT6. The processor provides 128KB internal FLASH, 20KB internal SRAM, 3 UART interfaces, 2 I2C interfaces, 2 SPI interfaces, 37 GPIO interfaces, and 2 12-bit precision 2MSPS ADCs. The first controller has a total of 10 channels, and also provides 1 USB interface and 1 CAN interface, etc., to meet the functional requirements of the health management unit. In addition, the second controller 400 communicates with the first controller 300 through the UART bus, which is used to cut off the connection between the DI port 10 and the external load through the first controller 300 when an alarm occurs in the second controller 400.

[0086] Specifically, the voltage detection circuit 410 collects voltages through the 12-bit precision ADC of the second controller 400, and the voltage detection circuit 410 can collect up to 10 voltages at the same time. The built-in 12-bit ADC with an accuracy of 1% is used to measure each input, and the result is compared with the overvoltage threshold, undervoltage threshold, and the warning threshold configured as undervoltage or overvoltage. When the measured voltage exceeds the set threshold, a fault alarm signal is issued, and it can communicate with the host computer or management chip through the I2 C bus interface to achieve multiple modes of alarm. The ADC integrated in the second controller 400 collects voltages in the range of 0-3.6V, so voltages exceeding 3.6V need to be divided, and then the real voltage value is restored on the voltage value through the internal calculation formula. The current detection circuit 420 first converts the current to voltage through the operational amplifier, and then adjusts the output impedance through the voltage follower, and finally enters the MCU for AD acquisition. The temperature detection circuit 430 uses a temperature sensor model NST175H-QMSR, which is an integrated digital temperature sensor with a 12-bit analog-to-digital converter that can be powered by a 2.7V to 5.5V power supply. It can read the temperature with a resolution of 0.0625°C and is rated to operate within a temperature range of -55°C to +125°C. It has a digital output with a two-wire I2C interface and can communicate with a host computer or a dedicated management chip through the I2C bus to achieve real-time monitoring and management functions.

[0087] The embodiment of the present application detects the voltage, current and temperature of the switch input board through the voltage detection circuit 410, the current detection circuit 420 and the temperature detection circuit 430 in the health management unit 40, and alarms for abnormal detection results through the second controller 400, which helps to ensure the normal operation of the switch input board and improve the reliability and stability of the switch input board.

[0088] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0089] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.

[0090] For the convenience of description, the above device is described in terms of functions and is described separately in various units. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0091] 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.

[0092] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0093] The above is only an embodiment of the present application and is 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 in the scope of the claims of the present application.

[0094] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A self-detection and recovery circuit for a switch input card, characterized in that: The switch input board is provided with a plurality of independent DI ports, wherein the self-detection recovery circuit includes: a signal output unit, the signal output unit being configured to output a first detection signal and send the first detection signal to the DI port; A signal sampling unit, wherein the signal sampling unit is configured to sample the signal on the DI port to obtain a first sampling signal; A first controller is configured to control the signal output unit to output the first detection signal, compare the first detection signal with the first sampling signal, and detect whether an abnormality occurs in the DI port according to the comparison result.

2. The self-detection recovery circuit according to claim 1, characterized in that: The signal output unit comprises: a first solid-state relay, wherein the first solid-state relay is configured to receive a control signal from the first controller and to close a contact according to the control signal to generate the first detection signal and send the first detection signal to the DI port; A first protection circuit is configured to provide overvoltage protection for an output terminal of the first solid-state relay.

3. The self-detection recovery circuit according to claim 2, characterized in that: The first input end of the first solid-state relay is connected in series with the first current limiting resistor and connected to the power supply, the second input end of the first solid-state relay is connected to the control output port of the first controller, the first output end of the first solid-state relay is connected in series with the second current limiting resistor and configured as the DO+ port of the information output unit, and the second output end of the first solid-state relay is configured as the DO- port of the information output unit.

4. The self-detection recovery circuit according to claim 3, characterized in that: The first protection circuit includes a first TVS tube, wherein: A first end of the first TVS tube is connected to the DO+ port, and a second end of the first TVS tube is connected to the DO- port.

5. The self-detection recovery circuit according to claim 1, characterized in that: The signal recovery unit comprises: a second solid-state relay, the second solid-state relay being configured to receive the first detection signal, and to close a contact according to the first detection signal to generate the first sampling signal, and to send the first sampling signal to the first controller; A second protection circuit is configured to provide overvoltage protection for an input terminal of the second solid-state relay.

6. The self-detection recovery circuit according to claim 5, characterized in that: The first input end of the second solid-state relay is connected in series with the third current limiting resistor and connected to the DI+ port in the DI port, the second input end of the second solid-state relay is connected to the DI- port in the DI port, a filter capacitor is connected between the first input end and the second input end of the second solid-state relay, the first output end of the second solid-state relay is connected to the detection port of the first controller, and the second output end of the second solid-state relay is grounded.

7. The self-detection recovery circuit according to claim 6, characterized in that: The second protection circuit includes a second TVS tube and a diode; Wherein, the first end of the second TVS tube is connected to the DI+ port, and the second end of the second TVS tube is connected to the DI- port; The anode of the diode is connected to the second input terminal of the first solid-state relay, and the cathode of the diode is connected to the second end of the TVS tube.

8. A switch input card, characterized in that: The switch quantity input board comprises: A plurality of DI signal acquisition units, wherein the input end of each of the DI signal acquisition units is configured as a DI port; According to the self-detection recovery circuit according to any one of claims 1-7, the self-detection recovery circuit is configured corresponding to the DI port.

9. The switch input board according to claim 8, characterized in that: The DI signal acquisition unit adopts a redundant design, and the DI signal acquisition unit includes a main DI signal acquisition unit and a standby DI signal acquisition unit; The DI ports of the main DI signal acquisition unit and the backup DI signal acquisition unit are both designed to be redundant, and the DI ports include a main DI port and a backup DI port.

10. The switch input board according to claim 8, characterized in that: The switch input board also includes a health management unit, wherein the health management unit includes: A voltage detection circuit, wherein the voltage detection circuit is configured to collect the working voltage of the switch input card; A current detection circuit, wherein the current detection circuit is configured to collect the working current of the switch input card; A temperature detection circuit, wherein the temperature detection circuit is configured to detect the operating temperature of the switch input board; The second controller is configured to receive the operating voltage, the operating current and the operating temperature, and to generate an alarm when the operating voltage, the operating current and the operating temperature exceed a preset rated range.