Flange production line robot action planning method and system based on energy consumption optimization

By constructing a two-dimensional current timing matrix and an inertia-weighted cross-correlation function, the start-up time of joint movements is actively adjusted, solving the problem of cross-joint energy consumption resonance and achieving optimization of energy consumption and improvement of stability of the flange production line robot.

CN123129137APending Publication Date: 2026-11-20SHANXI ZHONGLIANSHENG PIPELINE EQUIPMENT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611246400.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing robot motion planning methods cannot effectively suppress the risk of energy consumption resonance at the cross-joint temporal level. Especially in complex industrial scenarios such as flange production lines, the superposition effect of energy consumption during multi-joint coordinated movement leads to the superposition of current peaks, causing energy consumption resonance and increasing grid load and driver heat loss.

Method used

By constructing a two-dimensional current time-series matrix and introducing an inertia-weighted cross-correlation function, the phase misalignment state of the current peak across the joint is accurately located. The inertia product is used as the risk priority weight to actively adjust the start time of the joint action, forcibly stagger the occurrence time of the current peak, and reduce the risk of energy consumption resonance.

Benefits of technology

It effectively suppresses energy consumption resonance at the cross-joint timing level, reduces grid load and driver heat loss, ensures system stability and availability under complex operating conditions, and has adaptive capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123129137A_ABST
    Figure CN123129137A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of robot control, in particular to a flange production line robot action planning method and system based on energy consumption optimization. The method comprises: performing a calibration action sequence on each joint of the flange production line robot and collecting drive current time sequence data to determine equivalent rotational inertia and current peak response time constant; collecting drive current time sequence of all joints in the production line running stage and reconstructing into a two-dimensional current time sequence matrix, introducing inertia weighted cross-correlation function to construct a full joint phase difference matrix to determine energy consumption resonance risk; taking the joint with the largest inertia as the reference joint to calculate the starting time offset of the remaining joints and rearrange the speed time curve; generating the beat-by-beat position instruction sequence of each joint and issuing it. The present application can accurately locate the phase misalignment state of cross-joint current peak value and effectively suppress the generation of instantaneous power peak.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot control technology, specifically to a method and system for motion planning of a flange production line robot based on energy consumption optimization. Background Technology

[0002] Flange production line robots play a crucial role in modern industrial manufacturing, and the rationality of their motion planning directly affects the production line's operational efficiency and energy consumption. As the manufacturing industry increasingly demands green and low-carbon production, reducing the energy consumption of robots during high-frequency workstation changes has become a critical issue that urgently needs to be addressed.

[0003] In the field of industrial robot trajectory planning and energy consumption optimization, several solutions have been developed to improve the motion performance and control accuracy of robots. For example, Chinese patent application CN119526423A discloses a trajectory design method and system for a material handling robot on an assembly line. This method designs a periodic Fourier series mathematical trajectory model and establishes a dynamic model. After initializing the Fourier series and coefficients, the robot's coefficient matrix is ​​imported. Simulated annealing is used to perform a global search optimization of the objective function to generate a globally optimized trajectory matrix. After regularizing and normalizing the trajectory matrix, the condition number of the global optimization matrix is ​​calculated and minimized. Then, the Active-Set algorithm in fmincon is used for local constraint optimization to find the optimal combination of Fourier coefficients, resulting in a locally optimized trajectory matrix. The optimized trajectory matrix is ​​then transformed to obtain a stable optimal trajectory. The trajectory model is used to identify dynamic parameters and reconstruct the torque of these parameters. The identified dynamic parameters are input into the robot's dynamic algorithm, limiting the actual motion range of the six axes. This effectively improves the accuracy of the robot's grasping and placing actions and the stability of the handling process during material handling on an assembly line.

[0004] The aforementioned technical solutions and other existing robot motion planning schemes typically focus on trajectory smoothing and torque minimization at the single-joint level. They reduce energy consumption and vibration of individual joints by optimizing their motion parameters, but generally neglect the energy consumption superposition effect along the time axis during multi-joint cooperative motion. When multiple high-inertia joints start or reach maximum acceleration simultaneously, the peak values ​​of the drive currents of each joint overlap along the time axis, leading to severe energy consumption resonance. This cross-joint current peak superposition not only causes a sharp increase in instantaneous power spikes, significantly increasing grid load and driver heat loss, but also disrupts the overall energy consumption optimization state of the system, greatly offsetting the energy consumption optimization effect at the single-joint level. Due to the lack of accurate detection methods for multi-joint current timing misalignment and the absence of an active compensation mechanism for cross-joint current peak superposition, existing methods cannot effectively suppress the risk of energy consumption resonance at the cross-joint timing level, making it difficult to meet the energy consumption optimization requirements of complex industrial scenarios such as flange production lines. Summary of the Invention

