A non-contact limit switch electrical characteristic parameter testing system and method
By generating a controllable electromagnetic field through an array of electromagnetic coils, simulating the target approaching the limit switch, and synchronously acquiring signals and injecting a perturbed electromagnetic field, the accuracy and operating condition coverage issues of non-contact limit switch testing in existing technologies are solved, and high-precision evaluation of electrical characteristic parameters is achieved.
Patent Information
- Application Number
- CN202611384442.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-20
AI Technical Summary
Existing non-contact limit switch testing methods are limited by mechanical errors and motion platforms, making it difficult to achieve high-precision quantitative testing with wide operating condition coverage. They are also costly and complex to control.
A controllable electromagnetic field is generated by an array of electromagnetic coils to simulate the target approaching the limit switch under test. The output signal and auxiliary electrical signal are acquired simultaneously to determine the action boundary. A perturbation electromagnetic field is injected under critical conditions to obtain the change relationship of the action boundary.
It enables high-precision, wide-condition coverage testing of limit switch electrical characteristic parameters, improves positioning accuracy and repeatability, and provides quantitative assessment of electromagnetic compatibility performance.
Smart Images

Figure CN123136366A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electrical parameter testing technology, specifically to a non-contact limit switch electrical characteristic parameter testing system and method. Background Technology
[0002] Non-contact limit switches are widely used position detection devices in the field of industrial automation. They determine whether a moving part has reached a designated position by sensing the approach of a target. Their electrical characteristics determine the reliability and safety of the automation system, and accurate measurement is required in product factory inspection, type testing, and on-site periodic testing. Existing non-contact limit switch testing methods mainly rely on physical targets and precision motion platforms. Repeated motion is used to statistically analyze repeatability accuracy, and the response frequency characteristics are measured by changing the motion speed.
[0003] However, the motion accuracy of the physical target is constrained by the positioning error of the motion platform, the straightness of the guide rail, the backlash of the lead screw, and the vibration during operation. These mechanical errors are directly superimposed on the measurement results, limiting the resolution and repeatability of the test. Due to the limitations of the motion platform's stroke, speed range, and degrees of freedom, the physical target cannot cover all the working conditions of the limit switch in actual use. Oblique approach requires a multi-axis linkage platform, which is complex to implement and has limited angular accuracy. Extremely high-speed approach requires a high-power motor and a high-rigidity transmission mechanism, which is costly and difficult to control. Approaching arbitrary curved trajectories cannot be achieved on a single-axis or dual-axis platform.
[0004] Based on the shortcomings of the prior art, the technical problem to be solved by this application is how to provide a quantitative test that achieves high accuracy and wide operating condition coverage of the electrical characteristic parameters of non-contact limit switches. Summary of the Invention
[0005] In view of the shortcomings of the existing technology, the purpose of this application is to provide a non-contact limit switch electrical characteristic parameter testing system and method to achieve quantitative testing of electromagnetic compatibility performance.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, this application provides a method for testing the electrical characteristic parameters of a non-contact limit switch, comprising: generating a controllable electromagnetic field in space by means of an electromagnetic coil array, controlling the driving parameters of the electromagnetic coil array to make the controllable electromagnetic field continuously change along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction;
[0008] During the simulation, the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change of the physical state of the internal components are acquired synchronously. The action boundary of the limit switch under test is determined based on the time when the change of the auxiliary electrical signal reaches the preset threshold.
[0009] The driving parameters of the electromagnetic coil array are kept at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary.
[0010] Under critical conditions, a perturbation electromagnetic field with a preset amplitude and frequency is injected through an electromagnetic coil array to obtain the relationship between the action boundary of the limit switch under test and the perturbation electromagnetic field.
[0011] Furthermore, the process of the simulated target approaching the limit switch under test at a preset speed and direction includes:
[0012] Based on the type of limit switch under test, establish the influence relationship between the target at different distances and angles on the controllable electromagnetic field in the corresponding sensitive area of the limit switch under test;
[0013] Based on the preset speed and direction, the position sequence of the target relative to the measured limit switch over time is determined. After substituting the influence relationship, the preset path of the controllable electromagnetic field over time in the sensitive area is obtained.
[0014] Based on the spatial magnetic field distribution of the coils in the electromagnetic coil array, the target electromagnetic field distribution in the preset path is transformed into a sequence of driving parameters corresponding to the coils;
[0015] According to the sequence of driving parameters, the driving parameters of the coil are continuously adjusted so that the controllable electromagnetic field changes continuously along the preset path.
[0016] Furthermore, obtaining the preset path includes:
[0017] Based on the influence relationship, calculate the static electromagnetic changes of the target at different distances and angles;
[0018] Based on the preset speed, direction and conductivity of the target, calculate the additional change in the controllable electromagnetic field in the sensitive area caused by the eddy current effect generated by the target motion.
[0019] By superimposing the static electromagnetic change with the additional change, a preset path including the velocity effect is obtained.
[0020] Furthermore, determining the operating boundaries of the measured limit switch includes:
[0021] Extract the effective components that reflect the changes in the physical state of the internal components from the auxiliary electrical signal, calculate the change of the effective components relative to the initial state, and when the change reaches a preset threshold, record the driving parameters of the corresponding electromagnetic coil array as a coarse positioning estimate of the action boundary.
[0022] Centered on the coarse positioning estimate, a step scan is performed within a preset neighborhood with a preset step size. At each step position, the driving parameters are kept constant and the change of the effective components relative to the initial state is recorded.
[0023] Determine the step position where the change in step scanning first exceeds a preset threshold and its preceding adjacent step position. The interval formed by the driving parameters corresponding to the two adjacent step positions is determined as the action boundary of the limit switch under test.
[0024] Furthermore, determining the operating boundaries of the measured limit switch also includes:
[0025] After determining the action boundary, obtain the driving parameters corresponding to the midpoint of the interval and the driving parameters corresponding to the output signal of the limit switch under test when it jumps, and calculate the parameter deviation between the two.
[0026] When the parameter deviation is less than the preset allowable value, the action boundary is confirmed to be valid;
[0027] When the parameter deviation is greater than or equal to the preset allowable value, the step size of the step scan is reduced to the preset ratio of the current step size, and the step scan and action boundary determination are re-executed.
[0028] Furthermore, the critical state at which the measured limit switch is placed on the action boundary includes:
[0029] Take the midpoint of the driving parameter interval corresponding to the action boundary as the boundary condition value, and record the change of the effective component in the auxiliary electrical signal relative to the initial state.
[0030] The monitoring range is set with a preset threshold as the center and the offset of the change from the preset threshold, and the change of the effective component in the auxiliary electrical signal relative to the initial state is continuously monitored.
[0031] When the change deviates from the monitoring range, the driving parameters are corrected in the direction that brings the change back to the monitoring range, so that the measured limit switch is maintained in the critical state.
[0032] Furthermore, the step of placing the measured limit switch in a critical state at the action boundary also includes:
[0033] Obtain the output signal of the limit switch under the current driving parameters and determine whether the output signal is within the critical range of the jump;
[0034] When the output signal is within the critical range of the jump, it is confirmed that the limit switch under test is in a critical state.
[0035] When the output signal is not within the critical range of the jump, the boundary condition value is corrected according to the current state of the output signal, the change is re-recorded and the monitoring range is set to continue to maintain the critical state.
[0036] Furthermore, obtaining the relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field includes:
[0037] In the critical state, establish the calibration relationship between the change of the auxiliary electrical signal and the driving parameters. Inject a disturbance electromagnetic field under each combination of amplitude and frequency, and synchronously detect the response component in the auxiliary electrical signal corresponding to the disturbance frequency. Based on the calibration relationship, convert the response component into the equivalent displacement of the action boundary.
[0038] Using amplitude and frequency as variables for each group, the equivalent displacements at different measurement points are summarized to construct the relationship between the action boundary and the change of the disturbance electromagnetic field.
[0039] Furthermore, the response component in the detection auxiliary electrical signal corresponding to the disturbance frequency includes:
[0040] Using the frequency of the disturbing electromagnetic field as a reference, the auxiliary electrical signal is synchronously demodulated to extract the in-phase component that is in phase with the disturbance and the quadrature component that is orthogonal to the disturbance.
[0041] Based on the calibration relationship, the in-phase component and the quadrature component are converted into in-phase boundary displacement and quadrature boundary displacement respectively. The time average offset of the auxiliary electrical signal change is extracted synchronously and converted into DC offset boundary displacement based on the calibration relationship.
[0042] The relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field is characterized by the in-phase boundary displacement, orthogonal boundary displacement and DC offset boundary displacement.
[0043] Secondly, this application provides a non-contact limit switch electrical characteristic parameter testing system, including: an excitation module, a sensing module, a stationary field module, and a scrambling module;
[0044] The excitation module is used to generate a controllable electromagnetic field in space through an array of electromagnetic coils. It controls the driving parameters of the electromagnetic coil array to make the controllable electromagnetic field change continuously along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction.
[0045] The sensing module is used to simultaneously acquire the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change in the physical state of the internal components during the simulation process. The action boundary of the limit switch under test is determined based on the time when the change in the auxiliary electrical signal reaches a preset threshold.
[0046] The stationary field module is used to maintain the driving parameters of the electromagnetic coil array at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary.
[0047] The scrambling module is used to inject a scrambling electromagnetic field of preset amplitude and frequency through an electromagnetic coil array under critical conditions, and to obtain the relationship between the action boundary of the limit switch under test and the change of the scrambling electromagnetic field.
[0048] Compared with the prior art, the beneficial effects achieved by this application are as follows:
[0049] The electromagnetic field generated by the electromagnetic coil array simulates the target approach process, and any combination of speed and direction can be flexibly set to approximate the actual working conditions. The output signal and auxiliary electrical signal are acquired simultaneously, and the change in the auxiliary electrical signal reaches a preset threshold as the action boundary criterion. The auxiliary electrical signal reflects the physical state of the internal components and has continuous response characteristics to state changes near the boundary, avoiding the uncertainty and jitter of the output signal in the jump range, thus improving the positioning accuracy and repeatability of the action boundary.
[0050] By maintaining the drive parameters at boundary condition values, the limit switch is placed in a critical state at the action boundary. The internal components are most sensitive to changes in the electromagnetic field, providing high-sensitivity conditions for subsequent disturbance injection and response detection. Disturbance electromagnetic fields of different amplitudes and frequencies are injected in the critical state to obtain the relationship between the action boundary and the disturbance parameters. This information is used to evaluate the safety margin of the limit switch in a specific electromagnetic environment, compare the disturbance immunity characteristics of different models of limit switches, and guide electromagnetic compatibility optimization design. Attached Figure Description
[0051] Figure 1 This is a flowchart of a method for testing the electrical characteristic parameters of a non-contact limit switch;
[0052] Figure 2 Logic flowchart for determining the action boundary of the limit switch under test;
[0053] Figure 3 This is a schematic diagram of a non-contact limit switch electrical characteristic parameter testing system. Detailed Implementation
[0054] The technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments and specific features in the embodiments are detailed descriptions of the technical solution of this application, rather than limitations thereof.
[0055] Example 1
[0056] like Figure 1 As shown, this embodiment provides a method for testing the electrical characteristic parameters of a non-contact limit switch, including: S1, generating a controllable electromagnetic field in space through an electromagnetic coil array, controlling the driving parameters of the electromagnetic coil array to make the controllable electromagnetic field continuously change along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction.
[0057] Furthermore, the process of simulating a target approaching the limit switch under test at a preset speed and direction includes:
[0058] Based on the type of limit switch under test, establish the influence relationship between the target at different distances and angles on the controllable electromagnetic field in the corresponding sensitive area of the limit switch under test;
[0059] Based on the preset speed and direction, the position sequence of the target relative to the measured limit switch over time is determined. After substituting the influence relationship, the preset path of the controllable electromagnetic field over time in the sensitive area is obtained.
[0060] Based on the spatial magnetic field distribution of the coils in the electromagnetic coil array, the target electromagnetic field distribution in the preset path is transformed into a sequence of driving parameters corresponding to the coils;
[0061] According to the sequence of driving parameters, the driving parameters of the coil are continuously adjusted so that the controllable electromagnetic field changes continuously along the preset path.
[0062] Specifically, obtaining the preset path includes:
[0063] Based on the influence relationship, calculate the static electromagnetic changes of the target at different distances and angles;
[0064] Based on the preset speed, direction and conductivity of the target, calculate the additional change in the controllable electromagnetic field in the sensitive area caused by the eddy current effect generated by the target motion.
[0065] By superimposing the static electromagnetic change with the additional change, a preset path including the velocity effect is obtained.
[0066] The type of limit switch under test refers to the sensing principle and structural form used inside the limit switch. Different types of limit switches have different spatial distributions of sensitive areas and response mechanisms to targets. Taking an inductive limit switch as an example, its internal component is a set of oscillating coils. When the metal material of the target approaches, it causes a change in the inductance of the coils. The key electromagnetic quantity affected by the target in the sensitive area is the magnetic flux density distribution. The internal component of a capacitive limit switch is parallel plates. When the target approaches, it changes the equivalent dielectric constant between the plates. The key electromagnetic quantity is the electric field intensity distribution. The internal component of a magnetically sensitive limit switch is a semiconductor magnetic sensor. The magnetic field of the permanent magnet of the target is superimposed on the sensor. The key electromagnetic quantity is the magnetic induction intensity vector. The internal component of an eddy current limit switch is a combination of an excitation coil and a detection coil. When the metal of the target approaches, eddy currents are induced in the alternating magnetic field, changing the impedance of the detection coil. The key electromagnetic quantity is the eddy current density distribution on the target surface.
[0067] A spherical coordinate system (r, θ, φ) is established with the geometric center of the sensitive area of the limit switch as the origin, where r is the distance from the target to the origin, θ is the azimuth angle of the target relative to the normal direction of the sensitive surface of the switch, and φ is the pitch angle. The influence relationship is the correspondence between the change of the key electromagnetic quantity ΔB(r, θ, φ) in the sensitive area and the change of the target's spatial position. This relationship describes how much the electromagnetic field in the sensitive area changes when the target is in a certain spatial position, compared to the case without a target.
[0068] The influence relationship is established through numerical calculation of electromagnetic fields. Taking the finite element method as an example, a three-dimensional geometric model of the limit switch under test, the target, and the surrounding air domain is established. Material properties are assigned to each region, such as the permeability of the limit switch core and the relative permeability and conductivity of the target. A sufficiently large air domain is set around the sensitive area to simulate the open domain boundary conditions, and the magnetic potential at the boundary is set to zero. First, the reference magnetic field distribution in the sensitive area under the condition of no target is solved. Then, the target is placed at coordinates (r, θ, φ), and the magnetic field distribution in the sensitive area is solved again. The difference between the target and the reference magnetic field is calculated, which is the change in electromagnetic field caused by the target at that position. Within the space that the target can reach, the distance and angle values are traversed at certain intervals to obtain a complete ΔB(r, θ, φ) dataset, which is stored in the form of a lookup table for subsequent steps.
[0069] Taking an inductive limit switch as an example, the target is a low-carbon steel cylinder with a diameter of 20mm and a height of 10mm (relative permeability of about 200). With the center of the switch's sensitive area as the origin, and the target axis aligned with the normal direction of the sensitive surface (θ=0°), the changes in magnetic flux density at the center of the sensitive area caused by the target at different distances r are obtained through finite element calculations as shown in the table below. When the target is skewed close to (θ=0°), the projected area of the target decreases and the magnetic circuit becomes asymmetrical, and the change in electromagnetic field at the same distance decreases accordingly.
[0070]
[0071] The above data is stored in the form of a lookup table. Linear interpolation is used between adjacent data points to obtain the ΔB value corresponding to any (r,θ). Taking θ=0° and r=7.5mm as an example, the point is located between r=5mm (ΔB=12.3mT) and r=10mm (ΔB=5.8mT). After linear interpolation, ΔB≈9.05mT is obtained.
[0072] This step decouples the physical process from the electromagnetic field characterization by establishing influence relationships.
[0073] The preset speed refers to the speed at which the target approaches the limit switch. Uniform approach is the most typical test condition, and the typical speed range depends on the actual application scenario of the limit switch. The preset direction refers to the approach direction of the target relative to the limit switch, described by the angle (θ0, φ0) in spherical coordinates. The most common is a direct approach along the normal direction of the sensitive surface (θ0=0°), but there are also conditions such as oblique approach (e.g., θ0=30°). Based on the preset speed and direction, the continuous motion process of the target is discretized and sampled at fixed time intervals to obtain the position sequence of the target's spatial coordinates at each discrete moment. The coordinates of each moment in the position sequence are substituted into the lookup table of influence relationships, and the change in electromagnetic field in the sensitive area at that moment is obtained by interpolation. After being arranged in time sequence, the preset path is formed. The preset path describes the target change curve of electromagnetic field in the sensitive area during the entire approach process, with time as the independent variable and the change in electromagnetic field as the dependent variable.
[0074] Taking uniform linear radial approach as an example, let the initial position of the target be r0 from the center of the sensitive area of the limit switch, and it approaches radially at a constant speed v (distance decreases, azimuth and pitch angles remain unchanged); the motion process is discretized at a fixed time interval Δt, and the position of the target at each sampling moment is determined by the uniform motion relationship, that is, the distance at each sampling moment is the initial distance minus the product of velocity and time; when the distance decreases to the preset nearest distance r min The time series is terminated; the coordinates of each sampling time are substituted into the lookup table of influence relationships, and the target change of the electromagnetic field in the sensitive area at that time is obtained by interpolation; the target changes of all sampling times are arranged in time sequence, which is the preset path.
[0075] Given a target initial distance r0 = 50 mm, a preset velocity v = 5 mm / s, a direction of direct approach (θ0 = 0°), and a sampling interval Δt = 0.1 s, the position sequence and the preset path obtained after substituting the influence relationships are as follows:
[0076]
[0077] At a distance, the electromagnetic influence of the target on the sensitive area has decayed to near zero, with the target change being approximately 0.01 mT. As the distance decreases, the target change monotonically increases, reaching 12.3 mT at r=5 mm. This sequence fully describes how the electromagnetic field in the sensitive area should change during the entire approach process from the far end to the near end. The physical meaning of the preset path is that if there is indeed a target approaching directly at a speed of 5 mm / s within the sensitive area of the limit switch, the change in magnetic flux density within the sensitive area should follow the curve described above.
[0078] This step achieves a complete conversion from mechanical motion parameters to electromagnetic field control targets, and the preset path provides a clear and operable target for the subsequent conversion into coil drive parameters.
[0079] It should be noted that the above calculations are based only on the effect of the static position of the target on the electromagnetic field. For a moving conductive target, the additional effect of eddy currents generated by the motion must also be considered, and this will be limited in the following content.
[0080] An electromagnetic coil array consists of N spatially distributed coils. The magnetic field distribution function generated by each coil in the sensitive region when a unit current is passed through it is called the spatial magnetic field basis function of that coil; the spatial magnetic field basis function of the k-th coil is denoted as b. k (r) represents the magnetic field vector (including magnitude and direction) generated at point r in space when the coil is supplied with a current of 1A. The spatial magnetic field basis functions of all N coils are obtained by actual measurement after being supplied with known currents. This is an inherent property of the electromagnetic coil array. During calibration, a sinusoidal current of known amplitude (frequency 1kHz, amplitude 1A) is supplied to each coil in sequence. The magnetic field vector is measured using a three-dimensional magnetic field sensor at grid points with a spacing of 5mm in the sensitive area, and the magnetic field basis functions of each coil at each point are recorded. At each sampling moment of the preset path, the target magnetic field to be achieved in the sensitive area is known. The driving current that should be supplied to each of the N coils is solved so that the superimposed magnetic field generated by the N coils is as consistent as possible with the target magnetic field. This solution process is performed for all sampling moments to obtain the driving parameter sequence.
[0081] According to the principle of magnetic field superposition, the magnetic field generated by N coils at any point in space is the sum of the products of the driving current of each coil and the basis function of the corresponding spatial magnetic field. Several spatial sampling points are selected within the sensitive area, and the superimposed magnetic field is made equal to the target magnetic field at each sampling point. A linear system of equations is established regarding the driving current of each coil. Since the number of sampling points is usually greater than the number of coils, the system of equations is an overdetermined system. The least squares method is used to solve for the driving current that minimizes the residual. When the spatial magnetic field basis functions of the coils are correlated, causing the system of equations to be ill-conditioned, Tikhonov regularization is introduced to suppress the numerical oscillation of the solution, achieving a balance between the driving current amplitude constraint and the magnetic field fitting accuracy. The regularization parameter is selected using the L-curve method. The L-curve method is to plot the relationship between the residual norm ||Ax-b||2 and the solution norm ||x||2 in logarithmic coordinates with the regularization parameter λ as the independent variable. The curve is L-shaped, and the λ corresponding to the inflection point of the L-shape is selected as the optimal regularization parameter. The above solution is performed one by one for all sampling times of the preset path to obtain the driving parameter sequence.
[0082] Suppose that the electromagnetic coil array consists of 3 coils, which are installed in front of (coil 1), to the left of (coil 2), and above (coil 3) the sensitive area of the limit switch. Four spatial sampling points are selected in the sensitive area. After calibration, the spatial magnetic field basis function data of the 3 coils at the 4 sampling points are known.
[0083] When the distance at the sampling time is r=10mm, the preset path requires the change in the target magnetic field in the sensitive area to be ΔB=5.8mT (along the normal direction of the sensitive surface). A system of equations is constructed and solved using the least squares method, yielding the driving currents of the three coils at that time to be approximately I1=0.32A, I2=0.15A, and I3=0.08A. Substituting the driving currents back into the superposition formula for verification, the deviations between the actual magnetic field and the target magnetic field at each sampling point are all within the preset accuracy tolerance. Performing the above process for all sampling times yields the driving parameter sequence. Taking coil 1 as an example, its driving current variation with time is as follows:
[0084]
[0085] At a distance, the driving current is extremely small (close to zero). As the virtual position of the target approaches, the driving current increases monotonically, consistent with the increasing trend of the change in the target magnetic field in the preset path. The driving current sequences of coil 2 and coil 3 have the same trend, but the amplitudes are different, reflecting the spatial position differences of each coil relative to the sensitive area.
[0086] The output sequence of driving parameters in this step gives the driving state that each coil should be in at each moment during the entire simulation process. By continuously adjusting the coil driving parameters according to this sequence, the electromagnetic simulation of the target approach process can be completed.
[0087] The aforementioned generated driving parameter sequence is executed, causing the driving current of each coil in the electromagnetic coil array to be output in real time according to the time function in the sequence, thereby making the electromagnetic field in the sensitive area actually change along the preset path. The driving parameter sequence consists of discrete sampling points, while the coil current needs to be continuously output. Interpolation is performed between adjacent sampling times to generate a continuous current waveform. When the virtual target position is far from the limit switch, the electromagnetic field changes slowly, and linear interpolation can meet the accuracy requirements. When the virtual target position is close to the limit switch, the rate of change of the electromagnetic field increases sharply, and cubic spline interpolation can effectively reduce waveform distortion.
[0088] The current values at each moment are read from the drive parameter sequence according to the preset sampling rate, and after interpolation, they are output to the current source of each channel. The current source drives the corresponding coil to output the specified current. The synchronization accuracy between channels is guaranteed by a unified clock signal to ensure that the current of each coil is aligned in phase. In cases where high simulation accuracy is required, a reference magnetic field sensor is placed near the sensitive area to measure the actual magnetic field of the sensitive area in real time and compare it with the preset path. The deviation of the drive parameters is corrected through closed-loop feedback control to compensate for the errors introduced by actual factors such as resistance changes caused by coil temperature rise and power supply voltage fluctuations.
[0089] During this step, as the driving parameters are continuously adjusted, the electromagnetic field within the sensitive area of the limit switch changes continuously, and the physical state of the internal components of the limit switch changes accordingly.
[0090] Assuming the target is stationary at each location, the static electromagnetic change in the sensitive area compared to the case without a target is ΔB, which is obtained directly from the lookup table of influence relationships mentioned above. static The variation (r, θ, φ) depends only on the target's material, shape, and spatial position, and is independent of the target's velocity. When a conductive target moves in an alternating magnetic field generated by an array of electromagnetic coils, eddy currents are generated inside the target due to electromagnetic induction. According to Lenz's law, the additional magnetic field generated by the eddy currents tends to cancel the magnetic field changes that cause the eddy currents, thereby altering the electromagnetic field distribution within the sensitive area. The eddy current density is proportional to the target's conductivity, velocity, and the local magnetic field gradient at its location. By performing eddy current field analysis using a three-dimensional finite element model of the target, the additional variation generated by the eddy currents within the sensitive area can be calculated. The eddy current field analysis uses the velocity term method, assigning the target's velocity vector to the velocity term in the target's motion region. An adaptive mesh refinement strategy is used, refining the mesh to below 0.5 mm near the target surface and sensitive area. At each sampling moment of the preset path, the static electromagnetic variation corresponding to the target's location at that moment is added to the additional variation to obtain the total electromagnetic variation including the velocity effect, which is used as the corrected preset path. Subsequent inversion into a driving parameter sequence and continuous adjustment of driving parameters are both performed based on this corrected preset path.
[0091] The calculation of additional changes is based on the three-dimensional finite element model of the target. The actual conductivity of the target material is assigned to the finite element model, the velocity vector of the target is set, and the eddy current field distribution in the moving conductor is solved at each discrete position of the target. Then, the additional magnetic field generated at the center of the sensitive area is calculated from the eddy current field. The additional changes of eddy currents at each position are obtained by traversing the space that the target can reach at certain intervals. The data are stored in the form of a lookup table, which is consistent with the lookup table structure of the static electromagnetic changes, so as to facilitate point-by-point superposition. For the working conditions with weak velocity effects (low-speed, low conductivity targets), the additional changes are much smaller than the static electromagnetic changes, and the difference between the preset paths before and after superposition can be ignored. For the working conditions of high-speed or high conductivity targets, the superposition correction cannot be ignored.
[0092] Using an aluminum alloy target (with an electrical conductivity of approximately 3.77 × 10⁻⁶), 7Taking (S / m) as an example, with the target located 10 mm from the center of the sensitive area and moving at a speed of 500 mm / s, finite element analysis shows that the additional change generated by the eddy current at the center of the sensitive area is approximately 0.14 mT; the static electromagnetic change at the same distance is 5.8 mT, with the additional change accounting for approximately 2.4% of the static change; after superimposing the two, the target change of the corrected preset path at this sampling time is 5.94 mT; when the speed increases to 5000 mm / s, the additional change increases to approximately 1.4 mT, accounting for approximately 24% of the static change, and the corrected target change is 7.2 mT, which is significantly different from the pure static path and cannot be ignored; for steel targets (with an electrical conductivity of approximately 1 × 10⁻⁶ m / s), the additional change is 0.14 mT. 7 At the same speed (S / m), the eddy current effect is about one-quarter of the calculated value above; therefore, at a medium speed of 500 mm / s, the eddy current effect of the steel target can be ignored; however, it still needs to be considered at a high speed of 5000 mm / s.
[0093] The modified preset path in this step includes velocity effects. The subsequent inversion of the driving parameter sequence will enable the electromagnetic field in the sensitive area to more accurately simulate the actual process of the target approaching the limit switch at a specific speed and direction. In the stage of approaching the limit switch, due to the small distance, large magnetic field gradient, and most significant eddy current effect, the difference between the modified preset path and the pure static path is mainly concentrated in this stage. This difference is transmitted to the coil drive output through the driving parameter sequence, so that the final simulation result has higher accuracy in the near-end region.
[0094] S2. During the simulation, the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change of the physical state of the internal components are acquired synchronously. The action boundary of the limit switch under test is determined based on the time when the change of the auxiliary electrical signal reaches the preset threshold.
[0095] like Figure 2 As shown, determining the operating boundaries of the limit switch under test includes:
[0096] Extract the effective components that reflect the changes in the physical state of the internal components from the auxiliary electrical signal, calculate the change of the effective components relative to the initial state, and when the change reaches a preset threshold, record the driving parameters of the corresponding electromagnetic coil array as a coarse positioning estimate of the action boundary.
[0097] Centered on the coarse positioning estimate, a step scan is performed within a preset neighborhood with a preset step size. At each step position, the driving parameters are kept constant and the change of the effective components relative to the initial state is recorded.
[0098] Determine the step position where the change in step scanning first exceeds a preset threshold and its preceding adjacent step position. The interval formed by the driving parameters corresponding to the two adjacent step positions is determined as the action boundary of the limit switch under test.
[0099] Specifically, determining the operating boundaries of the limit switch under test also includes:
[0100] After determining the action boundary, obtain the driving parameters corresponding to the midpoint of the interval and the driving parameters corresponding to the output signal of the limit switch under test when the output signal changes, and calculate the parameter deviation between the two.
[0101] When the parameter deviation is less than the preset allowable value, the action boundary is confirmed to be valid;
[0102] When the parameter deviation is greater than or equal to the preset allowable value, the step size of the step scan is reduced to the preset ratio of the current step size, and the step scan and action boundary determination are re-executed.
[0103] As the electromagnetic field continuously changes along a preset path, the change in the auxiliary electrical signal gradually increases from its initial near-zero value, eventually causing the limit switch to change state. If the change in the output signal is directly used as the criterion for the action boundary, the output signal is prone to jitter near the boundary of the change due to noise, which leads to unstable judgment of the change moment. The auxiliary electrical signal is an electrical signal that reflects the physical state of the internal components of the limit switch under test. Its original waveform usually contains components directly related to the changes in the internal physical state, as well as noise and interference components that are unrelated to them.
[0104] The effective components directly related to changes in the internal physical state are separated from the auxiliary electrical signal. The specific method depends on the sampling method of the auxiliary electrical signal and the internal structure of the limit switch under test. If the auxiliary electrical signal comes from the resonant frequency change of the internal oscillation circuit of the limit switch, the effective component is the frequency offset, which is extracted by a phase-locked loop or a frequency counter. If it comes from the unbalanced voltage of the internal bridge circuit, the effective component is the differential-mode voltage, which is extracted by a differential amplifier. If it comes from the bias current change of the magnetic sensitive element, the effective component is the incremental current signal, which is extracted by a transimpedance amplifier. When extracting the effective components, bandpass filtering is performed to suppress out-of-band noise. The passband range of the filter is preset according to the response frequency band of the internal components of the limit switch.
[0105] Before the electromagnetic field change process begins, the initial state of the effective component of the auxiliary electrical signal is recorded. During the continuous change of the electromagnetic field along the preset path, the difference between the current value of the effective component and the initial state is continuously calculated, which is the change amount. This change amount reflects the degree of deviation of the physical state of the internal components of the limit switch relative to the start of the test. During the continuous change of the electromagnetic field, it is judged in real time whether the change amount reaches the preset threshold. The preset threshold is a judgment threshold pre-set according to the type and sensitivity of the limit switch under test. Its value is usually slightly smaller than a certain percentage of the change amount of the limit switch from completely untriggered to fully triggered across the entire range. When the change amount first reaches the threshold, the driving current value of each coil in the electromagnetic coil array at this moment is recorded as a coarse positioning estimate of the action boundary in the driving parameter space.
[0106] Taking an inductive limit switch as an example, the auxiliary electrical signal is taken from the resonant frequency of the internal oscillation circuit of the limit switch. In targetless simulation (the electromagnetic coil array does not generate a magnetic field), the reference value of the resonant frequency is f0 = 125kHz. As the electromagnetic field changes continuously along the preset path, the resonant frequency gradually shifts. The shift of the resonant frequency Δf = f(t) - f0 is extracted as the change. The frequency shift of the limit switch from completely untriggered to fully triggered across the entire range is approximately 2.5kHz. The preset threshold is set to 60% of the full range, i.e., Δf th =1.5kHz; During the continuous change of the electromagnetic field, when Δf first reaches 1.5kHz, the driving current of coil 1 is 0.285A, coil 2 is 0.132A, and coil 3 is 0.071A. This set of driving current values is recorded as the coarse positioning estimate. At this time, the output signal of the limit switch is still at a high level (not triggered), indicating that the switch has not actually jumped when the change of the auxiliary electrical signal reaches the threshold. The auxiliary electrical signal has look-ahead predictive ability. The coarse positioning estimate is located before the actual action boundary, leaving a margin for subsequent step scanning.
[0107] This step narrows the search range of the action boundary from the entire electromagnetic field change path to a neighborhood centered on the coarse localization estimate, which greatly reduces the computational load and time cost of subsequent precise localization. The coarse localization estimate provides the search center for subsequent step scans.
[0108] The coarse positioning estimate provides a general area of the action boundary. However, due to the limited sampling rate during the continuous change of the electromagnetic field, the accuracy of the coarse positioning is limited by the change in the electromagnetic field between two adjacent sampling points. The driving parameters (i.e., the coarse positioning estimate) at the pause in the continuous change of the electromagnetic field are used as the reference center point for the step scan. Starting from the coarse positioning estimate, the driving parameters of the coil are gradually adjusted in the direction approaching the action boundary, i.e., the direction of increasing change, with a preset step size. After each adjustment step, the scan is paused to form a step position. The neighborhood range defines the total stroke of the step scan, which is usually set from a position several steps before the coarse positioning estimate to a position several steps after the coarse positioning estimate to ensure that the action boundary falls within the scan range.
[0109] At each step position, the coil drive current is fixed at the value corresponding to that position. Sufficient time is allowed for the physical state of the internal components of the limit switch to reach quasi-static equilibrium, i.e., the auxiliary electrical signal no longer has significant drift. Then, the change in the effective component relative to the initial state is recorded. After coarse positioning is completed, the drive current of each coil is gradually adjusted according to the preset step size and direction. The adjustment range of each step is the preset step size multiplied by the weight coefficient of each coil in that direction (determined by the spatial magnetic field basis function of the coil) to ensure that the electromagnetic field change of each step is approximately uniform in the sensitive area. The direction of step scanning is from the area where the change is less than the preset threshold to the area where the change is greater than the preset threshold. Bidirectional scanning can also be performed on both sides of the coarse positioning estimate to obtain a complete picture of the change distribution near the action boundary.
[0110] For example, the coarse positioning estimate corresponds to a driving current of 0.285A for coil 1. The preset step size is 0.005A, meaning the driving current of coil 1 increases by 0.005A with each step. Coils 2 and 3 are adjusted synchronously according to their weighted proportions. The preset neighborhood is 10 steps before and after the coarse positioning estimate, and the stabilization waiting time is 100ms. The recorded data during the step-scanning process is as follows:
[0111]
[0112] In the table, step number 0 is the step position corresponding to the coarse positioning estimate. The negative sign indicates the opposite direction of approaching the boundary, and the positive sign indicates the positive direction of approaching the boundary. As can be seen from the table, the frequency offset increases monotonically with the increase of the drive current. The change at step number 0 just reaches the preset threshold (1.5kHz), while the change at step number +1 has exceeded the threshold.
[0113] This step improves the positioning resolution of the action boundary from the sampling interval during continuous change to the step size level, thus forming a fine distribution of the changes in the auxiliary electrical signal near the action boundary.
[0114] Step scanning obtains discrete data points. There is a finite interval of driving parameters between two adjacent step positions. The true action boundary is located at the crossing point where the change changes from below the threshold to above the threshold, but it is uncertain between which two adjacent step positions this crossing point falls. Traversing the data sequence recorded by step scanning, starting from the side where the change is below the preset threshold, the first step position where the change exceeds the preset threshold is found (denoted as step position i), and its previous step position (step position i-1) is recorded. The change at step position i-1 is below the preset threshold, and the change at step position i is above the preset threshold. Therefore, the true action boundary must be located between the driving parameters corresponding to these two step positions.
[0115] Using the driving parameter value corresponding to step position i-1 as the lower limit of the interval and the driving parameter value corresponding to step position i as the upper limit of the interval, the two constitute a driving parameter interval [P]. i-1 ,P i The interval is the action boundary of the limit switch being tested. The action boundary is represented by an interval rather than a single value, reflecting the limitation of the step scan resolution on the positioning accuracy. The actual boundary is located somewhere within this interval, but the specific location requires a smaller step size for further precision.
[0116] For example, after traversing the data sequence, the change in step number -3 (1.12kHz) is below the threshold, -2 (1.23kHz) is below the threshold, -1 (1.38kHz) is below the threshold, 0 (1.5kHz) is equal to the threshold, and +1 (1.68kHz) is greater than the threshold for the first time. Therefore, step position +1 is the position where the change first exceeds the preset threshold, and step position 0 is its previous adjacent step position. Step position 0 corresponds to a driving current of 0.285A for coil 1, and step position +1 corresponds to 0.29A. The action boundary is determined as the interval [0.285A, 0.29A] (taking coil 1 as an example, coil 2 and coil 3 are given synchronously according to their corresponding values). The interval width is one step (0.005A), reflecting the resolution of the current step scan. The true boundary is located within this interval, and the distance from the two ends of the interval does not exceed one step.
[0117] This step represents the action boundary in the form of an interval, clearly indicating the upper and lower limits of positioning accuracy and the accuracy limit that can be achieved by finite resolution step scanning. At the same time, this interval also provides a comparison benchmark for cross-validation.
[0118] The determination of the action boundary is entirely based on the change in the auxiliary electrical signal, without utilizing information from the output signal. However, the output signal represents the final state presented by the limit switch. Whether the action boundary determined by the auxiliary electrical signal matches the transition point of the output signal determines the engineering validity of the action boundary. If they match, the criterion of the auxiliary electrical signal is reliable. If there is a large deviation, it indicates that the criterion of the auxiliary electrical signal may have a systematic deviation from the actual switch behavior, requiring rescanning with a smaller step size to improve positioning accuracy. The arithmetic mean of the driving parameters corresponding to the lower and upper limits of the action boundary interval is taken as the representative value of the action boundary. For example, if the interval is [P...] i-1 ,P i If ], then the midpoint is (P) i-1 +P i ) / 2.
[0119] During the step scanning process, the state of the limit switch output signal is recorded simultaneously. When the output signal changes from a determined non-triggered level to a determined triggered level, the driving parameter value corresponding to the moment of the transition is recorded. Since the state of the output signal is recorded at each step position during the step scanning, the transition between which two step positions occurs is determined by comparing the output signal states of adjacent step positions. The midpoint of this interval is then taken as the driving parameter corresponding to the output signal transition. The absolute value of the driving parameter value at the midpoint of the action boundary interval is subtracted from the driving parameter value corresponding to the output signal transition to obtain the parameter deviation between the two. This deviation reflects the consistency between the auxiliary electrical signal criterion and the output signal criterion in the action boundary positioning.
[0120] For example, the action boundary range is [0.285A, 0.29A], with a midpoint of 0.2875A. During the step scanning process, the output signal status of each step position is recorded synchronously: the output signal of step positions -3 to +1 is high (not triggered), and the output signal of step position +2 jumps to low (triggered). Therefore, the jump in the output signal occurs between step positions +1 (0.29A) and +2 (0.295A). The midpoint 0.2925A is taken as the driving parameter corresponding to the jump in the output signal. The parameter deviation is |0.2925-0.2875|=0.005A, which is exactly equal to one step. If the preset allowable value is two steps (0.01A), then 0.005 < 0.01, and the parameter deviation is less than the preset allowable value, confirming that the action boundary is valid.
[0121] From a physical perspective, the criterion for the auxiliary electrical signal positions the action boundary between 0.285 and 0.29 A, while the output signal jump occurs between 0.29 and 0.295 A, indicating a systematic offset of one step size between the two. This suggests that the auxiliary electrical signal senses the change in the internal physical state before the actual jump in the output signal, demonstrating its predictive ability. This offset is within acceptable limits, and the action boundary is valid.
[0122] The cross-validation step compares the criteria for the auxiliary electrical signal with those for the output signal, providing an objective basis for evaluating the effectiveness of the action boundary. The magnitude of the parameter deviation reflects the degree of consistency between the two criteria. When the criteria for the auxiliary electrical signal and the criteria for the output signal are highly consistent, cross-validation enhances the credibility of the test results. When there is a systematic shift between the two, cross-validation quantifies the shift, providing a reference for interpreting the test results.
[0123] When cross-validation finds that the parameter deviation exceeds the allowable value, it indicates that the current step size is too large and the positioning accuracy of the action boundary is insufficient. The scaled-down smaller step size can provide higher resolution, narrow the action boundary interval, and make the midpoint of the interval closer to the true boundary, thereby reducing the parameter deviation between the output signal jump point and the step size. Multiply the step size of the step scan by a scaling factor less than 1 to obtain a new smaller step size. The preset ratio is 0.5 (i.e., the step size is halved) or 0.1 (the step size is reduced to one-tenth of the original), and the specific value depends on the required degree of accuracy improvement. With the new smaller step size, the step scan is re-performed within the original action boundary interval. The step position where the change first exceeds the threshold and its previous adjacent position are determined again to obtain a narrower action boundary interval. Then, cross-validation is re-executed.
[0124] For example, with an initial step size of 0.005A, a parameter deviation of 0.005A, and a preset tolerance of 0.01A, the parameter deviation already meets the requirements, and there is no need to reduce the step size and retest. In another condition, with an initial step size of 0.01A, an action boundary range of [0.28A, 0.29A], a midpoint of 0.285A, and a drive parameter corresponding to the output signal transition of 0.3A, the parameter deviation is |0.3-0.285|=0.015A, exceeding the preset tolerance of 0.01A. The step size is reduced to 0.5 times the current step size, resulting in a new step size of 0.005A. Using the action boundary range [0.28, 0.29] as the center, a rescan is performed within the range [0.275, 0.3] with a step size of 0.005A. The new scan data is as follows:
[0125]
[0126] The step position where the change first exceeds the threshold (1.5kHz) is +2 (1.51kHz), and its preceding adjacent position is +1 (1.39kHz). The new action boundary interval is [0.28A, 0.285A], with the midpoint of the interval being 0.2825A. The output signal status is recorded synchronously: step positions +2 and +3 are triggered, and step position +1 is not triggered. The output signal jump occurs between step positions +1 and +2, and the jump point driving parameter is 0.2825A. The new parameter deviation is |0.2825-0.2825|=0, which is less than the preset allowable value of 0.01A, confirming the validity of the action boundary. The width of the new action boundary interval is reduced from 0.01A to 0.005A, and the positioning accuracy is doubled.
[0127] This step iteratively improves the accuracy of action boundary positioning. The initial larger step size ensures the speed of step scanning, and the step size is reduced when cross-validation fails to ensure the accuracy of the final positioning. The action boundaries that have been confirmed as valid through cross-validation are passed to subsequent steps in the form of intervals as the basis for determining the boundary condition values. The action boundary intervals also provide accuracy information for the subsequent test result report.
[0128] S3. Maintain the driving parameters of the electromagnetic coil array at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary.
[0129] Furthermore, bringing the tested limit switch to a critical state at the operating boundary includes:
[0130] Take the midpoint of the driving parameter interval corresponding to the action boundary as the boundary condition value, and record the change of the effective component in the auxiliary electrical signal relative to the initial state.
[0131] The monitoring range is set with a preset threshold as the center and the offset of the change from the preset threshold, and the change of the effective component in the auxiliary electrical signal relative to the initial state is continuously monitored.
[0132] When the change deviates from the monitoring range, the driving parameters are corrected in the direction that brings the change back to the monitoring range, so that the measured limit switch is maintained in the critical state.
[0133] Specifically, bringing the limit switch under test to a critical state at the operating boundary also includes:
[0134] Obtain the output signal of the limit switch under the current driving parameters and determine whether the output signal is within the critical range of the jump;
[0135] When the output signal is within the critical range of the jump, it is confirmed that the limit switch under test is in a critical state.
[0136] When the output signal is not within the critical range of the jump, the boundary condition value is corrected according to the current state of the output signal, the change is re-recorded and the monitoring range is set to continue to maintain the critical state.
[0137] The defined action boundary is an interval. The driving parameters within the interval correspond to different physical states. The change on the side closer to the lower limit is lower than the preset threshold (safe), while the change on the side closer to the upper limit is higher than the preset threshold (trigger-prone). In the subsequent continuous monitoring process, it is necessary to know the change in the auxiliary electrical signal corresponding to the limit switch being in the critical state. Although this change should theoretically be close to the preset threshold, there may be a deviation between the actual value and the preset threshold. This deviation comes from factors such as the limited resolution of the stepping scan, the systematic error of the electromagnetic field, and individual differences of the limit switches.
[0138] The arithmetic mean of the driving parameters corresponding to the lower and upper limits of the determined action boundary interval is taken to obtain the boundary condition value. The midpoint of the interval is mathematically an unbiased estimate of the interval, and physically it is the middle position between two adjacent step positions where the change is below the threshold and the change is above the threshold. In a probabilistic sense, it is closest to the true action boundary. After adjusting the driving parameters of the electromagnetic coil array to the boundary condition value, wait for the physical state of the internal components of the limit switch to reach quasi-static equilibrium, and then record the change of the effective component of the auxiliary electrical signal relative to the initial test state. This change reflects the actual physical state of the limit switch under the electromagnetic field conditions corresponding to the boundary condition value, and serves as the reference data for subsequent monitoring.
[0139] It is important to note that when transitioning the drive parameters from the current position at the end of the step scan to the boundary condition value, a gradual transition rather than an instantaneous transition should be used. An instantaneous transition can generate transient electromagnetic field shocks in sensitive areas, which may cause false triggering of limit switches or nonlinear responses of internal components. The gradual transition method involves gradually adjusting the drive parameters to the boundary condition value at a preset transition rate (much smaller than the rate of continuous change). The transition time is 2 seconds, and the transition rate is 1 / (2 seconds / sampling interval) of the difference between the boundary condition value and the current position, ensuring no overshoot during the transition.
[0140] For example, the action boundary range is [0.285A, 0.29A] (using the drive current of coil 1 as an example), and the midpoint of the range is 0.2875A, which is the boundary condition value. The drive current of coil 1 is gradually adjusted from 0.29A at the end of the step scan to 0.2875A (coil 2 and coil 3 are adjusted synchronously proportionally), and 200ms are waited for the internal components of the limit switch to reach a steady state. The offset of the resonant frequency in the auxiliary electrical signal is recorded, and the measured change is 1.53kHz. The preset threshold is 1.5kHz, and the offset between the measured change and the preset threshold is 1.53-1.5=0.03kHz. This offset indicates that the actual physical state of the limit switch under the boundary condition value is slightly biased towards the trigger side. That is, although the midpoint of the range is an unbiased estimate of the range in the drive parameter space, since the relationship between the change of the auxiliary electrical signal and the drive parameters is not strictly linear near the boundary, there is a small systematic deviation between the physical state corresponding to the midpoint and the preset threshold. This deviation is automatically taken into consideration in the subsequent monitoring range setting.
[0141] This step provides an accurate physical state reference for subsequent monitoring. The gradual adjustment method avoids transient shocks caused by abrupt changes in drive parameters, thus protecting the normal operation of the internal components of the limit switch.
[0142] After fixing the driving parameters to the boundary condition values, the change in the auxiliary electrical signal may drift slowly over time. If this drift is not monitored and compensated for, the limit switch may unknowingly deviate from the critical state, causing subsequent disturbance tests to be performed under incorrect physical conditions. The center position of the monitoring range is set as a preset threshold, which is a threshold for judging the change in the auxiliary electrical signal defined during the action boundary determination process. It represents the critical change level at which the limit switch transitions from being determined not to be triggered to being determined to be triggered. The absolute value of the difference between the measured change recorded in the previous section and the preset threshold is half-width. Extending half-width to both sides of the preset threshold as the center constitutes the monitoring range. Let the measured change be denoted as ΔS. meas The preset threshold is denoted as ΔS. th The offset is denoted as δ=|ΔS meas -ΔS th |, then the monitoring range is [ΔS th -δ, ΔS th +δ].
[0143] The offset reflects the systematic deviation between the physical state corresponding to the current boundary condition value and the ideal critical point. The monitoring range is set at half the width of this deviation value, which means that the change in subsequent monitoring is allowed to fluctuate around the current measured value, but the deviation is not allowed to exceed the absolute value of the deviation. If the deviation exceeds this value, it indicates that an abnormal drift has occurred that exceeds the systematic deviation range, and compensation and correction are required. While the boundary condition value remains unchanged, the auxiliary electrical signal is continuously collected, the effective component is extracted, the change is calculated, and the value is compared with the monitoring range at a preset monitoring period (10ms to 50ms).
[0144] For example, a preset threshold ΔS th =1.5kHz, measured change ΔS meas =1.53kHz, offset δ=0.03kHz, monitoring range is [1.47kHz, 1.56kHz]; during the critical state maintenance process, the records of each monitoring moment are shown in the table below. At the 15th second, the change amount of 1.46kHz is lower than the lower limit of the monitoring range of 1.47kHz, and it is determined that the limit switch has drifted away from the boundary. Physically, this corresponds to the coil temperature rise causing the magnetomotive force to decrease and the electromagnetic field to weaken; triggering the correction operation.
[0145]
[0146] This step adaptively matches the monitoring sensitivity to the current system state, ensuring that the monitoring range has a fixed physical reference and does not shift due to drift.
[0147] Factors such as coil temperature rise and power fluctuations can cause the electromagnetic field in the sensitive area to drift, causing the change in the auxiliary electrical signal to deviate from the monitoring range. If the drive parameters are not compensated and corrected, the limit switch will gradually move away from the critical state. The correction direction of the drive parameters is determined according to the direction in which the change deviates from the monitoring range. When the change exceeds the upper limit of the monitoring range, the drive parameters are corrected in the direction of decreasing, that is, reducing the electromagnetic field strength in the sensitive area to reduce the change. When the change is below the lower limit of the monitoring range, the drive parameters are corrected in the direction of increasing, that is, increasing the electromagnetic field strength in the sensitive area to increase the change. The principle for determining the correction direction is to make the change tend to the center of the monitoring range, rather than simply returning to the boundary of the monitoring range.
[0148] Based on the current driving parameters, a correction increment is applied along the correction direction. The magnitude of the correction increment is proportional to the deviation of the change from the monitoring range boundary. Through the above correction operation, the change of the auxiliary electrical signal is pulled back into the monitoring range, so that the physical state of the limit switch returns to the critical region. After correction, monitoring continues. If it deviates again, it is corrected again. The operation continues until the critical state maintenance phase ends.
[0149] For example, at the 15th second, the change was 1.46kHz, which was lower than the lower limit of the monitoring range of 1.47kHz, with a deviation of 0.01kHz. The correction direction was to increase the driving parameters. A proportional correction strategy was adopted, with the correction coefficient set at a 0.002A increase in driving current for every 0.01kHz deviation (taking coil 1 as an example). The correction coefficient was obtained from the correspondence between the change in auxiliary electrical signal and the driving parameters recorded during the step scan, taking the local slope of the step scan data near the boundary. Since the deviation was 0.01kHz, the driving current correction increment for coil 1 was 0.002A, increasing from 0.2875A to 0.2895A (coils 2 and 3 were synchronously corrected proportionally). After waiting 100ms, the data was re-acquired, and the change rose back to 1.51kHz, within the monitoring range [1.47, 1.56]. The correction was completed, and the normal monitoring cycle was restored. The comparison before and after the correction is shown in the table below.
[0150]
[0151] During the correction process, the driving current of coil 1 increases by 0.002A, compensating for the decrease in magnetomotive force by about 0.7%, causing the change to rise from 1.46kHz to 1.51kHz, and the physical state of the limit switch returns to the critical region.
[0152] This step eliminates the influence of drift between the driving parameters and the actual electromagnetic field. The driving parameter correction keeps the limit switch in a critical state in the dimension of the auxiliary electrical signal.
[0153] By monitoring and correcting the auxiliary electrical signal, the limit switch is kept in the critical region in terms of its internal physical state. However, the correspondence between the auxiliary electrical signal and the output signal may be affected by the nonlinear characteristics of the limit switch. The auxiliary electrical signal alone cannot completely confirm whether the limit switch is truly in a critical state. While the monitoring and correction of the auxiliary electrical signal is running continuously, the output signal presented by the limit switch is acquired simultaneously. The output signal is the final response of the limit switch. For digital output limit switches, the output signal is a high level (not triggered) or a low level (triggered). For analog output limit switches, the output signal is a continuously changing voltage or current value.
[0154] The current output signal state is compared with the switching characteristics of the limit switch. The switching critical range refers to the transition region between the output signal being definitely not triggered and definitely triggered. For digital output limit switches, the switching critical range is usually defined as the uncertain window of the logic level, that is, the region where the output voltage is between the lower limit of the logic high level and the upper limit of the logic low level. For example, if the output of the limit switch is TTL level, the lower limit of the logic high level is 2V, and the upper limit of the logic low level is 0.8V, then the switching critical range is 0.8V to 2V. For analog output limit switches, the switching critical range is the transition segment between the output value from the steady-state not triggered value to the steady-state triggered value. The specific range is determined according to the technical specifications of the limit switch.
[0155] Taking a limit switch with digital output as an example, the output is at TTL level, and the critical transition range is defined as [0.8V, 2V]. During the continuous operation of the auxiliary electrical signal monitoring and correction cycle, the voltage value of the output signal is acquired synchronously. At a certain monitoring moment, the change in the auxiliary electrical signal is 1.51kHz (within the monitoring range [1.47, 1.56], which is in the critical region in terms of the auxiliary electrical signal dimension), but the voltage of the output signal is 0.5V, which is lower than the lower limit of the critical transition range of 0.8V. It is determined that the output signal is not in the critical transition range. At this time, the output signal is on the side that is determined not to be triggered, indicating that the limit switch is far away from the transition point in terms of the output signal dimension.
[0156] This situation indicates that there is a systematic offset between the critical region of the auxiliary electrical signal and the critical range of the output signal. The auxiliary electrical signal has sensed the significant change in the internal physical state, but the output signal has not yet reflected it. This is because the auxiliary electrical signal directly detects the physical state of the internal components, while the output signal has propagation delay and sensitivity differences after passing through the internal signal processing links such as amplification and comparison.
[0157] This step elevates the confirmation of the critical state from indirect representation by auxiliary electrical signals to direct verification by the output signal by judging the output signal. The judgment result that the output signal is within the critical range of the jump confirms the validity of the critical state. The critical state maintenance phase is completed, and subsequent disturbance testing can proceed.
[0158] When the output signal is not within the critical transition range, it indicates that monitoring and correction based solely on the auxiliary electrical signal is insufficient to guarantee that the limit switch is truly in a critical state. The monitoring range of the auxiliary electrical signal is automatically set based on the measured offset. Although this range is reasonable in terms of the auxiliary electrical signal, the correspondence between the auxiliary electrical signal and the output signal may deviate from expectations due to individual differences, aging conditions, or temperature characteristics of the limit switch. When the output signal is not within the critical transition range, the adjustment direction and magnitude of the boundary condition value are determined based on the positional relationship of the output signal relative to the critical transition range. The boundary condition value is then corrected to a new value. Specifically, when the output signal is on the side that is definitely not triggered, it indicates that the electromagnetic field strength corresponding to the current boundary condition value is insufficient, and the boundary condition value should be increased (increase the driving current to enhance the electromagnetic field). When the output signal is on the side that is definitely triggered, it indicates that the electromagnetic field strength corresponding to the current boundary condition value is too large, and the boundary condition value should be decreased (decrease the driving current to weaken the electromagnetic field).
[0159] After adjusting the drive parameters to the corrected boundary condition values, wait for the internal components of the limit switch to reach a steady state, re-record the change in the auxiliary electrical signal, recalculate the offset according to the aforementioned method, and set a new monitoring range. Based on the corrected boundary condition values, the newly recorded change, and the newly set monitoring range, continue executing the aforementioned monitoring and correction cycle to maintain the limit switch in a critical state at the new operating point. The correction amplitude is the difference between the current position of the output signal and the midpoint of the jump critical range, multiplied by a conversion factor determined by the sensitivity relationship between the change in the auxiliary electrical signal and the drive parameters, to obtain the correction increment of the drive parameters. This conversion factor can be obtained from the correspondence between the change in the auxiliary electrical signal and the drive parameters recorded during the step scanning process, i.e., how much change in the auxiliary electrical signal is caused by a unit change in the drive parameters, and its reciprocal is the conversion factor from the auxiliary electrical signal correction amount to the drive parameter correction amount.
[0160] For example, the current boundary condition value is 0.2875A (coil 1), the output signal voltage is 0.5V, which is lower than the lower limit of the transition critical range of 0.8V. The output signal is on the side where it is determined not to be triggered. The midpoint of the transition critical range is 1.4V, and the difference between the output signal and the midpoint is 1.4-0.5=0.9V. The sensitivity relationship is obtained from the step scan data: for every 0.005A change in the drive current, the auxiliary electrical signal changes by about 0.18kHz, and the output signal voltage changes by about 0.3V. The conversion factor is drive parameter correction amount / output signal correction amount = 0.005 / 0.3 = 0.0167A / V. The correction increment is 0.9×0.0167=0.015A, and the direction is to increase the drive current. The corrected boundary condition value is 0.2875+0.015=0.3025A.
[0161] The driving current of coil 1 is adjusted to 0.3025A (coil 2 and coil 3 are adjusted synchronously proportionally), and the steady state is reached after 200ms. The auxiliary electrical signal is reacquired, with a change of 1.72kHz. The new offset δ' = |1.72 - 1.5| = 0.22kHz is calculated, and the new monitoring range is [1.28kHz, 1.72kHz]. The output signal is acquired synchronously, with a voltage of 1.5V, which is within the critical transition range [0.8, 2]. The comparison before and after the correction is shown in the table below. After the correction, the limit switch is in the critical region in both the auxiliary electrical signal dimension and the output signal dimension, and the critical state maintenance stage is completed.
[0162]
[0163] This step corrects the boundary condition value through output signal feedback, achieving a dual guarantee for maintaining the critical state. This ensures that the maintenance of the critical state has both internal physical accuracy and external observability reliability. The corrected monitoring range is usually wider than the original, which means that the monitoring sensitivity may be slightly reduced. Provided that the output signal has been confirmed to be within the critical range of the jump, appropriately widening the monitoring range in the auxiliary electrical signal dimension will not affect the authenticity of the critical state, but will instead reduce frequent corrections caused by excessive sensitivity. After the critical state is confirmed by the output signal, the limit switch is in the critical state of the action boundary.
[0164] S4. Under critical conditions, a perturbation electromagnetic field with a preset amplitude and frequency is injected through an electromagnetic coil array to obtain the relationship between the action boundary of the limit switch under test and the perturbation electromagnetic field.
[0165] Furthermore, obtaining the relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field includes:
[0166] In the critical state, establish the calibration relationship between the change of the auxiliary electrical signal and the driving parameters. Inject a disturbance electromagnetic field under each combination of amplitude and frequency, and synchronously detect the response component in the auxiliary electrical signal corresponding to the disturbance frequency. Based on the calibration relationship, convert the response component into the equivalent displacement of the action boundary.
[0167] Using amplitude and frequency as variables for each group, the equivalent displacements at different measurement points are summarized to construct the relationship between the action boundary and the change of the disturbance electromagnetic field.
[0168] Specifically, the response component in the auxiliary electrical signal corresponding to the disturbance frequency is detected as follows:
[0169] Using the frequency of the disturbing electromagnetic field as a reference, the auxiliary electrical signal is synchronously demodulated to extract the in-phase component that is in phase with the disturbance and the quadrature component that is orthogonal to the disturbance.
[0170] Based on the calibration relationship, the in-phase component and the quadrature component are converted into in-phase boundary displacement and quadrature boundary displacement respectively. The time average offset of the auxiliary electrical signal change is extracted synchronously and converted into DC offset boundary displacement based on the calibration relationship.
[0171] The relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field is characterized by the in-phase boundary displacement, orthogonal boundary displacement and DC offset boundary displacement.
[0172] After injecting a disturbance electromagnetic field in the critical state, the change in the auxiliary electrical signal will shift. The limit switch has been maintained in the critical state of the action boundary through the aforementioned steps, the change in the auxiliary electrical signal is within the monitoring range, and the output signal is within the jump critical range. Near the critical state, by slightly adjusting the driving parameters and synchronously recording the change in the auxiliary electrical signal, a set of corresponding data of driving parameters and changes is obtained, and a mapping function from the change to the driving parameters is fitted. This mapping function is the quantification of the equivalent driving parameter shift when the change in the auxiliary electrical signal shifts by a certain amount.
[0173] During step scanning, the changes in driving parameter values and auxiliary electrical signals are recorded simultaneously at each step position. These data pairs are densely distributed near the action boundary. Data pairs from several step positions near the boundary condition value are extracted, and local fitting is performed with the changes as independent variables and driving parameters as dependent variables to obtain a mapping function near the critical state. If the data points of the step scanning are not dense enough near the critical state, the driving parameters can be briefly fine-tuned with tiny increments much smaller than the step scanning step size during the maintenance of the critical state. The changes are recorded at each fine-tuning position to obtain high-resolution local calibration data.
[0174] The data extracted from the step scan data at 5 step positions near the boundary condition value are shown in the table below:
[0175]
[0176] A linear fit is performed with the change as the independent variable and the driving parameter as the dependent variable to obtain the mapping function, i.e., driving parameter = a × change + b. Within this data range, the fitting slope a is approximately 0.035 A / kHz, and the intercept b is approximately 0.235 A. This slope is near the critical state. For every 1 kHz shift in the change of the auxiliary electrical signal, the corresponding equivalent driving parameter shift is approximately 0.035 A. This calibration relationship is effective within a finite range near the critical state. Beyond this range, the nonlinear effect is significant, requiring refitting. However, since the offset caused by the perturbation electromagnetic field is usually much smaller than this finite range, the linear approximation is sufficient in most cases.
[0177] This step accurately reflects the local sensitivity characteristics at the boundary, ensuring the accuracy of subsequent disturbance response conversion. The calibration relationship provides a conversion coefficient from the change in the auxiliary electrical signal to the offset of the equivalent driving parameter. The response component caused by the disturbance injection will be converted into the equivalent boundary displacement in units of the driving parameter through this conversion coefficient.
[0178] After the injection of the disturbance electromagnetic field, the changes in the auxiliary electrical signal include the periodic response caused by the disturbance, environmental noise, temperature drift, and other slow changes. If the changes in the auxiliary electrical signal are observed directly, it is impossible to distinguish the source of the offset. At the same time, a single disturbance condition can only provide a single data point, which cannot characterize the response behavior of the limit switch under different disturbance intensities and frequencies. Based on the driving parameter space of the electromagnetic coil array, a specific disturbance injection direction is selected, that is, one or several coils in the coil array are selected as the disturbance injection channel. In this direction, sinusoidal disturbance electromagnetic fields are injected one by one according to the preset amplitude gradient and frequency gradient. Each group of disturbances corresponds to a combination of amplitude and frequency, and the amplitude and frequency of all groups constitute a scanning matrix. The disturbance is a small alternating component superimposed on the driving parameters of the critical state, causing the electromagnetic field in the sensitive area to fluctuate periodically around the steady-state value corresponding to the critical state.
[0179] During each disturbance injection period, the auxiliary electrical signal is synchronously demodulated using the frequency of the injected disturbance signal as the reference frequency, and the component in the auxiliary electrical signal with the same frequency as the disturbance frequency is extracted. The auxiliary electrical signal is then multiplied by a sine reference signal and a cosine reference signal of the same frequency, and the product is then time-averaged, i.e., integrated. The time-averaging results give the amplitude of the component in the auxiliary electrical signal that is in phase with the disturbance and the amplitude of the component that is orthogonal to the disturbance, respectively. All other signal components with frequencies different from the disturbance frequency cancel each other out during the time-averaging process and will not appear in the demodulation results. By using the known phase of the disturbance signal as a reference, the response related to the disturbance is accurately extracted from the auxiliary electrical signal, while effectively suppressing irrelevant interference.
[0180] The disturbance injection specifically involves superimposing an amplitude of A onto the steady-state driving parameters corresponding to the critical state. pert The frequency is f pert The sinusoidal alternating component; this alternating component is applied to the selected coil through the disturbance injection channel and operates in parallel with the critical state maintenance channel; the superposition of disturbances should not affect the monitoring and correction loops, and their frequency ranges should be appropriately separated, that is, the response bandwidth of the monitoring and correction loops is usually much lower than the disturbance frequency, so the periodic fluctuations of the disturbances will be naturally filtered out by the feedback loop and will not disrupt the average maintenance of the critical state.
[0181] Under each set of perturbation conditions, the perturbation injection lasts for a sufficiently long time, taking an integer multiple of the perturbation period, ranging from tens to hundreds of periods. During this period, the signal processing unit synchronously demodulates the auxiliary electrical signal. During demodulation, the signal processing unit simultaneously generates a sinusoidal reference signal sin(2πf) with the same frequency as the perturbation. pert t) and cosine reference signal cos(2πf) pert t), the auxiliary electrical signal is multiplied by the two reference signals respectively and then averaged over time to obtain the in-phase component I and the quadrature component Q; the scanning matrix of the disturbance parameter covers the corresponding disturbance amplitude range and frequency range in the engineering, the lower limit of the amplitude range is taken to be much smaller than the disturbance level corresponding to the boundary curvature characteristic, and the upper limit is taken to be a disturbance level that is sufficient to cause a significant jump in the output signal; the frequency range covers the expected response frequency band of the sensitive element inside the limit switch, and is taken from the power frequency (50Hz or 60Hz) to tens of kilohertz.
[0182] Assume the disturbance injection channel is coil 1 (installed in front of the limit switch), and the disturbance injection direction is to periodically increase and decrease the magnetic field in the sensitive area along the normal direction; the disturbance parameter scanning matrix is: amplitude A pert Use values of 0.002A, 0.005A, 0.01A, and 0.02A (peak values of the alternating component of the driving current of coil 1), with a frequency f. pert 100Hz, 500Hz, 1kHz, and 5kHz were selected, totaling 4×4=16 sets of measurement conditions. Taking an amplitude of 0.01A and a frequency of 1kHz as an example, based on the steady-state drive current of coil 1 of 0.3025A corresponding to the critical state, a sinusoidal alternating component with a peak value of 0.01A and a frequency of 1kHz was superimposed. The actual drive current of coil 1 fluctuated periodically between 0.2925 and 0.3125A at a frequency of 1kHz. The disturbance injection lasted for 100 cycles (i.e., 100ms). During this period, the signal processing unit collected the auxiliary electrical signal at a sampling rate of 100kHz and performed synchronous demodulation.
[0183] The demodulation result is that the in-phase component I = 0.042kHz and the quadrature component Q = 0.018kHz. This result indicates that in the periodic response of the auxiliary electrical signal caused by the disturbance electromagnetic field, the component in phase with the disturbance is 0.042kHz (instantaneous elastic response), and the component quadrature with the disturbance is 0.018kHz (delay / dissipation response). The above process is repeated for all 16 sets of measurement conditions in the scanning matrix to obtain 16 sets of (I,Q) data.
[0184] This step accurately extracts the response component caused by disturbance from the auxiliary electrical signal, which may have a very low signal-to-noise ratio, while effectively suppressing environmental noise, temperature drift, and other irrelevant electromagnetic interference.
[0185] The change in the auxiliary electrical signal is measured in signal units. For different types of limit switches, the same signal change may correspond to different physical meanings. Through an established mapping function, the in-phase component I and quadrature component Q obtained from synchronous demodulation are converted from the units of the auxiliary electrical signal to the units of the driving parameters. If the change in the auxiliary electrical signal caused by the disturbance electromagnetic field is I, then in the driving parameter space, it is equivalent to how much the action boundary shifts along the disturbance injection direction. For each set of measurement conditions, the in-phase component I and quadrature component Q obtained from synchronous demodulation are substituted into the mapping function and multiplied by the calibration slope ks (i.e., the change in driving parameters corresponding to the signal change per kHz) to obtain the in-phase boundary displacement ΔP. I and orthogonal boundary displacement ΔP Q That is, ΔP I =ks×I,ΔP Q =ks×Q; The total amplitude of the boundary displacement is ks×Q; .
[0186] For example, with a calibration slope ks = 0.035 A / kHz, taking a disturbance with an amplitude of 0.010 A and a frequency of 1 kHz as an example, I = 0.042 kHz, Q = 0.018 kHz, the converted ΔP I =0.035×0.042=0.00147A,ΔP Q =0.035×0.018=0.00063A,ΔP total = ≈0.0016A; Comparing this equivalent boundary displacement with the determined action boundary interval width (0.005A), 0.0016 / 0.005=32%, the boundary displacement caused by this disturbance condition accounts for about one-third of the boundary interval width, which is a significant boundary offset.
[0187] The same conversion was performed on all 16 sets of measurement conditions, and the equivalent boundary displacements under each condition are shown in the table below (unit: A, i.e., equivalent boundary displacement):
[0188]
[0189] This step transforms the disturbance response from an abstract signal change into an equivalent boundary displacement with engineering implications. The equivalent boundary displacement data at each measurement point constitute a response function with the disturbance amplitude and frequency as independent variables.
[0190] The equivalent displacement under a single measurement condition is only a discrete data point, insufficient to characterize the response behavior of the limit switch in a continuous disturbance parameter space. The equivalent boundary displacements calculated under all measurement conditions are organized according to the disturbance amplitude and frequency, forming an equivalent displacement data matrix with amplitude as one dimension and frequency as the other. Based on this data matrix, the continuous response function ΔP(A) is obtained through interpolation or surface fitting.pert ,f pert This function describes the equivalent displacement of the action boundary under any combination of disturbance amplitude and frequency, that is, the relationship between the action boundary and the change of the disturbance electromagnetic field.
[0191] The equivalent boundary displacement data of all measurement points are arranged into a matrix according to the disturbance amplitude and frequency. The disturbance amplitude and frequency are used as two independent variables and the equivalent boundary displacement is used as the dependent variable to perform two-dimensional surface fitting. The fitting method adopts bicubic spline interpolation. In areas where data points are dense (such as the 4×4 matrix in this example), bicubic spline interpolation can usually provide a smooth and physically reasonable transition between data points.
[0192] Based on the 16 sets of data in Section 4, bicubic spline interpolation was performed to obtain the continuous equivalent boundary displacement response surface ΔP(A). pert ,f pert From this surface, the following features can be extracted: The equivalent boundary displacement exhibits a frequency-dependent trend where, within the range of 100Hz to 1kHz, the equivalent displacement increases with increasing frequency, reaching a peak near 1kHz, and then decreasing at 5kHz. This frequency dependence reflects the bandpass characteristics of the sensitive element inside the limit switch, i.e., the sensitivity is highest near the resonant frequency and decreases after deviating from the resonant frequency. The equivalent boundary displacement exhibits an amplitude-dependent trend where, in the low amplitude range (0.002~0.01A), the equivalent displacement is approximately linearly related to the disturbance amplitude; in the high amplitude range (0.01~0.02A), the linearity begins to decrease, and the growth rate of the equivalent displacement slows slightly. This nonlinearity reflects the saturation effect of the limit switch under large disturbances.
[0193] This step transforms discrete measurement data into a continuous response surface. Engineers can then query the estimated boundary displacement under any disturbance condition from this surface. The overall shape of the response surface reveals the electromagnetic susceptibility characteristics of the limit switch, providing a comprehensive quantitative basis for the disturbance immunity assessment and electromagnetic compatibility design of the limit switch.
[0194] The response related to disturbance in the auxiliary electrical signal is usually not in phase with the disturbance. Some physical response mechanisms inside the limit switch have time delays, which cause the response signal to lag behind the disturbance signal in phase. If only the total amplitude of the response is measured, the phase information will be lost, and it will be impossible to distinguish between the instantaneous elastic response and the delayed dissipative response. During the disturbance injection, the frequency and phase of the disturbance signal are used as references to generate sine and cosine reference waveforms that are synchronized with the disturbance. These waveforms are multiplied by the auxiliary electrical signal and then averaged over time to achieve synchronous demodulation. The two outputs of synchronous demodulation correspond to the components in the auxiliary electrical signal that are in phase with the disturbance reference signal (phase difference of 0°) and the components that are orthogonal to the disturbance reference signal (phase difference of 90°), respectively.
[0195] During disturbance injection at sampling rate f s Discrete samples ΔS[n] of the auxiliary electrical signal are obtained, and a discrete reference signal sin[2πf] synchronized with the disturbance is generated simultaneously. pert ·n / f s ] and cos[2πf pert ·n / f s The formulas for calculating the in-phase component I and the quadrature component Q are as follows: , Where N is the total number of sampling points within the integration window, taken as an integer multiple of the disturbance period to avoid spectral leakage; the phase of the reference signal must be aligned with the actual injected disturbance signal, which is ensured by the drive control system and the signal processing unit sharing the same clock source; the above indicates that only the auxiliary electrical signal with a frequency equal to f pert Only the component of f is extracted; all other frequency signal components cancel each other out during the summation process due to orthogonality. Specifically, no frequency is equal to f. pert The integral of the product of the signal component and the reference signal over a complete cycle is zero, therefore it will not appear in the results of I and Q.
[0196] Taking a disturbance amplitude of 0.01A and a frequency of 1kHz as an example, the signal sampling rate f s =100kHz, the disturbance injection lasts for 100 cycles (i.e., N=100×100=10000 sampling points). During demodulation, the original waveform of the auxiliary electrical signal contains multiple components: 1kHz disturbance response (the target signal to be extracted), 50Hz power frequency interference (from the power supply), about 0.1Hz temperature drift (from coil heating), and broadband noise. The result of synchronous demodulation is an in-phase component I=0.042kHz, which is in phase with the disturbance and reflects the instantaneous elastic response of the sensitive element inside the limit switch to the change of electromagnetic field. Taking the inductive limit switch as an example, the instantaneous change response of the iron core permeability to the applied magnetic field belongs to this category. That is, when the magnetic field is enhanced, the permeability immediately increases and the resonant frequency immediately shifts, which is in phase with the disturbance.
[0197] The quadrature component Q = 0.018 kHz lags the disturbance by 90°, reflecting the delayed or dissipative response within the limit switch. Taking the same inductive limit switch as an example, the thermal effect caused by eddy currents in the core belongs to this category. That is, the Joule heating generated by the eddy currents causes a slight increase in the core temperature, and the permeability drifts slowly with temperature changes. This effect lags behind the disturbance by about a quarter of a cycle in time. In this embodiment, the I / Q amplitude ratio is approximately 0.042 / 0.018 = 2.3, indicating that at a frequency of 1 kHz, the instantaneous elastic response of the limit switch is dominant, while the delayed dissipative response is auxiliary. This ratio varies with frequency. Under low-frequency disturbances (such as 100 Hz), the delay effect has enough time to manifest, the Q component increases relatively, and the I / Q ratio decreases. Under high-frequency disturbances (such as 5 kHz), the delay effect does not have enough time to respond, the Q component decreases relatively, and the I / Q ratio increases.
[0198] This step achieves precise separation of disturbance response and environmental noise. Its noise suppression capability does not depend on the separation of noise and signal in the frequency domain. It decomposes the response into two components: in-phase and quadrature, providing a means of dimensional separation for analyzing the internal response mechanism of the limit switch.
[0199] The in-phase and quadrature components capture the periodic response with the same frequency as the disturbance, i.e., the reversible effect caused by the disturbance. When the disturbance increases, the boundary shifts in one direction, and when the disturbance decreases, the boundary shifts in the opposite direction, with an average effect of zero. However, in practice, disturbances may also cause irreversible or slowly varying effects. These effects do not manifest as periodic fluctuations with the same frequency as the disturbance, but rather as slow drifts in the auxiliary electrical signal, which are filtered out during synchronous demodulation. Multiplying the I and Q obtained from synchronous demodulation by the calibration slope ks respectively yields the in-phase boundary displacement ΔP in units of the driving parameters. I and orthogonal boundary displacement ΔP Q These two quantities respectively characterize the instantaneous elastic boundary displacement and the delayed dissipative boundary displacement caused by the disturbance.
[0200] Simultaneously with demodulation, the time-averaged value of the auxiliary electrical signal change during the disturbance injection period, i.e., the DC component, is calculated. The offset of this time-averaged value relative to the steady-state value before the disturbance injection is converted using calibration relationships to obtain the DC offset boundary displacement ΔP. DC DC offset is an irreversible or slowly varying effect caused by a disturbance electromagnetic field. For example, a disturbance can cause a slight increase in the local temperature of components inside a coil or limit switch, resulting in a slow drift in the characteristics of the electromagnetic field or sensitive element. This drift does not alternate with the periodic changes of the disturbance, but rather manifests as a unidirectional offset. The method for extracting DC offset is to perform a time-average (i.e., an arithmetic average of ΔS[n]) on the changes in the auxiliary electrical signal during the disturbance injection period to obtain the average value ΔS containing the disturbance response. onBefore the disturbance injection (during the critical state maintenance period), the change in the auxiliary electrical signal is averaged over the same integral time to obtain the reference value ΔS. off The difference between the two is the DC offset, i.e., ΔS. DC =ΔS on -ΔS off Multiplying this by the calibration slope ks yields the DC offset boundary displacement ΔP. DC =ks×ΔS DC .
[0201] It should be noted that the measurement of DC offset is sensitive to the time scale. If the duration of the disturbance injection is short, the gradual effects such as temperature rise have not yet fully manifested, and the DC offset may be close to zero. If the disturbance injection lasts for a long time, the gradual effects accumulate, and the DC offset may continue to increase. Therefore, the measurement results of DC offset should indicate the duration of the disturbance injection.
[0202] Taking a disturbance amplitude of 0.01A, frequency of 1kHz, and duration of 100ms (100 cycles) as an example, the time average of the auxiliary electrical signal change during the disturbance injection period is 1.535kHz, the reference value before the disturbance injection is 1.53kHz, and the DC offset is ΔS. DC =1.535-1.53=0.005kHz, after conversion ΔP DC =0.035×0.005=0.000175A; In-phase boundary displacement ΔP I =0.00147A, orthogonal boundary displacement ΔP Q =0.00063A, the comparison of the three types of components is shown in the table below:
[0203]
[0204] Under a short-duration disturbance of 100 ms, the DC offset is much smaller than that of the in-phase and quadrature components, indicating that the short-duration disturbance mainly causes a reversible periodic response, while the irreversible slow-varying effect is not yet significant. If the disturbance duration is extended to 10 s, under the same disturbance conditions, the DC offset may increase to a level comparable to that of the quadrature components. The above calculations were repeated for all 16 sets of measurement conditions to construct the two-dimensional response surfaces of the three components, i.e., ΔP. I (A pert ,f pert ),ΔP Q (A pert ,f pert ),ΔP DC (A pert ,f pert The three curved surfaces together constitute a complete representation of the relationship between the action boundary of the measured limit switch and the change of the disturbance electromagnetic field.
[0205] This step decomposes the impact of disturbances on the action boundary from a single total displacement into three components with different physical meanings and temporal characteristics. The relative magnitudes of the three components reveal the characteristics of the response mechanism inside the limit switch. The dominance of the in-phase component indicates that the response of the limit switch is mainly based on an instantaneous elastic mechanism, which is sensitive to short-term disturbances but can recover after the disturbance is eliminated. The significant quadrature component indicates the existence of a significant dissipation mechanism, and the limit switch is more sensitive to disturbances in a specific frequency range, and there may be residual offset after the disturbance is eliminated. The significant DC offset indicates the existence of an irreversible effect, and long-term electromagnetic interference may cause the performance of the limit switch to gradually degrade.
[0206] Taking the ratio of in-phase boundary displacement to orthogonal boundary displacement as an example, the shape of this ratio curve reflects the characteristic time constant of the internal response mechanism of the limit switch. At the low frequency end, the orthogonal component increases relatively, and the ratio decreases. At the high frequency end, the in-phase component dominates, and the ratio increases. The frequency corresponding to the transition region of the ratio from low frequency to high frequency is the characteristic frequency of the internal response mechanism of the limit switch, and the reciprocal of this frequency is the characteristic time constant. This information has direct value for the dynamic modeling and simulation of limit switches.
[0207] Example 2
[0208] like Figure 3 As shown, this embodiment provides a non-contact limit switch electrical characteristic parameter testing system, including an excitation module, a sensing module, a stationary field module, and a scrambling module.
[0209] The excitation module is used to generate a controllable electromagnetic field in space through an array of electromagnetic coils. It controls the driving parameters of the electromagnetic coil array to make the controllable electromagnetic field change continuously along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction.
[0210] The sensing module is used to simultaneously acquire the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change in the physical state of the internal components during the simulation process. The action boundary of the limit switch under test is determined based on the time when the change in the auxiliary electrical signal reaches a preset threshold.
[0211] The stationary field module is used to maintain the driving parameters of the electromagnetic coil array at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary.
[0212] The scrambling module is used to inject a scrambling electromagnetic field of preset amplitude and frequency through an electromagnetic coil array under critical conditions, and to obtain the relationship between the action boundary of the limit switch under test and the change of the scrambling electromagnetic field.
[0213] The above description is merely a preferred embodiment of this application. The scope of protection of this application is not limited to the above embodiments. All technical solutions falling within the scope of this application's concept are within the scope of protection of this application. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of this application should also be considered within the scope of protection of this application.
Claims
1. A method for testing the electrical characteristic parameters of a non-contact limit switch, characterized in that, include: A controllable electromagnetic field is generated in space by an electromagnetic coil array. The driving parameters of the electromagnetic coil array are controlled to make the controllable electromagnetic field change continuously along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction. During the simulation, the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change of the physical state of the internal components are acquired synchronously. The action boundary of the limit switch under test is determined based on the time when the change of the auxiliary electrical signal reaches the preset threshold. The driving parameters of the electromagnetic coil array are kept at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary. Under critical conditions, a perturbation electromagnetic field with a preset amplitude and frequency is injected through an electromagnetic coil array to obtain the relationship between the action boundary of the limit switch under test and the perturbation electromagnetic field.
2. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 1, characterized in that, The process of the simulated target approaching the limit switch under test at a preset speed and direction includes: Based on the type of limit switch under test, establish the influence relationship between the target at different distances and angles on the controllable electromagnetic field in the corresponding sensitive area of the limit switch under test. Based on the preset speed and direction, the position sequence of the target relative to the measured limit switch over time is determined. After substituting the influence relationship, the preset path of the controllable electromagnetic field over time in the sensitive area is obtained. Based on the spatial magnetic field distribution of the coils in the electromagnetic coil array, the target electromagnetic field distribution in the preset path is transformed into a sequence of driving parameters corresponding to the coils; According to the sequence of driving parameters, the driving parameters of the coil are continuously adjusted so that the controllable electromagnetic field changes continuously along the preset path.
3. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 2, characterized in that, Obtaining the preset path includes: Based on the influence relationship, calculate the static electromagnetic changes of the target at different distances and angles; Based on the preset speed, direction and conductivity of the target, calculate the additional change in the controllable electromagnetic field in the sensitive area caused by the eddy current effect generated by the target motion. By superimposing the static electromagnetic change with the additional change, a preset path including the velocity effect is obtained.
4. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 1, characterized in that, The determination of the operating boundary of the measured limit switch includes: Extract the effective components that reflect the changes in the physical state of the internal components from the auxiliary electrical signal, calculate the change of the effective components relative to the initial state, and when the change reaches a preset threshold, record the driving parameters of the corresponding electromagnetic coil array as a coarse positioning estimate of the action boundary. Centered on the coarse positioning estimate, a step scan is performed within a preset neighborhood with a preset step size. At each step position, the driving parameters are kept constant and the change of the effective components relative to the initial state is recorded. Determine the step position where the change in step scanning first exceeds a preset threshold and its preceding adjacent step position. The interval formed by the driving parameters corresponding to the two adjacent step positions is determined as the action boundary of the limit switch under test.
5. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 4, characterized in that, The determination of the operating boundary of the measured limit switch also includes: After determining the action boundary, obtain the driving parameters corresponding to the midpoint of the interval and the driving parameters corresponding to the output signal of the limit switch under test when it jumps, and calculate the parameter deviation between the two. When the parameter deviation is less than the preset allowable value, the action boundary is confirmed to be valid; When the parameter deviation is greater than or equal to the preset allowable value, the step size of the step scan is reduced to the preset ratio of the current step size, and the step scan and action boundary determination are re-executed.
6. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 4, characterized in that, The critical state that puts the measured limit switch in the action boundary includes: Take the midpoint of the driving parameter interval corresponding to the action boundary as the boundary condition value, and record the change of the effective component in the auxiliary electrical signal relative to the initial state. The monitoring range is set with a preset threshold as the center and the offset of the change from the preset threshold, and the change of the effective component in the auxiliary electrical signal relative to the initial state is continuously monitored. When the change deviates from the monitoring range, the driving parameters are corrected in the direction that brings the change back to the monitoring range, so that the measured limit switch is maintained in the critical state.
7. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 6, characterized in that, The critical state of placing the measured limit switch in the action boundary also includes: Obtain the output signal of the limit switch under the current driving parameters and determine whether the output signal is within the critical range of the jump; When the output signal is within the critical range of the jump, it is confirmed that the limit switch under test is in a critical state. When the output signal is not within the critical range of the jump, the boundary condition value is corrected according to the current state of the output signal, the change is re-recorded and the monitoring range is set to continue to maintain the critical state.
8. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 1, characterized in that, The process of obtaining the relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field includes: In the critical state, establish the calibration relationship between the change of the auxiliary electrical signal and the driving parameters. Inject a disturbance electromagnetic field under each combination of amplitude and frequency, and synchronously detect the response component in the auxiliary electrical signal corresponding to the disturbance frequency. Based on the calibration relationship, convert the response component into the equivalent displacement of the action boundary. Using amplitude and frequency as variables for each group, the equivalent displacements at different measurement points are summarized to construct the relationship between the action boundary and the change of the disturbance electromagnetic field.
9. The method for testing the electrical characteristic parameters of a non-contact limit switch according to claim 8, characterized in that, The response component in the detection auxiliary electrical signal corresponding to the disturbance frequency includes: Using the frequency of the disturbing electromagnetic field as a reference, the auxiliary electrical signal is synchronously demodulated to extract the in-phase component that is in phase with the disturbance and the quadrature component that is orthogonal to the disturbance. Based on the calibration relationship, the in-phase component and the quadrature component are converted into in-phase boundary displacement and quadrature boundary displacement respectively. The time average offset of the auxiliary electrical signal change is extracted synchronously and converted into DC offset boundary displacement based on the calibration relationship. The relationship between the operating boundary of the measured limit switch and the disturbance electromagnetic field is characterized by the in-phase boundary displacement, orthogonal boundary displacement and DC offset boundary displacement.
10. A non-contact limit switch electrical characteristic parameter testing system, used to implement the non-contact limit switch electrical characteristic parameter testing method according to any one of claims 1-9, characterized in that, include: Excitation module, sensing module, stabilizing field module, and scrambling module; The excitation module is used to generate a controllable electromagnetic field in space through an array of electromagnetic coils. It controls the driving parameters of the electromagnetic coil array to make the controllable electromagnetic field change continuously along a preset path, simulating the process of a target approaching the limit switch under test at a preset speed and direction. The sensing module is used to simultaneously acquire the output signal of the limit switch under test and the auxiliary electrical signal reflecting the change in the physical state of the internal components during the simulation process. The action boundary of the limit switch under test is determined based on the time when the change in the auxiliary electrical signal reaches a preset threshold. The stationary field module is used to maintain the driving parameters of the electromagnetic coil array at the boundary condition values corresponding to the action boundary, so that the limit switch under test is in the critical state of the action boundary. The scrambling module is used to inject a scrambling electromagnetic field of preset amplitude and frequency through an electromagnetic coil array under critical conditions, and to obtain the relationship between the action boundary of the limit switch under test and the change of the scrambling electromagnetic field.
