A real-time monitoring method for numerical control system based on configuration computer

By acquiring CNC machine tool current data in real time in the configuration computer system, dividing period segments, clustering and calculating significant parameters, the problem of misjudgment of current changes in the existing technology is solved, monitoring accuracy and reliability are improved, and CNC machine tools are improved. Stability and accuracy of current data monitoring.

CN118348917BActive Publication Date: 2024-09-24SHAANXI YOUPENG ANYING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410449997.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-09-24
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

In the existing technology, CNC machine tool abnormality monitoring is only based on the degree of current mutation, and current changes in normal state changes may be misjudged as abnormalities, resulting in low monitoring accuracy, poor sensitivity and reliability, and insufficient monitoring stability and accuracy.

Method used

The real-time monitoring method based on the configuration computer is used to obtain the current data of the CNC machine tool in real time, divide the periodic segments, calculate the degree of similarity, perform clustering, determine the significant parameters of the segment and the significant parameters of the time, and monitor based on the abnormality degree indicators to avoid misjudgment. .

Benefits of technology

It improves the accuracy and reliability of abnormal monitoring, reduces the impact of normal state changes, improves the stability and accuracy of current data monitoring, and achieves more sensitive monitoring effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118348917B
    Figure CN118348917B
Patent Text Reader

Abstract

The present invention relates to the field of intelligent monitoring technology, and in particular to a real-time monitoring method for a numerical control system based on a configuration computer. The method comprises: obtaining the current data of a numerical control machine tool and dividing it into at least two periodic segments; determining the similarity of the periodic segments according to the numerical change and numerical distribution of the current data; clustering to obtain similar clusters; determining the segment significant parameters of the segment to be tested according to the similarity between the segment to be tested and other periodic segments; determining the moment significant parameters at the current moment according to the change of the current data in the segment to be tested; and then determining the significance index at the current moment; determining the abnormality at the current moment according to the significance index of all moments in the similar cluster at the current moment and the previous moment, and monitoring the current data of the numerical control machine tool according to the abnormality at the current moment. The present invention can improve the stability and accuracy of the current data monitoring of the numerical control machine tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of intelligent monitoring, and in particular to a real-time monitoring method for a numerical control system based on a configuration computer. Background Art

[0002] Configuration computers are often used in the fields of factory automation, CNC systems, building automation systems, etc., providing reliable control and monitoring means for industrial production. The CNC machining system of the configuration computer uses the software system in the computer to determine the automatic operation of the hardware, realizing a complete system and system of automated machining. Monitoring the abnormalities that may occur during the operation of CNC machine tools is also one of the important functions of the configuration computer.

[0003] In the related art, abnormality monitoring is performed by monitoring the degree of current mutation at the current moment, that is, the larger the current mutation, the greater the degree of abnormality; but the actual operating state of a CNC machine tool is not fixed. A CNC machine tool needs to periodically change its operating state to perform different processing tasks. Therefore, if abnormality monitoring is performed only based on the degree of current mutation, the current change caused by the normal state change may be analyzed as an abnormal situation, resulting in low monitoring accuracy of abnormality monitoring, poor sensitivity and reliability of the monitoring process, and insufficient stability and accuracy in monitoring the current data of the CNC machine tool. Summary of the invention

[0004] In order to solve the technical problems that in the related art, abnormal monitoring is performed only according to the degree of current mutation, and the current change caused by the normal state change may be analyzed as an abnormal situation, resulting in low monitoring accuracy of abnormal monitoring, poor sensitivity and reliability of the monitoring process, and insufficient monitoring stability and accuracy of the current data of the CNC machine tool, the present invention provides a real-time monitoring method for a CNC system based on a configuration computer, and the technical scheme adopted is as follows:

[0005] The present invention proposes a real-time monitoring method for a numerical control system based on a configuration computer, the method comprising:

[0006] Acquire the current data of the CNC machine tool at each moment in real time, and divide all moments into at least two period segments according to the value fluctuation of the current data at all moments;

[0007] Determine the similarity between two cycle segments according to the numerical changes and numerical distribution of the current data at each moment in any two cycle segments; cluster all the cycle segments according to the similarity between each two cycle segments to obtain similar clusters; take the cycle segment to which the current moment belongs as the segment to be tested, and take the similar cluster to which the segment to be tested belongs as the cluster to be tested;

