System and Method for Acquiring Inherent Energy Efficiency Factor Function of Computerized Numerically Controlled Machine Tool

Information

  • Patent Application
  • 20210349437
  • Publication Number
    20210349437
  • Date Filed
    February 26, 2019
    5 years ago
  • Date Published
    November 11, 2021
    3 years ago
Abstract
The disclosure discloses a system for acquiring an inherent energy efficiency factor function of a CNC machine tool, the system comprises an equipment information management module, a test parameter setting module, a NC code generation module, a field test management module, a data analysis module, a validity verification module and power sensors. The NC code generation module is used to generate the NC code to control the operation of the CNC machine tool to be tested according to the test parameters and information of the CNC machine tool to be tested. The field test management module is used to analyze the power data information of power sensors and generate the input power sets of CNC machine tool in each test operation process; The data analysis module is used to generate the inherent energy efficiency factor function according to the input power set.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

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.


TECHNICAL FIELD

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.


BACKGROUND

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.


SUMMARY

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:










n



s

S
-
tr




[
i
]



=

{







n

S
-
r


-


Δ

S
-
n
-
l








n

S
-
min


-

n

S
-
r





N

t

r




Δ

S
-
n
-
l








(

i
-

N

t

r



)



,

0

i
<

N

t

r











n

S
-
r


+


Δ

S
-
n
-
u








n

S
-
max


-

n

S
-
r





N

t

r




Δ

S
-
n
-
u








(

i
-

N

t

r



)



,


N

t

r



i


2


N

t

r








;














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:









d

i
-
tr




[
i
]


=


d

i
-
o


+




d
i

-

2


d

i
-
o





N
tr



j



,




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]:








c



v

I
-
tr




[
j
]



=



c


v

i
-
max




N

t

r




j


,




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-nt, 1≤nt≤Nt of the CNC machine tool in the process of changing the nt tool position in the automatic tool changing system.


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 PD, a set time tD and a set energy consumption ED for each power set, according to following general formula:









P
D

_

=


1

N
D







k
=
1


N
D




P
k




,



P
k


D

;


t
D

=


N
D


f

s



;


E
D

=


1

f

s







k
=
1


N
D




P
k





,


P
k


D

,




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=Pin-SP,


and Pin-SP represents a power average of the power set DSP of the CNC machine tool in the power supply opening process,


a power consumption of a control system of the CNC machine tool PCs:






P
Cs=Pin-SCPSP,


and Pm-Sc represents a power mean of the power set DSC of the CNC machine tool in the operation process of the CNC system,


a power consumption of the auxiliary system PAu-i:






P
Au-i=Pin-Au-iPin-SC,


and Pin-Au-i represents a power average of the power set DAu-i of the CNC machine tool during the operation of the i-th auxiliary system, 1≤i≤NAu,


a discrete function of startup time and energy consumption of the spindle system is CS-PS:











C

S
-
PS


=


[







n



t

S
-
PS





E

S
-
PS





]

=

[









ns

S
-
tr




[
1
]






t

S
-
PS




[
1
]






E

S
-
PS




[
1
]



















ns

S
-
tr




[
i
]






t

S
-
PS




[
i
]






E

S
-
PS




[
i
]



















ns

S
-
tr




[

2


N
tr


]






t

S
-
PS




[

2


N
tr


]






E

S
-
PS




[

2


N
tr


]





]



,












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]−Pin-SCtS-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:







C

S
-
US


=

[





n




P

S
-
US


]




=

[





ns

S
-
tr




[
1
]






P

S
-
US




[
1
]
















ns

S
-
tr




[
i
]






P

S
-
US




[
i
]
















ns

S
-
tr




[

2


N
tr


]






P

S
-
US




[

2


N
tr


]





]


,






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]=Pin-US[i]−Pin-SC,


and Pin-US[i] is a mean power of the power set DUS_i of the CNC machine tool in the process of the i-th spindle speed empty operation, 1≤i≤2Ntr,


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:










C

I
-
PF


=

[






d

I
-
tr





t

I
-
PF






E

I
-
PF


]




=

[





d

I
-
tr




[
1
]






t

I
-
P

F




[
1
]






E

I

­

P

F




[
1
]



















d

I
-
tr




[
i
]






t

I
-
PF




[
i
]






E

I
-
PF




[
i
]



















d

I
-
tr




[

N
tr

]






t

I
-
PF




[

N
tr

]






E

I
-
PF




[

N
tr

]





]


,














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]−Pin-SCtI-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:











C

