A method for detecting relay zero-crossing on-off parameters

The relay waveform is input into the MCU through the rectifier optocoupler isolation circuit to realize automatic detection of the zero-crossing on-off parameters of the relay, which solves the problems of low detection efficiency and high cost in the existing technology, improves the detection speed and efficiency, and is suitable for mass production detection.

CN116973741BActive Publication Date: 2024-10-29ZHONGSHAN KEZHUOER ELECTRIC CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202310959569.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-01
Publication Date
2024-10-29
Estimated Expiration
2043-08-01

AI Technical Summary

Technical Problem

In the existing technology, the detection efficiency of the connection and disconnection time parameters of relay contacts is low and slow, requiring manual reading of parameters, resulting in high testing costs and a lack of automated detection capabilities.

Method used

A rectifier optocoupler isolation circuit is used to input the waveform of the relay contact into the MCU, which is directly converted into a time parameter value through logic detection and compared with the zero-crossing time to realize automatic screening of out-of-range products.

Benefits of technology

It realizes automatic detection of relay zero-crossing on-off parameters, reduces testing costs, improves production efficiency, has fast testing speed, and is suitable for batch testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116973741B_ABST
    Figure CN116973741B_ABST
Patent Text Reader

Abstract

The present invention provides a method for detecting relay zero-crossing on-off parameters, specifically comprising the following steps: S1, the waveform of the relay contact and the waveform of AC zero-crossing are input into MCU through a rectifier optocoupler isolation circuit, and then logic detection is performed by the MCU, and directly converted into a specific and intuitive time parameter value; S2, MCU logic detection, calculating the on-point time and off-point time of the relay contact, and comparing with the time parameter of the zero-crossing point, and screening out products that exceed the range. The present invention can realize the automatic test of the relay zero-crossing on-off parameters, read the relay zero-crossing on-off parameters, preset the parameter range, and quickly screen out products that do not meet the requirements of the relay contact on-off and zero-crossing time, reduce the test cost, and improve production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of circuit detection, and in particular to a method for detecting zero-crossing on-off parameters of a relay. Background Art

[0002] The closer the relay contacts are to the zero crossing point, the lower the voltage of the contacts, the smaller the arc generated, and the longer the life of the relay contacts. In order to extend the stability and reliability of the relay contacts, it is necessary to control the logic to make the contacts connect and disconnect near the zero crossing of the AC power supply. This time parameter is generally measured with an oscilloscope. The current test method for relay contact connection and disconnection is to use a dual-channel oscilloscope to monitor the AC input waveform and the waveform at both ends of the relay contacts respectively. Wiring method, such as Figure 1 Relay contact disconnection time parameter test: When the relay contact is connected, the voltage across the two ends is 0. When the relay contact is disconnected, the voltage across the two ends of the contact coincides with the AC input voltage. At this time, the oscilloscope cursor is positioned at the contact disconnection position and the middle zero crossing position of the AC, and the time parameters of the relay disconnection point and the zero crossing point can be tested. The test results are shown in Figure 2 Then test the time parameters of the relay contact connection. When the relay contact is connected, the voltage at both ends is 0. The oscilloscope cursor is positioned at the contact connection position and the middle zero crossing position of AC. The time parameters of the relay connection point and the zero crossing point can be tested. The test results are shown in Figure 3 As shown. However, the advantage of the oscilloscope in testing the time difference between the on and off of the relay contacts and the zero crossing is high resolution and accuracy. The disadvantages are low test efficiency and slow speed, the need to manually read parameters and position the test cursor, and high test cost. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention proposes a method for detecting the zero-crossing on-off parameters of a relay, which can realize automatic testing of the zero-crossing on-off parameters of the relay, read the zero-crossing on-off parameters of the relay, preset the parameter range, and quickly screen out products whose relay contact on / off and zero-crossing time do not meet the requirements, thereby reducing testing costs and improving production efficiency.

[0004] In order to realize the above technical solution, the present invention provides a method for detecting zero-crossing on-off parameters of a relay, which specifically comprises the following steps:

[0005] S1, input the waveform of the relay contact and the AC zero-crossing waveform into the MCU through the rectifier optocoupler isolation circuit, and then perform logic detection through the MCU to directly convert it into a specific and intuitive time parameter value;

[0006] S2, MCU logic detects the on-time and off-time of the relay contacts, and compares them with the time parameters of the zero-crossing point to screen out products that exceed the range.

