Speed ​​planning method, device, CNC equipment, CNC machine tool, medium and product

By obtaining the acceleration of the CNC machine tool workpiece and adjusting the speed according to the preset model, the problem of optimizing the workpiece movement speed in the CNC machine tool is solved, and the processing efficiency and quality are improved.

CN118226802BActive Publication Date: 2024-09-03GENERAL TECH GRP MASCH TOOL ENG RES INST CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410643343.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-03
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

During CNC machine tool processing, existing technology is difficult to effectively optimize the movement speed of the workpiece, resulting in limited processing efficiency and quality.

Method used

By obtaining the acceleration of the workpiece in the current trajectory segment, and based on the target relationship between acceleration and time determined in the pre-established speed planning model, the speed of the workpiece is adjusted to ensure processing efficiency and quality.

Benefits of technology

It realizes the speed adjustment during the process of the workpiece running from the current trajectory segment to the end point, ensuring the processing efficiency and quality, adapting to the acceleration situation of the current point, and improving the processing accuracy and surface quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226802B
    Figure CN118226802B
Patent Text Reader

Abstract

The embodiments of the present application provide a speed planning method, device, CNC equipment, CNC machine tool, medium and product, wherein the method includes: obtaining at least the acceleration of the workpiece at the current point of the current trajectory segment; determining the target relationship between acceleration and time from a pre-established speed planning model at least based on the acceleration of the current point; wherein the speed planning model includes multiple relationships between acceleration and time; in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time. The speed planning method provided by the embodiments of the present application ensures the processing efficiency and processing quality of the workpiece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of CNC machine tools, and specifically to a speed planning method, device, CNC equipment, CNC machine tools, medium and products. Background Art

[0002] CNC machine tool is the abbreviation of digital control machine tool, which is an automated machine tool equipped with a program control system. Among them, the numerical control equipment of the CNC machine tool can output control instructions, thereby controlling the drive device to drive the machine tool's tool to operate at a preset motion trajectory and speed, and then automatically process the workpiece.

[0003] When CNC machine tools process workpieces, in order to ensure processing efficiency and processing quality, speed planning is required to optimize the movement speed of the workpiece. Therefore, how to improve the speed planning scheme to ensure the processing efficiency and processing quality of the workpiece has become an urgent problem to be solved. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a speed planning method, device, CNC equipment, CNC machine tool, medium and product to ensure the processing efficiency and processing quality of the workpiece.

[0005] To achieve the above objectives, the embodiments of the present application provide the following technical solutions.

[0006] In a first aspect, an embodiment of the present application provides a speed planning method, including:

[0007] At least obtain the acceleration of the workpiece at the current point of the current trajectory segment;

[0008] Determining a target relationship between acceleration and time from a pre-established speed planning model based at least on the acceleration at the current point; wherein the speed planning model includes a plurality of relationships between acceleration and time;

[0009] During the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted based on at least the target relationship between the acceleration and time.

[0010] In a second aspect, an embodiment of the present application provides a speed planning device, including:

[0011] An acquisition module, used to acquire at least the acceleration of the workpiece at a current point of the current trajectory segment;

[0012] A determination module, configured to determine a target relationship between acceleration and time from a pre-established speed planning model based at least on the acceleration at the current point; wherein the speed planning model includes a plurality of relationships between acceleration and time;

[0013] The adjustment module is used to adjust the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment.

[0014] In a third aspect, an embodiment of the present application provides a numerical control device, comprising at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the speed planning method as described in the first aspect above.

[0015] In a fourth aspect, an embodiment of the present application provides a CNC machine tool, which includes the CNC device as described in the third aspect above.

[0016] In a fifth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the speed planning method as described in the first aspect above is implemented.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, comprising one or more computer executable instructions, which, when executed, implement the speed planning method as described in the first aspect above.

[0018] Compared with the prior art, the technical solution of the embodiment of the present application has the following advantages:

[0019] Embodiments of the present application provide a speed planning method, apparatus, CNC equipment, CNC machine tool, medium and product, wherein the speed planning method comprises: at least obtaining the acceleration of the workpiece at the current point of the current trajectory segment; determining the target relationship between acceleration and time from a pre-established speed planning model at least based on the acceleration of the current point; wherein the speed planning model comprises multiple relationships between acceleration and time; and in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time.

[0020] It can be seen that the speed planning method provided in the embodiment of the present application can at least obtain the acceleration of the workpiece at the current point of the current trajectory segment; then, at least based on the acceleration of the current point, the target relationship between acceleration and time is determined from the pre-established speed planning model. Since the speed planning model has multiple relationships between acceleration and time, and the target relationship between acceleration and time is determined from the speed planning model based on the acceleration of the current point, the target relationship between acceleration and time can adapt to the acceleration of the current point; thereby, the speed of the workpiece is adjusted according to the target relationship between acceleration and time, which can ensure the processing efficiency and processing quality of the workpiece; further, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece can be adjusted based on at least the determined target relationship between acceleration and time. Since the speed adjustment is based on the determined target relationship between acceleration and time, and the target relationship matches the acceleration of the workpiece at the current point of the current trajectory segment, the processing efficiency and processing quality of the workpiece can be ensured. Therefore, based on the determined target relationship between acceleration and time, the speed is adjusted in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, which can ensure that the workpiece runs at a speed that satisfies the processing efficiency and processing quality, thereby ensuring the processing efficiency and processing quality of the workpiece. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0022] Figure 1 It is a schematic diagram of the trajectory of the workpiece during the processing;

[0023] Figure 2 It is a schematic diagram of the trajectory of adding transition curve;

[0024] Figure 3 It is a flow chart of the speed planning method provided in the embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the first speed planning provided in an embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of the second speed planning provided in the embodiment of the present application;

[0027] Figure 6 It is a schematic diagram of the third speed planning provided in the embodiment of the present application;

[0028] Figure 7is an optional block diagram of a speed planning device provided in an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of the numerical control equipment provided in the embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0031] When a CNC machine tool processes a workpiece, the control system of the CNC machine tool will generate a path for the workpiece to pass through during the processing according to the processing requirements. The path that the workpiece passes through during the processing can be called a trajectory. Figure 1 , the path that the workpiece passes through during the processing is P1-Pn, and there can be multiple inflection points from P1 to Pn, such as P2, P3, P4, and so on to P(n-1). Among them, P1-P2 is a trajectory segment, P2-P3 is a trajectory segment, P3-P4 is a trajectory segment, and so on, P(n-1)-Pn is a trajectory segment. In other words, the starting point of the trajectory (such as P1) and the adjacent inflection point can determine a trajectory segment, between the starting point of the trajectory (such as P1) and the end point (such as Pn), the two adjacent inflection points can determine a trajectory segment, and the end point of the trajectory (such as Pn) and the adjacent inflection point can determine a trajectory segment, and these trajectory segments together constitute the motion trajectory of the workpiece.

[0032] In order to make the workpiece smoother during machining and avoid the unevenness of the workpiece surface caused by the deviation angle between the track segments, a transition curve can be constructed between adjacent track segments (i.e. at the inflection point). Figure 2 , a transition curve P2a-P2b is constructed between the trajectory segment P1-P2 and the trajectory segment P2-P3, a transition curve P3a-P3b is constructed between the trajectory segment P2-P3 and the trajectory segment P3-P4, and so on. By adding a smooth curve that connects the front and back between adjacent trajectory segments with deviation angles, the vibration and noise of the workpiece during the machining process can be reduced, while the machining accuracy and surface quality of the workpiece can be improved.

[0033] Methods for constructing transition curves may include but are not limited to arc transition method (smooth transition by adding an arc with a radius of R between two adjacent trajectory segments), linear transition method (smooth transition by adding a straight line segment between two adjacent trajectory segments), polyline transition method (smooth transition by adding multiple straight line segments or arc segments between two adjacent trajectory segments) and spline curve transition method (smooth transition by adding a cubic spline curve between two adjacent trajectory segments), etc.

[0034] After constructing the transition curve, the speed constraints of each trajectory segment can be calculated according to the forward planning. The forward planning refers to obtaining information such as path length and speed constraints based on the preliminary analysis of the subsequent path, and adaptively adjusting the speed according to this information, so as to increase the processing speed as much as possible. The speed constraints may include machine tool dynamics constraints, curve trajectory geometric feature constraints, and forward planning constraints, etc., which are not limited in the embodiments of the present application. These constraints can ensure the stability of the processing process, improve processing efficiency, protect the tool, and improve processing quality.

[0035] In order to ensure the processing efficiency and processing quality, speed planning is usually performed to optimize the movement speed of the workpiece. One speed planning method is applicable to the case where the initial and final states are 0 (for example, the initial and final speeds and accelerations are 0). However, in CNC machining, the workpiece trajectory is usually composed of a large number of small trajectory segments. If the speed between the front and rear trajectory segments is set to 0, it will seriously affect the processing efficiency and processing quality of the workpiece. Therefore, the present application provides a speed planning method to adapt to the situation where the speed between the front and rear trajectory segments is not 0, thereby ensuring the processing efficiency and processing quality of the workpiece.

[0036] As an optional implementation, Figure 3 The figure shows a flow chart of the speed planning method provided in the embodiment of the present application. Figure 3 The method flow shown can be executed by a numerical control device in a numerical control machine tool, refer to Figure 3 The speed planning method provided in the embodiment of the present application may include the following steps.