I
-
UF


=


[




cv

I
-
tr





P

I
-
UF





]

=

[




c



v

I
-
tr




[
1
]







P

I

­

U

F




[
1
]















c



v

I
-
tr




[
i
]







P

I

­

U

F




[
i
]
















cv

I
-
tr




[

N
tr

]






P

I
-
UF




[

N
tr

]





]



,












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]=Pin-I-UF[i]−Pin-SC,


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:








C

P

T


=


[




n
t




t
PT




E
PT




]

=

[



1




t
PT



[
1
]






E
PT



[
1
]


















n
t





t
PT



[

n
t

]






E
PT



[

n
t

]


















N
t





t
PT



[

N
t

]






E
PT



[

N
tr

]





]



,




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]−Pin-SCtPT[nt],


and Ein-PT[nt] is a set energy consumption of 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, 1≤nt≤Nt.


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-itI-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.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows the inherent energy efficiency factor function acquisition system framework of the CNC machine tool;



FIG. 2 shows the installation of the power sensors.





DETAILED DESCRIPTION OF THE EMBODIMENTS


FIG. 1 is the inherent energy efficiency factor function acquisition system framework of the CNC machine tool; The vertical CNC milling center XK714D is tested by using the inherent energy efficiency factor function acquisition system and acquisition method of the CNC machine tool. The process is as follows:


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:









TABLE 1





Basic information on CNC machine tool


Basic information of CNC machine tool


















Machine type
Vertical CNC milling center



Machine model
XK714D



CNC system
FANU

















TABLE 2





Spindle system information


Spindle system information


















Rated speed r/min
750



Minimum rotation speed r/min
60



Maximum rotation speed r/min
80000



Speed interval above rated speed r/min
250



Speed interval below rated speed r/min
50

















TABLE 3







Feed shaft system information










Feed shaft system information
X
Y
Z













Rapid feed&return speed mm/min
20000
20000
15000


Cutting feed rate mm/min
5000
5000
5000


Range of motion mm
400
300
300
















TABLE 4





Automatic Tool automatic tool changing system information


















The maximum number of cutting tools in
12



Automatic Tool Changing System

















TABLE 5







Auxiliary System Information










Auxiliary System





Information
1
2
3





Name
compressed air
cutting fluid
Chip



system
system
transportation





system


Start code
M07
M08
M45


Stop code
M09
M09
M46









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:









TABLE 6





Parameter information


Test parameter



















State-running duration to
10
s



State-switching-mark duration td
5
s



State-switching-delay duration tdc
20
s



Number of training samples Ntr
10
s



Initial distance dI-o of feed shaft i
50
mm










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:

    • G97 S nsS-tr[i];
    • M03;
    • G04 X to;
    • M05;
    • G04 X to


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:










n



s

S
-
tr




[
i
]



=

