This application claims the benefit of Japanese Patent Application No. 2019-202985, filed Nov. 8, 2019, which is hereby incorporated by reference herein in its entirety.
The present invention relates to a machine tool and a display device.
In this technical field, patent literature 1 discloses a technique of determining that the life of a ball screw has come to its limit when a value A of total energy applied to the ball screw exceeds a life energy value B (A B).
In the technique described in the above literature, however, it is difficult to visualize the state of a ball screw in an easy-to-understand way.
The present invention provides a technique of solving the above-described problem.
One example aspect of the present invention provides a machine tool comprising:
a detector that detects at least one sensed value among a vibration, sound, and a current, heat, light, and power value applied to drive a ball screw during warming-up;
a feature amount extractor that extracts a first feature amount and a second feature amount from the sensed value obtained by the detector; and
a display that displays a point plotting the sensed value, and at least two boundaries laid out like contour lines to represent a possibility of generation of an anomaly in the ball screw, on a plane having a first axis defined by numerical values regarding the first feature amount and a second axis defined by numerical values regarding the second feature amount.
Another example aspect of the present invention provides a display device that extracts a first feature amount and a second feature amount from a sensed value obtained from a machine tool including a detector configured to detect at least one sensed value among a vibration, sound, and a current, heat, light, and power value applied to drive a ball screw during warming-up, and displays a possibility of generation of an anomaly in the ball screw, the display device displaying a point plotting the sensed value, and at least two boundaries laid out like contour lines to represent the possibility of generation of an anomaly in the ball screw, on a plane having a first axis defined by numerical values regarding the first feature amount and a second axis defined by numerical values regarding the second feature amount.
According to the present invention, the state of a ball screw can be visualized in an easy-to-understand way.
Example embodiments of the present invention will now be described in detail with reference to the drawings. It should be noted that the relative arrangement of the components, the numerical expressions and numerical values set forth in these example embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
A machine tool 100 according to the first example embodiment of the present invention will be described with reference to
As shown in
The points (T1 to T10 in
The machine tool 100 in the present invention is not limited to the form shown in
According to the first example embodiment, the possibility of generation of an anomaly in a ball screw is displayed as a two-dimensional map, so the state of a ball screw can be visualized in an easy-to-understand way. Since the possibility of generation of an anomaly in a ball screw can be determined appropriately, a breakage of the ball screw and the like can be prevented and a decrease in productivity by, for example, replacement of the ball screw can be prevented.
A machine tool according to the second example embodiment of the present invention will be described with reference to
The detector 301 detects the value of a current applied to rotate the motor 212 during warming-up of the machine tool 200, and outputs it as a sensed value. More specifically, the detector 301 includes a current sensor provided for the UVW phase of the three-phase alternating current, and an A/D converter that converts a measured current value into digital data. For example, the sampling frequency of the A/D converter is 2 kHz and the A/D converter converts a current value into a 16-bit signal. At this time, time-series data at 256 points can be obtained as input data every 128 msec.
Warming-up is to operate a tool at low load for a predetermined time immediately after startup or the like. Warming-up is performed to promote adaptation of the component parts of the tool by the low-load operation so that each part can operate smoothly and reliably. The slow-rotation, low-load operation can distribute a lubricating oil to each part and guide the gap (clearance) between the parts to a proper state so that the tool can exert its intrinsic performance.
The detector 301 calculates a Q-axis current iq and a D-axis current is using transformation (1) for a digital current value output from the A/D converter:
where the Q-axis current iq is the effective current, and the D-axis current id is the reactive current. The detector 301 sends the Q-axis current iq as a sensed value to the feature amount extractor 302.
The feature amount extractor 302 includes a frequency resolver 321, a normalizer 322, and a dimensional compressor 323. The frequency resolver 321 extracts a frequency component from the sensed value received from the detector 301 by using Fourier transform or the like. The normalizer 322 normalizes the data after frequency resolution. The dimensional compressor 323 compresses the dimensions of the normalized data, generating a two-dimensional feature amount (data having the first and second feature amount components). The feature amount extractor 302 is a processor for executing a predetermined program.
Based on the two-dimensional feature amount data extracted by the dimensional compressor 323, the display 303 displays the two-dimensional map 331 representing the possibility of generation of an anomaly in the ball screw 210. The two-dimensional map 331 includes a plane having a first axis 332 defined by first feature amounts generated by the dimensional compressor 323 and a second axis 333 defined by second feature amounts. On this plane, the feature amounts of sensed values are plotted (T1 to T16). Further, the display 303 displays, on the screen, boundaries (three boundaries 334 to 336 in this example) laid out like contour lines to represent the possibility of generation of an anomaly in the ball screw 210. In the example embodiment, “anomaly” means a breakage of the ball screw 210.
The two-dimensional map 331 represents that, as the feature amount of a plotted sensed value becomes more distant outward from the center of the innermost boundary 334, the possibility of generation of an anomaly becomes higher.
For example, the feature amounts (T1, T8, T9, . . . ) of sensed values plotted within the boundary 334 represent that the possibility of generation of an anomaly is very low, so it can be determined that the operation state is normal. That is, when points representing the feature amounts of sensed values are displayed only within the boundary 334, a user who sees the two-dimensional map 331 can operate the machine tool 200 without worry.
When a point representing the feature amount of a sensed value exists between the boundaries 334 and 335, the user determines that the machine tool 200 is in an operation state in which the possibility of generation of an anomaly is low but equal to or higher than a predetermined value, and operates the machine tool 200 carefully. For example, the user can clean chips inside the machine tool, check and pour a lubricating oil, or set the rotational speed of the motor 212 to a value at which the ball screw 210 hardly breaks. If the feature amount of a sensed value exists between the boundaries 334 and 335, the user should begin considering replacement of the ball screw 210 or the like.
For example, T11 to T14 are points outside the boundary 334 with reference to the two-dimensional map 331, and this is highly likely the sign of generation of an anomaly during the operation of the machine tool 200. The point T15 exists outside the boundary 335 and represents that the ball screw 210 needs to be replaced immediately. From the display of the two-dimensional map 331, the user can determine the timing of replacement of the ball screw 210 more accurately than from the graph 351 before the cutting accuracy actually decreases.
By checking the locus of points, the user can easily grasp, for example, the sign of an anomaly that may be generated in the long term in the machine tool 200. The user can make a medium- and long-term maintenance plan of the machine tool 200 and a procurement plan of consumables.
For example, if the feature amount of a sensed value is plotted outside the boundary 336, it is considered that the ball screw 210 highly likely breaks soon. Thus, the ball screw 210 should be replaced quickly.
Every time the detector 301 detects a sensed value, the display 303 additionally displays a point plotting the feature of the sensed value and at the same time, displays a boundary serving as the criterion of normal/anomaly determination.
The display 303 may be, for example, a display provided as part of the machine tool 200 or a display outside the machine tool 200. The two-dimensional map 331 may be projected on a screen using a projector. In this case, the display device displays, as the two-dimensional map 331, the possibility of generation of an anomaly in the ball screw 210 based on a feature amount extracted from at least one of vibrations (frequency and amplitude of vibrations) generated on the spindle, sound (volume and frequency of sound detected by a microphone) inside the machine tool 200, a current applied to the ball screw 210 or the spindle, heat (temperature or heat amount detected by a heat sensor) generated in the spindle or a work, light (quantity, color, and frequency of light captured by a camera) generated around the work, and a power value, which are detected as sensed values during warming-up. Information about the two-dimensional map 331 may be held on the display device side. The power value is generally a value obtained by dividing the amount of work (specific cutting resistance× depth of cut× feeding× cutting speed) by 60×1,000× mechanical efficiency and is called a main spindle power (Pc). For example, the power value includes the power value of the motor consumed by cutting or turning. The cutting torque and the rotational speed of a tool may be adopted as sensed values.
The corrector 304 corrects the two-dimensional map 331 displayed by the display 303 in accordance with an instruction from the user. More specifically, as shown in
Sensed values obtained at the time of shipment of the machine tool 200 from the factory, and sensed values obtained in a state in which the machine tool 200 is installed in the factory of the user or the like may be different in the boundaries 334 to 336 of the rendered two-dimensional map 331. In other words, the operation conditions of the machine tool 200 are not always constant.
For example, the weights of machining targets differ from each other, so the shapes of the boundaries 334 to 336 of the two-dimensional map 331 representing the possibility of a breakage of the ball screw 210 change depending on a machining target. Considering this, the machine tool 200 is configured to add a correction to the shapes of the boundaries 334 to 336 of the rendered two-dimensional map 331. The two-dimensional map 331 suited to the use environment of the user can be displayed.
As the correction method, for example, the user may change the shapes of the boundaries 334 to 336 by dragging part of the boundaries 334 to 336 with the operator 305 such as a mouse. Alternatively, the user may change the shapes of the boundaries 334 to 336 by inputting numerical values using the operator 305 such as a keyboard. Alternatively, data regarding boundaries after correction may be saved on the cloud and shared with another machine tool.
Based on the feature of a sensed value extracted by the feature amount extractor 302, the anomaly determiner 308 determines whether an anomaly has occurred. The anomaly determiner 308 transfers the determination result to the boundary data generator 309.
The boundary data generator 309 generates a boundary between a point at which the anomaly determiner 308 determines “normal”, and a point at which the anomaly determiner 308 determines “anomaly”.
The boundary data holder 306 holds data of the boundaries 334 to 336 of the two-dimensional map 331 displayed on the display 303. The corrector 304 corrects the shapes of the boundaries 334 to 336 by changing the data of the boundaries 334 to 336 held by the boundary data holder 306.
(Feature Amount Extraction Processing)
A feature amount extraction method by the feature amount extractor 302 will be described in detail with reference to
In general, arbitrary periodic time-series data yt can be regarded as the sum of trigonometric functions of various periods. This is called Fourier series expansion. A Fourier series of an observed value yt having a fundamental period T0[s] is given by equation (2) using a complex number:
where ω0=2πf0[s] is the fundamental angular frequency, and f0=1/T0[Hz] is the fundamental frequency. The complex Fourier coefficient cn is given by equation (3):
Letting d be the sampling time of current data and n be the window length, a maximum frequency fmax and a frequency resolution Δf are given by equations (4) and (5):
For example, when the sampling frequency is 2 kHz and the window length is 256 points, the maximum frequency fmax after FFT is 1 kHz and the frequency resolution Δf is 7.8125 Hz. That is, time-series data of 256 points can be expressed by a vector of 128 points by FFT, and this vector serves as an input to the next auto-encoder. Note that the normalizer 322 normalizes the vector of 128 points and sends it to the dimensional compressor 323.
The dimensional compressor 323 performs dimensional compression using an auto-encoder 361 and a PCA (Principal Component Analysis) 362. The auto-encoder 361 is an algorithm for dimensional compression using a neural network in machine learning, and is an algorithm capable of extracting features of the number of dimensions much smaller than that of dimensions of an input sample.
In the example embodiment, the frequency resolver 321 resolves the frequency of an applied current value into data expressed by vectors in a plurality of dimensions (128 dimensions in this case). The vectors in a plurality of dimensions (128 dimensions in this case) after frequency resolution are input to the dimensional compressor 323. The intermediate layer of the auto-encoder 361 of the dimensional compressor 323 is set to a low dimension, and vector inputs in a plurality of dimensions are compressed to low dimensions. In general, the auto-encoder 361 uses the same data for the input and output layers in the three-layer neural network, compresses data from the input layer to the intermediate layer, and then decompress it to the output layer. The auto-encoder 361 repeats this operation, deriving an intermediate layer of high recall ratio. Here, the intermediate layer is set to 64 dimensions. That is, vectors in 128 dimensions input to the dimensional compressor 323 are compressed to 64 dimensions while the feature is maintained as much as possible. For example, when vectors after FFT are in 128 dimensions, they can be compressed to 64 dimensions or 10 dimensions by the auto-encoder 361. Processing using learning and a learned model in the auto-encoder 361 will be explained below.
(i) Learning in Auto-Encoder
FFT data xβ of an applied current waveform of experimental number β is given by a set of vectors in R dimensions, like equation (6):
x
β=({circumflex over (x)}1β, . . . ,{circumflex over (x)}Rβ) (6)
where
{circumflex over (x)}
r
β
is the rth section of experimental number β, and R is the total number of sections.
Then, the encoder is given by equation (7):
The decoder is given by equation (8):
ŷ
r
β
=s(W′zrβ+b′) (8)
Since W′ is the transposed matrix of W, three parameters W, b, and b′ are obtained.
In this way,
ŷ
r
β
is similar to its original signal:
{circumflex over (x)}
r
β
For example, when Adam (Adaptive moment estimation) is used for the optimization method, a moving average vt=E|g2|t of the square of a gradient up to an immediately preceding step t-1, and a moving average mt=E|g|t of the gradient are given by equations (9):
m
t=β1mt−1+(1−β1)gtvt=β2vt−1+(1−β2)gt2 (9)
where β1 and β2∈ |0, 1) are hyper parameters. For example, β1 and β2 may take the following values, which are recommended values in Adam, or may be adjusted using the recommended values as criteria:
β1=0.9
That is, the relation between the moving average E|vt| of the second moment vt and the true second moment E|g2t| is given by equation (11):
E[vt]=E[gt2]·(1−β2t)+ζ (11)
Setting the values of the hyper parameters to approximate to ζ=0 yields:
This yields a parameter update equation:
As for the biases b and b′, equations can be derived by similar procedures.
(ii) Processing in Auto-Encoder
The encoder of the learned auto-encoder is used for dimensional compression:
Z
r
β
=S(W{circumflex over (x)}rβ+b) (14)
For example, when vectors after FFT are in 128 dimensions, the intermediate layer is set to 64 dimensions, and the auto-encoder is made to learn, compressed 64-dimension data:
PCA (Principal Component Analysis) is a method of expressing data by lower dimensions using principal components. PCA can compress an input to data in an arbitrary number of dimensions and output the compressed data.
(i) Learning
Let X be the data matrix of an input and x be a column vector including a single data point. The variance maximization problem of data is formulated:
Formula (15) is rewritten into the form of the matrix and vector:
That is, while a constraint condition that the norm of w becomes 1 is satisfied, w maximizing the output Xw is obtained. The solution resides in singular value decomposition of X. Letting V and w be principal components in k dimensions and W be the data matrix,
W=V
k
where k is the number of unrelated variable groups included in the principal component V. Letting Z be the vector after dimensional compression, the vector of projective coordinates is given by
Z=XV
k
(ii) Processing
Dimensional compression is performed using the principal component V obtained by learning. It can be set to, for example, when a vector after auto-encoder processing has 64 dimensions, compress a 64-dimension input X64 into a two-dimensional vector Z2.
Since Z2=X64V2, the two-dimensional vector Z2 is output with respect to the 64-dimension input X64 based on the principal component V2. Two vector components of the vector Z2 correspond to the first and second feature amounts. The two components of the vector Z2 are used as the first and second axes and plotted to a two-dimensional map.
A SVM (Support Vector Machine) 363 is a pattern recognition method originally aimed at two-class classification. The SVM 363 obtains an optimal separating hyperplane that maximizes a margin. The margin is a distance between a hyperplane and a sample closest to the hyperplane. The maximized margin (distance) is given by f(x).
The SVM 363 is One Class SVM, which is an expansion of normal SVM, and builds a model that maps normal data to a nonnegative value and abnormal data to a negative value. That is, the One Class SVM is a method of performing learning based on a set of data, most of which are normal, and determining whether unknown data is normal or abnormal. In general, many normally manufactured products and many data in a normal state can be obtained, but abnormal products and data in an abnormal state are rarely obtained. The One Class SVM is applicable to such a case.
(i) Learning
When model building data cannot be linearly separated, the SVM maps the model building data into a high-dimensional space using a nonlinear function and obtains a separating hyperplane in the high-dimensional space. This is equivalent to obtaining a nonlinear separating boundary in an original low-dimensional space. Mapping into the high-dimensional space uses a kernel function K:
K(xi,xj)=φ(xi)Tφ(xj) (17)
where xi is the first feature amount, xi is the second feature amount, and (I) is the nonlinear function. The distance f(x) determined by a SVM model is given by equation (18):
f(x)=wTφ(x)+b (18)
where w is the weight vector, and b is the bias. The new sample x can be discriminated by the sign of f(x). Model building in the One Class SVM is formulated as SVM when normal data for model building are regarded as the same class and the origin is regarded as the other class. In other words, the margin in the One Class SVM is defined as a distance between the origin and a sample closest to the origin. The margin maximization problem is formulated like formula (19):
where ξi(i=1, . . . , N) is the slack variable, and V ∈(0, 1) is the error ratio when model building data is discriminated in a built One Class SVM model. The Lagrange multipliers αi≥0 and ηi≥0 are introduced to rewrite the optimization problem, like equation (20):
The Lagrange undetermined multiplier method yields equations (21):
In summary, this problem can be expressed by dual equation (22):
This optimization problem can be solved as a standard quadratic programing problem. The distance f(x) finally determined by the One Class SVM model is given by equation (23):
Generally, both normal data and abnormal data are necessary to build a discriminative model like an anomaly detection model. As is apparent from equation (23), however, the One Class SVM can build a discriminative model from only normal data.
As described above, the One Class SVM outputs the distance f(x) from the hyperplane. Normal or anomaly can be determined based on the distance f(x). The distance f(x) takes a larger negative value for larger abnormal data, and a larger positive value for larger normal data.
The boundary data generator 309 determines data having a small distance f(x), that is, abnormal data as an outlier, and generates a boundary.
For example, assuming that learning data includes abnormal values by 0.2%, the anomaly determiner 308 can regard upper 0.2% data as outliers in ascending order of the distance f(x) and create a normal range.
(ii) Processing
Data dimension-compressed by the PCA is input to the learned One Class SVM, obtaining the output f(x) in accordance with equation (23).
The anomaly determiner 308 uses a sign-reversed output f(x) as an anomaly score g(x), which is represented by g(x)=−f(x). That is, the anomaly determiner 308 determines that data is normal when the anomaly score g(x) takes a negative value, and that data is abnormal when it is equal to or larger than 0.
The boundary data generator 309 generates a boundary between points at which data are determined to be normal based on the anomaly score g(x), and points at which data are determined to be abnormal. The boundary data generator 309 saves the boundary as boundary data in the boundary data holder 306.
In the example embodiment, the dimensions of a sensed value are temporarily compressed (128 dimensions→64 dimensions→two dimensions) to facilitate normal/anomaly determination and separate normal and anomaly. Needless to say, the example embodiment is not limited to this. It is also possible to make a normal/anomaly determination using the One Class SVM based on 128-dimension data while compressing dimensions (128 dimensions→64 dimensions→two dimensions) and plot data on a two-dimensional plane. This prolongs the processing time, but increases the accuracy more than using two-dimensional data.
The PCA 362 is used as the dimensional compression method but, for example, a VAE (Variational Auto Encoder) may be used instead of the PCA 362. Alternatively, dimensions may be compressed up to two dimensions by using only the auto-encoder 361 without using the PCA 362.
Note that the dimensional compression method is not limited to the above-described method, and various methods may be used in combination. Here, creation of the two-dimensional map 331 for a breakage of the ball screw 210 has been exemplified. As for a breakage of a bearing, only a sensed value obtained at first is different, subsequent processing can be performed similarly, and a similar two-dimensional map 331 can be created. For example, to capture the sign of a breakage of the bearing, data of sound generated inside the machine tool or vibrations generated on the spindle is obtained as a sensed value during warming-up.
The above-described machine tool 200 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and a storage as hardware. The machine tool 200 reads out, to the RAM, data necessary to implement the example embodiment, and executes them by the CPU. Databases, various parameters, data, programs, and modules are stored in the storage.
In step S601, the detector 301 detects, as a sensed value during warming-up, at least one sensed value among vibrations, sound, and a current, heat, light, and power value applied to the motor 212 or the spindle. In step S603, the feature amount extractor 302 reduces the dimensions of the feature amount of the sensed value and extracts the first and second feature amounts. In step S605, the display 303 generates the screen of the two-dimensional map 331 in which sensed values are plotted on a plane having the first axis 332 defined by the first feature amount and the second axis 333 defined by the second feature amount. Further, the display 303 generates the three boundaries 334 to 336 laid out like contour lines to represent the possibility of generation of an anomaly in the ball screw.
In step S607, the display 303 displays the created two-dimensional map 331 on the display. In step S609, the corrector 304 determines whether to correct the boundary shape. If the corrector 304 determines not to correct the boundary shape (NO in step S609), the machine tool 200 ends the processing. If the corrector 304 determines to correct the boundary shape (YES in step S609), the process advances to step S611. In step S611, the display 303 displays the boundary shape-corrected two-dimensional map 331.
In the example embodiment, the detector 301 detects a current value. However, the detector 301 detects not only a current value, but also the values of vibrations, sound, heat, light, and power generated at the time of processing.
According to the example embodiment, sensed values during warming-up are detected, a two-dimensional map is displayed, and the current state of the machine tool can be visually grasped easily. If sensed values in the state of the machine tool at the time of shipment from the factory are detected, the current stage of the state of the machine tool from the state at the time of shipment can be visually grasped. For example, the serviceman of the machine tool can propose the timing of replacement of a ball screw to the user while presenting the two-dimensional map at a timing such as periodic inspection. The serviceman can also present the state of degradation of the ball screw to the user. For example, which of clogging of chips and a scratch degrades the ball screw can be understood, and the serviceman can make a more proper proposal to the user.
For example, something may hit the machine tool, impair the state of the ball screw, and decrease the processing accuracy. The serviceman can check the two-dimensional map from the time of shipment from the factory and clarify the cause of the decrease in processing accuracy. That is, which of the initial failure of the machine tool and a late failure is the cause can be clarified, and which of the machine tool manufacturer or the user is responsible can be made clear. As long as sensed values during warming-up are obtained and accumulated, the serviceman and user can check the two-dimensional map, as needed.
Note that the display 303 may display a plurality of two-dimensional maps side by side on one screen. For example, the display 303 may simultaneously display on one screen a two-dimensional map regarding a breakage of the ball screw 210 and a two-dimensional map regarding a breakage of the bearing. By simultaneously displaying a plurality of two-dimensional maps, the possibilities of generation of various anomalies can be checked on one screen.
As shown in
While the invention has been particularly shown and described with reference to example embodiments thereof, the invention is not limited to these example embodiments. It will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the claims. A system or apparatus including any combination of the individual features included in the respective example embodiments may be incorporated in the scope of the present invention.
The present invention is applicable to a system including a plurality of devices or a single apparatus. The present invention is also applicable even when an information processing program for implementing the functions of example embodiments is supplied to the system or apparatus directly or from a remote site. Hence, the present invention also incorporates the program installed in a computer to implement the functions of the present invention by the computer, a medium storing the program, and a WWW (World Wide Web) server that causes a user to download the program. Especially, the present invention incorporates at least a non-transitory computer readable medium storing a program that causes a computer to execute processing steps included in the above-described example embodiments.
Number | Date | Country | Kind |
---|---|---|---|
2019-202985 | Nov 2019 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/041229 | 11/4/2020 | WO |