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

By integrating a self-detection and recovery circuit inside the switch output board, self-detection of the DO port and relay unit is realized, the problem of difficulty in detecting the switch output interface function in harsh industrial environments is solved, and the accuracy and reliability of the detection are improved sex.

CN119471296APending Publication Date: 2025-02-18CHINA STATE SHIPBUILDING CORP LTD RESEARCH INSTITUTE 719
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411429107.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

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

Method used

The self-detection and recovery circuit is integrated inside the switching output board. By retrieving and comparing the detection signals output from the DO port, the self-detection of the DO port and the relay unit is realized to reduce external environment interference.

Benefits of technology

It realizes the timely detection of whether the switch output board function is normal in harsh environments, reduces the interference of the external environment to detection, improves the accuracy and real-timeness of detection, reduces time and labor costs, and improves the switch output board Reliability of the card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119471296A_ABST
    Figure CN119471296A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of detection circuits, and discloses a self-detection recovery circuit for an on-off output board card and the on-off output board card, and the self-detection recovery circuit comprises a first recovery unit which is configured to recover a first detection signal output by a DO port to generate a first sampling signal, a first detection signal output by the DO port is provided by a DO signal output unit of the switching value output board card; and the first controller is configured to control the DO signal output unit to output the first detection signal to the DO port, compare the first detection signal with the first sampling signal and detect whether the DO 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 output 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 DO 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 recovery circuit for a switch quantity output board and a switch quantity output board. Background Art

[0002] The switch output 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 output 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 output interface.

[0003] In order to ensure the normal function of the switch output interface, in the related technology, external detection equipment is usually used to detect the output function of the switch output 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 output interface. Summary of the invention

[0004] The present application provides a self-detection and recovery circuit and a switch quantity output board that can be used for a switch quantity output board, which solves the technical problem that the function detection of the switch quantity output interface is difficult in a relatively harsh industrial environment. By integrating a recovery circuit inside the switch quantity output board to realize self-detection of the DO (digital output) port, it is possible to timely detect whether the function of the switch quantity output board is normal, and reduce the interference of the external environment on the function detection of the switch quantity output board, thereby improving the reliability of the switch quantity output 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 recovery circuit for a switch output card, wherein the switch output card is provided with a plurality of mutually independent DO ports, wherein the self-detection recovery circuit comprises:

[0007] A first sampling unit, wherein the first sampling unit is configured to sample the first detection signal output by the DO port to generate a first sampling signal, wherein the first detection signal output by the DO port is provided by the DO signal output unit of the switch output board;

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

[0009] According to the self-detection sampling circuit proposed in the embodiment of the present application, the first detection signal output by the DO port is sampled by the first 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 DO port. Therefore, the embodiment of the present application forms a self-detection feedback mechanism inside the switch output board by integrating the self-detection sampling circuit in the switch output 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 DO 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 DO port.

[0010] Optionally, in some embodiments of the present application, the first recovery unit includes:

[0011] a first solid-state relay, the first 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;

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

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

[0014] The embodiment of the present application realizes signal collection of the DO port by using the first solid-state relay, and the first sampling signal generated by the collection truly reflects the output state of the DO 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 DO port signal collection, and the device life is longer, which greatly improves the accuracy and stability of DO port detection.

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

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

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

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

[0019] Optionally, in some embodiments of the present application, a relay unit is further provided on the switch output board, the relay unit is connected to the DO port, and the self-detection recovery circuit further includes a second recovery unit;

[0020] The second sampling unit is configured to sample the second detection signal output by the normally open contact of the relay unit to generate a second sampling signal, wherein the second detection signal output by the normally open contact of the relay unit is driven according to the third detection signal output by the DO port.

[0021] Optionally, in some embodiments of the present application, the input end of the second recovery unit is connected to the normally open contact of the relay unit, and the output end of the second recovery unit is connected to the second detection port of the first controller.

[0022] The embodiment of the present application realizes external transfer of the switch quantity output by the DO port by setting a relay unit, and can convert the low-voltage switch quantity originally output by the DO port into a high-voltage switch quantity that can drive an external load, thereby adapting to the equipment requirements of different voltage levels, and a second recovery unit is set corresponding to the relay unit to effectively detect the working status of the relay unit, thereby forming a self-detection feedback mechanism inside the switch quantity output board, which can effectively avoid false detection or missed detection problems caused by external interference in harsh environments, not only effectively suppressing the interference of external environmental changes on relay unit detection, ensuring that the relay unit effectively and accurately transfers the switch quantity output by the DO port to the outside, but also can reduce the time cost and labor cost of relay unit detection in harsh environments, greatly improving the detectability and reliability of the relay unit.

