Zero adjustment method and device of eddy current sensor, medium and eddy current sensor calibration system
Through the automatic calibration device of the eddy current sensor, the fuzzy PID control algorithm and stepper motor control calibration disc movement is used to control the problem of insufficient zero-position adjustment accuracy and reliability of the eddy current sensor, and more efficient and accurate zero-position adjustment is achieved.
Patent Information
- Application Number
- CN202510381986.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, the zero-position adjustment process of the eddy current sensor takes a long time and has low accuracy, which affects the reliability of subsequent verification data.
Through the automatic calibration device of the eddy current sensor, the actual distance between the probe and the calibration disc, the calibration distance and calibration voltage are obtained, and the calibration disc movement is controlled by using the fuzzy PID control algorithm and stepper motor to adjust the actual distance to be close to or equal to the calibration distance, and the output voltage to be close to or equal to the calibration voltage.
It improves the zero-position adjustment accuracy and reliability of the eddy current sensor, shortens the adjustment time, and enhances the reliability of subsequent verification data.
Smart Images

Figure CN119958623A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of instrument adjustment, and in particular to a zero position adjustment method, device, medium and eddy current sensor calibration system of an eddy current sensor. Background Art
[0002] According to Faraday's electromagnetic induction principle, when a bulk metal conductor is placed in a changing magnetic field or moves in a magnetic field to cut magnetic lines of force, a vortex-shaped induced current will be generated in the conductor. This current is called eddy current, and the above phenomenon is called eddy current effect. Therefore, the sensor made according to the eddy current effect is called eddy current sensor. Eddy current sensor can perform non-contact continuous measurement of displacement, thickness, speed, stress, etc., and has the characteristics of small size, high sensitivity, wide frequency response, etc.
[0003] In current industrial applications, before calibrating the eddy current sensor, the eddy current sensor needs to be adjusted to the zero position. The existing technology usually relies on manual adjustment of the distance between the eddy current sensor probe and the calibration disk. The adjustment process is time-consuming and has low accuracy, which affects the reliability of subsequent calibration data. Therefore, how to improve the zero position adjustment accuracy of the eddy current sensor has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The invention provides a zero position adjustment method, a device, a medium and an eddy current sensor calibration system for an eddy current sensor, which can improve the zero position adjustment accuracy and reliability of the eddy current sensor.
[0005] In a first aspect, the present invention provides a zero position adjustment method for an eddy current sensor, which is performed by an eddy current sensor automatic calibration device. The zero position adjustment method for the eddy current sensor comprises:
[0006] Obtaining the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and calibration voltage;
[0007] Determining whether the difference between the actual distance and the calibrated distance is less than a first preset difference;
[0008] If yes, obtaining the current output voltage of the eddy current sensor;
[0009] Determine whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference;
[0010] If so, control the calibration disk to move toward the probe side by a preset distance, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0011] Optionally, the eddy current sensor automatic calibration device includes a stepper motor, and the stepper motor is used to control the movement of the calibration disk;
[0012] If the difference between the actual distance and the calibrated distance is greater than or equal to a first preset difference, the stepper motor is controlled to be in a continuous working mode; when the stepper motor is in the continuous working mode, the actual distance between the calibration disk and the probe gradually decreases.
[0013] Optionally, controlling the stepper motor to be in a continuous working mode includes:
[0014] Based on a fuzzy PID control algorithm, the working time of the stepper motor in the continuous working mode is determined according to the actual distance and the calibrated distance.
[0015] Optionally, before controlling the calibration plate to move toward the probe side by a preset distance, the method further includes:
[0016] The preset distance is determined according to the actual distance and the calibrated distance.
[0017] Optionally, determining the preset distance according to the actual distance and the calibrated distance includes:
[0018] Calculating a distance difference between the actual distance and the preset distance;
[0019] The product of the distance difference and the adjustment coefficient is used as the preset distance.
[0020] Optionally, while controlling the calibration disk to move toward the probe side by a preset distance, the actual distance between the probe and the calibration disk is acquired in real time;
[0021] If the actual distance is less than zero, the calibration disk is controlled to stop moving toward the probe side.
[0022] Optionally, if the actual distance is zero, the calibration disk is controlled to move the preset distance away from the probe side, and the step of obtaining the current output voltage of the eddy current sensor is returned until the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0023] In a second aspect, the present invention provides a zero position adjustment device for an eddy current sensor, comprising:
[0024] A parameter acquisition module, used to obtain the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage;
[0025] A first difference judgment module, used to judge whether the difference between the actual distance and the calibrated distance is less than a first preset difference;
[0026] an output voltage acquisition module, configured to acquire a current output voltage of the eddy current sensor when the difference between the actual distance and the calibrated distance is less than the first preset difference;
[0027] A second difference judgment module, used to judge whether the difference between the current output voltage and the calibration voltage is greater than a second preset difference;
[0028] The spacing adjustment module is used to control the calibration disk to move toward the probe side by a preset spacing when the difference between the current output voltage and the calibration voltage is greater than a second preset difference, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0029] In a third aspect, the present invention provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the zero position adjustment method of the eddy current sensor described in the first aspect when executed.
[0030] In a fourth aspect, the present invention provides an eddy current sensor calibration system, comprising: a mounting platform, a distance sensor, a calibration plate, a stepper motor and a controller;
[0031] The mounting platform is used to fix the eddy current sensor; the distance sensor is used to obtain the actual distance between the calibration disk and the probe of the eddy current sensor; the stepping motor is used to control the calibration disk to move toward or away from the probe side;
[0032] The controller is communicatively connected with the distance measuring sensor, the stepping motor and the eddy current sensor respectively; the controller is used to execute the zero position adjustment method of the eddy current sensor described in the first aspect.
[0033] The technical solution provided by the present invention obtains the actual distance between the probe and the calibration disk of the eddy current sensor, as well as the calibration distance and the calibration voltage, and obtains the current output voltage of the eddy current sensor when the difference between the actual distance and the calibration distance is less than the first preset difference; if the absolute value of the difference between the current output voltage and the calibration voltage is greater than the second preset difference, the calibration disk is controlled to move toward the probe side by a preset spacing, and returns to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference. In this way, the actual distance can be adjusted to be close to or equal to the calibration distance, and the current output voltage can be adjusted to be close to or equal to the calibration voltage, thereby improving the accuracy and reliability of zero adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the structure of an eddy current sensor calibration system provided by an embodiment of the present invention;
[0035] Figure 2 A flowchart of a zero position adjustment method of an eddy current sensor provided by an embodiment of the present invention;
[0036] Figure 3 A flowchart of another zero position adjustment method of an eddy current sensor provided by an embodiment of the present invention;
[0037] Figure 4 A flowchart of another method for adjusting the zero position of an eddy current sensor provided by an embodiment of the present invention;
[0038] Figure 5 A schematic structural diagram of a zero position adjustment device for an eddy current sensor provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0040] Embodiment 1
[0041] Figure 1 A schematic diagram of the structure of an eddy current sensor calibration system provided by an embodiment of the present invention is shown in FIG. Figure 1As shown, the eddy current sensor calibration system includes a mounting platform 1, a distance sensor 2, a calibration plate 3, a stepper motor 4 and a controller 5. The mounting platform 1 is used to fix the eddy current sensor 6; the distance sensor 2 is used to obtain the actual distance between the calibration plate 7 and the probe 60 of the eddy current sensor 6; the stepper motor 4 is used to control the calibration plate 3 to move toward or away from the probe 60. The controller 5 is respectively connected to the distance sensor 2, the stepper motor 4 and the eddy current sensor 6 for communication.
[0042] Among them, the mounting table 1 is an L-shaped structure, the eddy current sensor 6 and the distance sensor 2 are arranged on the vertical table surface of the mounting table 1, and the calibration disk 3 and the stepper motor 4 are installed on the horizontal table surface of the mounting table 1. The vertical table surface of the mounting table 1 is provided with a multi-stage adjustable clamp, which can be driven by a clamping motor to support clamping eddy current sensors of various sizes within the probe diameter range of 5mm to 50mm. The clamping motor can automatically adjust the clamping force according to the probe size to prevent the eddy current sensor 6 from tilting or falling. In this way, the rate of clamping or fixing the eddy current sensor 6 is increased by the clamping motor, and at the same time, it can adapt to clamping eddy current sensors 6 of a larger size range without manual adjustment, thereby improving the convenience of use.
[0043] In an optional embodiment, the interior of the clamp on the vertical table top of the mounting table 1 can be configured as a structure combining an elastic contact surface and an electromagnetic lock. At the same time, a pressure sensor can be set on the surface where the clamped probe contacts the clamp. The clamping state or clamping force is adjusted according to the pressure signal fed back by the pressure sensor to ensure the verticality and fixing stability of the probe.
[0044] The distance measuring sensor 2 includes a laser distance measuring sensor, an ultrasonic distance measuring sensor or an infrared distance measuring sensor, etc., and can be set according to actual needs. Exemplarily, the distance measuring sensor 2 includes a laser distance measuring sensor, and the resolution of the laser distance measuring sensor is 0.1 mm.
[0045] The calibration disk 3 uses 42CrMo, a standard material for calibrating the eddy current sensor 6. The size, shape or material of the calibration disk 3 used for eddy current sensors 6 of different ranges and diameters is also different. The surface of the calibration disk 3 is flat and smooth, and it can be removed and replaced from the mounting table 1, so that different calibration disks 3 can be replaced when calibrating eddy current sensors 6 of different sizes.
[0046] The stepper motor 4 is controlled by an electric pulse signal, which converts the electric pulse signal into angular displacement or linear displacement. Each time an electric pulse signal is input to the stepper motor 4, the stepper motor 4 rotates a fixed angle according to the electric pulse signal to achieve precise control of the position of the calibration disk 3.
[0047] Specifically, the controller 5 is respectively communicated with the distance measuring sensor 2, the stepper motor 4 and the eddy current sensor 6, so that after the eddy current sensor 6 is fixed on the mounting table 1, the distance measuring sensor 2 can transmit the distance between the probe 60 and the calibration disk 3 to the controller 5. The controller 5 transmits a control signal to the stepper motor 4 according to the internal control logic, so that the stepper motor 4 drives the calibration disk 3 to move toward or away from the probe 60 side, thereby making the calibration disk 3 reach a preset position or a zero position.
[0048] It should be noted that when the end face of the distance sensor 2 and the end face of the probe 60 in the eddy current sensor 6 are in the same plane, the distance between the distance sensor 2 and the calibration disk 3 is the spacing between the probe 60 and the calibration disk 3. When the end face of the distance sensor 2 and the end face of the probe 60 in the eddy current sensor 5 are not in the same plane, the vertical distance between the end face of the distance sensor 2 and the end face of the probe 60 can be measured by a measuring device, and after obtaining the spacing between the distance sensor 2 and the calibration disk 3 measured by the distance sensor 2, the difference between the spacing and the vertical distance is used as the actual distance between the probe 60 and the calibration disk 3.
[0049] The controller 5 is used to execute the zero position adjustment method of the eddy current sensor provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The similarities can be referred to the description below and will not be repeated here.
[0050] Embodiment 2
[0051] An embodiment of the present invention provides a zero position adjustment method for an eddy current sensor, which is suitable for adjusting the eddy current sensor to zero position. The zero position adjustment method for the eddy current sensor can be executed by the zero position adjustment device of the eddy current sensor provided by the embodiment of the present invention. The zero position adjustment device of the eddy current sensor can be implemented in the form of hardware and / or software. Figure 2 A flowchart of a zero position adjustment method of an eddy current sensor provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the zero position adjustment method of the eddy current sensor includes:
[0052] S101, obtaining the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage.
[0053] Among them, reference Figure 1 , the actual distance d1 represents the vertical distance between the end face of the probe 60 and the calibration disk 3 along the direction in which the probe 60 points to the calibration disk 3. The calibration distance indicates the distance between the end face of the probe 60 and the calibration disk 3 along the direction in which the probe 60 points to the calibration disk 3 when the calibration disk 3 reaches the zero position. The calibration voltage indicates the voltage value that the eddy current sensor 6 should measure when the calibration disk 3 reaches the zero position. For example, the calibration distance is 0.3 mm and the calibration voltage is -1.5 V.
[0054] Specifically, the actual distance between the eddy current sensor probe and the calibration disk can be obtained by a laser ranging sensor or an ultrasonic ranging sensor. The calibration distance and calibration voltage can be set according to parameters such as the probe diameter, output voltage range and sensitivity of the eddy current sensor. Alternatively, the calibration distance and calibration voltage have corresponding mapping tables or charts with parameters such as the probe diameter of the eddy current sensor. Based on the mapping table or mapping chart, the distance and voltage corresponding to the parameters of the eddy current sensor to be calibrated are used as the calibration distance and calibration voltage, respectively. The calibration distance and calibration voltage and method can also be obtained in other ways, which are not specifically limited here.
[0055] S102, determining whether the difference between the actual distance and the calibrated distance is less than a first preset difference; if so, executing S103.
[0056] The first preset difference may be a fixed value or a non-fixed value, and may be determined according to the actual detection process. The first preset difference may be in the range of 0.1 mm to 0.5 mm. In an exemplary embodiment, the first preset difference may be 0.2 mm.
[0057] S103: Obtain the current output voltage of the eddy current sensor.
[0058] Specifically, if the difference between the actual distance and the calibrated distance is less than the first preset difference, it means that the calibration disk is about to reach the zero position or has reached the zero position. At this time, the current output voltage of the eddy current sensor can be obtained to determine whether the calibration disk has reached the zero position based on the current output voltage, and then determine the degree of movement of the calibration disk.
[0059] S104, determining whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference; if so, executing S105.
[0060] The second preset difference value may be a fixed value or a non-fixed value, and may be determined according to the actual detection process. The second preset difference value may range from 0.1V to 0.3V. In an exemplary embodiment, the second preset difference value may be 0.1V.
[0061] S105 , controlling the calibration disk to move toward the probe side by a preset distance, and returning to execute S103 until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0062] The preset spacing may be a fixed value or a non-fixed value, and may be set according to actual needs. For example, the preset spacing is 0.5 μm. Alternatively, the preset spacing may be determined according to the absolute value of the difference, which is not specifically limited here.
[0063] Specifically, if the absolute value of the difference between the current output voltage and the calibration voltage is greater than the second preset difference, it means that the difference between the current output voltage and the calibration voltage is large, and the calibration disk has not reached the zero position. At this time, it is necessary to adjust the position of the calibration disk, control the calibration disk to move toward the probe side by a preset distance, and obtain the current output voltage of the eddy current sensor again. If the absolute value of the difference between the current voltage and the calibration voltage is less than or equal to the second preset difference, it means that the calibration disk has reached the zero position, and there is no need to adjust the position of the calibration disk.
[0064] It should be noted that the preset spacing for controlling the calibration disk to move toward the probe side can be within the allowable error range of the calibration spacing. For example, the calibration spacing is 0.3 mm, the allowable error range of the calibration spacing is ±2 μm, and the preset spacing is smaller than the allowable error range. In this way, on the basis that the difference between the actual distance between the calibration disk and the probe and the calibration distance is smaller than the first preset difference, after controlling the calibration disk to move toward the probe side by the preset spacing, the difference between the actual distance and the calibration distance is kept within the allowable error range, thereby improving the reliability of the zero position adjustment.
[0065] In other optional embodiments, while controlling the calibration disk to move toward the probe side by a preset distance, the actual distance between the probe and the calibration disk is obtained in real time, and if the actual distance is less than zero, the calibration disk is controlled to stop moving toward the probe side. In this way, the calibration disk can be prevented from continuing to move toward the probe side and thus damaging the probe, thereby improving the safety of the eddy current sensor.
[0066] Optionally, if the actual distance is equal to zero, the calibration disk is controlled to move a preset distance away from the probe side, and returns to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to a second preset difference.
[0067] Specifically, when the actual distance is equal to zero, if the calibration disk continues to be controlled to move toward the probe side, the probe will be damaged. Therefore, at this time, the calibration disk is controlled to move a preset distance toward the side away from the probe, and returns to obtain the current output voltage of the eddy current sensor. If the absolute value of the difference between the current output voltage and the calibration voltage is still greater than the second preset difference, it means that the calibration disk has not been adjusted to the zero position. At this time, the calibration disk can continue to be controlled to move toward the probe side until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0068] The technical solution of the embodiment of the present invention is to obtain the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage, and obtain the current output voltage of the eddy current sensor when the difference between the actual distance and the calibration distance is less than the first preset difference; if the absolute value of the difference between the current output voltage and the calibration voltage is greater than the second preset difference, the calibration disk is controlled to move toward the probe side by a preset spacing, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference. In this way, the actual distance can be adjusted to be close to or equal to the calibration distance, and the current output voltage can be adjusted to be close to or equal to the calibration voltage, thereby improving the accuracy and reliability of zero adjustment.
[0069] Embodiment 3
[0070] Based on the above embodiment, the embodiment of the present invention describes the case where the difference between the actual distance and the calibrated distance is greater than or equal to the first preset difference. Figure 3 A flowchart of another zero position adjustment method of an eddy current sensor provided in an embodiment of the present invention, referring to Figure 1 and Figure 3 , the zero adjustment method of the eddy current sensor includes:
[0071] S201, obtaining the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage.
[0072] S202, determine whether the difference between the actual distance and the calibrated distance is less than a first preset difference; if so, execute S203; if not, execute 206.
[0073] S203: Obtain the current output voltage of the eddy current sensor.
[0074] S204, determine whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference; if so, execute S205.
[0075] S205 , controlling the calibration disk to move toward the probe side by a preset distance, and returning to execute S203 until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0076] S206, controlling the stepper motor to be in a continuous working mode.
[0077] When the stepper motor is in the continuous working mode, the actual distance between the calibration disk and the probe gradually decreases.
[0078] Specifically, if the difference between the actual distance between the probe of the eddy current sensor and the calibration disk and the calibration distance is greater than or equal to the first preset difference, it means that the difference between the actual distance and the calibration distance is large. At this time, the stepper motor can be controlled to be in continuous working mode, that is, the stepper motor drives the calibration disk to continuously move toward the probe side to reduce the distance between the calibration disk and the probe and improve the zero position adjustment efficiency.
[0079] Optionally, controlling the stepper motor to be in a continuous working mode includes determining the working time of the stepper motor in the continuous working mode based on a fuzzy PID control algorithm according to the actual distance and the calibrated distance.
[0080] Among them, the fuzzy PID control algorithm combines fuzzy logic and PID control, and uses fuzzy reasoning to dynamically adjust PID parameters, thereby achieving precise control of complex systems.
[0081] Specifically, the core of fuzzy control is to convert the input signal into control instructions through the process of fuzzification, reasoning and defuzzification. For displacement control, it can be expressed as u(t)=f(x(t),△x(t),△ 2 x(t)), u(t) is the control command (such as the rotation angle of the stepper motor), x(t) is the position error (the difference between the expected position and the actual position), △x(t) is the position error, △ 2 x(t) is the acceleration error, and u(t) is the result of fuzzy control rules and fuzzy reasoning. In order to achieve dynamic optimization, fuzzy control can be combined with PID control to dynamically adjust the PID gain according to the actual error: K p (t+1)=K p (t)+α·|e(t)|,K i (t+1)=K i (t)+β·|e(t)|,K d (t+1)=K d (t)+γ·|e(t)|, α, β, γ are dynamic adjustment coefficients, K p (t), K i (t), K d (t) are the PID gains at the current moment, K p (t+1), K i (t+1), K d (t+1) are the PID gains at the next moment. In this way, the fuzzy PID control algorithm is used to determine the working time, which can improve the adjustment accuracy, avoid excessive adjustment of the position of the calibration disk, reduce the number of adjustments, and improve the adjustment efficiency.
[0082] According to the technical solution of the embodiment of the present invention, when the difference between the actual distance and the calibrated distance is greater than or equal to the first preset difference, it means that the difference between the actual distance and the calibrated distance is large. At this time, the stepper motor can be controlled to be in a continuous working mode, that is, the stepper motor drives the calibration disk to continuously move toward the probe side to reduce the distance between the calibration disk and the probe and improve the zero position adjustment efficiency.
[0083] Embodiment 4
[0084] Based on the above embodiment, the embodiment of the present invention describes the case where the difference between the actual distance and the calibrated distance is greater than or equal to the first preset difference. Figure 4 A flowchart of another method for adjusting the zero position of an eddy current sensor provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the zero position adjustment method of the eddy current sensor includes:
[0085] S301, obtaining the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage.
[0086] S302: Determine whether the difference between the actual distance and the calibrated distance is less than a first preset difference; if so, execute S303.
[0087] S303: Obtain the current output voltage of the eddy current sensor.
[0088] S304, determine whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference; if so, execute S305.
[0089] S305: Determine a preset distance according to the actual distance and the calibrated distance.
[0090] Specifically, the current difference between the actual distance and the calibrated distance can be calculated, and based on the mapping relationship between the difference and the spacing, the spacing corresponding to the current difference is determined as the preset spacing. The mapping relationship includes a mapping table or a curve chart of the difference and the spacing, which can be set according to actual needs and is not specifically limited here.
[0091] In an optional embodiment, the preset distance is determined according to the actual distance and the calibrated distance, including calculating the distance difference between the actual distance and the preset distance; and taking the product of the distance difference and the adjustment coefficient as the preset distance.
[0092] The adjustment coefficient is related to the step length of the stepper motor and other parameters, and can be set according to actual needs. In an optional embodiment, the adjustment coefficient is less than 1. Exemplarily, the adjustment coefficient is 0.01, and can also be other values, which are not specifically limited here.
[0093] Specifically, the actual distance and the preset spacing are calculated to obtain the difference between the actual distance and the preset spacing, and the difference is multiplied by the adjustment coefficient to determine the preset spacing, so as to avoid using the spacing difference directly as the preset spacing, which may cause problems such as the calibration disk contacting the probe or squeezing the probe, thereby improving the safety of the eddy current sensor. In addition, the spacing difference and the adjustment coefficient are used as the preset spacing, and the position of the calibration disk is gradually and slightly adjusted to avoid the situation where the zero position is missed due to a large adjustment degree, thereby improving the adjustment accuracy.
[0094] S306 , control the calibration disk to move toward the probe side by a preset distance, and return to execute S303 until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0095] The technical solution of the present invention obtains the actual distance between the probe and the calibration disk of the eddy current sensor, as well as the calibration distance and the calibration voltage, and obtains the current output voltage of the eddy current sensor when the difference between the actual distance and the calibration distance is less than the first preset difference; if the absolute value of the difference between the current output voltage and the calibration voltage is greater than the second preset difference, the preset spacing is determined according to the actual distance and the calibration distance, and then the calibration disk is controlled to move the preset spacing toward the probe side. In this way, a smaller preset spacing is determined according to the actual distance and the calibration distance to avoid excessive position adjustment due to a larger preset spacing, which affects the safety of the eddy current sensor; in addition, after adjusting the position of the calibration disk according to the preset spacing, if the current output voltage has not reached the calibration voltage, the position of the calibration disk can be adjusted again according to the preset spacing until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference, that is, the calibration disk is moved by one or more preset spacings, and the position of the calibration disk is gradually adjusted. When the calibration disk reaches the zero position, the adjustment is stopped, thereby improving the accuracy and safety of the adjustment.
[0096] Embodiment 5
[0097] Figure 5 A schematic diagram of the structure of a zero position adjustment device for an eddy current sensor provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the zero position adjustment device of the eddy current sensor includes:
[0098] The parameter acquisition module 10 is used to acquire the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage;
[0099] A first difference judgment module 20, used to judge whether the difference between the actual distance and the calibrated distance is less than a first preset difference;
[0100] The output voltage acquisition module 30 is used to acquire the current output voltage of the eddy current sensor when the difference between the actual distance and the calibrated distance is less than a first preset difference;
[0101] A second difference judgment module 40 is used to judge whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference;
[0102] The spacing adjustment module 50 is used to control the calibration disk to move toward the probe side by a preset spacing when the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
[0103] The zero position adjustment device of the eddy current sensor provided in an embodiment of the present invention can execute the zero position adjustment method of the eddy current sensor provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The similarities can be referred to the above description.
[0104] Embodiment 6
[0105] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer instructions. The computer instructions are used to enable a processor to implement the zero-position adjustment method of the eddy current sensor provided in the embodiment of the present invention when executed. The method has corresponding functional modules and beneficial effects, which will not be repeated here.
[0106] Computer readable storage medium can be a tangible medium that can contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. Computer readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. Alternatively, computer readable storage medium can be a machine readable signal medium. More specific examples of machine readable storage mediums can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0107] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, combinations and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for zero adjustment of an eddy current sensor, performed by an eddy current sensor automatic calibration device, characterized in that: The zero position adjustment method of the eddy current sensor comprises: Obtaining the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and calibration voltage; Determining whether a difference between the actual distance and the calibrated distance is less than a first preset difference; If yes, obtaining the current output voltage of the eddy current sensor; Determine whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference; If so, control the calibration disk to move toward the probe side by a preset distance, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
2. The zero position adjustment method according to claim 1, characterized in that: The eddy current sensor automatic calibration device comprises a stepper motor, and the stepper motor is used to control the movement of the calibration disk; If the difference between the actual distance and the calibrated distance is greater than or equal to the first preset difference, the stepper motor is controlled to be in a continuous working mode; when the stepper motor is in the continuous working mode, the actual distance between the calibration disk and the probe gradually decreases.
3. The zero position adjustment method according to claim 2, characterized in that: Controlling the stepper motor to be in a continuous working mode comprises: Based on a fuzzy PID control algorithm, the working time of the stepper motor in the continuous working mode is determined according to the actual distance and the calibrated distance.
4. The zero position adjustment method according to claim 1, characterized in that: Before controlling the calibration plate to move toward the probe side by a preset distance, the method further includes: The preset distance is determined according to the actual distance and the calibrated distance.
5. The zero position adjustment method according to claim 4, characterized in that: Determining the preset distance according to the actual distance and the calibrated distance includes: Calculating a distance difference between the actual distance and the preset distance; The product of the distance difference and the adjustment coefficient is used as the preset distance.
6. The zero position adjustment method according to claim 1, characterized in that: While controlling the calibration plate to move toward the probe side by a preset distance, acquiring the actual distance between the probe and the calibration plate in real time; If the actual distance is less than zero, the calibration disk is controlled to stop moving toward the probe side.
7. The zero position adjustment method according to claim 6, characterized in that: If the actual distance is zero, the calibration disk is controlled to move the preset distance away from the probe side, and the step of obtaining the current output voltage of the eddy current sensor is returned until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
8. A zero position adjustment device for an eddy current sensor, characterized in that: include: A parameter acquisition module, used to acquire the actual distance between the probe of the eddy current sensor and the calibration disk, as well as the calibration distance and the calibration voltage; A first difference judgment module, used to judge whether the difference between the actual distance and the calibrated distance is less than a first preset difference; an output voltage acquisition module, configured to acquire a current output voltage of the eddy current sensor when a difference between the actual distance and the calibrated distance is less than the first preset difference; A second difference judgment module, used to judge whether the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference; The spacing adjustment module is used to control the calibration disk to move toward the probe side by a preset spacing when the absolute value of the difference between the current output voltage and the calibration voltage is greater than a second preset difference, and return to execute the step of obtaining the current output voltage of the eddy current sensor until the absolute value of the difference between the current output voltage and the calibration voltage is less than or equal to the second preset difference.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the zero position adjustment method of the eddy current sensor according to any one of claims 1 to 7 when executed.
10. An eddy current sensor calibration system, characterized in that: include: Mounting table, distance sensor, calibration plate, stepper motor and controller; The mounting platform is used to fix the eddy current sensor; the distance sensor is used to obtain the actual distance between the calibration disk and the probe of the eddy current sensor; the stepping motor is used to control the calibration disk to move toward or away from the probe side; The controller is communicatively connected to the distance measuring sensor, the stepper motor and the eddy current sensor respectively; the controller is used to execute the zero position adjustment method of the eddy current sensor described in any one of claims 1-7.