[0008] Determine the segment significant parameter of the segment to be tested according to the similarity between the segment to be tested and other periodic segments in the cluster to be tested, and the similarity between the segment to be tested and all periodic segments other than the periodic segments in the cluster to be tested; determine the moment significant parameter at the current moment according to the change of the current data at all moments in the segment to be tested, and determine the significance index at the current moment by combining the segment significant parameter and the moment significant parameter;

[0009] According to the significance index of the current moment and the significance indexes of all moments in the similar cluster at the previous moment of the current moment, the abnormality degree of the current moment is determined, and the current data of the CNC machine tool is monitored according to the abnormality degree of the current moment.

[0010] Further, the determining of the similarity between two cycle segments according to the value change and value distribution of the current data at each moment in any two cycle segments includes:

[0011] Based on the DTW algorithm, the DTW values ​​of any two period segments are calculated as the first difference coefficient;

[0012] Calculate the average of the current data values ​​at all times in each cycle segment to obtain the segment mean; take the absolute value of the difference between the segment means of two cycle segments as the second difference coefficient;

[0013] The absolute value of the difference between the current data values ​​at two adjacent moments in any cycle segment is used as the current change value corresponding to the two adjacent moments, and the average of the current change values ​​at all adjacent moments in each cycle segment is calculated to obtain the segment change index of the cycle segment; the absolute value of the difference between the segment change indexes of the two cycle segments is used as the third difference coefficient;

[0014] The first difference coefficient, the second difference coefficient and the third difference coefficient are combined to determine the similarity between two period segments.

[0015] Furthermore, the first difference coefficient, the second difference coefficient and the third difference coefficient are all negatively correlated with the similarity between two period segments, and the value of the similarity is a normalized value.

[0016] Furthermore, according to the similarity between every two periodic segments, all the periodic segments are clustered to obtain similar clusters, including:

[0017] The similarity between any two periodic segments is counted, and based on the K-means clustering analysis algorithm, the periodic segments corresponding to all similarities are clustered to obtain similar clusters, wherein the number of similar clusters is calculated based on the elbow method.

[0018] Furthermore, the method for determining the segment significant parameter of the segment to be tested includes:

[0019] Calculating the mean of the similarity between the segment to be tested and other periodic segments in the cluster to be tested to obtain a first mean;

[0020] Calculating the mean of the similarity between the segment to be tested and all other periodic segments except the periodic segment in the cluster to be tested, to obtain a second mean;

[0021] The product of the first mean and the second mean is negatively correlated and normalized and processed as a segment significance parameter.

[0022] Furthermore, the moment-significant parameters at the current moment include:

[0023] Calculate the absolute value of the difference between the current data at the current moment and the current data at all other moments in the section to be tested, and average them to obtain the current current difference mean;

[0024] In the section to be tested, the average of the current data at the preset number of moments closest to the current moment is calculated to obtain the neighborhood current average, and the absolute value of the difference between the neighborhood current average and the current data at the current moment is used as the neighborhood current difference average;

[0025] The product of the current current difference mean and the neighborhood current difference mean is calculated and normalized to obtain the moment-significant parameter at the current moment.

[0026] Furthermore, the segment significance parameter and the moment significance parameter are both positively correlated with the significance index at the current moment, and the value of the significance index is a normalized value.

[0027] Further, determining the abnormality degree of the current moment according to the significance index of the current moment and the significance indexes of all moments in the similar cluster at the previous moment of the current moment includes:

[0028] Calculate the mean of the significance index of all moments in the similar cluster at the previous moment to obtain the reference significance index;

[0029] The absolute value of the difference between the significance index at the current moment and the reference significance index is calculated, and normalized to obtain the abnormality degree at the current moment.

[0030] Further, the monitoring of the current data of the CNC machine tool according to the abnormality degree at the current moment includes:

[0031] When the abnormality degree at the current moment is greater than the preset abnormality threshold, the processing work of the CNC machine tool is stopped and an alarm message is generated.

[0032] Furthermore, the method of dividing all moments into at least two periodic segments according to the value fluctuation of the current data at all moments includes:

[0033] Based on the STL time series decomposition algorithm, the current data at all times are decomposed to obtain the periodic terms;

[0034] The time corresponding to the minimum point in the periodic item is used as the division time, and all the time is divided into at least two periodic segments according to the time sequence.

[0035] The present invention has the following beneficial effects:

[0036] The present invention acquires the current data of the CNC machine tool at each moment in real time, divides all the moments into at least two cycle segments, and performs analysis based on the cycle segments, thereby avoiding the problem of treating normal current fluctuations as abnormal conditions based only on the numerical analysis of the current data. At the same time, the analysis of the cycle segments can also effectively improve the overall analysis efficiency. Since the working states of the CNC machine tool are diverse, its current also has a variety of change modes. The similarity of the cycle segments is determined according to the numerical changes and numerical distribution of the current data of the cycle segments. According to the similarity of the cycle segments, all the cycle segments are clustered to obtain similar clusters. The determination of similar clusters can effectively distinguish different states of the CNC machine tool, thereby realizing effective analysis of each state and avoiding monitoring errors caused by state changes. Afterwards, the embodiments of the present invention The significance index at the current moment is analyzed, and the significance index at the current moment is determined according to the segment significance parameter of the segment to be tested and the moment significance parameter of the current moment. The significance index at the current moment characterizes the abnormal situation of the segment to be tested and the data mutation situation at the current moment; then, according to the significance index at the current moment and the significance index of all moments in the similar cluster at the previous moment of the current moment, the degree of abnormality at the current moment is determined. After multi-layer analysis, a more reliable degree of abnormality is obtained, which reduces the influence of normal changes in the operating state of the CNC machine tool and improves the monitoring accuracy of abnormal monitoring. When the current data of the CNC machine tool is subsequently monitored according to the degree of abnormality at the current moment, a more sensitive and reliable monitoring effect can be achieved, thereby improving the stability and accuracy of the current data monitoring of the CNC machine tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1A flow chart of a method for real-time monitoring of a numerical control system based on a configuration computer provided by an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of a process for obtaining the degree of similarity of periodic segments provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a real-time monitoring method of a numerical control system based on a configuration computer proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] The specific scheme of a real-time monitoring method for a numerical control system based on a configuration computer provided by the present invention is described in detail below with reference to the accompanying drawings.

[0043] See also Figure 1 , which shows a flow chart of a method for real-time monitoring of a numerical control system based on a configuration computer provided by an embodiment of the present invention, the method comprising:

[0044] S101: acquiring the current data of the CNC machine tool at each moment in real time, and dividing all moments into at least two period segments according to the value fluctuations of the current data at all moments.

[0045] A specific implementation scenario of the present invention includes: in the process of monitoring a CNC machine tool, corresponding current data is obtained in real time to perform abnormal analysis based on the current data. It should be noted that in this implementation scenario, a current detection device, such as an ammeter, can be configured inside the CNC machine tool to detect and count the current data of the CNC machine tool itself based on the current detection device.

[0046] Among them, the current data collection process is a periodic collection process, and the time point corresponding to each collection can be used as the collection moment. In the embodiment of the present invention, the current data of the CNC machine tool can be collected every 0.1 second to facilitate timely abnormal monitoring and ensure the normal operation of the CNC machine tool itself. Of course, in other embodiments of the present invention, the collection interval of the CNC machine tool can also be adjusted according to actual needs, and there is no limitation on this.

[0047] In the embodiment of the present invention, the current data may generate current fluctuations in time due to the operation of the CNC machine tool itself, environmental interference and other factors. The current fluctuations of the CNC machine tool are more severe when the CNC machine tool is operating abnormally. Therefore, the embodiment of the present invention analyzes the current fluctuations of the CNC machine tool.

[0048] Furthermore, in some embodiments of the present invention, all moments are divided into at least two periodic segments based on the numerical fluctuations of the current data at all moments, including: performing time series decomposition on the current data at all moments based on the STL time series decomposition algorithm to obtain periodic terms; taking the moment corresponding to the minimum point in the periodic term as the splitting moment, and dividing all moments into at least two periodic segments according to the time series.