{







n

S
-
r


-


Δ

S
-
n
-
l








n

S
-
min


-

n

S
-
r





N

t

r




Δ

S
-
n
-
l








(

i
-

N

t

r



)



,

0

i
<

N

t

r











n

S
-
r


+


Δ

S
-
n
-
u








n

S
-
max


-

n

S
-
r





N

t

r




Δ

S
-
n
-
u








(

i
-

N

t

r



)



,


N

t

r



i


2


N

t

r








;














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:

    • G00 X dX-tr[i];
    • G04 X to;
    • G04X dX-o;
    • G04 X td


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:












d

X
-
tr




[
i
]


=


d

X
-
o


+




d
X

-

2


d

X
-
o





N

t

r




i



;












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:

    • G01 X dX-tr[j]F cvX-tr[i];
    • G04 X to;
    • G00 X dX-oF cvX-tr[i];
    • G04 X td


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:









cv

X
-
tr




[
i
]


=



cv

X
-
max



N
tr



i


;




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:

    • Ti; M06;
    • G04 X to;
    • T1; M06
    • G04 X td


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:

    • M NCi-s;
    • G04 X t0;
    • M NCt-p;
    • G04 X td


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:

    • M NCi-s


After the above code, add the following code:







G





04

;

X






t
o


;







T



N
t

2


;

M





06

;






G





04





X






t
d







G





00






Xd

X
-
o








Yd

Y
-
o








Zd

Z
-
o









G





04

;

X






t
d


;







G





97





S






n

s
-
r



;







M





03

;







G





04

;

X






t
d


;






G





00





X





2


d

X
-
o







Y





2


d

Y
-
o







Z





2


d

Z
-
o







F






cv
max








G





04

;

X






t
d


;







M





05

;




Then, add the code generated by the following rules:


i values from 1 to NAu, generating the following code in turn:

    • M NCi-p


Specific NC code generated according to the above NC code generation rules can be referred to in Table 7-8 below:









TABLE 7







NC code preview 1











Auxiliary system
Spindle test
Rapid feed&return



detection
(partial code)
(partial code)







M07;
. . .
. . .



G04 X10;
G97 S700;
G00 X80;



M09;
M03;
G04 X10;



G04 X5;
G04 X10;
G00 X50;



M08;
M05;
G04 X5;



G04 X10;
G04 X5;
G00 X110;



M09;
G97 S750;
G04 X10;



G04 X5;
M03;
G00 X50;



M45;
G04 X10;
G04 X5;



G04 X10;
M05;
G00 X140;



M46;
G04 X5;
G04 X10;



G04 X5;
. . .
. . .

















TABLE 8







NC code preview 2










Automatic Tool



Cutting feed
Change (Part of
Confirmatory


(partial code)
Code)
experiment





. . .
. . .
M07; M08; M45


G01 X80 F2000;
T3; M06;
G04; X5;


G04 X10;
G04 X10;
T6; M06;


G01 X50 F2000;
T1 M06;
G04; X5;


G04 X5;
G04 X5;
G00 X100 Y100 Z100


G01 X110 F2500;
T4 M06;
G04; X5;


G04 X10;
G04 X10;
G00 X250 Y200 Z200


G01 X50 F2500;
T1; M06;
G04; X5;


G04 X5;
G04 X5;
G97 S750;


G01 X140 F3000;
T5; M06;
M03;


G04 X10;
G04 X10;
G04; X5;




G01 X100 Y100 Z100 F5000


. . .
. . .
G04; X5;




M05; M09; M46









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:









TABLE 9





Power sensors information


Power sensors information


















Model
HC-33C3



Sampling frequency fs
20 HZ



Precision
±0.5%










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 FIG. 2. The data output end of the power sensors is connected to the data input end of the field test management module through the conversion interface.


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-nt.


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 PD, run time tD, and energy consumption ED for each power set according to the following general formula:









P
D

_

=


1

N
D







k
=
1


N
D




P
k




,



P
k


D

;









t
D

=


N
D


f

s



;








E
D

=


1

f

s







k
=
1


N
D




P
k




,


P
k


D





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=Pin-SP;


Among them, Pin-SP represent the average power of the power set DSP of CNC machine tool in the power supply opening process.


Power Consumption of CNC Machine Tool Control System PCs;






P
Cs=Pin-SCPSP;


Among them, Pin-SC represent the average power of the power set DSC of CNC machine tool in the CNC system operation process.


Power consumption of the CNC machine tool auxiliary system PAu-i:






P
Au-i=Pin-Au-tPin-SC


Among them, Pin-Au-i represent the power mean value of the power set DAu-i of CNC machine tool during the operation of the i (1≤i≤NAu) auxiliary system.


The discrete function of startup time and startup energy consumption of CNC machine tool spindle system CS-PS;







C

S
-

P

S



=


[



n



t

S
-
PS





E

S
-

P

S






]

=

[





ns

S
-
tr




[
1
]






t

S
-
PS




[
1
]






E

S
-

P

S





[
1
]



















ns

S
-
tr




[
i
]






t

S
-
PS




[
i
]






E

S
-

P

S





[
i
]



















ns

S
-
tr




[

2


N
tr


]






t

S
-
PS




[

2


N
tr


]






E

S
-

P

S





[

2


N
tr


]





]






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]−Pin-SCtS-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:







C

S
-
US


=


[



n



P

S
-
US





]

=

[





ns

S
-
tr




[
1
]






P

S
-
US




[
1
]
















ns

S
-
tr




[
i
]






P

S
-
US




[
i
]
















ns

S
-
tr




[

2


N
tr


]






P

S
-
US




[

2


N
tr


]





]






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]=Pin-USPin-SC


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:







C

I
-
PF


=


[




d

I
-
tr





t

I
-
PF





E

I
-
PS





]

=

[





d

I
-
tr




[
1
]






t

I
-
PF




[
1
]






E

I
-
PS




[
1
]



















d

I
-
tr




[
i
]






t

I
-
PF




[
i
]






E

I
-
PS




[
i
]



















d

I
-
tr




[

N
tr

]






t

I
-
PF




[

N
tr

]






E

I
-
PS




[

N
tr

]





]






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]−Pin-SCtI-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:







