Electromagnetic relay contact gap detection method, system, device and storage medium
By analyzing the coil current and contact voltage curves of the electromagnetic relay, determining the relationship between armature displacement and time, the problem of contact gap detection of electromagnetic relays in the prior art is solved, and high versatility and high precision detection effects are achieved.
Patent Information
- Application Number
- CN202210907587.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-07-29
AI Technical Summary
The prior art is difficult to effectively detect the contact gap of the electromagnetic relay, and the detection method is poor in versatility.
By energizing the coil of the electromagnetic relay, the coil current curve is determined, and the corresponding relationship between armature displacement and time is determined based on the coil current curve. Combined with the contact voltage curve, the initial movement time of the armature and the first closing time of the dynamic and static contacts are determined, and the contact gap size is calculated.
Effective detection of contact gaps of various types of electromagnetic relays is achieved, and the universality and accuracy of detection is improved.
Smart Images

Figure CN115143876B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical technology, and in particular to a method, system, device and storage medium for detecting contact gap of an electromagnetic relay. Background Art
[0002] Low-voltage electrical appliances can be divided into two categories: power distribution appliances and control appliances. They are the basic components of complete sets of electrical equipment. In the fields of industry, agriculture, transportation, national defense, etc., most of them use low-voltage power supply, so the quality of electrical components will directly affect the reliability of the low-voltage power supply system. Electromagnetic relays are low-voltage electrical appliances that use electromagnets to control the on and off of working circuits. The basic principle is to use a low-voltage, low-current control circuit to control a high-voltage, high-current working circuit.
[0003] The contact gap is a key indicator of electromagnetic relays. The contact gap value of the relay directly affects the contact pick-up and disconnection time, thereby affecting the operating reliability of the relay. At present, there are two main methods for measuring the contact gap of the relay: simulation analysis and design of a special mechanism for detecting the gap. The simulation method requires the establishment of different models for relays of different structures, so it is not suitable for large-scale relay contact gap detection. In addition, there are errors in the simulation model itself, and the measurement of the contact gap at the millimeter level is not very accurate, so the simulation results are not very convincing. The method of designing a special mechanism for detecting the gap requires the design of a complex structure, which is costly and time-consuming, and has poor applicability to different types of relays. That is, like the simulation method, the method of designing a special mechanism for detecting the gap is also less versatile.
[0004] In summary, how to effectively detect the contact gap of electromagnetic relays and improve the versatility of detection is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a method, system, device and storage medium for detecting the contact gap of an electromagnetic relay, so as to effectively detect the contact gap of an electromagnetic relay and improve the versatility of the detection.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A method for detecting a contact gap of an electromagnetic relay, comprising:
[0008] Energizing a coil of an electromagnetic relay and determining a coil current curve of the electromagnetic relay;
[0009] Based on the coil current curve, determining the corresponding relationship between the armature displacement x and the time t;
[0010] Based on the contact voltage curve and the coil current curve, determining the initial movement time of the armature and the first closing time of the moving and static contacts of the electromagnetic relay;
[0011] Based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay, the contact gap size of the electromagnetic relay is determined.
[0012] Preferably, determining the corresponding relationship between the armature displacement x and the time t based on the coil current curve includes:
[0013] Based on the coil circuit balance equation, the total magnetic energy W is determined to be expressed as
[0014] Based on the total magnetic energy W, the corresponding relationship between the electromagnetic attraction force and the armature displacement x is determined, and combined with the coil current curve, the corresponding relationship between the armature displacement x and the time t is obtained;
[0015] Among them, i represents the coil current and ψ represents the magnetic flux.
[0016] Preferably, based on the total magnetic energy W, the corresponding relationship between the determined electromagnetic attraction force and the armature displacement x is expressed as:
[0017] Among them, electromagnetic attraction L represents the self-inductance coefficient, k represents the spring elastic coefficient, f2 represents the friction force, and M represents the total mass of the moving contact and the armature.
[0018] Preferably, the corresponding relationship between the armature displacement x and the time t obtained by combining the coil current curve includes:
[0019] Multiply both sides of the determined relationship between the electromagnetic attraction and the armature displacement x by get:
[0020] make And will Converted into a differential equation, expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and the value of the discrete quantity G(t) is determined based on the coil current curve;
[0021] The differential equation is solved to obtain a numerical solution x(t), which is the corresponding relationship between the obtained armature displacement x and the time t.
[0022] Preferably, solving the differential equation to obtain a numerical solution x(t) comprises:
[0023] The differential equation is solved by the improved Euler method to obtain a numerical solution x(t).
[0024] Preferably, the determining of the initial movement moment of the armature and the first closing moment of the moving and static contacts of the electromagnetic relay based on the contact voltage curve and the coil current curve includes:
[0025] The moment when the coil current first decreases in the coil current curve is used as the moment when the armature initially moves;
[0026] The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
[0027] A contact gap detection system for an electromagnetic relay, comprising:
[0028] A coil current curve determination module, used for energizing the coil of the electromagnetic relay and determining the coil current curve of the electromagnetic relay;
[0029] An armature displacement and time relationship determination module, used to determine the corresponding relationship between the armature displacement x and the time t based on the coil current curve;
[0030] A timing determination module, for determining the initial movement timing of the armature and the first closing timing of the moving and static contacts of the electromagnetic relay based on the contact voltage curve and the coil current curve;
[0031] The contact gap size determination module is used to determine the contact gap size of the electromagnetic relay based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay.
[0032] Preferably, the time determination module is specifically used for:
[0033] The moment when the coil current first decreases in the coil current curve is used as the moment when the armature initially moves;
[0034] The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
[0035] An electromagnetic relay contact gap detection device, comprising:
[0036] Memory for storing computer programs;
[0037] A processor is used to execute the computer program to implement the steps of the electromagnetic relay contact gap detection method as described in any one of the above.
[0038] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the electromagnetic relay contact gap detection method as described in any one of the above are implemented.
[0039] By applying the technical solution provided in the embodiment of the present invention, the contact gap detection of the electromagnetic relay is realized based on the contact voltage curve and the coil current curve, which has strong versatility. Specifically, in the solution of the present application, the coil of the electromagnetic relay is energized, and the coil current curve of the electromagnetic relay can be determined, and then the corresponding relationship between the armature displacement x and the time t is determined based on the coil current curve. Then, based on the contact voltage curve and the coil current curve, the initial movement moment of the armature and the first closing moment of the moving and static contacts of the electromagnetic relay are determined, and then the contact gap size of the electromagnetic relay can be determined based on the corresponding relationship, that is, the difference in the armature displacement x between these two moments is used as the determined contact gap size of the electromagnetic relay. It can be seen that the solution of the present application effectively performs contact gap detection of various types of electromagnetic relays, thereby effectively improving the versatility of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 It is an implementation flow chart of a method for detecting the contact gap of an electromagnetic relay in the present invention;
[0042] Figure 2 A schematic diagram of a contact voltage curve and a coil current curve in a specific embodiment of the present invention;
[0043] Figure 3 The figure is a schematic diagram of the structure of a contact gap detection system of an electromagnetic relay in the present invention. DETAILED DESCRIPTION
[0044] The core of the present invention is to provide a method for detecting the contact gap of an electromagnetic relay, which effectively improves the versatility of the detection.
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0046] Please refer to Figure 1 , Figure 1 The present invention is a flowchart of an implementation method of an electromagnetic relay contact gap detection method, and the electromagnetic relay contact gap detection method may include the following steps:
[0047] Step S101: energize the coil of the electromagnetic relay and determine the coil current curve of the electromagnetic relay.
[0048] Specifically, a direct current power supply can be connected to the electromagnetic relay, so that the coil current can be detected by the current sensor to obtain the coil current curve. During the detection, the detection can be carried out in real time or according to a preset cycle.
[0049] Step S102: Determine the corresponding relationship between the armature displacement x and the time t based on the coil current curve. After determining the coil current curve, the corresponding relationship between the armature displacement x and the time t can be determined based on the coil current curve. The corresponding relationship can be expressed as a relationship x(t). Specifically, the coil electromagnetic force work power during the contact closing process of the electromagnetic relay can be calculated by analyzing the coil current curve, and then based on the structural parameters of the electromagnetic relay, including the moving contact mass, the armature mass, the electromagnetic coil self-inductance coefficient, the spring elastic coefficient, and the sliding friction force during the armature movement, the change relationship between the armature displacement x and the time t can be obtained by inverse analysis.
[0050] In a specific implementation of the present invention, step S102 may specifically include:
[0051] Step 1: Based on the coil circuit balance equation, determine the total magnetic energy W expressed as
[0052] Step 2: Based on the total magnetic energy W, determine the corresponding relationship between the electromagnetic attraction force and the armature displacement x, and solve it in combination with the coil current curve to obtain the corresponding relationship between the armature displacement x and the time t;
[0053] Among them, i represents the coil current and ψ represents the magnetic flux.
[0054] Specifically, the coil of an electromagnetic relay is an electromagnetic element that uses a magnetic field as a medium to convert electrical energy into mechanical energy after being energized. Therefore, its energy conversion process first converts electrical energy into magnetic energy, and then converts magnetic energy into mechanical energy and performs work. When the coil is energized, there is a magnetic flux on the armature and an electromagnetic attraction is generated, causing the armature to move and perform mechanical work. Obviously, the mechanical work comes from the power supply and is part of the power output energy.
[0055] After power is turned on, the coil generates self-inductance electromotive force e, so the coil circuit balance equation is:
[0056]
[0057] Among them, u represents the voltage of the coil, R represents the coil resistance, i represents the coil current, ψ represents the magnetic flux, and L represents the self-inductance coefficient.
[0058] Multiply both sides of the coil circuit balance equation by idt to obtain the energy balance equation: uidt = idψ + i 2 Rdt. Among them, uidt is the power supply energy in dt time, idψ is the magnetic energy converted in dt time, i 2 Rdt is the energy lost by coil resistance heating during the dt time. That is, the electrical energy is converted into two parts of energy, one part is converted into magnetic energy in the magnetic field, and the other part is converted into energy lost by coil resistance heating.
[0059] By integrating the magnetic energy in the magnetic field, we can get the expression of the total magnetic energy W, which is expressed as:
[0060] Right now
[0061] After obtaining the total amount of magnetic energy W, by determining the corresponding relationship between the electromagnetic attraction and the armature displacement x, it is possible to solve based on the coil current curve and obtain the relationship x(t) between the armature displacement x and time t.
[0062] In a specific implementation of the present invention, the corresponding relationship between the electromagnetic attraction force determined based on the total magnetic energy W in step 2 and the armature displacement x can be expressed as:
[0063] Among them, electromagnetic attraction L represents the self-inductance coefficient, k represents the spring elastic coefficient, f2 represents the friction force, and M represents the total mass of the moving contact and the armature.
[0064] Specifically, the magnetic field generated by the coil is energized and works through electromagnetic attraction, causing the armature to move x(t). The mechanical work generated is F dx, the value of mechanical work is equal to the total magnetic energy W, that is, F d x=W, differentiating both sides, we can get Therefore, the electromagnetic attraction F d for
[0065] When the electromagnetic force is greater than the combined force of the spring force f1 and the friction force f2, the armature will be displaced. According to Newton's second law, we can get: F d -f1-f2=Ma. a is the acceleration of the armature moving contact moving toward the static contact.
[0066] because f1=kx(t), after substituting it into the equation:
[0067] Further, in a specific embodiment of the present invention, the corresponding relationship between the armature displacement x and the time t is obtained by combining the coil current curve described in step 2, which may specifically include:
[0068] Multiply both sides of the determined relationship between the electromagnetic attraction and the armature displacement x by get:
[0069] make And will Converted into a differential equation, expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and the value of the discrete quantity G(t) is determined based on the coil current curve;
[0070] The differential equation is solved to obtain a numerical solution x(t), which is the corresponding relationship between the armature displacement x and the time t.
[0071] Specifically, in this embodiment, the relationship between the electromagnetic attraction force and the armature displacement x is Multiply both sides by get:
[0072] make G(t) is physically equivalent to the work power of electromagnetic attraction. The current i(t) obtained from the coil current curve can be a discrete quantity. By performing differential calculation on the current i(t) and substituting it into the G(t) expression, the value of the discrete quantity G(t) can be obtained.
[0073] Will Converted into a differential equation, it can be expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and then the differential equation can be solved to obtain the numerical solution x(t), which is the relationship between the armature displacement x and the time t.
[0074] When solving the differential equation to obtain the numerical solution x(t), the solution can be obtained by the Euler method. Furthermore, in a specific embodiment of the present invention, the numerical solution x(t) can be obtained by solving the differential equation by the improved Euler method, thereby effectively improving the computational efficiency.
[0075] Specifically, the differential equation Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0 can be transformed into:
[0076] The initial conditions are: x(t0)=0, x′(t0)=0.
[0077] Use the improved Euler method to solve the above second-order differential equation to obtain the numerical solution x(t). First, let y(t) = x′(t) and transform the above second-order differential equation into a system of first-order differential equations:
[0078] The initial conditions are: x(t0)=0, y(t0)=0.
[0079] The iteration step of the solution of the improved Euler method is set to h. The iteration step h must be greater than or equal to the sampling period T of the coil current i(t). The larger the value of the step h, the shorter the iteration time and the lower the solution accuracy.
[0080] The formula of the improved Euler method is:
[0081]
[0082] Where k represents the kth iteration, x k+1 represents the k+1th iteration result of x, y k+1 represents the iterative result of y for the k+1th time, and K1, L1, K2, and L2 represent the variables to be calculated for each iteration. The values of the variables K1, L1, K2, and L2 are updated once for each iteration calculation until all the values of the sampled data i(t) of the coil current curve are iterated, and the numerical solution x(t) can be obtained, that is, the relationship between the armature displacement x and the time t is obtained.
[0083] Step S103: Based on the contact voltage curve and the coil current curve, determine the initial movement time of the armature and the first closing time of the moving and static contacts of the electromagnetic relay.
[0084] Since the relationship x(t) between the armature displacement x and time t is obtained, as long as the initial movement moment of the armature and the first closing moment of the moving and static contacts of the electromagnetic relay are determined, the contact gap size of the electromagnetic relay can be determined based on the relationship x(t).
[0085] The solution of the present application can obtain these two moments based on the contact voltage curve and the coil current curve. Specifically, in a specific implementation of the present invention, step S103 can specifically include:
[0086] The moment when the coil current first drops in the coil current curve is used as the initial movement moment of the armature;
[0087] The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
[0088] See also Figure 2 , is a schematic diagram of a contact voltage curve and a coil current curve in a specific implementation manner, wherein, Figure 2 Curve 1 is the coil current curve, and curve 2 is the contact voltage curve. By analyzing curves 1 and 2 together, we can get the time point from when the armature moving contact starts to move toward the stationary contact to when it first contacts the stationary contact.
[0089] From the electromagnetic relay theory, we know that Figure 2 The time period can be divided into three stages: 1. Touching stage (0~t0): The coil is energized at time 0. In this stage, the electromagnetic suction force gradually increases, but it is less than the reaction force such as the spring force, so the armature does not move. 2. Closing movement stage (t0~t1): At time t0, the electromagnetic suction force begins to be greater than the reaction force such as the spring force. The armature moving contact begins to move toward the static contact under the action of the electromagnetic suction force. At time t1, the moving and static contacts are closed for the first time. Therefore, the voltage waveform of curve 2 drops from the open circuit voltage to the low voltage, that is, it drops to the path voltage after conduction. Therefore, in the time period t0~t1, the distance moved by the armature moving contact is the gap length between the moving and static contacts, that is, the contact gap size of the electromagnetic relay. 3. Overtravel stage (t1~t2): After the moving and static contacts make the first contact, due to the bounce of the moving contact, the moving and static contacts continue to close and disconnect until they are fully closed, the moving contact no longer moves, and the suction process ends.
[0090] Step S104: Based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay, the contact gap size of the electromagnetic relay is determined.
[0091] As analyzed above, after obtaining the initial movement moment of the armature and the first closing moment of the moving and static contacts of the electromagnetic relay, substitute the corresponding relationship x(t) between the armature displacement x and time t respectively, and the difference between the two can be used as the determined contact gap size of the electromagnetic relay.
[0092] For example Figure 2 In the implementation manner, the contact gap size of the electromagnetic relay = x(t1)-x(t0).
[0093] By applying the technical solution provided in the embodiment of the present invention, the contact gap detection of the electromagnetic relay is realized based on the contact voltage curve and the coil current curve, which has strong versatility. Specifically, in the solution of the present application, the coil of the electromagnetic relay is energized, and the coil current curve of the electromagnetic relay can be determined, and then the corresponding relationship between the armature displacement x and the time t is determined based on the coil current curve. Then, based on the contact voltage curve and the coil current curve, the initial movement moment of the armature and the first closing moment of the moving and static contacts of the electromagnetic relay are determined, and then the contact gap size of the electromagnetic relay can be determined based on the corresponding relationship, that is, the difference in the armature displacement x between these two moments is used as the determined contact gap size of the electromagnetic relay. It can be seen that the solution of the present application effectively performs contact gap detection of various types of electromagnetic relays, thereby effectively improving the versatility of detection.
[0094] Corresponding to the above method embodiment, an embodiment of the present invention further provides an electromagnetic relay contact gap detection system, which can be referred to in correspondence with the above.
[0095] See also Figure 3 FIG. 1 is a schematic diagram of a structure of an electromagnetic relay contact gap detection system in the present invention, comprising:
[0096] The coil current curve determination module 301 is used to energize the coil of the electromagnetic relay and determine the coil current curve of the electromagnetic relay;
[0097] The armature displacement and time relationship determination module 302 is used to determine the corresponding relationship between the armature displacement x and the time t based on the coil current curve;
[0098] The time determination module 303 is used to determine the initial movement time of the armature and the first closing time of the moving and static contacts of the electromagnetic relay based on the contact voltage curve and the coil current curve;
[0099] The contact gap size determination module 304 is used to determine the contact gap size of the electromagnetic relay based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay.
[0100] In a specific implementation of the present invention, the armature displacement and time relationship determination module 302 includes:
[0101] The total magnetic energy determination unit is used to determine the total magnetic energy W based on the coil circuit balance equation and is expressed as
[0102] A solving unit is used to determine the corresponding relationship between the electromagnetic attraction force and the armature displacement x based on the total magnetic energy W, and to obtain the corresponding relationship between the armature displacement x and the time t in combination with the coil current curve;
[0103] Among them, i represents the coil current and ψ represents the magnetic flux.
[0104] In a specific implementation of the present invention, the corresponding relationship between the electromagnetic attraction force and the armature displacement x determined by the solving unit based on the total magnetic energy W is expressed as:
[0105] Among them, electromagnetic attraction L represents the self-inductance coefficient, k represents the spring elastic coefficient, f2 represents the friction force, and M represents the total mass of the moving contact and the armature.
[0106] In a specific implementation of the present invention, the solving unit combines the coil current curve to obtain the corresponding relationship between the armature displacement x and the time t, which is specifically used for:
[0107] Multiply both sides of the determined relationship between the electromagnetic attraction and the armature displacement x by get:
[0108] make And will Converted into a differential equation, expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and the value of the discrete quantity G(t) is determined based on the coil current curve;
[0109] The differential equation is solved to obtain a numerical solution x(t), which is the corresponding relationship between the armature displacement x and the time t.
[0110] In a specific implementation of the present invention, the solving unit solves the differential equation to obtain a numerical solution x(t), which is specifically used for:
[0111] The numerical solution x(t) is obtained by solving the differential equation using the improved Euler method.
[0112] In a specific implementation of the present invention, the time determination module 303 is specifically used to:
[0113] The moment when the coil current first drops in the coil current curve is used as the initial movement moment of the armature;
[0114] The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
[0115] Corresponding to the above method and system embodiments, the embodiments of the present invention further provide an electromagnetic relay contact gap detection device and a computer-readable storage medium, which can be referred to in correspondence with the above.
[0116] The electromagnetic relay contact gap detection device may include:
[0117] Memory for storing computer programs;
[0118] A processor is used to execute a computer program to implement the steps of the electromagnetic relay contact gap detection method in any of the above embodiments.
[0119] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the electromagnetic relay contact gap detection method in any of the above embodiments are implemented. The computer readable storage medium mentioned here includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
[0120] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0121] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0122] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for detecting the contact gap of an electromagnetic relay, characterized in that: include: Energizing a coil of an electromagnetic relay and determining a coil current curve of the electromagnetic relay; Based on the coil current curve, determining the corresponding relationship between the armature displacement x and the time t; Based on the contact voltage curve and the coil current curve, determining the initial movement time of the armature and the first closing time of the moving and static contacts of the electromagnetic relay; Based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay, the size of the contact gap of the electromagnetic relay is determined; Determining the corresponding relationship between the armature displacement x and the time t based on the coil current curve includes: Based on the coil circuit balance equation, the total magnetic energy W is determined to be expressed as Based on the total magnetic energy W, the corresponding relationship between the electromagnetic attraction force and the armature displacement x is determined, and combined with the coil current curve, the corresponding relationship between the armature displacement x and the time t is obtained; Among them, i represents the coil current, ψ represents the magnetic flux; Based on the total magnetic energy W, the corresponding relationship between the electromagnetic attraction force and the armature displacement x is expressed as: Among them, electromagnetic attraction L represents the self-inductance coefficient, k represents the spring elastic coefficient, f2 represents the friction force, and M represents the total mass of the moving contact and the armature; The corresponding relationship between the armature displacement x and the time t is obtained by combining the coil current curve, including: Multiply both sides of the determined relationship between the electromagnetic attraction and the armature displacement x by get: make And will Converted into a differential equation, expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and the value of the discrete quantity G(t) is determined based on the coil current curve; The differential equation is solved to obtain a numerical solution x(t), which is the corresponding relationship between the obtained armature displacement x and the time t.
2. The electromagnetic relay contact gap detection method according to claim 1, characterized in that: The step of solving the differential equation to obtain a numerical solution x(t) comprises: The differential equation is solved by the improved Euler method to obtain a numerical solution x(t).
3. The electromagnetic relay contact gap detection method according to claim 1 or 2, characterized in that: The determining of the initial movement time of the armature and the first closing time of the moving and static contacts of the electromagnetic relay based on the contact voltage curve and the coil current curve includes: The moment when the coil current first decreases in the coil current curve is used as the moment when the armature initially moves; The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
4. An electromagnetic relay contact gap detection system, characterized in that: include: A coil current curve determination module, used for energizing the coil of the electromagnetic relay and determining the coil current curve of the electromagnetic relay; An armature displacement and time relationship determination module, used to determine the corresponding relationship between the armature displacement x and the time t based on the coil current curve; A timing determination module, for determining the initial movement timing of the armature and the first closing timing of the moving and static contacts of the electromagnetic relay based on the contact voltage curve and the coil current curve; A contact gap size determination module, used to determine the contact gap size of the electromagnetic relay based on the corresponding relationship, the initial movement time of the armature, and the first closing time of the moving and static contacts of the electromagnetic relay; The armature displacement and time relationship determination module comprises: The total magnetic energy determination unit is used to determine the total magnetic energy W based on the coil circuit balance equation and is expressed as A solving unit is used to determine the corresponding relationship between the electromagnetic attraction force and the armature displacement x based on the total magnetic energy W, and to obtain the corresponding relationship between the armature displacement x and the time t in combination with the coil current curve; Among them, i represents the coil current, ψ represents the magnetic flux; The corresponding relationship between the electromagnetic attraction force and the armature displacement x determined by the solving unit based on the total magnetic energy W is expressed as: Among them, electromagnetic attraction L represents the self-inductance coefficient, k represents the spring elastic coefficient, f2 represents the friction force, and M represents the total mass of the moving contact and the armature; The solving unit combines the coil current curve to obtain the corresponding relationship between the armature displacement x and the time t, which is specifically used for: Multiply both sides of the determined relationship between the electromagnetic attraction and the armature displacement x by get: make And will Converted into a differential equation, expressed as: Mx″(t)x′(t)+kx(t)x′(t)+f2x′(t)-G(t)=0, and the value of the discrete quantity G(t) is determined based on the coil current curve; The differential equation is solved to obtain a numerical solution x(t), which is the corresponding relationship between the armature displacement x and the time t.
5. The electromagnetic relay contact gap detection system according to claim 4, characterized in that: The time determination module is specifically used for: The moment when the coil current first decreases in the coil current curve is used as the moment when the armature initially moves; The moment when the contact voltage in the contact voltage curve drops from the open circuit voltage to the circuit voltage for the first time is taken as the first closing moment of the moving and static contacts of the electromagnetic relay.
6. An electromagnetic relay contact gap detection device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the electromagnetic relay contact gap detection method as described in any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the electromagnetic relay contact gap detection method according to any one of claims 1 to 3 are implemented.