[0049] Among them, the STL time series decomposition algorithm is an algorithm well known in the art. Through the STL time series decomposition algorithm, the data fluctuating in the time series can be decomposed into trend terms, periodic terms and residual terms. Among them, the periodic terms characterize the periodic characteristics of the corresponding data fluctuations. The present invention can realize the division of the time series according to the periodic terms.

[0050] In the embodiment of the present invention, the minimum point in the periodic term, that is, the point with a lower value among the extreme points of the periodic term in the fluctuation process, has corresponding minimum points at different times due to the periodic distribution of the fluctuation. Two adjacent minimum points can represent a fluctuation cycle. In the embodiment of the present invention, the moment corresponding to the minimum point can be used as the division moment, and then the time period is divided to obtain the period segment. The period segment is the time segment separated by two adjacent minimum points, which includes the value of the current data at the corresponding moment, and represents a numerical fluctuation cycle of the current data.

[0051] After determining the cycle segment, the present invention can implement cycle analysis of current data according to the cycle segment. The specific analysis process thereof will be described in the subsequent embodiments.

[0052] S102: Determine the similarity between any two cycle segments based on the numerical changes and numerical distribution of the current data at each moment in any two cycle segments; cluster all cycle segments according to the similarity between every two cycle segments to obtain similar clusters; take the cycle segment to which the current moment belongs as the segment to be tested, and take the similar cluster to which the segment to be tested belongs as the cluster to be tested.

[0053] Since CNC machine tools have different operating states, the current changes of CNC machine tools in the operating states can be analyzed.

[0054] Further, in some embodiments of the present invention, Figure 2 As shown, Figure 2A schematic diagram of a process flow for obtaining the similarity of a cycle segment provided by an embodiment of the present invention. The similarity of two cycle segments is determined according to the value change and value distribution of the current data at each moment in any two cycle segments, including:

[0055] S201: Based on the DTW algorithm, calculate the DTW values ​​of any two period segments as the first difference coefficient.

[0056] Among them, the DTW algorithm, also known as the dynamic time warping algorithm, is a timing matching algorithm well known to technical personnel in this field. The change of the numerical value of the current data in the timing can be analyzed based on the DTW algorithm. The DTW values ​​of the periodic segments in the two timings are calculated by the DTW algorithm. The larger the DTW value, the lower the similarity between the two periodic segments. Therefore, the larger the value of the first difference coefficient, the more mismatched the two periodic segments are.

[0057] S202: Calculate the average of the current data values ​​at all times in each cycle segment to obtain a segment mean; and use the absolute value of the difference between the segment means of two cycle segments as a second difference coefficient.

[0058] In an embodiment of the present invention, the numerical distribution of the current data can also effectively characterize the similarity between two cycle segments. Therefore, the present invention can calculate the mean of the numerical values ​​of the current data itself at all times in each cycle segment. It can be understood that the mean characterizes the numerical characteristics of the current data, that is, the greater the difference in the mean values ​​of the current data corresponding to the two cycle segments, the greater the difference in the numerical distribution of the two cycle segments, and the greater the value of the second difference coefficient, that is, the lower the similarity of the numerical distribution of the two cycle segments.

[0059] S203: Use the absolute value of the difference between the current data values ​​at two adjacent moments in any cycle segment as the current change value corresponding to the two adjacent moments, calculate the average of the current change values ​​at all adjacent moments in each cycle segment, and obtain the segment change index of the cycle segment; use the absolute value of the difference between the segment change indexes of the two cycle segments as the third difference coefficient.

[0060] Among them, the absolute value of the difference between the numerical values ​​of the current data at two adjacent moments represents the change between the corresponding two moments. Since the time interval between the two adjacent moments is the same, it can also represent the current change rate between the two moments. The present invention calculates the current change value of every two adjacent moments and takes the average of all current change values ​​in the same cycle segment as the segment change indicator.

[0061] In an embodiment of the present invention, the segment change index is a numerical representation of the current change rate of a periodic segment. The larger the segment change index is, the faster the change rate of the current data at all moments in the periodic segment is. Therefore, the present invention calculates the difference in the segment change index to perform a similarity analysis on the current data change rates of two periodic segments.