[0037] Step 100: At least obtain the acceleration of the workpiece at the current point of the current trajectory segment.

[0038] When the feed rate of the CNC machine tool is adjusted, at least the acceleration a0 of the workpiece at the current point of the current trajectory segment can be obtained. In the speed planning process, the acceleration of the workpiece at the current point of the current trajectory segment can be regarded as the initial acceleration in the speed planning process.

[0039] The current trajectory segment refers to the trajectory segment where the workpiece is currently located; the current point refers to the position of the trajectory segment where the workpiece is currently located.

[0040] Step 200: Determine a target relationship between acceleration and time from a pre-established velocity planning model based at least on the acceleration at the current point.

[0041] The velocity planning model may be a velocity planning model in which both the initial acceleration and the final acceleration are 0, wherein the initial acceleration corresponds to the acceleration of the workpiece at the current point of the current trajectory segment. Further, the initial velocity and the final velocity of the velocity planning model may be the same or different.

[0042] In an optional implementation, the speed planning model includes multiple relationships between acceleration and time. As an example, the multiple relationships between acceleration and time may include: multiple relationship segments between acceleration and time, and the multiple relationship segments are continuous.

[0043] Furthermore, the multiple relationship segments may include: an acceleration phase, in which the acceleration is not 0, and the acceleration is in the same direction as the velocity; a uniform speed phase, in which the acceleration remains at 0; and a deceleration phase, in which the acceleration is not 0, and the acceleration is in the opposite direction to the velocity.

[0044] The acceleration stage may include: a uniform acceleration stage, in which the acceleration of the uniform acceleration stage increases uniformly from 0 to a preset positive acceleration over time; wherein the positive direction is the same direction as the direction of the velocity; a uniform acceleration stage, in which the acceleration of the uniform acceleration stage remains at a preset positive acceleration and does not change over time; a uniform deceleration acceleration stage, in which the acceleration uniformly decreases from a preset positive acceleration to 0 over time;

[0045] The uniform speed stage may include: a uniform speed segment, the acceleration of which is kept at 0 and does not change with time;

[0046] The deceleration stage may include: a uniform acceleration and deceleration section, in which the acceleration of the uniform acceleration and deceleration section increases uniformly in the reverse direction from 0 to a preset reverse acceleration over time; wherein the reverse direction is a direction opposite to the direction of the speed; a uniform deceleration section, in which the acceleration of the uniform deceleration section is maintained at a preset reverse acceleration and does not change over time; and a uniform deceleration and deceleration section, in which the acceleration of the uniform deceleration and deceleration section decreases uniformly in the reverse direction from the preset reverse acceleration to 0 over time.

[0047] In the above-mentioned pre-established speed planning model, multiple relationship segments are continuous. For example, the uniform acceleration segment is continuous with the uniform acceleration segment, the uniform acceleration segment is continuous with the uniform deceleration segment, the uniform deceleration segment is continuous with the uniform speed segment, the uniform speed segment is continuous with the uniform acceleration and deceleration segment, the uniform acceleration and deceleration segment is continuous with the uniform deceleration segment, and the uniform deceleration segment is continuous with the uniform deceleration segment. That is to say, in the above-mentioned pre-established speed planning model, the relationship between acceleration and time is adjusted in accordance with the uniform acceleration segment, the uniform acceleration segment, the uniform deceleration segment, the uniform speed segment, the uniform acceleration and deceleration segment, the uniform deceleration segment, and the uniform deceleration segment over time.

[0048] Step 300: During the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted based on at least the target relationship between the acceleration and time.

[0049] It can be seen that the speed planning method of the embodiment of the present application obtains at least the acceleration of the workpiece at the current point of the current trajectory segment; then, based on at least the acceleration of the current point, determines the target relationship between acceleration and time from a pre-established speed planning model. Since the speed planning model has multiple relationships between acceleration and time, and the target relationship between acceleration and time is determined from the speed planning model based on the acceleration of the current point, the target relationship between acceleration and time can adapt to the acceleration of the current point, so that the speed of the workpiece is adjusted according to the target relationship between acceleration and time, which can ensure the processing efficiency and processing quality of the workpiece; further, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece can be adjusted based on at least the determined target relationship between acceleration and time. Since the speed adjustment is based on the determined target relationship between acceleration and time, and the target relationship matches the acceleration of the workpiece at the current point of the current trajectory segment, the processing efficiency and processing quality of the workpiece can be ensured. Therefore, based on the determined target relationship between acceleration and time, the speed is adjusted in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, which can ensure that the workpiece runs at a speed that satisfies the processing efficiency and processing quality, thereby ensuring the processing efficiency and processing quality of the workpiece.

[0050] In an optional implementation, for ease of understanding, the following introduces two calculation modules used in step 300, and defines the parameters as follows: the system expected speed is F, the remaining trajectory segment length from the current point to the end point of the current trajectory segment is Length, the end speed of the end point is ve, the maximum acceleration allowed by the system is AM, the maximum deceleration is DM, and the maximum jerk is JM. It should be noted that when there is a new end speed at the end point, ve can represent the original end speed, and newve can represent the new end speed.

[0051] The above two calculation modules can be divided into a SCurveDmin calculation module and a SCurveVmax calculation module. The relevant example meanings and calculation methods can be introduced as follows.

[0052] (1) SCurveDmin calculation module

[0053] Module meaning:

[0054] The SCurveDmin calculation module can calculate the shortest distance required from the initial velocity v0 to the terminal velocity ve under the constraints of AM and JM, with the initial acceleration being 0 and the terminal acceleration being 0.

[0055] Calculation formula:

[0056] [T1,T2,T3,Dlim]=SCurveDmin(v0,ve,AM,JM) formula (1)

[0057] Among them, T1 is the duration of uniform acceleration, T2 is the duration of uniform acceleration, T3 is the duration of uniform deceleration, and Dlim is the shortest distance required from the initial velocity v0 to the terminal velocity ve.

[0058] In an optional implementation, the calculation method of the SCurveDmin calculation module can be as follows.

[0059] When v0<=ve, determine whether a uniform acceleration segment is required to reach the terminal velocity ve. To make this determination, it is necessary to calculate the minimum velocity increment dVmin corresponding to an acceleration increasing from 0 to AM and then decreasing to 0. For example, dVmin=AM*AM / JM;

[0060] After obtaining dVmin, the difference between the terminal velocity ve and the initial velocity v0 (i.e., ve-v0) can be compared with dVmin. Based on the different results of the comparison, it can be divided into case a corresponding to the stage without uniform acceleration and case b corresponding to the stage with uniform acceleration; that is, case a is the case without uniform acceleration, which corresponds to the processing method of calculating Dlim, and case b is the case with uniform acceleration, which corresponds to the processing method of calculating Dlim. Examples are given below to introduce each case respectively.

[0061] Case a: (ve-v0) <= dVmin, this indicates that the terminal velocity ve can be reached without uniform acceleration stage, then the values ​​of T1, T2 and T3 in the above calculation formula (Formula 1) can be as follows:

[0062] T1=Amax / JM, where Amax=sqrt(JM*(ve-v0));

[0063] T2=0;

[0064] T3=T1;

[0065] That is to say, when (ve-v0)<=dVmin, the corresponding values ​​of T1, T2 and T3 can be obtained by processing case a;

[0066] Furthermore, according to the obtained uniform acceleration duration T1, uniform acceleration duration T2 and uniform deceleration duration T3, the displacement increment LengthT1 of the uniform acceleration process, the displacement increment LengthT2 of the uniform acceleration process and the displacement increment LengthT3 of the uniform deceleration process can be solved. The optional implementation can be as follows:

[0067] LengthT1=0.5*a0*T1*T1+1 / 6*JM*T1^3+v0*T1;

[0068] LengthT2=T2*(0.5*JM*T1*T1+v0)+0.5*AM*T2*T2;

[0069] LengthT3=-1 / 6*JM*T3^3+ve*T3;

[0070] After obtaining LengthT1, LengthT2 and LengthT3, add them together to get the shortest distance Dlim, that is, Dlim=LengthT1+LengthT2+LengthT3. When v0<=ve and (ve-v0)<=dVmin, according to the constraints of AM and JM, with the initial acceleration of 0 and the terminal acceleration of 0, calculate the shortest distance Dlim required from the corresponding initial velocity v0 to the terminal velocity ve.

[0071] Case b: (ve-v0)>dVmin, this indicates that there can be a uniform acceleration stage after reaching the terminal velocity ve, then the values ​​of T1, T2 and T3 in the above calculation formula (Formula 1) can be as follows:

[0072] T1=AM / JM;

[0073] T3=T1;

[0074] T2=((ve-v0)-AM*AM / JM) / AM;

[0075] After obtaining the duration of uniform acceleration T1, uniform acceleration T2, and uniform deceleration T3, we can solve the displacement increment LengthT1, displacement increment LengthT2, and displacement increment LengthT3 of the uniform acceleration process in the same way as case a, that is:

[0076] LengthT1=0.5*a0*T1*T1+1 / 6*JM*T1^3+v0*T1;