C

I
-
UF


=


[




cv

I
-
TR





P

I
-
UF





]

=

[





cv

I
-
TR




[
1
]






P

I
-
UF




[
1
]
















cv

I
-
TR




[
i
]






P

I
-
UF




[
i
]
















cv

I
-
TR




[

N
tr

]






P

I
-
UF




[

N
tr

]





]






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]=Pin-I-UF[i]−Pin-SC


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:







C

P

T


=


[




n
t




t
PT




E

P

T





]

=

[



1




t
PT



[
1
]






E
PT



[
1
]


















n
t





t
PT



[

n
t

]






E
PT



[

n
t

]


















N
t





t
PT



[

N
tr

]






E
PT



[

N
tr

]





]






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]−Pin-SCtPT[nt]


In the expression, Ein-PT[nt] is the set energy consumption of the power set DPT-nt of the tool process of the automatic tool changing system for the ntth (1≤nt≤Nt) tool position.


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:









TABLE 10





The discrete function CS − PS of inherent energy efficiency


factors in the starting process of CNC machine tool spindle system

















Rotational speed(r/min)


















250
300
350
400
450
500
550
600
650
700





Duration(s)
0.75
0.75
0.75
0.75
0.8
0.8
0.8
0.8
0.8
0.8


Energy
307
390
412
468
603
692
690
801
817
831


consumption(J)












Rotational speed(r/min)


















750
1500
2250
3000
3750
4500
5250
6000
6750
7500





Duration(s)
0.8
0.85
0.90
0.95
1.15
1.35
1.75
2.15
2.6
3.4


Energy
967
1757
2615
3365
4703
6257
8249
10393
13089
16464


consumption(J)









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:








y


(

x
,
ω

)


=




j
=
0

q




w
j



x
j




,

q
=
1

,

2
;





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:







E


(
ω
)


=


1
2






n
=
1

N




{


y


(


x
n

,
ω

)


-

y
n


}

2







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;








t

S
-
PS




(
n
)


=