[0062] The present invention calculates the absolute value of the difference between the segment change indicators of two cycle segments to obtain a third difference coefficient, wherein the larger the value of the third difference coefficient is, the greater the difference in the current data change rate of the two cycle segments is, that is, the lower the similarity in the number of numerical changes of the two cycle segments is.

[0063] S204: Determine the similarity between the two period segments by combining the first difference coefficient, the second difference coefficient, and the third difference coefficient.

[0064] Furthermore, in some embodiments of the present invention, the first difference coefficient, the second difference coefficient and the third difference coefficient are all negatively correlated with the similarity between the two period segments, and the value of the similarity is a normalized value.

[0065] Combined with the above steps, it can be seen that the larger the value of the first difference coefficient is, the greater the difference in the change in the timing of the two cycle segments is; the larger the value of the second difference coefficient is, that is, the lower the similarity of the value distribution of the two cycle segments is; the larger the value of the third difference coefficient is, the greater the difference in the rate of change of the current data of the two cycle segments is. Therefore, the larger the values ​​of the first difference coefficient, the second difference coefficient and the third difference coefficient are, the lower the similarity of the corresponding two cycle segments is. Therefore, when calculating the degree of similarity, the first difference coefficient, the second difference coefficient and the third difference coefficient are all negatively correlated with the degree of similarity.

[0066] Among them, a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.

[0067] In one embodiment of the present invention, the normalization processing can be specifically, for example, maximum and minimum value normalization processing, and the normalization in subsequent steps can all adopt maximum and minimum value normalization processing. In other embodiments of the present invention, other normalization methods can be selected according to the specific range of numerical values, which will not be described in detail.

[0068] That is to say, the product of the first difference coefficient, the second difference coefficient and the third difference coefficient can be calculated, the reciprocal of the product can be obtained, and then the maximum and minimum values ​​can be normalized to obtain the degree of similarity. Alternatively, the sum of the first difference coefficient, the second difference coefficient and the third difference coefficient can be calculated, the negative of the sum can be obtained, and the degree of similarity can be obtained by normalization, and there is no limitation on this.

[0069] After determining the similarity between two cycle segments, the present invention can classify each cycle segment. It can be understood that a CNC machine tool has a variety of different operating states, and the current data fluctuation of the CNC machine tool will produce corresponding changes due to the different operating states. Therefore, direct abnormal monitoring is likely to lead to the analysis of normal data fluctuations at different operating states as abnormalities. The present invention analyzes the whole to determine the more significant characteristics of the abnormal situation. First, all cycle segments need to be clustered.

[0070] Furthermore, in some embodiments of the present invention, all periodic segments are clustered according to the degree of similarity between every two periodic segments to obtain similar clusters, including: counting the degree of similarity between any two periodic segments, and based on the K-means clustering analysis algorithm, clustering all periodic segments corresponding to the degree of similarity to obtain similar clusters, wherein the number of similar clusters is calculated based on the elbow method.

[0071] Among them, the K-means clustering analysis algorithm is a density clustering algorithm well known to those skilled in the art. It takes the degree of similarity as the distance between two periodic segments. The K-means clustering analysis algorithm can effectively cluster the periodic segments. It should be noted that the number of similar clusters, that is, the K value, can be calculated by the elbow method, and the elbow method is also a calculation method well known in the art, which will not be further elaborated.

[0072] Of course, in other embodiments of the present invention, all periodic items may be clustered based on other clustering methods, which is not limited to this.

[0073] In the embodiment of the present invention, the periodic segment to which the current moment belongs is used as the segment to be tested, and the similar cluster to which the segment to be tested belongs is used as the cluster to be tested.

[0074] S103: Determine the segment significance parameter of the segment to be measured according to the similarity between the segment to be measured and other periodic segments in the cluster to be measured, and the similarity between the segment to be measured and all other periodic segments except the periodic segments in the cluster to be measured; determine the moment significance parameter of the current moment according to the change of the current data at all moments in the segment to be measured, and determine the significance index of the current moment by combining the segment significance parameter and the moment significance parameter.

[0075] In the embodiment of the present invention, after all the periodic segments are clustered, the periodic segments that show abnormal performance also show abnormal performance in the similar clusters they are in, and the moments that show abnormal performance are also abnormal in the periodic segments they are in. The present invention can analyze the significance index of each moment.