[0005] To address the technical problem that existing methods cannot effectively suppress the risk of energy consumption resonance at the cross-joint timing level, this invention provides a motion planning method and system for flange production line robots based on energy consumption optimization.

[0006] In the first aspect, the present invention provides a technical solution for a motion planning method for flange production line robots based on energy consumption optimization: A motion planning method for a flange production line robot based on energy consumption optimization includes: S1. Execute calibration action sequences for each joint of the flange production line robot and simultaneously collect the driving current timing data of each joint. Based on the driving current timing data of each joint, determine the equivalent rotational inertia and peak current response time constant of each joint under different load conditions. S2. During the formal operation of the production line, simultaneously collect the driving current timing data of all joints for each workstation switching action and reconstruct it into a two-dimensional current timing matrix. Use Fast Fourier Transform to calculate the cross-correlation function of the current sequences of any two joints. Based on this, introduce an inertia-weighted cross-correlation function using the product of the equivalent rotational inertia of the two joints as a weighting factor. Calculate the inertia-weighted cross-correlation function for all joint pairs and extract the corresponding weighted phase difference to construct... S3. After identifying the joint pairs with energy consumption resonance risk, the joint with the largest equivalent moment of inertia among all joints is used as the reference joint. Based on the detected weighted phase difference, the start-up time offset of each joint relative to the reference joint is calculated to rearrange the time sequence of each joint output by the original trajectory planner. S4. Based on the output time sequence offset compensation results of each joint, the rearranged time sequence of each joint is sent to the trajectory interpolation module to generate the step-by-step position command sequence of each joint and synchronously send the step-by-step position command to the corresponding servo driver to complete the workstation switching action planning.

[0007] This invention accurately locates the phase misalignment state of cross-joint current peaks by reconstructing the multi-joint current time series into a two-dimensional matrix and introducing an inertia-weighted cross-correlation function. It sorts joint pairs with energy dissipation resonance risk by using the inertia product as the risk priority weight, and actively applies start-up time offset compensation with the current peak response time constant of the reference joint as the separation window width. This forces the current peaks of each joint to be staggered on the time axis, reduces the superposition of multi-joint current peaks on the time axis, and eliminates the energy dissipation resonance risk at the cross-joint time series level.

[0008] Preferably, determining the equivalent moment of inertia and peak current response time constant of each joint under different load conditions includes: based on the collected timing data of the driving current of each joint, combined with the known reduction ratio and motor torque coefficient of each joint, using the Newton-Euler recursive equation to back-calculate the equivalent moment of inertia of each joint under different load conditions; performing first-order difference on the current signal of each joint, extracting the continuous time period where the difference value exceeds the noise threshold, taking the length of the continuous time period as the peak current response time constant, and taking the arithmetic mean of the peak current response time constants of multiple calibration actions as the baseline time constant of the joint.

[0009] By extracting the continuous time intervals where the difference value exceeds the noise threshold and taking the arithmetic mean, the inertia baseline model and current peak response time constant of each joint were established, providing an objective physical parameter basis for subsequent cross-joint phase misalignment detection and avoiding the introduction of manual empirical parameters.

[0010] Preferably, the method of calculating the cross-correlation function of the current sequences of any two joints using fast Fourier transform includes: performing fast Fourier transform on the current sequences of any two joints respectively to obtain frequency domain representations, calculating the frequency domain product, performing inverse fast Fourier transform on the frequency domain product result to obtain the cross-correlation function, and the point where the cross-correlation function reaches its maximum value is the measured phase difference of the current peak values ​​between the two joints.

[0011] Preferably, the determination of the judgment threshold includes: collecting the baseline sequence of the current of each joint during the no-load calibration stage of the production line, calculating the fluctuation amplitude of the cross-correlation function of the baseline sequence of the current of each joint at the zero offset, and using the statistical upper bound of the fluctuation amplitude as the judgment threshold.

[0012] This invention determines the judgment threshold based on the noise characteristics of the actual system, rather than relying on human experience. This can effectively improve the accuracy and consistency of energy consumption resonance risk assessment and reduce the occurrence of misjudgments and omissions.