[0007] Preferably, the rectifier optocoupler isolation circuit includes a rectifier 1, a rectifier 2, resistors R1, R2, an optocoupler 1, an optocoupler 2, a load L1 and a relay S1, the positive electrode of the rectifier 1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to the first pin of the optocoupler 1, the negative electrode of the rectifier 1 is connected to the second pin of the optocoupler 1, the third pin of the optocoupler 1 is connected to the MCU, the fourth pin of the optocoupler 1 is grounded, the first pin of the rectifier 1 is connected to one end of the load L1 and the AC220V power supply N line, the other end of the load L1 is connected to the second contact of the relay S1, and the relay S The first contact of the rectifier 1 is connected to the AC220V power supply L line, the second pin of the rectifier 1 is connected to the first contact of the relay S1 and the AC220V power supply L line; the positive electrode of the rectifier 2 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the first pin of the optical coupler 2, the negative electrode of the rectifier 2 is connected to the second pin of the optical coupler 2, the third pin of the optical coupler 2 is connected to the MCU, the fourth pin of the optical coupler 2 is grounded, the first pin of the rectifier 2 is connected to the first contact of the relay S1 and the AC220V power supply L line, and the second pin of the rectifier 2 is connected to the second contact of the relay S1.

[0008] Preferably, the third connector of the oscilloscope is connected to the first contact and the second contact of the relay S1 respectively through wires, and the second connector of the oscilloscope is connected to the line connecting the third pin of the optocoupler 1 and the MCU through wires.

[0009] Preferably, after the contacts are connected, the falling edge of the contact of optocoupler 2 and the rising edge of optocoupler 1 are detected through the MCU program logic to obtain the time of the turn-on point and the zero-crossing point of the contact of relay S1; the rising edge of the contact of optocoupler 2 and the rising edge of optocoupler 1 are detected through the MCU program logic to obtain the time of the turn-off point and the zero-crossing point of the contact of relay S1; after the display operation of the program logic, the relay turn-on time is calculated to screen out the products that exceed the range.

[0010] The beneficial effect of a relay zero-crossing on-off parameter detection method provided by the present invention is that: the waveform of the relay contact is input into an MCU through rectification and optical coupling isolation, and is directly converted into a specific and intuitive time parameter value through logic detection by the MCU, and a judgment range can be preset to realize automatic detection, and the time parameters of the contact connection and the zero-crossing point are compared to screen out products that exceed the range. The test device has low cost, high test speed, and fast numerical display, which is convenient for realizing batch detection of production. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is a wiring circuit diagram for detection using a dual-channel oscilloscope in the prior art.

[0012] Figure 2 This is a time parameter test result diagram of the relay disconnection point and the zero-crossing point in the prior art.

[0013] Figure 3 This is a time parameter test result diagram of the relay connection point and zero-crossing point in the prior art.

[0014] Figure 4 This is a test circuit diagram in the present invention.

[0015] Figure 5 This is a wiring diagram for verifying the effect of the present invention using an oscilloscope.

[0016] Figure 6 This is a diagram of the verification test results using an oscilloscope for the time parameters of the relay connection point and the zero-crossing point in the present invention.

[0017] Figure 7 This is a diagram of the verification test results using an oscilloscope for the time parameters of the relay connection point and the zero-crossing point in the present invention.

[0018] Figure 8 This is a test result diagram obtained by using the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary persons in the art without creative work are within the scope of protection of the present invention.

[0020] Embodiment: A method for detecting relay zero-crossing on-off parameters.

[0021] Reference Figures 4 to 8 As shown, a method for detecting the zero-crossing on-off parameters of a relay specifically comprises the following steps:

[0022] (1) Design a rectifier optocoupler isolation circuit, which includes a rectifier 1, a rectifier 2, resistors R1 and R2, an optocoupler 1, an optocoupler 2, a load L1, and a relay S1. The positive electrode of the rectifier 1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to the first pin of the optocoupler 1, the negative electrode of the rectifier 1 is connected to the second pin of the optocoupler 1, the third pin of the optocoupler 1 is connected to the MCU, the fourth pin of the optocoupler 1 is grounded, the first pin of the rectifier 1 is connected to one end of the load L1 and the AC220V power supply N line, the other end of the load L1 is connected to the second contact of the relay S1. The first contact of the relay S1 is connected to the AC220V power supply L line, the second pin of the rectifier 1 is connected to the first contact of the relay S1 and the AC220V power supply L line; the positive electrode of the rectifier 2 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the first pin of the optical coupler 2, the negative electrode of the rectifier 2 is connected to the second pin of the optical coupler 2, the third pin of the optical coupler 2 is connected to the MCU, the fourth pin of the optical coupler 2 is grounded, the first pin of the rectifier 2 is connected to the first contact of the relay S1 and the AC220V power supply L line, and the second pin of the rectifier 2 is connected to the second contact of the relay S1. In actual operation, by inputting the waveform of the relay contact into the MCU through the method of rectification and optical coupling isolation, the relay zero-crossing on-off parameters can be automatically read by the MCU. Among them, the waveform of the relay contact is rectified and coupled by rectifier 1 and optocoupler 1 to obtain the zero-crossing waveform of the AC input; the waveform of the relay contact is rectified and coupled by rectifier 2 and optocoupler 3 to obtain the on-off waveform at both ends of the relay contact, and then automatically detected and compared by MCU, the AC cycle can be directly displayed, and the time parameters of contact connection and contact disconnection can be obtained.

