An automatic measurement device and method for electrolytic machining gap based on process learning
By using an automatic electrolytic machining gap measurement device based on process learning, the change in electrolyte resistivity is directly measured, and a voltage-gap relationship model is established. This solves the problems of low accuracy and poor applicability of existing electrolytic machining gap measurement, and realizes high-precision, wide-application and automated electrolytic machining gap measurement.
Patent Information
- Application Number
- CN202511984692.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-11-17
AI Technical Summary
Existing methods for measuring gaps in electrolytic machining suffer from low measurement accuracy, poor applicability, low reliability, and low automation. In particular, indirect measurement methods are greatly affected by electrolyte characteristics and processing conditions, while direct measurement methods are limited by space constraints.
An automatic measurement device for electrolytic machining gap based on process learning is adopted. By setting the voltage detection thresholds of the cathode and anode, and combining the process learning system and the control system, the resistivity change of the electrolyte is directly measured, and a voltage-gap relationship model is established to achieve automatic detection and accurate measurement.
It achieves high-precision measurement of electrolytic machining gaps in both enclosed and dry/wet environments. It is easy to operate, has a wide range of applications, reduces the influence of electrolyte characteristics on the measurement, and has anti-collision protection.
Smart Images

Figure CN123103100A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrolytic machining tool manufacturing, specifically to an automatic measurement device and method for electrolytic machining gap based on process learning. Background Technology
[0002] Electrolytic machining clearance refers to the distance between the tool cathode and the workpiece, and its size directly affects machining accuracy, surface quality, and machining stability. Measuring electrolytic machining clearance has always been a challenge. Existing machining measurement methods can be divided into indirect and direct measurement methods. The main problems with these methods are low measurement accuracy, poor applicability, low reliability, and low automation.
[0003] Indirect measurement methods generally involve measuring other physical quantities related to the electrolytic machining gap, such as machining current and voltage, and then indirectly estimating the size of the machining gap based on the intrinsic relationship between these physical quantities and the machining gap. These methods mainly include measurements based on machining current and measurements based on machining voltage. Measurements based on machining current utilize the functional relationship between the machining current and the machining gap during electrolytic machining. Generally, under relatively stable machining conditions, such as electrolyte concentration, temperature, and feed rate, changes in the machining gap will cause changes in the machining current. By monitoring changes in the machining current and using a pre-established current-gap relationship model, the size of the machining gap can be indirectly estimated. Measurements based on machining voltage also utilize the close relationship between the machining voltage and the machining gap. When the machining gap changes, the resistance of the electrolyte between the electrodes changes accordingly, leading to changes in the machining voltage. By monitoring the machining voltage in real time and combining it with known voltage-gap characteristic curves or mathematical models, the value of the machining gap can be inferred.
[0004] Direct measurement methods utilize non-contact measurement with capacitance and eddy current sensors, or direct measurement using microscopes, dial indicators, and laser rangefinders. The capacitance method is based on the working principle of capacitance sensors. A capacitance sensor is installed in a suitable position to form a capacitor with the electrolytic machining gap. The size of the machining gap can be calculated by measuring the change in capacitance using the capacitance formula. The eddy current method uses the eddy current effect to measure the machining gap. When the sensor is close to the workpiece, eddy currents are generated in the workpiece. The magnitude of the eddy currents is related to the distance between the sensor and the workpiece (i.e., the machining gap). By detecting the effect of the eddy currents on the inductance or impedance of the sensor coil, the machining gap can be measured indirectly. The eddy current method has the advantages of being non-contact and having strong anti-interference capabilities.
[0005] Methods for measuring machining gaps based on machining voltage and current estimate the gap using these parameters. However, due to the influence of factors such as electrolyte characteristics, part shape, and machining speed, it is difficult to establish an accurate machining gap calculation model, and these methods are generally used for rough measurements. Capacitance or eddy current methods are non-contact measurement methods, but they are only applicable to machining gap measurements under specific conditions due to the influence of machining area spatial conditions and part shape; these methods cannot be used when the machining area is closed. To address the challenges of measuring electrolytic machining gaps, an automatic electrolytic machining gap measurement device and method based on process learning has been invented. Summary of the Invention
[0006] The purpose of this invention is to provide an automatic measurement device and method for electrolytic machining gaps based on process learning. This method can automatically detect the gap in electrolytic machining by setting the voltage detection threshold for the contact between the cathode and anode according to the characteristics of the electrolyte. This method can be used for measuring electrolytic machining gaps in confined, dry, and wet environments, and features high measurement accuracy, convenient operation, and wide applicability.
[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0008] The automatic electrolytic machining gap measuring device based on process learning described in this invention consists of a gap measuring system, a process learning system, a control system, and its control software.
[0009] The gap measurement system is used for automatic measurement of the gap in electrolytic machining. The measurement motion is controlled by the control software, and the detection circuit module detects the voltage change between the cathode and anode. The position of the tool cathode and the workpiece is determined by the set feedback voltage threshold, and the gap between the anode and cathode is calculated.
[0010] The process learning system detects the type, temperature, and conductivity parameters of the electrolyte. The control software controls the movement of the measuring head to measure the voltage values at different locations and store them in a database.
[0011] The control system of the automatic measurement device in the machining room based on process learning consists of an industrial computer (IPC), a control unit (NCU), a servo drive unit, an interface module, and a detection circuit module. The CNC unit communicates with the industrial computer via Ethernet. The CNC unit and the interface module transmit data via a PROFIBUS bus. The CNC unit and the servo drive power supply are connected via a DRIVE-CLIQ interface.
[0012] The servo drive unit includes a drive power supply, servo driver 1, and servo driver 2. Servo driver 1 drives the AC servo motor of the gap measurement system, and servo driver 2 drives the AC servo motor of the process learning system. The two servo drivers are connected to the CNC unit via DRIVE-CLIQ, and the servo drivers are connected to the AC servo motor via dedicated power lines and encoder signal lines, respectively.
[0013] The threshold detection system consists of a measuring head, an anode, a motion mechanism, a temperature sensor, a conductivity sensor, a measuring cell, and a detection circuit module. The motion mechanism consists of an AC servo motor, a ball screw module, and a slider. The servo motor is driven by a servo driver 2. The measuring head is mounted on the slider of the motion mechanism, and the anode is fixed. The temperature sensor and conductivity sensor are used to measure the temperature and conductivity of the electrolyte, respectively. These are converted into current signals of 4-20 μs by a conversion circuit and input to the analog input interface.
[0014] The process learning detection system measures the voltage between the measuring head and the anode in segments within a certain range (less than 10 mm) and stores the measured voltages in a database. The stored data includes the type of electrolyte, conductivity, electrolyte temperature, measurement point, and corresponding voltage value.
[0015] The gap measurement detection circuit module is powered by a 24V DC power supply, with the positive and negative terminals of the power supply connected to the two terminals of JP1 respectively; the cathode terminal of JP2 is connected to the cathode terminal of the electrolytic machining tool, and the anode terminal of the JP2 terminal is connected to the workpiece mounted on the electrolytic machining tool; the positive and negative terminals of the JP5 terminal are connected to a voltage sensor, and the voltage value detected by the sensor is converted into an output current signal of 4-20 mA, which is then input to the industrial control computer for processing and output through the analog input port in the interface.
[0016] In the aforementioned machining gap measuring device, the positive and negative terminals of the machining power supply and the cathode and anode terminals of the detection circuit module 1 are simultaneously connected to the tool cathode and the workpiece, respectively. Machining gap measurement does not require disconnecting the machining power supply from the cathode and workpiece, but the machining power supply must be turned off. The positive and negative terminals of the machining power supply are connected to the terminals of the cathode measuring head and the anode via relays, and the cathode and anode terminals of the detection circuit module 2 are connected to the terminals of the measuring head and the anode. During machining gap measurement, the relays are disconnected, cutting off the connection between the machining power supply and the measuring head and anode in the process learning system.
[0017] The control software comprises a gap measurement software module, a process learning software module, and a database. Both modules are developed on top of the Siemens CNC system software and embedded within it. Software modules are switched using function keys on the software interface within the CNC system.
[0018] The gap measurement and control software module includes interfaces for selecting the electrolyte type, selecting the start position of the machining measurement, and setting the measurement speed. It displays electrolyte temperature and conductivity parameters fed back from sensors, provides real-time graphical display of the detected voltage, and displays the graphical representation of the AC servo motor used for the measurement movement. Its main functions include controlling the measurement movement of the electrolytic machining gap, judging the measurement process based on a calculated threshold, ending the measurement, controlling the cathode to retract from the start of the measurement, and calculating the machining gap. The software interface includes function keys for loading data, storing data, gap detection, and cathode retraction.
[0019] The process learning system's control software module interface includes functions for selecting the electrolyte type, selecting the processing measurement start position, setting the measurement speed and retraction speed, displaying electrolyte temperature and conductivity parameters fed back by sensors, displaying the real-time graphical display of the detection voltage, and showing the voltage detection values at each detection point. Its main functions are controlling the measurement movement of the detection voltage, recording and storing the voltage values and electrolyte parameter values at each measurement position, and controlling the cathode retraction. The function keys on its software interface include loading data, storing data, voltage detection, and cathode retraction.
[0020] The aforementioned method for automatic measurement of electrolytic machining gap based on process learning:
[0021] Before measurement, a process learning system is used to acquire the conductivity characteristics of electrolytes of different types and parameters, obtain the relationship between the machining gap and the feedback voltage of the detection circuit module, establish a mathematical model of the correspondence between the machining gap and the feedback voltage, and store the learned data in a database. During machining gap measurement, the data stored in the process learning system is called up, and the calculation model for machining gap measurement is corrected according to the current electrolyte type and characteristics. The electrolytic machining gap is then calculated by inversely using the model of feedback voltage and machining gap.
[0022] Preferably, the electrolytic machining gap measurement calculation model in a process learning-based automatic measurement method for electrolytic machining gap consists of a set of correlation formulas;
[0023] The formula for measuring process learning data is as follows: ;
[0024] The model for the relationship between feedback voltage and machining gap is as follows: ;
[0025] The relationship model between measurement distance and measurement voltage is as follows: ;
[0026] The formula for calculating the detection voltage threshold is: ;
[0027] The formula for calculating machining clearance is: ;
[0028] in, This indicates the detection voltage at the contact point. This indicates the voltage detected at the measurement point preceding the contact point. Indicates the location of the contact point. Indicates the position of the measurement point preceding the contact point;
[0029] Range of values ,when The closer to hour, close to In practical applications, the value allows the cathode to be placed infinitely close to the workpiece, without contacting the workpiece, to measure the size of the machining gap.
[0030] This indicates the actual distance the tool cathode travels from the start of the measurement to the end of the measurement. This indicates the calculated distance from the position to the workpiece surface when the measurement ends.
[0031] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0032] The automatic electrolytic machining gap measurement device is not a standalone electrolytic machining gap measurement system. Because the control software module for electrolytic machining measurement is developed using QT / C++, the control module can be integrated into the Siemens CNC system software SINUMERIK Operate and run in a compilation loop, achieving seamless integration with the control software in the Siemens CNC system. Switching between electrolytic machining and machining gap measurement is convenient; machining gap measurement can be completed immediately after machining is finished.
[0033] The automatic measurement device for electrolytic machining gap does not utilize the indirect detection method of machining voltage and current, but instead employs a direct measurement method. It uses an external measuring power supply applied to the anode and cathode. The size of the electrolytic machining gap is determined by the change in resistivity of the electrolyte within the gap, which is then converted into a voltage value and input to the control system for judgment. The device incorporates anti-collision protection measures during the measurement process, safeguarding both the cathode and the workpiece.
[0034] The automatic measurement device for electrolytic machining gap has a process learning system that can collect voltage detection values under different gaps under different electrolyte, temperature, and conductivity conditions. It stores these data in a database and calculates the current measurement threshold through a detection voltage threshold model, reducing the influence of electrolyte characteristics on electrolytic machining measurement and making the measured electrolytic machining gap value more accurate. Attached Figure Description
[0035] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0036] Figure 1 This is a structural diagram of the automatic measurement device for electrolytic machining gap based on process learning according to the present invention;
[0037] The components include: 1. Numerical Control Unit (NCU), 2. Industrial Computer (IPC), 3. Interface Module, 4. Analog Input Interface Module, 5. Detection Circuit Module 1, 6. Detection Circuit Module 2, 7. AC Servo Motor 2, 8. Motion Slider, 9. Measuring Head, 10. Anode, 11. Temperature Sensor, 12. Conductivity Sensor, 13. Measuring Cell, 14. Workpiece, 15. Tool Cathode, 16. Machine Tool Spindle, 17. Electrolytic Processing Machine Tool, 18. AC Servo Motor 1, 19. Servo Drive Power Supply, 20. Servo Driver 1, 21. Servo Driver 2, 22. Processing Power Supply, 23. Network Switch, and 24. Relay.
[0038] Figure 2 This is a diagram showing the composition of the detection circuit module of the automatic measurement device for electrolytic machining gap based on process learning.
[0039] Figure 3 It is the voltage detection and control software interface of the automatic measurement device for electrolytic machining gap based on process learning.
[0040] The interface includes: 1. Parameter setting and display area; 2. Detection voltage graphic display area; 3. Function operation soft keys; 4. Processing gap storage area; and 6. Module interface switching soft keys.
[0041] Figure 4 This is a flowchart of the electrolytic machining gap learning process for the invention of an automatic electrolytic machining gap measuring device based on process learning.
[0042] Figure 5 It is the processing gap measurement and control software interface of the automatic electrolytic machining gap measurement device based on process learning.
[0043] The interface includes: 1. Voltage detection graphic display area; 2. Parameter setting and display area; 3. Motor current detection graphic display area; 4. Function operation soft keys; 5. Processing gap storage area; 6. Module interface switching soft keys.
[0044] Figure 6 This is a flowchart of the machining gap measurement process of the automatic electrolytic machining gap measurement device based on process learning. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] Please see Figures 1-6 The present invention provides the following technical solution:
[0047] Example 1: As Figure 1 The automatic electrolytic machining gap measuring device shown comprises a Siemens CNC unit, an industrial computer, a servo drive unit, an interface module, and a detection circuit module. The CNC unit 1 can be any of the Siemens SINUMERIK ONE models NCU1740, NCU1750, or NCU1760. The industrial computer is preferably the Siemens IPC477E, which integrates a computer and LCD display and can run SINUMERIK Perate CNC software. The CNC unit, industrial computer, and operation panel are connected via a router. The external interface is a Siemens distributed ETM module, which consists of an interface module, a digital input / output module, and an analog input / output module. Interface module 3 can be either the IM153-4 PN with a PROFINE interface or the IM153-1 or IM153-2 with a PROFIBUS interface. Servo drives 1 and 2 are matched with motor 18 and servo motor 7, respectively.
[0048] When measuring machining gaps, the positive and negative terminals of the machining power supply can be continuously connected but must be turned off, and the relay must be disconnected from the cathode and anode connections in the detection voltage data acquisition system. The machining power supply and the detection module need to be interlocked, meaning they cannot output simultaneously. When measuring without disconnecting the machining power supply, the internal resistance of the power supply affects the detection voltage value. Measurements must also be performed with the machining power supply connected during machining detection voltage data acquisition.
[0049] The machining clearance measurement motion is driven by the feed axis of the tool cathode mounted on the electrolytic machining machine, which moves the cathode towards the workpiece until the measurement is completed. The measurement motion speed is determined by the control software based on the measurement parameters. The control software utilizes the CNC program execution function in the CNC unit, and executes the CNC program in the NCU through PI Service commands. The machining clearance measurement can be performed immediately after the electrolytic machining is completed.
[0050] The machining clearance detection data acquisition unit is driven by an AC servo motor 7, which in turn drives a ball screw module. The slider on the module moves the measuring head to acquire data, and the motion implementation method is the same as that used in machining clearance measurement. During the detection process, the detection module, temperature sensor, and conductivity sensor collect voltage, electrolyte temperature, and conductivity information. This data is then input into the control software for processing, generating data for machining clearance measurement.
[0051] like Figure 2 As shown, voltage detection module 1 consists of a detection circuit board and a voltage sensor. The detection circuit board is powered by a 24V DC power supply, with the positive and negative terminals connected to the two terminals of JP1 respectively. The cathode terminal of JP2 is connected to the cathode terminal of the electrolytic machining tool, and the anode terminal of JP2 is connected to the workpiece mounted on the electrolytic machining tool. The positive and negative terminals of JP5 are connected to the voltage sensor. The voltage value detected by the sensor is converted into a 4-20mA current signal, which is then input to the industrial control computer for processing and output through the analog input port in the interface.
[0052] The workflow of the machining clearance detection process learning module is as follows: Figure 4 , combined Figure 3 The contents of the control software interface shown are explained. Figure 4 The workflow shown is explained below:
[0053] (1) Measurement parameter settings: The parameters set in the control software interface include: electrolyte type, measurement and detection position, detection speed, and retraction speed.
[0054] (2) Send detection command: Click the “Voltage Detection” function key on the right side of the control software interface to start automatic detection.
[0055] (3) Connect the detection circuit: turn off the processing power supply 22, connect the relay 24 to supply power to the detection module, and at the same time connect the detection circuit to the measuring head and anode. The detection circuit starts detection.
[0056] (4) Measurement head movement: The software controls the numerical control program in the NCU unit to perform the measurement movement, and the movement speed is set in the parameters.
[0057] (5) Voltage detection: The position of the detection measuring head is detected. At the set detection position, the software controls the cathode to pause its movement. The detection circuit module 2 samples and feeds back the voltage value, electrolyte temperature, and conductivity value.
[0058] (6) Record and store data: Output the detection value on the control software interface and store the data in the process data.
[0059] (7) Measurement end judgment: When the system determines that the measurement end position has been reached based on the detection threshold, the measurement head movement is stopped.
[0060] (8) Turn off the detection circuit: Turn off the power supply to the detection circuit.
[0061] (9) Cathode retraction: The cathode is retracted to the starting measurement position by software control.
[0062] The workflow for automatic measurement of machining gaps is as follows: Figure 6 As shown, combined with Figure 5 The contents of the control software interface shown are explained. Figure 6 The workflow is explained below:
[0063] (1) Measurement parameter settings: The parameters set in the control software include: electrolyte type, measurement start position, detection speed, and retraction speed. The measurement start position is the current position of the cathode by default, i.e., the position where the cathode processing ends, or it can start from the set position. The above-set parameters can be stored in the database as needed for future retrieval.
[0064] (2) Calculation of processing gap detection threshold: Click "Threshold Calculation" on the right side of the control software. The control software calculates the threshold based on the collected current electrolyte parameters and the threshold calculation model.
[0065] (3) Send the start measurement command: Click the "gap detection" function key on the right side of the control software to start the automatic measurement stage.
[0066] (4) Connect the detection circuit: First, turn off the processing power supply, disconnect the relay, supply power to the detection module of the processing gap, and at the same time connect the detection circuit to the cathode and the workpiece. The detection circuit will start detection.
[0067] (5) Cathode movement: The measurement control software controls the numerical control program in the NCU unit to perform measurement movement. The movement speed is the speed value set in the parameter settings.
[0068] (6) Machining gap detection: Machining gap detection compares the detected voltage value with the threshold value. When the voltage value is lower than the threshold value, the detection process ends.
[0069] (7) Collision Detection: During the detection process, the current of the servo motor is detected, and the contact between the cathode and the workpiece is determined by the change in current. The motor operating current parameters in the CNC system are read by the PLC of the CNC system and stored in the PLC. The control software then reads the parameters from the PLC. The current threshold is adjusted upward by 10-20% based on the magnitude of the current value during the measured motion.
[0070] (8) Shut down the detection circuit: After the processing gap is completed, turn off the power supply to the detection module and disconnect the detection circuit from the cathode and the workpiece.
[0071] (9) Calculate the machining gap: Calculate the size of the machining gap based on the cathode position at the end of the measurement and the starting measurement position.
[0072] (10) Storage and display: Output the machining gap value on the control software interface and store the machining gap value measured in the database.
[0073] (11) Cathode retraction: After the measurement is completed, control the cathode to retract to the starting measurement position or the set retraction position.
[0074] Example 2: In the measurement of the gap in electrolytic machining, the progress of the measurement in the machining gap is determined based on the voltage value detected by the detection module. Specifically, a mathematical model is established relating the voltage to the distance between the cathode and anode. A voltage threshold is set as the condition for determining the end of the measurement, and the machining gap is calculated based on the measurement distance and the mathematical model. The following explains the calculation method for the threshold of the feedback voltage in the automatic detection device for the electrolytic machining gap.
[0075] In the process learning system, n location voltage detection points are set, represented as follows: The voltage feedback value of the detection module at this location is detected in the learning system and is represented as... Establish a dataset between the detection point and the feedback voltage, represented as follows: ;
[0076] In the machining clearance measurement system, the detection data of the learning system is corrected according to the current measurement environment. The correction method is as follows: or ;
[0077] in, This represents the voltage detection value in the measurement system. This represents the voltage detection value in the learning system. This indicates the electrolyte temperature value in the measurement system. This indicates the electrolyte temperature value in the learning system. This represents the temperature correction factor. Indicates the conductivity of the electrolyte in the measurement system. This indicates the electrolyte conductivity in the learning system. This represents the conductivity correction factor. o C, express The electrical conductivity;
[0078] The corrected dataset in the measurement system is then: ;
[0079] In the measurement, piecewise interpolation is used, and the formula for the segmented detection voltage and the measurement distance is: ;
[0080] The formula for calculating the segmented feedback voltage and measurement distance is as follows: ;
[0081] Threshold used for determining the end of machining clearance measurement The range of values is: ;
[0082] in, This indicates the detection voltage at the contact point. This indicates the voltage detected at the measurement point preceding the contact point. Indicates the location of the contact point. Indicates the position of the measurement point preceding the contact point;
[0083] Range of values ,when The closer to hour, close to In practical applications, the cathode can be brought infinitely close to the workpiece without contacting it, allowing for the measurement of the machining gap.
[0084] Then the machining clearance The measurement calculation formula is: ;
[0085] in, This indicates the actual distance the tool cathode travels from the start of the measurement to the end of the measurement. This indicates the calculated distance from the position to the workpiece surface when the measurement ends.
[0086] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. An electrolytic processing gap automatic measuring device based on process learning, characterized in that: The device includes: a process learning system, a machining clearance measurement system, a control system, and control software; The process learning system is used to collect parameters that reflect the measurement characteristics of the processing gap, including electrolyte parameters and feedback voltage on the measurement path. Its functions include motion control, parameter acquisition, and data storage. The machining clearance measurement system is used to measure the clearance in electrolytic machining, and its functions include measurement motion control, measurement threshold calculation, machining clearance measurement, and machining clearance calculation. The control system includes: an industrial computer, a numerical control unit (CNC) unit, a servo drive unit, and an interface module; the control system adopts a master-slave architecture, with the industrial computer as the master and the CNC unit as the slave, and the master and slave are connected via Ethernet; the CNC unit and the interface module are connected via a bus, and the CNC unit and the servo drive unit are connected via a bus. The control software includes a process learning control module, a gap measurement control module, and a database. The control software is embedded as a component into the control software of the electrolytic machining tool. The control software interface includes measurement parameter settings, measurement data display, status display, measurement operation, and module switching.
2. The electrolytic gap automatic measuring device based on process learning according to claim 1, wherein The process learning system includes: a measuring head, an anode, a motion mechanism, a temperature sensor, a conductivity sensor, a measuring cell, and a detection module; the motion mechanism consists of a servo motor, a ball screw module, and a slider; the measuring head is mounted on the slider of the motion mechanism, and the anode is fixed on the base.
3. The electrolytic gap automatic measuring device based on process learning according to claim 1, wherein The machining gap measurement system includes a servo motor, an actuator, and a detection circuit module; the servo motor drives the actuator to move, thereby driving the tool cathode to perform measurement; the cathode terminal and anode terminal in the detection circuit module are respectively connected to the tool cathode and the workpiece.
4. An electrolytic machining gap automatic measuring method for realizing the electrolytic machining gap automatic measuring device according to any one of claims 1 to 3, characterized in that, The method includes: S100. Before measurement, the process learning system is used to obtain the conductivity characteristics of electrolytes of different types and parameters, obtain the feedback voltage law between the processing gap and the detection circuit module, establish a discrete mathematical model of the correspondence between the processing gap and the feedback voltage, and store the learning data in the database. S200. When measuring the machining gap, the data stored in the process learning is called up, and the machining gap data is corrected according to the current electrolyte type, temperature or conductivity using a formula. Then, the electrolytic machining gap is calculated in reverse through the electrolytic machining gap measurement calculation model.
5. The electrochemical gap measurement method of claim 4, wherein, The discrete mathematical model establishing the relationship between the processing gap and the feedback voltage in S100 includes: In the process learning system, n location voltage detection points are set, denoted as... The voltage feedback values of the detection modules at various locations are detected in the learning system, and are represented as follows: Then, a dataset is constructed between the detection point and the feedback voltage: A discrete mathematical model of the relationship between the processing gap and the feedback voltage was obtained.
6. The automatic measurement method for electrolytic machining gap as described in claim 4, characterized in that, In step S200, the machining gap data is corrected using a formula based on the current electrolyte type, temperature, or conductivity. Then, the electrolytic machining gap is calculated inversely using an electrolytic machining gap measurement and calculation model. This includes: In the machining clearance measurement system, the detection data of the learning system is corrected according to the current measurement environment. The correction method is as follows: or ; in, This represents the voltage detection value in the measurement system. This represents the voltage detection value in the learning system. This indicates the electrolyte temperature value in the measurement system. This indicates the electrolyte temperature value in the learning system. This represents the temperature correction factor. Indicates the conductivity of the electrolyte in the measurement system. This indicates the electrolyte conductivity in the learning system. This represents the conductivity correction factor. o C, express The electrical conductivity; The corrected data set in the measurement system is: ; In the measurement, piecewise interpolation is used, and the formula for the segmented detection voltage and the measurement distance is: ; The piecewise calculation formula of the measurement feedback voltage and the measurement distance is: ; Threshold value for machining gap measurement end determination The value range is: ; wherein, the detection voltage at the contact point, the detection voltage at the preceding measurement point to the contact point, the position of the contact point, the position of the preceding measurement point to the contact point; Range of values ,when The closer to hour, close to value; The machining gap The measurement calculation formula is: ; wherein represents the actual movement distance of the tool cathode motion from the start of the measurement to the end of the measurement motion, represents the calculated distance from the position at the end of the measurement to the workpiece surface.