[0013] Preferably, the calculation of the start-up time offset relative to the reference joint for each of the remaining joints based on the detected weighted phase difference includes: for any joint pair formed by the joint and the reference joint, using the inverse of the measured weighted phase difference of the joint pair formed by the joint and the reference joint as the start-up delay of the joint, and multiplying the inverse of the measured weighted phase difference by the current sampling period to obtain the start-up time offset; when the start-up time offset is greater than 0, the action start command of the joint is delayed relative to the reference joint; when the start-up time offset is less than 0, the action start command of the joint is issued earlier relative to the reference joint.

[0014] By using the current peak response time constant of the reference joint as the separation window width and the measured phase difference as the correction amount to calculate the start-up time offset, the current peak of each joint can be forcibly pushed away from the time when the reference joint peak appears on the time axis, thereby avoiding the superposition of current peaks on the time axis and minimizing the instantaneous power spike when multiple joint current peaks are superimposed.

[0015] Preferably, the velocity-time curves of each joint output by the original trajectory planner are rearranged in time sequence, including: keeping the shape of each joint velocity curve unchanged, and shifting the entire curve on the time axis by the offset of the start time; if the offset of the start time of a certain joint causes the end time of the joint's action to exceed the total duration limit, then the velocity curve of the joint is compressed proportionally so that the end time of the joint's action falls within the boundary of the total duration limit.

[0016] Preferably, after generating the step-by-step position command sequence for each joint, the method further includes: substituting the velocity curves of each joint and the corresponding inertia models into the power calculation to obtain the estimated instantaneous power curve of the entire workstation switching action, extracting the peak value and mean value of the estimated instantaneous power curve, and recording the ratio of the peak value to the mean value as the peak-to-average ratio index.

[0017] Preferably, after the step-by-step position command is synchronously sent to the corresponding servo driver to complete the workstation switching action planning, the method further includes: synchronously recording the measured current timing data of this operation, weighting the measured current timing data of this operation with the drive current timing data of the calibration stage, and continuously updating the established joint inertia baseline model.

[0018] Preferably, after each workstation switching action, the signal-to-noise ratio of the measured current timing data is calculated. If the signal-to-noise ratio is lower than a preset threshold, the current data of the corresponding joint is determined to be abnormal. The joints determined to be abnormal are marked as unusable, and when constructing the full joint phase difference matrix, all rows and columns corresponding to the joints determined to be abnormal are set to zero. For the remaining normal joints, the construction of the two-dimensional current timing matrix of multiple joints and the energy consumption resonance risk detection are re-executed to construct a degraded full joint phase difference matrix. Based on the degraded full joint phase difference matrix, the start-up time offset of each normal joint is recalculated.

[0019] By introducing a compensation scheme for degradation and fault tolerance, it is ensured that even under abnormal operating conditions of some joints, the energy-optimal motion planning scheme can still perform effective timing offset compensation based on the remaining normal joints. This avoids overall planning failure due to single-point failure and improves the stability and availability of the system under complex operating conditions on the production line.

[0020] In a second aspect, the technical solution of the present invention for a flange production line robot motion planning system based on energy consumption optimization is as follows: A motion planning system for a flange production line robot based on energy consumption optimization includes a processor and a memory. The memory stores computer program instructions. When the computer program instructions are executed by the processor, one of the above-mentioned technical solutions for motion planning of a flange production line robot based on energy consumption optimization is implemented.

[0021] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention breaks through the limitations of traditional single-joint trajectory optimization, taking into account the temporal misalignment state during multi-joint cooperative motion. By constructing a two-dimensional current time-series matrix and introducing an inertia-weighted cross-correlation function, it achieves accurate quantification and risk priority ranking of the superposition effect of cross-joint current peaks. Using the inertia product as the weighting basis for the contribution of each joint to energy consumption resonance, it prioritizes applying time-series offset compensation to high-inertia joint pairs. Without destroying the single-joint torque minimization characteristic, it forcibly staggers the occurrence time of current peaks of each joint, effectively suppressing the generation of instantaneous power spikes, eliminating the risk of energy consumption resonance at the cross-joint time-series level, reducing grid load and driver heat loss, and enabling the system to have adaptive capability with changes in production line operating conditions. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating a motion planning method for a flange production line robot based on energy consumption optimization according to the present invention. Figure 2 This is a schematic diagram comparing the instantaneous power performance of the present invention and the prior art. Detailed Implementation

[0023] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0024] An embodiment of a motion planning method for flange production line robots based on energy consumption optimization provided by this invention: like Figure 1 As shown, the motion planning method for flange production line robots based on energy consumption optimization includes steps S1-S4, specifically: S1. Joint inertia baseline modeling and current timing acquisition.