[0077] LengthT2=T2*(0.5*JM*T1*T1+v0)+0.5*AM*T2*T2;

[0078] LengthT3=-1 / 6*JM*T3^3+ve*T3;

[0079] Then, by adding LengthT1, LengthT2 and LengthT3, we can get the shortest distance Dlim. When v0<=ve and (ve-v0)>dVmin, according to the constraints of AM and JM, with the initial acceleration of 0 and the terminal acceleration of 0, we can calculate the shortest distance Dlim required from the corresponding initial velocity v0 to the terminal velocity ve.

[0080] The above example shows an optional method for calculating the shortest distance Dlim required from the initial velocity v0 to the terminal velocity ve when v0<=ve, which is divided into the processing method for calculating Dlim corresponding to case a (the case without a uniform acceleration stage), and the processing method for calculating Dlim corresponding to case b (the case with a uniform acceleration stage); when v0>ve, the SCurveDmin calculation module can calculate the shortest distance Dlim required from the initial velocity v0 to the terminal velocity ve in the same way as above, and the embodiments of the present application will not be repeated here.

[0081] (2) SCurveVmax calculation module

[0082] Module meaning:

[0083] The SCurveVmax calculation module can calculate the maximum velocity on the displacement length L under the constraints of AM and JM, with the initial acceleration being 0 and the final acceleration being 0.

[0084] Calculation formula:

[0085] DVmax=SCurveVmax(L,AM,JM) Formula (2)

[0086] Where DVmax is the maximum velocity over the displacement length L.

[0087] In an optional implementation, the calculation method of the SCurveVmax calculation module can be as follows.

[0088] To determine whether there is a uniform acceleration segment within the displacement length L, it is necessary to calculate the minimum displacement increment Dmin corresponding to an acceleration increasing from 0 to AM and then decreasing to 0. For example, the calculation formula of Dmin can be as follows:

[0089] Dmin=2*v0*(AM / JM)+(AM^3 / JM^2);

[0090] After obtaining Dmin, the displacement length L can be compared with Dmin. Based on different comparison results, they can be divided into case c corresponding to the stage without uniform acceleration and case d corresponding to the stage with uniform acceleration; that is, case c is the case without uniform acceleration, which corresponds to the processing method of calculating DVmax, and case d is the case with uniform acceleration, which corresponds to the processing method of calculating DVmax. Examples are given below to introduce each of them.

[0091] Case c: L<=Dmin, which means there is no uniform acceleration stage within the displacement length L. Then the value of L in the above calculation formula (Formula 2) can be as follows:

[0092] L=2*v0*T1+JM*T1^3;

[0093] Furthermore, the calculation of DVmax can be expressed as: DVmax=JM*T1^2.

[0094] Case d: L>Dmin, which indicates that there is a uniform acceleration stage within the displacement length L. Then the value of L in the above calculation formula (Formula 2) can be as follows:

[0095] L=(1 / 2)*AM*T1^2+(v0+(3 / 2)*AM^2 / JM)*T1+2*v0*AM / JM+AM^3 / JM^2; furthermore, the calculation of DVmax can be expressed as: DVmax=AM*T1+AM^2 / JM.

[0096] That is to say, under the constraints of AM and JM, with the initial acceleration of 0 and the terminal acceleration of 0, the SCurveVmax calculation module can calculate the maximum velocity DVmax on the displacement length L in case c (no uniform acceleration segment within the displacement length L), and calculate the maximum velocity DVmax on the displacement length L in cased (there is a uniform acceleration segment within the displacement length L); among which, case c is for L<=Dmin, case d is for L>Dmin, and Dmin is the minimum displacement increment corresponding to the acceleration increasing from 0 to AM and then decreasing to 0.

[0097] Based on the foregoing description, as an alternative implementation, Figure 3 Step 200 in the method flow shown, "Determine the target relationship between acceleration and time from a pre-established velocity planning model based at least on the acceleration of the current point" can be implemented in the following two cases based on the magnitude relationship between the acceleration of the current point and 0.

[0098] Case 1: The acceleration of the current point is less than 0;

[0099] Case 2: The acceleration of the current point is greater than or equal to 0.

[0100] As an alternative implementation, in different cases of Case 1 and Case 2, the processing logic for determining the target relationship between acceleration and time from a pre-established velocity planning model can be different, as shown in the following examples.

[0101] For Case 1 (i.e., the acceleration a0 of the current point is less than 0), according to the acceleration and deceleration planning method shown in the above-mentioned preset velocity planning model, when the acceleration a0 is less than 0, it has entered the deceleration stage planned in the velocity planning model. Entering this deceleration stage, it is certain that the original termination velocity ve of the end point can be reached. At this time, the feed rate can be changed by an external device to form a new termination velocity newve. Thus, the new termination velocity newve of the end point is obtained, and based on the original termination velocity ve of the end point and the new termination velocity newve of the end point, the target relationship between acceleration and time is determined from a pre-established velocity planning model.

[0102] In an alternative implementation, in Case 1, the relationship between the original termination velocity ve and the new termination velocity newve can be divided into the following two cases: ve >= newve and ve < newve.

[0103] If the original termination velocity ve of the end point is greater than or equal to the new termination velocity newve, then the deceleration stage is determined from a pre-established velocity planning model; thus Figure 3 An alternative implementation of step S300 in the method flow, "During the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjust the velocity of the workpiece based at least on the target relationship between acceleration and time", can be: During the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjust the running velocity of the workpiece based at least on the relationship between acceleration and time represented by the deceleration stage, so that the velocity of the workpiece at the end point reaches the original termination velocity. The reason for this situation is that the feed rate of the external device is set low. Since the feed rate is set low, it is impossible to respond to the new termination velocity newve within the remaining trajectory segment length, so the deceleration continues according to the deceleration stage in the pre-established velocity planning model until the original termination velocity ve is reached;

[0104] For the cases of uniform acceleration and deceleration segments, uniform deceleration segments, and uniform deceleration and deceleration segments during the deceleration phase, it is necessary to decide according to the specific situation. For example, if the original terminal velocity ve is reached in the uniform acceleration and deceleration segment, there is no need to plan the subsequent uniform deceleration segment and the uniform deceleration and deceleration segment.

[0105] If the original terminal velocity ve of the said end point is less than the new terminal velocity newve, determine the first shortest distance corresponding to the acceleration of the current point reaching 0, and the second shortest distance corresponding to the velocity of the current point reaching the new terminal velocity, where the calculations of the first shortest distance and the second shortest distance are as follows:

[0106] vlow = v0 - 0.5 * a0 * a0 / JM;

[0107] T7 = -a0 / JM;

[0108] Dlim1 = v0 * T7 + 0.5 * (-a0) * T7^2 + JM * T7^3 / 6;

[0109] [T7, Dlim2] = SCurveDminNegAs(vlow, newve, 0, AM, JM); where vlow = v0 - 0.5 * a0 * a0 / JM;

[0110] It should be noted that in the above formula, Dlim1 is the first shortest distance, Dlim2 is the second shortest distance, and T7 is the duration of uniform deceleration and deceleration (since the acceleration a0 of the current point is less than 0 at this time, uniform deceleration and deceleration are required for the acceleration a0 of the current point to reach 0).

[0111] According to the obtained first shortest distance Dlim1 and second shortest distance Dlim2, and the remaining trajectory segment length Length from the current point to the end point, determine the target relationship between acceleration and time from the pre-established velocity planning model.

[0112] In the case of ve < newve, the embodiments of the present application can perform different processes according to different relationships between the remaining trajectory segment length and the sum of the first shortest distance and the second shortest distance, and are divided into the following two cases: Length > (Dlim1 + Dlim2) and Length <= (Dlim1 + Dlim2).

[0113] If the remaining trajectory segment length Length is greater than the sum of the first shortest distance Dlim1 and the second shortest distance Dlim2, determine the uniform deceleration and deceleration segment, uniform velocity segment, uniform acceleration and deceleration segment, uniform deceleration segment, and uniform deceleration and deceleration segment from the pre-established velocity planning model;

[0114] Thus, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment may include: adjusting the speed of the workpiece according to the determined uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment;

[0115] In an optional implementation, T4=(Length-(Dlim1+Dlim2)) / vlow may be set, where T4 is the duration of the uniform speed.

[0116] If the remaining trajectory segment length Length is less than or equal to the sum of the first shortest distance Dlim1 and the second shortest distance Dlim2, a deceleration phase is determined from a pre-established speed planning model;

[0117] Thus, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece according to a determined deceleration stage.

[0118] Since the remaining trajectory segment length is less than or equal to the first shortest distance and the second shortest distance, it is unable to respond to the new terminal speed newve, so it continues to decelerate according to the deceleration phase in the pre-established speed planning model to reach the original terminal speed ve.

[0119] The uniform acceleration and deceleration section, uniform deceleration section, and uniform deceleration and deceleration section in the deceleration stage need to be determined according to the specific situation. For example, if the original terminal speed ve is reached in the uniform acceleration and deceleration section, there is no need to plan the subsequent uniform deceleration section and uniform deceleration and deceleration section.

[0120] For case 2 (i.e., the acceleration a0 of the current point is greater than or equal to 0), as an optional implementation of determining the target relationship between acceleration and time from a pre-established speed planning model, an embodiment of the present application can determine the third shortest distance corresponding to the initial velocity of the current point to the original terminal velocity of the end point; based on the third shortest distance and the length of the remaining trajectory segment from the current point to the end point, determine the target relationship between acceleration and time from the pre-established speed planning model.