[0023] (2) Connect the third connector of the oscilloscope to the left and right contacts of the relay through wires, connect the second connector of the oscilloscope to the MCU and the third pin of optocoupler 1 through wires; connect the first connector of the oscilloscope to the MCU and the third pin of optocoupler 2 through wires; use the oscilloscope to verify the wiring method as follows: Figure 5 As shown, the contacts are then connected, and the oscilloscope measures the on-time and off-time of the relay contacts. The program logic detects the falling edge of the optocoupler 2 contact and the rising edge of the optocoupler 1, and the on-time and zero-crossing time of the relay contacts can be obtained. The test results are shown in Figure 6 Test relay disconnection time: Oscilloscope verification wiring method as shown Figure 5 , the program logic detects the rising edge of the contact of optocoupler 2 and the rising edge of optocoupler 1, and the time of the disconnection point and the zero crossing point of the relay contact can be obtained. The test results are as follows Figure 7 shown.

[0024] (3) Compare with the time parameter of zero crossing to screen out products that exceed the range: After the display operation of program logic, the relay conduction time is calculated to be 8.5ms, and the oscilloscope is measured to be 8.48ms. The resolution and error meet the industry standard (the relay contact must be within 2ms before and after zero crossing). The relay disconnection time is calculated to be 2.875ms after zero crossing. The test results do not meet the industry standard (the relay contact must be disconnected within 2ms before zero crossing). The test results are as follows: Figure 8 shown.

[0025] In actual production applications, the present invention does not need to use an oscilloscope. The waveform of the relay contact is input into the MCU through rectification and optocoupler isolation, and the MCU performs logic detection and directly converts it into a specific and intuitive time parameter value. The judgment range can be preset to realize automatic detection, and the time parameters of the contact connection and the zero crossing are compared to screen out products that exceed the range. The test device has low cost, high test speed, and fast numerical display, and is convenient for realizing batch detection of production.

[0026] The above description is only a preferred embodiment of the present invention, but the present invention should not be limited to the contents disclosed in the embodiment and the drawings, so any equivalent or modification completed without departing from the spirit disclosed in the present invention shall fall within the scope of protection of the present invention.

Claims

1. A method for detecting the zero-crossing on-off parameters of a relay, characterized in that The specific steps include: S1, input the waveform of the relay contact and the AC zero-crossing waveform into the MCU through the rectifier optocoupler isolation circuit, and then perform logic detection through the MCU to directly convert it into a specific and intuitive time parameter value; S2, MCU logic detects the on-time and off-time of the relay contact, and compares them with the time parameters of the zero-crossing point to screen out products that exceed the range; The rectifier optocoupler isolation circuit includes a rectifier 1, a rectifier 2, resistors R1, R2, an optocoupler 1, an optocoupler 2, a load L1 and a relay S1. The positive electrode of the rectifier 1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to the first pin of the optocoupler 1, the negative electrode of the rectifier 1 is connected to the second pin of the optocoupler 1, the third pin of the optocoupler 1 is connected to the MCU, the fourth pin of the optocoupler 1 is grounded, the first pin of the rectifier 1 is connected to one end of the load L1 and the AC220V power supply N line, the other end of the load L1 is connected to the second contact of the relay S1, and the The first contact is connected to the AC220V power supply L line, the second pin of the rectifier 1 is connected to the first contact of the relay S1 and the AC220V power supply L line; the positive electrode of the rectifier 2 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the first pin of the optocoupler 2, the negative electrode of the rectifier 2 is connected to the second pin of the optocoupler 2, the third pin of the optocoupler 2 is connected to the MCU, the fourth pin of the optocoupler 2 is grounded, the first pin of the rectifier 2 is connected to the first contact of the relay S1 and the AC220V power supply N line, and the second pin of the rectifier 2 is connected to the second contact of the relay S1.

2. The method for detecting the zero-crossing on-off parameter of a relay as claimed in claim 1, wherein: After the contacts are connected, the falling edge of the contact of optocoupler 2 and the rising edge of optocoupler 1 are detected through the MCU program logic to obtain the time of the turn-on point and the zero-crossing point of the contact of relay S1; the rising edge of the contact of optocoupler 2 and the rising edge of optocoupler 1 are detected through the MCU program logic to obtain the time of the turn-off point and the zero-crossing point of the contact of relay S1; after the display operation of the program logic, the relay turn-on time is calculated, and then compared with the time actually measured by the oscilloscope to screen out the products that exceed the range.

Citation Information

Patent Citations

  • Alternating current heater control device and method

    CN103186150A

  • Home appliance plug discharge test control device and control method thereof

    CN109507547A

  • Zero-crossing control method for relay and cooking appliance

    CN110459433A

  • Detection device and be used for detection circuitry of contactor

    CN206497184U

  • Auxiliary switch contact state detection circuit in circuit breaker detection device

    CN212459957U