[0025] Before the flange production line robot is formally deployed, its joints undergo standardized calibration motion sequences. These calibration motions cover all typical load states encountered by the joint in actual production line operations, including no-load return to zero, gripping flange blanks, and clamping positioning fixtures. During calibration, the current timing data of each joint's drive current is synchronously collected at a sampling frequency of no less than 1kHz using the current sampling module built into each joint's servo driver. .in, Number the joints. The sampling time is specified. The sampling frequency should be selected to ensure that the complete rising edge characteristics of the joint drive current during the acceleration phase are captured, avoiding distortion in the estimation of the peak current response time constant due to insufficient sampling rate.

[0026] Based on the collected timing data of the drive current of each joint, and combined with the known reduction ratio and motor torque coefficient of each joint, the equivalent moment of inertia of each joint under different load conditions is calculated using the Newton-Euler recursive equation. This recursive equation is an existing kinematic formula that can derive the equivalent moment of inertia based on the physical relationship between joint output torque and angular acceleration. For the ... Each joint has an equivalent moment of inertia. Determined by the following formula:

[0027] In the formula, For the first The joint output torque of each joint is obtained by multiplying the current and the torque coefficient. For the first The joint angular accelerations of each joint are obtained by second-order difference of the encoder position signal. In actual physical sensing environments, encoder signals naturally possess a quantization noise floor, and the denominator of the angular acceleration will not tend to zero, thus eliminating the need for manual compensation of empirical constants. The equivalent rotational inertia of each joint is then obtained. Subsequently, the peak current response time constant of each joint was further determined. . Defined as the time required for the drive current to rise from the baseline value to the peak value during the acceleration of a joint from a stationary state to the rated speed, this parameter is obtained by statistically analyzing the rising edge duration of the current timing of each joint during the calibration phase.

[0028] Current signal for each joint Perform first-order differencing to extract the continuous time intervals where the difference value exceeds the noise threshold; the length of these continuous time intervals is the [value]. Multiple calibration actions The arithmetic mean is taken as the baseline time constant for that joint. The physical significance lies in the fact that it reflects the moment when the current peak occurs at the start of the movement of the joint. It is a core fundamental parameter for subsequent phase misalignment analysis, and the difference in load inertia between different joints leads to this. The difference is the root cause of the phase misalignment of the peak current across the joint.

[0029] The noise threshold is determined as follows: the current signal is collected when the joint is stationary, the standard deviation of the current signal is calculated, and three times the standard deviation is used as the noise threshold to ensure that the differential extraction process is not affected by random noise.

[0030] The equivalent rotational inertia of each joint With current peak response time constant The parameters are stored in the production line controller's parameter database as baseline data for subsequent multi-joint current timing matrix construction and phase misalignment detection. For example, assuming a six-joint flange production line robot, the calibration phase can obtain six sets of inertia-time constant pairs, which are respectively... These parameters fully describe the dynamic response characteristics of each joint under actual load conditions on the production line.

[0031] Thus, by standardizing the calibration action sequence and high-frequency current sampling, the inertia baseline model and current peak response time constant of each joint were established, providing an objective physical parameter basis for subsequent cross-joint phase misalignment detection.

[0032] S2. Construction of multi-joint current timing matrix and detection of phase misalignment.

[0033] During the formal operation phase of the production line, all data is collected synchronously for each workstation switchover. The driving current timing data of each joint is reconstructed into a... Two-dimensional current timing matrix .in, The length of the time window, defined by the duration of the current station switching action, is expressed in units of sampling points; the second-order current timing matrix is... The line is the first Current sampling sequence of each joint within this time window The purpose of this dimensional transformation is to map the one-dimensional time series data, which was originally scattered in the independent controllers of each joint, to a two-dimensional space under the same time base, so that the time series relationship across joints can be directly seen in the column direction of the matrix, providing a unified data structure for subsequent cross-correlation analysis.

[0034] Based on two-dimensional current time series matrix For any two joints and The cross-correlation function of the current sequences is calculated using Fast Fourier Transform, and the two joint current sequences are then compared. and The frequency domain representation is obtained by performing FFT transforms on each part. and Calculate the frequency domain product .in, for The conjugate of the product is then used to perform an inverse fast Fourier transform to obtain the cross-correlation function. . exist When the maximum value is obtained, That is, joint With joints The measured phase difference between the peak currents, the physical meaning of which is the joint. Peak current relative to joint The offset of the current peak value on the time axis, expressed in units of sampling points.

