一种数控机床伺服电机运行状态异常诊断系统
By separating the load current and the friction current in the servo motor of CNC machine tools, and utilizing the speed-sensitive characteristics of the friction current, friction degradation can be identified in advance and future current demand can be predicted. This solves the problem of undetected friction degradation in existing technologies, realizes early warning and predictive maintenance, and improves the diagnostic accuracy and machining quality of servo motors.
Patent Information
- Application Number
- CN202611548869.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-24
AI Technical Summary
Existing servo motor anomaly diagnosis methods fail to effectively identify friction degradation, resulting in it going undetected in the early stages until the position following error exceeds the limit, which may lead to a decrease in machining quality or equipment downtime. Furthermore, they fail to effectively distinguish between load current and friction current, and are affected by changes in cutting load.
Within the normal allowable range of position following error, the load current and friction current are separated from the drive current by the separation module. Utilizing the sensitive characteristics of friction current and speed, the comparison module is compared with the baseline under the same operating conditions to determine friction degradation, predict future drive current requirements, and output an early warning before the error exceeds the limit.
This technology enables early identification of friction degradation when the position tracking error is normal, avoiding alarms before the error exceeds the limit, improving diagnostic sensitivity, reducing unplanned downtime, optimizing maintenance cycles, and improving processing quality and equipment reliability.
Smart Images

