Automatic cutting fluid mixing device and method
By designing the automatic mixing device of the cutting fluid, the leaf and spiral mixed tube are used to combine the electronic control component to achieve real -time adjustment of the cutting solution concentration and temperature, which solves the problem of inaccessible mixing and lack of flexibility in the existing technologies. Efficiency and lubrication performance.
Patent Information
- Application Number
- CN202411762751.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-01-21
AI Technical Summary
The existing cutting fluid mixers do not respond and adjust the cutting fluid concentration during the mixing process, and lack flexibility and versatility, so they cannot eliminate the adverse effects of temperature on cutting fluid in a timely manner.
An automatic cutting fluid mixing device is designed, including a mixing pipeline, a liquid inlet branch pipe and an electronic control component. By setting up a blade mixing tube and a spiral mixing tube, combined with a control chip and an electronic control component, the concentration and temperature of the cutting fluid can be controlled. Real-time monitoring and adjustment.
A real -time adjustment of the concentration and temperature of the cutting solution, improved the mixed ratio efficiency and lubrication performance, solved the problem of unstable concentration and temperature effects, and improved the automation level and flexibility of the mixture.
Smart Images

Figure CN119327296A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of mechanical processing, and in particular to an automatic mixing device and method for cutting fluid. Background Art
[0002] Machine tools generate a lot of heat when processing metal, which affects the quality of processed parts. Therefore, cutting fluid is needed during the processing. Cutting fluid has four functions: cooling, lubricating, cleaning, and rust prevention. It can effectively reduce the processing quality problems caused by frictional heat during the processing of lathes.
[0003] There are difficulties in the mixing process of cutting fluid, such as inaccurate mixing concentration, insufficient liquid mixing leading to stratification, residual impurities contaminating the cutting fluid, etc., and the most influential problem in the quality of cutting fluid is the unstable concentration of the mixed cutting fluid. Previously, the most common method of mixing cutting fluid was manual mixing. Manual mixing of cutting fluid is simple to operate. First, you need to add a certain amount of clean water to a clean container, then pour the concentrate according to the recommended ratio of the product and stir it thoroughly to make the concentrate and clean water completely blended. After the liquid is stable, use a refractometer to measure the concentration. If the concentration does not meet the expected standard, add water or concentrate to reach the specified concentration. Although the manually mixed cutting fluid can meet basic needs, due to the subjective operation of people, it may lead to problems such as substandard cutting fluid concentration, low mixing degree, and waste of cutting fluid. At the same time, manual mixing is time-consuming and labor-intensive. Some cutting fluids also contain ingredients that are harmful to the human body, endangering the health of the operator, increasing labor costs, and easily causing unstable mixing quality, resulting in the machine tool not being able to fully exert its performance. Therefore, with the development of the manufacturing industry and the needs of the machine tool industry, cutting fluid mixers have gradually replaced traditional manual mixing operations.
[0004] Common mixers currently include flow control mixers, ratio mixers, volume ratio mixers, static and dynamic mixers, portable mixers, fixed mixers, etc. However, the above mixers all have the following problems:
[0005] 1. The feedback and adjustment of cutting fluid concentration during the entire mixing process are not timely. Usually, concentration detection can only be performed after the mixing is completed, which limits the automation level of the mixer.
[0006] 2. The mixer has a single mixing content and can only meet the needs of mixing one type of cutting fluid and water, or can only mix a single type of cutting fluid, lacking flexibility and versatility.
[0007] 3. The adverse effects of temperature on cutting fluid cannot be eliminated in time, resulting in reduced subsequent processing accuracy and reduced lubrication effect.
[0008] To this end, we propose an automatic cutting fluid mixing device and method. Summary of the invention
[0009] In view of the above-mentioned deficiencies in the prior art, the present invention provides a cutting fluid automatic mixing device and method.
[0010] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0011] A cutting fluid automatic mixing device comprises: a mixing pipeline, provided with a mixing structure, used for mixing the cutting fluid entering the mixing pipeline; at least two liquid inlet branches, the output ends of the plurality of liquid inlet branches are connected to the input end of the mixing pipeline; an electronic control component, provided on the liquid inlet branch and the mixing pipeline, the electronic control component is used for monitoring the flow rate and on-off of the liquid inlet branch and the concentration and temperature of the output end of the mixing pipeline; a control chip, electrically connected to the electronic control component, controls the electronic control component to achieve control of the cutting fluid concentration.
[0012] By setting a mixing structure on the mixing pipeline and providing a liquid inlet branch to input the cutting fluid that needs to be mixed, the control chip and the electronic control component cooperate to control the liquid inlet amount of the liquid inlet branch and monitor the concentration and temperature of the mixing pipeline. The liquid inlet amount in the liquid inlet branch can be adjusted in real time to achieve real-time adjustment of the concentration. The temperature of the cutting fluid can also be adjusted in time through the liquid inlet branch to avoid the influence of temperature on the performance of the cutting fluid and improve the lubrication performance of the cutting fluid.
[0013] It is further defined that the mixing structure includes a blade mixing tube and a spiral mixing tube, the output end of the blade mixing tube is connected to the input end of the spiral mixing tube, the input end of the blade mixing tube serves as the input end of the mixing pipeline, and the output end of the spiral mixing tube serves as the output end of the mixing pipeline; by arranging the blade mixing tube and the spiral mixing tube, the mixing of the cutting fluid can be completed midway from the cutting fluid entering the mixing pipeline to the cutting fluid discharging the mixing pipeline, thereby improving the mixing ratio efficiency.
[0014] It is further defined that the blade mixing tube is a straight tube with a number of spiral blades inside, each spiral blade divides the interior of the blade mixing tube into two symmetrical spaces, and the two adjacent spiral blades are staggered so that the spaces separated by each are intersected; by arranging spiral blades in the blade mixing tube, the blade mixing tube is divided into two symmetrical spaces, and the two spaces are independently fluid-permeable, and by staggering adjacent spiral blades, the cutting fluid in the two independent spaces is mixed at the staggered position and separated again, and multiple mixing and separation can achieve exponential separation of the fluid, thereby improving the mixing effect.
[0015] It is further defined that the spiral mixing tube is spiral-shaped, and the input end and the output end are respectively provided with straight tubes for connection.
[0016] It is further defined that the electronic control component includes a flow meter, a control valve, a solenoid valve, a temperature sensor and a concentration sensor; the flow meter and the control valve are both arranged on each liquid inlet branch through a connecting pipe, and a flow meter and a control valve are arranged in sequence on each liquid inlet branch along the flow direction of the cutting fluid, the temperature sensor and the concentration sensor are integrated and arranged on the output end of the spiral mixing tube through a three-way connecting pipe, the solenoid valve is arranged on the output end of the spiral mixing tube, and a concentration sensor and a solenoid valve are arranged in sequence on the spiral mixing tube along the flow direction of the cutting fluid.
[0017] It is further defined that the control chip is connected to the flow meter, the control valve, the solenoid valve, the temperature sensor, and the concentration sensor through a wireless communication module.
[0018] A temperature regulation method for regulating the temperature of the cutting fluid in the above-mentioned cutting fluid automatic mixing device comprises the following steps:
[0019] S1. Set the input variables, including the real-time temperature T of the temperature sensor at time t t and set temperature T set , output variables include the valve opening of the control valve on the liquid inlet branch pipe and whether cooling water is introduced;
[0020] S2. According to the real-time temperature T t and set temperature T set Construct fuzzy rules, which include the temperature output function:
[0021]
[0022] Among them, m is the shape parameter of the temperature output function y, b is the width parameter of the temperature output function y, and y is the output function value;
[0023] When T t >T set At +5℃, take b=0.2, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the over-temperature state:
[0024]
[0025] When T set +5℃≥T t ≥T set At +2℃, take b=0.5, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the high temperature state:
[0026]
[0027] When T set +2℃≥T t ≥Tset When b=1, m=2, substitute the output function value y into the temperature output function. At this time, the output function value y is used as the temperature control signal of the medium temperature state:
[0028]
[0029] When T t <T set When b=2, m=2, substitute the output function value y into the temperature output function, and the output function value y is used as the temperature control signal of the low temperature state:
[0030]
[0031] S3. Based on fuzzy rules, the real-time temperature T collected at time t is used t and set temperature T set Calculate the corresponding temperature control signal;
[0032] S4. Introduce dynamic weights to adaptively adjust the temperature control signal:
[0033] Define the temperature at the previous moment as T t1 , the current temperature is T t2 , the dynamic weight is w t ;but:
[0034] |δ T |=|T t2 -T t1 |;
[0035]
[0036] Among them, δ T represents the rate of temperature change, T th The threshold value of the temperature change rate, T th =0.5℃ / s; k up is the temperature rise weight factor, k down is the cooling weight factor. In order to make the signal more sensitive to the temperature increase, k is defined up =1.2, k down =0.5;
[0037] Define the temperature control signal output at time t as y now , using the temperature control signal y after dynamic correction at the last moment past , calculate the dynamically corrected temperature control signal y at time t cs :
[0038] y cs =w t ·y now +(1-wt )·y past ;
[0039] The temperature control signal y cs As the final temperature control signal;
[0040] S5. Map the final temperature control signal to the actual opening of the valve, that is, the actual opening of the valve = y cs , according to the actual opening of the valve, the cooling water is controlled to adjust the temperature;
[0041] S6. Optimize the shape parameter m and the width parameter b to minimize the response time of the system, specifically including:
[0042] S61. Set temperature T set , shape parameter m and width parameter b as individuals, T set is a fixed value, and the variation range is set according to the shape parameter m and the width parameter b: b∈(0.1,5), m∈(0.1,5); a certain number of shape parameters m and width parameters b are randomly generated within the variation range to form a set of parameters [(T set ,T set ,...,T set )(m1,m2,...,m n ),(b1,b2,...,b n )] as the initial population, n is the population size; each group of parameters (T set ,m n ,b n ) as an individual;
[0043] S62. Define the response time of the system as fitness, randomly select k individuals from the initial population to establish an individual group, input each individual in the individual group into the temperature output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i , i is the number of the individual in the individual group;
[0044] S63: Get the fitness of k individuals in the individual group {f1,f2,...,f k}, select one of the individuals as the parent according to the fitness:
[0045]
[0046] Among them, i winner Number the individual selected as the parent;
[0047] S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations;
[0048] S65: Uniformly cross-replace the parameters in the two parents to generate new children:
[0049] The two parents obtained are defined as p1 and p2, and the genes in both parents include the set temperature T set , width parameter b and shape parameter m of the temperature output function;
[0050] P1=(T set ,m1,b1),P2=(T set ,m2,b2);
[0051] Among them, m1 is the shape parameter m of the temperature output function in the parent generation p1, b1 is the width parameter b of the temperature output function in the parent generation p1, m2 is the shape parameter m of the temperature output function in the parent generation p2, and b2 is the width parameter b of the temperature output function in the parent generation p2;
[0052] S66: Generate a random mask M of length 3 according to the crossover between genes in the two parents P1 and P2;
[0053] M=(M1,M2,M3);
[0054] The three data values in the random mask M are 0 or 1. When the genes in the two parents P1 and P2 are not cross-replaced, the corresponding data value M I =1, otherwise, M I =0, I is the number of the data value in the random mask M;
[0055] If the random mask M = (0, 0, 0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67;
[0056] S67: The genes corresponding to the shape parameter m and the width parameter b in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The mutated offspring are input into the temperature output function to obtain the fitness f1 and f2 of the mutated offspring output;
[0057] S68: Set the ideal value f0 of fitness;
[0058] If f1≤f0 or f2≤f0 exists, the shape parameter m and width parameter b of the mutated offspring corresponding to the minimum value of fitness f1 and f2 are output as the optimal shape parameter m and width parameter b;
[0059] If f1>f0 and f2>f0, then return to step S67, and randomly mutate the genes corresponding to the shape parameter m and the width parameter b in the two offspring after the crossover replacement;
[0060] S69: until the optimal shape parameter m and width parameter b are output, the optimization of the shape parameter m and the width parameter b is completed.
[0061] A concentration adjustment method for adjusting the concentration of cutting fluid in the above-mentioned cutting fluid automatic mixing device comprises the following steps:
[0062] S1. Set the input variable to the real-time concentration C of the concentration sensor at time t. t and set the concentration C set , the output variable is the control signal of "selecting the opening and closing of the solenoid valve";
[0063] S2. According to the real-time concentration C t and set the concentration C set Set the fuzzy rules, which include the concentration output function:
[0064]
[0065] Where m′ is the concentration output function y c shape parameter, b′ is the concentration output function y c The width parameter, y c is the output function value; set the values of m′ and b′ to m′=2, b′=1; if C t =C set , then the solenoid valve is controlled to open; if C t ≠C set , then the solenoid valve is controlled to close;
[0066] S3. For each collected real-time concentration C t and set the concentration C set , through the concentration output function y in step S3 c Calculate the current concentration output function value and apply the fuzzy rule:
[0067] If y c =1, then the output is "control solenoid valve to open"; if y c ≠1, then output "control solenoid valve to open";
[0068] S4 outputs a control signal according to the calculation result in step S4;
[0069] S5. The output control signal is transmitted to the solenoid valve to complete the opening and closing control of the solenoid valve, thereby completing the concentration adjustment;
[0070] S6. Optimize the shape parameter m′ and the width parameter b′ to minimize the response time of the system, specifically including:
[0071] S61. Set the concentration C set , shape parameter m′ and width parameter b′ as individuals, C set is a fixed value, and the variation range is set according to the shape parameter m′ and the width parameter b′: b′∈(0.1,5), m′∈(0.1,5); a certain number of shape parameters m′ and width parameters b′ are randomly generated within the variation range to form a set of parameters [(C set ,C set ,...,C set )(m1′,m′2,...,m′ n′ ),(b1′,b2′,...,b n ″)] as the initial population, n′ is the population size; each group of parameters (C set ,m′ n′ ,b n ″) as an individual;
[0072] S62. Define the response time of the system as fitness, randomly select k′ individuals from the initial population to establish an individual group, input each individual in the individual group into the concentration output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i ″, i′ is the number of the individual in the individual group;
[0073] S63: Get the fitness of k' individuals in the individual group {f1',f2',...,f k ″}, select one of the individuals as the parent according to the fitness:
[0074]
[0075] Among them, i′ winner Number the individual selected as the parent;
[0076] S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations;
[0077] S65: Uniformly cross-replace the parameters in the two parents to generate new children:
[0078] The two parents obtained are defined as p1′ and p′2, and the genes in both parents include the set concentration C set , width parameter b′ and shape parameter m′ of the concentration output function;
[0079] P1=(Cset ,m1′,b1′),P2=(C set ,m2′,b2′);
[0080] Among them, m1′ is the shape parameter m′ of the concentration output function in the parent generation p1′, b1′ is the width parameter b′ of the concentration output function in the parent generation p1′, m′2 is the shape parameter m′ of the concentration output function in the parent generation p′2, and b2′ is the width parameter b′ of the concentration output function in the parent generation p′2;
[0081] S66: Generate a random mask M′ of length 3 according to the crossover between genes in the two parents P1′ and P2′;
[0082] M′=(M1′,M2′,M3′);
[0083] The three data values in the random mask M′ are 0 or 1. When the genes in the two parents P1′ and P2′ are not cross-replaced, the corresponding data value M I ″=1, otherwise, M I ″=0, I′ is the number of the data value in the random mask M′;
[0084] If the random mask M′=(0,0,0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67;
[0085] S67: The genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The offspring of the mutated offspring are input into the concentration output function to obtain the fitness f1′, f2′ output by the mutated offspring;
[0086] S68: Set the ideal value f0′ of fitness;
[0087] If there exists f1′≤f0′ or f2′≤f0′, then the shape parameter m′ and width parameter b′ of the mutated offspring corresponding to the minimum value of fitness f1′ and f2′ are output as the optimal shape parameter m′ and width parameter b′;
[0088] If f1′>f0′ and f2′>f0′, return to step S67 to randomly mutate the genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement;
[0089] S69: until the optimal shape parameter m′ and width parameter b′ are output, the optimization of the shape parameter m′ and the width parameter b′ is completed.
[0090] The beneficial effects of the present invention are as follows: by providing a blade mixing tube with built-in spiral blades and a spiral mixing tube, the fluid entering from the liquid inlet branch pipe is flow mixed, the mixing efficiency is higher, the mixing effect is better, and the control chip and the electronic control component cooperate to adjust the fluid temperature and concentration in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] Figure 1 A three-dimensional schematic diagram of the present invention;
[0092] Figure 2 It is a schematic diagram of the structure of the spiral blade;
[0093] Figure 3 This is the connection diagram of the electronic control components.
[0094] The symbols of the components are as follows:
[0095] Mixing pipeline 1, blade mixing tube 11, spiral blade 111, spiral mixing tube 12, liquid inlet branch pipe 2, electronic control component 3, flow meter 31, control valve 32, solenoid valve 33, temperature sensor 34, control chip 4. DETAILED DESCRIPTION
[0096] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0097] Example:
[0098] like Figure 1-Figure 3As shown, an automatic cutting fluid mixing device comprises a mixing pipeline 1, a liquid inlet branch pipe 2, an electronic control component 3 and a control chip 4; the mixing pipeline 1 is provided with a mixing structure for mixing the cutting fluid entering the mixing pipeline 1; the mixing structure comprises a blade mixing tube 11 and a spiral mixing tube 12, the output end of the blade mixing tube 11 is connected to the input end of the spiral mixing tube 12, the input end of the blade mixing tube 11 serves as the input end of the mixing pipeline 1, and the output end of the spiral mixing tube 12 serves as the output end of the mixing pipeline 1; the blade mixing tube 11 is a straight tube, and a plurality of spiral blades 111 are arranged inside, each spiral blade 111 divides the inside of the blade mixing tube 11 into two symmetrical spaces, and the two adjacent spiral blades 111 are staggered 90° so that the spaces separated by each are crossed; the spiral mixing tube 12 is spiral, and the input end and the output end are respectively provided with straight tubes for connection; the liquid inlet branch pipe 2 is provided with two, the output ends of the two liquid inlet branches 2 are connected to the input end of the blade mixing tube 11; the electronic control component 3 includes a flow meter 31, a control valve 32, a solenoid valve 33, a temperature sensor 34 and a concentration sensor; the flow meter 31 and the control valve 32 are arranged on each liquid inlet branch 2 through a connecting pipe, and the flow meter 31 and the control valve 32 are arranged on each liquid inlet branch 2 in the flow direction of the cutting fluid in sequence, the temperature sensor 34 and the concentration sensor are integrated and arranged on the output end of the spiral mixing tube 12 through a three-way connecting pipe, the solenoid valve 33 is arranged on the output end of the spiral mixing tube 12, and the concentration sensor and the solenoid valve 33 are arranged on the spiral mixing tube 12 in the flow direction of the cutting fluid in sequence; the control chip 4 is connected with the flow meter 31, the control valve 32, the solenoid valve 33, the temperature sensor 34 and the concentration sensor through the wireless communication module to control the electronic control component 3 to achieve the control of the cutting fluid concentration.
[0099] By setting a mixing structure on the mixing pipeline 1, and setting a liquid inlet branch 2 to input the cutting fluid to be mixed, the control chip 4 and the electronic control component 3 cooperate to control the liquid inlet amount of the liquid inlet branch 2 and monitor the concentration and temperature of the mixing pipeline 1, the liquid inlet amount in the liquid inlet branch 2 can be adjusted in real time to achieve real-time adjustment of the concentration, and the temperature of the cutting fluid can also be timely adjusted through the liquid inlet branch 2 to avoid the influence of temperature on the performance of the cutting fluid and improve the lubrication performance of the cutting fluid; by setting a blade mixing tube 11 and a spiral mixing tube 12, the cutting fluid can be mixed midway from entering the mixing pipeline 1 to being discharged from the mixing pipeline 1, thereby improving the mixing ratio efficiency; by setting a spiral blade 111 in the blade mixing tube 11, the blade mixing tube 11 is divided into two symmetrical spaces, and the two spaces are independently liquid-passing, and by staggering adjacent spiral blades 111, the cutting fluids in the two independent spaces are mixed and separated again at the staggered position, and multiple mixing and separation can achieve exponential separation of the fluid, thereby improving the mixing effect.
[0100] A temperature regulation method for regulating the temperature of the cutting fluid in the above-mentioned cutting fluid automatic mixing device comprises the following steps:
[0101] S1. Set the input variables, including the real-time temperature T of the temperature sensor at time t t and set temperature T set , output variables include the valve opening of the control valve on the liquid inlet branch pipe and whether cooling water is introduced;
[0102] S2. According to the real-time temperature T t and set temperature T set Construct fuzzy rules, which include the temperature output function:
[0103]
[0104] Among them, m is the shape parameter of the temperature output function y, b is the width parameter of the temperature output function y, and y is the output function value;
[0105] When T t >T set At +5℃, take b=0.2, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the over-temperature state:
[0106]
[0107] When T set +5℃≥T t ≥T set At +2℃, take b=0.5, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the high temperature state:
[0108]
[0109] When T set +2℃≥T t ≥T set When b=1, m=2, substitute the output function value y into the temperature output function. At this time, the output function value y is used as the temperature control signal of the medium temperature state:
[0110]
[0111] When T t <T set When b=2, m=2, substitute the output function value y into the temperature output function, and the output function value y is used as the temperature control signal of the low temperature state:
[0112]
[0113] S3. Based on fuzzy rules, the real-time temperature T collected at time t is used t and set temperature T set Calculate the corresponding temperature control signal;
[0114] S4. Introduce dynamic weights to adaptively adjust the temperature control signal:
[0115] Define the temperature at the previous moment as T t1 , the current temperature is T t2 , the dynamic weight is w t ;but:
[0116] |δ T |=|T t2 -T t1 |;
[0117]
[0118] Among them, δ T represents the rate of temperature change, T th The threshold value of the temperature change rate, T th =0.5℃ / s; k up is the temperature rise weight factor, k down is the cooling weight factor. In order to make the signal more sensitive to the temperature increase, k is defined up =1.2, k down =0.5;
[0119] Define the temperature control signal output at time t as y now , using the temperature control signal y after dynamic correction at the last moment past , calculate the dynamically corrected temperature control signal y at time t cs :
[0120] y cs =w t ·y now +(1-w t )·y past ;
[0121] The temperature control signal y cs As the final temperature control signal;
[0122] S5. Map the final temperature control signal to the actual opening of the valve, that is, the actual opening of the valve = y cs , according to the actual opening of the valve, the cooling water is controlled to adjust the temperature;
[0123] S6. Optimize the shape parameter m and the width parameter b to minimize the response time of the system, specifically including:
[0124] S61. Set temperature T set , shape parameter m and width parameter b as individuals, T set is a fixed value, and the variation range is set according to the shape parameter m and the width parameter b: b∈(0.1,5), m∈(0.1,5); a certain number of shape parameters m and width parameters b are randomly generated within the variation range to form a set of parameters [(T set ,T set ,...,T set )(m1,m2,...,m n ),(b1,b2,...,b n )] as the initial population, n is the population size; each group of parameters (T set ,m n ,b n ) as an individual;
[0125] S62. Define the response time of the system as fitness, randomly select k individuals from the initial population to establish an individual group, input each individual in the individual group into the temperature output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i , i is the number of the individual in the individual group;
[0126] S63: Get the fitness of k individuals in the individual group {f1,f2,...,f k}, select one of the individuals as the parent according to the fitness:
[0127]
[0128] Among them, i winner Number the individual selected as the parent;
[0129] S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations;
[0130] S65: Uniformly cross-replace the parameters in the two parents to generate new children:
[0131] The two parents obtained are defined as p1 and p2, and the genes in both parents include the set temperature T set , width parameter b and shape parameter m of the temperature output function;
[0132] P1=(T set ,m1,b1),P2=(T set ,m2,b2);
[0133] Among them, m1 is the shape parameter m of the temperature output function in the parent generation p1, b1 is the width parameter b of the temperature output function in the parent generation p1, m2 is the shape parameter m of the temperature output function in the parent generation p2, and b2 is the width parameter b of the temperature output function in the parent generation p2;
[0134] S66: Generate a random mask M of length 3 according to the crossover between genes in the two parents P1 and P2;
[0135] M=(M1,M2,M3);
[0136] The three data values in the random mask M are 0 or 1. When the genes in the two parents P1 and P2 are not cross-replaced, the corresponding data value M I =1, otherwise, M I =0, I is the number of the data value in the random mask M; the specific operation mode of the random mask M is: assuming that the generated random mask is M = (1, 0, 1), according to the mask rule, on the basis of the mask rule, the offspring individual C1 is: C1 = (T set ,m2,b1), the offspring individual C2 is: C2=(T set ,m1,b2);
[0137] If the random mask M = (0, 0, 0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67;
[0138] S67: The genes corresponding to the shape parameter m and the width parameter b in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The mutated offspring are input into the temperature output function to obtain the fitness f1 and f2 of the mutated offspring output;
[0139] S68: Set the ideal value f0 of fitness;
[0140] If f1≤f0 or f2≤f0 exists, the shape parameter m and width parameter b of the mutated offspring corresponding to the minimum value of fitness f1 and f2 are output as the optimal shape parameter m and width parameter b;
[0141] If f1>f0 and f2>f0, then return to step S67, and randomly mutate the genes corresponding to the shape parameter m and the width parameter b in the two offspring after the crossover replacement;
[0142] S69: until the optimal shape parameter m and width parameter b are output, the optimization of the shape parameter m and the width parameter b is completed.
[0143] A concentration adjustment method for adjusting the concentration of cutting fluid in the above-mentioned cutting fluid automatic mixing device comprises the following steps:
[0144] S1. Set the input variable to the real-time concentration C of the concentration sensor at time t. t and set the concentration C set , the output variable is the control signal of "selecting the opening and closing of the solenoid valve";
[0145] S2. According to the real-time concentration C t and set the concentration C set Set the fuzzy rules, which include the concentration output function:
[0146]
[0147] Where m′ is the concentration output function y c shape parameter, b′ is the concentration output function y c The width parameter, y c is the output function value; set the values of m′ and b′ to m′=2, b′=1; if C t =C set , then the solenoid valve is controlled to open; if C t ≠C set , then the solenoid valve is controlled to close;
[0148] S3. For each collected real-time concentration C t and set the concentration C set , through the concentration output function y in step S3 c Calculate the current concentration output function value and apply the fuzzy rule:
[0149] If y c =1, then the output is "control solenoid valve to open"; if y c ≠1, then output "control solenoid valve to open";
[0150] S4 outputs a control signal according to the calculation result in step S4;
[0151] S5. The output control signal is transmitted to the solenoid valve to complete the opening and closing control of the solenoid valve, thereby completing the concentration adjustment;
[0152] S6. Optimize the shape parameter m′ and the width parameter b′ to minimize the response time of the system, specifically including:
[0153] S61. Set the concentration C set , shape parameter m′ and width parameter b′ as individuals, C setis a fixed value, and the variation range is set according to the shape parameter m′ and the width parameter b′: b′∈(0.1,5), m′∈(0.1,5); a certain number of shape parameters m′ and width parameters b′ are randomly generated within the variation range to form a set of parameters [(C set ,C set ,...,C set )(m1′,m′2,...,m′ n′ ),(b1′,b2′,...,b n ″)] as the initial population, n′ is the population size; each group of parameters (C set ,m′ n′ ,b n ″) as an individual;
[0154] S62. Define the response time of the system as fitness, randomly select k′ individuals from the initial population to establish an individual group, input each individual in the individual group into the concentration output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i ″, i′ is the number of the individual in the individual group;
[0155] S63: Get the fitness of k' individuals in the individual group {f1',f2',...,f k ″}, select one of the individuals as the parent according to the fitness:
[0156]
[0157] Among them, i′ winner Number the individual selected as the parent;
[0158] S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations;
[0159] S65: Uniformly cross-replace the parameters in the two parents to generate new children:
[0160] The two parents obtained are defined as p1′ and p′2, and the genes in both parents include the set concentration C set , width parameter b′ and shape parameter m′ of the concentration output function;
[0161] P1=(C set ,m1′,b1′),P2=(C set ,m2′,b2′);
[0162] Among them, m1′ is the shape parameter m′ of the concentration output function in the parent generation p1′, b1′ is the width parameter b′ of the concentration output function in the parent generation p1′, m′2 is the shape parameter m′ of the concentration output function in the parent generation p′2, and b2′ is the width parameter b′ of the concentration output function in the parent generation p′2;
[0163] S66: Generate a random mask M′ of length 3 according to the crossover between genes in the two parents P1′ and P2′;
[0164] M′=(M1′,M2′,M3′);
[0165] The three data values in the random mask M′ are 0 or 1. When the genes in the two parents P1′ and P2′ are not cross-replaced, the corresponding data value M I ″=1, otherwise, M I ″=0, I′ is the number of the data value in the random mask M′;
[0166] If the random mask M′=(0,0,0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67;
[0167] S67: The genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The offspring of the mutated offspring are input into the concentration output function to obtain the fitness f1′, f2′ output by the mutated offspring;
[0168] S68: Set the ideal value f0′ of fitness;
[0169] If there exists f1′≤f0′ or f2′≤f0′, then the shape parameter m′ and width parameter b′ of the mutated offspring corresponding to the minimum value of fitness f1′ and f2′ are output as the optimal shape parameter m′ and width parameter b′;
[0170] If f1′>f0′ and f2′>f0′, return to step S67 to randomly mutate the genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement;
[0171] S69: until the optimal shape parameter m′ and width parameter b′ are output, the optimization of the shape parameter m′ and the width parameter b′ is completed.
Claims
1. A cutting fluid automatic mixing device, characterized in that: include: A mixing pipeline (1) is provided with a mixing structure for mixing the cutting fluid entering the mixing pipeline (1); At least two liquid inlet branch pipes (2) are provided, and the output ends of the plurality of liquid inlet branch pipes (2) are all connected to the input end of the mixing pipeline (1); An electric control component (3) is arranged on the liquid inlet branch pipe (2) and the mixing pipeline (1), and the electric control component (3) is used to monitor the flow rate and on-off of the liquid inlet branch pipe (2) and the concentration and temperature of the output end of the mixing pipeline (1); The control chip (4) is electrically connected to the electronic control component (3) and controls the electronic control component (3) to achieve control of the concentration of the cutting fluid.
2. The cutting fluid automatic mixing device according to claim 1, characterized in that: The mixing structure comprises a blade mixing tube (11) and a spiral mixing tube (12); the output end of the blade mixing tube (11) is connected to the input end of the spiral mixing tube (12); the input end of the blade mixing tube (11) serves as the input end of the mixing pipeline (1); and the output end of the spiral mixing tube (12) serves as the output end of the mixing pipeline (1).
3. The cutting fluid automatic mixing device according to claim 2, characterized in that: The blade mixing tube (11) is a straight tube, and is provided with a plurality of spiral blades (111) inside. Each spiral blade (111) divides the inside of the blade mixing tube (11) into two symmetrical spaces. Two adjacent spiral blades (111) are staggered so that the spaces separated by them intersect.
4. The cutting fluid automatic mixing device according to claim 2, characterized in that: The spiral mixing tube (12) is spiral-shaped, and the input end and the output end are respectively provided with straight tubes for connection.
5. The cutting fluid automatic mixing device according to claim 2, characterized in that: The electronic control component (3) comprises a flow meter (31), a control valve (32), a solenoid valve (33), a temperature sensor (34) and a concentration sensor; the flow meter (31) and the control valve (32) are both arranged on each of the liquid inlet branches (2) through a connecting pipe, and the flow meter (31) and the control valve (32) are arranged in sequence on each of the liquid inlet branches (2) along the flow direction of the cutting fluid; the temperature sensor (34) and the concentration sensor are integrated and arranged on the output end of the spiral mixing tube (12) through a three-way connecting pipe; the solenoid valve (33) is arranged on the output end of the spiral mixing tube (12), and the concentration sensor and the solenoid valve (33) are arranged in sequence on the spiral mixing tube (12) along the flow direction of the cutting fluid.
6. The automatic cutting fluid mixing device according to claim 4, characterized in that: The control chip (4) is connected to the flow meter (31), the control valve (32), the solenoid valve (33), the temperature sensor (34), and the concentration sensor via a wireless communication module.
7. A temperature regulating method for regulating the temperature of the cutting fluid in the cutting fluid automatic mixing device according to any one of claims 1 to 6, characterized in that: The steps include: S1. Set the input variables, including the real-time temperature T of the temperature sensor at time t t and set temperature T set , output variables include the valve opening of the control valve on the liquid inlet branch pipe and whether cooling water is introduced; S2. According to the real-time temperature T t and set temperature T set Construct fuzzy rules, which include the temperature output function: Among them, m is the shape parameter of the temperature output function y, b is the width parameter of the temperature output function y, and y is the output function value; When T t >T set At +5℃, take b=0.2, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the over-temperature state: When T set +5℃≥T t ≥T set At +2℃, take b=0.5, m=2, substitute into the temperature output function to output the function value y. At this time, the output function value y is used as the temperature control signal of the high temperature state: When T set +2℃≥T t ≥T set When b=1, m=2, substitute the output function value y into the temperature output function. At this time, the output function value y is used as the temperature control signal of the medium temperature state: When T t <T set When b=2, m=2, substitute the output function value y into the temperature output function, and the output function value y is used as the temperature control signal of the low temperature state: S3. Based on fuzzy rules, the real-time temperature T collected at time t is used t and set temperature T set Calculate the corresponding temperature control signal; S4. Introduce dynamic weights to adaptively adjust the temperature control signal: Define the temperature at the previous moment as T t1 , the current temperature is T t2 , the dynamic weight is w t ;but: |δ T |=|T t2 -T t1 |; Among them, δ T represents the rate of temperature change, T th The threshold value of the temperature change rate, T th =0.5℃ / s; k up is the temperature rise weight factor, k down is the cooling weight factor. In order to make the signal more sensitive to the temperature increase, k is defined up =1.2, k down =0.5; Define the temperature control signal output at time t as y now , using the temperature control signal y after dynamic correction at the last moment past , calculate the dynamically corrected temperature control signal y at time t cs : y cs =w t ·y now +(1-w t )·y past ; The temperature control signal y cs As the final temperature control signal; S5. Map the final temperature control signal to the actual opening of the valve, that is, the actual opening of the valve = y cs , according to the actual opening of the valve, the cooling water is controlled to adjust the temperature; S6. Optimize the shape parameter m and the width parameter b to minimize the response time of the system, specifically including: S61. Set temperature T set , shape parameter m and width parameter b as individuals, T set is a fixed value, and the variation range is set according to the shape parameter m and the width parameter b: b∈(0.1,5), m∈(0.1,5); a certain number of shape parameters m and width parameters b are randomly generated within the variation range to form a set of parameters [(T set ,T set ,...,T set )(m1,m2,...,m n ),(b1,b2,...,b n )] as the initial population, n is the population size; each group of parameters (T set ,m n ,b n ) as an individual; S62. Define the response time of the system as fitness, randomly select k individuals from the initial population to establish an individual group, input each individual in the individual group into the temperature output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i , i is the number of the individual in the individual group; S63: Get the fitness of k individuals in the individual group {f1,f2,...,f k }, select one of the individuals as the parent according to the fitness: Among them, i winner Number the individual selected as the parent; S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations; S65: Uniformly cross-replace the parameters in the two parents to generate new children: The two parents obtained are defined as p1 and p2, and the genes in both parents include the set temperature T set , width parameter b and shape parameter m of the temperature output function; P1=(T set ,m1,b1),P2=(T set ,m2,b2); Among them, m1 is the shape parameter m of the temperature output function in the parent generation p1, b1 is the width parameter b of the temperature output function in the parent generation p1, m2 is the shape parameter m of the temperature output function in the parent generation p2, and b2 is the width parameter b of the temperature output function in the parent generation p2; S66: Generate a random mask M of length 3 according to the crossover between genes in the two parents P1 and P2; M=(M1,M2,M3); The three data values in the random mask M are 0 or 1. When the genes in the two parents P1 and P2 are not cross-replaced, the corresponding data value M I =1, otherwise, M I =0, I is the number of the data value in the random mask M; If the random mask M = (0, 0, 0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67; S67: The genes corresponding to the shape parameter m and the width parameter b in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The mutated offspring are input into the temperature output function to obtain the fitness f1 and f2 of the mutated offspring output; S68: Set the ideal value f0 of fitness; If f1≤f0 or f2≤f0 exists, the shape parameter m and width parameter b of the mutated offspring corresponding to the minimum value of fitness f1 and f2 are output as the optimal shape parameter m and width parameter b; If f1>f0 and f2>f0, then return to step S67, and randomly mutate the genes corresponding to the shape parameter m and the width parameter b in the two offspring after the crossover replacement; S69: until the optimal shape parameter m and width parameter b are output, the optimization of the shape parameter m and the width parameter b is completed.
8. A concentration adjustment method for adjusting the concentration of cutting fluid in the cutting fluid automatic mixing device according to any one of claims 1 to 6, characterized in that: The steps include: S1. Set the input variable to the real-time concentration C of the concentration sensor at time t. t and set the concentration C set , the output variable is the control signal of "selecting the opening and closing of the solenoid valve"; S2. According to the real-time concentration C t and set the concentration C set Set the fuzzy rules, which include the concentration output function: Where m′ is the concentration output function y c shape parameter, b′ is the concentration output function y c The width parameter, y c is the output function value; set the values of m′ and b′ to m′=2, b′=1; if C t =C set , then the solenoid valve is controlled to open; if C t ≠C set , then the solenoid valve is controlled to close; S3. For each collected real-time concentration C t and set the concentration C set , through the concentration output function y in step S3 c Calculate the current concentration output function value and apply the fuzzy rule: If y c =1, then the output is "control solenoid valve to open"; if y c ≠1, then output "control solenoid valve to open"; S4 outputs a control signal according to the calculation result in step S4; S5. The output control signal is transmitted to the solenoid valve to complete the opening and closing control of the solenoid valve, thereby completing the concentration adjustment; S6. Optimize the shape parameter m′ and the width parameter b′ to minimize the response time of the system, specifically including: S61. Set the concentration C set , shape parameter m′ and width parameter b′ as individuals, C set is a fixed value, and the variation range is set according to the shape parameter m′ and the width parameter b′: b′∈(0.1,5), m′∈(0.1,5); a certain number of shape parameters m′ and width parameters b′ are randomly generated within the variation range to form a set of parameters [(C set ,C set ,...,C set )(m1′,m′2,...,m′ n′ ),(b1′,b2′,...,b n ″)] as the initial population, n′ is the population size; each group of parameters (C set ,m′ n′ ,b n ″) as an individual; S62. Define the response time of the system as fitness, randomly select k′ individuals from the initial population to establish an individual group, input each individual in the individual group into the concentration output function, execute steps S1-S5, record the response time of the system, and obtain the fitness f corresponding to each individual in the individual group i″ , i′ is the number of the individual in the individual group; S63: Get the fitness of k' individuals in the individual group {f1',f2',...,f k ″}, select one of the individuals as the parent according to the fitness: Among them, i′ winner Number the individual selected as the parent; S64: Return to step S62-S63, re-select an individual group from the initial population, and select another individual as a parent generation, thereby obtaining two parent generations; S65: Uniformly cross-replace the parameters in the two parents to generate new children: The two parents obtained are defined as p1′ and p′2, and the genes in both parents include the set concentration C set , width parameter b′ and shape parameter m′ of the concentration output function; P1=(C set ,m1′,b1′),P2=(C set ,m2′,b2′); Among them, m1′ is the shape parameter m′ of the concentration output function in the parent generation p1′, b1′ is the width parameter b′ of the concentration output function in the parent generation p1′, m′2 is the shape parameter m′ of the concentration output function in the parent generation p′2, and b2′ is the width parameter b′ of the concentration output function in the parent generation p′2; S66: Generate a random mask M′ of length 3 according to the crossover between genes in the two parents P1′ and P2′; M′=(M1′,M2′,M3′); The three data values in the random mask M′ are 0 or 1. When the genes in the two parents P1′ and P2′ are not cross-replaced, the corresponding data value M I ″=1, otherwise, M I ″=0, I′ is the number of the data value in the random mask M′; If the random mask M′=(0,0,0), return to step S65 and perform cross replacement again; otherwise, obtain two cross-replaced offspring and execute step S67; S67: The genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement are randomly mutated with a mutation rate of 0.1 to obtain the mutated offspring. The offspring of the mutated offspring are input into the concentration output function to obtain the fitness f1′, f2′ output by the mutated offspring; S68: Set the ideal value f0′ of fitness; If there exists f1′≤f0′ or f2′≤f0′, then the shape parameter m′ and width parameter b′ of the mutated offspring corresponding to the minimum value of fitness f1′ and f2′ are output as the optimal shape parameter m′ and width parameter b′; If f1′>f0′ and f2′>f0′, return to step S67 to randomly mutate the genes corresponding to the shape parameter m′ and the width parameter b′ in the two offspring after crossover replacement; S69: until the optimal shape parameter m′ and width parameter b′ are output, the optimization of the shape parameter m′ and the width parameter b′ is completed.