[0076] Furthermore, in some embodiments of the present invention, the segment significance parameter of the segment to be tested is determined according to the similarity between the segment to be tested and other periodic segments in the cluster to be tested, as well as the similarity between the segment to be tested and all other periodic segments except the periodic segments in the cluster to be tested, including: calculating the mean of the similarity between the segment to be tested and other periodic segments in the cluster to be tested to obtain a first mean; calculating the mean of the similarity between the segment to be tested and all other periodic segments except the periodic segments in the cluster to be tested to obtain a second mean; and taking the product of the first mean and the second mean, negatively correlating and mapping them and normalizing them as the segment significance parameter.

[0077] Among them, the larger the value of the first mean, the greater the similarity between the segment to be tested and other periodic segments in the cluster to be tested, that is, the more similar the data change characteristics of the segment to be tested and other periodic segments of the same type are, that is, under the same operating state of the CNC machine tool, the corresponding performance is more normal. The larger the value of the second mean, the higher the similarity of the current changes under different states, that is, the higher its normality.

[0078] Therefore, the present invention calculates the product of the first mean and the second mean, negatively maps and normalizes them as the segment significance parameter. That is to say, the higher the value of the segment significance parameter, the more abnormal the data fluctuation of the measured segment itself is. Based on the negative correlation method, the product of the first mean and the second mean can be calculated, and the negative number of the product can be normalized as the segment significance parameter. There is no restriction on this.

[0079] Furthermore, in some embodiments of the present invention, the moment-significant parameters at the current moment are determined based on the changes in the current data at all moments in the segment to be measured, including: calculating the absolute value of the difference between the current data at the current moment in the segment to be measured and the current data at all other moments, and averaging the difference to obtain the current current difference mean; in the segment to be measured, calculating the mean of the current data at a preset number of moments closest to the current moment to obtain the neighborhood current mean, and taking the absolute value of the difference between the neighborhood current mean and the current data at the current moment as the neighborhood current difference mean; calculating the product of the current current difference mean and the neighborhood current difference mean, and normalizing them to obtain the moment-significant parameters at the current moment.

[0080] Among them, each moment is specifically analyzed through the dimension of time, and the current current difference mean is the abnormal situation in the same measured segment. The larger the value of the current current difference mean, the greater the abnormality of the current data at the current moment in the same measured segment.

[0081] Among them, the preset number is the number of other moments within the local range of the current moment. In the embodiment of the present invention, the preset number can be specifically set to 5, or can also be adjusted according to actual monitoring needs, and there is no limitation on this.

[0082] Similarly, the current mutation at the current moment is determined by comparing the current difference at other moments in the local range. That is, the greater the value difference of the current data at the current moment in the entire test segment, and the more serious the mutation of the current data at the local moment, the more likely the current moment is an abnormal moment. In the embodiment of the present invention, the product of the current current difference mean and the neighborhood current difference mean is calculated and normalized to obtain the moment significance parameter at the current moment.

[0083] Furthermore, in some embodiments of the present invention, the segment significant parameter and the moment significant parameter can be combined to determine the significance index at the current moment. Since the higher the value of the segment significant parameter, the more abnormal the data fluctuation of the measured segment itself, and the larger the value of the moment significant parameter at the current moment, the more serious the mutation of the current data at the current moment, the segment significant parameter and the moment significant parameter are positively correlated with the significance index at the current moment, and the value of the significance index is the normalized value.

[0084] In the embodiment of the present invention, the product of the segment significant parameter and the moment significant parameter may be calculated and normalized to obtain a significance index. The larger the value of the significance index is, the more abnormal the value of the current data at the current moment is.

[0085] S104: Determine the abnormality level at the current moment according to the significance index at the current moment and the significance indexes of all moments in the similar cluster at the previous moment of the current moment, and monitor the current data of the CNC machine tool according to the abnormality level at the current moment.

[0086] In the embodiment of the present invention, the current moment may be combined with the significance index at the current moment to perform abnormal monitoring at the current moment.