[0035] The original cross-correlation function assigns the same weight to all joint pairs, failing to distinguish the difference in energy consumption contributions between high-inertia and low-inertia joints. Based on the physical relationship between joint drive current and inertia, ... and achievable That is, under the same angular acceleration requirement, the peak value of the joint driving current is proportional to its equivalent moment of inertia. Therefore, the peak current amplitude of a high-inertia joint is naturally larger, and the contribution of the superposition of the current peak values ​​of two high-inertia joints to the instantaneous power spike is proportional to the product of their inertia. Based on this physical derivation, this invention introduces an inertia-weighted cross-correlation function, using the product of the equivalent moments of inertia of the two joints as a weighting factor, specifically:

[0036] in, , Joints , The equivalent moment of inertia is directly substituted from the calibration results, without the need for manual weight setting. This is because the inertia product... To the lag An irrelevant positive real scalar; this weighting factor does not change the value obtained when the cross-correlation function reaches its maximum value. Position, i.e., weighted phase difference Phase difference from the original They are numerically identical. The core function of the inertia product is to serve as the risk priority weight for the joint pair: the larger the inertia product, the higher the contribution of the superposition of the current peaks of the two joints to the instantaneous power spike, and the higher the priority in subsequent compensation planning, thus prioritizing the application of timing offset compensation.

[0037] Calculate for all joint pairs And extract the corresponding phase difference Construct the phase difference matrix of the entire joint , its first The element is .when Below the judgment threshold At that time, determine the joint pair There is a risk of energy consumption resonance. The determination method is as follows: During the no-load calibration stage of the production line, the cross-correlation function of each joint current baseline sequence is calculated pairwise, and the hysteresis corresponding to the maximum value of each pair of joint cross-correlation functions is extracted. The distribution of the maximum lag value was statistically analyzed during multiple no-load calibrations, and three times its standard deviation was used as the basis for the determination. The unit is the number of sampling points. This sets the judgment threshold to the number of comparison points. Maintain consistency in units and ensure that the judgment threshold is determined based on the actual noise characteristics of the system, rather than values ​​determined by human experience.

[0038] For joint pairs identified as having a risk of energy dissipation resonance, their phase difference is... Product with the corresponding inertia This information is recorded in the resonance risk list of the production line controller. The resonance risk list is sorted from largest to smallest by inertia product, prioritizing joint pairs that contribute the most to energy consumption resonance. For example, assuming a workstation switching action involves 6 joints, the phase difference of 15 joint pairs needs to be calculated. If the phase difference of 3 of these joint pairs is lower than the judgment threshold, these 3 joint pairs are marked as having energy consumption resonance risk and are then sorted by their inertia product before being sent to the subsequent compensation planning step.

[0039] Thus, by reconstructing the multi-joint current time series into a two-dimensional matrix and introducing an inertia-weighted cross-correlation function, the phase misalignment state of the cross-joint current peak was accurately located. Using the inertia product as the risk priority weight, objective phase difference data and priority ranking basis were provided for subsequent time series offset compensation planning.

[0040] S3. Timing offset compensation planning driven by inertia difference.

[0041] After identifying joint pairs at risk of energy dissipation resonance, the core planning objective is to actively adjust the start-up timing of each joint's movements to forcibly push the peak current of each joint away from the peak time of the reference joint on the time axis, preventing them from overlapping. The joint with the largest equivalent moment of inertia among all joints is designated as the reference joint. The starting time of the motion is fixed as the reference, and the optimal starting time offset relative to the reference joint is calculated for each of the other joints. The reason for choosing the joint with the largest equivalent moment of inertia as the reference joint is that the peak current amplitude of this joint is the highest. After its start-up time is fixed, the timing adjustment of the other joints relative to it can minimize the instantaneous power spike when the peak currents of multiple joints are superimposed.

[0042] The calculation is based on the peak current response time constant of the reference joint. To separate the window width and use the measured phase difference as a correction, the goal is to make the joint... The peak current occurs at least after the peak current of the reference joint. This ensures that the peak currents of the two joints do not overlap within their respective rising edge windows. The offset relationship is as follows:

[0043] in, For the current sampling period, For joints Relative to reference joint The measured phase difference, Let be the peak current response time constant of the reference joint. The physical meaning of this relationship is: based on the moment the peak current occurs at the reference joint, the joint... The peak moment is forcibly pushed away from the reference joint peak at least Duration. When At that time, joint The motion initiation command is delayed relative to the reference joint. Issued; when At that time, joint The motion initiation command is performed earlier than the reference joint. issue.