[0023] Optionally, in some embodiments of the present application, the first controller is further configured to compare the second detection signal with the second sampling signal, and detect whether an abnormality occurs in the relay unit based on the comparison result.

[0024] The embodiment of the present application receives a second detection signal reflecting the working state of the normally open contact of the relay unit through the first controller, and compares the second detection signal with the second sampling signal generated by the second sampling unit, so as to detect whether an abnormality occurs in the relay unit based on the comparison result, so as to timely identify abnormal relay operation, thereby greatly improving the reliability of the relay unit.

[0025] In a second aspect, an embodiment of the present application provides a switch output card, including:

[0026] A plurality of DO signal output units, wherein the output end of each of the DO signal output units is configured as a mutually independent DO port;

[0027] A relay unit, wherein an input end of the relay unit is connected to the DO port, and an output end of the relay unit is connected to an external load;

[0028] According to the self-detection recovery circuit described in any one of the above embodiments, the self-detection recovery circuit is configured corresponding to the DO port and the relay unit.

[0029] The switch output card proposed in the embodiment of the present application detects the working status of the DO port and the relay unit through the above-mentioned self-detection feedback circuit, and timely detects whether the DO port and the relay unit are abnormal. Therefore, the embodiment of the present application forms a self-detection feedback mechanism inside the switch output card by integrating the self-detection feedback circuit in the switch output 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 DO port detection and relay unit 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 output card.

[0030] Optionally, in some embodiments of the present application, the DO signal output unit adopts a redundant design, wherein the DO signal output unit includes a main DO signal output unit and a backup DO signal output unit.

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

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

[0033] A voltage detection circuit, wherein the voltage detection circuit is configured to collect the working voltage of the switch output board;

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

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

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

[0037] The embodiment of the present application detects the voltage, current and temperature of the switch output 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 output board and improve the reliability and stability of the switch output board. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0040] Figure 2 A circuit structure diagram of the first recovery unit proposed in an embodiment of the present application;

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

[0042] Figure 4 A circuit diagram of a relay unit according to an embodiment of the present application;

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

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

[0045] As an important component of industrial control systems, the switch output 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 output interface.

[0046] In the related art, the switch output interface usually uses an external detection device to detect the output function of the switch output 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 output interface, resulting in low detection efficiency.

[0047] 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 output interface and may affect the effective detection of the switch output interface by external detection equipment, thereby reducing the stability, reliability and detectability of the switch output interface.

[0048] In this embodiment, a self-detection and recovery circuit for a switch output 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.

[0049] like Figure 1As shown, the switch output board is provided with a plurality of mutually independent DO ports 10, including DO1, DO2, ..., DOn-1 and DOn total n-way output ports, wherein the self-detection recovery circuit 20 comprises: a first recovery unit 100 and a first controller 200;

[0050] The first sampling unit 100 is configured to sample the first detection signal output by the DO port 10 to generate a first sampling signal, wherein the first detection signal output by the DO port 10 is provided by the DO signal output unit 30 of the switch output card;

[0051] The first controller 200 is configured to control the DO signal output unit 30 to output a first detection signal to the DO port 10 , compare the first detection signal with the first sampling signal, and detect whether an abnormality occurs in the DO port 10 according to the comparison result.

[0052] The self-detection sampling circuit provided in this embodiment samples the first detection signal output by the DO port 10 through the first sampling unit 100 to generate a first sampling signal, and feeds the first sampling signal back to the first controller 200, so that the first sampling signal is compared with the original first detection signal through the first controller 200, thereby timely detecting whether an abnormality occurs in the DO port 10.

[0053] Therefore, the embodiment of the present application forms an internal feedback mechanism by integrating a self-detection feedback circuit in the switch output board, which can effectively avoid false detection or missed detection problems caused by external interference in harsh environments. It not only effectively suppresses the interference of external environmental changes on DO port detection, ensuring the accuracy and real-time performance of DO port detection, but also can reduce the time and labor costs of DO port detection in harsh environments, greatly improving the detectability and reliability of the DO port.

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

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

[0056] The first solid-state relay 110 is configured to receive a first detection signal, and to close a contact according to the first detection signal to generate a first sampling signal, and to send the first sampling signal to the first controller 200;

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