[0121] As an optional implementation, the calculation of the third shortest distance Dlim3 required from the initial velocity v0 of the current point to the original terminal velocity ve of the end point is as follows:

[0122] [T1,T2,T3,Dlim3]=SCurveDminAs(v0,ve,a0,AM,JM) formula (3)

[0123] Among them, T1 is the duration of uniform acceleration, T2 is the duration of uniform acceleration, T3 is the duration of uniform deceleration, and Dlim3 is the third shortest distance required from the initial velocity v0 to the original terminal velocity ve.

[0124] The calculation of the above formula is divided into the following two cases: v0<=ve and v0>ve according to the relationship between the initial velocity v0 and the original terminal velocity ve:

[0125] If v0<=ve, it means that acceleration is required from the initial velocity v0 to the original terminal velocity ve. At this time, it is necessary to determine whether a uniform acceleration segment is required to reach the original terminal velocity ve. To make this judgment, it is necessary to calculate the minimum velocity increment dVmin corresponding to the acceleration increasing from a0 to AM and then decreasing to 0. For example, dVmin=(2*AM*AM-a0*a0) / 2 / JM;

[0126] After obtaining dVmin, the embodiment of the present application can perform different processing according to the difference between the original termination speed ve and the initial speed v0 (i.e., ve-v0) and the different relationships with dVmin, and is divided into the following two cases: (ve-v0)<=dVmin and (ve-v0)>dVmin.

[0127] If (ve-v0) <= dVmin, it means that there is no uniform acceleration stage when the original terminal velocity ve is reached. Then the values ​​of T1, T2 and T3 in the above calculation formula (Formula 3) can be as follows:

[0128] T1=(Amax-a0) / JM; where Amax=sqrt(0.5*(2*JM*(ve-v0)+a0*a0));

[0129] T2=0;

[0130] T3 = Amax / JM;

[0131] That is to say, when (ve-v0)<=dVmin, the corresponding values ​​of T1, T2 and T3 can be obtained by processing case a.1;

[0132] Furthermore, according to the obtained uniform acceleration duration T1, uniform acceleration duration T2 and uniform deceleration duration T3, the displacement increment LengthT1 of the uniform acceleration process, the displacement increment LengthT2 of the uniform acceleration process and the displacement increment LengthT3 of the uniform deceleration process can be solved. The optional implementation can be as follows:

[0133] LengthT1=0.5*a0*T1*T1+1 / 6*JM*T1^3+v0*T1;

[0134] LengthT2=T2*(a0*T1+0.5*JM*T1*T1+v0)+0.5*AM*T2*T2;

[0135] LengthT3=-1 / 6*JM*T3^3+ve*T3;

[0136] After obtaining LengthT1, LengthT2 and LengthT3, add them together to get the third shortest distance Dlim3, that is, Dlim3=LengthT1+LengthT2+LengthT3. When v0<=ve and (ve-v0)<=dVmin, according to the constraints of AM and JM, calculate the third shortest distance Dlim3 required from the corresponding initial speed v0 to the original terminal speed ve.

[0137] If (ve-v0)>dVmin, it means that there can be a uniform acceleration stage after reaching the original terminal velocity ve, then the values ​​of T1, T2 and T3 in the above calculation formula (Formula 3) can be as follows:

[0138] T1=(AM-a0) / JM;

[0139] T2=((ve-v0)-(AM*AM-a0*a0) / 2 / JM-AM*AM / 2 / JM) / AM;

[0140] T3=AM / JM;

[0141] That is to say, when (ve-v0)>dVmin, the corresponding values ​​of T1, T2 and T3 can be obtained by the processing method of case a.2;

[0142] Furthermore, according to the obtained uniform acceleration duration T1, uniform acceleration duration T2 and uniform deceleration duration T3, the displacement increment LengthT1 of the uniform acceleration process, the displacement increment LengthT2 of the uniform acceleration process and the displacement increment LengthT3 of the uniform deceleration process can be solved. The optional implementation can be as follows:

[0143] LengthT1=0.5*a0*T1*T1+1 / 6*JM*T1^3+v0*T1;

[0144] LengthT2=T2*(a0*T1+0.5*JM*T1*T1+v0)+0.5*AM*T2*T2;

[0145] LengthT3=-1 / 6*JM*T3^3+ve*T3;

[0146] Then, by adding LengthT1, LengthT2 and LengthT3, the third shortest distance Dlim3 can be obtained, and when v0<=ve and (ve-v0)>dVmin, the third shortest distance Dlim3 required from the corresponding initial speed v0 to the original terminal speed ve can be calculated.

[0147] The above exemplary embodiment shows the optional methods of calculating the third shortest distance Dlim3 required from the initial velocity v0 to the original terminal velocity ve when v0<=ve, which is divided into the processing method of calculating Dlim3 corresponding to (ve-v0)<=dVmin, and the processing method of calculating Dlim3 corresponding to (ve-v0)>dVmin.

[0148] If v0>ve, it means that deceleration is required from the initial velocity v0 to the original terminal velocity ve. Similarly, it is necessary to determine whether a uniform deceleration segment is required to reach the terminal velocity ve. It is necessary to calculate the process of acceleration decreasing from a0 to 0, and then entering the deceleration segment to ve. The corresponding process includes: the speed increases from v0 to vtop (at this time, the acceleration a=0), and then the third shortest distance Dlim3 required to decelerate from vtop to ve:

[0149] [T3,T5,T6,T7,Dlim3]=SCurvePosAsDec(v0,a0,ve,AM,JM) formula (4)

[0150] Among them, T3 is the duration of uniform acceleration, T5 is the duration of uniform acceleration and deceleration, T6 is the duration of uniform deceleration, T7 is the duration of uniform deceleration, and Dlim3 is the third shortest distance required from the initial speed v0 to the original terminal speed ve.

[0151] The calculation method of the above formula is as follows:

[0152] Vtop=v0+0.5*a0*a0 / JM;

[0153] LengthAcc=-1 / 6*a0^3 / JM^2+vtop*a0 / JM;

[0154] T3=a0 / JM;

[0155] [T7,T6,T5,LengthDec]=SCurveDmin(ve,vtop,DM,JM);

[0156] Dlim3=LengthAcc+LengthDec.

[0157] In the above formula, the calculation method of LengthDec needs to determine whether there is a uniform deceleration segment. For logical judgment, please refer to formula (1).

[0158] According to the third shortest distance obtained above and the remaining trajectory length from the current point to the end point, the target relationship between acceleration and time is determined from the pre-established speed planning model. Case 2 (i.e., the acceleration a0 of the current point is greater than or equal to 0) can be further divided into the following four cases:

[0159] Case 2.1: If the speed of the current point is less than or equal to the expected speed of the system, and the third shortest distance is greater than the remaining trajectory segment length, determine the first shortest distance corresponding to the acceleration of the current point reaching 0; based on the first shortest distance and the remaining trajectory segment length from the current point to the end point, determine the target relationship between acceleration and time from the pre-established speed planning model.

[0160] Case 2.2: If the speed of the current point is less than or equal to the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the current point's speed reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point; based on the fourth shortest distance and the fifth shortest distance, as well as the remaining trajectory segment length from the current point to the end point, determine the target relationship between acceleration and time from the pre-established speed planning model.

[0161] Case 2.3: If the speed of the current point is greater than the expected speed of the system, and the third shortest distance is greater than the length of the remaining trajectory segment, determine the uniform acceleration segment, uniform acceleration / deceleration segment, uniform deceleration segment and uniform deceleration / deceleration segment from the pre-established speed planning model; thereby, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, at least based on the target relationship between the acceleration and time, adjusting the speed of the workpiece may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, at least based on the relationship between the acceleration and time represented by the uniform acceleration segment, uniform acceleration / deceleration segment, uniform deceleration segment and uniform deceleration / deceleration segment, adjusting the running speed of the workpiece so that the speed of the workpiece at the end point reaches the original terminal speed.

[0162] Case 2.4: If the speed of the current point is greater than the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the current point's speed reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point; based on the fourth shortest distance and the fifth shortest distance, as well as the remaining trajectory segment length from the current point to the end point, determine the target relationship between acceleration and time from the pre-established speed planning model.

[0163] It should be noted that if the acceleration a0 of the current point is greater than or equal to 0, there is an implicit constraint: the system expected speed F is greater than or equal to the original terminal speed ve (F>=ve). Based on this, for the above cases 2.1 and 2.2 (i.e., the speed of the current point is less than or equal to the system expected speed), the initial speed is less than or equal to the system expected speed (v0<=F). Since there is an implicit constraint when the acceleration a0 of the current point is greater than or equal to 0 (the system expected speed F is greater than or equal to the original terminal speed ve, i.e., F>=ve), the relationship between the initial speed v0 and the original terminal speed ve may be the case of case a (v0<=ve) in the above calculation of the third shortest distance Dlim3, or it may be the case of case b (v0>ve) in the above calculation of the third shortest distance Dlim3.