[0087] Furthermore, in some embodiments of the present invention, the degree of abnormality at the current moment is determined based on the significance index at the current moment and the significance indexes of all moments in the similar cluster at the previous moment to the current moment, including: calculating the mean of the significance indexes of all moments in the similar cluster at the previous moment to the current moment to obtain a reference significance index; calculating the absolute value of the difference between the significance index at the current moment and the reference significance index, and normalizing them to obtain the degree of abnormality at the current moment.

[0088] In an embodiment of the present invention, by further analyzing the current fluctuation at the previous moment, the difference in significance indexes of all moments in the similar cluster where the current moment and the previous moment are located is used to analyze the abnormal characteristics of the current moment. The greater the difference, the greater the significance of the current moment has indeed changed, thereby determining that the abnormal situation at the current moment is greater. Therefore, the present invention calculates the absolute value of the difference between the significance index at the current moment and the reference significance index, and normalizes it to obtain the degree of abnormality at the current moment.

[0089] Furthermore, in some embodiments of the present invention, the current data of the CNC machine tool is monitored according to the abnormality level at the current moment, including: when the abnormality level at the current moment is greater than a preset abnormality threshold, the processing of the CNC machine tool is stopped and an alarm message is generated.

[0090] Among them, the preset abnormal threshold is the threshold value of the abnormal degree at the current moment. The preset abnormal threshold in the embodiment of the present invention can be specifically, for example, 0.75, and there is no limitation on this. That is to say, when the abnormal degree at the current moment is greater than 0.75, it is determined that the data at the current moment is abnormal, so that the processing work of the CNC machine tool is stopped and an alarm message is generated. The alarm message is a reminder message to warn the relevant staff. Outside the embodiment of the present invention, the alarm message can be used to control relevant buzzers, lights, speakers and other equipment to remind the relevant staff that the CNC machine tool has entered an abnormal state.

[0091] Of course, in other embodiments of the present invention, other monitoring processes can also be implemented to control the CNC machine tool to perform different operating states according to the degree of abnormality. For example, under normal circumstances, the CNC machine tool runs at full load, and when the degree of abnormality at the current moment is greater than the preset abnormality threshold, the CNC machine tool is controlled to reduce the operating power, etc. There is no restriction on this.

[0092] The present invention acquires the current data of the CNC machine tool at each moment in real time, divides all the moments into at least two cycle segments, and performs analysis based on the cycle segments, thereby avoiding the problem of treating normal current fluctuations as abnormal conditions based only on the numerical analysis of the current data. At the same time, the analysis of the cycle segments can also effectively improve the overall analysis efficiency. Since the working states of the CNC machine tool are diverse, its current also has a variety of change modes. The similarity of the cycle segments is determined according to the numerical changes and numerical distribution of the current data of the cycle segments. According to the similarity of the cycle segments, all the cycle segments are clustered to obtain similar clusters. The determination of similar clusters can effectively distinguish different states of the CNC machine tool, thereby realizing effective analysis of each state and avoiding monitoring errors caused by state changes. Afterwards, the embodiments of the present invention The significance index at the current moment is analyzed, and the significance index at the current moment is determined according to the segment significance parameter of the segment to be tested and the moment significance parameter of the current moment. The significance index at the current moment characterizes the abnormal situation of the segment to be tested and the data mutation situation at the current moment; then, according to the significance index at the current moment and the significance index of all moments in the similar cluster at the previous moment of the current moment, the degree of abnormality at the current moment is determined. After multi-layer analysis, a more reliable degree of abnormality is obtained, which reduces the influence of normal changes in the operating state of the CNC machine tool and improves the monitoring accuracy of abnormal monitoring. When the current data of the CNC machine tool is subsequently monitored according to the degree of abnormality at the current moment, a more sensitive and reliable monitoring effect can be achieved, thereby improving the stability and accuracy of the current data monitoring of the CNC machine tool.