{







0

.8

,

60

n


8

0

0

0










7
×
1


0

-
8




n
2


-

2
×
1


0

-
4



n

+


1
.
0


2


,


7

5

0


n


8

0

0

0


,

(


R
2

=


0
.
9


9

5


)












E

S
-
PS




(
n
)



=

{








9
×
1


0

-
4




n
2


+


2
.
1


6

n

-

1

9

2


,


6

0

<
n
<

7

50


,

(


R
2

=


0
.
9


7

3


)









3
×
1


0

-
4




n
2


-


0
.
1


5

n

+

1

2

0

5


,


7

5

0


n


8

0

00


,

(


R
2

=


0
.
9


9

9


)












E

S
-
US




(
n
)



=

{






2
×
1


0

-
1




n
2


-


0
.
0


6

3

n

+

1

1

3


,


6

0

<
n
<

7

50


,

(


R
2

=


0
.
9


7

3


)









4
×
1


0

-
6




n
2


+


0
.
0


1

7

6

n

+

2

2

2


,


7

5

0


n


8

0

00


,

(


R
2

=


0
.
9


6

2


)














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).













E

X
-

P

F





(

d
X

)


=

{








0
.
8


3

4

5


d
X


+
29

,

positive





direction






(


R
2

=


0
.
9


89


)











0
.
7


2

9

9


d
X


+
28

,

negative





direction






(


R
2

=


0
.
9


90


)






;







t

X
-

F

F





(

d
X

)


=

{







3
×
1


0

-
3




d
X


+


0
.
0


6


,

positive





direction






(


R
2

=


0
.
9


9

3


)











2
.
8

×
1


0

-
3




d
X


+


0
.
0


5


,

negative





direction






(


R
2

=


0
.
9


7

9


)






;







E

Y
-

F

F





(

d
Y

)


=

{








-

2
.
5


×
1


0

-
3




d
Y
2


+


1
.
3


1

9

5


d
Y


+
3

,

positive





direction






(


R
2

=


0
.
9


89


)











-

3
.
6


×
1


0

-
3




d
Y
2


+


1
.
6


4

0

4


d
Y


-
8

,

positive





direction






(


R
2

=


0
.
9


79


)






;







t

Y
-

F

F





(

d
Y

)


=

{








2
.
6

×
1


0

-
3




d
Y


+


0
.
0


9


,

positive





direction






(


R
2

=


0
.
9


93


)











2
.
7

×
1


0

-
3




d
Y


+


0
.
0


7


,

negative





direction






(


R
2

=


0
.
9


88


)






;







E

Z
-

F

F





(

d
Z

)


=

{









1
.
2


0

1

5


d
Z


+
11

,

positive





direction






(


R
2

=


0
.
9


9

3


)
















0
.
4


3

7

6


d
Z


+
15

,

negative





direction






(


R
2

=
0.990

)






;







t

Z
-

P

F





(

d
Y

)


=

{








3
.
5

×
1


0

-
3




d
Z


+


0
.
1


1


,

positive





direction






(


R
2

=


0
.
9


9

5


)










7
×
1


0

-
6




d
Z
2


+


2
.
4

×
1


0

-
3




d
Z


+


0
.
0


7


,

negative





direction






(


R
2

=


0
.
9


8

5


)










;






















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).













E

X
-

P

F





(

d
X

)


=

{









0
.
8


2

6

3


d
X


+
8

,

positive





direction






(


R
2

=


0
.
9


9

8


)











0
.
7


4

6

9


d
X


+
7

,

negative





direction






(


R
2

=


0
.
9


9

8


)













t

X
-
PF




(

d
X

)



=

{









5
.
8

×
1


0

-
3




d
X


+


0
.
0


7


,

positive





direction






(


R
2

=


0
.
9


9

8


)











6
.
1

×
1


0

-
3




d
X


+
0.01

,

negative





direction






(


R
2

=


0
.
9


9

6


)

















E

Y
-

P

F





(

d
Y

)



=

{









0
.
6


9

6

1


d
Y


+
4

,

positive





direction






(


R
2

=


0
.
9


9

4


)











0
.
7


3

7

8


d
Y


+
6

,

positive





direction






(


R
2

=


0
.
9


9

3


)













t

Y
-
PF




(

d
Y

)



=

{









6
.
3

×
1


0

-
3




d
Y


+


0
.
0


1


,

positive





direction






(


R
2

=


0
.
9


9

2


)











6
.
1

×
1


0

-
3




d
Y


+


0
.
0


3


,

positive





direction






(


R
2

=


0
.
9


9

2


)

















E

Z
-
PF




(

d
Z

)



=

{









1
.
4


3

5

8


d
Z


+
3

,

positive





direction






(


R
2

=


0
.
9


9

8


)











0
.
2


8

6

9


d
Z


+
7

,

negative





direction






(


R
2

=


0
.
9


8

7


)













t

Z
-

P

F





(

d
Z

)



=

{







8
.
1

×
1


0

-
3




d
Z


+


0
.
0


8


,

positive





direction






(


R
2

=


0
.
9


9

7


)











8
.
2

×
1


0

-
3




d
Z


+


0
.
0


1


,

negative





direction






(


R
2

=


0
.
9


9

8


)






















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.








P

X
-

U

F





(

c


v
X


)


=

{









0
.
0


1

0

9

c


v
X


+
20

,

positive





direction






(


R
2

=


0
.
9


9

7


)










0
.
0


0

9

8

c


v
X


,

negative





direction






(


R
2

=


0
.
9


9

4


)













P

Y
-

U

F





(

c


v
Y


)



=

{








0
.
0


1

0

7

c


v
Y


,

positive





direction






(


R
2

=


0
.
9


7

7


)











0
.
0


1

1

5

c


v
Y


+
4

,

negative





direction






(


R
2

=


0
.
9


7

9


)













P

Z
-

U

F





(

c


v
Z


)



=

{







0
.
0


2

1

2

c


v
Z


+
22

,

positive





direction






(


R
2

=


0
.
9


9

6


)











0
.
0


0

4

8

c


v
Z


+
3

,

negative





direction






(


R
2

=


0
.
9


6

5


)















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.








t

P

T




(

n
t

)


=

{









1
.
2


5

7


n
t


+
8.9

,

positive





rotations






(


R
2

=
0.999

)











1
.
2



n
t


+
9.2

,

negative





rotations






(


R
2

=


0
.
9


9

9


)













E
PT



(

n
t

)



=

{






1

3

0


n
t


+
2424

,

positive





rotations






(


R
2

=


0
.
9


8

4


)










2

2

9


n
t


+
2179

,

negative





rotations






(


R
2

=


0
.
9


8

7


)













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+170scttI-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 Pin-SC-V in the operation stage of the numerical control system, the verification power Pin-Au-V in the whole operation stage of the auxiliary system, the verification energy consumption Ein-PS-V in the startup stage of the spindle system, the verification power Pin-US-V in the empty operation stage of the spindle system, the verification energy consumption Ein-I-PF-V in the rapid feed&return stage of the feed shaft I (I∈[X, Y, Z]), the verification power Pin-US-V the cutting feed stage of the feed shaft I (I∈[X, Y, Z]), and the verification energy consumption Ein-PT-V in the tool changing stage of the automatic tool changing system.


Among them, Pin-SC-V is to verify the average power of the power set DSC-V in the experiment; Pin-Au-V is to verify the average power of the power set DAu-V in the experiment; Ein-PS-V is the set energy consumption of the power set DPS-V in the verification experiment; Pin-US-V is to verify the average power of the power set DUS-V in the experiment; Ein-I-PF-V is the set energy consumption of the power set DI-PF-V in the verification experiment (I∈[X, Y, Z]); Pin-US-V is the mean power of the power set DI-UF-V in the verification experiment (I∈[X, Y, Z]); Ein_PT-V is the set energy consumption of the power set DPT-V in the verification experiment.


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:









TABLE 10







Validation Table












Appointed
Verification
Acquiring




parameters of
value of
system













Awaiting proved
validation
verification
predictive
Relative
Effective or


stage
experimental
experiment
value
error
not

















Standby stage
sCs = 1
528
W
520
W
−1.52%
effective


Auxiliary system
scf = 1, sct = 1
918
W
910
W
−0.87%
effective


operation phase


Starting stage of the

S
cf = 1, sct = 1

925
J
928
J
0.32%
effective


spindle system
nv = 750 r/min


Running open stage of
scf = 1, sct = 1
1114
W
1110
W
−0.36%
effective


spindle system
nv = 750 r/min



cvI = 0















Fast forward and
X-axis
scf = 1, sct = 1
611
J
609
J
−0.33%
effective


backward

dX − v = 150 mm


stage of feed
Y-axis
scf = 1, sct = 1
426
J
421
J
−0.17%
effective


shaft system

dY − v = 100 mm



Z-axis
scf = 1, sct = 1
532
J
539
J
1.32%
effective




dZ − v = 100 mm


The cutting feed
X-axis
scf = 1, sct = 1
997
W
986
W
−1.10%
effective


stage of feed

cvX − v = 5000 mm/min


shaft system
Y-axis
scf = 1, sct = 1
997
W
986
W
−1.10%
effective




cvY − v = 5000 mm/min



Z-axis
scf = 1, sct = 1
956
W
962
W
0.63%
effective




cvZ − v = 5000 mm/min














Tool changing stage of
scf = 1, sct = 1
18228
J
18275
J
0.26%
effective


tool changing system
nt − v = 6









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.

Claims
  • 1. A system for acquiring an inherent energy efficiency factor function of a computerized numerically controlled (CNC) machine tool, wherein the CNC machine tool comprises the following energy consumption subsystems: a CNC 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, a numerically controlled (NC) code generation module, a field test management module, a data analysis module and power sensors configured to install on the CNC machine tool to be tested and obtain the power data of the CNC machine tool to be tested; the equipment information management module is configured to input the basic information, spindle system information, feed shaft system information, automatic tool automatic tool changing system information and auxiliary system information of the CNC machine tool to be tested;the test parameter setting module is configured to set test parameters comprising a state-running duration to, a state-switching-mark duration td, a state-switching-delay duration tdc, number of training samples Ntr and an initial distance of a feed shaft dI-o;the NC code generation module is configured to generate NC codes to control a operation according to the test parameters and 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 NC codes comprises NC codes configured to control the spindle system running in a test process, NC codes configured to control the feed shaft system running in the test process, the NC codes configured to control the automatic tool changing system running in the test process and NC codes configured to control the auxiliary system running in the test process;the field test management module is configured to set parameters of the power sensors, read power data information of the power sensors, parse power data information of the power sensors and generate power set;the data analysis module is configured to generate an 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 an inherent energy efficiency factor function of each operation stage of the CNC machine tool according to the inherent energy efficiency factor function of each energy consumption subsystem.
  • 2. The system as claimed in claim 1, wherein the basic information comprises a machine type, a machine model, and a CNC system type, the spindle system information comprises a maximum spindle speed nS-max, a minimum spindle speed nS-min, a rated spindle speed nS-r, a speed interval ΔS-n-u above a rated speed and a speed interval ΔS-n-l below the rated speed, the feed axis system information comprises a fast feed speed fvI-max in a direction of I axis, a axial stroke dI, and a maximum cutting feed speed cvI-max, the subscript I∈[X, Y, Z], X, Y, Z represent a X-axis, a Y-axis, and a Z-axis of the machine tool respectively, the automatic tool automatic tool changing system information comprises the number of tool positions in a tool library Nt, the auxiliary system information comprises a total number of auxiliary systems controlled by the CNC system NAu, a name of each auxiliary system, and a start-stop control code of each auxiliary system.
  • 3. The system as claimed in claim 2, wherein the NC codes configured to control the operation of the spindle system in the test process comprises the spindle starting speed setting code, and a total number of spindle speed test is 2 Ntr, and the i-th spindle speed nsS-tr[i] is set according to a following formula:
  • 4. The system as claimed in claim 2, wherein the power set generated by the field test management module according to the power data information collected by the power sensors in the test process of CNC machine tool comprises: an input power set of the CNC machine tool in a power supply opening process DSP; an input power set of the CNC machine tool in a CNC system operation process DSC; the input power set DAu-i of the CNC machine tool during an operation of an i-th auxiliary system, 1≤i≤NAu; the input power set DPS-i of the CNC machine tool, in a start-up process of an i-th spindle speed, 1≤i≤2Ntr; an input power set DUS-i of the CNC machine tool in a process of an i-th spindle speed empty operation; an input 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; an input power set DI-UF-i of the CNC machine tool in a feed axis I cutting a feed process at an i-th cutting speed, 1≤i≤Ntr; an input 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.
  • 5. The system as claimed in claim 1, wherein the data analysis module is configured to establish an inherent energy efficiency factor discrete function of each energy consumption subsystem of the CNC machine tool by a discrete modeling method, comprising following steps: step 2.1: calculating a power mean PD, a set time tD and a set energy consumption ED for each power set, according to following general formula:
  • 6. The system as claimed in claim 5, wherein the data analysis module establishes an inherent energy efficiency factor fitting function of each energy consumption subsystem of CNC machine tool by adaptive fitting modeling method based on discrete modeling, comprising 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;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.
  • 7. The system as claimed in claim 6, wherein the inherent energy efficiency factor functions of the CNC machine tool comprise a power function Pin-S(sCs) of the CNC machine tool in a standby stage, a power function Pin-PA(sAu-i) of the CNC machine tool in an opening stage of the auxiliary system, an energy consumption function Ein-PS(n,sAu-i) of the CNC machine tool in a starting stage of the spindle system, an energy consumption function Ein-PF(dI,sAu-i) of the CNC machine tool in a rapid feed&return stage, an energy consumption function Ein-PT(nt,sAu-i) of the CNC machine tool in an automatic tool change stage and a power function Pin-U(n,cvI,sAu-i) of the CNC machine tool in an idling stage, specific expressions are as follows: the power function Pin-S(sCs) of the CNC machine tool in the standby stage: Pin-S(sCs)=PSP+sCsPCs,
  • 8. The system as claimed in claim 1, wherein the system comprises: a validity verification module, configured to verify a effectiveness of the inherent energy efficiency factor function, an judge whether the inherent energy efficiency factor function is effective according to an error between a verification value and a predicted value,wherein the verification value is obtained by a verification experiment, and the predicted value is calculated by the data analysis module according to operation conditions of a verification experiment and the inherent energy efficiency factor function of the CNC machine tool in each operation stage,to carry out the verification experiment, the NC code generation module and the field test management module are improved as follows:the NC code generation module is also configured to generate a NC code for a verification experiment test according to the test parameters and the basic information, the spindle system information, the feed shaft system information, the tool automatic tool changing system information, and the auxiliary system information, the NC code for the verification experiment test comprises a NC code for controlling the operation of the auxiliary system in the verification experiment, a NC code for controlling a starting and an empty operation of the spindle system according to a specified speed nS-V in the verification experiment, a NC code for controlling the feed shaft system according to a specified rapid feed&return distance dI-V and a specified cutting feed speed cvI-V in the verification experiment, and a NC code for controlling the automatic tool changing system according to a 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 comprises: an input power set DSC-V of the CNC machine tool in an operation process of the CNC system, an input power set DAu-V of the CNC machine tool in a whole operation process of the auxiliary system, an input power set DPS-V of the CNC machine tool in the spindle system according to the specified speed nS-V, an input power set DUS-V of the CNC machine tool in an empty operation process of the spindle system according to the specified speed nS-V, an input power set DI-PF-V of the CNC machine tool in the feed shaft I (I∈[X, Y, Z]) in the feed shaft dI-V.
  • 9. A method for obtaining an inherent energy efficiency factors of a CNC machine tool, comprising, establishing an inherent energy efficiency factor function of each energy consumption subsystem and an inherent energy efficiency factor function of each operation stage of a CNC machine tool by a system for acquiring an inherent energy efficiency factor function of a CNC machine tool according to claim 1, and calculating inherent energy efficiency factors of the CNC machine tool in different operation processes according to the inherent energy efficiency factor function of the CNC machine tool, specifically comprising 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.
  • 10. A method for obtaining inherent energy efficiency factors of a CNC machine tool, comprising, establishing an inherent energy efficiency factor function of each energy consumption subsystem and an inherent energy efficiency factor function of each operation stage of a CNC machine tool by a system for acquiring an inherent energy efficiency factor function of a CNC machine tool according to claim 8, and calculating inherent energy efficiency factors of the CNC machine tool in different operation processes according to the inherent energy efficiency factor function of the CNC machine tool, specifically comprising 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.
  • 11. The method as claimed in claim 9, wherein the basic information comprises a machine type, a machine model, and a CNC system type, the spindle system information comprises a maximum spindle speed nS-max, a minimum spindle speed nS-min, a rated spindle speed nS-r, a speed interval ΔS-n-u above a rated speed and a speed interval ΔS-n-l below the rated speed, the feed axis system information comprises a fast feed speed fvI-max in a direction of I axis, a axial stroke dI, and a maximum cutting feed speed cvI-max, the subscript I∈[X, Y, Z], X, Y, Z represent a X-axis, a Y-axis, and a Z-axis of the machine tool respectively, the automatic tool automatic tool changing system information comprises the number of tool positions in a tool library Nt, the auxiliary system information comprises a total number of auxiliary systems controlled by the CNC system NAu, a name of each auxiliary system, and a start-stop control code of each auxiliary system.
  • 12. The method as claimed in claim 11, wherein the NC codes configured to control the operation of the spindle system in the test process comprises the spindle starting speed setting code, and a total number of spindle speed test is 2 Ntr, and the i-th spindle speed nsS-tr[i] is set according to a following formula:
  • 13. The method as claimed in claim 11, wherein the power set generated by the field test management module according to the power data information collected by the power sensors in the test process of CNC machine tool comprises: an input power set of the CNC machine tool in a power supply opening process DSP; an input power set of the CNC machine tool in a CNC system operation process DSC; the input power set DAu-i of the CNC machine tool during an operation of an i-th auxiliary system, 1≤i≤NAu; the input power set DPS-i of the CNC machine tool, in a start-up process of an i-th spindle speed, 1≤i≤2 Ntr; an input power set DUS-i of the CNC machine tool in a process of an i-th spindle speed empty operation; an input 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; an input power set DI-UF-i of the CNC machine tool in a feed axis I cutting a feed process at an i-th cutting speed, 1≤i≤Ntr; an input 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.
  • 14. The method as claimed in claim 9, wherein the data analysis module is configured to establish an inherent energy efficiency factor discrete function of each energy consumption subsystem of the CNC machine tool by a discrete modeling method, comprising following steps: step 2.1: calculating a power mean PD, a set time tD and a set energy consumption ED for each power set, according to following general formula:
  • 15. The method as claimed in claim 14, wherein the data analysis module establishes an inherent energy efficiency factor fitting function of each energy consumption subsystem of CNC machine tool by adaptive fitting modeling method based on discrete modeling, comprising 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;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.
  • 16. The method as claimed in claim 15, wherein the inherent energy efficiency factor functions of the CNC machine tool comprise a power function Pin-S(sCs) of the CNC machine tool in a standby stage, a power function Pin-PA(sAu-i) of the CNC machine tool in an opening stage of the auxiliary system, an energy consumption function Ein-PS(n,sAu-i) of the CNC machine tool in a starting stage of the spindle system, an energy consumption function Ein-PF(dI,sAu-i) of the CNC machine tool in a rapid feed&return stage, an energy consumption function Ein-PT(nt,sAu-i) of the CNC machine tool in an automatic tool change stage and a power function Pin-U(n,cvI,sAu-i) of the CNC machine tool in an idling stage, specific expressions are as follows: the power function Pin-S(sCs) of the CNC machine tool in the standby stage: Pin-S(sCs)=PSP+sCsPCs,
Priority Claims (1)
Number Date Country Kind
201910087195.0 Jan 2019 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2019/076155 2/26/2019 WO 00