COMPUTER-IMPLEMENTED METHOD FOR MONITORING MACHINE TOOL BASED ON USER BEHAVIOR
20170160720 ยท 2017-06-08
Inventors
Cpc classification
International classification
Abstract
A computer-implemented method is provided. First, channel data is obtained, and whether the channel data complies with a predetermined condition of an event is determined. If the channel data complies with the predetermined condition, the channel data is recorded into a database according to a sampling frequency and a recording duration. The channel data corresponding to the event is obtained from the database, and is displayed according to a user operation. A replay frequency and stepping time interval corresponding to the user operation are obtained. The recording duration is adjusted according to the replay frequency, and the sampling frequency is adjusted according to the stepping time interval.
Claims
1. A computer-implemented method for a machine tool, wherein a sensor is installed on the machine tool, the computer-implemented method comprising: obtaining, by a processor, first channel data from the sensor; determining, by the processor, whether the first channel data complies with a predetermined condition of an event, and automatically storing the first channel data into a database according to a sampling frequency and a recording duration when the first channel data complies with the predetermined condition; obtaining, by the processor, the first channel data corresponding to the event from the database, and displaying the first channel data on a screen according to a user operation; obtaining, by the processor, a replay frequency and stepping time interval corresponding to the user operation, where the stepping time interval indicates time elapsed between two stepping instructions; automatically adjusting the recording duration according to the replay frequency, and adjusting the sampling frequency according to the stepping time interval; and automatically storing second channel data obtained from the sensor into the database according to the adjusted sampling frequency and the adjusted recording duration when the second channel data complies with the predetermined condition of the event.
2. The computer-implemented method of claim 1, wherein the step of adjusting the recording duration according to the replay frequency is performed according to an equation (1):
3. The computer-implemented method of claim 2, further comprising: using different reference frequencies c.sub.0 when increasing the recording duration and decreasing the recording duration.
4. The computer-implemented method of claim 1, wherein the step of adjusting the sampling frequency according to the stepping time interval is performed according to an equation (2):
5. The computer-implemented method of claim 4, further comprising: using different reference time intervals t.sub.0 when increasing the sampling frequency and decreasing the sampling frequency.
6. The computer-implemented method of claim 1, wherein the step of determining whether the first channel data complies with the predetermined condition of the event comprises: determining that the first channel data complies with the predetermined condition if a current value of the first channel data is not within three standard deviations of a mean of the first channel data.
7. The computer-implemented method of claim 1, wherein the step of obtaining the replay frequency and the stepping time interval comprises: obtaining a plurality of first replay frequencies, eliminating a predetermined percentage of extreme values among the first replay frequencies, and calculating an average value of rest of the first replay frequencies as the replay frequency; and obtaining a plurality of first stepping time intervals, eliminating the predetermined percentage of extreme values among the first stepping time intervals, and calculating an average value of rest of the first stepping time intervals as the stepping time interval.
8. The computer-implemented method of claim 1, wherein the first channel data comprises voltage, current, temperature or vibration data of an axis in the machine tool.
9. A non-transitory computer readable recording medium, recording program instructions for: obtaining, by a processor, first channel data from a sensor installed on a toll machine; determining, by the processor, whether the first channel data complies with a predetermined condition of an event, and automatically storing the first channel data into a database according to a sampling frequency and a recording duration when the first channel data complies with the predetermined condition; obtaining, by the processor, the first channel data corresponding to the event from the database, and displaying the first channel data on a screen according to a user operation; obtaining, by the processor, a replay frequency and stepping time interval corresponding to the user operation, where the stepping time interval indicates time elapsed between two stepping instructions; and automatically adjusting the recording duration according to the replay frequency, and adjusting the sampling frequency according to the stepping time interval; and automatically storing second channel data obtained from the sensor into the database according to the adjusted sampling frequency and the adjusted recording duration when the second channel data complies with the predetermined condition of the event.
10. A monitoring system for a machine tool, wherein a sensor is installed on the machine tool, the monitoring system comprising: a data acquiring circuit, obtaining first channel data from the sensor; a data analysis circuit, determining whether the first channel data complies with a predetermined condition of an event, and automatically storing the first channel data into a database according to a sampling frequency and a recording duration when the first channel data complies with the predetermined condition, and obtains the first channel data corresponding to the event from the database; and a data display circuit, displaying the first channel data according to a user operation, wherein the data analysis circuit obtains a replay frequency and stepping time interval corresponding to the user operation, and automatically adjusting the recording duration according to the replay frequency, and adjusting the sampling frequency according to the stepping time interval, wherein the stepping time interval indicates time elapsed between two stepping instructions, wherein the data analysis circuit automatically stores second channel data obtained from the sensor into the database according to the adjusted sampling frequency and the adjusted recording duration when the second channel data complies with the predetermined condition of the event.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
[0016]
[0017]
[0018]
[0019]
[0020]
DETAILED DESCRIPTION
[0021] Specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings, however, the embodiments described are not intended to limit the present invention and it is not intended for the description of operation to limit the order of implementation. Moreover, any device with equivalent functions that is produced from a structure formed by a recombination of elements shall fall within the scope of the present invention. Additionally, the drawings are only illustrative and are not drawn to actual size.
[0022] The using of first, second, third, etc. in the specification should be understood for identify units or data described by the same terminology, but are not referred to particular order or sequence.
First Embodiment
[0023]
[0024] The data acquiring module 123 obtains the channel data 130 (e.g. voltage, current, temperature, or vibration data of an axis in the machine tool) from the sensors 111-113. The data analysis module 121 determines whether the channel data 130 complies with a predetermined condition of an event. When the channel data 130 complies with the predetermined condition, the data analysis module 121 records the channel data 130 according to a sampling frequency and a recording duration and stores the data into a database 140. For example, if the recording duration is 30 secs and the sampling frequency is 10 Hz, the recorded quantity of each channel data is 300. In other words, the recording duration and the sampling frequency affect the quantity of the recorded data. The values are just examples which are not limited in the invention.
[0025] After the channel data is stored in the database 140, when a user wants to review the channel data, the user may first select an event to be reviewed. Then, the data display module 122 obtains the channel data correspond to the selected event from the database, and displays the obtained channel data on a screen according to a user operation. For example, the user operation may include display, pause, forward, backward, stepping, etc., which are not limited in the invention. The operation stepping is used in a scenario that the user first sets sever breaking points in the channel data, and when the user performs the instruction stepping, the data display module 122 jumps from a current breaking point to a next breaking point, and displays the channel data corresponding to the next breaking point. When the user reviews the channel data, the data analysis module 121 records the user operation, and obtains a replay frequency and stepping time interval corresponding to the user operation. The replay frequency indicates how many times the user replays the channel data of the event during a predefined period. The stepping time interval indicates the average time intervals of stepping instructions during reviewing an identical event performed by users. The data analysis module 121 automatically adjusts the recording duration according to the replay frequency, and adjusts the sampling frequency according to the stepping time interval. Next, when another channel data (also referred to second channel data) complies with the predetermined condition of the event, the second channel data is automatically stored into the database according to the adjusted sampling frequency and the adjusted recording duration. As a result, the recording duration and the sampling frequency are adjusted by event according to the user behavior, and thus the channel data corresponding to the event is recorded efficiently, and the required storage quantity may be reduced.
Second Embodiment
[0026]
[0027] If the channel data does not comply with the predetermined condition, the channel data is maintained in the memory. If the channel data complies with the predetermined condition, the system will automatically store the channel data into a database according to a recording duration and a sampling frequency. Herein, the recording duration includes a first duration before the event triggered and a second duration after the event triggered. In some embodiments, the first duration and the second duration are the same, but they may be different in other embodiments. For example, the system may set a predetermined ratio of the first duration to the second duration, which is not limited in the invention. In addition, the system may also store operation information of the machine tool into the database. For example, the system may store machining data of the machine tool, such as operation path, spindle speed, depth of cut, coordinates of each axes, cutter compensation, etc. The data structure of the database, and whether the system stores other information are not limited in the invention. In some embodiments, the system also records the event in an abnormal event list.
[0028] Event-based channel data 240 is stored in the database. The user can review the recorded events by displaying the corresponding channel data (step 250). In some embodiments, the system will review one or more records according to the timestamps of the event, and displays the channel data in the database. Nonetheless, the user may use other retrieving approaches in other embodiments, and the invention is not limited thereto.
[0029] The retrieved data is displayed on a user interface, which can be controlled by a user. For example, the user may perform operations of play, pause, forward, backward, step, etc. The content of the interface is not limited in the invention. When the user interacts with the user interface, the system will analyze the operation pattern of the user, and determine whether the operation pattern changes in step 260. To be specific, the system calculates the replay frequency of the event performed by the user, and evaluates the change degree of the replay frequency. Simultaneously, the system calculates average time intervals of stepping instructions in reviewing an identical event performed by the user, and determines change degree of the stepping time intervals. If the change pattern is significant, the system will analyze user operation 270, and obtain updated replay frequency and stepping time interval corresponding to the user operation 270. In detail, for a particular event, the system obtains weeks of replay frequency data, and eliminates a predetermined percentage (e.g. 2.5%) of extreme data among the replay frequency data. That is, the system derives an average value of (i.e. 95%) of the replay frequencies as the replay frequency by eliminating the top 2.5% and the last 2.5% of the replay frequency data. Similarly, the system also obtains weeks of stepping time interval data, eliminates the predetermined percentage (e.g. 2.5%) of extreme values among the stepping time interval data, and calculates an average value of the stepping time intervals for later usage.
[0030] The system updates a sampling strategy 280 according to the calculated replay frequency and the stepping time interval. To be specific, the system substitutes the replay frequency into a logistic function to increase or decrease the recording duration. The step could be represented as following equation
where R denotes a rate of the recording duration, in which the multiplication of the rate R and a predefined value equals to the updated recording duration. L.sub.r denotes a maximum rate corresponding to the recording duration. k.sub.r denotes a factor corresponding to the recording duration. c denotes the aforementioned replay frequency. c.sub.0 denotes a reference frequency, such as a median of several replay frequencies. R.sub.0 denotes an initial rate of the recording duration. All the variables are real numbers, but the values thereof are not limited in the invention. Referring to
[0031] On the other hand, the system substitutes the stepping time interval into the logistic function to increase or decrease the sampling frequency. This step could be represented as following equation (2).
where S denotes a rate of the sampling frequency, in which the multiplication of the rate S and a predefined value equals to the updated sampling frequency. L.sub.s denotes a maximum rate corresponding to the sampling frequency. k.sub.s denotes a response speed corresponding to the sampling frequency. t denotes the stepping time interval. t.sub.0 denotes a reference time interval such as a median of several stepping time intervals. S.sub.0 denotes an initial rate of the sampling frequency. These variables are real numbers, but the values thereof are not limited in the invention. Referring to
[0032] Referring to
Third Embodiment
[0033]
[0034] Embodiments of the invention also provide a non-transitory computer readable storage medium storing program instructions. The program instructions are executed to perform the automatic monitoring method disclosed in
[0035] Although the present invention has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein. It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.