[0058] 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 current-limiting resistor R1 and is configured as the DI+ port of the first recovery unit 100, the second input end of the first solid-state relay 110 is configured as the DI- port of the first recovery unit 100, a filter capacitor C1 is connected between the first input end and the second input end of the first solid-state relay 110, the first output end of the first solid-state relay 110 is connected to the first detection port gpio1 of the first controller 200, and the second output end of the first solid-state relay 110 is grounded.

[0059] 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 recovery and isolation.

[0060] The embodiment of the present application utilizes the first solid-state relay 110 to realize the signal collection of the DO port 10, and utilizes the first sampling signal generated by the collection to truly reflect the output state of the DO 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 first solid-state relay 110, so that the first output end of the first solid-state relay 110 generates the above-mentioned first sampling signal, and sends it to the first detection port gpio1 of the first controller 200. At the same time, the first output end of the first solid-state relay 110 is also connected in series with the current limiting resistor R4 and then connected to the power supply.

[0061] Subsequently, the first controller 200 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 at the DO port 10; if they are inconsistent, it is determined that an abnormality occurs at the DO port 10.

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

[0063] Further, in some embodiments of the present application, Figure 2As shown, the protection circuit 120 includes a TVS tube (transient voltage suppressor diode, Transient Voltage Suppressor) D1 and a diode D2;

[0064] The first end of the TVS tube D1 is connected to the DI+ port, and the second end of the TVS tube D2 is connected to the DI- port; the anode of the diode D2 is connected to the second input end of the first solid-state relay 110, and the cathode of the diode D2 is connected to the second end of the TVS tube D1.

[0065] In the embodiment of the present application, the TVS tube D1 is used to provide overvoltage protection. One end of the TVS tube D1 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 TVS tube D1 will quickly turn on and shunt the excess current to the ground, thereby protecting the first solid-state relay 110 and subsequent circuits from being damaged by overvoltage. The diode D2 is used to prevent the reverse current from damaging the first solid-state relay 110. The anode of the diode D2 is connected to the second input end of the first solid-state relay 110, and the cathode is connected to the second end of the TVS tube D1, 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 D2 will prevent the reverse current from flowing into the first solid-state relay 110, further improving the anti-interference performance of the first recovery unit 100.

[0066] In some embodiments of the present application, a relay unit 40 is further provided on the switch output board, and the relay unit 40 is connected to the DO port 10 .

[0067] In some control system application scenarios, the current range that the DO port 10 can withstand is limited, so a switch quantity with an excessively high voltage may damage the DO port 10, resulting in an inability to control an external load with a higher driving voltage through the DO port 10 on the switch quantity output board. In order to meet the driving requirements of more external loads, the embodiment of the present application is provided with a relay 40 connected to the DO port 10, and the relay 40 amplifies and externally transfers the switch quantity output by the DO port 10, thereby expanding the voltage range of the switch quantity that the switch quantity output board can output.

[0068] The relay unit 40 includes a normally closed contact NC and a normally open contact NO. In order to ensure the stability and reliability of the relay unit 40, the self-detection recovery circuit proposed in the embodiment of the present application also includes a second recovery unit 400, such as Figure 3 As shown, the second sampling unit 400 is configured to sample the second detection signal output by the normally open contact NO of the relay unit 40 to generate a second sampling signal, wherein the second detection signal output by the normally open contact NO of the relay unit 40 is driven according to the third detection signal output by the DO port 10.

[0069] Specifically, Figure 4 As shown, the relay unit 40 includes a second solid-state relay 410, wherein the cathode of the flywheel diode D3 is connected to the first input terminal of the second solid-state relay 410, the anode of the flywheel diode D3 is respectively connected to the second input terminal of the second solid-state relay 410 and the drain of the MOS tube Q1, the source of the MOS tube Q1 is grounded, the gate of the MOS tube Q1 is connected in series with the first voltage-dividing resistor R2 and connected to the DO port 10, and the second voltage-dividing resistor R3 is connected between the source and the gate of the MOS tube Q1. The first controller 200 drives the DO port 10 to generate a second detection signal of 24V, and after the voltage is divided by the first voltage-dividing resistor R2 and the second voltage-dividing resistor R3, the MOS tube Q1 is driven to conduct, thereby making the normally open contact NC and the common contact COM of the second solid-state relay 410 close. When the output of the DO port 10 is low level, the MOS tube Q1 is turned off, and the coil energy of the second solid-state relay 410 is freewheeled through the flywheel diode D3 to avoid damage to the MOS breakdown tube. In some embodiments of the present application, the model of the second solid-state relay 410 is HF49FD / 024-1H11FL, the model of the MOS tube Q1 is 2N7002K, and the model of the freewheeling diode D3 is IN4148.

