The present disclosure takes the Chinese Patent Application No. 201910087195.0, filed on Jan. 29, 2019, and entitled “a system and a method for acquiring an inherent energy efficiency factor function of a computerized numerically controlled machine tool”, as the priority, the entire contents of which are incorporated herein by reference.
The disclosure relates to the field of mechanical processing technology, especially a system and a method for acquiring an inherent energy efficiency factor function of a computerized numerically controlled (CNC) machine tool.
CNC machine tool is a typical equipment in manufacturing system. Due to a large amount of CNC machine tools, huge total energy consumption, but low energy efficiency nor attention, how to improve the energy efficiency of CNC machine tool is rising rapidly in the world. In recent years, we have found that the fundamental reason for the different energy efficiency of different CNC machine tools is that their inherent energy efficiency factors are different. Moreover, the inherent energy efficiency factor is generated in the design and formation stage of CNC machine tool and acts on its service stage. Therefore, how to optimize the inherent energy efficiency factors of the CNC machine tool in the design and formation stage has become a research focus on improving the energy efficiency of the CNC machine tool. At the same time, it is urgent to systematically obtain the inherent energy efficiency factors of the CNC machine tool to provide support for the improvement of the energy efficiency of the CNC machine tool.
In recent years, researchers have done a lot of research on the energy consumption of the spindle system and feed shaft system which is the main body of the energy consumption of CNC machine tool. Studies in the literature “Lv, J., et al., Experimental study on energy consumption of computer CNC machine tool. Journal of Cleaner Production, 2016.112: p. 3864-3874.” and literature “Rief, M., B. Karpuschewski, and E. Kalhöfer, Evaluation and modeling of the energy demand during machining. CIRP Journal of Manufacturing Science and Technology, 2017. 19: p. 62-71” indicate that the spindle systems of different machine tools have different idling energy consumption characteristics; In particular, the idling power of many spindles is a piecewise quadratic curve with spindle speed. The disclosure patent “A method for obtaining non-cutting energy consumption of the main drive system of a numerical control lathe” (ZL201210240326.2) discloses a method for calculating the power and energy consumption values of the spindle idling and spindle acceleration; This method needs to carry out many experiments to obtain the idling power of the main drive system inverter and the main shaft motor, the friction torque of the main shaft, the rotational inertia of the main drive system and the anglar acceleration of the main shaft, and the one-dimensional linear regression analysis is used to establish the idling power function of the main shaft. The disclosure patent “Acquirement and Energy Saving Control Method of Spindle Speeding up Power and Energy Consumption of CNC Machine Tool’ (ZL2014100958720) discloses a method to obtain spindle speeding up power and energy consumption of CNC machine tool; This method needs to measure and record the spindle rotation power and energy consumption for many times, and needs to draw the power-speed curve of the experiment manually. By observing the curve slope changes to determine the piecewise points of the piecewise linear regression analysis. The disclosure patent “The acquisition and control method of power and energy consumption of CNC machine tool in rapid feed&return stage” (ZL201410083510X) published a method to calculate the energy consumption of in rapid feed&return stage according to the parameters of feed motion power, feed acceleration, feed deceleration, feed critical distance and feed distance.
This method needs to detect and record the feed motion power many times to establish the relationship between feed motion power and feed speed. The disclosure patent ‘The acquisition and energy-saving control method of power and energy consumption of CNC machine tool in drilling process’ (2017112859823) published a prediction method of power and energy consumption of machine tool drilling based on machine standby power, jet cutting fluid power, spindle rotation power, and Z-axis feed power; This method needs to repeatedly detect and record the spindle rotation power and Z-axis feed power, and then uses the linear regression to fit the spindle rotation power, and uses the quadratic polynomial to fit the Z-axis feed power. The disclosure patent ‘accurate prediction method of energy consumption for automatic tool change of multi-station rotary tool holder of CNC lathe’ (2018100249991) published a prediction method of energy consumption for automatic tool change of CNC lathe; This method needs to measure and record tool changing time many times to establish the prediction model of automatic tool changing time.
In summary, due to difficulties in the detection process of the inherent energy efficiency factors, the existing technology has the following problems:
(1) Incomplete detection data. The existing detection methods focus on the power and energy consumption of the machine tool spindle system and feed shaft system, and the inherent energy efficiency factors of the CNC machine tool, comprising the standby power function of the CNC machine tool, the auxiliary system power function of the CNC machine tool, the energy consumption function and the starting time function of the spindle system in the starting process, the power function of the spindle system in the empty operation process, the power function of the feed shaft system in the cutting process, the energy consumption function and the time function of the feed shaft system in the fast feed tool withdrawal process, the energy consumption function and the time function of the workpiece automatic loading and unloading system, and the energy consumption function and the time function of the automatic tool changing system. Therefore, the existing detection methods lack the systematic and comprehensive measurement of the inherent energy efficiency factors of the CNC machine tool from the overall perspective.
(2) Data processing is complicated. The existing detection methods need to be measured and recorded manually many times, which is cumbersome to operate and difficult to promote.
(3) Single fitting model. Existing detection methods focus on the use of linear regression fitting spindle idling power, and quadratic polynomial fitting feed shaft power; However, the existing theoretical research and actual measurement results show that: different spindle system and feed shaft system, there are often different power requirements; Simple linear regression or quadratic polynomial fitting cannot meet the requirements.
Because of the shortcomings of the above existing technology, the disclosure provides a system for acquiring an inherent energy efficiency factor function of a computerized numerically controlled (CNC) machine tool, the system can automatically generate the NC code required to obtain the inherent energy efficiency factors of CNC machine tool, and can adaptively select the fitting function type for different CNC machine tool, and establish the inherent energy efficiency factor function of CNC machine tool and its energy consumption subsystem.
To solve the above technical problems, the technical scheme of the disclosure is as follows: a system for acquiring an inherent energy efficiency factor function of a CNC machine tool, wherein the CNC machine tool includes the following energy consumption subsystem: a numerical control system, a spindle system, a feed shaft system, an automatic tool changing system and an auxiliary system; the system comprises an equipment information management module, a test parameter setting module, an NC code generation module, a field test management module, a data analysis module, and power sensors used to obtain the running power data of the CNC machine tool to be tested;
equipment information management module is used to input basic information, spindle system information, feed shaft system information, automatic tool automatic tool changing system information, and auxiliary system information of CNC machine tool to be tested;
the test parameter setting module is used to set the test parameters comprising the state-running duration to, the state switching flag time td, the state-switching-delay duration tdc, the number of test samples Ntr, and the initial distance dI-o of the feed shaft;
the NC code generation module is used to generate NC code to control the operation of NC machine tool to be tested according to the test parameters and the basic information of NC machine tool to be tested, spindle system information, feed shaft system information, tool automatic tool changing system information, and auxiliary system information, the NC code includes the NC code used to control the operation of the spindle system during the test procedure, the NC code used to control the operation of the feed shaft system during the test procedure, the NC code used to control the operation of the automatic tool changing system during the test procedure, and the NC code used to control the operation of the auxiliary system during the test procedure;
the field test management module is used to set the power sensors parameters, read the power data information of the power sensors, parse the power data information of the power sensors, and generate the power set;
the data analysis module is used to generate the inherent energy efficiency factor function of each energy consumption subsystem according to the power set of the CNC machine tool to be tested during the test operation, and generate the inherent energy efficiency factor function of each operation stage of the NC machine tool according to the inherent energy efficiency factor function of each energy consumption subsystem.
Optionally, the basic information includes machine tool type, machine tool model, and CNC system type, The information of spindle system includes the maximum speed nS-max, the minimum speed nS-min, the rated speed nS-r, the interval ΔS-n-u above the rated speed, and the interval ΔS-n-l below the rated speed. The information of feed shaft system includes the fast feed speed fvI-max in the direction of the I axis, the axial stroke dI, and the highest cutting feed speed cvI-max, the subscript I∈[X, Y, Z], X, Y, Z respectively represent the X-axis, Y-axis, and Z-axis of the machine tool, The information of automatic tool automatic tool changing system includes the number of tool positions Nt, the information of auxiliary system includes the total number of auxiliary systems controlled by CNC system NAu, the name of each auxiliary system and the control code of each auxiliary system.
Optionally, the NC code used to control the operation of the spindle system in the test process includes the spindle start speed setting code, The total number of spindle speed tests is 2Ntr, and the i-th spindle speed nsS-tr[i] is set as follows:
where └ ┘ denotes the integer operation;
the NC code used to control the operation of the feed shaft system during the test includes the rapid feed&return distance setting code, among them, the total number of rapid feed&return distance test is Ntr, and set the i-th rapid feed&return distance dI-tr[i] according to the following formula:
where 1≤i≤Ntr, dI is the axial stroke of the feed shaft in the direction of I axis, dI-o is the initial distance of the feed shaft in the direction of I axis;
the NC code used to control the feed shaft system during testing also includes cutting feed rate setting code, Among them, the total number of cutting feed rate test is Ntr, and according to the following formula to set the i-th cutting feed rate cvI-tr[i]:
where 1≤i≤Ntr, The subscript I∈[X, Y, Z], and X, Y, Z represent the X-axis, Y-axis, and Z-axis of the machine tool, respectively, cvI-max represents the maximum cutting speed in the direction of I axis.
Optionally, the power set generated by the field test management module according to the power data information collected by the power sensors in the test experiment of CNC machine tool includes: the input power set D of CNC machine tool in the process of power supply opening; the input power set DSC of CNC machine tool in the process of CNC system operation; The input power set DAu-i, 1≤i≤NAU of CNC machine tool in the operation process of the i-th (ith) auxiliary system; The input power set DPS-i, 1≤i≤2Ntr of CNC machine tool in the starting process of the i-th spindle speed; The input power set DUS-i, 1≤i≤2Ntr of CNC machine tool in the i-th spindle speed empty operation process; The input power set DI-PF-i, I∈[X, Y, Z], 1≤i≤Ntr, of CNC machine tool in the rapid feed&return process of feed shaft I with the i-th rapid feed&return distance; The input power set DI-UF-i, I∈[X, Y, Z], 1≤i≤Ntr, of CNC machine tool cutting feed process at the i-th cutting feed rate in feed shaft I; The input power set DPT-n
Optionally, a discrete modeling method is used in the data analysis module to establish the discrete function of the inherent energy efficiency factors of each energy consumption subsystem of CNC machine tool, comprises the following steps:
step 2.1: calculating a power mean
wherein D represents the power set, Pk represents a k-th element in the power set D, ND represents the number of elements in the power set D, and fs represents a sampling frequency of the power sensors;
step 2.2: setting up the inherent energy efficiency factor discrete function of each energy consumption subsystem of the CNC machine tool:
wherein a power consumption PSP of the CNC machine tool in a power supply opening process:
P
SP=
and
a power consumption of a control system of the CNC machine tool PCs:
P
Cs=
and
a power consumption of the auxiliary system PAu-i:
P
Au-i=
and
a discrete function of startup time and energy consumption of the spindle system is CS-PS:
and n represents a spindle speed and is an independent variable; both tS-PS and ES-PS are dependent variables, which are a starting time of the spindle system and an energy consumption of the spindle system. the tS-PS[i] is a running time of the power set DPS-i in the starting process of the CNC machine tool in the start-up process of the i-th spindle speed, 1≤i≤2Ntr,
a calculation formula of ES-PS[i] is as follows:
E
S-PS[i]=Ein-PS[i]−
and ES-PS[i] is the set energy consumption of the power set DPS-i of the CNC machine tool in a start-up process of an i-th spindle speed, 1≤i≤2Ntr,
an idling power discrete function of the spindle system in a process of air operation CS-US:
and n represents the spindle speed and is the independent variable; PS-US represents a power function of a spindle system in an air operation process as a dependent variable,
a calculation power formula of PS-US[i] is as follows:
P
S-US[i]=
and
a discrete function CI-PF of a rapid feed&return time and an energy consumption of the rapid feed&return of the feed shaft system of the CNC machine tool is:
and the subscripts I∈[X, Y, Z], X, Y, Z represent the X axis, the Y axis and the Z axis of the machine tool respectively, dI-tr represents a rapid feed&return distance and is an independent variable, tI-PP and EI-PF are dependent variables, tI-PF means a rapid feed&return time, EI-PF means a rapid feed&return energy consumption, tI-PF[i] is a running time of a feed axis I in the power set DI-PF-i of the CNC machine tool in a process of an i-th rapid feed&return distance in the feed shaft I, 1≤i≤Ntr,
a calculation formula of EI-FF[i] is as follows:
E
I-FF[i]=Ein-I-PF[i]−
and Ein-I-PF[i] is a set energy consumption of the power set DI-PF-i of the CNC machine tool in a process of an i-th rapid feed&return distance in the feed shaft I, I∈[X, Y, Z], 1≤i≤Ntr,
a discrete function CI-UF of feed power in a cutting feed operation process of the feed shaft system is:
and the subscripts I∈[X, Y, Z], X, Y, Z represent the X axis, the Y axis and the Z axis of the machine tool respectively, cvI-tr represents a cutting feed rate of I axis, which is an independent variable, PI-UF represents a feed power of I-axis cutting and is a dependent variable,
a calculation formula of PI-UF[i] is as follows:
P
I-UF[i]=
and Pin-I-UF[i] is a mean power of the power set DI-UF-i of the CNC machine tool in the feed axis I cutting the feed process at the i-th cutting speed, I∈[X, Y, Z], 1≤i≤Ntr,
a discrete function CPT of a tool changing time and energy consumption of the automatic tool changing system during a tool changing operation is:
and nt represents a tool change position and is an independent variable, tPT and EPT are dependent variables, tPT means a tool change time, EPT means a tool change energy consumption of the tool changing system, tPT[nt] is a running time for the power set DPT-nt of the CNC machine tool in a process of changing an nt-th tool position by the automatic tool changing system,
a calculation formula of EPT[nt] is as follows:
E
PT[nt]=Ein-PT[nt]−
and Ein-PT[nt] is a set energy consumption of the power set DPT-n
Optionally, based on discrete modeling, the data analysis module uses the adaptive fitting modeling method to establish the fitting function of the inherent energy efficiency factors of each energy consumption subsystem of CNC machine tool, comprises the following steps:
step 2.3: regarding the inherent energy efficiency factor discrete function of each energy consumption subsystem of the CNC machine tool established by the discrete modeling method as a data set for fitting, and dividing the data set into a training set and a test set by a cross-validation method in machine learning;
step 2.4: fitting a first fitting function and a second fitting function by a least square method according to the training set;
step 2.5: by the test set, calculating errors of the first fitting function and the second fitting function according to an error function;
step 2.6: If the error of the first fitting function is less than the error of the second fitting function, selecting the first fitting function as the inherent energy efficiency factor function, otherwise, selecting the second fitting function as the inherent energy efficiency factor function;
therefore, establishing following fitting functions of each energy consumption subsystem:
the spindle system of CNC machine tool: a fitting function of a starting time length tS-PS(n), a fitting function of a starting energy consumption ES-PS(n) and a fitting function of an air operation power PS-US(n) which are with the spindle speed n as the independent variable respectively;
the feed shaft system of CNC machine tool: a rapid feed&return time fitting function tI-PF(dI) which is with a rapid feed&return distance dI as an independent variable, a rapid feed&return energy consumption fitting function EI-PF(dI) which is with the rapid feed&return distance dI as the independent variable, a cutting feed power fitting function PI-UF(cvI) with a cutting feed rate cvI as a independent variable, and the subscript I∈[X, Y, Z], X, Y, Z represent the X axis, the Y axis and the Z axis of the machine tool respectively;
the automatic tool changing system: a tool change time fitting function tPT(nt) and a tool change energy consumption fitting function EPT(nt) which are with the tool change position nt as an independent variable.
Optionally, the inherent energy efficiency factor functions of CNC machine tool include the power function Pin-S(sCs) of CNC machine tool in standby stage, the power function Pin_PA(sAu_t) of CNC machine tool in auxiliary system opening stage, the energy consumption function Ein-PS(n, sAu-i) of CNC machine tool in spindle system starting stage, the energy consumption function Ein-PF(d, sAu-t) of CNC machine tool in rapid feed&return stage, the energy consumption function Ein-PT(nt, sAu-i) of CNC machine tool in automatic tool changing stage, and the power function Pin-U (n, cvI, sAu-t) of CNC machine tool in the idling stage, specific expressions are as follows:
the power function Pin-S(sCs) of CNC machine tool in the standby stage:
P
in-S(sCs)=PSP+sCsPCs;
and PSP represents a power consumption when a CNC machine tool power is turned on, and PCs represents a new power consumption when the CNC machine tool power is turned on, sCs means a state of the CNC system, sCs=0 means the state of the CNC system is closed, sCs=1 means the state of the CNC system is open;
the power function of the CNC machine tool in an opening stage of the auxiliary system Pin-PA(sAu-i):
P
in-PA(sAu-i)=PS+ΣsAu-iPAu-i,
PS represents a standby power of CNC machine tool, PS=Pin-S(sCs=1); PAu-i means a new machine tool power consumption when a first auxiliary system is opened, 1≤i≤NAu; sAu-i represents a state of the i-th auxiliary system, 1≤i≤NAu, sAu-i=0 represents a closed state of the i-th auxiliary system, and sAu-i=1 represents an open state of the i-th auxiliary system;
the energy consumption function Ein-PS(n,sAu-i) of CNC machine tool in the starting stage of the spindle system:
E
in-PF(dI,sAu-i)=(PS+ΣsAu-IPAu-t)tS-PS(n)+ES-PS(n),
and n denotes the spindle speed, tS-PS(n) and ES-PS(n) are a starting time function and an energy consumption function of the spindle system, respectively;
the energy consumption function Ein-PF(dI,sAu-i) of CNC machine tool in the rapid feed&return stage:
E
in-PF(dI,sAu-i)=(PS+ΣsAu-iPAu-i)ΣtI-PF(dI)+ΣEI-PF(dI),
and tPT(nt) and EPT(nt) represent the rapid feed&return time fitting function, the rapid feed&return energy consumption fitting function of I axis respectively;
the energy consumption function Ein-PT(nt,sAu-i) of CNC machine tool in the automatic tool change stage:
E
in-PT(nt,sAu-i)=(PS+ΣsAu-iPAu-i)tPT(nt)+EPT(nt),
and nt represents the number of cutter positions that need to be rotated during automatic tool change; tPT(nt) and EPT(nt) represents the tool change time fitting function and the tool change energy consumption fitting function of the automatic tool changing system respectively;
the power function Pin-U(n,cvI,sAu-i) in the idling stage of the CNC machine tool:
P
in-U(n,cvI,sAu-i)=PS+PS-US(n)+ΣsAu-iPAu-i+ΣPI-UF(cvI),
Where PS-US(n) represents the a fitting function of an air operation power of the spindle system; cvI represents the feed rate and PI-UF(cvI) represents the a cutting feed power fitting function of the I axis.
Optionally, a validity verification module for verifying the validity of the inherent energy efficiency factor function is also included. The validity verification module judges whether the inherent energy efficiency factor function is valid according to the error between the verification value and the predicted value;
the verification value is obtained by the verification experiment, and the predicted value is calculated by the data analysis module according to the operation conditions of the verification experiment and the inherent energy efficiency factor function of the CNC machine tool in each operation stage;
for verification experiments, the NC code generation module and field test management are improved as follows:
the NC code generation module is also used to generate the verification experiment NC code for verification experiment according to the test parameters, the basic information, the spindle system information, the feed shaft system information, the tool automatic tool changing system information and the auxiliary system information of the NC machine tool to be tested. The verification experiment NC code for verification experiment includes the NC code for controlling the operation of the auxiliary system in the verification experiment, the NC code for controlling the spindle system to start and run at the specified speed nS-V in the verification experiment, the NC code for controlling the feed shaft system to run at the specified rapid feed&return distance dI-V and the specified cutting feed speed cvI-V in the verification experiment, and the NC code for controlling the automatic tool changing system to run at the specified tool position nt-V in the verification experiment;
the power set generated by the field test management module according to the power data information collected by the power sensors in the verification experiment of the CNC machine tool includes: the input power set DSC-V of the CNC machine tool in the operation process of the numerical control system, the input power set DAu-V of the CNC machine tool in the whole operation process of the auxiliary system, the input power set DPS-V of the CNC machine tool in the spindle system according to the specified speed nS-V the input power set DUS-V of the CNC machine tool in the spindle system according to the specified speed nS-V the input power set DI-PF-V of the CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the process of the specified rapid feed&return distance dI-V and the input power set DI-UF-V of the CNC machine tool in the automatic tool.
The disclosure also provides a method for obtaining an inherent energy efficiency factor of a CNC machine tool, adopts the inherent energy efficiency factor function acquisition system of the CNC machine tool, establishes the inherent energy efficiency factor function of each energy consumption subsystem and the inherent energy efficiency factor function of each operation stage of the CNC machine tool, and calculates the inherent energy efficiency factor of the CNC machine tool in different operation stages according to the inherent energy efficiency factor function of the CNC machine tool, which includes the following steps:
step A1: equipment information management module inputting basic information, active system information, and auxiliary system information of the CNC machine tool to be tested;
step A2: setting test parameters in a test parameter setting module, wherein the test parameters comprise: a state-running duration to, a state switching flag time td, a state-switching-delay duration tdc, the number of test samples Ntr and an initial distance of a feed shaft dI-o;
step A3: generating NC codes of a test experiment in a NC code generation module according to the test parameters in step A2, the basic information, the spindle system information, the feed shaft system information, the tool automatic tool changing system information, and the auxiliary system information of the CNC machine tool in step A1;
step A4: setting power sensors parameters in a field test module, and inputting the NC codes of the test experiment into a CNC system of the CNC machine tool to be tested;
step A5: the CNC machine tool running the NC codes of the test experiment and controlling the CNC machine tool to be tested to run according to the NC codes of the test experiment, at the same time, collecting power data information of each energy consumption subsystem in the test experiment of the CNC machine tool to be tested by the power sensors installed on the CNC machine tool to be tested, generating a power set of each energy consumption subsystem in the test experiment by the field test management module according to the power data information collected by the power sensors;
step A6: a data analysis module establishing the inherent energy efficiency factor function of each energy consumption subsystem according to the power set in step A5;
step A7: the data analysis module establishing the inherent energy efficiency factor function of CNC machine tool in each operation stage according to the inherent energy efficiency factor function of each energy consumption subsystem in step A6;
step A8: according to the inherent energy efficiency factor function of CNC machine tool in each operation stage and operating conditions of CNC machine tool, calculating inherent energy efficiency factors in each operation stage of CNC machine tool.
The disclosure also provides another method for obtaining the inherent energy efficiency factors of CNC machine tool, adopts the system for acquiring inherent energy efficiency factor function of CNC machine tool, establishes the inherent energy efficiency factor function of each energy consumption subsystem and the inherent energy efficiency factor function of each operation stage of CNC machine tool, and calculates the inherent energy efficiency factors of CNC machine tool in different operation stages according to the inherent energy efficiency factor function of CNC machine tool, which includes the following steps:
step B1: equipment information management module inputting basic information, active system information, and auxiliary system information of the CNC machine tool to be tested;
step B2: setting test parameters in a test parameter setting module, wherein the test parameters comprise: a state-running duration to, a state switching flag time td, a state-switching-delay duration tdc, the number of test samples Ntr and an initial distance of a feed shaft dI-o;
step B3: generating NC codes of a test experiment and NC codes of a verification experiment in a NC code generation module according to the test parameters in step B2, the basic information, the spindle system information, the feed shaft system information, the tool automatic tool changing system information, and the auxiliary system information of the CNC machine tool in step B1;
step B4: setting power sensors parameters in a field test module, and inputting the NC codes of the test experiment and the NC codes of the verification experiment into a CNC system of the CNC machine tool to be tested;
step B5: the CNC machine tool running the NC codes of the test experiment and controlling the CNC machine tool to be tested to run according to the NC codes of the test experiment, at the same time, collecting power data information of each energy consumption subsystem in the test experiment of the CNC machine tool to be tested by the power sensors installed on the CNC machine tool to be tested, generating a power set of each energy consumption subsystem in the test experiment by the field test management module according to the power data information collected by the power sensors;
step B6: the CNC machine tool running the NC codes of the verification experiment and controlling the CNC machine tool to be tested to run according to the NC codes of the verification experiment, at the same time, collecting power data information of each energy consumption subsystem in the test experiment of the CNC machine tool to be tested by the power sensors installed on the CNC machine tool to be tested, generating a power set of each energy consumption subsystem in the verification experiment by the field test management module according to the power data information collected by the power sensors;
step B7: a data analysis module establishing the inherent energy efficiency factor function of each energy consumption subsystem according to the power set of the test experiment in step B5;
step B8: the data analysis module establishing the inherent energy efficiency factor function of CNC machine tool in each operation stage according to the inherent energy efficiency factor function of each energy consumption subsystem in step A6;
step B9: a validity verification module carrying out a validity verification of the inherent energy efficiency factor function of the CNC machine tool generated by the data analysis module, if the inherent energy efficiency factor function passes the validity verification, Entering step B10. if the inherent energy efficiency factor function fails to pass the validity verification, repeating steps B1 to B9, if still fail to pass the validity verification, contact technical personnel to eliminate the problem;
step B10: according to the inherent energy efficiency factor function of CNC machine tool in each operation stage and operating conditions of CNC machine tool, calculating inherent energy efficiency factors in each operation stage of CNC machine tool.
Compared with the prior art, the present disclosure has the following beneficial effects:
1. The disclosure is a set of experimental design, experimental implementation, and data acquisition and analysis integration system for obtaining the inherent energy efficiency factor function of CNC machine tool; The system can systematically and comprehensively detect and obtain the power function of CNC machine tool in standby stage, auxiliary system operation stage, energy consumption function and start-up time function in start-up stage, energy consumption function and time function in rapid feed&return stage, energy consumption function and time function in automatic tool changing stage and power function in the idling stage; The system of inherent energy efficiency factors obtained by testing is comprehensive, which helps the producer to understand the energy consumption of CNC machine tool and make energy-saving plans.
2. The disclosure can directly generate detection NC code and detection steps by filling in the basic information of CNC machine tool and detection parameters information; On-site testing only need to carry out experiments following the detection steps, and use sensors to measure the input power of CNC machine tool; After obtaining the test data, the software system automatically analyzes and processes the data to obtain the inherent energy efficiency factor function; The disclosure does not require manual design experiment and manual processing experiment data, has good operability, is easy to expand, and is convenient and practical.
3. The self-adaptive modeling method is adopted in the disclosure system, which has higher accuracy than the traditional fixed-function modeling method.
4. The inherent energy efficiency factor function of CNC machine tool obtained by the disclosure can provide technical support for the energy efficiency evaluation of new machine tools and the energy efficiency improvement of old machine tools, and has broad disclosure prospects.
Step 1: The equipment information management module inputs the basic information, the spindle system information, the feed shaft system information, the automatic tool automatic tool changing system information, and the auxiliary system information of the CNC machine tool to be tested, as follows:
Step 2: Set the test parameters in the test parameter setting module, comprising the following test parameters: state-running duration to, state switching flag time td, state-switching-delay duration tdc, the number of test samples Ntr, and the initial distance of feed shaft dI-o; As shown in Table 6:
Step 3: According to the test parameters in Step 2 and the basic information, active power system information, and auxiliary system information of CNC machine tool in Step 1, the NC code of the test experiment and the NC code of the verification experiment are generated in the NC code generation module; NC code generation rules for each axis are consistent, and here, for example only X-axis:
The NC code generation rule of the spindle system is:
i values from 1 to 2 Ntr, generating the following code in turn:
Among them, the code ‘G97 S nsS-tr[i]’ indicates that the spindle starting speed is set to nsS-tr[i] The code ‘M03’ represents the spindle forward start: The code ‘M05’ indicates that the spindle stops rotating; The code ‘G04 X to’ means running the next code after the to is suspended; At the same time, the calculation formula of nsS-tr[i] is as follows:
The total number of speed tests is 2 Ntr; 0<i≤2Ntr; Where └ ┘ denotes the integer operation;
NC code generation rules of the feed shaft system include rapid feed&return test code generation rules and cutting feed generation rules, rapid feed&return test code generation rules are as follows:
i values from 1 to 2 Ntr, generating the following code in turn:
Where ‘G00X dX-tr[i]’ denotes the specified distance dX-tr[i] for fast forward and backward in the X direction; At the same time, the calculation formula of dX-tr[i] is as follows:
Among them, the total number of tests of rapid feed&return specified distance is Ntr; 1≤i≤Ntr.
The generation rules for cutting feed test code are as follows:
i values from 1 to 2 Ntr, generating the following code in turn:
The code ‘G01X dX-tr[j] F cvX-tr[i]’ represents the specified feeding speed cvX-tr[i] to the direction of the X-axis dX-tr[i] The calculation formula CvX-tr[i] is as follows:
The total number of cutting feed rate tests is Ntr, 1≤i≤Ntr; cvX-max represents the maximum cutting feed rate in the X-axis direction.
The NC code generation rules for testing the automatic tool changing system are:
i values from 2 to Nt, generating the following code in turn:
Among them, code ‘Ti; M06’ means replacing the i-th knife.
NC code generation rules for other auxiliary systems of machine tool control start and stop are:
i values from 1 to NAu, generating the following code in turn:
Among them, M NCi-s represents the startup NC code of the other auxiliary system i (1≤i≤NAu), M NCt-p represents the shutdown NC code of the other auxiliary system i.
The NC code generation rules for validation experiments are:
i values from 1 to NAu, generating the following code in turn:
After the above code, add the following code:
Then, add the code generated by the following rules:
i values from 1 to NAu, generating the following code in turn:
Specific NC code generated according to the above NC code generation rules can be referred to in Table 7-8 below:
Step 4: Set the power sensors parameters in the field test module, and input the NC code of the test experiment and the NC code of the verification experiment into the CNC system of the machine tool to be tested; Power sensors parameters are shown in Table 9:
Field test management module is also used to generate field test steps comprising the following steps according to test parameters:
Step X. 1: The power sensors is installed at the power input end of the CNC machine tool, and the installation position of the power sensors is shown in
Step X. 2: Start the total power supply of the CNC machine tool and run continuously for to time;
Step X. 3: Turn off the total power supply of CNC machine tool and wait for td;
Step X. 4: Start the total power supply of the NC machine tool and run continuously for time;
Step X. 5: Start CNC system and wait for initialization;
Step X. 6: After the NC system is initialized, to the duration shall be continuously run;
Step X. 7: Close the CNC system and wait for td;
Step X. 8: Start the CNC system and wait for initialization;
Step X. 9: Input NC code generated by the NC code generation module into the CNC system;
Step X. 10: CNC system runs the NC code used to control the spindle system in the test experiment;
Step X. 11: Adjust the rate knob of the operating panel of the CNC machine tool, set the rate to 50%, and the CNC system runs the NC code used to control the operation of the feed shaft system in the test experiment.
Step X. 12: Adjust the rate knob of the operating panel of the CNC machine tool, set the rate to 100%, and the CNC system runs the NC code used to control the operation of the feed shaft system in the test experiment.
Step X. 13: CNC system runs the NC code used to control the operation of an automatic tool changing system in the test experiment;
Step X. 14: NC system runs the NC code used to control other auxiliary systems controlled by machine tools in the test experiment;
Step X. 15: CNC system runs the NC code for verification experiment;
Step X. 16: Turn off the CNC system of the machine tool and turn off the power supply of the machine tool.
Step 5: CNC machine tool run the NC code of the test experiment and control the test machine tools to run according to the NC code of the test experiment. At the same time, the power data information of each energy consumption subsystem in the test experiment is collected by the power sensors installed on the test machine tools. The power set of each energy consumption subsystem in the test experiment is generated by the field test management module according to the power data information collected by the power sensors.
The test power set includes: the input power set of the CNC machine tool in the power supply opening process DSP, the input power set of the CNC machine tool in the numerical control system running process DSC, the input power set of the CNC machine tool in the i-th (1≤i≤NAu) auxiliary system running process DAu-i, the input power set of the CNC machine tool in the i-th (1≤i≤2 Ntr) spindle speed starting process DPS-i, the input power set of the CNC machine tool in the i-th (1≤i≤2Ntr) spindle speed running process DUS-i, the input power set of the CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the rapid feed&return process with i-th (1≤i≤Ntr) rapid feed&return distance DI-PF-i, the input power set of the CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the i-th (1≤i≤Ntr) cutting feed speed cutting feed process DI-UF-i and the input power set of the CNC machine tool in the tool changing system for the nt (1≤nt≤Nt) tool position tool process DPT-n
Step 6: CNC machine tool run the NC code of the verification experiment and control the CNC machine tool to be tested to run according to the NC code of the verification experiment. At the same time, the power data information of each energy consumption subsystem in the verification experiment is collected by the power sensors installed on the CNC machine tool to be tested. The power set of each energy consumption subsystem in the verification experiment is generated by the field test management module according to the power data information collected by the power sensors.
The verification experiment power set includes: the input power set DSC_V of NC machine tool in the operation process of NC system, the input power set DAu-V of NC machine tool in the whole operation process of the auxiliary system, the input power set DPS-V of NC machine tool in the spindle system starting at the specified speed ns-V, the input power set DUS-V of CNC machine tool in the spindle system running at the specified speed nS-V, the input power set DI-PF-V of CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the process of rapid feed&return at the specified speed dI-V, the input power set DI-PF-V of CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the process of cutting at the specified feed speed cvI-V, and the input power set DPT-V of CNC machine tool in the automatic tool changing system.
Step 7: Data analysis module establishes the inherent energy efficiency factor function of each energy consumption subsystem according to the power set of the test experiment in step 5; The disclosure provides two function modeling methods: 1) discrete modeling method; 2) Discrete modeling method combined with an adaptive fitting modeling method; The following two function modeling methods are described respectively.
1) Discrete Modeling Method
In the data analysis module, the discrete modeling method is used to establish the discrete function of the inherent energy efficiency factors of each energy consumption subsystem of CNC machine tool, and the discrete function of the inherent energy efficiency factors is used as the inherent energy efficiency factor function, comprising the following steps:
Step 2.1: Calculate the power average
Among them, D represents the power set, Pk represents the kth element in the power set D, ND represents the number of elements in the power set D, and fs represents the sampling frequency of the power sensors;
Step 2.2: Set up the discrete function of inherent energy efficiency factors of energy consumption subsystem below CNC machine tool:
The power consumption of the energy dissipation subsystem of the CNC machine tool power supply opening process PSP:
P
SP=
Among them,
Power Consumption of CNC Machine Tool Control System PCs;
P
Cs=
Among them,
Power consumption of the CNC machine tool auxiliary system PAu-i:
P
Au-i=
Among them,
The discrete function of startup time and startup energy consumption of CNC machine tool spindle system CS-PS;
Where n represents the spindle speed, which is the independent variable; Both tS-PS and ES-PS are dependent variables, which are the starting time of the spindle system and the energy consumption of the spindle system. The tS-PS [i] is the running time of the power set DPS-i in the starting process of the i (1≤i≤2Ntr) spindle speed of CNC machine tool. The calculation formula ES-PS[i] is as follows:
E
S-PS[i]=Ein-PS[i]−
Among them, Ein-PS[i] is the set energy consumption of the power set DPS-i of the CNC machine tool during the starting process of the i (1≤i≤2Ntr) spindle speed.
The idling power discrete function of the spindle system of CNC machine tool in the idling period is CS-US:
Where n represents the spindle speed, which is the independent variable; PS-the US represents the power function of the spindle system in the air operation process as the dependent variable; The calculation power formula of PS-US[i] is as follows:
P
S-US[i]=
Where Pin-US[i] is the mean power of the power set DUS-i of the CNC machine tool in the i (1≤i≤2Ntr) spindle speed empty operation process.
The discrete function CI-PF(I∈[X, Y, Z], X, Y, Z denotes the X-axis, Y-axis, and Z-axis of the machine tool respectively) of the feed axis system of the CNC machine tool in the process of rapid feed&return:
Among them, dI-tr represents rapid feed&return distance as independent variables; tI-PF and EI-PF are dependent variables, tI-PF means rapid feed&return time, EI-PF means rapid feed&return energy consumption; tI-PF[i] is the running time of feed axis I (I∈[X, Y, Z]) in the power set DI-PF-i with ith (1≤i≤Ntr) rapid feed&return distance in rapid feed&return process; The calculation formula of EI-FF[i] is as follows:
E
I-FF[i]=Ein-I-PF[i]−
In the formula, Ein-I-PF[i] is the set energy consumption of the power set DI-PF-i of the feed axis I (I∈[X, Y, Z]) with the ith(1≤i≤Ntr) fast forward fast-backward distance in the fast forward fast-backward process.
The discrete function CI-UF of feed power in the cutting feed operation process of the CNC machine tool feed shaft system is:
Where cvI-tr represents the cutting feed rate of I axis, which is the independent variable; PI-UF represents the feed power of I-axis cutting as the dependent variable;
The calculation formula of PI-UF[i] is as follows:
P
I-UF[i]=
In the formula, Pin-I-UF[i] is the mean power of DI-UF-i is the power set of the CNC machine tool in the feed axis I (I∈[X, Y, Z]) cutting feed process at the i (1≤i≤Ntr) cutting speed.
The discrete function CPT of the tool changing time and energy consumption of the CNC tool changing system during the tool changing operation is:
Where nt represents the tool change position, which is the independent variable; tPT and EPT are dependent variables, tPT means tool change time, EPT means tool change energy consumption of tool changing system; tPT[nt] is the running time for the power set DPT-nt of the tool process of the automatic tool changing system for the ntth (1≤nt≤Nt) tool position; The calculation formula of EPT[nt] is as follows:
E
PT[nt]=Ein-PT[nt]−
In the expression, Ein-PT[nt] is the set energy consumption of the power set DPT-n
The discrete function of inherent energy efficiency factors can be transformed into tabular form to facilitate the calculation and query of inherent energy efficiency factors. For example, the discrete function of inherent energy efficiency factors CS-PS for the spindle system startup process and air operation process of the vertical CNC milling center XK714D in this specific implementation method is transformed into the following table 10:
Through the table, you can directly query the operating conditions for speed 250r/min, 300r/min, 350r/min . . . 7500r/min, the starting time tS-PS and the starting energy consumption ES-PS of the inherent energy efficiency factors in the spindle starting the process; For example, under the operating condition of 250 r/min rotational speed, the starting time of the spindle starting process is 0.75 s, and the starting energy consumption of the spindle starting process is 307 J. If it is necessary to calculate the inherent energy efficiency factors of the spindle system in the starting process of untested speed nun, the two speeds n+1 and n−1 closest to nun are first found in the tested speed nun; Then, 0.5(ES-PS (n+1)+ES-PS (n+1)) is approximated to the start-up energy consumption corresponding to the unknown speed nun, and 0.5(tS-PS (n+1)+tS-PS (n+l)) is approximated to the start-up time corresponding to the unknown speed nun.
2) Discrete Modeling Method Combined with an Adaptive Fitting Modeling Method
Based on discrete modeling, the data analysis module uses the adaptive fitting modeling method to establish the inherent energy efficiency factor function of each energy consumption subsystem of CNC machine tool, comprising the following steps:
Step 2.3: The discrete function of each energy consumption subsystem of CNC machine tool established by discrete modeling method is regarded as a data set for fitting; Split the dataset into the training set and test set; 70% of the discrete data in the discrete function of the inherent energy efficiency factor can be used as the training set, and the rest as the test set;
Step 2.4: First fitting function and the second fitting function are fitted by the least square method according to the training set. The general formula of the first fitting function and the second fitting function is as follows:
Step 2.5: Using the test set, the errors of the first fitting function, and the second fitting function are calculated according to the error function; The error function is as follows:
Step 2.6: If the error E(ωq=1) of the first fitting function is smaller than that of the second fitting function E(ωq=2), the first fitting function is selected as the function of the inherent energy efficiency factor; Otherwise, the quadratic fitting function is selected as the inherent energy efficiency factor function.
For the vertical CNC milling center XK714D, the inherent energy efficiency factor function of the CNC machine tool energy consumption subsystem obtained by the adaptive fitting modeling method is as follows:
The spindle system of CNC machine tool: starting time fitting function tS-PS (n), starting energy consumption fitting function ES-PS (n), and air power fitting function PS-US (n) with spindle speed n as independent variables;
CNC machine tool feed axis system: The fitting function tI-PF(dI) of rapid feed&return time length of X-axis, Y-axis, and Z-axis of CNC machine tool with the rapid feed&return distance dI as the independent variable, rapid feed&return energy consumption fitting function EI-PF(dI); The following I∈[X, Y, Z], X, Y, Z represent the X-axis, Y-axis, and Z-axis of the machine tool respectively.
When the ratio is 100%, the fitting results of the test experiment are as follows: X-axis rapid feed&return energy consumption fitting function EX-PF(dX) and rapid feed&return time fitting function tX-PF(dX), Y-axis forward and fast backward energy consumption fitting function EY-PF(dY) and rapid feed&return time fitting function tY-PF (dY), Z-axis rapid feed&return energy consumption fitting function EZ-PF(dZ) and rapid feed&return time fitting function tZ-PF(dZ).
When the ratio is 50%, the fitting results of the test experiment are as follows: X-axis fast forward fast-backward energy consumption fitting function EX-PF(dX) and fast forward fast-backward time fitting function tX-PF(dX), Y-axis fast forward fast-backward energy consumption fitting function EY-PF(dY) and fast forward fast-backward time fitting function tY-PF(dY), Z-axis fast forward fast-backward energy consumption fitting function EZ-PF(dZ) and fast forward fast-backward time fitting function tZ-PF(dZ).
CNC machine tool feed axis system: cutting feed power fitting function PI-UF(cvI) with cutting feed speed cvI as the independent variable; where the subscript I∈[X, Y, Z], and X, Y, Z represent the X-axis, Y-axis, and Z-axis of the machine tool, respectively.
Automatic tool changing system for CNC machine tool: tool change time fitting function tPT(nt) and tool change energy consumption fitting function EPT(nt) with tool change data n t as independent variables.
Step 8: Data analysis module establishes the inherent energy efficiency factor function of CNC machine tool in each operation stage according to the inherent energy efficiency factor function of each energy consumption subsystem in step 7;
Power function of CNC machine tool in the standby stage Pin-S(sCs):
P
in-PA(scf,sct)=250sCs270;
The power function Pin-PA(scf,sct) of CNC machine tool in the opening stage of the auxiliary system:
P
in-PA(scf,sct)=530+220scf+170sct;
Among them, scf indicates the state of the cutting fluid system, scf=0 indicates that the cutting fluid system is closed, and scf=1 indicates that the cutting fluid system is open. sct means the state of the chip transport system, sct=0 means the chip transport system is closed, sct=1 means the chip transport system is open; Besides, the opening and closing of compressed air systems do not result in significant power consumption, which is omitted.
Energy Consumption Function of CNC Machine Tool in Starting Stage of Spindle System Ein-PS(n, scf, sct):
E
in-PS(n,scf,sct):=(530+220scf+170sct)tS-PS(n)+ES-PS(n);
Energy Consumption Function of CNC machine tool in the Stage of Fast Forward and Backward Ein-PF(dI,scf,sct):
E
in-PF(dI,scf,sct)=(530+220scf+170sct)ΣtI-PF(dI)+ΣEI-PF(dI);
Energy Consumption Function of CNC Machine Tool in Tool Changing Stage Ein-PT(nt,scf,sct):
E
in-PT(nt,scf,sct)=(530+220scf+170sct)tPT(nt)+EPT(nt);
Power function of CNC machine tool in the idling stage Pin-U(n,cvI,scf,sct):
P
in-U(n,cvI,scf,sct)=530+220scf+170sct+PS-US(n)+ΣPI-UF(cvI),
Step 9: Validity verification of the inherent energy efficiency factor function of CNC machine tool generated by the data analysis module is carried out through the validity verification module. If the inherent energy efficiency factor function passes the validity verification, step B10 is entered. If the inherent energy efficiency factor function fails to pass the validity verification, then repeat step B1 to step B9. If it still fails to pass the validity verification of the function, contact technical personnel to eliminate the problem.
In the process of validity verification, the data analysis module calculates the verification value of the inherent energy efficiency factor according to the general formula in Step 2.1, comprising the verification power
Among them,
The data analysis module calculates the predicted values of the inherent energy efficiency factors under the verification experimental conditions according to the operation conditions of the verification experiment and the inherent energy efficiency factor function of the CNC machine tool, comprising the predicted power Pin-S(sCs=1) in the operation stage of the CNC system, the predicted power Pin-PA(sAu-i=1) in the whole operation stage of the auxiliary system, the predicted energy consumption Ein-PS(n=nV,sAu-i=1) in the start stage of the spindle system, the predicted power Pin-U(n=nV,cvI=0,sAu-i=1) in the rapid feed&return stage of the feed shaft I (I∈[X, Y, Z]), and the predicted power Pin-U(n=0,cvI=cvI-V,sAu-i=1) in the cutting feed stage of the feed shaft I (I∈[X, Y, Z]), and the predicted energy consumption Ein-PT(nt=nt-V,sAu-i=1) in the tool changing stage.
The relative error value is used to verify the effectiveness of the detected inherent energy efficiency elements of CNC machine tool in the standby operation process, the operation process of the auxiliary system, the startup process of the spindle system under the specified speed, the empty operation process of the spindle system under the specified speed, the feed shaft system in the specified fast feed and fast retreat process, the feed shaft system in the specified cutting feed process and the automatic tool changing system in the specified tool change process. If the relative error is within 5%, it can be regarded as a pass. The verification results of this specific implementation method are as follows:
S
cf = 1, sct = 1
It can be seen from Table 10 that the relative errors are all less than 5%. The inherent energy efficiency factor function (discrete modeling method combined with an adaptive fitting modeling method) of the specific implementation method has passed the validity verification. Therefore, the inherent energy efficiency factor function that has passed the validity verification can be used to calculate the inherent energy efficiency factor under the specified operating conditions, and step 10 can be entered.
Step 10: According to the inherent energy efficiency factor function of CNC machine tool in each operation process and the operating conditions of CNC machine tool, the inherent energy efficiency factors in each operation process of CNC machine tool are calculated.
According to the inherent energy efficiency factor function of each energy consumption subsystem in the test experiment and the operating conditions of each energy consumption subsystem in the test experiment, the inherent energy efficiency factors of each energy consumption subsystem in different operating conditions and different operating processes are calculated, to obtain the inherent energy efficiency factors of CNC machine tool to be tested. Operating conditions are composed of operating parameters, comprising the following operating parameters: CNC system operating state sCs, spindle speed n, feed shaft fast feed fast retreat distance dI, feed shaft cutting speed cvI, tool change position nt, the auxiliary system operating state sAu-i.
Number | Date | Country | Kind |
---|---|---|---|
201910087195.0 | Jan 2019 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/076155 | 2/26/2019 | WO | 00 |