[0164] For the above cases 2.3 and 2.4 (i.e. the speed of the current point is greater than the system expected speed), the initial speed is greater than the system expected speed (v0>F). Since the acceleration a0 of the current point is greater than or equal to 0, there is an implicit constraint (the system expected speed F is greater than or equal to the original terminal speed ve, i.e. F>=ve), then the relationship between the initial speed v0 and the original terminal speed ve can only be the case of case b (v0>ve) in the above calculation of the third shortest distance Dlim3.

[0165] For case 2.1, if the speed of the current point is less than or equal to the system expected speed, and the third shortest distance is greater than the remaining trajectory segment length, it is necessary to determine the first shortest distance corresponding to the acceleration of the current point reaching 0.

[0166] It should be noted that if the remaining trajectory segment length Length is less than the third shortest distance Dlim3 corresponding to the original terminal velocity from the initial velocity of the current point to the end point, it means that in the remaining length of the current trajectory segment, it is impossible to achieve the state where the velocity is ve and the acceleration is 0 at the end of the current trajectory segment (i.e. the end point of the current trajectory segment). At this time, it is necessary to calculate the maximum terminal velocity vemax that can be achieved under acceleration conditions or the minimum terminal velocity vemin that can be achieved under deceleration conditions.

[0167] As an optional implementation, the calculation of the first shortest distance Dlim1 corresponding to the acceleration a0 from the current point to 0 can be expressed as:

[0168] Dlim1=-1 / 6*JM*(a0 / JM)^3+(v0+0.5*a0*a0 / JM)*(a0 / JM).

[0169] As an alternative implementation, after determining the first shortest distance corresponding to the acceleration of the current point reaching 0, the target relationship between acceleration and time can be determined from a pre-established velocity planning model according to the first shortest distance Dlim1 and the remaining trajectory segment length Length from the current point to the end point.

[0170] In an alternative implementation, an implementation manner of determining the target relationship between acceleration and time from a pre-established velocity planning model according to the first shortest distance Dlim1 and the remaining trajectory segment length Length from the current point to the end point may include:

[0171] If the remaining trajectory segment length is less than the first shortest distance, a constant deceleration and acceleration segment is determined from the pre-established velocity planning model.

[0172] Correspondingly, adjusting the velocity of the workpiece during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment based at least on the target relationship between acceleration and time may include: during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the velocity of the workpiece according to the determined constant deceleration and acceleration segment. That is, when Length < Dlim1, path planning is performed on Length according to the rules of constant deceleration and acceleration.

[0173] In another alternative implementation, determining the target relationship between acceleration and time from a pre-established velocity planning model according to the first shortest distance Dlim1 and the remaining trajectory segment length Length from the current point to the end point may include:

[0174] If the remaining trajectory segment length is greater than or equal to the first shortest distance, a constant deceleration and acceleration segment is determined from the pre-established velocity planning model.

[0175] Thus, adjusting the velocity of the workpiece during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment based at least on the target relationship between acceleration and time may include: during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the velocity of the workpiece according to the determined constant deceleration and acceleration segment.

[0176] That is to say, when Length >= Dlim1, when acceleration is required, calculate the maximum terminal velocity vemax that can be achieved, and the calculation method can be as follows:

[0177] First, calculate the minimum displacement increment LengthAcc2 corresponding to the acceleration increasing from a0 to AM and then decreasing to 0, and the calculation method can be expressed as:

[0178] LengthAcc2 = (6 * AM^3 - 9 * AM^2 * a0 + 6 * AM * a0^2 + 12 * JM * v0 * AM - a0^3 - 6 * JM * v0 * a0) / (6 * JM^2);

[0179] If LengthAcc1 < Length < LengthAcc2, the following equation is satisfied:

[0180] Length = Amax^3 / JM^2 +

[0181] (v0 / JM + (-a0^2 / (2 * JM) + v0) / JM + a0^2 / (2 * JM^2)) * Amax +

[0182] a0^3 / (3 * JM^2) - (a0 * v0) / JM;

[0183] Vemax = v0 + (2 * Amax * Amax - a0 * a0) / 2 / JM;

[0184] T1 = Amax / JM;

[0185] T2 = 0;

[0186] T3 = T1.

[0187] Among them, T1 is the duration of uniform acceleration, T2 is the duration of constant acceleration, and T3 is the duration of uniform deceleration.

[0188] If Length > LengthAcc2, the following equation is satisfied:

[0189] 12 * JM^2 * v​​emax^2 + 12 * AM^2 * JM * v​​emax + 12 * AM^2 * JM * v0 + 8 * AM * a0^3 - 24 * AM * a0 * JM * v0 - 3 * a0^4 + 12 * a0^2 * JM * v0 + (-12) * JM^2 * v0^2 - 6 * AM^2 * a0^2 - Length * (24 * AM * JM^2) = 0.

[0190] The larger root obtained is the maximum terminal velocity v​​emax that can be achieved.

[0191] T1 = (AM - a0) / JM;

[0192] T3 = (AM) / JM;

[0193] T2 = ((vemax - v0) - (AM * AM - a0 * a0) / 2 / JM - AM * AM / 2 / JM) / AM.

[0194] Among them, T1 is the duration of uniform acceleration, T2 is the duration of uniform acceleration, and T3 is the duration of uniform deceleration.

[0195] When deceleration is required, the minimum achievable terminal speed vemin is calculated as follows:

[0196] Ds=Length-LengthAcc1;

[0197] [T5,T6,T7,Vlim]=SCurveVmax(Ds,v0,AM,JM);

[0198] vemin=v0+v0-Vlim;

[0199] T3=a0 / JM;

[0200] T4=0.

[0201] Among them, T3 is the duration of uniform acceleration and deceleration, T4 is the duration of uniform speed, T5 is the duration of uniform acceleration and deceleration, T6 is the duration of uniform deceleration, and T7 is the duration of uniform deceleration and deceleration.

[0202] For case 2.2, if the speed of the current point is less than or equal to the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, it is necessary to determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point.

[0203] It should be noted that the third shortest distance is less than or equal to the remaining trajectory segment length, that is, the remaining trajectory segment length Length is greater than or equal to the third shortest distance Dlim3 corresponding to the original termination speed from the initial speed of the current point to the end point, which means that there is no need to directly plan to the state of the original termination speed ve at this time, because the remaining trajectory segment length Length is greater than or equal to the third shortest distance Dlim3 corresponding to the original termination speed from the initial speed of the current point to the end point, so part of the journey can be carried out at a uniform speed at other speeds.

[0204] The fourth shortest distance Dlim4 corresponding to the current point's speed reaching the system's expected speed, and the fifth shortest distance Dlim5 corresponding to the original terminal speed from the system's expected speed to the end point, are calculated using formula (3):

[0205] [T1,T2,T3,Dlim4]=SCurveDminAs(v0,F,a0,AM,JM);

[0206] [T5,T6,T7,Dlim5]=SCurveDminAs(ve,F,0,AM,JM).

[0207] Among them, T1 is the duration of uniform acceleration, T2 is the duration of uniform acceleration, T3 is the duration of uniform deceleration, T5 is the duration of uniform acceleration and deceleration, T6 is the duration of uniform deceleration, and T7 is the duration of uniform deceleration.

[0208] The calculation of the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5 will not be described in detail here.

[0209] As an optional implementation, after determining that the speed of the current point reaches the fourth shortest distance Dlim4 corresponding to the system expected speed, and the fifth shortest distance Dlim5 corresponding to the original terminal speed from the system expected speed to the end point, the target relationship between acceleration and time can be determined from the pre-established speed planning model based on the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, as well as the remaining trajectory segment length Length from the current point to the end point.

[0210] In an optional implementation, based on the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, and the remaining trajectory segment length Length from the current point to the end point, an implementation method for determining the target relationship between acceleration and time from a pre-established speed planning model may include:

[0211] If the remaining trajectory segment length is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, an acceleration phase, a constant speed phase, and a deceleration phase are determined from a pre-established speed planning model.

[0212] Correspondingly, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece according to the determined acceleration stage, uniform speed stage and deceleration stage.

[0213] That is to say, if (Dlim4+Dlim5)<=Length, then from v0, a0 to the system's desired speed F under the constraints of JM, AM, run at a constant speed F for a period of time T4, and then reach the original terminal speed ve from the system's desired speed F.

[0214] T4=(Length-(Dlim4+Dlim5)) / F. T4 is the duration of the uniform speed.

[0215] refer to Figure 4 , Figure 4is a schematic diagram of the first speed planning provided in the embodiment of the present application, Figure 4 a represents the velocity-time (vt) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents velocity (in mm / ms); b represents the acceleration-time (at) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents acceleration (in mm / ms^2); c represents the distance-time (st) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents distance (in mm). Figure 4 As shown in the figure, the speed of the workpiece is adjusted according to the determined acceleration phase, constant speed phase and deceleration phase. Figure 4 Medium, v0=50mm / ms; a0=50mm / ms^2; ve=10mm / ms; F=200mm / ms.

[0216] Since the speed adjustment is based on the determined target relationship between acceleration and time, and the target relationship matches the acceleration of the workpiece at the current point of the current trajectory segment, the processing efficiency and processing quality of the workpiece can be ensured. Therefore, based on the determined target relationship between acceleration and time, the speed is adjusted in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, which can ensure that the workpiece runs at a speed that satisfies the processing efficiency and processing quality, thereby ensuring the processing efficiency and processing quality of the workpiece.