[0044] After obtaining the start-up time offset of each joint, the velocity-time curves of each joint output by the original trajectory planner are rearranged in time sequence: keeping the shape of each joint velocity curve unchanged, only the entire curve is translated on the time axis. This approach ensures that the torque minimization characteristic within a single joint is not compromised, introducing compensation only at the cross-joint temporal level, and the two optimization objectives do not interfere with each other. For example, assume the joint output of the original trajectory planner... The velocity curve is The velocity curve after time-series rearrangement is The curve has been shifted across the time axis. However, the shape of the curve remains unchanged.

[0045] For complex operating conditions where multiple joints simultaneously pose a risk of resonance, offset calculations are performed one by one, with each joint offset calculated and applied independently, without iterative dependencies. The computational complexity of the planning is linearly related to the number of joints, meeting the latency requirements of real-time production line planning. During the timing reordering process, it must be ensured that the speed curves of each joint after reordering do not exceed the time limit on the time axis. If the offset of a joint causes its action end time to exceed the total duration limit of the workstation switching action, the speed curve of that joint is proportionally compressed in time so that its action end time falls exactly within the total duration limit boundary. The compression ratio is the ratio of the total duration limit to the original action duration.

[0046] After the timing reordering is completed, a forward energy consumption prediction is performed on the velocity curves of each joint after the reordering. The velocity curves of each joint and their corresponding inertia models are then substituted into the power calculation to obtain the predicted instantaneous power curve for the entire workstation switching motion. And extract its peak value. with the mean ,by This value is recorded as a peak-to-average power ratio (PAPR) indicator for subsequent manual verification. The closer the PAPR is to 1, the more stable the power curve and the weaker the energy consumption resonance phenomenon.

[0047] Thus, by actively applying start-up time offset compensation with the reference joint current peak response time constant as the separation window width and the measured phase difference as the correction amount, the peak current of each joint is forcibly pushed away from the time of occurrence of the reference joint peak on the time axis, reducing the superposition of multiple joint current peaks on the time axis, thereby effectively suppressing the generation of instantaneous power spikes.

[0048] S4. Generation of compensated action instructions and production line dispatch.

[0049] Based on the output timing offset compensation results for each joint, the rearranged velocity-time curves of each joint are sent to the trajectory interpolation module. Position interpolation is performed according to the control cycle of the servo driver to generate a step-by-step position command sequence for each joint. .in, For the first At each control cycle, the interpolation module needs to calculate the target position that each joint should reach at that moment based on the rearranged velocity curve. The interpolation method adopts the existing cubic spline interpolation to ensure the continuity and smoothness of the position curve on the time axis and avoid joint shaking or impact caused by improper interpolation.

[0050] For the Each joint, its instantaneous power Determined by the following formula:

[0051] in, , The total instantaneous power of the multi-joint system can be directly read from the rearranged velocity curve. The total instantaneous power of the multi-joint system is the sum of the instantaneous power of each joint. By traversing the entire time window of the workstation switching action, extract... The maximum value is used as the peak value. ,calculate The arithmetic mean over the entire time window is used as the mean. .

[0052] Finally, the position commands of each joint are synchronously sent to the corresponding servo drives via the fieldbus, completing the entire process of energy-optimized motion planning for this workstation switch. The fieldbus protocol can be EtherCAT, which supports microsecond-level synchronization accuracy, ensuring that the position commands of each joint arrive at each servo drive synchronously within the same control cycle, avoiding timing deviation failures caused by communication delays. The production line controller synchronously records the measured current data for this operation, and performs a weighted average of the measured current timing data and the current timing data from the calibration phase to continuously update the joint inertia baseline model, allowing the system to continuously converge to a more accurate inertia estimation state as the production line runs. For example, assuming the initial weighting coefficients are 0.1 for measured data and 0.9 for calibration data, the measured data percentage is increased by 0.05 after every 10 operations, until it reaches 0.5 and remains unchanged thereafter.

[0053] In this way, by interpolating the compensated speed curve into step-by-step position commands and issuing them synchronously, while continuously updating the inertia baseline model, the effectiveness of the energy-optimal motion planning scheme in actual production line execution is ensured, and the system is made capable of adapting to changes in production line operating conditions.

[0054] like Figure 2 As shown in the figure, this diagram illustrates the changes in instantaneous power over time for robots using existing methods and the method of this invention when performing the same workstation switching action. Figure 2 It can be seen that existing methods ignore the overlap effect of current peaks on the time axis during multi-joint coordinated motion, resulting in an extremely high instantaneous power spike of approximately 950W around 0.4s, causing severe energy consumption resonance. However, by employing the time-series offset compensation planning based on inertia difference driven by the method of this invention, the occurrence times of current peaks at each high-inertia joint are forcibly staggered, effectively suppressing the maximum instantaneous power to below 300W, and making the instantaneous power curve more stable throughout the entire operating cycle. This comparative result fully demonstrates that this invention can eliminate the risk of energy consumption resonance at the cross-joint time-series level, significantly reducing grid load and servo driver heat loss.