[0070] Furthermore, the input end of the second recovery unit 400 is connected to the normally open contact NO of the relay unit 40 , and the output end of the second recovery unit 300 is connected to the second detection port gpio2 of the first controller 200 .

[0071] In some embodiments of the present application, similarly, the second recovery unit 400 can realize the recovery and isolation of the second detection signal through a solid-state relay of model HSSR-DA05. The first controller 200 drives the DO port 10 to output a second detection signal with a voltage of 24V.

[0072] Further, the first controller 200 is also configured to compare the second detection signal with the second sampling signal, and detect whether an abnormality occurs in the relay unit 40 according to the comparison result. Specifically, the first controller 200 compares whether the second sampling signal and the second detection signal meet the requirements, such as whether the signal waveforms are consistent. If they are consistent, it is determined that the relay unit 40 is not abnormal, and if they are inconsistent, it is determined that the relay unit 40 is abnormal.

[0073] The embodiment of the present application corresponds to the relay unit 40 and is provided with the above-mentioned second recovery unit 400 to effectively detect the working status of the relay unit 40, thereby forming a self-detection feedback mechanism inside the switch output board, which can effectively avoid false detection or missed detection problems caused by external interference in harsh environments. It not only effectively suppresses the interference of external environmental changes on the detection of the relay unit 40, ensuring that the relay unit 40 effectively and accurately transfers the switch quantity output by the DO port 10 to the outside, but also can reduce the time cost and labor cost of detecting the relay unit 40 in harsh environments, greatly improving the detectability and reliability of the relay unit 40.

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

[0075] In order to ensure that the selector 300 can stably and reliably complete the connection switching between the DO port 10 and the first recovery unit 100 and the relay unit 40, the embodiment of the present application also sets a corresponding third recovery unit for the selector 300. Similarly, the third recovery unit can realize the signal recovery and isolation of the output end of the selector 300 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 300, and the output end of the third solid-state relay is connected to the third detection port gpio3 of the first controller 200.

[0076] Further, the first controller 200 is further configured to drive the DO port 10 to output a third detection signal, and compare the third detection signal with the third sampling signal, and detect whether an abnormality occurs in the selector 300 according to the comparison result. Specifically, the first controller 200 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 300, and if they are inconsistent, it is determined that an abnormality occurs in the selector 300.

[0077] In the embodiment of the present application, the selector 300 is provided with the above-mentioned third recovery unit to effectively detect the working status of the selector 300, thereby forming a self-detection feedback mechanism inside the switch output 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 300 in harsh environments.

[0078] Accordingly, the embodiment of the present application proposes a switch output board, including a plurality of DO signal output units 30, a relay unit 40, and a self-detection recovery circuit 20 according to the above embodiment. The output end of each DO signal output unit 30 is configured as a mutually independent DO port 10, the input end of the relay unit 40 is connected to the DO port 10, the output end of the relay unit 40 is connected to an external load, and the self-detection recovery circuit is configured corresponding to the DO port 10 and the relay unit 40.

[0079] In an embodiment of the present application, a DO port 10 on a switch output board is set through a DO signal output unit 30. When the switch output board is in normal working mode, the switch quantity for controlling the external load is sent through the DO port 10 on the DO signal output unit 30. When the switch output board is in self-detection mode, a first detection signal is sent to the self-detection recovery circuit 20 through the DO port 10 on the DO signal output unit 30 to detect whether the DO port 10 of the above-mentioned DO signal output unit 30 is abnormal.

[0080] Furthermore, in order to improve the reliability of the switch output board in a relatively harsh industrial environment, the above-mentioned DO signal output unit 30 in the embodiment of the present application adopts a redundant design, that is, the DO signal output unit 30 includes a main DO signal output unit and a backup DO signal output unit.

[0081] Among them, during normal operation, the main DO signal output unit is responsible for outputting the switch quantity for controlling the external load and the detection signal for the self-detection of the DO port 10. The standby DO signal output unit is in standby state when the main DO signal output unit is working normally. In the case of an abnormality in the main DO signal output unit, the internal logic circuit of the switch quantity output board will be switched to the standby DO signal output unit, so that the standby DO signal output unit takes over the output of the switch quantity and the detection signal, ensuring the normal operation of the switch quantity output board.

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