[0093] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0094] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A real-time monitoring method for a numerical control system based on a configuration computer, characterized in that: The method comprises: Acquire the current data of the CNC machine tool at each moment in real time, and divide all moments into at least two period segments according to the value fluctuation of the current data at all moments; Determine the similarity between two cycle segments according to the numerical changes and numerical distribution of the current data at each moment in any two cycle segments; cluster all the cycle segments according to the similarity between each two cycle segments to obtain similar clusters; take the cycle segment to which the current moment belongs as the segment to be tested, and take the similar cluster to which the segment to be tested belongs as the cluster to be tested; Determine the segment significant parameter of the segment to be tested according to the similarity between the segment to be tested and other periodic segments in the cluster to be tested, and the similarity between the segment to be tested and all periodic segments other than the periodic segments in the cluster to be tested; determine the moment significant parameter at the current moment according to the change of the current data at all moments in the segment to be tested, and determine the significance index at the current moment by combining the segment significant parameter and the moment significant parameter; Determine the abnormality level at the current moment according to the significance index at the current moment and the significance indexes of all moments in the similar cluster at the previous moment of the current moment, and monitor the current data of the CNC machine tool according to the abnormality level at the current moment; Determining the similarity between two cycle segments according to the value change and value distribution of the current data at each moment in any two cycle segments includes: Based on the DTW algorithm, the DTW values ​​of any two period segments are calculated as the first difference coefficient; Calculate the average of the current data values ​​at all times in each cycle segment to obtain the segment mean; take the absolute value of the difference between the segment means of two cycle segments as the second difference coefficient; The absolute value of the difference between the current data values ​​at two adjacent moments in any cycle segment is used as the current change value corresponding to the two adjacent moments, and the average of the current change values ​​at all adjacent moments in each cycle segment is calculated to obtain the segment change index of the cycle segment; the absolute value of the difference between the segment change indexes of the two cycle segments is used as the third difference coefficient; The first difference coefficient, the second difference coefficient and the third difference coefficient are combined to determine the similarity between two period segments.

2. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The first difference coefficient, the second difference coefficient and the third difference coefficient are all negatively correlated with the similarity between two period segments, and the value of the similarity is a normalized value.

3. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: According to the similarity between every two periodic segments, all the periodic segments are clustered to obtain similar clusters, including: The similarity between any two periodic segments is counted, and based on the K-means clustering analysis algorithm, the periodic segments corresponding to all similarities are clustered to obtain similar clusters, wherein the number of similar clusters is calculated based on the elbow method.

4. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The method for determining the segment significant parameter of the segment to be tested comprises: Calculating the mean of the similarity between the segment to be tested and other periodic segments in the cluster to be tested to obtain a first mean; Calculating the mean of the similarity between the segment to be tested and all other periodic segments except the periodic segment in the cluster to be tested, to obtain a second mean; The product of the first mean and the second mean is negatively correlated and normalized and processed as a segment significance parameter.

5. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The significant parameters of the current moment include: Calculate the absolute value of the difference between the current data at the current moment and the current data at all other moments in the section to be tested, and average them to obtain the current current difference mean; In the section to be tested, the average of the current data at the preset number of moments closest to the current moment is calculated to obtain the neighborhood current average, and the absolute value of the difference between the neighborhood current average and the current data at the current moment is used as the neighborhood current difference average; The product of the current current difference mean and the neighborhood current difference mean is calculated and normalized to obtain the moment-significant parameter at the current moment.

6. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The segment significance parameter and the moment significance parameter are both positively correlated with the significance index at the current moment, and the value of the significance index is a normalized value.

7. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: Determining the abnormality degree of the current moment according to the significance index of the current moment and the significance indexes of all moments in the similar cluster at the previous moment of the current moment includes: Calculate the mean of the significance index of all moments in the similar cluster at the previous moment to obtain the reference significance index; The absolute value of the difference between the significance index at the current moment and the reference significance index is calculated, and normalized to obtain the abnormality degree at the current moment.

8. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The monitoring of the current data of the CNC machine tool according to the abnormality degree at the current moment includes: When the abnormality degree at the current moment is greater than the preset abnormality threshold, the processing work of the CNC machine tool is stopped and an alarm message is generated.

9. A method for real-time monitoring of a numerical control system based on a configuration computer as claimed in claim 1, characterized in that: The method of dividing all moments into at least two periodic segments according to the value fluctuation of the current data at all moments includes: Based on the STL time series decomposition algorithm, the current data at all times are decomposed to obtain the periodic terms; The time corresponding to the minimum point in the periodic item is used as the division time, and all the time is divided into at least two periodic segments according to the time sequence.