Vibration suppression acceleration and deceleration motion control method for laser engraving machine
By adopting S-shaped acceleration and deceleration control and plasticizer technology on the laser engraving machine, the vibration problems caused by sudden acceleration are solved, the processing accuracy and efficiency are improved, the equipment life is extended, and the market competitiveness is enhanced.
Patent Information
- Application Number
- CN202411064026.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-19
AI Technical Summary
During the high-speed and high-precision engraving process, laser engraving machines have reduced processing accuracy and increased mechanical wear, and traditional algorithms lack flexibility in dealing with complex paths, which affects processing efficiency.
A vibration suppression acceleration and deceleration motion control method is adopted, including initialization and analysis, vibration suppression preparation, motion command optimization, real-time vibration monitoring, S-shaped acceleration and deceleration control and trajectory shaping, and the acceleration and deceleration curve are calculated through the S-shaped acceleration algorithm and adjusted The movement trajectory of the laser engraving machine and a shaper is used to generate pulse signals to suppress vibrations.
It significantly improves the engraving accuracy and speed, reduces errors caused by mechanical vibration, improves the working environment, extends the equipment life, improves the stability and reliability of the equipment, broadens the application range, and enhances market competitiveness.
Smart Images

Figure CN118977001A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of intelligent processing control, and in particular to a vibration suppression acceleration and deceleration motion control method for a laser engraving machine. Background Art
[0002] The laser engraving machine generates laser light, which is then transmitted by a reflector and irradiated onto the object being processed through a focusing mirror. The object (surface) is subjected to strong thermal energy and its temperature increases sharply, causing the point to deform due to the high temperature, thus achieving the purpose of engraving or cutting.
[0003] For example, CN117620448A discloses a processing control method, device, equipment and storage medium for a laser engraving machine, including: obtaining a multi-axis parameter set of a multi-axis laser engraving machine and constructing a kinematic model; creating an initial processing control parameter combination and performing laser engraving processing control and operation data collection to obtain a target operation data set; extracting multi-axis spatial relationships and dynamic change features to obtain a time-space correlation feature set; performing operation timing feature analysis to obtain an operation timing feature set and performing multimodal feature fusion to obtain a target multimodal fusion feature; classifying the operation faults of the multi-axis laser engraving machine through an MLP classifier to obtain an operation fault classification result; optimizing the processing control parameters of the multi-axis laser engraving machine according to the operation fault classification result to obtain a target processing control parameter combination. At present, trapezoidal acceleration control algorithms are widely used in laser engraving machines. Although they are simple and practical, they expose significant defects in high-speed and high-precision engraving processes. Specifically, they are: severe vibration caused by sudden acceleration changes, decreased processing accuracy caused by speed jumps, and increased mechanical wear. In addition, traditional algorithms lack flexibility when dealing with complex paths (such as multiple corners and speed changes), and are unable to efficiently utilize power resources, affecting overall processing efficiency.
[0004] Therefore, a vibration suppression acceleration and deceleration motion control method for a laser engraving machine is proposed. Summary of the invention
[0005] The purpose of the present invention is to provide a vibration suppression acceleration and deceleration motion control method for a laser engraving machine, aiming to solve the problem in the above-mentioned background technology that when the existing laser engraving machine adopts a trapezoidal acceleration control algorithm for engraving, the sudden change of acceleration causes the equipment to vibrate violently, thereby affecting the processing accuracy and aggravating the mechanical wear, and the flexibility of dealing with complex processing paths is not ideal, thereby affecting the processing efficiency.
[0006] To achieve the above object, the present invention provides the following technical solution: a vibration suppression acceleration and deceleration motion control method for a laser engraving machine, comprising the following implementation steps: S1: Initialization and analysis: Start the control system of the laser engraving machine, analyze the input GCode instructions, and extract the motion parameters of the laser engraving machine; S2: Vibration suppression preparation: Turn on the vibration suppression function, calculate the machine damping ratio, input the machine damping ratio and adjust the vibration suppression system parameters; S3: Motion command optimization: Perform linear interpolation processing on the arc command in GCode, convert it into linear motion command, and apply the arc linear interpolation algorithm to optimize the motion command to compensate for the mechanical system error; S4: Real-time vibration monitoring: The vibration state of the laser module of the laser engraving machine is monitored in real time through the vibration detection unit, and the data is fed back to the control system; S5: S-shaped acceleration and deceleration control: According to the current motion state and vibration monitoring data, the S-shaped acceleration and deceleration algorithm is applied to calculate the acceleration and deceleration curves to adjust the motion trajectory of the laser module of the laser engraving machine; S6: Trajectory shaping and coordinate calculation: According to the optimized speed curve, the shaper regenerates the speed function of the motion based on the shaping algorithm , and using the speed function Recalculate the coordinate points of the motion trajectory of the laser module of the laser engraving machine during the motion process; S7: Pulse output and drive: Generate a pulse signal according to the shaped motion trajectory and output it to the engraving machine driver to drive the laser module of the laser engraving machine to move along the predetermined trajectory.
[0007] Furthermore, the shaper is an input shaper, which convolves the pulse signal and the input signal through input shaping, and then uses the shaped signal to control the system. The principle is to perform segmented processing on the controlled object. For the two pulses of the input shaper, starting from time 0, at time t1, a pulse signal is given to the system, which generates a vibration with an amplitude of A1. At time t2, another pulse signal is given to the system, which generates a vibration with an amplitude of A2. The two vibration response amplitudes are equal in size and opposite in direction. The two vibrations cancel each other out. When the target position is reached, there is no vibration in the controlled object and it is immediately positioned at the target position.
[0008] Furthermore, the mathematical expression of the input shaper is: Time Domain: , After Laplace transformation, the frequency domain expression is: , In the formula, is the amplitude of the ith pulse, is the time delay of the ith pulse.
[0009] Furthermore, the input shaper is 2m constants determined by the elastic structure m for the natural frequency and modal damping and a delay , the external force function f(t) applied to the structure is reshaped into the new form: , Where: .
[0010] Furthermore, in S6, the laser module of the laser engraving machine moves in the XY axis plane, and the steps of input shaping based on S-shaped acceleration are as follows: S601: using an acceleration sensor on the laser engraving machine to measure the vibration frequencies in the X direction and the Y direction respectively, and determining the type of input shaper to be used according to the vibration frequencies; S602: According to the starting position P0 and the end point Pn of the laser module of the laser engraving machine, the speed function Use S-type acceleration algorithm for transformation; S603: Speed function Reshape to get the reshaped speed function ; S604: Through the above speed function The formula calculates the parameters A, B, C, F and average acceleration AV of the S acceleration curve; S605: Using the numerical quadrature method, the velocity function Obtain the motion coordinate value of the laser module of the laser engraving machine after shaping; S606: Using the shaped motion coordinate value, in the stepper generator, using Bresenham logic to generate a pulse signal to drive the motor to move, so as to suppress vibration.
[0011] Furthermore, in S602, the S-shaped curve of the laser module of the laser engraving machine adopts a 5th-order Bezier curve, and its expression is: , Expand the above formula to get: , Among them, the control parameters are: , Derivative the velocity and acceleration respectively to obtain the acceleration and jerk: .
[0012] Furthermore, when the laser module of the laser engraving machine is engraving, the acceleration and jerk at the initial and final moments of acceleration are both zero, then: , Substituting the above conditions into formula (3), we get: Right now , in, .
[0013] Furthermore, the value range of formula (4) is [0,1]. In general, let the speed at time t0 be V0 and the speed at time t1 be V1. Then, at any time t, the speed of the S curve is: , Let the average acceleration from t0 to t1 be a, then: , In this way, the speed at any time is obtained by the previous speed.
[0014] Furthermore, the expression of real-time speed is obtained in S602: , when modifying the equations of motion by shaping, Substituting into formula (1) we can get the new velocity equation: .
[0015] Furthermore, in S605, the motion coordinate value expression formula of the laser module of the laser engraving machine is: , Where: is the unit vector from the starting point to the end point of the laser module. The value range of the loop variable i after shaping is When ,i is maximum, the movement speed of the laser module is zero.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The vibration suppression acceleration and deceleration motion control method for a laser engraving machine proposed in the present invention effectively reduces the error caused by mechanical vibration by precisely controlling the vibration during the engraving process, thereby significantly improving the accuracy and speed of engraving, and enabling the laser engraving machine to complete tasks more efficiently. At the same time, the reduction in vibration also directly improves the engraving experience, reduces the noise generated by mechanical vibration, and provides a quieter and more comfortable working environment for the operator; in addition, by reducing the impact and wear of vibration on the equipment, the method extends the working life of the laser engraving machine and improves the stability and reliability of the equipment. Ultimately, these advantages jointly broaden the application scope of the laser engraving machine, enabling it to be competent for more high-precision and high-efficiency engraving tasks, thereby gaining stronger competitiveness in the market. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of the motion algorithm of the laser engraving machine in the prior art of the present invention; Figure 2 It is a flow chart of the S-type acceleration vibration suppression algorithm of the laser engraving machine of the present invention; Figure 3 A system block diagram of the shaper of the present invention shaping the motion of the engraving machine; Figure 4 The input shaping flow chart of the S-shaped acceleration of the laser engraving machine of the present invention; Figure 5 It is a schematic diagram of the shaping principle of the input shaper of the present invention; Figure 6 It is a schematic diagram of the principle of analyzing the acceleration section of the engraving machine motion by the "S" model of the present invention; Figure 7 It is a schematic diagram of the analysis principle of the acceleration stage of the present invention; Figure 8 It is a schematic diagram of the theoretical implementation principle of the vibration suppression algorithm of the present invention; Fig. 9 It is a schematic diagram of the principle of the shaper of the present invention to suppress vibration. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] In order to solve the problem that when the existing laser engraving machine uses the trapezoidal acceleration control algorithm for engraving, the sudden change of acceleration causes the equipment to vibrate violently, thus affecting the processing accuracy and aggravating the mechanical wear, and the inflexibility of the complex processing path is not ideal, thus affecting the processing efficiency, please refer to Figure 1-Figure 4 , provide the following preferred technical solutions: A vibration suppression acceleration and deceleration motion control method for a laser engraving machine includes the following implementation steps: Step 1: Initialization and analysis: Start the control system of the laser engraving machine, analyze the input GCode instructions, and extract the motion parameters of the laser engraving machine; Step 2: Preparation for vibration suppression: Turn on the vibration suppression function, calculate the machine damping ratio, input the machine damping ratio and adjust the vibration suppression system parameters; Step 3: Motion command optimization: Perform linear interpolation processing on the arc command in GCode, convert it into linear motion command, and apply the arc linear interpolation algorithm to optimize the motion command to compensate for the mechanical system error; Step 4: Real-time vibration monitoring: The vibration state of the laser module of the laser engraving machine is monitored in real time through the vibration detection unit, and the data is fed back to the control system; Step 5: S-shaped acceleration and deceleration control: According to the current motion state and vibration monitoring data, the S-shaped acceleration and deceleration algorithm is applied to calculate the acceleration and deceleration curves, and the motion trajectory of the laser module of the laser engraving machine is adjusted; Step 6: Trajectory shaping and coordinate calculation: According to the optimized speed curve, the shaper regenerates the speed function of the motion based on the shaping algorithm , and using the speed function Recalculate the coordinate points of the motion trajectory of the laser module of the laser engraving machine during the motion process; Step 7: Pulse output and drive: Generate a pulse signal according to the shaped motion trajectory and output it to the engraving machine driver to drive the laser module of the laser engraving machine to move along the predetermined trajectory.
[0020] Further, the following is the analysis of the "S" model like Figure 6 As shown, assuming the given conditions: the final velocity, initial velocity, and acceleration time of the acceleration section, the speed of each step of the stepper motor can be calculated.
[0021] The acceleration section consists of the acceleration section (IncAccel) and the deceleration section (DeAccel).
[0022] Because t1=t2, t4=t5, in order to simplify the algorithm, the initial velocity V0 and the final velocity Ve are both 0, so that t1=t2=t4=t5=t, then t and t3 determine the jerk, and the relationship between acceleration, velocity, and displacement is determined.
[0023] The acceleration segment is a straight line with a positive slope of acceleration over time, and the deceleration segment is a straight line with a negative slope of acceleration over time.
[0024] The acceleration starts to change from 0, and then decreases when it reaches a certain value, and finally reaches 0. Since the slope of the acceleration is the same, the time used for the acceleration segment and the deceleration segment is the same. These two curves are symmetrical about the corresponding velocity center of the maximum acceleration.
[0025] For the analysis of the acceleration phase, the specific curve is as follows: Figure 7 As shown: Among them, the S-shaped curve is the speed curve. It can be seen that the whole belongs to the rising stage of speed. In the acceleration process, it can be divided into two stages, the first half and the second half. The first half is a curve with uniformly increasing acceleration, called: acceleration stage curve, and the second half is a curve with uniformly decreasing acceleration, so it is called: deceleration stage curve.
[0026] The V-shaped curve is the acceleration change curve. According to the law of speed change, it is divided into the first half with uniformly increasing acceleration and the second half with uniformly decreasing acceleration. It can also be simply understood as a linear function. The slope of the first half of the linear function is greater than 0, and the slope of the second half is less than 0. The acceleration starts from 0, decreases when it reaches the maximum value, and finally reaches 0. Since the slope of the acceleration is the same, the two curves with slopes greater than 0 and less than 0 are symmetrical about the velocity center corresponding to the maximum acceleration value.
[0027] The algorithm theory is implemented as follows Figure 8 As shown, there are three curves in total, among which the S-shaped curve is the speed curve, the V-shaped curve is the acceleration curve, and the oblique straight line curve is the acceleration part curve of the trapezoidal acceleration and deceleration model.
[0028] Trapezoidal acceleration and deceleration increases the speed at a fixed slope to reach Vt. After reaching Vt, the acceleration part ends and the uniform speed part begins. The trapezoidal acceleration and deceleration suddenly changes from a uniform acceleration to a uniform speed. Due to inertia, it will produce a large impact force and noise. The S-shaped acceleration and deceleration avoids this problem very well. In the above figure, after accelerating to Vt, the curve enters the uniform speed stage and is very smooth, and the stage connection is relatively perfect.
[0029] Acceleration change: a=k*t, t=[0,t1] where k is Figure 8 The acceleration slope is t, which is the time of change, so dv=a*dt The integration of acceleration a over time t gives velocity v: , According to the above formula, we can get: , According to the above formula, the slope k is obtained: , Integrating the velocity gives the displacement: , For speed, as long as the change in t is small enough, that is, dt is small, the speed change will be smoother and the curve fitted by the obtained speed points will be closer to the target curve.
[0030] In the laser engraving machine, the speed of the stepper motor we use is determined by the frequency of the timer pulse. The faster the frequency, the faster the movement: ,so, .
[0031] Among them, T represents the pulse period, f represents the frequency, and speed represents the speed. Therefore, as long as the cycle time of the first step is calculated, the speed of the next step can be calculated; and according to the change of time, the time change Sumt will be accumulated every time it is calculated. The speed of each step is calculated based on the initial speed, so the formula The calculation is the increment when the initial speed is 0. The specific formula is as follows: .
[0032] According to the above formula, the algorithm can be implemented using the table lookup method, a velocity table can be established for the acceleration, and a Bessel 5th-order S curve can also be established.
[0033] The input shaper is an input shaper that convolves the pulse signal with the input signal through input shaping, and then uses the shaped signal to control the system. The amplitude of the pulse and the time delay are determined by the characteristics of the system, namely the natural vibration frequency and the damping ratio.
[0034] Divide the controlled object into several segments (segment processing), such as Figure 5 As shown in the figure, taking the 2-pulse input shaper as an example, starting from time 0, at time t1, a pulse signal is given to the system, generating a vibration with an amplitude of A1. At time t2, another pulse signal is given to the system, generating a vibration with an amplitude of A2. The two vibration response amplitudes are equal in magnitude and opposite in direction. The two vibrations cancel each other out. When the target position is reached, there is no vibration in the controlled object and it is immediately positioned at the target position.
[0035] The mathematical expression of the input shaper is: Time Domain: , After Laplace transformation, the frequency domain expression is: , In the formula, is the amplitude of the ith pulse, is the time delay of the ith pulse.
[0036] The design methods of input shaper include zero-pole cancellation method, impulse response method, sensitivity curve method and simultaneous constraint equation method.
[0037] Taking the zero-pole cancellation method as an example, by adding appropriate zeros or poles to offset the non-ideal zeros (reflecting the rapidity of the system) or poles (reflecting the stability of the system) in the system, the frequency response or stability of the system can be improved. The two closed-loop poles of the second-order system (a pair of conjugate complex poles) have no closed-loop zeros around them, and they are the closed-loop dominant poles. By configuring the zero point of the input shaper, zero-pole cancellation is achieved to make the system stable and non-vibrating.
[0038] The transfer function of the second-order system is expressed as: , is the undamped natural vibration frequency, is the damping coefficient (damping ratio), The characteristic equation of a second-order system: ; The characteristic root poles of the second-order system are: ; when When , the system is underdamped, then the second-order system has a pair of conjugate complex poles with negative real parts: ; When the system input signal is a unit impulse function, the system response is a unit impulse response. The unit impulse response of a second-order system is: ; Then the unit impulse response of the second-order underdamped system is: ,make ; Substitute the frequency domain expression (transfer function) of the input shaper, decompose it according to Euler's formula, and set it to zero.
[0039] , Set the real and imaginary parts to 0.
[0040] , If the amplitude and time lag of the input shaper satisfy the above two formulas, the second-order system vibration can be suppressed.
[0041] The calculation of residual vibration, before adding the input shaper, the unit pulse output at time t is: , After adding the input shaper, the unit pulse output at time t is: , The residual vibration is expressed as the ratio of the output amplitude before and after the shaper is added. C and S can be regarded as the real and imaginary parts in the above-mentioned zero-pole cancellation method.
[0042] , The number of derivations of the input shaper may be countless, so constraints must be added to obtain a unique solution.
[0043] Amplitude constraint ensures that the gain has the same amplitude before and after input shaping. If the system does not overshoot, the amplitude should be all positive.
[0044] , Time-delay constraint: select the smallest possible time-delay and set the first pulse at time 0.
[0045] , The input shaping method is applied to the vibration suppression of the laser engraving machine's moving components (laser modules) during frequent acceleration and deceleration. The so-called input shaper is 2m constants determined by the elastic structure m for the natural frequency and modal damping and a delay , the external force function f(t) applied to the structure is reshaped into the new form: , Where: , Zero vibration first-order differential shaper ZVD; Zero Vibration and Derivative Shaper, with 3 pulses, when the model parameters are very accurate, the ZV shaper can suppress the residual vibration very well, but when the model parameters are inaccurate, the zero point of the ZV shaper cannot effectively cancel the zero point of the system, and thus cannot effectively eliminate the residual vibration. In order to enhance the robustness of the input shaper to vibration suppression, the residual vibration is constrained. In addition to the constraints of the ZV input shaper, the differential of the natural frequency is added and made zero.
[0046] ZVD input shaper constraints: , To find the first-order derivative, we can simplify it and get: , For the n-th order derivative, after simplification, we can get: , In the above formula, q is the number of derivatives. Increasing one derivative will result in one more pulse and increased time lag, but the robustness will be improved.
[0047] The amplitude and lag derivation process of the ZVD input shaper can refer to the ZV input shaper: ; When the frequency and damping ratio of the input shaper are equal to the frequency and damping ratio of the system, the residual vibration of the system can be effectively suppressed; when there is a certain error between the frequency and damping ratio of the input shaper and the frequency and damping ratio of the system, the residual vibration of the system cannot be effectively suppressed, and the greater the error, the greater the residual vibration.
[0048] Shapers such as ZV have to make trade-offs between robustness and response time. If the frequency and damping ratio can be obtained online in real time, then a shaper with a fast response time can be selected. Then how to obtain the frequency and damping ratio becomes a key point. A mathematical model of the control object can be established, and the frequency and damping ratio can be indirectly estimated based on the transfer function of the second-order system.
[0049] The input shaping effect makes the vibration response excited by the new external force function fzvd(t) applied to the structure smaller than the response under the action of f(t). In specific applications, the function f(t) can also be a boundary condition of displacement or velocity.
[0050] In step 6 above, the laser module of the laser engraving machine moves in the XY axis plane, and the steps of input shaping based on S-shaped acceleration are as follows: 1. Use the accelerometer on the laser engraving machine to measure the vibration frequency in the X and Y directions respectively. This frequency is the key to determine what kind of shaper to use. Different frequencies require different shapers to obtain the smoothest and lowest delay. At the same time, we need to confirm the damping ratio of the laser engraving XY axis; 2. According to the starting position P0 and end point Pn of the laser module of the laser engraving machine, the speed function Use S-type acceleration algorithm for transformation; The specific steps are: The S-shaped curve can be expressed in many mathematical ways. The 5th-order Bezier curve is used in the laser engraving machine. The standard 5th-order Bezier polynomial is: , Expand the above formula to get: , Among them, the control parameters are: , Derivative the velocity and acceleration respectively to obtain the acceleration and jerk: , When the laser module of the laser engraving machine is engraving, the acceleration and jerk at the beginning and end of the acceleration are both zero, then: , Substituting the above conditions into formula (3), we get: Right now , in, , The value range of formula (4) is [0,1]. In general, let the speed at time t0 be V0 and the speed at time t1 be V1. Then at any time t, the speed of the S curve is: , Let the average acceleration from t0 to t1 be a, then: , In this way, the speed at any time is obtained by the previous speed; 3. Reshape the function v(t) (based on the above ZVD shaper) to obtain the shaped velocity function ; We obtained the expression of real-time velocity in step 2 above. Now we just need to modify this motion equation through the zvd shaper. Substituting V(t) into equation 1 can get the new velocity equation: , Through the above speed function The formula calculates the parameters A, B, C, F and average acceleration AV of the S acceleration curve; , In each step of the acceleration process, the instantaneous speed of the next step is first calculated by the S-speed curve equation after shaping. In our application, considering the operation speed, we implement the calculation process using assembly code; at the same time, according to the instantaneous speed calculated above, the time interval of the timer interrupt is recalculated, so that a new pulse signal can be generated in the next timer interrupt function; 5. Use the numerical quadrature method to calculate the velocity function Obtain the motion coordinate value of the laser module of the laser engraving machine after shaping; , Where: is the unit vector from the starting point to the end point of the laser module. The value range of the loop variable i after shaping is When ,i is maximum, the movement speed of the laser module is zero; 6. Finally, use the motion coordinate value after vibration shaping in the stepper generator, use Bresenham logic (interpolation algorithm) to generate a pulse signal (pulse signal after shaping) to drive the motor to move, thereby achieving the effect of vibration suppression.
[0051] Bresenham's basic principle is Fig. 9 As shown: Assume the endpoints of the line segment (x1, y1), (x2, y2), Δx, Δy, as the cost quantities, then the equation of the line is f(x) = kx+b, then: , It can be calculated , We use g(xi) = d1-d2 as the decision function to determine the coordinates of the next pixel, then: ; After the above six steps, we can effectively control the efficiency and vibration of engraving. In the first step, the measurement of vibration frequency and the confirmation of the damping ratio of the device are very important, which is related to the final effect of the control algorithm. Generally speaking, before turning on the input shaping function, the device needs to enter the vibration detection state and confirm the size of the ringing after a long self-test. The value range of the damping ratio is [0,1]. This value needs to be debugged to obtain a stable value for the system.
[0052] Working principle: First, initialize the system and parse the GCode instructions, adjust the vibration suppression parameters according to the machine characteristics, and then optimize the arc instructions by linear interpolation to reduce mechanical errors. During the engraving process, the real-time vibration monitoring unit continuously feeds back data to the control system, dynamically adjusts the S-shaped acceleration and deceleration algorithm to smooth the motion trajectory and reduce vibration. Finally, the speed curve is optimized through the shaping algorithm, and the coordinate points of the motion trajectory are accurately calculated. The pulse signal is output to drive the laser module to complete the engraving task efficiently and accurately. This method not only significantly improves the accuracy and speed of engraving, but also improves the working environment and extends the life of the equipment, thereby enhancing the market competitiveness of the laser engraving machine.
[0053] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0054] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the invention, and the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine, characterized in that: The implementation steps include: S1: Initialization and analysis: Start the control system of the laser engraving machine, analyze the input GCode instructions, and extract the motion parameters of the laser engraving machine; S2: Vibration suppression preparation: Turn on the vibration suppression function, calculate the machine damping ratio, input the machine damping ratio and adjust the vibration suppression system parameters; S3: Motion command optimization: Perform linear interpolation processing on the arc command in GCode, convert it into linear motion command, and apply the arc linear interpolation algorithm to optimize the motion command to compensate for the mechanical system error; S4: Real-time vibration monitoring: The vibration state of the laser module of the laser engraving machine is monitored in real time through the vibration detection unit, and the data is fed back to the control system; S5: S-shaped acceleration and deceleration control: According to the current motion state and vibration monitoring data, the S-shaped acceleration and deceleration algorithm is applied to calculate the acceleration and deceleration curves to adjust the motion trajectory of the laser module of the laser engraving machine; S6: Trajectory shaping and coordinate calculation: According to the optimized speed curve, the shaper regenerates the speed function of the motion based on the shaping algorithm , and using the speed function Recalculate the coordinate points of the motion trajectory of the laser module of the laser engraving machine during the motion process; S7: Pulse output and drive: Generate a pulse signal according to the shaped motion trajectory and output it to the engraving machine driver to drive the laser module of the laser engraving machine to move along the predetermined trajectory.
2. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 1, characterized in that: The shaper is an input shaper, which convolves the pulse signal and the input signal through input shaping, and then uses the shaped signal to control the system. The principle is to process the controlled object in segments. For the two pulses of the input shaper, starting from time 0, at time t1, a pulse signal is given to the system, which generates a vibration with an amplitude of A1. At time t2, another pulse signal is given to the system, which generates a vibration with an amplitude of A2. The two vibration response amplitudes are equal in size and opposite in direction. The two vibrations cancel each other out. When the target position is reached, there is no vibration in the controlled object and it is immediately positioned at the target position.
3. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 2, characterized in that: The mathematical expression of the input shaper is: Time Domain: , After Laplace transformation, the frequency domain expression is: , In the formula, is the amplitude of the ith pulse, is the time delay of the ith pulse.
4. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 3, characterized in that: The input shaper is 2m constants determined by the elastic structure m for the natural frequency and modal damping and a delay , the external force function f(t) applied to the structure is reshaped into the new form: , Where: .
5. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 4, characterized in that: In S6, the laser module of the laser engraving machine moves in the XY axis plane, and the steps of input shaping based on S-shaped acceleration are as follows: S601: using an acceleration sensor on the laser engraving machine to measure the vibration frequencies in the X direction and the Y direction respectively, and determining the type of input shaper to be used according to the vibration frequencies; S602: According to the starting position P0 and the end point Pn of the laser module of the laser engraving machine, the speed function Use S-type acceleration algorithm for transformation; S603: Speed function Reshape to get the reshaped speed function ; S604: Through the above speed function The formula calculates the parameters A, B, C, F and average acceleration AV of the S acceleration curve; S605: Using the numerical quadrature method, the velocity function Obtain the motion coordinate value of the laser module of the laser engraving machine after shaping; S606: Using the shaped motion coordinate value, in the stepper generator, using Bresenham logic to generate a pulse signal to drive the motor to move, so as to suppress vibration.
6. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 5, characterized in that: In S602, the S-shaped curve of the laser module of the laser engraving machine adopts a 5th-order Bezier curve, and its expression is: , Expand the above formula to get: , Among them, the control parameters are: , Derivative the velocity and acceleration respectively to obtain the acceleration and jerk: 。 7. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 6, characterized in that: When the laser module of the laser engraving machine is engraving, the acceleration and jerk at the initial and final moments of acceleration are both zero, then: , Substituting the above conditions into formula (3), we get: ,Right now , in, .
8. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 7, characterized in that: The value range of formula (4) is [0,1]. In general, let the speed at time t0 be V0 and the speed at time t1 be V1. Then at any time t, the speed of the S curve is: , Let the average acceleration from t0 to t1 be a, then: , In this way, the speed at any time is obtained by the previous speed.
9. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 8, characterized in that: The expression of real-time speed is obtained in S602: , when modifying the equations of motion by shaping, Substituting into formula (1) we can get the new velocity equation: 。 10. A vibration suppression acceleration and deceleration motion control method for a laser engraving machine as claimed in claim 5, characterized in that: In S605, the motion coordinate value expression formula of the laser module of the laser engraving machine is: , Where: is the unit vector from the starting point to the end point of the laser module. The value range of the loop variable i after shaping is When ,i is maximum, the movement speed of the laser module is zero.
Citation Information
Patent Citations
Machining control method, device and equipment of laser engraving machine and storage medium
CN117620448A