[0217] In another optional implementation, according to the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, and the remaining trajectory segment length Length from the current point to the end point, an implementation method for determining the target relationship between acceleration and time from a pre-established speed planning model may include:

[0218] If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, an acceleration phase and a deceleration phase are determined from a pre-established velocity planning model.

[0219] Correspondingly, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece according to the determined acceleration phase and deceleration phase.

[0220] That is to say, if (Dlim4+Dlim5)>Length, it is impossible to reach F, and a new speed NewF will be reached on the remaining length Length, and there will be no uniform speed segment. At this time, there will be the following four situations: (1) There is no uniform acceleration segment and no uniform deceleration segment; (2) There is a uniform acceleration segment and no uniform deceleration segment; (3) There is a uniform acceleration segment and a uniform deceleration segment; (4) There is no uniform acceleration segment and a uniform deceleration segment. There is only one set of real number solutions that meet the requirements for the above four situations.

[0221] refer to Figure 5 , Figure 5 is a schematic diagram of the second speed planning provided in the embodiment of the present application, Figure 5 In the figure, d represents the velocity-time (vt) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents velocity (in mm / ms); e represents the acceleration-time (at) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents acceleration (in mm / ms^2); f represents the distance-time (st) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents distance (in mm). Figure 5 As shown in the figure, the speed of the workpiece is adjusted according to the determined acceleration and deceleration phases. Figure 5 In the example, v0=50mm / ms; a0=50mm / ms^2; ve=10mm / ms; F=200mm / ms. This example is one of the above four cases (1) where there is no uniform acceleration segment and no uniform deceleration segment.

[0222] refer to Figure 6 , Figure 6 is a schematic diagram of the third speed planning provided in the embodiment of the present application, Figure 6 In the figure, g represents the velocity-time (vt) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents velocity (in mm / ms); h represents the acceleration-time (at) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents acceleration (in mm / ms^2); i represents the distance-time (st) relationship diagram, where the horizontal axis represents time (in ms) and the vertical axis represents distance (in mm). Figure 6 As shown in the figure, the speed of the workpiece is adjusted according to the determined acceleration and deceleration phases. Figure 6 In this example, v0=50mm / ms; a0=50mm / ms^2; ve=30mm / ms; F=200mm / ms. This example is one of the above four cases, in which (3) there is a uniform acceleration segment and a uniform deceleration segment.

[0223] Since the speed adjustment is based on the determined target relationship between acceleration and time, and the target relationship matches the acceleration of the workpiece at the current point of the current trajectory segment, the processing efficiency and processing quality of the workpiece can be ensured. Therefore, based on the determined target relationship between acceleration and time, the speed is adjusted in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, which can ensure that the workpiece runs at a speed that satisfies the processing efficiency and processing quality, thereby ensuring the processing efficiency and processing quality of the workpiece.

[0224] For case 2.3, if the speed of the current point is greater than the expected speed of the system and the third shortest distance is greater than the remaining trajectory segment length, the uniform acceleration segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment are determined from the pre-established speed planning model.

[0225] Accordingly, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based on at least the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the running speed of the workpiece based on at least the relationship between acceleration and time represented by the uniform acceleration segment, the uniform acceleration and deceleration segment, the uniform deceleration segment, and the uniform deceleration and deceleration segment, so that the speed of the workpiece at the end point reaches the original terminal speed. That is, when Dlim3>Length, the speed is reduced with the original terminal speed ve as the target value.

[0226] For case 2.4, if the speed of the current point is greater than the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, it is necessary to determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point. The calculation of the fourth shortest distance and the fifth shortest distance can be as follows.

[0227] [T51,T61,T71,Dlim4]=SCurveDminAs(v0,F,a0,AM,JM);

[0228] [T52,T62,T72,Dlim5]=SCurveDminAs(ve,F,0,AM,JM);

[0229] Among them, T51 is the duration of uniform acceleration and deceleration, T61 is the duration of uniform deceleration, T71 is the duration of uniform deceleration, T52 is the duration of uniform acceleration and deceleration, T62 is the duration of uniform deceleration, and T72 is the duration of uniform deceleration.

[0230] The calculation logic of the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5 can refer to formula (3). The calculation of the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5 will not be repeated here.

[0231] As an optional implementation, after determining that the speed of the current point reaches the fourth shortest distance corresponding to the system's expected speed, and the fifth shortest distance from the system's expected speed to the original terminal speed of the end point, the target relationship between acceleration and time can be determined from the pre-established speed planning model based on the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, as well as the remaining trajectory segment length Length from the current point to the end point.

[0232] In an optional implementation, based on the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, and the remaining trajectory segment length Length from the current point to the end point, an implementation method for determining the target relationship between acceleration and time from a pre-established speed planning model may include:

[0233] If the length of the remaining trajectory segment is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, the uniform acceleration and deceleration segment, the uniform deceleration segment, the uniform deceleration segment, the uniform speed segment, the uniform acceleration and deceleration segment, the uniform deceleration segment and the uniform deceleration segment are determined from the pre-established speed planning model.

[0234] Correspondingly, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece according to the determined uniform acceleration and deceleration segment, uniform deceleration segment, uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration segment.

[0235] That is to say, when (Dlim4+Dlim5)<=Length, first decelerate from v0 to F, move at a constant speed at speed F, and then decelerate from F to ve. The time for constant speed F is T4, and the calculation method of T4 is as follows:

[0236] T4=(Length-Dlim6) / vtop.

[0237] Among them, T4 is the duration of uniform speed, and vtop is the speed corresponding to acceleration of 0.

[0238] Therefore, in this case, the speed is reduced according to T51, T61, and T71, the speed is kept constant according to T4, and the speed is reduced again according to T52, T62, and T72.

[0239] In another optional implementation, according to the fourth shortest distance Dlim4 and the fifth shortest distance Dlim5, and the remaining trajectory segment length Length from the current point to the end point, an implementation method for determining the target relationship between acceleration and time from a pre-established speed planning model may include:

[0240] If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, the uniform deceleration and acceleration segment, the uniform speed segment, the uniform acceleration and deceleration segment, the uniform deceleration segment and the uniform deceleration and deceleration segment are determined from the pre-established speed planning model.

[0241] Correspondingly, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time may include: in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, adjusting the speed of the workpiece according to the determined uniform deceleration and acceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment.

[0242] That is to say, when (Dlim4+Dlim5)>Length, first reduce the initial acceleration a0 to 0 (corresponding to the speed vtop), and run at a constant speed of vtop for T4. The calculation method of T4 is as follows:

[0243] T3=a0 / JM;

[0244] Vtop=v0+0.5*a0*a0 / JM;

[0245] LengthAcc=-1 / 6*a0^3 / JM^2+vtop*a0 / JM;

[0246] T4=(Length-LengthAcc) / vtop.

[0247] Referring to formula (3), the process of continuing to decelerate is:

[0248] [T5,T6,T7,Dlim1]=SCurveDminAs(vtop,ve,0,AM,JM).

[0249] Among them, T3 is the duration of uniform acceleration and deceleration, T4 is the duration of uniform speed, T5 is the duration of uniform acceleration and deceleration, T6 is the duration of uniform deceleration, and T7 is the duration of uniform deceleration and deceleration.

[0250] Therefore, in this case, the speed is reduced according to T3, the speed is kept constant according to T4, and the speed is reduced again according to T5, T6, and T7.

[0251] It can be seen that the speed planning method provided in the embodiment of the present application can at least obtain the acceleration of the workpiece at the current point of the current trajectory segment; then, at least according to the acceleration of the current point, the target relationship between acceleration and time is determined from the pre-established speed planning model. Since the speed planning model has multiple relationships between acceleration and time, and the target relationship between acceleration and time is determined from the speed planning model based on the acceleration of the current point, the target relationship between acceleration and time can adapt to the acceleration of the current point, so that the speed of the workpiece is adjusted according to the target relationship between acceleration and time, which can ensure the processing efficiency and processing quality of the workpiece; further, in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece can be adjusted at least based on the determined target relationship between acceleration and time. Since the speed adjustment is based on the determined target relationship between acceleration and time, and the target relationship matches the acceleration of the workpiece at the current point of the current trajectory segment, the processing efficiency and processing quality of the workpiece can be ensured. Therefore, based on the determined target relationship between acceleration and time, the speed is adjusted in the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, which can ensure that the workpiece runs at a speed that satisfies the processing efficiency and processing quality, thereby ensuring the processing efficiency and processing quality of the workpiece.

[0252] The speed planning device provided in the embodiment of the present application is introduced below. The speed planning device described below can be regarded as a functional module required for the numerical control device to implement the speed planning method provided in the embodiment of the present application. The following description can be referred to in correspondence with the above description.

[0253] refer to Figure 7 , an embodiment of the present application provides a speed planning device, which may include:

[0254] The acquisition module 10 is used to at least acquire the acceleration of the workpiece at a current point in the current trajectory segment.

[0255] The determination module 20 is used to determine the target relationship between acceleration and time from a pre-established speed planning model based on at least the acceleration at the current point; wherein the speed planning model includes multiple relationships between acceleration and time.

