Relay self-checking circuit and function test system
By designing a relay self-test circuit and using a controller to determine the status of the working relay, the problem of low reliability and stability of relays in fully automatic control function testing systems is solved, enabling rapid fault location and improved system stability.
Patent Information
- Application Number
- CN202421210013.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2034-05-29
AI Technical Summary
In existing technologies, relays suffer from low reliability and stability in fully automatic control function testing systems, leading to inaccurate test results.
A relay self-test circuit was designed, including a working relay, a self-test relay, and a controller. The controller controls the working state of the relays and receives the detection signal from the self-test relay to determine whether the working relay is faulty, thus avoiding false judgments.
It improves the reliability and stability of the functional testing system, quickly locates faulty relays, and increases the speed of maintenance and replacement.
Smart Images

Figure CN222319343U_ABST
Abstract
Description
[Technical field]
[0001] The utility model relates to the technical field of modern automation systems, in particular to a relay self-test circuit and a function test system. [Background technology]
[0002] In modern automation systems, fully automatic control function test systems require a large number of relays to achieve line switching to ensure the normal operation of each function in the circuit during the test. However, during the operation of the relay, the relay may fail, which will lead to system instability and inaccurate test results.
[0003] At present, the self-test circuit of ordinary relays is rare and does not meet the needs of current projects. Therefore, how to improve the reliability and stability of the fully automatic control function test system is a technical problem that needs to be solved urgently in the existing technology. [Contents of the utility model]
[0004] The embodiment of the utility model provides a relay self-test circuit and a function test system, aiming to solve the technical problems of low reliability and low stability caused by the function test system in the prior art when using relays to switch circuits.
[0005] In order to solve the above technical problems, a technical solution adopted by the embodiment of the utility model is: providing a relay self-test circuit, the relay self-test circuit comprising a working relay, a self-test relay and a controller, wherein the self-test relay comprises a first contact group and a second contact group;
[0006] The first contact group is connected to the input end of the working relay and the reference power supply respectively, the second contact group is connected to the output end of the working relay and the controller respectively, and the controller is connected to the control coil of the working relay and the self-test relay respectively;
[0007] The controller is used to control the working states of the working relay and the self-test relay respectively, and to receive the detection signal output by the self-test relay, and to determine whether the working relay is faulty based on the working states of the working relay and the self-test relay and the detection signal.
[0008] Optionally, the controller includes a control output terminal and a signal sampling terminal;
[0009] The control output end is connected to the control coils of the working relay and the self-test relay respectively, and the signal sampling end is connected to the self-test relay.
[0010] Optionally, the relay self-test circuit further includes a voltage division module;
[0011] The voltage dividing module is connected to the second contact group of the self-test relay and the controller respectively;
[0012] The voltage division module is used to receive the detection signal output by the self-test relay, and input the detection signal into the controller after voltage division, so that the detection signal matches the controller.
[0013] Optionally, the voltage dividing module includes a resistor R1 and a resistor R2;
[0014] The first end of the resistor R1 is connected to the second contact group of the self-test relay, the second end of the resistor R1 is connected to the controller, and the second end of the resistor R1 is also grounded through the resistor R2.
[0015] Optionally, the relay self-test circuit further includes a voltage stabilization module;
[0016] The voltage stabilizing module is respectively connected to the second contact group of the self-test relay and the controller;
[0017] The voltage stabilization module is used to control the voltage value of the detection signal when the voltage value of the detection signal exceeds a preset value, so that the voltage value of the detection signal is within a preset voltage range.
[0018] Optionally, the voltage stabilizing module is a voltage stabilizing tube ZD1;
[0019] The cathode of the voltage-stabilizing tube ZD1 is connected to the second contact group of the self-test relay and the controller respectively, and the anode of the voltage-stabilizing tube ZD1 is used for grounding.
[0020] Optionally, the relay self-test circuit further includes an anti-backflow module;
[0021] The backflow prevention module is connected to the reference power supply and the controller respectively, and the backflow prevention module is also connected to the first contact group and the second contact group of the self-test relay;
[0022] The backflow prevention module is used to prevent the current in the working relay from flowing to the reference power supply when the working relay and the self-test relay switch working states; and
[0023] Current in the controller is prevented from flowing to the self-test relay.
[0024] Optionally, the anti-backflow module includes a diode D1 and a diode D2;
[0025] The anode of the diode D1 is connected to the reference power supply, the cathode of the diode D1 is connected to the first contact group of the self-test relay, the anode of the diode D2 is connected to the second contact group of the self-test relay, and the cathode of the diode D2 is connected to the controller.
[0026] Optionally, the working relay includes at least one contact group, and the relay self-test circuit includes at least one self-test relay;
[0027] At least one contact group of the working relay is correspondingly connected to the at least one self-test relay.
[0028] In order to solve the above technical problems, another technical solution adopted by the embodiment of the utility model is: to provide a function test system, the function test system comprising:
[0029] Working circuit; and
[0030] The relay self-test circuit as described above, wherein the relay self-test circuit is connected to the working circuit.
[0031] Different from the related art, the utility model provides a relay self-test circuit and a function test system, wherein the relay self-test circuit includes a working relay, a self-test relay and a controller, wherein the self-test relay includes a first contact group and a second contact group; the first contact group is respectively connected to the input end of the working relay and the reference power supply, the second contact group is respectively connected to the output end of the working relay and the controller, and the controller is respectively connected to the control coil of the working relay and the self-test relay. The controller is used to control the working state of the working relay and the self-test relay respectively, so as to determine the detection signal received by the controller under normal circumstances based on the working state, so as to avoid regarding the fault of the self-test relay as the fault of the working relay; and receive the detection signal output by the self-test relay, and judge whether the working relay is faulty based on the working state of the working relay and the self-test relay and the detection signal. Thus, the position of the faulty relay can be quickly located, which helps to speed up the repair and replacement of the relay, thereby improving the reliability and stability of the function test system.
Brief Description of the Drawings
[0032] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0033] Figure 1 It is a structural block diagram of a functional testing system provided by an embodiment of the utility model;
[0034] Figure 2 It is a structural block diagram of a relay self-test circuit provided by an embodiment of the utility model;
[0035] Figure 3 This is a logic diagram of a relay working according to an embodiment of the utility model;
[0036] Figure 4 The utility model provides a circuit diagram of a relay self-test circuit. [Specific implementation method]
[0037] In order to make the purpose, technical solution and advantages of the utility model more clear, the utility model is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the utility model and are not used to limit the utility model.
[0038] The technical features involved in the various embodiments of the present application described below do not conflict with each other and can be combined with each other.
[0039] When an element is referred to as being “connected to” another element, it can be directly connected to the other element, or one or more intervening elements may be present therebetween.
[0040] The terms "first", "second", etc. in the specification and claims of the present utility model are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more.
[0041] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art in the technical field of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not used to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.
[0042] See also Figure 1 , Figure 1 is a structural block diagram of a functional test system provided by an embodiment of the utility model, such as Figure 1As shown, the functional test system 100 includes a working circuit 10 and a relay self-test circuit 20, wherein the working circuit 10 includes a plurality of working modules 11, and the plurality of working modules 11 correspond to different functions, such as power supply, voltage conversion, etc. Figure 2 As shown, the relay self-test circuit 20 includes a working relay K1, wherein the working relay K1 includes a plurality of working relays K1, and the plurality of working relays K1 are correspondingly connected to the plurality of working modules 11. When the functional test system 100 starts working, the working relay K1 will switch the circuit based on the test purpose of the working circuit 10 to gradually test the working modules 11 with different functions. For example, if it is necessary to test the voltage conversion function of the working circuit 10, the corresponding working relay K1 is controlled to close so that the working module 11 with the voltage conversion function starts working, and determines whether the voltage conversion function of the working circuit 10 is normal according to the working result. Among them, the functional test system 100 can be any functional test system that has the function of switching circuits through relays.
[0043] In some embodiments, Figure 1 As shown, the functional testing system 100 further includes a reference power supply 30 , which is connected to the relay self-test circuit 20 . The reference power supply 30 is used to provide a detection signal for the relay self-test circuit 20 .
[0044] For further information, see Figure 2 , Figure 2 : is a structural block diagram of a relay self-test circuit provided by an embodiment of the utility model, such as Figure 2 As shown, the relay self-test circuit 20 includes a working relay K1, a self-test relay K2 and a controller 21; wherein the self-test relay K2 includes a first contact group and a second contact group;
[0045] The first contact group is connected to the input end of the working relay K1 and the reference power supply 30 respectively, the second contact group is connected to the output end of the working relay K1 and the controller 21 respectively, and the controller 21 is connected to the control coil of the working relay K1 and the self-test relay K2 respectively;
[0046] The controller 21 is used to control the working states of the working relay K1 and the self-test relay K2 respectively, and receive the detection signal output by the self-test relay K2, and determine whether the working relay K1 is faulty based on the working states of the working relay K1 and the self-test relay K2 and the detection signal.
[0047] Wherein, the working state includes a closed state and an open state. When it is necessary to detect whether the working relay K1 is faulty, the controller 21 will output control signals to the control coils of the working relay K1 and the self-test relay K2 respectively, so that the working relay K1 and the self-test relay K2 are closed. At this time, the reference power supply 30 will output a detection signal to the input end of the working relay K1 through the first contact group, and the detection signal will be fed back to the controller 21 through the second contact group. When the controller 21 receives the detection signal, it will determine whether the working relay K1 is faulty according to the detection signal. It should be noted that the working states of the working relay K1 and the self-test relay K2 are both controlled by the control coil. When the controller 21 outputs a control signal to the working relay K1 and / or the self-test relay K2, the working relay K1 and the self-test relay K2 will be closed according to the control signal. Whether the working relay K1 is faulty is determined based on the detection signal received by the controller 21. However, when the self-test relay K2 is in an open state, even if the working relay K1 is in a closed state and has no fault, the controller 21 will determine that the working relay K1 is faulty based on the received detection signal, thereby causing a fault detection error in the working relay K1. Based on this, when determining whether the working relay K1 is faulty, it is also necessary to determine the working states of the working relay K1 and the self-test relay K2 to avoid misjudgment.
[0048] Further, such as Figure 2 As shown, the controller 21 includes a control output terminal 211 and a signal sampling terminal 212. The control output terminal 211 is connected to the control coils of the working relay K1 and the self-test relay K2 respectively, and the signal sampling terminal 212 is connected to the self-test relay K2.
[0049] The control output terminal 211 is used to output a control signal to the working relay K1 and / or the self-test relay K2; the signal sampling terminal 212 is used to receive a detection signal output by the self-test relay K2; the controller 21 is used to determine whether the working relay K1 is faulty according to the output control signal and detection signal. Figure 3 , Figure 3 This is a logic diagram of a relay working according to an embodiment of the utility model. Figure 3As shown, K1 refers to the working state of the working relay K1, K2 refers to the working state of the self-test relay K2, and the VADC display value refers to the detection signal received by the signal sampling terminal 212. Among them, "1" refers to a high level or the working state of the relay is a closed state, and "0" refers to a low level or the working state of the relay is an open state.
[0050] according to Figure 3 It can be seen that when the working relay K1 and the self-test relay K2 are both in the disconnected state, if the detection signal collected by the signal sampling terminal 212 is at a high level, it is considered that the working relay K1 or the self-test relay K2 is faulty; when the working relay K1 is in the disconnected state and the self-test relay K2 is in the closed state, if the detection signal collected by the signal sampling terminal 212 is at a high level, it is considered that the working relay K1 is faulty; when the working relay K1 is in the closed state and the self-test relay K2 is in the disconnected state, if the detection signal collected by the signal sampling terminal 212 is at a high level, it is considered that the self-test relay K2 is faulty; when the working relay K1 and the self-test relay K2 are both in the closed state, if the detection signal collected by the signal sampling terminal 212 is at a low level, it is considered that the working relay K1 or the self-test relay K2 is faulty.
[0051] In some embodiments, the controller 21 is an ADC chip, and the ADC chip refers to an analog-to-digital converter (Analog-to-Digital Converter). It should be noted that the detection signal is obtained by the reference power supply 30 through the working relay K1 and the self-test relay K2, so the detection signal is a voltage signal within a preset voltage range. However, the working relay K1 only has two situations: failure or no failure. At this time, it is not possible to accurately determine whether the working relay K1 is faulty based on the voltage signal. Therefore, in order to more intuitively determine whether the working relay K1 is faulty, the detection signal is converted from an analog signal to a digital signal through the ADC chip, so as to determine whether the working relay K1 is faulty through a specific high level or low level, thereby improving the reliability of the relay.
[0052] The ADC chip is usually composed of an analog front end, a converter, a digital interface, and a control logic. The analog front end is responsible for filtering and amplifying the input signal to ensure signal quality. The converter is the core of the ADC chip, which mainly converts continuous analog signals into discrete digital signals. The digital interface is responsible for transmitting the digital output to the digital system. The control logic is responsible for managing the timing and operation of the entire conversion process. Therefore, before the self-test relay K2 transmits the detection signal to the controller 21, the detection signal needs to be processed so that the detection signal transmitted by the self-test relay K2 can be normally recognized by the analog front end of the ADC chip.
[0053] Specifically, Figure 2 As shown, the relay self-test circuit 20 also includes a voltage divider module 22; the voltage divider module 22 is respectively connected to the second contact group of the self-test relay K2 and the controller 21; the voltage divider module 22 is used to receive the detection signal output by the self-test relay K2, and input the detection signal into the controller 21 after voltage division, so that the detection signal matches the controller 21.
[0054] In some embodiments, see Figure 4 , Figure 4 is a circuit diagram of a relay self-test circuit provided by an embodiment of the utility model, such as Figure 4 As shown, the voltage dividing module 22 includes a resistor R1 and a resistor R2;
[0055] The first end of the resistor R1 is connected to the second contact group (K2-2) of the self-test relay K2, the second end of the resistor R1 is connected to the controller 21, and the second end of the resistor R1 is also grounded through the resistor R2.
[0056] Furthermore, the relay self-test circuit 20 also includes a voltage stabilizing module 23;
[0057] The voltage stabilizing module 23 is connected to the second contact group of the self-test relay K2 and the controller 21 respectively;
[0058] The voltage stabilizing module 23 is used to control the voltage value of the detection signal when the voltage value of the detection signal exceeds a preset value, so that the voltage value of the detection signal is within a preset voltage range.
[0059] Among them, Figure 4 As shown, the voltage stabilizing module 23 is a voltage stabilizing tube ZD1;
[0060] The cathode of the voltage-stabilizing tube ZD1 is connected to the second contact group of the self-test relay K2 and the controller 21 respectively, and the anode of the voltage-stabilizing tube ZD1 is grounded.
[0061] Specifically, when the self-test relay K2 and the working relay K1 are both closed, the reference power supply 30 (VCC) will output a detection signal to the input end (K1-1) of the working relay K1 through the first contact group (K2-1). When the working relay K1 is normally closed, the detection signal will be input to the second contact group through the output end (K1-2) of the working relay K1, so that the self-test relay K2 outputs the detection signal. After the self-test relay K2 outputs the detection signal, the resistors R1 and R2 will divide the detection signal so that the divided detection signal matches the controller 21. Among them, if the voltage value of the detection signal is too large, the voltage division value on the resistor R2 will also be large, thereby damaging the controller 21. Therefore, the voltage value of the detection signal is limited by setting the voltage regulator ZD1, so that when the detection signal is too large, the voltage regulator ZD1 is broken down, so that the detection signal flows into the ground terminal through the voltage regulator ZD1, thereby protecting the controller 21.
[0062] In some embodiments, the resistor R1 and the resistor R2 are also used to protect the controller 21. Specifically, when the voltage of the reference power supply 30 is relatively large, if the self-test relay K2 fails or the control signal is erroneously attracted, a large voltage in the reference voltage may flow into the controller 21 and damage the controller 21. Therefore, in order to prevent the large voltage of the reference power supply 30 from damaging the controller 21, the voltage input to the controller 21 can be effectively controlled by dividing the voltage through the resistor R1 and the resistor R2.
[0063] In yet another embodiment, Figure 2 As shown, the relay self-test circuit 20 also includes an anti-backflow module 24; the anti-backflow module 24 is connected to the reference power supply 30 and the controller 21 respectively, and the anti-backflow module 24 is also connected to the first contact group and the second contact group of the self-test relay K2;
[0064] The backflow prevention module 24 is used to prevent the current in the working relay K1 from flowing to the reference power supply 30 and to prevent the current in the controller 21 from flowing to the self-test relay K2 when the working relay K1 and the self-test relay K2 switch working states.
[0065] Specifically, Figure 4 As shown, the anti-backflow module includes a diode D1 and a diode D2;
[0066] The anode of the diode D1 is connected to the reference power supply 30 , the cathode of the diode D1 is connected to the first contact group of the self-test relay K2 , the anode of the diode D2 is connected to the second contact group of the self-test relay K2 , and the cathode of the diode D2 is connected to the controller 21 .
[0067] When the working relay K1 and the self-test relay K2 are closed, the voltage in the controller 21 may flow into the self-test relay K2, and then flow back into the reference power supply 30 through the self-test relay K2 and the working relay K1. Therefore, the diode D1 and the diode D2 are provided to prevent the current in the working relay K1 from flowing to the reference power supply 30 and the current in the controller 21 from flowing to the self-test relay K2.
[0068] In another embodiment, the working relay includes at least one contact group, and the relay self-test circuit includes at least one self-test relay; and the at least one contact group of the working relay is correspondingly connected to the at least one self-test relay.
[0069] Specifically, when the working circuit 10 includes at least one working module 11, the working relay K1 will also set a corresponding contact group according to the working module 11, wherein a contact group includes an input end and an output end, and the relay self-test circuit 20 will also set a corresponding self-test relay K2 according to the number of the contact groups to perform fault detection on multiple working relays K1, thereby improving the reliability of the functional test system.
[0070] The utility model provides a relay self-test circuit, the relay self-test circuit includes a working relay, a self-test relay and a controller, wherein the self-test relay includes a first contact group and a second contact group; the first contact group is respectively connected to the input end of the working relay and the reference power supply, the second contact group is respectively connected to the output end of the working relay and the controller, and the controller is respectively connected to the control coil of the working relay and the self-test relay. The controller is used to control the working state of the working relay and the self-test relay respectively, so as to determine the detection signal received by the controller under normal circumstances based on the working state, so as to avoid regarding the fault of the self-test relay as the fault of the working relay; and receive the detection signal output by the self-test relay, and judge whether the working relay is faulty based on the working state of the working relay and the self-test relay and the detection signal. Thus, the position of the faulty relay can be quickly located, which helps to speed up the repair and replacement of the relay, thereby improving the reliability and stability of the functional test system.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A relay self-test circuit, characterized in that: The relay self-test circuit comprises a working relay, a self-test relay and a controller, wherein the self-test relay comprises a first contact group and a second contact group; The first contact group is connected to the input end of the working relay and the reference power supply respectively, the second contact group is connected to the output end of the working relay and the controller respectively, and the controller is connected to the control coil of the working relay and the self-test relay respectively; The controller is used to control the working states of the working relay and the self-test relay respectively, and to receive the detection signal output by the self-test relay, and to determine whether the working relay is faulty based on the working states of the working relay and the self-test relay and the detection signal.
2. The relay self-test circuit according to claim 1, characterized in that: The controller includes a control output terminal and a signal sampling terminal; The control output end is connected to the control coils of the working relay and the self-test relay respectively, and the signal sampling end is connected to the self-test relay.
3. The relay self-test circuit according to claim 1, characterized in that: The relay self-test circuit also includes a voltage division module; The voltage dividing module is connected to the second contact group of the self-test relay and the controller respectively; The voltage division module is used to receive the detection signal output by the self-test relay, and input the detection signal into the controller after voltage division, so that the detection signal matches the controller.
4. The relay self-test circuit according to claim 3, characterized in that: The voltage dividing module includes a resistor R1 and a resistor R2; The first end of the resistor R1 is connected to the second contact group of the self-test relay, the second end of the resistor R1 is connected to the controller, and the second end of the resistor R1 is also grounded through the resistor R2.
5. The relay self-test circuit according to claim 1, characterized in that: The relay self-test circuit also includes a voltage stabilizing module; The voltage stabilizing module is respectively connected to the second contact group of the self-test relay and the controller; The voltage stabilization module is used to control the voltage value of the detection signal when the voltage value of the detection signal exceeds a preset value, so that the voltage value of the detection signal is within a preset voltage range.
6. The relay self-test circuit according to claim 5, characterized in that: The voltage stabilizing module is a voltage stabilizing tube ZD1; The cathode of the voltage-stabilizing tube ZD1 is connected to the second contact group of the self-test relay and the controller respectively, and the anode of the voltage-stabilizing tube ZD1 is used for grounding.
7. The relay self-test circuit according to claim 1, characterized in that: The relay self-test circuit also includes an anti-backflow module; The backflow prevention module is connected to the reference power supply and the controller respectively, and the backflow prevention module is also connected to the first contact group and the second contact group of the self-test relay; The backflow prevention module is used to prevent the current in the working relay from flowing to the reference power supply when the working relay and the self-test relay switch working states; and Current in the controller is prevented from flowing to the self-test relay.
8. The relay self-test circuit according to claim 7, characterized in that: The anti-backflow module includes a diode D1 and a diode D2; The anode of the diode D1 is connected to the reference power supply, the cathode of the diode D1 is connected to the first contact group of the self-test relay, the anode of the diode D2 is connected to the second contact group of the self-test relay, and the cathode of the diode D2 is connected to the controller.
9. The relay self-test circuit according to any one of claims 1 to 8, characterized in that: The working relay includes at least one contact group, and the relay self-test circuit includes at least one self-test relay; At least one contact group of the working relay is correspondingly connected to the at least one self-test relay.
10. A functional testing system, characterized in that: The functional testing system comprises: Working circuit; and The relay self-test circuit according to any one of claims 1 to 9, wherein the relay self-test circuit is connected to the working circuit.