Figure CN123156779A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of CNC machine tool technology, specifically a diagnostic system for abnormal operation status of CNC machine tool servo motors. Background Technology
[0002] Current servo motor anomaly diagnosis usually uses whether the position following error exceeds the limit as the main criterion. When the position following error is within the normal allowable range, the servo motor is often considered to be operating normally.
[0003] However, in its early stages, triboelectric degradation may not yet cause position tracking errors to exceed limits, but it already requires the servo controller to output a larger drive current to maintain the same tracking accuracy. As the machining process enters lower speed ranges or more complex conditions, the triboelectric current component further increases, potentially quickly depleting the servo controller's current output reserve, ultimately leading to position tracking errors exceeding limits. If only position tracking error is used as the criterion, triboelectric degradation is masked in its early stages, only triggering an alarm when the error exceeds limits, at which point it may already cause a decline in machining quality or equipment downtime.
[0004] Furthermore, existing methods do not effectively distinguish between the load current component and the friction current component in the drive current, and changes in the cutting load can interfere with the diagnostic results; they do not consider that the current output capability of the servo controller will be derated with changes in temperature, duty cycle, and bus voltage; they do not predict the drive current required to maintain normal position following error at the current speed based on the relationship between the friction current component and the decrease in speed; and they are difficult to issue early warnings before the position following error exceeds the normal allowable range.
[0005] Therefore, there is an urgent need for a diagnostic system for abnormal operating status of CNC machine tool servo motors that can perform friction degradation diagnosis and predict future drive current even when the position following error is still within the normal allowable range. Summary of the Invention
[0006] The purpose of this invention is to provide a diagnostic system for abnormal operation of servo motors in CNC machine tools, so as to solve the problems mentioned in the background art.
[0007] The technical solution of this application embodiment is implemented as follows: This application provides a diagnostic system for abnormal operating status of a servo motor in a CNC machine tool, including: The acquisition module is used to acquire the position following error of the servo motor during CNC machining, and the drive current output by the servo controller to maintain the position following error; The separation module is used to collect the drive current of the servo motor at different speeds within a preset speed range when the position following error is within the normal allowable range, and to separate the load current component and the friction current component from the drive current based on the difference in the drive current at different speeds, wherein the load current component does not increase as the speed decreases, and the friction current component increases as the speed decreases. The comparison module is used to compare the friction current component with a normal baseline under the same operating conditions. When the friction current component deviates from the normal baseline by a factor exceeding a preset threshold, it is determined that the servo motor has frictional degradation. The prediction module is used to predict the drive current required to maintain the position following error normally at the current processing speed, based on the relationship between the increase of the friction current component and the decrease of speed. The early warning module is used to output an early warning before the position following error exceeds the normal allowable range when the required drive current at the unprocessed speed exceeds the current output capability reserve of the servo controller. The position following error is within the normal allowable range and is not used as a basis for ruling out frictional degradation of the servo motor.
[0008] In one exemplary embodiment of this disclosure, the normal baseline under the same operating conditions is determined in the comparison module in the following manner: When the servo motor is in a known healthy state, under the same processing conditions and the same preset speed range, the drive current of the servo motor is collected and the healthy friction current component is separated, and the healthy friction current component is used as the normal baseline under the same conditions. When selecting the normal baseline under the same working condition from the historical processing data of the servo motor, the historical data in which the current output capability reserve of the servo controller has not been consumed is selected.
[0009] In one exemplary embodiment of this disclosure, the separation module, wherein separating the load current component and the friction current component from the drive current, includes: Under the condition that the servo motor executes the same CNC program segment and the same cutting load, the drive current at different speeds is collected. Based on the difference in driving current at different speeds, the current component that does not change with speed is determined as the load current component, and the current component that increases with decreasing speed is determined as the friction current component.
[0010] In one exemplary embodiment of this disclosure, the prediction module, based on the relationship between the increase of the frictional current component and the decrease in speed, predicts the drive current required to maintain the position following error at the current unprocessed speed, including: Based on the nonlinear relationship between the frictional current component and the speed, the friction-speed characteristic curve of the servo motor under the current working condition is obtained by fitting. Based on the friction-velocity characteristic curve, the friction current component at the unprocessed speed is extrapolated, and combined with the load current component, the required drive current at the unprocessed speed is obtained.
[0011] In one exemplary embodiment of this disclosure, the current output capability reserve in the early warning module is determined according to the following method: Obtain the rated current, current temperature, current duty cycle, and bus voltage of the servo controller; Based on the deviation between the current temperature and the rated temperature, and the deviation between the current duty cycle and the rated duty cycle, the rated current is derating to obtain the current output capability reserve of the servo controller under the current operating conditions. The current output capability reserve decreases as the current temperature increases and / or the current duty cycle increases.
[0012] In one exemplary embodiment of this disclosure, a strategy adjustment module is further included, for: When the drive current required at the unprocessed speed exceeds the current output capacity reserve of the servo controller, a warning level is determined based on the degree to which the drive current required at the unprocessed speed exceeds the current output capacity reserve; Based on the warning level and the position of the unprocessed segment in the CNC program, a machining strategy adjustment instruction is generated. The machining strategy adjustment instruction is used to reduce the feed rate change rate or adjust the machining parameters before the unprocessed segment arrives, so that the drive current required at the unprocessed speed does not exceed the current output capacity reserve.
[0013] In one exemplary embodiment of this disclosure, the preset speed range is the low-speed range of the servo motor. In the low-speed range, the friction current component increases monotonically as the speed decreases, and the proportion of the friction current component in the drive current is greater than the proportion of the load current component.
[0014] In one exemplary embodiment of this disclosure, a degradation process recording module is further included, for: When the deviation of the triboelectric current component relative to the normal baseline under the same working condition exceeds the preset threshold, a triboelectric degradation indicator is output while the position following error is still within the normal allowable range. The triboelectric degradation marker is associated with the warning and recorded to form a degradation process record from the determination of triboelectric degradation to the depletion of current output capacity reserve.
[0015] In one exemplary embodiment of this disclosure, the comparison module includes a first baseline and a second baseline under the same operating conditions. The first baseline is the triboelectric current component extracted from historical data of the servo motor under known health conditions; The second baseline is the statistical value of the triboelectric current component of the same type of servo motor under the same processing conditions; When the deviation between the first baseline and the second baseline exceeds a preset inherent difference threshold, it is determined that the servo motor has inherent frictional differences. Using the first baseline as a benchmark and the second baseline as a reference, the degree of deviation of the frictional current component relative to the first baseline is used to determine acquired degradation, and the degree of deviation of the frictional current component relative to the second baseline is used to determine the overall health level of the servo motor. When the historical data of the servo motor is insufficient, the second baseline is used as the initial value of the first baseline, and the first baseline is gradually updated in subsequent processing.
[0016] In one exemplary embodiment of this disclosure, the early warning module is further configured to: When issuing the warning, the current temperature, current duty cycle, and deviation of the bus voltage from the rated value are obtained; The cause of the early warning is attributed based on the temporal relationship between the friction current component deviation and the temperature deviation, duty cycle deviation and bus voltage deviation. When the temperature deviation, duty cycle deviation, or bus voltage deviation occurs before the friction current component deviation, it is determined that the warning is caused by a temporary reduction in the controller's current output capability reserve. The output capability reserve is restored, and the prediction is re-executed after the current temperature, current duty cycle, or bus voltage recovers. When the deviation of the frictional current component occurs before the deviation of temperature, duty cycle and bus voltage, it is determined that the warning is caused by the frictional degradation of the servo motor, and a frictional degradation warning is output.
[0017] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects: This invention can separate the frictional current component, which increases with decreasing speed, from the drive current when the position tracking error is still within the normal allowable range. It then compares this component with a normal baseline under the same working conditions, capturing frictional degradation before the error exceeds the limit. This transforms the alarm from triggering an alarm after the error exceeds the limit to providing early warning when the error is within the normal range. By separating the load current component and the frictional current component, the interference of cutting load changes on the drive current is eliminated. Utilizing the characteristic that the frictional current component is sensitive to speed changes at low speeds and may have a larger proportion than the load current component, the early degradation of friction pairs such as guide rails, lead screws, or bearings is highlighted, improving diagnostic sensitivity and engineering practicality. By fitting a friction-speed characteristic curve based on the relationship between the increase of the frictional current component and decreasing speed, the frictional current component at the unprocessed speed is extrapolated. Combined with the load current component, the required drive current for the future is obtained. This allows for prediction of the risk of insufficient current output capability of the servo controller before the unprocessed section is reached, reserving time to reduce the rate of change in feed rate or adjust processing parameters, thus avoiding processing interruptions, tool damage, or workpiece scrap. Real-time assessment of the servo controller's current output capacity reserve under current temperature, duty cycle, and bus voltage avoids misjudgments caused by relying solely on rated current. Based on the degree of exceedance, a warning level is determined and processing strategy adjustment instructions are generated. Processing parameters are proactively adjusted before the processing stage is reached, ensuring that the future required drive current does not exceed the current output capacity reserve, preventing processing interruptions or accuracy deviations due to accumulated friction degradation. By using both first and second baselines, considering individual servo motor differences and the overall health level of the same model, inherent friction differences are identified, and a usable baseline is quickly established when historical data is insufficient. Attribution is performed based on the temporal relationship between friction current component deviations and temperature, duty cycle, and bus voltage deviations, distinguishing between temporary reductions in the controller's current output capacity reserve and servo motor friction degradation, reducing unnecessary downtime maintenance and preventing the omission of true friction degradation. By outputting friction degradation indicators and creating a degradation process record, early minor friction degradation is linked to later severe warnings, providing a data foundation for analyzing the rate of friction degradation development, predicting remaining service life, and optimizing maintenance cycles, thus reducing the risk of unplanned downtime. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the system framework structure of the present invention. Detailed Implementation
[0019] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Please see Figure 1 This application provides a diagnostic system for abnormal operation of a servo motor in a CNC machine tool, comprising: an acquisition module for acquiring the position following error of the servo motor during CNC machining, and the drive current output by the servo controller to maintain the position following error; a separation module for acquiring the drive current of the servo motor at different speeds within a preset speed range when the position following error is within the normal allowable range, and separating the load current component and the friction current component from the drive current based on the difference in the drive current at different speeds, wherein the load current component does not increase with decreasing speed, and the friction current component increases with decreasing speed; and a comparison module for comparing the acquired position following error with the position following error. The friction current component is compared with a normal baseline under the same operating conditions. When the deviation of the friction current component relative to the normal baseline exceeds a preset threshold, it is determined that the servo motor has friction degradation. The prediction module is used to predict the drive current required to maintain the position following error at the current-unprocessed speed based on the relationship between the increase of the friction current component and the decrease of speed. The early warning module is used to output an early warning before the position following error exceeds the current output capacity reserve of the servo controller when the drive current required at the current-unprocessed speed exceeds the normal allowable range. The position following error being within the normal allowable range is not used as a basis for excluding the existence of friction degradation in the servo motor.
[0021] Traditional servo motor anomaly diagnosis systems typically use position tracking error exceeding limits as the trigger condition, assuming that normal position tracking error indicates normal servo motor operation. However, in its early stages, friction degradation often hasn't yet caused position tracking error to exceed limits, but it already forces the servo controller to output a larger drive current to maintain the same tracking accuracy. If only position tracking error is used as the criterion, friction degradation is masked in the early stages, only triggering an alarm when the error exceeds limits, which may already lead to decreased processing quality or equipment downtime. Based on the above physical laws, this invention employs the following diagnostic logic: when the position tracking error is still within the normal allowable range, the friction current component that increases with decreasing speed is separated from the drive current and compared with the normal baseline under the same operating conditions, thereby capturing friction degradation before the error exceeds limits; furthermore, based on the relationship between the increase of the friction current component and decreasing speed, the drive current required to maintain normal position tracking error at the current processing speed is predicted, and it is determined whether it exceeds the current output capacity reserve of the servo controller. By using the above-mentioned timing-based pre-diagnosis, the abnormal diagnosis can be transformed from "alarm after error exceeds the limit" to "early warning when the error is normal". The sensitivity of the triboelectric current component to speed is used to amplify the early degradation signal, avoid missed diagnosis due to normal position following error, and gain sufficient time for predictive maintenance and machining strategy adjustment, thereby improving the reliability of CNC machine tool operation and machining quality.
[0022] Specifically, this system can be executed by a processor in a CNC system, servo drive, or host computer. The acquisition, separation, comparison, prediction, and early warning modules can be integrated into the same processor or distributed across the CNC system, servo drive, and host computer, interacting via fieldbus, industrial Ethernet, or shared memory. The sampling period for position tracking error and drive current can be set from 1ms to 10ms, preferably 1ms; the sampled signal is stored in a ring buffer after being low-pass filtered at a cutoff frequency of 100Hz to 500Hz. The drive current uses the q-axis current from the servo drive's current loop feedback. The rated current, current output capability reserve, and required drive current all use the same current definition and dimensions to avoid misjudgments caused by inconsistent dimensions.
[0023] The aforementioned q-axis current can be directly output by the servo driver or calculated from the three-phase current via Park transformation. The normal allowable range of position tracking error can be set according to the machine tool accuracy requirements. For example, for precision machining tools, it is taken as 1 / 5 to 1 / 3 of the workpiece tolerance zone, and for ordinary machining tools, it is taken as 1 / 3 to 1 / 2 of the workpiece tolerance zone. This normal allowable range can be calibrated through machine tool accuracy testing: machining workpieces with different tolerance zones separately, recording the relationship between position tracking error and machining quality, and using the maximum position tracking error when the machining quality is qualified and no chatter marks or out-of-tolerance errors appear as the upper limit of the normal allowable range.
[0024] Furthermore, in terms of system architecture, the output of the acquisition module is connected to the input of the separation module. The output of the separation module is connected to the inputs of the comparison module and the prediction module, respectively. The outputs of the comparison module and the prediction module are connected to the input of the early warning module. The output of the early warning module is connected to the inputs of the strategy adjustment module and the degradation process recording module. These modules can be implemented by a processor executing computer programs, or by application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or a combination of hardware and software. When a distributed deployment is adopted, the modules can interact with each other via fieldbus, industrial Ethernet, or shared memory. A unified timestamp can be used to synchronously sample position tracking error, drive current, temperature, duty cycle, and bus voltage to ensure the accuracy of subsequent timing attribution.
[0025] Furthermore, the unified timestamp can be implemented using the IEEE 1588 precision time protocol or a hardware-triggered synchronization method, with a timestamp accuracy better than 1ms. When implemented using an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA), the acquisition and separation modules can be configured within the FPGA to leverage its parallel processing capabilities for high-speed current sampling and component separation. The comparison, prediction, early warning, strategy adjustment, and degradation process recording modules can be configured within the processor to perform baseline comparison, curve fitting, future current prediction, early warning level determination, and timing attribution operations. The aforementioned hardware and software partitioning can be flexibly adjusted according to real-time requirements and cost constraints.
[0026] Specifically, the core idea of this system is as follows: Traditional servo motor anomaly diagnosis systems typically use whether the position tracking error exceeds the limit as the main criterion. When the position tracking error is still within the normal allowable range, the servo motor is often considered to be operating normally. However, in the early stages, triboelectric degradation may not yet cause the position tracking error to exceed the limit, but it already requires the servo controller to output a larger drive current to maintain the same tracking accuracy. As lower speed ranges or more complex operating conditions appear during processing, the triboelectric current component further increases, which may quickly deplete the current output capacity reserve of the servo controller, eventually leading to the position tracking error exceeding the limit. Therefore, this system performs triboelectric degradation diagnosis and predicts future drive current even when the position tracking error is still within the normal range, achieving early warning.
[0027] It should be noted that the position following error refers to the difference between the commanded position and the actual position of the servo motor. The commanded position can be obtained by interpolation calculations of the CNC system, and the actual position can be acquired in real time by position detection devices such as encoders and linear rulers. The drive current refers to the current value output by the servo controller to drive the servo motor and maintain the position following error, which can be obtained by the current loop feedback of the servo driver. As an example, the sampling period for the position following error and the drive current can be set to 1ms to 10ms, and low-pass filtering can be used to remove high-frequency noise. The normal allowable range of the position following error can be set according to the machine tool accuracy requirements, for example, ±0.01mm, ±0.005mm, or determined according to the specific machining process.
[0028] Specifically, for precision machining tools, the normal allowable range can be taken as 1 / 5 to 1 / 3 of the workpiece tolerance zone; for general machining tools, the normal allowable range can be taken as 1 / 3 to 1 / 2 of the workpiece tolerance zone. The above conversion relationship can be calibrated according to the machine tool accuracy level, machining process requirements, and servo control performance. Further, the calibration method can employ machine tool accuracy testing: machining is performed on workpieces with different tolerance zones, and the relationship between position following error and machining quality is recorded. The maximum position following error when the machining quality is acceptable and no chatter marks or out-of-tolerance errors appear is taken as the upper limit of the normal allowable range, and the proportional coefficient between the normal allowable range and the workpiece tolerance zone is determined accordingly. When the position following error is within this normal allowable range, the system continues to perform friction current component separation, baseline comparison, and future drive current prediction, without stopping the diagnosis or elimination of possible friction degradation simply because the position following error is normal.
[0029] Furthermore, in the separation module, separating the load current component and the friction current component from the drive current includes: under the condition that the servo motor executes the same CNC program segment and the cutting load is the same, collecting the drive current at different speeds; based on the difference in the drive current at different speeds, determining the current component that does not change with speed as the load current component, and determining the current component that increases with decreasing speed as the friction current component.
[0030] In practice, to obtain drive current at different speeds under the conditions of "the same CNC program segment and the same cutting load", one or a combination of the following methods can be used: In the same CNC program segment, the tool, depth of cut, width of cut, spindle speed and cooling conditions are kept unchanged. The actual feed rate is adjusted in stages within the preset low speed range only by the feed rate. For example, the feed rate is set to 20%, 40%, 60%, 80% and 100% in sequence, and the drive current during stable machining at each stage is collected. Insert low-speed diagnostic sub-segments before and after the same CNC program segment. The diagnostic sub-segments use the same cutting parameters and the same cutting load as the main program segment, only changing the feed rate. Multiple workpieces or multiple passes are machined repeatedly using the same cutting parameters. Different feed rates are set for each pass, and the average value of the drive current during the stable cutting load segment of each pass is taken. Perform low-speed scanning under no-load or constant cutting load simulation devices, and then correct the scanning results with actual machining data under the same working conditions. Regardless of the method used, it should be ensured that the speed points involved in the separation calculation correspond to the same or basically the same cutting load, and that the servo motor has entered a steady state at each speed point to avoid interference with the drive current during acceleration and deceleration.
[0031] Furthermore, the cutting load at each speed point can be confirmed to be consistent, with a deviation not exceeding 5%, by using a cutting force sensor, spindle power, or servo load rate monitoring.
[0032] Specifically, the same program segment or program segment with the same cutting conditions can be selected in the CNC program to keep the cutting load basically consistent and avoid interference from changes in cutting force on the drive current. Then, multiple speed points are set within a preset speed range, such as 5, 8, or 10 speed points, and the drive current of the servo motor is collected at each speed point. Since the load current component is mainly related to the cutting load and gravity load, it does not increase with decreasing speed under the same cutting load conditions; while the friction current component is related to guide rail friction, lead screw friction, bearing friction, etc., and usually increases with decreasing speed, especially at low speeds. Therefore, by performing differential calculations, least squares fitting, or model identification on the drive current at different speeds, the drive current can be decomposed into load current components and friction current components.
[0033] In one implementation, a drive current model can be established: Drive current = load current component + friction current component; In this model, both the driving current and the frictional current components are functions of velocity. Under the same cutting load conditions, the load current component does not increase with decreasing velocity, while the frictional current component increases with decreasing velocity. The frictional current components can be represented using the Stribeck model, exponential model, or polynomial model, for example: Tribocurrent component = (negative second fitting parameter × velocity) power of the first fitting parameter × natural constant + third fitting parameter; The first, second, and third fitting parameters are the fitting parameters. By collecting the drive current at multiple speed points, the load current component and the friction current component can be identified using the least squares method. Since the load current component does not increase with decreasing speed, while the friction current component increases with decreasing speed, the portion of the fitting result that does not change with speed can be taken as the load current component, and the portion that increases with decreasing speed can be taken as the friction current component.
[0034] To facilitate implementation by those skilled in the art, the above-mentioned triboelectric current component model is explained as follows.
[0035] The complete relationship between the triboelectric current component and the speed of a servo motor can be represented by the Stribeck model: Frictional current component = Coulomb frictional current component + (static frictional current component - Coulomb frictional current component) × natural constant (negative (velocity / Stribeck velocity) shape exponent power) + viscous friction coefficient × velocity. Among them, the frictional current component is a function of velocity; the Coulomb frictional current component corresponds to the frictional current component that tends to stabilize at higher velocities; the static frictional current component corresponds to the frictional current component when the velocity approaches zero; the Stribeck velocity characterizes the velocity scale of the transition from boundary lubrication to mixed lubrication; the shape index is usually taken as 1 or 2, preferably 1; the viscous friction coefficient corresponds to the viscous frictional current component that increases linearly with velocity.
[0036] Within the low-speed diagnostic range of the servo motor in a CNC machine tool, i.e., when the speed is between 1% and 30% of the rated speed and much lower than the Stribeck speed, the viscous friction term "viscous friction coefficient × speed" is much smaller than the exponential and coulomb terms and can be ignored. The quantitative judgment condition is: the viscous friction term is less than 5% of the total frictional current component. The above complete model simplifies to: Friction current component = Coulomb friction current component + (static friction current component - Coulomb friction current component) × natural constant (negative (velocity / Stribeck velocity) to the power of 1). Let the first fitting parameter = static friction current component - Coulomb friction current component, the second fitting parameter = 1 / Stribeck velocity, and the third fitting parameter = Coulomb friction current component, then we obtain the aforementioned simplified form: Tribocurrent component = (negative second fitting parameter × velocity) power of the first fitting parameter × natural constant + third fitting parameter; Therefore, the physical meaning of the aforementioned "first fitting parameter, second fitting parameter, and third fitting parameter" should be clearly defined as follows: the first fitting parameter is equal to the difference between the static friction current component and the Coulomb friction current component; the second fitting parameter is equal to the reciprocal of the Stribeck velocity; and the third fitting parameter is equal to the Coulomb friction current component.
[0037] The typical value ranges for each parameter are as follows: Based on the rated current of the servo controller, the Coulomb friction current component, i.e., the third fitting parameter, ranges from 2% to 20% of the rated current, preferably from 5% to 15% of the rated current; the static friction current component ranges from 10% to 50% of the rated current, preferably from 15% to 35% of the rated current; the Stribeck speed ranges from 10 rpm to 200 rpm, preferably from 30 rpm to 100 rpm; the shape index is 1 or 2, preferably 1; the viscous friction coefficient is negligible in the low-speed range, and its value ranges from 0.001 A / rpm to 0.01 A / rpm during calibration across the entire speed range. These ranges can be adjusted through experimental calibration based on the servo motor model, transmission chain structure, and lubrication conditions.
[0038] The parameter identification method is as follows: Under the same cutting load conditions, at least 5 speed points are collected within a preset low-speed range, preferably 6 to 10 speed points, such as 100 rpm, 200 rpm, 300 rpm, 400 rpm, and 500 rpm; for each speed point, the average value of the driving current during the stable machining segment is taken, and the friction current component is separated according to the aforementioned method; with speed as the independent variable and the friction current component as the dependent variable, the simplified exponential model above is fitted using the least squares method. The initial fitting values can be selected as follows: the third fitting parameter is the friction current component corresponding to the highest speed point; the first fitting parameter is the difference between the friction current component at the lowest speed point and the third fitting parameter; the second fitting parameter is 1 divided by the first speed scale, where the first speed scale is the speed corresponding to the friction current component decaying from (first fitting parameter + third fitting parameter) to 37% of (first fitting parameter + third fitting parameter). The goodness of fit should be no less than 0.95; if it is less than 0.95, add speed points, remove outliers, or narrow the speed range and refit; if the goodness of fit is less than 0.90 for three consecutive sampling periods, output a sensor or data anomaly message.
[0039] As an example, a servo motor has a rated current of 20A and a rated speed of 2000rpm. The frictional current components collected at 100rpm, 200rpm, 300rpm, 400rpm, and 500rpm are 3.5A, 2.8A, 2.5A, 2.3A, and 2.1A, respectively. The fitting parameters are: first fitting parameter = 4.5A, second fitting parameter = 0.01, and third fitting parameter = 1.8A. That is, the static frictional current component = 6.3A, the Coulomb frictional current component = 1.8A, and the Stribeck speed = 100rpm. The goodness of fit is 0.98. Therefore, at 100 rpm, the friction current component is approximately 3.46 A (1.8 + 4.5 × natural constant to the power of (-0.01 × 100)). At 500 rpm, the friction current component is approximately 1.83 A (1.8 + 4.5 × natural constant to the power of (-0.01 × 500)). This is consistent with the actual law that the friction current component increases as the speed decreases in the low-speed range.
[0040] It is important to emphasize that this invention does not simply monitor the absolute value of the drive current. Instead, it utilizes the difference in drive current at different speeds under the same cutting load conditions to decompose the drive current into a load current component that does not increase with decreasing speed and a friction current component that increases with decreasing speed. This decomposition isolates the interference of cutting load variations on the drive current, making friction degradation information stand out from the drive current. Since the friction current component is particularly sensitive to speed changes at low speeds, and its proportion may be larger than the load current component, even if the position following error remains normal, an excessive friction current component can directly reflect the degradation of friction pairs such as guide rails, lead screws, or bearings. Through this current component separation, early identification of friction degradation can be achieved using the existing current feedback of the servo controller without adding additional sensors, improving diagnostic sensitivity and engineering practicality.
[0041] Furthermore, the preset speed range can be the low-speed range of the servo motor. Within this low-speed range, the frictional current component increases monotonically as the speed decreases, and the proportion of the frictional current component in the drive current is greater than the proportion of the load current component. For example, the low-speed range can be set to 1% to 30% of the rated speed, or to 50 rpm to 500 rpm, depending on the servo motor model, transmission chain structure, and processing conditions. Within the low-speed range, the frictional current component is more sensitive to speed changes, and its value typically increases significantly, potentially even exceeding that of the load current component. This improves the sensitivity of friction degradation diagnosis. By selecting the low-speed range as the preset speed range, the current changes caused by friction degradation can be amplified, preventing the load current component from masking the diagnostic results, thereby improving the accuracy of early friction degradation identification.
[0042] Furthermore, by limiting the preset speed range to the low-speed segment, and utilizing the characteristic that the frictional current component monotonically increases with decreasing speed and has a larger proportion than the load current component in the low-speed segment, the frictional degradation signal can be made dominant in the driving current. Compared with diagnosis in the high-speed segment, diagnosis in the low-speed segment can significantly improve the signal-to-noise ratio and avoid the load current component masking the frictional degradation information. Through the above speed range selection, the requirement for current sampling accuracy can be reduced under the same diagnostic accuracy requirements, while improving the detectability of early and weak frictional degradation, providing more reliable frictional current component data for subsequent baseline comparison and future current prediction.
[0043] Furthermore, in the comparison module, the normal baseline under the same working condition is determined in the following way: when the servo motor is in a known healthy state, under the same processing conditions and the same preset speed range, the drive current of the servo motor is collected and the healthy friction current component is separated, and the healthy friction current component is used as the normal baseline under the same working condition; wherein, when the normal baseline under the same working condition is selected from the historical processing data of the servo motor, the historical data in which the current output capability reserve of the servo controller has not been consumed is selected.
[0044] When selecting historical processing data, filtering conditions can be set: drive current less than 70% of rated current, servo controller temperature lower than rated temperature, duty cycle lower than rated duty cycle, bus voltage within ±5% of rated voltage, and no warning records or friction degradation indicators during the historical period. Only historical data that meets the above conditions will be used to extract the normal baseline for the same operating condition. If there are no records in the historical data that meet the above conditions for a certain operating condition, the first baseline for that operating condition will not be established temporarily, or the second baseline of the same model servo motor will be used as the initial baseline.
[0045] By selecting historical data with undiminished current output capacity reserves as the normal baseline under the same operating conditions, it is ensured that the baseline reflects the frictional characteristics of the servo motor when it is healthy and the controller has sufficient capacity. This avoids mistaking current anomalies caused by insufficient controller capacity for a healthy baseline. This baseline screening mechanism effectively isolates the influence of external factors such as temperature, duty cycle, and bus voltage on the drive current, allowing subsequent friction degradation judgments to be based on pure frictional characteristics, thereby reducing false alarm rates and improving the reliability of diagnostic results. Specifically, drive current under the same operating conditions and speed range can be collected during the stages of servo motor new installation, confirmed health after maintenance, or historical stable operation without warning records. The healthy frictional current component is obtained according to the aforementioned separation method and stored as the normal baseline under the same operating conditions. The normal baseline under the same operating conditions can be databased according to operating conditions, such as indexed by program segment number, cutting load, spindle speed, feed rate range, temperature range, etc. When selecting historical machining data as the baseline, historical data with undiminished current output capacity reserves of the servo controller should be selected. By selecting historical data that has not been consumed, it can be ensured that the baseline reflects the friction characteristics of the servo motor when it is healthy and the controller has sufficient capability, thus avoiding mistaking abnormal current caused by insufficient controller capability for a healthy baseline.
[0046] Furthermore, in the prediction module, predicting the drive current required to maintain the normal position following error at the unprocessed speed based on the relationship between the friction current component and the speed decrease includes: fitting the friction-speed characteristic curve of the servo motor under the current operating condition based on the nonlinear relationship between the friction current component and the speed; extrapolating the friction current component at the unprocessed speed based on the friction-speed characteristic curve, and combining it with the load current component to obtain the drive current required at the unprocessed speed.
[0047] When fitting the friction-velocity characteristic curve, at least 5 velocity points should be collected within a preset velocity range, preferably 6 to 10. Least squares fitting or robust regression fitting should be used, with a goodness of fit of at least 0.95. If the goodness of fit is below 0.95, the number of velocity points should be increased, outliers removed, or the velocity range narrowed before refitting. When extrapolating the unprocessed velocity, the unprocessed velocity should not be lower than 50% of the lowest collected velocity. If it is lower than this limit, conservative extrapolation should be used, or the friction current component corresponding to the closest lowest velocity should be used for estimation. If fitting fails or data is abnormal, a data abnormality warning should be output, and a temporary prediction should be made using the valid curve from the previous cycle or a second baseline under the same operating conditions.
[0048] The method for determining the unprocessed speed is as follows: analyze the feed speed command of the next program segment that has not yet been executed in the CNC program, combine the current feed rate, the multi-axis combined speed and the lowest stable feed speed of the program segment, and take the lowest stable speed expected to appear in the program segment as the unprocessed speed; if the next program segment is a variable speed segment, then take the lowest stable speed among them; if it is a multi-axis linkage, then determine it according to the lowest equivalent speed among the combined speeds of each axis.
[0049] Specifically, after separating the load current component and the friction current component, the friction current components corresponding to multiple speed points can be obtained. Then, with speed as the independent variable and the friction current component as the dependent variable, a nonlinear fitting method is used to obtain the friction-speed characteristic curve. The nonlinear fitting method may include exponential fitting, polynomial fitting, spline interpolation, or Stribeck model fitting. The unprocessed speed can be determined based on the program segment that has not yet been executed in the CNC program, such as from the feed rate command of the next program segment, the feed rate, the linkage between the spindle speed and the feed rate, or extracted from the machining process parameters. For example, if the current machining speed is 500 rpm and the next unprocessed speed is 100 rpm, the friction current component will increase significantly at 100 rpm. By extrapolating the friction-speed characteristic curve to obtain the friction current component at the unprocessed speed, and then combining it with the load current component under the current working condition, the required drive current at the unprocessed speed can be obtained. The required drive current at the unprocessed speed = load current component + friction current component at the unprocessed speed.
[0050] One of the core inventive aspects of this invention lies in its approach: instead of waiting until the servo motor actually enters a low-speed or high-friction condition to determine if the drive current exceeds the limit, it extrapolates the frictional current component at the speed before machining based on the friction-speed characteristic curve fitted under the current condition, and calculates the required drive current in advance. This proactive prediction allows the servo controller to anticipate the risk of insufficient current output before the machining phase is reached. Especially for upcoming low-speed, variable-speed, or multi-axis linkage phases in the CNC program, this prediction can expose potential risks in advance, preventing a sudden increase in the frictional current component due to speed reduction during machining, which could lead to a sudden exceedance of the position tracking error. This proactive prediction allows for early warning before the error exceeds the limit, providing sufficient time to reduce the rate of change in feed rate or adjust machining parameters, thereby avoiding machining interruptions, tool damage, or workpiece scrap, and improving the continuity and safety of the machining process.
[0051] Furthermore, in the early warning module, the current output capability reserve is determined as follows: the rated current, current temperature, current duty cycle, and bus voltage of the servo controller are obtained; based on the deviation between the current temperature and the rated temperature, and the deviation between the current duty cycle and the rated duty cycle, the rated current is derated to obtain the current output capability reserve of the servo controller under the current operating conditions; wherein, the current output capability reserve decreases as the current temperature increases and / or the current duty cycle increases.
[0052] In practical implementation, the current temperature can be acquired by the temperature sensor built into the servo controller's power module, the current duty cycle can be obtained by statistical analysis of the servo controller's PWM modulation signal, and the bus voltage can be obtained by the DC bus voltage sampling circuit. The sampling period of the above signals can be the same as that of the position following error and the drive current, both being 1ms, and they are used for derating calculations after being low-pass filtered. The temperature derating factor, duty cycle derating factor, and bus voltage derating factor can be pre-calibrated through servo controller temperature rise test, duty cycle loading test, and bus voltage pull-off test, and a derating factor table can be formed. During actual operation, the corresponding derating factor can be obtained by looking up the table or interpolating based on the current temperature, current duty cycle, and current bus voltage. Furthermore, the drive current can be obtained by directly outputting the q-axis current feedback value from the servo driver, or by calculating the three-phase current through Park transformation.
[0053] Specifically, the current output capability of a servo controller is not constant but varies with factors such as temperature, duty cycle, and bus voltage. The servo controller's rated current, rated temperature, rated duty cycle, rated bus voltage, as well as the current temperature, current duty cycle, and current bus voltage, can be obtained. Then, the rated current is derating based on temperature and duty cycle deviations. As an example, the following derating model can be used: Current output capacity reserve = rated current × temperature derating factor × duty cycle derating factor × bus voltage derating factor; in: Temperature derating factor = 1 - Temperature derating sensitivity factor × (Current temperature - Rated temperature) / Rated temperature; Duty cycle derating factor = 1 - Duty cycle derating sensitivity factor × (Current duty cycle - Rated duty cycle) / Rated duty cycle; Bus voltage derating factor = Current bus voltage / Rated bus voltage; Among them, the temperature derating sensitivity coefficient and the duty cycle derating sensitivity coefficient are derating factors, which can be determined according to the servo controller manual or experimental calibration. For example, the temperature derating sensitivity coefficient is 0.3 and the duty cycle derating sensitivity coefficient is 0.2. When the current temperature increases, the current duty cycle increases, or the bus voltage decreases, the current output capability reserve decreases accordingly. In this way, the actual usable current output capability of the servo controller under the current operating conditions can be evaluated in real time, avoiding misjudgments caused by judging solely based on the rated current.
[0054] To facilitate implementation by those skilled in the art, the sensitivity coefficient in the above-mentioned rate reduction model is explicitly explained as follows: The typical range for the temperature derating sensitivity coefficient is 0.2 to 0.5, preferably 0.25 to 0.35; the typical range for the duty cycle derating sensitivity coefficient is 0.1 to 0.3, preferably 0.15 to 0.25. These coefficients can be obtained through the following calibration test: Under rated bus voltage and rated duty cycle conditions, the servo controller is continuously outputting the maximum current at different ambient temperatures or different power module temperatures. The maximum output current value when the temperature reaches steady state is recorded. A linear regression is performed with temperature as the independent variable and maximum output current as the dependent variable. The absolute value of the resulting slope multiplied by the rated temperature and divided by the rated current is the temperature derating sensitivity coefficient. The duty cycle derating sensitivity coefficient can be obtained similarly. Under rated temperature and rated bus voltage conditions, the servo controller is continuously outputting the maximum current at different duty cycles. The steady-state maximum output current value is recorded, and a linear regression is performed. If the servo controller manual provides a derating curve, the above coefficients can also be obtained directly by fitting the derating curve. The bus voltage derating factor can be directly calculated as the ratio of the current bus voltage to the rated bus voltage. When the bus voltage is lower than 90% of the rated voltage, it can be further multiplied by an additional safety factor of 0.95 to 0.98. For example, if the rated current is 20A, the current temperature is 10℃ higher than the rated temperature (60℃), and the temperature derating sensitivity factor is 0.3, then the temperature derating factor = 1 - 0.3 × 10 / 60 = 0.95; the current duty cycle is 10% higher than the rated duty cycle, and the duty cycle derating sensitivity factor is 0.2, then the duty cycle derating factor = 1 - 0.2 × 10% / 100% = 0.98; the current bus voltage is 95% of the rated voltage, then the bus voltage derating factor = 0.95; the current output capacity reserve = 20 × 0.95 × 0.98 × 0.95 ≈ 17.7A.
[0055] It should be noted that in the above derating model, temperature derating and duty cycle derating can be used independently or in combination with bus voltage derating. The scheme described in claim 5 includes at least temperature derating and duty cycle derating, and bus voltage derating can be further added as a preferred embodiment.
[0056] Another core innovation of this invention lies in its real-time assessment of the servo controller's current output capability reserve under current temperature, duty cycle, and bus voltage, in addition to considering the servo motor's own frictional degradation. Traditional systems often use rated current as the judgment threshold, ignoring the decrease in the controller's actual usable current caused by increased temperature, increased duty cycle, or decreased bus voltage. This invention obtains the true current output capability reserve under the current operating conditions through temperature derating, duty cycle derating, and bus voltage derating, and compares the predicted future required drive current with this reserve. Through this dynamic capability assessment, it is possible to avoid misjudging a temporary decrease in controller capability as a motor failure, and to accurately identify risks when motor frictional degradation and controller capability degradation are superimposed, thus improving the accuracy of early warning and the adaptability to operating conditions.
[0057] Furthermore, the system also includes a strategy adjustment module, used to: determine a warning level based on the degree to which the required drive current at the unprocessed speed exceeds the current output capacity reserve of the servo controller when the required drive current at the unprocessed speed exceeds the current output capacity reserve; and generate a machining strategy adjustment instruction based on the warning level and the position of the unprocessed segment in the CNC program. The machining strategy adjustment instruction is used to reduce the feed rate change rate or adjust machining parameters before the unprocessed segment is reached, so that the required drive current at the unprocessed speed does not exceed the current output capacity reserve.
[0058] When generating machining strategy adjustment instructions, the adjustment amount can be calculated as follows: Let the current overshoot ratio = current output capacity reserve / required drive current. If the current overshoot ratio < 1, then adjust the feed rate of the unprocessed segment to 0.9 times the original rate × current overshoot ratio, or adjust the acceleration of the segment to the square of the original acceleration and the current overshoot ratio. After adjustment, the friction-speed characteristic curve extrapolation and current output capacity reserve verification can be performed again. If the requirements are still not met, the feed rate or acceleration can be iteratively reduced until the predicted required drive current does not exceed the current output capacity reserve, or the preset minimum feed rate is reached. The adjustment instruction should be written into the CNC program buffer or issued through the CNC system real-time adjustment interface before the unprocessed segment arrives.
[0059] Specifically, the degree of excess can be calculated: Exceeding the limit = (Required drive current - Current output capacity reserve) / Current output capacity reserve × 100%.
[0060] The warning level is determined based on the degree of exceedance. For example: when 0 < exceedance ≤ 10%, it is determined as a Level 1 warning; when 10% < exceedance ≤ 30%, it is determined as a Level 2 warning; and when exceedance > 30%, it is determined as a Level 3 warning.
[0061] The aforementioned warning level thresholds can be adjusted according to the machine tool accuracy level and machining process requirements. For example, for precision machining tools, the thresholds can be tightened to 0-5% Level 1, 5%-15% Level 2, and greater than 15% Level 3; for rough machining tools, the thresholds can be relaxed to 0-15% Level 1, 15%-40% Level 2, and greater than 40% Level 3.
[0062] Then, based on the warning level and the position of the unprocessed segment in the CNC program, a machining strategy adjustment instruction is generated. This instruction may include: reducing the feed rate change rate before the unprocessed segment arrives, for example, reducing acceleration by 20% to 50%; or adjusting machining parameters, such as reducing the feed rate, segmented deceleration, inserting transition program segments, or adjusting the matching relationship between spindle speed and feed rate. Through these methods, intervention can be initiated before the unprocessed segment arrives, ensuring that the required drive current does not exceed the current output capacity reserve, thereby avoiding excessive position following error and decreased machining quality.
[0063] The coefficient 0.9 in the above adjustment formula is a safety margin coefficient used to compensate for prediction errors and operating condition fluctuations; the square relationship is based on the approximate square relationship between acceleration and drive current, that is, when the acceleration demand increases, the drive current increases approximately in a square relationship. Those skilled in the art can also replace the square relationship with other exponential relationships, such as powers 1.5 to 2.5, based on experimental data, which still falls within the scope of this invention.
[0064] By determining the warning level based on the degree of exceedance and generating machining strategy adjustment instructions, tiered response and early intervention can be achieved. Compared to simply outputting alarm signals, this solution can proactively adjust machining parameters before the machining stage is reached, ensuring that the required drive current does not exceed the current output capacity reserve, thereby avoiding machining interruptions or accuracy deviations caused by accumulated friction degradation. Through the above closed-loop adjustment, anomaly diagnosis and machining control can be organically combined, improving the intelligence level of CNC machine tools and the robustness of the machining process.
[0065] Furthermore, the system also includes a degradation process recording module, used to: when the degree of deviation of the triboelectric current component relative to the normal baseline under the same operating conditions exceeds the preset threshold, output a triboelectric degradation flag while the position following error is still within the normal allowable range; associate the triboelectric degradation flag with the warning and record it to form a degradation process record from the determination of triboelectric degradation to the depletion of current output capability reserve.
[0066] Specifically, when the friction current component exceeds a preset threshold, a friction degradation indicator can be output even if the position following error remains normal. This friction degradation indicator may include a timestamp, servo motor number, program segment number, speed point, friction current component, baseline value, degree of deviation, current temperature, current duty cycle, and bus voltage. When a subsequent prediction indicates that the required drive current at the current output capacity exceeds the current output reserve and a warning is issued, the friction degradation indicator and the warning can be linked and recorded to form a degradation process record. This degradation process record can be used to trace the development of friction degradation from its early stages to its severe phase, providing a basis for predictive maintenance, spare parts replacement, and process optimization. Through this method, early friction degradation determination can be linked to later warnings, forming a complete degradation process data chain, improving the continuity and traceability of health management for CNC machine tool servo systems.
[0067] By outputting friction degradation indicators and creating a degradation process record, early, minor friction degradation can be linked to later, severe warnings, forming a traceable degradation data chain. This data chain can be used not only for current diagnosis but also for analyzing the rate of friction degradation progression, predicting remaining service life, and optimizing maintenance cycles. Through this process record, single diagnoses can be extended to long-term health management, providing a data foundation for predictive maintenance of CNC machine tools and reducing the risk of unplanned downtime.
[0068] Furthermore, in the comparison module, the normal baseline under the same working conditions includes a first baseline and a second baseline; the first baseline is the triboelectric current component extracted from historical data of the servo motor under known health conditions; the second baseline is the statistical value of the triboelectric current component of the same model servo motor under the same processing conditions; when the deviation between the first baseline and the second baseline exceeds a preset inherent difference threshold, it is determined that the servo motor has inherent triboelectric differences, and the degree of deviation of the triboelectric current component relative to the first baseline is used to determine acquired degradation, and the degree of deviation of the triboelectric current component relative to the second baseline is used to determine the overall health level of the servo motor; when the historical data of the servo motor is insufficient, the second baseline is used as the initial value of the first baseline, and the first baseline is gradually updated in subsequent processing.
[0069] In practice, the second baseline can be the median of the triboelectric current components of at least 10 servo motors of the same model under the same processing conditions and the same preset speed range, or the median of the mean plus or minus three standard deviations. The inherent difference threshold can be set to 15% of the second baseline, or the range corresponding to the second baseline plus or minus three standard deviations. If the historical data for a servo motor is less than 5 sets, or the historical data does not cover the current processing conditions, or there are no valid records of unused current output capacity reserves in the historical data, it is considered that the historical data is insufficient. Furthermore, using the median as the second baseline can avoid the influence of individual abnormal samples on the baseline and improve the robustness of the baseline. The samples of at least 10 servo motors of the same model should cover the same processing conditions, the same preset speed range, and the same temperature range to ensure that the second baseline is comparable to the current conditions.
[0070] By setting a first baseline and a second baseline, both individual differences in servo motors and the overall health level of the same model can be considered. The first baseline is used to determine the acquired degradation of the servo motor itself, while the second baseline is used to assess its overall health level relative to motors of the same model. When the deviation between the two exceeds the inherent difference threshold, inherent friction differences can be identified, avoiding misjudging inherent differences as degradation. When historical data is insufficient, the second baseline is used as the initial value of the first baseline and updated gradually, enabling the rapid establishment of a usable baseline after new installation or repair. Through this dual-baseline mechanism, the accuracy and adaptability of friction degradation determination can be improved, solving the diagnostic challenges caused by individual differences and insufficient historical data.
[0071] Specifically, different servo motors may have inherent friction differences due to variations in assembly tolerances, lubrication conditions, and guide rail preload. Using only a statistical baseline of the same model might misjudge inherent differences as degradation; using only its own historical baseline might fail to establish a reliable baseline when historical data is insufficient. Therefore, this embodiment sets up a first baseline and a second baseline. The first baseline is the historical friction current component of the servo motor under known health conditions, used to determine acquired degradation; the second baseline is the statistical value of the friction current component of the same model of servo motor under the same processing conditions, such as the mean, median, or quantile, used to determine the overall health level. When the deviation between the first baseline and the second baseline exceeds a preset inherent difference threshold, such as exceeding 15%, 20%, or a threshold determined based on statistical distribution, the servo motor is determined to have inherent friction differences. In this case, acquired degradation is determined based on the first baseline, and the overall health level is evaluated using the second baseline as a reference. When historical data for the servo motor is insufficient, such as fewer than 3 or 5 sets of historical data or data not covering the current operating conditions, the second baseline can be used as the initial value of the first baseline, and the first baseline can be gradually updated in subsequent processing. The update can use an exponentially weighted average: updated first baseline = 0.9 × unupdated first baseline + 0.1 × current triboelectric current component; where 0.9 and 0.1 are empirical weight values, which can be adjusted according to the baseline update speed requirements, for example, to 0.95 and 0.05 or 0.8 and 0.2. Updates are only performed under the conditions that the position following error is normal, there are no warnings, and the current output capacity reserve has not been depleted. This method can balance individual differences with overall health assessment, improving the accuracy of triboelectric degradation determination.
[0072] Furthermore, the early warning module is also used to: when outputting the early warning, acquire the deviations of the current temperature, current duty cycle, and bus voltage relative to the rated values; attribute the early warning to the cause based on the temporal relationship between the friction current component deviation and the temperature deviation, duty cycle deviation, and bus voltage deviation; when the temperature deviation, duty cycle deviation, or bus voltage deviation occurs before the friction current component deviation, determine that the early warning is caused by a temporary reduction in the controller's current output capability reserve, provide an output capability reserve recovery prompt, and wait for the current temperature, current duty cycle, or bus voltage to recover before re-executing the prediction; when the friction current component deviation occurs before the temperature deviation, duty cycle deviation, and bus voltage deviation, determine that the early warning is caused by servo motor friction degradation, and output a friction degradation early warning.
[0073] In practical implementation, the temperature deviation threshold can be set to 5℃, the duty cycle deviation threshold to 10%, and the bus voltage deviation threshold to 5% of the rated bus voltage. The current temperature, current duty cycle, bus voltage, and friction current component are all sampled synchronously with a 1ms period and timestamped. The time window can be set to 500ms, 1s, or 2s. If the temperature deviation, duty cycle deviation, or bus voltage deviation exceeds its respective threshold before the friction current component deviation, it is determined that the controller's capability reserve has temporarily decreased. If multiple deviations occur simultaneously, the cause is attributed according to the priority order of bus voltage deviation, temperature deviation, and duty cycle deviation. If the friction current component deviation occurs before any of the above deviations, it is determined that the servo motor is experiencing friction degradation. Furthermore, if the occurrence times of each deviation are within one sampling period, they are considered to have occurred simultaneously. Specifically, in actual processing, a decrease in the servo controller's current output capability reserve may be caused by temporary factors such as increased temperature, increased duty cycle, or decreased bus voltage, while servo motor friction degradation is a more persistent change in mechanical state. To distinguish between the two, the current temperature deviation, current duty cycle deviation, and bus voltage deviation can be obtained when outputting an early warning, and their timing relationship with the friction current component deviation can be compared. For example, a time window can be set to 500ms, 1s, or 2s. When the temperature deviation, duty cycle deviation, or bus voltage deviation exceeds its respective threshold before the friction current component deviation, the early warning is determined to be caused by a temporary decrease in the controller's current output capability reserve. In this case, an output capability reserve recovery notification is displayed, and the prediction is re-executed after the current temperature, current duty cycle, or bus voltage recovers. Conversely, when the friction current component deviation occurs before the temperature deviation, duty cycle deviation, and bus voltage deviation, the early warning is determined to be caused by servo motor friction degradation, and a friction degradation early warning is output. This attribution mechanism avoids misjudging a temporary decrease in controller capability as mechanical friction degradation, improving the accuracy and interpretability of the early warning.
[0074] Furthermore, this invention uses the temporal relationship between the friction current component deviation and temperature deviation, duty cycle deviation, and bus voltage deviation to attribute causes, distinguishing between two fundamentally different warning reasons: one is a warning caused by a temporary decrease in the controller's current output capability reserve, and the other is a warning caused by servo motor friction degradation. When the temperature deviation, duty cycle deviation, or bus voltage deviation occurs before the friction current component deviation, it is determined that the controller capability has temporarily decreased, outputting a recovery prompt and waiting for recovery before re-predicting; when the friction current component deviation occurs before the above deviations, it is determined that the motor is experiencing friction degradation, outputting a friction degradation warning. Through this temporal attribution, it is possible to avoid misjudging temporary capability decreases as mechanical degradation, reducing unnecessary downtime for maintenance, while ensuring that true friction degradation is not overlooked, improving the interpretability of warning results and the pertinence of maintenance decisions.
[0075] In one specific embodiment, the system may be executed as follows: First, the acquisition module collects the position following error and drive current of the servo motor in real time during CNC machining. The position following error is calculated by the CNC system based on the commanded position and the actual position, and the drive current is obtained from the servo driver current loop feedback. If the position following error is within the normal allowable range, for example, within ±0.01mm, the separation module continues to perform subsequent diagnostics, without excluding friction degradation simply because the position following error is normal.
[0076] Next, under the condition that the servo motor executes the same CNC program segment and the cutting load is the same, the separation module selects multiple speed points in the low-speed range, such as 100rpm, 200rpm, 300rpm, 400rpm, and 500rpm, and collects the drive current at each point. During the data collection, the actual feed rate can be adjusted by the feed rate increments, while keeping the tool, depth of cut, width of cut, and spindle speed constant, and taking the average value of the drive current for each stable machining segment. Using the drive current model (drive current = load current component + friction current component), least squares fitting is performed to separate the load current component and the friction current component. In the low-speed range, the friction current component increases monotonically with decreasing speed, and its proportion is greater than that of the load current component.
[0077] During separation, the frictional current components are fitted using a simplified Stribeck model as follows: Frictional current component = First fitting parameter × (negative second fitting parameter × velocity) power of the natural constant + Third fitting parameter, where the first fitting parameter = static frictional current component - Coulomb frictional current component, the second fitting parameter = 1 / Stribeck velocity, and the third fitting parameter = Coulomb frictional current component. The first fitting parameter is taken as 5%~40% of the rated current, the second fitting parameter is taken as 0.005~0.1 (velocity in rpm), and the third fitting parameter is taken as 2%~20% of the rated current. For example, with a rated current of 20A, the fitted parameters are: First fitting parameter = 4.5A, Second fitting parameter = 0.01, Third fitting parameter = 1.8A, i.e., static frictional current component = 6.3A, Coulomb frictional current component = 1.8A, and Stribeck velocity = 100rpm. Therefore, the frictional current component at 100 rpm is approximately 3.46 A (1.8 + 4.5 × natural constant to the power of (-0.01 × 100)). At 500 rpm, the frictional current component is approximately 1.83 A (1.8 + 4.5 × natural constant to the power of (-0.01 × 500)). The load current component is taken as the portion that does not change with speed, for example, 2.0 A.
[0078] Then, the comparison module compares the current triboelectric current component with a normal baseline under the same operating conditions. This normal baseline can be obtained from historical data of the servo motor under healthy conditions or from statistical values of servo motors of the same model. If the triboelectric current component deviates from the normal baseline by more than a preset threshold, for example, more than 20%, it is determined that the servo motor has triboelectric degradation, and a triboelectric degradation flag is output. Even if the position following error is still within the normal allowable range, this triboelectric degradation flag is still retained.
[0079] Subsequently, the prediction module fits the friction-velocity characteristic curve under the current operating condition based on the nonlinear relationship between the friction current component and the speed. At least five speed points are used for fitting, requiring a goodness of fit of no less than 0.95; if this is not met, more speed points are added or outliers are removed before refitting. Based on the feed speed of the unprocessed section in the CNC program, the unprocessed speed is determined, for example, the next feed speed is 80 rpm. The friction current component at this speed is extrapolated using the friction-velocity characteristic curve, and combined with the load current component, the required drive current at the unprocessed speed is obtained. The required drive current at the unprocessed speed = load current component + friction current component at the unprocessed speed.
[0080] Simultaneously, the early warning module acquires the servo controller's rated current, current temperature, current duty cycle, and bus voltage to calculate the current output capacity reserve under the current operating conditions. For example, if the rated current is 20A, after temperature derating, duty cycle derating, and bus voltage derating, the current output capacity reserve is 12A. If the predicted required drive current at the unprocessed speed is 14A, then the reserve is exceeded by 2A, representing an excess of approximately 16.7%, thus triggering a level two early warning.
[0081] The current output capacity reserve is calculated using the following formulas: Current output capacity reserve = Rated current × Temperature derating factor × Duty cycle derating factor × Bus voltage derating factor; Temperature derating factor = 1 - Temperature derating sensitivity factor × (Current temperature - Rated temperature) / Rated temperature, with the temperature derating sensitivity factor set to 0.3; Duty cycle derating factor = 1 - Duty cycle derating sensitivity factor × (Current duty cycle - Rated duty cycle) / Rated duty cycle, with the duty cycle derating sensitivity factor set to 0.2; Bus voltage derating factor = Current bus voltage / Rated bus voltage. The calibration method for the above sensitivity factors is as described above.
[0082] At this point, the strategy adjustment module generates machining strategy adjustment instructions based on the secondary warning and the position of the unprocessed segment in the CNC program. For example, if the unprocessed segment is segment N, the feed rate change rate is reduced at segment N-1 or earlier, the acceleration is reduced by 30%, or the feed ratio is adjusted so that the required drive current at the unprocessed speed does not exceed 12A. Specifically, the current excess ratio can be calculated as: Current output capacity reserve / Required drive current = 12 / 14 ≈ 0.857. The feed ratio can be adjusted to 0.9 × current excess ratio ≈ 0.771 of the original ratio, or the acceleration can be adjusted to the square of the current excess ratio ≈ 0.735 of the original value, and then verified again. Thus, before the position following error exceeds the normal allowable range, a warning can be output and the machining strategy adjustment can be executed, avoiding excessive following error in subsequent machining.
[0083] In another specific embodiment, when the warning module outputs a warning, it further acquires the current temperature deviation, current duty cycle deviation, and bus voltage deviation. If the current temperature deviation is detected to exceed the threshold before the friction current component deviation, for example, the temperature rises by 5°C and lasts for 1 second, while the friction current component subsequently exceeds the baseline threshold, it is determined that this warning is caused by a temporary reduction in the controller's current output capability reserve. At this time, an output capability reserve recovery prompt is issued, and the prediction is re-executed after the temperature recovers. If the friction current component deviation is detected to occur before the temperature deviation, duty cycle deviation, and bus voltage deviation, it is determined that this warning is caused by servo motor friction degradation, a friction degradation warning is output, and maintenance operations such as lubrication and inspection of the guide rail, lead screw, or bearings are recommended.
[0084] In another specific embodiment, when historical data for the servo motor is insufficient, such as when there is little data after a new installation or repair, the statistical value of the triboelectric current component of the same model of servo motor under the same processing conditions can be used as a second baseline, and this second baseline can be used as the initial value of the first baseline. The second baseline can be the median of the triboelectric current components of at least 10 servo motors of the same model under the same operating conditions; the inherent difference threshold can be set to 15% or 3 times the standard deviation of the second baseline. In subsequent processing, when the position following error is normal, there are no warnings, and the current output capacity reserve has not been consumed, the first baseline is gradually updated. If the deviation between the first baseline and the second baseline exceeds the preset inherent difference threshold, such as exceeding 15%, it is determined that the servo motor has inherent triboelectric differences, and subsequent assessments will primarily focus on acquired degradation, while also referring to the second baseline to evaluate the overall health level.
[0085] As can be seen from the above specific embodiments, this system can identify servo motor friction degradation in advance based on changes in the frictional current component of the drive current when the position following error is still within the normal allowable range, and predict the drive current required to maintain normal position following error at the current speed not yet processed. When the drive current exceeds the current output capacity reserve of the servo controller, an early warning is issued before the position following error exceeds the normal allowable range, and a processing strategy adjustment command can be generated. Thus, the servo motor anomaly diagnosis can be transformed from "alarm after error exceeds the limit" to "early warning when the error is normal," effectively avoiding position following error exceeding the limit, processing quality degradation, or equipment downtime caused by the accumulation of frictional degradation. Through the coordinated work of the above modules, this system can identify servo motor friction degradation in advance based on changes in the frictional current component of the drive current when the position following error is still within the normal allowable range, and predict the drive current required to maintain normal position following error at the current speed not yet processed. When the drive current exceeds the current output capacity reserve of the servo controller, an early warning is issued before the position following error exceeds the normal allowable range, and a processing strategy adjustment command can be generated. Therefore, the servo motor abnormality diagnosis can be transformed from "alarm after error exceeds the limit" to "early warning when the error is normal", effectively avoiding position following error exceeding the limit, processing quality degradation or equipment downtime caused by the accumulation of friction degradation.
[0086] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A diagnostic system for abnormal operating status of a servo motor in a CNC machine tool, characterized in that, include: The acquisition module is used to acquire the position following error of the servo motor during CNC machining, and the drive current output by the servo controller to maintain the position following error; The separation module is used to collect the drive current of the servo motor at different speeds within a preset speed range when the position following error is within the normal allowable range, and to separate the load current component and the friction current component from the drive current based on the difference in the drive current at different speeds, wherein the load current component does not increase as the speed decreases, and the friction current component increases as the speed decreases. The comparison module is used to compare the friction current component with a normal baseline under the same operating conditions. When the friction current component deviates from the normal baseline by a factor exceeding a preset threshold, it is determined that the servo motor has frictional degradation. The prediction module is used to predict the drive current required to maintain the position following error normally at the current processing speed, based on the relationship between the increase of the friction current component and the decrease of speed. The early warning module is used to output an early warning before the position following error exceeds the normal allowable range when the required drive current at the unprocessed speed exceeds the current output capability reserve of the servo controller. The position following error is within the normal allowable range and is not used as a basis for ruling out frictional degradation of the servo motor.
2. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, In the comparison module, the normal baseline under the same operating conditions is determined in the following way: When the servo motor is in a known healthy state, under the same processing conditions and the same preset speed range, the drive current of the servo motor is collected and the healthy friction current component is separated, and the healthy friction current component is used as the normal baseline under the same conditions. When selecting the normal baseline under the same working condition from the historical processing data of the servo motor, the historical data in which the current output capability reserve of the servo controller has not been consumed is selected.
3. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, In the separation module, separating the load current component and the friction current component from the drive current includes: Under the condition that the servo motor executes the same CNC program segment and the same cutting load, the drive current at different speeds is collected. Based on the difference in driving current at different speeds, the current component that does not change with speed is determined as the load current component, and the current component that increases with decreasing speed is determined as the friction current component.
4. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, In the prediction module, predicting the drive current required to maintain the position following error at the current unprocessed speed, based on the relationship between the increase of the frictional current component and the decrease in speed, includes: Based on the nonlinear relationship between the frictional current component and the speed, the friction-speed characteristic curve of the servo motor under the current working condition is obtained by fitting. Based on the friction-velocity characteristic curve, the friction current component at the unprocessed speed is extrapolated, and combined with the load current component, the required drive current at the unprocessed speed is obtained.
5. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, In the early warning module, the current output capability reserve is determined according to the following method: Obtain the rated current, current temperature, current duty cycle, and bus voltage of the servo controller; Based on the deviation between the current temperature and the rated temperature, and the deviation between the current duty cycle and the rated duty cycle, the rated current is derating to obtain the current output capability reserve of the servo controller under the current operating conditions. The current output capability reserve decreases as the current temperature increases and / or the current duty cycle increases.
6. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, It also includes a strategy adjustment module, used for: When the drive current required at the unprocessed speed exceeds the current output capacity reserve of the servo controller, a warning level is determined based on the degree to which the drive current required at the unprocessed speed exceeds the current output capacity reserve; Based on the warning level and the position of the unprocessed segment in the CNC program, a machining strategy adjustment instruction is generated. The machining strategy adjustment instruction is used to reduce the feed rate change rate or adjust the machining parameters before the unprocessed segment arrives, so that the drive current required at the unprocessed speed does not exceed the current output capacity reserve.
7. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, The preset speed range is the low-speed range of the servo motor. In the low-speed range, the friction current component increases monotonically as the speed decreases, and the proportion of the friction current component in the drive current is greater than the proportion of the load current component.
8. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 1, characterized in that, It also includes a degradation process recording module, used for: When the deviation of the triboelectric current component relative to the normal baseline under the same working condition exceeds the preset threshold, a triboelectric degradation indicator is output while the position following error is still within the normal allowable range. The triboelectric degradation marker is associated with the warning and recorded to form a degradation process record from the determination of triboelectric degradation to the depletion of current output capacity reserve.
9. The abnormal operation status diagnosis system for CNC machine tool servo motors according to claim 2, characterized in that, In the comparison module, the normal baseline under the same working conditions includes a first baseline and a second baseline; The first baseline is the triboelectric current component extracted from historical data of the servo motor under known health conditions; The second baseline is the statistical value of the triboelectric current component of the same type of servo motor under the same processing conditions; When the deviation between the first baseline and the second baseline exceeds a preset inherent difference threshold, it is determined that the servo motor has inherent frictional differences. Using the first baseline as a benchmark and the second baseline as a reference, the degree of deviation of the frictional current component relative to the first baseline is used to determine acquired degradation, and the degree of deviation of the frictional current component relative to the second baseline is used to determine the overall health level of the servo motor. When the historical data of the servo motor is insufficient, the second baseline is used as the initial value of the first baseline, and the first baseline is gradually updated in subsequent processing.
10. The CNC machine tool servo motor abnormal operation status diagnosis system according to claim 5, characterized in that, The early warning module is also used for: When issuing the warning, the current temperature, current duty cycle, and deviation of the bus voltage from the rated value are obtained; The cause of the early warning is attributed based on the temporal relationship between the friction current component deviation and the temperature deviation, duty cycle deviation and bus voltage deviation. When the temperature deviation, duty cycle deviation, or bus voltage deviation occurs before the friction current component deviation, it is determined that the warning is caused by a temporary reduction in the controller's current output capability reserve. The output capability reserve is restored, and the prediction is re-executed after the current temperature, current duty cycle, or bus voltage recovers. When the deviation of the frictional current component occurs before the deviation of temperature, duty cycle and bus voltage, it is determined that the warning is caused by the frictional degradation of the servo motor, and a frictional degradation warning is output.