[0055] During actual production line operation, some joints may experience abnormal conditions such as mechanical failure, sensor malfunction, or communication interruption, resulting in missing or distorted current timing data for those joints. If compensation planning based on the phase difference matrix of all joints is continued under these circumstances, erroneous offsets will occur due to incomplete data. To address these abnormal conditions, this invention introduces a downgraded compensation scheme and fault-tolerant processing. When abnormal current timing data of a joint is detected, that joint is automatically removed from the compensation planning process, and timing offset compensation is only performed on the remaining normal joints.

[0056] For the Each joint calculates its measured current timing after each workstation switchover. The signal-to-noise ratio (SNR) is defined as the ratio of the effective amplitude of the current signal to the standard deviation of the noise. If the SNR is lower than a preset threshold, the current data of that joint is considered abnormal. The preset threshold is determined based on the statistical distribution of the SNR of the current signals of each joint during the calibration phase, using the 5th percentile of this distribution as the preset threshold to ensure the accuracy and consistency of the anomaly determination. For joints determined to be abnormal, the production line controller marks them as unusable and sets all rows and columns corresponding to that joint to zero when constructing the full joint phase difference matrix, so that it does not participate in the subsequent weighted phase difference calculation and offset planning.

[0057] After removing abnormal joints, the multi-joint current timing matrix construction and phase misalignment detection are re-executed on the remaining normal joints to construct a downgraded full-joint phase difference matrix. Its dimensions are .in, The number of abnormal joints is specified. Based on the downgraded full-joint phase difference matrix, the start-up offset of each normal joint is recalculated. The selection rule for the reference joint remains unchanged: the joint with the largest equivalent moment of inertia among the remaining normal joints is selected as the reference joint. If the original reference joint happens to be an abnormal joint, the system automatically switches to the joint with the second largest equivalent moment of inertia among the remaining normal joints as the new reference joint. The production line controller continuously monitors the recovery status of abnormal joints, re-performing signal-to-noise ratio (SNR) checks on abnormal joints at fixed intervals. If the SNR recovers to above the normal threshold, the joint is reinstated into the compensation plan, triggering a reconstruction of the full-joint phase difference matrix and a recalculation of the offset to ensure that the compensation scheme is always based on the optimal configuration of currently available joints.

[0058] In this way, by introducing a compensation scheme for degradation and fault tolerance, it is ensured that even under abnormal operating conditions of some joints, the energy-optimal motion planning scheme can still perform effective timing offset compensation based on the remaining normal joints, avoiding overall planning failure due to single-point failure and improving the stability and availability of the system under complex operating conditions on the production line.

[0059] This invention provides an embodiment of a motion planning system for a flange production line robot based on energy consumption optimization: A flange production line robot motion planning system based on energy consumption optimization includes a processor and a memory. The memory stores computer program instructions. When the computer program instructions are executed by the processor, an energy consumption optimization-based flange production line robot motion planning method is implemented as described in the above embodiment.

[0060] The system also includes other components well known to those skilled in the art, such as communication buses and communication interfaces, the settings and functions of which are known in the art and will not be described in detail here.

[0061] While this specification has shown and described numerous embodiments of the invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Many modifications, alterations, and alternatives will occur to those skilled in the art without departing from the spirit and essence of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in the practice of this invention.

Claims

1. A motion planning method for a flange production line robot based on energy consumption optimization, characterized in that, include: S1. Execute the calibration action sequence for each joint of the flange production line robot and synchronously collect the timing data of the driving current of each joint. Based on the timing data of the driving current of each joint, determine the equivalent rotational inertia and peak current response time constant of each joint under different load conditions. S2. During the formal operation of the production line, the driving current timing data of all joints is synchronously collected for each workstation switching action and reconstructed into a two-dimensional current timing matrix. The cross-correlation function of the current sequences of any two joints is calculated using fast Fourier transform. Based on this, the product of the equivalent rotational inertia of the two joints is used as a weighting factor to introduce an inertia-weighted cross-correlation function. The inertia-weighted cross-correlation function is calculated for all joint pairs and the corresponding weighted phase difference is extracted to construct a full-joint phase difference matrix. When the weighted phase difference is lower than the judgment threshold, the joint pair is judged to have a risk of energy consumption resonance. S3. After identifying the joint pair with a risk of energy consumption resonance, the joint with the largest equivalent rotational inertia among all joints is used as the reference joint. Based on the detected weighted phase difference, the start-up time offset of each of the other joints relative to the reference joint is calculated to rearrange the timing of the joint velocity-time curves output by the original trajectory planner. S4. Based on the output of the timing offset compensation results of each joint, the rearranged speed-time curves of each joint are sent to the trajectory interpolation module to generate the step-by-step position command sequence of each joint and synchronously send the step-by-step position commands to the corresponding servo drivers to complete the workstation switching action planning.

2. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, Determine the equivalent moment of inertia and peak current response time constant of each joint under different load conditions, including: Based on the collected timing data of the driving current of each joint, combined with the known reduction ratio and motor torque coefficient of each joint, the equivalent moment of inertia of each joint under different load conditions is calculated using the Newton-Euler recursive equation; the current signal of each joint is subjected to first-order difference, and the continuous time period when the difference value exceeds the noise threshold is extracted. The length of the continuous time period is used as the peak current response time constant, and the arithmetic mean of the peak current response time constants of multiple calibration actions is taken as the baseline time constant of the joint.

3. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, The cross-correlation function of the current sequences of any two joints is calculated using the Fast Fourier Transform, including: The current sequences of any two joints are subjected to Fast Fourier Transform (FFT) to obtain their frequency domain representations. The frequency domain product is calculated, and the result of the frequency domain product is subjected to Inverse Fast Fourier Transform (IFFT) to obtain the cross-correlation function. The point where the cross-correlation function reaches its maximum value is the measured phase difference between the peak current values ​​of the two joints.

4. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, The methods for determining the threshold include: During the no-load calibration phase of the production line, the baseline sequences of current at each joint are collected, and the fluctuation amplitude of the cross-correlation function of the baseline sequences of current at each joint at zero offset is calculated. The statistical upper bound of the fluctuation amplitude is used as the judgment threshold.

5. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, Based on the detected weighted phase difference, the start-up time offset of each of the remaining joints relative to the reference joint is calculated, including: For any joint pair formed by the joint and the reference joint, the inverse of the measured weighted phase difference of the joint pair formed by the joint and the reference joint is used as the start-up delay of the joint. The inverse of the measured weighted phase difference is multiplied by the current sampling period to obtain the start-up time offset. When the start time offset is greater than 0, the motion start command of the joint is issued with a delay relative to the reference joint; when the start time offset is less than 0, the motion start command of the joint is issued earlier relative to the reference joint.

6. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, The time-series reordering of the joint velocity-time curves output by the original trajectory planner includes: While keeping the shape of the velocity curves of each joint unchanged, the entire curve is shifted on the time axis by the offset of the start time. If the offset of the start time of a certain joint causes the end time of the joint's movement to exceed the total duration limit, the velocity curve of that joint is compressed proportionally to make the end time of the joint's movement fall within the boundary of the total duration limit.

7. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, After generating the beat-by-beat position command sequence for each joint, the following is also included: Substitute the velocity curves of each joint and the corresponding inertia models into the power calculation to obtain the estimated instantaneous power curve of the entire workstation switching action. Extract the peak value and mean value of the estimated instantaneous power curve, and record the ratio of the peak value to the mean value as the peak-to-average ratio index.

8. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, After synchronously sending the position commands step-by-step to the corresponding servo drivers to complete the workstation switching action planning, it also includes: The measured current timing data of this operation are recorded synchronously. The measured current timing data of this operation is then weighted and averaged with the driving current timing data of the calibration stage, and the established joint inertia baseline model is updated on a rolling basis.

9. The method for motion planning of a flange production line robot based on energy consumption optimization according to claim 1, characterized in that, Also includes: After each workstation switching action, the signal-to-noise ratio of the measured current timing data is calculated. If the signal-to-noise ratio is lower than the preset threshold, the current data of the corresponding joint is determined to be abnormal. The joints determined to be abnormal are marked as unusable. When constructing the phase difference matrix of all joints, the rows and columns corresponding to the joints determined to be abnormal are all set to zero. The two-dimensional current timing matrix construction and energy consumption resonance risk detection of the remaining normal joints are re-executed, and the phase difference matrix of the entire joint is degraded. Based on the phase difference matrix of the entire joint, the start-up time offset of each normal joint is recalculated.

10. A motion planning system for a flange production line robot based on energy consumption optimization, characterized in that, It includes a processor and a memory, the memory storing computer program instructions. When the computer program instructions are executed by the processor, they implement the motion planning method for a flange production line robot based on energy consumption optimization as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Assembly line feeding and discharging robot track design method and system and robot

    CN119526423A