[0256] The adjustment module 30 is used to adjust the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment.

[0257] Optionally, the multiple relationships between acceleration and time include: multiple relationship segments between acceleration and time, and the multiple relationship segments are continuous.

[0258] Optionally, the multiple relationship segments include:

[0259] An acceleration phase, wherein the acceleration in the acceleration phase is not 0, and the acceleration and the velocity have the same direction;

[0260] A uniform speed stage, wherein the acceleration of the uniform speed stage is kept at 0;

[0261] The deceleration stage, wherein the acceleration in the deceleration stage is not 0, and the acceleration is in the opposite direction to the velocity.

[0262] Optionally, the acceleration phase includes:

[0263] a uniform acceleration section, wherein the acceleration of the uniform acceleration section increases uniformly from 0 to a preset positive acceleration in a positive direction over time; wherein the positive direction is the same direction as the direction of the velocity;

[0264] A uniform acceleration section, wherein the acceleration of the uniform acceleration section is maintained at a preset positive acceleration and does not change with time;

[0265] A uniform deceleration acceleration section, wherein the uniform deceleration acceleration section indicates that the acceleration decreases uniformly from a preset positive acceleration to 0 over time;

[0266] The uniform speed stage includes:

[0267] A uniform speed segment, wherein the acceleration of the uniform speed segment remains at 0 and does not change with time;

[0268] The deceleration stage includes:

[0269] a uniform acceleration / deceleration section, wherein the acceleration of the uniform acceleration / deceleration section increases uniformly in the reverse direction from 0 to a preset reverse acceleration over time; wherein the reverse direction is a direction opposite to the direction of the velocity;

[0270] A uniform deceleration stage, wherein the acceleration of the uniform deceleration stage is maintained at a preset reverse acceleration and does not change with time;

[0271] The uniform deceleration section has an acceleration that decreases uniformly in the reverse direction from a preset reverse acceleration to 0 over time.

[0272] Optionally, determining a target relationship between acceleration and time from a pre-established speed planning model at least according to the acceleration of the current point includes:

[0273] If the acceleration value of the current point is less than 0, get the new terminal velocity of the end point;

[0274] According to the original terminal speed of the end point and the new terminal speed of the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

[0275] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the original terminal speed of the terminal point and the new terminal speed of the terminal point includes:

[0276] If the original terminal speed of the end point is greater than or equal to the new terminal speed, a deceleration phase is determined from a pre-established speed planning model;

[0277] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0278] When the workpiece moves from the current point of the current trajectory segment to the end point of the current trajectory segment, the running speed of the workpiece is adjusted based on at least the relationship between acceleration and time represented by the deceleration stage so that the speed of the workpiece at the end point reaches the original terminal speed.

[0279] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the original terminal speed of the terminal point and the new terminal speed of the terminal point includes:

[0280] If the original terminal speed of the end point is less than the new terminal speed, determine the first shortest distance corresponding to the acceleration of the current point reaching 0, and the second shortest distance corresponding to the speed of the current point reaching the new terminal speed;

[0281] According to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

[0282] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0283] If the length of the remaining trajectory segment is greater than the sum of the first shortest distance and the second shortest distance, a uniform deceleration segment, a uniform speed segment, a uniform acceleration / deceleration segment, a uniform deceleration segment, and a uniform deceleration / deceleration segment are determined from a pre-established speed planning model;

[0284] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0285] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment.

[0286] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0287] If the remaining trajectory segment length is less than or equal to the sum of the first shortest distance and the second shortest distance, determining a deceleration phase from a pre-established velocity planning model;

[0288] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0289] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined deceleration phase.

[0290] Optionally, determining a target relationship between acceleration and time from a pre-established speed planning model at least according to the acceleration of the current point includes:

[0291] If the value of the acceleration of the current point is greater than or equal to 0, determine the third shortest distance from the initial velocity of the current point to the original terminal velocity of the end point;

[0292] According to the third shortest distance and the remaining trajectory segment length from the current point to the end point, the target relationship between acceleration and time is determined from the pre-established velocity planning model.

[0293] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0294] If the speed of the current point is less than or equal to the expected speed of the system, and the third shortest distance is greater than the length of the remaining trajectory segment, determine the first shortest distance corresponding to the acceleration of the current point reaching 0;

[0295] According to the first shortest distance and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

[0296] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0297] If the remaining trajectory segment length is less than the first shortest distance, a uniformly decreasing acceleration segment is determined from a pre-established velocity planning model;

[0298] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0299] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration acceleration segment.

[0300] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0301] If the remaining trajectory segment length is greater than or equal to the first shortest distance, a uniformly decreasing acceleration segment is determined from a pre-established velocity planning model;

[0302] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0303] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration acceleration segment.

[0304] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0305] If the speed of the current point is less than or equal to the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point;

[0306] According to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

[0307] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0308] If the remaining trajectory segment length is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, determining an acceleration phase, a constant speed phase, and a deceleration phase from a pre-established speed planning model;

[0309] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0310] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined acceleration phase, uniform speed phase and deceleration phase.

[0311] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0312] If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, determining an acceleration phase and a deceleration phase from a pre-established speed planning model;

[0313] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0314] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined acceleration phase and deceleration phase.

[0315] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0316] If the speed of the current point is greater than the expected speed of the system, and the third shortest distance is greater than the length of the remaining trajectory segment, the uniform acceleration and deceleration segment, the uniform acceleration and deceleration segment, the uniform deceleration segment, and the uniform deceleration and deceleration segment are determined from the pre-established speed planning model;

[0317] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0318] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the running speed of the workpiece is adjusted based on at least the relationship between the acceleration and time represented by the uniform acceleration segment, the uniform acceleration and deceleration segment, the uniform deceleration segment and the uniform deceleration and deceleration segment, so that the speed of the workpiece at the end point reaches the original terminal speed.

[0319] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes:

[0320] If the speed of the current point is greater than the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point;

[0321] According to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

[0322] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0323] If the length of the remaining trajectory segment is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, a uniform acceleration / deceleration segment, a uniform deceleration segment, a uniform deceleration / deceleration segment, a uniform speed segment, a uniform acceleration / deceleration segment, a uniform deceleration / deceleration segment, and a uniform deceleration / deceleration segment are determined from a pre-established speed planning model;

[0324] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0325] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform acceleration and deceleration segment, uniform deceleration segment, uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration segment.

[0326] Optionally, determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes:

[0327] If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, a uniform deceleration and acceleration segment, a uniform speed segment, a uniform acceleration and deceleration segment, a uniform deceleration segment, and a uniform deceleration and deceleration segment are determined from a pre-established speed planning model;

[0328] The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises:

[0329] In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform acceleration and deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment.

[0330] An embodiment of the present application provides a numerical control device, which includes at least one memory and at least one processor, the memory stores one or more computer-executable instructions, and the processor calls the one or more computer-executable instructions to execute the speed planning method provided in the above-mentioned embodiment of the present application.

[0331] As an optional implementation, refer to Figure 8 The numerical control device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.

[0332] In the embodiment of the present application, the number of the processor 1 , the communication interface 2 , the memory 3 and the communication bus 4 is at least one, and the processor 1 , the communication interface 2 , and the memory 3 communicate with each other through the communication bus 4 .

[0333] Optionally, processor 1 may be a CPU (central processing unit), a GPU (Graphics Processing Unit), an NPU (embedded neural network processor), an FPGA (Field Programmable Gate Array), a TPU (tensor processing unit), an AI chip, an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement an embodiment of the present application.

[0334] Optionally, the communication interface 2 may be an interface of a communication module for performing network communication.

[0335] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 3 stores one or more computer executable instructions, and the processor 1 calls the one or more computer executable instructions to execute the speed planning method of the embodiment of the present application.

[0336] An embodiment of the present application provides a CNC machine tool, which includes a CNC device as provided in the above-mentioned embodiment of the present application.

[0337] An embodiment of the present application provides a storage medium, which stores one or more computer-executable instructions. When the one or more computer-executable instructions are executed, the speed planning method provided in the above-mentioned embodiment of the present application is implemented.

[0338] An embodiment of the present application provides a computer program product, including one or more computer executable instructions, which, when executed, can implement the speed planning method provided in the above-mentioned embodiment of the present application.

[0339] The above describes multiple implementation schemes provided by the embodiments of the present application. The various optional methods introduced in each implementation scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present application.

[0340] Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined by the claims.

Claims

1. A speed planning method, characterized in that: include: At least obtain the acceleration of the workpiece at the current point of the current trajectory segment; Determining a target relationship between acceleration and time from a pre-established speed planning model based at least on the acceleration at the current point; wherein the speed planning model includes a plurality of relationships between acceleration and time; During the process of the workpiece moving from a current point of the current trajectory segment to an end point of the current trajectory segment, adjusting the speed of the workpiece based at least on the target relationship between acceleration and time; Wherein, determining the target relationship between acceleration and time from a pre-established speed planning model at least according to the acceleration of the current point includes: If the acceleration value of the current point is less than 0, get the new terminal velocity of the end point; Determining a target relationship between acceleration and time from a pre-established speed planning model according to an original terminal speed of the terminal point and a new terminal speed of the terminal point; Determining the target relationship between acceleration and time from a pre-established speed planning model according to the original terminal speed of the terminal point and the new terminal speed of the terminal point includes: If the original terminal speed of the end point is less than the new terminal speed, determine the first shortest distance corresponding to the acceleration of the current point reaching 0, and the second shortest distance corresponding to the speed of the current point reaching the new terminal speed; According to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