[0083] In the embodiments of the present application, Figure 5 As shown, the above-mentioned switch output board also includes a health management unit 50, which includes a voltage detection circuit 510, a current detection circuit 520, a temperature detection circuit 530 and a second controller 500. The voltage detection circuit 510 is configured to collect the working voltage of the switch output board, the current detection circuit 520 is configured to collect the working current of the switch output board, the temperature detection circuit 530 is configured to detect the working temperature of the switch output board, and the second controller 500 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.

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

[0085] Specifically, the voltage detection circuit 510 collects voltages through the 12-bit precision ADC of the second controller 500, and the voltage detection circuit 510 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 compare the result 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, thereby realizing multiple modes of alarm. The ADC integrated in the second controller 500 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 520 first converts current to voltage through an operational amplifier, then adjusts the output impedance through voltage following, and finally enters the MCU for AD acquisition. The temperature detection circuit 530 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 can be rated to operate in 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.

[0086] The embodiment of the present application detects the voltage, current and temperature of the switch output board through the voltage detection circuit 510, the current detection circuit 520 and the temperature detection circuit 530 in the health management unit 50, and alarms for abnormal detection results through the second controller 500, which helps to ensure the normal operation of the switch output board and improve the reliability and stability of the switch output board.

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

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

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

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

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

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

[0093] 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 recovery circuit for a switch output card, characterized in that: The switch output board is provided with a plurality of mutually independent DO ports, wherein the self-detection recovery circuit comprises: A first sampling unit, wherein the first sampling unit is configured to sample the first detection signal output by the DO port to generate a first sampling signal, wherein the first detection signal output by the DO port is provided by the DO signal output unit of the switch output board; A first controller is configured to control the DO signal output unit to output the first detection signal to the DO port, compare the first detection signal with the first sampling signal, and detect whether an abnormality occurs in the DO port according to the comparison result.

2. The self-detection recovery circuit according to claim 1, characterized in that: The first recovery unit comprises: a first solid-state relay, the first 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 protection circuit is configured to provide overvoltage protection for an input 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 current-limiting resistor and is configured as the DI+ port of the first recovery unit. The second input end of the first solid-state relay is configured as the DI- port of the first recovery unit. A filter capacitor is connected between the first input end and the second input end of the first solid-state relay. The first output end of the first solid-state relay is connected to the first detection port of the first controller, and the second output end of the first solid-state relay is grounded.

4. The self-detection recovery circuit according to claim 3, characterized in that: The protection circuit includes a TVS tube and a diode; Wherein, the first end of the TVS tube is connected to the DI+ port, and the second end of the 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.

5. The self-detection recovery circuit according to claim 1, characterized in that: The switch output board is also provided with a relay unit, the relay unit is connected to the DO port, and the self-detection recovery circuit also includes a second recovery unit; The second sampling unit is configured to sample the second detection signal output by the normally open contact of the relay unit to generate a second sampling signal, wherein the second detection signal output by the normally open contact of the relay unit is driven according to the third detection signal output by the DO port.

6. The self-detection recovery circuit according to claim 5, characterized in that: The input end of the second recovery unit is connected to the normally open contact of the relay unit, and the output end of the second recovery unit is connected to the second detection port of the first controller.

7. The self-detection recovery circuit according to claim 5, characterized in that: The first controller is further configured to compare the second detection signal with the second sampling signal, and detect whether an abnormality occurs in the relay unit according to the comparison result.

8. A switch output card, characterized in that: The switch output board includes: A plurality of DO signal output units, wherein the output end of each of the DO signal output units is configured as a mutually independent DO port; A relay unit, wherein an input end of the relay unit is connected to the DO port, and an output end of the relay unit is connected to an external load; 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 DO port and the relay unit.

9. The switch output board according to claim 8, characterized in that: The DO signal output unit adopts a redundant design, wherein the DO signal output unit includes a main DO signal output unit and a backup DO signal output unit.

10. The switch output board according to claim 8, characterized in that: The switch output 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 output board; A current detection circuit, wherein the current detection circuit is configured to collect the working current of the switch output card; A temperature detection circuit, wherein the temperature detection circuit is configured to detect the operating temperature of the switch output 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.