SYSTEM FOR CONTROLLING OVERLAPPING IN SINGLE-LAYER LASER CLADDING OF A SHAFT-LIKE WORKPIECE

20220032400 · 2022-02-03

    Inventors

    Cpc classification

    International classification

    Abstract

    A system for controlling overlapping in single-layer laser cladding of a shaft-like workpiece includes an acceleration time calculation module, a feed shaft displacement calculation module and a module for adjusting an initial zero position of a laser head in a feed direction. Using the system, the motions of the spindle and the feed shaft are planned based on an S-curve acceleration and deceleration method. The motion planning is dynamically adjusted considering the overlapping rate and the clamping allowance of the workpiece to be cladded in a feed direction.

    Claims

    1. A system for controlling overlapping in single-layer laser cladding of a shaft-like workpiece, comprising: an acceleration time calculation module, for obtaining a shaft diameter of the shaft-like workpiece to be processed, a feed rate of a feed shaft and a laser cladding width; obtaining a calculation formula of an overlapping rate; planning a motion of the feed shaft and a motion of a spindle based on a rotational velocity of the spindle and an S-curve acceleration and deceleration planning algorithm; and calculating a feed velocity of the feed shaft to obtain acceleration time of the spindle and acceleration time of the feed shaft; a feed shaft displacement calculation module, for determining whether the acceleration time of the spindle is equal to the acceleration time of the feed shaft; if yes, calculating a displacement of the feed shaft; otherwise, determining whether the acceleration time of the spindle is greater than the acceleration time of the feed shaft; if yes, after the feed shaft accelerates to a preset velocity, keeping the feed shaft at the preset velocity for a period of uniform motion until the spindle reaches the preset velocity; otherwise, re-planning a motion of the spindle according to S-curve acceleration and deceleration; adding a period of uniform acceleration motion for the spindle or reducing a maximum jerk of the spindle to make the acceleration time of the spindle equal to the acceleration time of the feed shaft; and calculating a total displacement of the feed shaft; and a module for adjusting an initial zero position of a laser head in a feed direction according to a difference between the total displacement of the feed shaft and a preset clamping allowance.

    2. A system for controlling overlapping in single-layer laser cladding of a shaft-like workpiece, comprising: an acceleration time calculation module, for obtaining a shaft diameter of the shaft-like workpiece to be processed, a feed rate of a feed shaft and a laser cladding width; obtaining a calculation formula of an overlapping rate; planning a motion of the feed shaft and a motion of a spindle based on a rotational velocity of the spindle and an S-curve acceleration and deceleration planning algorithm; and calculating a feed velocity of the feed shaft to obtain acceleration time of the spindle and acceleration time of the feed shaft; a feed shaft displacement calculation module, for determining whether the acceleration time of the spindle is equal to the acceleration time of the feed shaft; if yes, calculating a displacement of the feed shaft; otherwise, determining whether the acceleration time of the spindle is greater than the acceleration time of the feed shaft; if yes, re-planning a motion of the feed shaft according to an acceleration triangle planning method, adding a period of uniform acceleration motion of the feed shaft or reducing a maximum jerk of the feed shaft to make the acceleration time of the spindle equal to the acceleration time of the feed shaft, and then calculating the displacement of the feed shaft; otherwise, re-planning a motion of the spindle according to S-curve acceleration and deceleration, adding a period of uniform acceleration motion for the spindle or reducing the maximum jerk of the spindle to make the acceleration time of the spindle equal to the acceleration time of the feed shaft, and calculating a total displacement of the feed shaft; and a module for adjusting an initial zero position of a laser head in a feed direction according to a difference between the total displacement of the feed shaft and a preset clamping allowance.

    3. The system of claim 2, wherein in the feed shaft displacement calculation module, in an S-curve acceleration and deceleration planning, when the acceleration time of the spindle is greater than the acceleration time of the feed shaft, the motion of the feed shaft is re-planned according to an acceleration triangle planning method to make the spindle and the feed shaft reach their respective preset velocities with the same motion time; when a newly planned feed velocity of the feed shaft is greater than the preset velocity of the feed shaft, the maximum jerk of the feed shaft is reduced to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft; when the newly planned feed velocity of the feed shaft is lower than the preset velocity of the feed shaft, the period of uniform acceleration motion of the feed shaft is added to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0068] The drawings of the specification constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments and descriptions of the present disclosure are used to explain the present disclosure, and are not intended to limit the scope of the present disclosure.

    [0069] FIG. 1 schematically shows calculation of an overlapping rate using a geometric method according to an embodiment of the disclosure.

    [0070] FIG. 2 is a schematic diagram of a seven-section S-shaped acceleration and deceleration curve according to an embodiment of the disclosure.

    [0071] FIG. 3 schematically illustrates a positional relationship between a laser head and a workpiece clamping allowance according to an embodiment of the disclosure.

    [0072] FIG. 4 is a schematic diagram of an acceleration triangle planning method according to an embodiment of the disclosure.

    [0073] FIG. 5 is a schematic diagram of a method for controlling overlapping of a single-layer high-velocity laser cladding of a shaft-like workpiece according to an embodiment of the disclosure.

    [0074] FIG. 6 is a schematic diagram of the method for controlling overlapping of the single-layer high-velocity laser cladding of the shaft-like workpiece according to another embodiment of the disclosure.

    [0075] FIG. 7 is a perspective view of a device for dynamically adjusting a height of a laser head of a laser cladding machine according to an embodiment of the disclosure.

    [0076] FIG. 8 is a side view of the device for dynamically adjusting the height of the laser head of the laser cladding machine according to an embodiment of the disclosure.

    [0077] FIG. 9 schematically illustrates a working principle of the device for dynamically adjusting the height of the laser head of the laser cladding machine according to an embodiment of the disclosure.

    [0078] FIG. 10 is a schematic diagram of a system for dynamically adjusting the height of the laser head of the laser cladding machine according to an embodiment of the disclosure.

    [0079] FIG. 11 is a control flowchart of the system for dynamically adjusting the height of the laser head of the laser cladding machine according to an embodiment of the disclosure.

    [0080] FIG. 12 is a schematic diagram of a force analysis of a workpiece according to an embodiment of the disclosure.

    [0081] FIG. 13 is a schematic diagram of a quartic interpolation algorithm according to an embodiment of the disclosure.

    [0082] In the drawings: 1, laser displacement sensor; 2, sensor flange; 3, laser head; 4, workpiece; 5, controller; 6, servo driver; 7, motor; 8, standard IO module; and 9, chuck.

    DETAILED DESCRIPTION OF EMBODIMENTS

    [0083] The present disclosure will be further described in detail below with reference to the accompanying drawings and the embodiments.

    [0084] It should be pointed out that the following detailed descriptions are all illustrative and are intended to provide further explanations for the application. Unless otherwise indicated, all technical and scientific terms adopted herein have the same meaning as commonly understood by those of ordinary skill in the corresponding technical field.

    [0085] It should be noted that the terms used herein are only for describing specific implementations, and are not intended to limit the exemplary implementations according to the present disclosure. As used herein, unless specified, a singular form is also intended to include the plural form. In addition, it should also be understood that when the terms “comprise” and/or “include” are used in this specification, it indicates the existence of features, steps, operations, devices, components, and/or combinations thereof.

    [0086] In this application, terms such as “up”, “down”, “left”, “right”, “front”, “rear”, “vertical”, “horizontal”, “side” and “bottom” indicate the orientation or the position relationship as shown in the drawings. The terms are only relationship terms for facilitating understanding the structural relationship of components or elements in this application, which are not intended to limit this application.

    [0087] In this application, terms such as “fix”, “connect”, and “link” should be understood in a broad sense. For example, “fix” may result in a fixed connection, a detachable connection, or an integrated configuration of elements. The elements may be directly connected or indirectly connected through an intermediate medium. For the relevant scientific research or technical personnel in the field, the specific meaning of the above terms in this application can be determined according to the specific situation, and they should not be understood as a limitation of this application.

    [0088] Method for Controlling Overlapping in Single-Layer Laser Cladding of Shaft-Like Workpiece

    [0089] In a single-layer laser cladding overlap process of the shaft-like workpiece, it is required to strictly control the motion relationship between the spindle and the feed shaft. The shutter must be opened for the laser cladding after the spindle and the feed shaft reach the preset velocity.

    [0090] In view of the contradiction between the clamping allowance of the workpiece in a feed direction and the motion planning of the spindle and the feed shaft in the traditional motion control system of a laser cladding machine, the application provides a method for controlling overlapping in single-layer laser cladding of a shaft-like workpiece, in which the motion planning is dynamically adjusted by comprehensively considering the overlapping rate and the clamping allowance of the workpiece, thereby improving the processing efficiency of the workpiece and ensuring the quality of the cladding layer of the workpiece.

    [0091] The technical solutions of the present application will be described in detail below in conjunction with specific embodiments.

    [0092] The technical solution of the method for controlling overlapping in single-layer laser cladding of the shaft-like workpiece in this embodiment is as follows.

    [0093] The calculation formula of the overlapping rate is derived using the geometric method, and the feed velocity of the feed shaft, the acceleration time of the spindle and the acceleration time of the feed shaft are calculated according to the known production conditions.

    [0094] An adjustment strategy for the motion planning of the spindle and feed shaft is obtained by comparing the acceleration time of the spindle and the acceleration time of the feed shaft and making different decisions based on the comparison results.

    [0095] Finally, a total displacement of the feed shaft is calculated and the total displacement of the feed shaft is compared with the clamping allowance, thereby obtaining a zero position adjustment strategy of the machine.

    [0096] Specifically, as shown in FIG. 1, the overlapping rate p refers to a ratio of a difference between the width of the N+1th laser cladding channel and the width of the Nth laser cladding channel to the width of the laser cladding (where N is a natural number greater than 1).

    [0097] The derivation process of the geometric method is as follows.

    [0098] Known conditions include: [0099] a rotational velocity n (r/min) of the spindle; [0100] a shaft diameter d (mm) of the workpiece to be processed; [0101] a feed rate f (mm/r) of the feed shaft; [0102] a width D (mm) of the laser cladding layer; and [0103] a distance l (mm) between center lines of two adjacent laser cladding channels in the width direction.

    [0104] Thus, the feed velocity f.sub.v of the feed shaft can be calculated as follows:


    f.sub.v=n×f  (1).

    [0105] As shown in FIG. 1, after depicting the processing path diagram and the sizes therein, it can be known that:

    [00001] tan θ = π d f ; ( 2 ) sin θ = l f . ( 3 )

    [0106] Based on the definition, the formula for calculating the overlapping rate is as follows:

    [00002] p = D - l D × 1 0 0 % . ( 4 )

    [0107] Based on equations (2) and (3), the expression of cos θ can be obtained as follows:

    [00003] cos θ = l π d . ( 5 )

    [0108] Based on the formula sin θ.sup.2+cos θ.sup.2=1, the expression of l can be derived as follows:

    [00004] ( l π d ) 2 + ( l f ) 2 = 1 ; ( 6 ) l = π d f f 2 + π 2 d 2 . ( 7 )

    [0109] It can be known from the equations (4) and (7) that:

    [00005] p = D - π d f f 2 + π 2 d 2 D × 1 0 0 % . ( 8 )

    [0110] In actual production, process planners generally directly specify the overlapping rate and the rotational velocity of the spindle, and the velocity of the feed shaft is unknown. Therefore, this embodiment further adopts the calculation formula of the overlapping rate and known conditions to inversely calculate the velocity f.sub.v of the feed shaft, as shown in the equation (9): (where the shaft diameter d of the workpiece to be processed, the overlapping rate p, the rotational velocity n of the spindle, and the width D of the laser cladding layer are known)

    [00006] f v = n π d D ( 1 - p ) π 2 d 2 - D 2 ( 1 - p ) 2 . ( 9 )

    [0111] The method for calculating the overlapping rate derived from the geometric method of this embodiment has the advantages of fast and efficient properties. Firstly, according to the depicted geometric drawing, an algebraic relationship between the feed rate of the feed shaft, the diameter of the shaft-like workpiece to be processed, and the width of the laser cladding. Then, based on the mathematical relationship between the feed rate of the feed shaft and the rotational velocity of the spindle, the calculation method of the overlapping rate is finally derived.

    [0112] In this embodiment, an S-curve acceleration and deceleration motion algorithm with excellent acceleration performance and good acceleration efficiency is adopted to plan the motion process of the spindle and the feed shaft. Firstly, the total time required for the spindle and the feed shaft to reach their respective preset velocities are calculated, and then the acceleration time of the feed shaft and the acceleration time of the spindle are compared.

    [0113] If the acceleration time of the spindle is equal to the acceleration time of the feed shaft, directly proceed to the next step of calculating the total displacement of the feed shaft.

    [0114] If the acceleration time of the spindle is greater than the acceleration time of the feed shaft, the current motion planning is required to be adjusted. After the feed shaft accelerates to the preset velocity, the preset velocity is maintained for a period of uniform motion until the spindle reaches the preset velocity; or the motion of the feed shaft is re-planned to make the spindle and the feed shaft reach their respective preset velocities with the same motion time. When a newly planned feed velocity of the feed shaft is greater than the preset velocity of the feed shaft, the maximum acceleration of the feed shaft is reduced to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft. When the newly planned feed velocity of the feed shaft is lower than the preset velocity of the feed shaft, the period of uniform acceleration motion of the feed shaft is added to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft.

    [0115] If the acceleration time of the spindle is less than the acceleration time of the feed shaft, it is necessary to adjust the motion planning and re-plan the spindle motion to make the feed shaft and the spindle reach their respective preset velocities with the same motion time. When the newly planned spindle velocity is greater than the preset velocity of the spindle, the maximum jerk of the spindle needs to be reduced, to make the newly planned spindle velocity equal to the preset velocity of the spindle. When the newly planned spindle velocity is less than the preset velocity of the spindle, a period of uniform acceleration motion needs to be added for the spindle to make the newly planned spindle velocity equal to the preset velocity of the spindle.

    [0116] Specifically, the S-curve acceleration and deceleration motion algorithm is adopted to plan the motion of the rotational velocity n of the spindle and the feed velocity f.sub.v of the feed shaft. The S-curve velocity profile contains seven-section cubic spline functions, so that the feed shaft and the spindle can realize continuous change of acceleration, which can effectively reduce shock and oscillation. FIG. 2 shows the position, velocity, acceleration and jerk curves of the S-curve acceleration and deceleration process. The acceleration process includes a stage in which an acceleration is increasing, a stage in which an acceleration is constant and a stage in which an acceleration is decreasing. The deceleration process includes a stage in which a deceleration is increasing, a stage in which a deceleration is constant and a stage in which a deceleration is decreasing. The acceleration process and the deceleration process are changed through a uniform motion, and the whole process has seven stages. The equations of jerk j, acceleration a, velocity v and displacement s in the seven stages are as follows.

    [0117] v.sub.s is the initial velocity. v.sub.1˜v.sub.6 are the final velocities of the increasing acceleration stage, the uniform acceleration stage, the decreasing acceleration stage, the uniform velocity stage, the increasing deceleration stage, the uniform deceleration stage, and the decreasing deceleration stage, respectively. T.sub.1˜T.sub.7 are the end time of the increasing acceleration stage, the uniform acceleration stage, the decreasing deceleration stage, the uniform velocity stage, the increasing deceleration stage, the uniform deceleration stage, and the decreasing deceleration stage, respectively. t.sub.1˜t.sub.7 respectively are periods of the increasing acceleration stage, the uniform acceleration stage, the decreasing deceleration stage, the uniform velocity stage, the increasing deceleration stage, the uniform deceleration stage, and the decreasing deceleration stage. a.sub.max is the maximum acceleration and j.sub.max is the maximum jerk. s.sub.1˜s.sub.6 are the displacements of the increasing acceleration stage, the uniform acceleration stage, the decreasing deceleration stage, the uniform velocity stage, the increasing deceleration stage, the uniform deceleration stage, and the decreasing deceleration stage, respectively.

    [00007] j ( t ) = { j max 0 t T 1 0 T 1 t T 2 - j max T 2 t T 3 0 T 3 t T 4 - j max T 4 t T 5 0 T 5 t T 6 j max T 6 t T 7 ; ( 10 ) a ( t ) = { j max × t 0 t T 1 a max T 1 t T 2 a max - j max × t T 2 t T 3 0 T 3 t T 4 - j max × t T 4 t T 5 - a max T 5 t T 6 - a max + j max × t T 6 t T 7 ; ( 11 ) v ( t ) = { v s + 1 2 j max × t 2 0 t T 1 v 1 + a max × t T 1 t T 2 v 2 + a max × t - 1 2 j max × t 2 T 2 t T 3 v 3 T 3 t T 4 v 4 - 1 2 j max × t 2 T 4 t T 5 v 5 - a max × t T 5 t T 6 v 6 - a max × t + 1 2 j max × t 2 T 6 t T 7 ; ( 12 ) s ( t ) = { v s × t + 1 6 j max × t 3 0 t T 1 s 1 + v 1 × t + 1 2 a max × t 2 T 1 t T 2 s 2 + v 2 × t + 1 2 a max × t 2 - 1 6 j max × t 3 T 2 t T 3 s 3 + v 3 × t T 3 t T 4 s 4 + v 4 × t - 1 6 j max × t 3 T 4 t T 5 s 5 + v 5 × t - 1 2 a max × t 2 T 5 t T 6 s 6 + v 6 × t - 1 2 a max × t 2 + 1 6 j max × t 3 T 6 t T 7 . ( 13 )

    [0118] Specifically, the spindle reaches the preset velocity according to the S-curve acceleration and deceleration. The specific calculation of S-curve acceleration and deceleration motion is as follows.

    [0119] Firstly, the time allocation of the spindle motion is planned. Since the motion only involves the spindle velocity from 0 to the preset velocity v, the first three stages in the S-curve acceleration and deceleration can be used (a.sub.max is the maximum acceleration that the spindle can withstand, j.sub.max is the maximum jerk that the spindle can withstand).

    [00008] t 1 = a max j max ; ( 14 ) t 2 = v - v s a max - t 1 ; ( 15 ) t 3 = t 1 . ( 16 )

    [0120] Firstly, whether t.sub.2 is greater than 0 is determined. If t.sub.2<0, then set t.sub.2=0, and there is no uniform acceleration stage in the S-curve acceleration process, only the increasing acceleration stage and the decreasing acceleration stage, where the total time t of the spindle motion is as follows:


    t=t.sub.1+t.sub.3  (17).

    [0121] If t.sub.2>0, then there is an uniform acceleration stage in the acceleration process of the S curve, and the uniform acceleration stage includes the increasing acceleration stage, the uniform acceleration stage and the decreasing acceleration stage, and the total time t of the spindle motion is as follows:


    t=t.sub.1+t.sub.2+t.sub.3  (18).

    [0122] The feed shaft is also planned to reach the preset velocity by the S-curve acceleration and deceleration. From the equation (9), the designated feed velocity of the feed shaft f.sub.v can be known, and the maximum acceleration a.sub.max and maximum jerk j.sub.max of the feed shaft are also known. These parameters are plugged into the equations (14)-(18) to calculate the shortest total time t.sub.f required for the feed shaft to reach the designated feed velocity.

    [0123] t.sub.s (total time required for the feed shaft to reach the designated feed velocity) and t.sub.f are compared, and the motion planning is adjusted by comprehensively considering the motion planning of the spindle, the motion planning of the feed shaft, and the clamping allowance of the workpiece to be processed in a feed direction. Before adjustment and analysis, the clamping allowance of the workpiece in the feed direction is set to a fixed value X. The specific requirements are shown in FIG. 3. In FIG. 3, the chuck 9 is provided for fixing the workpiece 4, and the laser head 3 is located above the fixed workpiece 4.

    [0124] {circle around (1)} If t.sub.s>t.sub.f, it is indicated that when the feed shaft reaches the designated feed velocity, the spindle is in the acceleration phase and does not reach the preset velocity, and the feed shaft has enough time to accelerate to the preset velocity. At this time, it should be noted that: when the feed shaft reaches the designated feed velocity, the position relationship between the laser head and a processing start point A. At this time, there are two cases to make the feed velocity of the feed shaft reach the designated feed velocity when the spindle reaches the preset velocity.

    [0125] Case 1:

    [0126] as shown in FIG. 5, when the feed shaft reaches the designated feed velocity, the spindle is in the acceleration phase and does not reach the preset velocity. The remaining time t for the spindle to reach the preset velocity is as follows:


    t=t.sub.s−t.sub.f  (19).

    [0127] During t, the feed shaft is controlled to move at a constant velocity according to the designated feed velocity, where the displacement s′ of the constant velocity stage is as follows:


    s′=f.sub.v×(t.sub.s−t.sub.f)  (20).

    [0128] Based on the equations (13) and (20), the total displacement s of the feed shaft is as follows:


    s=v.sub.s×t.sub.1+⅙j.sub.max×t.sub.1.sup.3+(v.sub.s+½j.sub.max×t.sub.1.sup.2)×t.sub.2+½a.sub.max×t.sub.2.sup.2+(v.sub.s+½j.sub.max×t.sub.1.sup.2+a.sub.max×t.sub.2)x t.sub.3+½a.sub.max×t.sub.3.sup.2x t.sub.3.sup.2−⅙j.sub.max×t.sub.3.sup.2+f.sub.v×(t.sub.s−t.sub.f)  (21).

    [0129] At this time, the displacement difference ΔX between s and X is calculated, and s and X are compared as follows:


    ΔX=s−X  (22).

    [0130] Case 2:

    [0131] As shown in FIG. 6, since the acceleration time of the spindle is greater than the acceleration time of the feed shaft, and the S curve is planned according to the maximum acceleration and the maximum jerk of the spindle and the maximum acceleration and the maximum jerk of the feed shaft, the spindle and the feed shaft reach the shortest acceleration time. Since the time for the feed shaft to reach the designated feed velocity under the maximum motion constraint is shorter than the time for the spindle to reach the specified velocity under the maximum motion constraint, the motion parameters of the feed shaft can be changed at this time to make the time for the feed shaft to reach the designated feed velocity equal to the time for the spindle to accelerate to the preset velocity, thereby avoiding idling of the feed shaft.

    [0132] At this time, it is necessary to perform the S curve velocity planning of the feed shaft, and first calculate the maximum acceleration that the feed shaft can reach in the current plan as follows:


    a.sub.max=t.sub.1×j.sub.max  (23).

    [0133] Then the triangular acceleration planning is performed for the acceleration of the feed shaft, that is, the uniform acceleration stage in the S-curve acceleration and deceleration planning is directly removed. From the acceleration triangle planning as shown in FIG. 4, it can be known that:

    [00009] { t 1 = a max / j max t 2 = 0 t 3 = t 1 t 4 = 0 t 5 = t 1 t 6 = 0 t 7 = t 1 . ( 24 )

    [0134] The acceleration triangle planning method of the feed shaft used in this embodiment makes the spindle and the feed shaft reach their respective preset velocities with the same time.

    [0135] The start-up phase of laser cladding machine processing only involves the acceleration phase, and the time required for the increasing acceleration phase is equal to the time required for the decreasing acceleration phase, so the total acceleration time t is as follows:


    t=t.sub.1+t.sub.2+t.sub.3  (25).

    [0136] The maximum velocity v.sub.max is as follows:

    [00010] v max = a max 2 j max . ( 26 )

    [0137] At this time, the restriction condition is added, that is, the time for the feed shaft to reach the designated feed velocity is equal to the time for the spindle to accelerate to the preset velocity. According to the equation (24), the value of a.sub.mi can be derived as follows:

    [00011] a max = j max × t s 2 . ( 27 )

    [0138] Based on the equations (26) and (27), the maximum velocity that the feed shaft can reach through the increasing acceleration phase and the deceleration phase is as follows:

    [00012] v max = t s 2 × j max 4 . ( 28 )

    [0139] Then, the newly calculated feed shaft v.sub.max and the designated feed velocity f.sub.v are compared as follows.

    [0140] If v.sub.max>f.sub.v, then the maximum jerk j.sub.max of the feed shaft needs to be reduced at this time, so the maximum acceleration of the feed shaft is reduced accordingly. As shown in FIG. 4, v.sub.max=f.sub.v, and thus the expression of the maximum jerk of the feed shaft is as follows:

    [00013] j max = 4 f v t s 2 . ( 29 )

    [0141] At this time, the displacement s of the feed shaft is:


    s=½×f.sub.v×t.sub.s  (30).

    [0142] If v.sub.max<f.sub.v, then it is required to add a period of uniform acceleration motion for the feed shaft at this time. As shown in FIG. 4, the feed shaft can accelerate to the designated feed velocity f.sub.v during the time t.sub.s, and the relationship at this time satisfies:

    [00014] { ( t 1 + t 2 + t 3 ) × a max = f v t 1 + t 2 + t 3 = t s t 1 = t 3 . ( 31 )

    [0143] The time t.sub.2′ of the uniform acceleration motion of the feed shaft is obtained by solving the equation (31):

    [00015] t 2 = 2 f v a max - t s . ( 32 )

    [0144] At this time, the displacement s of the feed shaft is:

    [00016] s = t 1 × v 1 + ( v 1 + v 2 ) × t 2 2 . ( 33 )

    [0145] According to the planning method at this time, it can be seen that the v.sub.1 of the feed shaft after the time t.sub.1′, and the v.sub.2 of the feed shaft after the time t.sub.1′ and t.sub.2′ are respectively:

    [00017] { v 1 = a max × t 1 2 v 2 = v 1 + t 2 × a max . ( 34 )

    [0146] Based on the equations (31)-(34), the displacement s of the feed shaft can be obtained as follows:

    [00018] s = 3 f v 2 + j max 2 × t s 4 - 2 j max × f v × t s 2 4 j max × t s . ( 35 )

    [0147] If v.sub.max=f.sub.v, there is no need to adjust the motion parameters of the feed shaft at this time. Since the acceleration process of the feed shaft is only divided into the increasing acceleration stage and the decreasing acceleration stage, the displacement s of the feed shaft can be obtained as the equation (30).

    [0148] By comparing the displacement s of the feed shaft in the feed direction when the feed shaft reaches the designated feed velocity in Case 1 and Case 2, the situation that is more suitable for the clamping allowance X of the workpiece in the feed direction is selected as the motion planning program of the feed shaft.

    [0149] {circle around (2)} If t.sub.s=t.sub.f, it is indicated that the spindle and the feed shaft reach their preset velocities with the same time, and the total displacement of the feed shaft can be directly calculated at this time. According to the known conditions and equation (13), the total displacement s of the feed shaft is:


    s=v.sub.s×t.sub.1+⅙j.sub.max×t.sub.1.sup.3+(v.sub.s+½j.sub.max×t.sub.1.sup.2)×t.sub.2+½a.sub.max×t.sub.2.sup.2+(v.sub.s+½j.sub.max×t.sub.1.sup.2+a.sub.max×t.sub.2)×t.sub.3+½a.sub.max×t.sub.3.sup.2−⅙j.sub.max×t.sub.3.sup.3  (36).

    [0150] {circle around (3)} If t.sub.s<t.sub.f, it is indicated that the time required for the spindle to accelerate to the preset velocity is less than the time required for the feed shaft to accelerate to the designated feed velocity. Considering that the long shaft parts generally has large moment of inertia, it is desirable to change the spindle motion parameters to allow the time for the spindle to accelerate to the preset velocity equal to the acceleration time of the feed shaft, thereby optimizing the stable acceleration performance of the spindle and improving production safety.

    [0151] At this time, it is necessary to re-plan the S-curve velocity of the spindle. At first, the maximum acceleration that the spindle can achieve in the current plan is found, as shown in the equation (23). Similarly, the subsequent adjustment plan uses the acceleration triangle acceleration method shown in FIG. 4. Time distribution and the calculation of the maximum acceleration of respective phases can refer to the equations (24)-(26).

    [0152] According to the equation (24), it can be derived that the a.sub.max of the spindle is calculated as follows:

    [00019] a max = j max × t f 2 . ( 37 )

    [0153] According to the equations (26) and (37), the maximum velocity that the spindle can reach through the increasing acceleration phase and the decreasing acceleration phase is calculated as follows:

    [00020] v max = t f 2 × j max 4 . ( 38 )

    [0154] Then, the newly calculated v.sub.max and the designated rotational velocity n of the spindle are compared as follows.

    [0155] If v.sub.max>n, then the maximum jerk j.sub.max of the spindle needs to be reduced at this time, and the maximum acceleration of the spindle is therefore reduced. As shown in FIG. 4, v.sub.max=n, and the maximum jerk of the spindle is adjusted as follows:

    [00021] j max = 4 n t f 2 . ( 39 )

    [0156] If v.sub.max<n, a period of uniform acceleration motion is required to be added in the motion of the spindle to enable the spindle to be accelerated to the preset rotational velocity n within the time t.sub.f (as shown in FIG. 4), and the relationship satisfies the following equation:

    [00022] { ( t 1 + t 2 + t 3 ) × a max = n t 1 + t 2 + t 3 = t f t 1 = t 3 . ( 40 )

    [0157] The time t.sub.2′ of the uniform acceleration motion of the spindle is obtained as follows by solving the equation (40):

    [00023] t 2 = 2 n a max - t f . ( 41 )

    [0158] If v.sub.max=n, there is no need to adjust motion parameters of the spindle at this time.

    [0159] Further, the displacement s in the feed direction when the feed shaft accelerates to the designated feed velocity can be calculated according to the known conditions, and the calculation formula is the same as the equation (36).

    [0160] In any case of the above {circle around (1)}, {circle around (2)} and {circle around (3)}, if there is a solution to the encountered problem in the corresponding interval, the solution is selected.

    [0161] Then the relationship between the displacement s in the feed direction when the feed shaft accelerates to the designated feed velocity in {circle around (1)}, {circle around (2)} and {circle around (3)} and the clamping allowance X of the workpiece in the direction of the feed shaft is analyzed. The zero position of the laser head in the feed direction is adjusted according to the equation (22). Therefore, when the spindle and the feed shaft reach their preset velocities at the same time, the laser head is exactly at the clamping allowance X. Under the premise of meeting the production requirements, it not only improves the processing efficiency of the workpiece, but also ensures the quality of the workpiece cladding layer. The specific situation is as follows.

    [0162] If Δx>0, when the laser head accelerates to the designated feed velocity from the original set zero position at this time, it will exceed the processing starting point over distance Δx and cannot meet the production requirements, so the laser head zero position needs to be reset at this time. Considering that there may be interference between the laser head and the machine chuck, the laser head needs to move a distance of Δx in a direction opposite to the feed direction at the zero position, and the laser head also needs to move a certain safety distance longitudinally in its height direction, thereby avoiding interference between the laser head and the machine chuck. The moved position of the laser head is adopted as the new zero position.

    [0163] If Δx=0, when the laser head accelerates to the designated feed velocity from the original set zero position, it will just reach the processing starting point without resetting the zero position.

    [0164] If Δx<0, when the laser head accelerates to the designated feed velocity from the original set zero position, there is still a certain distance from the processing starting point to the laser head. Therefore, it is necessary to reset the zero position of the laser head and take a position where the laser head has moved for |Δx| distance in the feed direction as the new zero position.

    [0165] Through the above method, the problem of calculating the overlapping rate of the single-layer overlap laser cladding of the shaft-like workpiece is solved, and the motion planning is dynamically adjusted by comprehensively considering the overlapping rate and workpiece clamping allowance, thereby effectively solving the contradiction between the workpiece clamping allowance and the motion planning of the spindle and the feed shaft. Based on the method, the single-layer overlap laser cladding control system for the shaft-like workpiece, in which the overlapping rate and the workpiece clamping allowance during the operation process are comprehensively considered, to dynamically adjust the motion planning of the spindle and the feed shaft. Moreover, the optimal strategy is selected according to different processing requirements, thereby improving the processing efficiency of the workpiece and ensuring the quality of the workpiece cladding layer.

    [0166] System for Controlling Overlapping in Single-Layer Laser Cladding of a Shaft-Like Workpiece

    [0167] In an embodiment, provided is a system for controlling overlapping in single-layer laser cladding of a shaft-like workpiece, including:

    [0168] an acceleration time calculation module, for obtaining a shaft diameter of a workpiece to be processed, a feed rate of a feed shaft and a laser cladding width; obtaining a calculation formula of the overlapping rate, and planning motions of the feed shaft and the spindle based on a rotational velocity of a spindle and an S-curve acceleration and deceleration planning algorithm; and calculating a feed velocity of the feed shaft, thereby obtaining acceleration time of the spindle and acceleration time of the feed shaft;

    [0169] a feed shaft displacement calculation module, for determining whether the acceleration time of the spindle is equal to the acceleration time of the feed shaft; if yes, calculating a displacement of the feed shaft; otherwise, determining whether the acceleration time of the spindle is greater than the acceleration time of the feed shaft; if yes, after the feed shaft accelerates to a preset velocity, keeping the feed shaft at the preset velocity for a period of uniform motion until the spindle reaches the preset velocity; otherwise, re-planning a motion of the spindle according to S-curve acceleration and deceleration; adding a period of uniform acceleration motion for the spindle or reducing a maximum jerk of the spindle, to make the acceleration time of the spindle equal to the acceleration time of the feed shaft; and calculating the displacement of the feed shaft; and

    [0170] a module for adjusting an initial zero position of the laser head in a feed direction according to a difference between the displacement of the feed shaft and a preset clamping allowance.

    [0171] In another embodiment, provided is a system for controlling overlapping in single-layer laser cladding of a shaft-like workpiece, including:

    [0172] an acceleration time calculation module, for obtaining a shaft diameter of a workpiece to be processed, a feed rate of a feed shaft and a laser cladding width; obtaining a calculation formula of the overlapping rate, and planning motions of the feed shaft and the spindle based on a rotational velocity of a spindle and an S-curve acceleration and deceleration planning algorithm; and calculating a feed velocity of the feed shaft, thereby obtaining acceleration time of the spindle and acceleration time of the feed shaft;

    [0173] a feed shaft displacement calculation module, for determining whether the acceleration time of the spindle is equal to the acceleration time of the feed shaft; if yes, calculating a displacement of the feed shaft; otherwise, determining whether the acceleration time of the spindle is greater than the acceleration time of the feed shaft; if yes, re-planning a motion of the feed shaft according to an acceleration triangle planning method, adding a period of uniform acceleration motion of the feed shaft or reducing a maximum jerk of the feed shaft, to make the acceleration time of the spindle equal to the acceleration time of the feed shaft; and calculating the displacement of the feed shaft; otherwise, re-planning a motion of the spindle according to the S-curve acceleration and deceleration; adding the period of uniform acceleration motion for the spindle or reducing the maximum jerk of the spindle, to make the acceleration time of the spindle equal to the acceleration time of the feed shaft; and calculating the total displacement of the feed shaft; and

    [0174] a module for adjusting an initial zero position of the laser head in a feed direction according to a difference between the displacement of the feed shaft and a preset clamping allowance.

    [0175] Specifically, in the feed shaft displacement calculation module, in an S-curve acceleration and deceleration planning, when the acceleration time of the spindle is greater than the acceleration time of the feed shaft, the motion of the feed shaft is re-planned according to the acceleration triangle planning method to make the spindle and the feed shaft reach their respective preset velocities with the same motion time; when a newly planned feed velocity of the feed shaft is greater than the preset velocity of the feed shaft, the maximum jerk of the feed shaft is reduced to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft; when the newly planned feed velocity of the feed shaft is lower than the preset velocity of the feed shaft, the period of uniform acceleration motion of the feed shaft is added to make the newly planned feed velocity of the feed shaft equal to the preset velocity of the feed shaft.

    [0176] In the above embodiments, the motions of the spindle and the feed shaft are planned based on the S-curve acceleration and deceleration method. The motion planning is dynamically adjusted by comprehensively considering the overlapping rate and the clamping allowance of the workpiece in a feed direction, so that the contradiction between the workpiece clamping allowance and the motion planning of the spindle and the feed shaft is effectively solved, thereby improving the processing efficiency of the workpiece and ensuring the quality of the workpiece cladding layer.

    [0177] Method, Device and System for Dynamically Adjusting Height of Laser Head of Laser Cladding Machine

    [0178] In view of the shortcomings of the existing laser cladding machine, to compensate workpiece deflection and deformation in real time, dynamically adjust the height of the laser head, and eliminate processing errors caused by deflection and deformation of heavy and long shaft-like workpieces, this embodiment provides a laser head with a laser displacement sensor and a control algorithm for dynamically adjusting the height of the laser head, to realize real-time online measurement of workpiece deflection and deformation, compensate the workpiece deflection and deformation, and eliminate processing errors caused by continuous deflection and deformation of heavy and long-axis workpieces, thereby ensuring the processing quality of the laser cladding machine.

    [0179] As shown in FIGS. 7 and 8, in an embodiment, provided is a device for dynamically adjusting a height of a laser head of a laser cladding machine based on a laser displacement sensor, including a laser displacement sensor 1, a sensor flange 2, and a laser head 3, a standard IO module 8, a controller 5, a servo driver 6 and a motor 7 in shafts of the laser cladding machine. As shown in FIG. 9, the laser displacement sensor 1 is arranged on a side wall of the laser head 3 with a parallel offset through the sensor flange 2, and the laser displacement sensor 1 can follow the motion of the laser head 3. The laser displacement sensor 1 collects the distance information between the laser head 3 and the workpiece 4 in real time at a certain frequency, and sends the collected distance information to the controller 5 through the standard IO module 8 in real time. The laser displacement sensor 1 measures the distance between the surface of the workpiece 4 and the laser head 3. Since the laser displacement sensor 1 is arranged on the laser head 3 and follows the motion of the laser head 3, the laser displacement sensor 1 needs to convert the relative distance between the laser head 3 and the workpiece 4 into a coordinate system of the machine during acquisition to realize a unification of the coordinate system.

    [0180] A process of adjusting the height of the laser head 3 is shown in FIG. 11. The laser displacement sensor 1 detects the relative distance between the workpiece 4 and the laser head 3 in real time, and sends discrete distance information to the controller 5 through the standard IO module 8. Since the laser displacement sensor 1 is before the laser head 3 in the feed direction, the data collected by the laser displacement sensor 1 needs to be firstly stored in the controller 5 for subsequent use.

    [0181] After receiving the discrete distance information sent by the laser displacement sensor 1, the controller 5 queries the current position information of the laser head 3. After the conversion and calculation of the relative position, the controller converts the relative distance information sent by the laser displacement sensor 1 to the coordinate system of the machine, to obtain a series of global coordinate points. The processed global coordinate points are temporarily stored in the measurement data buffer, and the measurement information buffer is refreshed at the same time. The controller 5 takes out the global coordinate points in batches from the measurement data buffer, and obtains the local quartic interpolation functions by using a quartic interpolation method, and stores the function parameters in the error compensation buffer.

    [0182] The actual parameters of the servo driver 6 in each shaft of the laser cladding machine are read in each communication cycle via a main motion control program in the controller 5. When the laser head 3 needs to perform motion planning, trajectory interpolation and other operations, the controller 5 dynamically interprets the current working area of the laser head 3, and takes out the corresponding interpolation function temporarily stored in the error buffer according to the current working area of the laser head 3, to calculate a current error compensation value of the laser head 3. Then, the controller corrects the current target position of the laser head 3, and refresh the data in the error buffer, and then send a motion instruction to dynamically adjust the height of the laser head 3, thereby realizing a real-time compensation of the deflection and deformation of the workpiece 4, and ensuring the processing accuracy of the cladding layer of the workpiece 4.

    [0183] Considering that the heavy and long shaft-like workpieces clamped and rotated by the chuck at both ends is influenced by the gravity. In addition, since the moment of inertia of heavy and long shaft-like workpieces is generally large, in the single-layer high-speed laser cladding, the spindle rotation speed is reduced due to the spindle motion constraint, thereby ensuring that the heavy and long shaft-like workpieces are not prone to deflection changes during the rotation process. Therefore, the workpiece model is comprehensively considered to be simplified to a simply supported beam model under uniform load (as shown in the FIG. 12). The specific interpolation calculation process is as follows:

    [0184] according to the relevant formulas of material mechanics, it can be obtained:

    [0185] bending moment

    [00024] M ( x ) = q l x 2 - q x 2 2 ;

    [0186] differential equation

    [00025] d 2 y d x 2 = M ( x ) E I = q l x 2 E I - q x 2 2 E I ;

    and

    [0187] boundary conditions y(0)=0, y(l)=0;

    [0188] where q is an uniform load (gravity); l is a length of the simply supported beam; x is a position of the simply supported beam in a length direction; E is an elastic modulus of the material; and I is the moment of inertia of the material stage to the neutral axis of bending. After calculation, the deflection can be obtained as:

    [00026] y ( x ) = q x 2 4 E I ( l 3 - 2 l x 2 + x 3 ) .

    It can be seen that the deflection is a quartic function of the lateral distance. Therefore, if the data collected by the laser displacement sensor 1 is interpolated four times, the accurate interpolation can be achieved theoretically.

    [0189] As shown in FIG. 13, a calculation process of the quartic interpolation is as follows, and it is assumed that the interpolation nodes are x.sub.k−2, x.sub.k−1, x.sub.k, x.sub.k+1, x.sub.k+2, it is required to satisfy the formula when the quartic interpolation is used to generate the polynomial L4(x):


    L.sub.4(x.sub.j)=y.sub.jj=k−2,k−1,k,k+1,k+2  (42);

    [0190] where j and k are natural numbers, respectively.

    [0191] The basis function method is adopted, where the basis functions l.sub.k−2(x), l.sub.k−1(x), l.sub.k(x), l.sub.k−1(x), l.sub.k−2(x) are quartic functions, and should respectively satisfy the following conditions on nodes as follows:

    [00027] { l k - 2 ( x k - 2 ) = 1 l k - 2 ( x j ) = 0 j = k - 1 , k , k + 1 , k + 2 l k - 1 ( x k - 1 ) = 1 l k - 1 ( x j ) = 0 j = k - 2 , k , k + 1 , k + 2 l k ( x k ) = 1 l k ( x j ) = 0 j = k - 2 , k - 1 , k + 1 , k + 2 l k + 1 ( x k + 1 ) = 1 l k + 1 ( x j ) = 0 j = k - 2 , k - 1 , k , k + 2 l k + 2 ( x k + 2 ) = 1 l k + 2 ( x j ) = 0 j = k - 2 , k - 1 , k , k + 1 . ( 43 )

    [0192] The interpolation basis function that satisfies the condition (43) is simple to be solved, for example, l.sub.k−1(x), contains four zero positions x.sub.k−2, x.sub.k, x.sub.k+1, x.sub.k+2, it can be expressed as:


    l.sub.k−1(x)=A(x−x.sub.k−2)(x−x.sub.k)(x−x.sub.k+1)(x−x.sub.k+2);

    [0193] where A is a coefficient to be determined, which can be obtained by the condition l.sub.k−1(x.sub.k−1)=1:

    [00028] A = 1 ( x k - 1 - x k - 2 ) ( x k - 1 - x k ) ( x k - 1 - x k + 1 ) ( x k - 1 - x k + 2 ) ;

    [0194] then

    [00029] l k - 1 ( x ) = ( x - x k - 2 ) ( x - x k ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - 1 - x k - 2 ) ( x k - 1 - x k ) ( x k - 1 - x k + 1 ) ( x k - 1 - x k + 2 ) ;

    [0195] Similarly, it can be obtained that

    [00030] l k - 2 ( x ) = ( x - x k - 1 ) ( x - x k ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - 2 - x k - 1 ) ( x k - 2 - x k ) ( x k - 2 - x k + 1 ) ( x k - 2 - x k + 2 ) l k ( x ) = ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - x k - 2 ) ( x k - x k - 1 ) ( x k - x k + 1 ) ( x k - x k + 2 ) l k + 1 ( x ) = ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k ) ( x - x k + 2 ) ( x k + 1 - x k - 2 ) ( x k + 1 - x k - 1 ) ( x k + 1 - x k ) ( x k + 1 - x k + 2 ) l k + 2 ( x ) = ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k ) ( x - x k + 1 ) ( x k + 2 - x k - 2 ) ( x k + 2 - x k - 1 ) ( x k + 2 - x k ) ( x k + 2 - x k + 1 ) .

    [0196] The quartic interpolation polynomial L.sub.4(x) can be obtained by using the quartic interpolation basis function l.sub.k−2(x), l.sub.k−1(x), l.sub.k(x), l.sub.k+1(x), l.sub.k+2(x) in the interval [x.sub.k−2, x.sub.k+2] as follows:


    L.sub.4(x)=y.sub.k−2l.sub.k−2(x)+y.sub.k−1l.sub.k−1(x)+y.sub.kl.sub.k(x)+y.sub.k+1l.sub.k+1(x)+y.sub.k+2l.sub.k+2(x)  (44);

    [0197] The l.sub.k−2(x), l.sub.k−1(x), l.sub.k(x), l.sub.k+1(x), l.sub.k+2(x) obtained above are plugged into the equation (44) to obtain:

    [00031] L 4 ( x ) = y k - 2 ( x - x k - 1 ) ( x - x k ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - 2 - x k - 1 ) ( x k - 2 - x k ) ( x k - 2 - x k + 1 ) ( x k - 2 - x k + 2 ) + y k - 1 ( x - x k - 2 ) ( x - x k ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - 1 - x k - 2 ) ( x k - 1 - x k ) ( x k - 1 - x k + 1 ) ( x k - 1 - x k + 2 ) + y k ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k + 1 ) ( x - x k + 2 ) ( x k - x k - 2 ) ( x k - x k - 1 ) ( x k - x k + 1 ) ( x k - x k + 2 ) + y k + 1 ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k ) ( x - x k + 2 ) ( x k + 1 - x k - 2 ) ( x k + 1 - x k - 1 ) ( x k + 1 - x k ) ( x k + 1 - x k + 2 ) + y k + 2 ( x - x k - 2 ) ( x - x k - 1 ) ( x - x k ) ( x - x k + 1 ) ( x k + 2 - x k - 2 ) ( x k + 2 - x k - 1 ) ( x k + 2 - x k ) ( x k + 2 - x k + 1 ) .

    [0198] Through the above method, the continuous deformation of the discrete heavy and long shaft-like workpieces is interpolated four times to obtain the local segmented continuous deformation function of the workpiece, and the deformation of any point of the workpiece 4 is obtained to realize the real-time compensation of bending deformation the deflection of the workpiece 4, so that the height of the laser head 3 can be dynamically adjusted, thereby ensuring the processing quality of the cladding layer of the workpiece 4.

    [0199] As shown in FIG. 10, in an embodiment, provided is a system for dynamically adjusting a height of a laser head of a laser cladding machine, including a data acquisition system, a data processing system; an error compensation system; and a motion control system.

    [0200] The data acquisition system acquires, through the laser displacement sensor, distance information between the laser head and the workpiece in real time at a certain frequency, and transmits the collected distance information to the controller through the standard IO module in real time for storage.

    [0201] The data processing system reads the discrete local deflection parameters of the workpiece sent by the data acquisition system from the controller and the current position information of the laser head queried by the motion control system, and perform a relative position conversion to obtain global coordinate points in a machine coordinate system; the data processing system sends the processed global coordinate points to the controller; the controller stores the global coordinate points in a measurement data buffer and refreshes the measurement data buffer.

    [0202] The error compensation system takes out the global coordinate points in batches from the measurement data buffer, and obtains the continuous local quartic interpolation function using a quartic interpolation method, and stores parameters of the quartic interpolation function in an error compensation buffer of the controller.

    [0203] The motion control system dynamically interprets a current working area of the laser head in each communication cycle, and takes out parameters of an interpolation function corresponding to a current working area of the laser head temporarily stored in the error buffer, and calculates a current error compensation value of the laser head according to the parameters of the interpolation function, and correct a current target position of the laser head, refresh the data in the error buffer, and send motion instructions to dynamically adjust the height of the laser head.

    [0204] The foregoing descriptions are only illustrative of the application, and are not intended to limit the application. For those skilled in the art, the application can have various modifications and changes. Any modification, equivalent replacement and improvement within the spirit and principle of this application shall fall within the protection scope of this application.

    [0205] Although the above description of the specific implementation of the application is made in conjunction with the drawings, it does not limit the scope of protection of the application. It should be understood that on the basis of the technical solution of the application, various modifications or variations made by those skilled in the art without creative work should still within the protection scope of this application.