2. The speed planning method according to claim 1, characterized in that: The multiple relationships between acceleration and time include: multiple relationship segments between acceleration and time, and the multiple relationship segments are continuous.

3. The speed planning method according to claim 2, characterized in that: The plurality of relationship segments include: An acceleration phase, wherein the acceleration in the acceleration phase is not 0, and the acceleration and the velocity have the same direction; A uniform speed stage, wherein the acceleration of the uniform speed stage is kept at 0; The deceleration stage, wherein the acceleration in the deceleration stage is not 0, and the acceleration is in the opposite direction to the velocity.

4. The speed planning method according to claim 3, characterized in that: The acceleration phase includes: a uniform acceleration section, wherein the acceleration of the uniform acceleration section increases uniformly from 0 to a preset positive acceleration in a positive direction over time; wherein the positive direction is the same direction as the direction of the velocity; A uniform acceleration section, wherein the acceleration of the uniform acceleration section is maintained at a preset positive acceleration and does not change with time; A uniform deceleration acceleration section, wherein the uniform deceleration acceleration section indicates that the acceleration decreases uniformly from a preset positive acceleration to 0 over time; The uniform speed stage includes: A uniform speed segment, wherein the acceleration of the uniform speed segment remains at 0 and does not change with time; The deceleration stage includes: a uniform acceleration / deceleration section, wherein the acceleration of the uniform acceleration / deceleration section increases uniformly in the reverse direction from 0 to a preset reverse acceleration over time; wherein the reverse direction is a direction opposite to the direction of the velocity; A uniform deceleration stage, wherein the acceleration of the uniform deceleration stage is maintained at a preset reverse acceleration and does not change with time; The uniform deceleration section has an acceleration that decreases uniformly in the reverse direction from a preset reverse acceleration to 0 over time.

5. The speed planning method according to claim 4, characterized in that: The step of determining the target relationship between acceleration and time from a pre-established speed planning model according to the original terminal speed of the end point and the new terminal speed of the end point further comprises: If the original terminal speed of the end point is greater than or equal to the new terminal speed, a deceleration phase is determined from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: When the workpiece moves from the current point of the current trajectory segment to the end point of the current trajectory segment, the running speed of the workpiece is adjusted based on at least the relationship between acceleration and time represented by the deceleration stage so that the speed of the workpiece at the end point reaches the original terminal speed.

6. The speed planning method according to claim 4, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the length of the remaining trajectory segment is greater than the sum of the first shortest distance and the second shortest distance, a uniform deceleration segment, a uniform speed segment, a uniform acceleration / deceleration segment, a uniform deceleration segment, and a uniform deceleration / deceleration segment are determined from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment.

7. The speed planning method according to claim 4, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is less than or equal to the sum of the first shortest distance and the second shortest distance, determining a deceleration phase from a pre-established velocity planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined deceleration stage.

8. The speed planning method according to claim 4, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model at least based on the acceleration of the current point also includes: If the value of the acceleration of the current point is greater than or equal to 0, determine the third shortest distance from the initial velocity of the current point to the original terminal velocity of the end point; According to the third shortest distance and the remaining trajectory segment length from the current point to the end point, the target relationship between acceleration and time is determined from the pre-established velocity planning model.

9. The speed planning method according to claim 8, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the speed of the current point is less than or equal to the expected speed of the system, and the third shortest distance is greater than the length of the remaining trajectory segment, determine the first shortest distance corresponding to the acceleration of the current point reaching 0; According to the first shortest distance and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

10. The speed planning method according to claim 9, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is less than the first shortest distance, a uniformly decreasing acceleration segment is determined from a pre-established velocity planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration acceleration segment.

11. The speed planning method according to claim 9, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the first shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is greater than or equal to the first shortest distance, a uniformly decreasing acceleration segment is determined from a pre-established velocity planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform deceleration acceleration segment.

12. The speed planning method according to claim 8, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the speed of the current point is less than or equal to the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point; According to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

13. The speed planning method according to claim 12, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, determining an acceleration phase, a constant speed phase, and a deceleration phase from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined acceleration phase, uniform speed phase and deceleration phase.

14. The speed planning method according to claim 12, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, determining an acceleration phase and a deceleration phase from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined acceleration phase and deceleration phase.

15. The speed planning method according to claim 8, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the speed of the current point is greater than the expected speed of the system, and the third shortest distance is greater than the length of the remaining trajectory segment, the uniform acceleration and deceleration segment, the uniform acceleration and deceleration segment, the uniform deceleration segment, and the uniform deceleration and deceleration segment are determined from the pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the running speed of the workpiece is adjusted based on at least the relationship between the acceleration and time represented by the uniform acceleration segment, the uniform acceleration and deceleration segment, the uniform deceleration segment and the uniform deceleration and deceleration segment, so that the speed of the workpiece at the end point reaches the original terminal speed.

16. The speed planning method according to claim 8, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the third shortest distance and the remaining trajectory segment length from the current point to the end point includes: If the speed of the current point is greater than the system expected speed, and the third shortest distance is less than or equal to the remaining trajectory segment length, determine the fourth shortest distance corresponding to the speed of the current point reaching the system expected speed, and the fifth shortest distance corresponding to the original terminal speed from the system expected speed to the end point; According to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

17. The speed planning method according to claim 16, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the length of the remaining trajectory segment is greater than or equal to the sum of the fourth shortest distance and the fifth shortest distance, a uniform acceleration / deceleration segment, a uniform deceleration segment, a uniform deceleration / deceleration segment, a uniform speed segment, a uniform acceleration / deceleration segment, a uniform deceleration / deceleration segment, and a uniform deceleration / deceleration segment are determined from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform acceleration and deceleration segment, uniform deceleration segment, uniform deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration segment.

18. The speed planning method according to claim 16, characterized in that: Determining the target relationship between acceleration and time from a pre-established speed planning model according to the fourth shortest distance and the fifth shortest distance, and the remaining trajectory segment length from the current point to the end point includes: If the remaining trajectory segment length is less than the sum of the fourth shortest distance and the fifth shortest distance, a uniform deceleration and acceleration segment, a uniform speed segment, a uniform acceleration and deceleration segment, a uniform deceleration segment, and a uniform deceleration and deceleration segment are determined from a pre-established speed planning model; The adjusting the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment comprises: In the process of the workpiece running from the current point of the current trajectory segment to the end point of the current trajectory segment, the speed of the workpiece is adjusted according to the determined uniform acceleration and deceleration segment, uniform speed segment, uniform acceleration and deceleration segment, uniform deceleration segment and uniform deceleration and deceleration segment.

19. A speed planning device, characterized in that: include: An acquisition module, used to acquire at least the acceleration of the workpiece at a current point of the current trajectory segment; A determination module, configured to determine a target relationship between acceleration and time from a pre-established speed planning model based at least on the acceleration at the current point; wherein the speed planning model includes a plurality of relationships between acceleration and time; an adjustment module, configured to adjust the speed of the workpiece at least based on the target relationship between acceleration and time during the process of the workpiece running from a current point of the current trajectory segment to an end point of the current trajectory segment; Wherein, determining the target relationship between acceleration and time from a pre-established speed planning model at least according to the acceleration of the current point includes: If the acceleration value of the current point is less than 0, get the new terminal velocity of the end point; Determining a target relationship between acceleration and time from a pre-established speed planning model according to an original terminal speed of the terminal point and a new terminal speed of the terminal point; Determining the target relationship between acceleration and time from a pre-established speed planning model according to the original terminal speed of the terminal point and the new terminal speed of the terminal point includes: If the original terminal speed of the end point is less than the new terminal speed, determine the first shortest distance corresponding to the acceleration of the current point reaching 0, and the second shortest distance corresponding to the speed of the current point reaching the new terminal speed; According to the first shortest distance and the second shortest distance, and the remaining trajectory segment length from the current point to the end point, a target relationship between acceleration and time is determined from a pre-established speed planning model.

20. A numerical control device, characterized in that: It comprises at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the speed planning method as described in any one of claims 1-18.

21. A numerically controlled machine tool, characterized in that: The numerically controlled machine tool comprises the numerically controlled device as claimed in claim 20.

22. A storage medium, characterized in that: The storage medium stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the speed planning method as described in any one of claims 1-18 is implemented.

23. A computer program product, characterized in that It comprises one or more computer executable instructions, and when the one or more computer executable instructions are executed, the speed planning method as described in any one of claims 1-18 is implemented.

Citation Information

Patent Citations

  • High-efficiency high-stability flexible acceleration and deceleration control method for numerical control system

    CN103728923A

  • Five-axis machine tool speed planning method based on S-shaped acceleration and deceleration

    CN113156893A

  • S-shaped track planning method and device, computer equipment and storage medium

    CN114035582A

  • Speed planning method and device, machine tool control system and storage medium

    CN116774648A

  • Method and device for eliminating rounding error in S-shaped acceleration and deceleration speed planning

    CN117724399A