Speed control method and system in periodic synchronization position mode

By acquiring and planning the position curve of the actuator in the periodic synchronous position mode, the problem of position deviation in the periodic synchronous speed mode is solved, and more accurate and stable speed control is achieved, suitable for various initial and target speed situations.

CN119045549APending Publication Date: 2024-11-29SUZHOU LINGCHEN ACQUISITION COMP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411166777.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In motion control, when the periodic synchronous speed mode is used, the actuator is prone to position deviation, which affects the operation accuracy and stability.

Method used

By obtaining the actual motion speed of the actuator and the preset target speed in the periodic synchronous position mode, combining the acceleration and acceleration peaks, judging and planning the position curve, speed control is achieved, and the position accuracy and stability of the actuator are ensured.

Benefits of technology

It effectively reduces the position deviation of the actuator, improves operating accuracy and stability, and is suitable for situations where the initial and target speeds are arbitrary values, providing a wider algorithm library applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045549A_ABST
    Figure CN119045549A_ABST
Patent Text Reader

Abstract

The invention discloses a speed control method and system in a periodic synchronization position mode, and relates to the technical field of motion control, and the method comprises the steps: obtaining an actual motion speed of an execution mechanism, and recording the actual motion speed as an initial speed; based on the initial speed, a preset target speed, the first jerk and the first acceleration peak value, whether the execution mechanism can move according to a first speed switching mode in the process of switching from the initial speed to the target speed is judged; if yes, planning a position curve of the execution mechanism in the first speed switching mode based on the initial speed, the target speed, the first jerk, the first acceleration peak value and a position curve planning model; if not, the requirement of the user for speed switching of the executing mechanism is obtained, the first jerk or the first acceleration peak value is adjusted based on the requirement of the user, and a position curve of the executing mechanism is correspondingly planned. According to the invention, the problem that the position of the actuating mechanism is easy to deviate when the speed of the actuating mechanism is controlled in a periodic synchronous speed mode is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motion control, and in particular to a speed control method and system in a periodic synchronous position mode. Background Art

[0002] In the field of motion control, a host controller is usually used to complete motion trajectory planning and perform corresponding motion control on the actuator. The working modes of the host controller include periodic synchronous position mode, periodic synchronous speed mode, and periodic synchronous torque mode. Different working modes are used under different motion control requirements. When controlling the speed of an actuator, the traditional approach is usually to switch the working mode of the upper controller to the periodic synchronous speed mode. In this mode, the speed of the actuator is controlled by periodically sending the target speed to the actuator. However, this speed control method often causes a large deviation in the position of the actuator during movement, affecting the operating accuracy and stability of the actuator. Summary of the invention

[0003] In order to solve the problem that when a periodic synchronous speed mode is used to control the speed of an actuator, the position of the actuator is easily deviated, the present application provides a speed control method and system under a periodic synchronous position mode.

[0004] In a first aspect, the present application provides a speed control method in a periodic synchronous position mode, which adopts the following technical solution: The method includes: obtaining the actual movement speed of the actuator and recording it as the initial speed V 初始 ; Based on the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed? If possible, based on the initial velocity V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; If not, further obtaining the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusting the first jerk J1 or the first acceleration peak A1, and correspondingly planning the position curve of the actuator; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 .

[0005] By adopting the above technical solution, speed control is achieved by position control, so that the actual speed of the actuator coincides with the value calculated theoretically. While ensuring speed control, the position deviation of the actuator is minimized to the greatest extent, the operating accuracy and stability of the actuator are improved, and the user can also more clearly grasp the position change of the actuator; when planning the position curve, it is not limited to the initial speed V of the actuator. 初始 Or the target speed V 目标 Whether it is 0, there is no limit on the difference between the two. The initial speed V of the actuator 初始 and target speed V 目标 It can be any value, and the initial speed V can be achieved by the position curve planned in the corresponding motion mode while ensuring the accuracy and stability of the actuator. 初始 To target speed V 目标 The position curve can be applied to most algorithm libraries and has a wider applicability.

[0006] In a specific implementation scheme, based on the user's demand for actuator speed switching, the first jerk J1 or the first acceleration peak A1 is adjusted, and the position curve of the actuator is correspondingly planned, specifically including: if the demand is switching efficiency, determining that the motion mode of the actuator is the second speed switching mode, and adjusting the first jerk J1 to the second jerk J2, and based on the initial speed V 初始 , the target speed V 目标 , the second jerk J2, the first acceleration peak A1 and the position curve planning model, planning the position curve of the actuator in the second speed switching mode; If the requirement is switching smoothness, the motion mode of the actuator is determined to be the third speed switching mode, and the first acceleration peak value A1 is adjusted to the second acceleration peak value A2, and based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the second acceleration peak A2 and the position curve planning model, and planning the position curve of the actuator in the third speed switching mode.

[0007] In a specific embodiment, based on the initial speed V 初始 and the preset target speed V 目标, the first jerk J1 and the first acceleration peak A1, and determining whether the actuator can move according to the first speed switching mode, specifically including: Determine the initial speed V 初始 and the preset target speed V 目标 , whether the first acceleration J1 and the first acceleration peak A1 satisfy: If so, determining that the actuator can move according to the first speed switching mode; If not, it is determined that the actuator cannot move according to the first speed switching mode.

[0008] By adopting the above technical solution, the formula is used to make a preliminary judgment on the motion mode. If the parameters meet the Indicates that based on the set parameters J1 and A1, the initial speed V 初始 and target speed V 目标 If the difference between the initial speed V is large enough, the first speed switching mode can be adopted; otherwise, it means that the initial speed V 初始 and target speed V 目标 The difference between them is not enough to switch the mode to the first speed.

[0009] In a specific embodiment, the first speed switching mode represents that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J1, the acceleration is constant at A1, and the acceleration is V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J1, and the velocity is kept at V 目标 The second speed switching mode represents the speed of the actuator from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J2, the acceleration is constant at A1, and V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J2, and the velocity is kept at V 目标 And the acceleration is constant at 0; The third speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 is the starting speed and the acceleration changes from 0 to A2 at the rate of change of J1, and V 目标 The terminal velocity is the acceleration changing from A2 to 0 at the rate of change of J1, and the velocity is kept at V 目标And the acceleration is constant at 0.

[0010] By adopting the above technical solution, at the initial speed V 初始 and target speed V 目标 When the difference between the values ​​of V and V is large enough, the first speed switching mode is adopted, that is, the actuator performs the entire process of increasing acceleration, maintaining acceleration, reducing acceleration, and accelerating to zero. In this process, the speed keeps increasing and reaches V 目标 Later, V 目标 The value of V maintains a uniform speed until other instructions arrive. During this process, the efficiency and smoothness of the actuator speed switching can be guaranteed at the same time. 初始 and target speed V 目标 When the difference between them is relatively small, it is necessary to adjust the initially set value of A1 or J1, and adopt the second speed switching mode, that is, the actuator can still complete the process of acceleration increase, acceleration maintenance, acceleration reduction, and acceleration to 0, but in the process of acceleration increase and acceleration reduction, the acceleration change rate is faster, and efficient speed switching is achieved; when the third speed switching mode is adopted, that is, the actuator can only perform three stages of acceleration increase, deceleration reduction, and acceleration to 0, and the peak value during the acceleration increase process is relatively reduced, so as to achieve a smooth speed switching.

[0011] In a specific implementation scheme, the position curve planning model includes: Wherein, s(t) represents a function of position changing with time, A represents acceleration, and J represents jerk; s(t) includes a first process of 0<t≤△t1, a second process of △t1<t≤△t1+△t2, a third process of △t1+△t2<t≤△t1+△t2+△t3, and a fourth process of t>△t1+△t2+△t3; △t1 is the duration of the first process, △s1 is the position increment of the first process, △t2 is the duration of the second process, △s2 is the position increment of the second process, △t3 is the duration of the third process, △s3 is the position increment of the third process,

[0012] In a specific implementation scheme, the magnitude relationship between the first acceleration J1 and the second acceleration J2 is: J2>J1; The magnitude relationship between the first acceleration peak value A1 and the second acceleration peak value A2 is: A1>A2.

[0013] In a specific implementation scheme, adjusting the first acceleration J1 to the second acceleration J2 includes: Adjusting the first acceleration peak value A1 to a second acceleration peak value A2 includes:

[0014] In a second aspect, the present application provides a speed control system in a periodic synchronous position mode, which adopts the following technical solution: the system applies the speed control method in the periodic synchronous position mode in the first aspect or any one of the implementation schemes of the first aspect. The system includes a speed acquisition module, a mode judgment module, a user demand acquisition module and a curve planning module; The speed acquisition module is used to obtain the actual movement speed of the actuator and record it as the initial speed V 初始 ; The mode judgment module is used to determine the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed? If yes, the curve planning module, based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; If not, the curve planning module further obtains the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusts the first jerk J1 or the first acceleration peak A1, and plans the position curve of the actuator accordingly; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 .

[0015] In the third aspect, the present application provides an upper controller, including: a processor, a memory and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory, and the processor is used to execute one or more programs stored in the memory to realize the speed control method in the periodic synchronous position mode described in the above-mentioned first aspect or any one of the implementation schemes of the first aspect.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the speed control method in the periodic synchronous position mode as described in the first aspect or any possible implementation scheme of the first aspect is executed.

[0017] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Use position control to achieve speed control, so that the actual speed of the actuator coincides with the theoretically calculated value. While ensuring speed control, the position deviation of the actuator is minimized to the greatest extent, the operating accuracy and stability of the actuator are improved, and the user can also more clearly grasp the position change of the actuator; 2. When planning the position curve, it is not limited to the initial speed V of the actuator. 初始 Or the target speed V 目标 Whether it is 0, there is no limit on the difference between the two. The initial speed V of the actuator 初始 and target speed V 目标 It can be any value, and the initial speed V can be achieved by the position curve planned in the corresponding motion mode while ensuring the accuracy and stability of the actuator. 初始 To target speed V 目标 connection and switching; 3. In the first speed switching mode, the second speed switching mode and the third speed switching mode, the speed switching process is divided into multiple stages. Compared with directly adopting the constant acceleration or constant deceleration method, the speed switching mode of the present application will not bring about acceleration discontinuity, the speed transition is smoother and the mechanical impact is small. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is the main flow chart of the position curve planning method in the embodiment of the present application; Figure 2 In the embodiment of the present application, V 初始 <V 目标 The acceleration changes corresponding to the three modes. DETAILED DESCRIPTION

[0019] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0020] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0021] In the description of the embodiments of the present application, the term "multiple" means two or more. For example, multiple systems refer to two or more systems, and multiple screen controllers refer to two or more screen controllers. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0022] An embodiment of the present application provides a speed control method in a periodic synchronous position mode. The periodic synchronous position mode is a field bus-based working mode, which works by periodically sending a target position to an actuator to control the movement of the actuator.

[0023] like Figure 1 As shown, the method includes steps S1-S4.

[0024] S1, obtain the actual movement speed of the actuator and record it as the initial speed V 初始 .

[0025] S2, based on the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed?

[0026] In a possible implementation manner, in this step, based on the initial speed V 初始 and the preset target speed V 目标, a first jerk J1 and a first acceleration peak A1, and determining whether the actuator can move according to the first speed switching mode, specifically including steps A1-A2.

[0027] A1, determine the initial speed V 初始 and the preset target speed V 目标 , whether the first acceleration J1 and the first acceleration peak A1 satisfy:

[0028] A2, if yes, determining that the actuator can move according to the first speed switching mode; If not, it is determined that the actuator cannot move according to the first speed switching mode.

[0029] First, use the formula to make a preliminary judgment on the motion mode. If the parameters meet the Indicates that based on the set parameters J1 and A1, the initial speed V 初始 and target speed V 目标 If the difference between the initial speed V is large enough, the first speed switching mode can be adopted; otherwise, it means that the initial speed V 初始 and target speed V 目标 The difference between them is not enough to switch the mode to the first speed.

[0030] S3, if possible, based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; S4, if not, further obtaining the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusting the first jerk J1 or the first acceleration peak A1, and correspondingly planning the position curve of the actuator; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 That is, the position curve is also the position-time curve. The upper controller can obtain the target position of the actuator at different time nodes according to the position curve, and periodically send the target position to the actuator to drive the movement of the actuator, so that the speed of the actuator changes from V 初始 Switch to V 目标 Of course, the upper controller can also calculate the position increment corresponding to each cycle according to the position curve, and periodically send the position increment to the actuator to drive the movement of the actuator so that the speed of the actuator changes from V初始 Switch to V 目标 It is understandable that the shorter the time interval for the upper controller to periodically send the target position or position increment to the actuator, the higher the position control accuracy of the actuator. Those skilled in the art can set the specific time by themselves, and this application does not make any specific limitation on this.

[0031] It should be noted that the magnitude relationship between the first jerk J1 and the second jerk J2 is: J2>J1; the magnitude relationship between the first acceleration peak value A1 and the second acceleration peak value A2 is: A1>A2.

[0032] In a possible implementation, step S4 specifically includes steps B1-B2: B1, if the requirement is switching efficiency, the motion mode of the actuator is determined to be the second speed switching mode, and the first jerk J1 is adjusted to the second jerk J2, and based on the initial speed V 初始 , the target speed V 目标 , the second jerk J2, the first acceleration peak A1 and the position curve planning model, planning the position curve of the actuator in the second speed switching mode; In a possible implementation manner, the first jerk J1 is adjusted to the second jerk J2, and specifically the following calculation formula may be used:

[0033] B2, if the requirement is switching softness, the motion mode of the actuator is determined to be the third speed switching mode, and the first acceleration peak value A1 is adjusted to the second acceleration peak value A2, and based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the second acceleration peak A2 and the position curve planning model, and planning the position curve of the actuator in the third speed switching mode.

[0034] In a possible implementation manner, the first acceleration peak value A1 is adjusted to the second acceleration peak value A2, and specifically the following calculation formula may be used:

[0035] It is understood by those skilled in the art that, when the difference between the starting speed and the target speed is small, if the position curve of the actuator is still planned according to A1 and J1, the actual speed of the actuator will reach the target speed V before the acceleration reaches A1. 目标In addition, during the speed switching process of the actuator, since the magnitude of the acceleration will affect the softness of the speed switching of the actuator and the magnitude of the jerk will affect the efficiency of the actuator, those skilled in the art can set the values ​​of the first acceleration peak value A1 and the first jerk J1 according to the maximum value that the motor acceleration of the actuator can support, the actual situation of the actuator or other situations, and this application does not make specific limitations.

[0036] The technical solution of the present application uses the actual movement speed of the actuator as the initial speed V through the above steps S1-S4. 初始 , combined with a series of preset parameters, first make a preliminary judgment to determine whether the actuator can move according to the first speed switching mode. If it can, plan the corresponding position curve. If not, make a secondary adjustment based on the user's requirements for speed switching efficiency or switching smoothness, by adjusting the value of the first acceleration J1 or the first acceleration peak A1, and then plan the corresponding position curve according to the adjusted parameters; This application generates a position curve and controls the position of the actuator in the periodic synchronous position mode, thereby achieving the purpose of speed control and realizing the speed switching of the actuator. Compared with the traditional method of controlling the speed of the actuator in the periodic synchronous speed mode, it has the following advantages: 1. Use position control to achieve speed control, so that the actual speed of the actuator coincides with the theoretically calculated value. While ensuring speed control, the position deviation of the actuator is minimized to the greatest extent, the operating accuracy and stability of the actuator are improved, and the user can also more clearly grasp the position change of the actuator; especially in practical applications, the complete workflow of automation equipment often requires multiple controls in combination with speed and position. If the speed is adjusted using the periodic synchronous speed mode, and the actuator has a large deviation at this time, it cannot be well connected with the position adjustment of the subsequent periodic synchronous position mode, and the position needs to be corrected again, which is relatively inefficient; 2. When planning the position curve, it is not limited to the initial speed V of the actuator. 初始 Or the target speed V 目标 Whether it is 0, there is no limit on the difference between the two. The initial speed V of the actuator 初始 and target speed V 目标 It can be any value, and the initial speed V can be achieved by the position curve planned in the corresponding motion mode while ensuring the accuracy and stability of the actuator. 初始 To target speed V 目标 connection and switching; 3. In the existing algorithm libraries, the position curve can be applied to most algorithm libraries and has a wider applicability.

[0037] In one possible implementation, refer to Figure 2 , Figure 2 shows that the V 初始 <V 目标 The first speed switching mode represents the change of the speed of the actuator from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J1, the acceleration is constant at A1, and the acceleration is V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J1, and the velocity is kept at V 目标 And the acceleration is constant at 0; The second speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J2, the acceleration is constant at A1, and V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J2, and the velocity is kept at V 目标 And the acceleration is constant at 0; The third speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 is the starting speed and the acceleration changes from 0 to A2 at the rate of change of J1, and V 目标 The terminal velocity is the acceleration changing from A2 to 0 at the rate of change of J1, and the velocity is kept at V 目标 And the acceleration is constant at 0.

[0038] It can be understood by those skilled in the art that A1, A2, J1, and J2 can be positive or negative values. 初始 <Target speed V 目标 , then A1>0, J1>0, J2>0, A2>0, the actuator speed keeps increasing during the speed switching process; on the contrary, when the initial speed V 初始 >Target speed V 目标 , then A1<0, J1<0, J2<0, A2<0, and the speed of the actuator keeps decreasing during the speed switching process.

[0039] Combining the above, we can get: at the initial speed V 初始 and target speed V 目标When the difference between the values ​​of V and V is large enough, the first speed switching mode is adopted, that is, the actuator performs the entire process of increasing acceleration, maintaining acceleration, reducing acceleration, and accelerating to zero. In this process, the speed keeps increasing and reaches V 目标 Later, V 目标 The value of keeps moving at a constant speed until other instructions arrive. In this process, the efficiency and softness of the speed switching of the actuator can be guaranteed at the same time; At the initial speed V 初始 and target speed V 目标 When the difference between them is relatively small, it is necessary to adjust the initially set value of A1 or J1. Therefore, according to the user's needs, if the user's needs are to ensure the switching efficiency, then J1 is adjusted to J2, and the second speed switching mode is adopted, that is, the actuator can still complete the process of acceleration increase, acceleration maintenance, acceleration reduction, and acceleration to 0, but in the process of acceleration increase and acceleration reduction, the acceleration change rate is faster, and efficient speed switching is achieved; if the user's needs are to ensure the softness of switching, then A1 is adjusted to A2, and the third speed switching mode is adopted, that is, the actuator can only perform three stages of acceleration increase, deceleration reduction, and acceleration to 0, and the peak value during the acceleration increase process is relatively reduced, so as to achieve soft speed switching.

[0040] In the first speed switching mode, the second speed switching mode and the third speed switching mode of the present application, the speed switching process is divided into multiple stages. Compared with directly adopting the constant acceleration or constant deceleration method, the speed switching mode of the present application will not bring about acceleration discontinuity, the speed transition is smoother and the mechanical impact is small.

[0041] In a possible implementation, the position curve planning model includes: Wherein, s(t) represents a function of position changing with time, A represents acceleration, and J represents jerk; s(t) includes a first process of 0<t≤△t1, a second process of △t1<t≤△t1+△t2, a third process of △t1+△t2<t≤△t1+△t2+△t3, and a fourth process of t>△t1+△t2+△t3; △t1 is the duration of the first process, △s1 is the position increment of the first process, △t2 is the duration of the second process, △s2 is the position increment of the second process, △t3 is the duration of the third process, △s3 is the position increment of the third process,

[0042] It can be understood by those skilled in the art that based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode, that is, Assuming that in the position curve planning model s(t), A=A1, J=J1, the position curve of the actuator in the first speed switching mode can be obtained; The position curve of the actuator in the first speed switching mode includes: Among them, △t1 is the time duration of the acceleration changing from 0 to A1 at the rate of change of J1. △s1 is the position increment of the acceleration changing from 0 to A1 at the rate of change of J1. △t2 is the duration of the process of constant acceleration A1, △s2 is the position increment of the process with constant acceleration A1, △t3 is the time it takes for the acceleration to change from A1 to 0 at the rate of change of J1. △s3 is the position increment when the acceleration changes from A1 to 0 at the rate of change of J1.

[0043] Similarly, based on the initial velocity V 初始 , the target speed V 目标 , the second jerk J2, the first acceleration peak A1 and the position curve planning model, planning the position curve of the actuator in the second speed switching mode, that is, assuming that in the position curve planning model s(t), A=A1, J=J2, the position curve of the actuator in the second speed switching mode can be obtained; The position curve of the actuator in the second speed switching mode includes: Among them, △t1 is the time duration of the acceleration changing from 0 to A1 at the rate of change of J2. △s1 is the position increment of the acceleration changing from 0 to A1 at the rate of change of J2. △t2 is the duration of the process of constant acceleration A1, △s2 is the position increment of the process with constant acceleration A1, △t3 is the time it takes for the acceleration to change from A1 to 0 at the rate of change of J2. △s3 is the position increment when the acceleration changes from A1 to 0 at the rate of change of J2.

[0044] Similarly, based on the initial velocity V 初始 , the target speed V 目标 , the first jerk J1, the second acceleration peak A2 and the position curve planning model, planning the position curve of the actuator in the third speed switching mode, that is, since the third speed switching mode does not have a process in which the acceleration is constant at A2, the position curve planning model s(t) is set such that A=A2, J=J1, △t2=0, △s2=0, and the position curve of the actuator in the third speed switching mode can be obtained; The position curve of the actuator in the third speed switching mode includes: Among them, △t1 is the time duration of the acceleration changing from 0 to A2 at the rate of change of J1. △s1 is the position increment of the acceleration changing from 0 to A2 at the rate of change of J1. △t3 is the time it takes for the acceleration to change from A2 to 0 at the rate of change of J1. △s3 is the position increment when the acceleration changes from A2 to 0 at the rate of change of J1.

[0045] In a possible implementation, step S1 obtains the actual movement speed of the actuator and records it as the initial speed V 初始 Previously, the following steps C1-C5 of constructing a position curve planning model were also included.

[0046] C1, construct a first initial calculation model corresponding to the first process, and based on the first initial calculation model, obtain the first position function s1(t), duration △t1, velocity change △v1, terminal velocity V1, and position increment △s1 of the first process; wherein the first process is characterized by V 初始 The process in which the starting velocity is the acceleration changing from 0 to A at a rate of change of J.

[0047] Specifically, the first initial calculation model includes: The first relationship between acceleration a and time t: a1(t)=J*t; The first relationship between velocity v and time t is: Since the acceleration corresponding to the end point of the first process is A, based on the above first initial calculation model, the duration of the first process can be obtained: First position function In addition, the speed change can also be obtained Terminal velocity Position increment

[0048] C2, based on the terminal velocity V1 of the first process, construct a second initial calculation model corresponding to the second process, and based on the second initial calculation model and the duration △t1, position increment △s1, and velocity change △v1 of the first process, obtain the second position function s2(t), duration △t2, velocity change △v2, terminal velocity V2, and position increment △s2 of the second process; wherein, the second process represents a process with V1 as the starting velocity and acceleration constant at A.

[0049] Specifically, the second initial calculation model includes: The second relationship between acceleration a and time t: a2(t)=A; The second relationship between velocity v and time t: v2(t)=∫a2(t)dt=V1+A*t; Combined with the speed change obtained in the first process According to the principle of symmetry, the terminal velocity of the second process can also be obtained Speed ​​change Duration The position increment is Based on the above second initial calculation model and duration △t2, combined with the position increment △s1 and duration △t1 of the first process, the second position function can be obtained: △t1<t≤△t1+△t2.

[0050] C3, based on the terminal speed V2 of the second process, construct a third initial calculation model corresponding to the third process; and based on the third initial calculation model and the duration △t1, position increment △s1 of the first process, the duration △t2, position increment △s2, speed change △v2, and terminal speed V2 of the second process, obtain the third position function s3(t), duration △t3, and position increment △s3 of the third process; wherein the third process represents the starting speed V2, the position increment V1, and the terminal speed V2.目标 is the terminal velocity, and the acceleration changes from A to 0 at the rate of change of J.

[0051] Specifically, the third initial calculation model includes: The third relationship between acceleration a and time t: a3(t)=AJ*t; The third relationship between velocity v and time t: Based on the third initial calculation model, the duration of the third process can be obtained: Combined with the terminal velocity obtained in the second process and terminal velocity v3 = V 目标 , we can also get the velocity change of the third process Position increment Combining the duration △t1 of the first process, the position increment △s1, the duration △t2 of the second process, and the position increment △s2, the third position function can be obtained: △t1+△t2<t≤△t1+△t2+△t3.

[0052] C4, construct a fourth initial calculation model corresponding to the fourth process, and obtain a fourth position function s4(t) of the fourth process based on the fourth initial calculation model, the duration △t1 of the first process, the position increment △s1, the duration △t2 of the second process, the position increment △s2, the duration △t3 of the third process, and the position increment △s3; wherein the fourth process represents that the acceleration is 0 and the speed is maintained at V 目标 process.

[0053] Specifically, the fourth initial calculation model includes: The fourth relationship between acceleration a and time t: a3(t)=0; The fourth relationship between speed v and time t: v4(t) = V 目标 ; Based on the fourth initial calculation model, combined with the duration △t1 of the first process, the position increment △s1, the duration △t2 of the second process, the position increment △s2, the duration △t3 of the third process, and the position increment △s3, the fourth position function of the fourth process s4(t)=△s1+△s2+△s3+∫v4(t)dt=△s1+△s2+△s3+V 目标 *t, t>△t1+△t2+△t3.

[0054] C5. Construct a position curve planning model based on the first position function, the second position function, the third position function and the fourth position function.

[0055] Specifically, as mentioned above, the position curve planning model includes: in, I will not go into details here.

[0056] The embodiment of the present application provides a speed control system in a periodic synchronous position mode, and applies the speed control method in the periodic synchronous position mode described in the above embodiment. Specifically, the system includes a speed acquisition module, a mode judgment module, a user demand acquisition module and a curve planning module; The speed acquisition module is used to obtain the actual movement speed of the actuator and record it as the initial speed V 初始 ; The mode judgment module is used to determine the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed? If yes, the curve planning module, based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; If not, the curve planning module further obtains the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusts the first jerk J1 or the first acceleration peak A1, and plans the position curve of the actuator accordingly; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 .

[0057] An embodiment of the present application provides a host controller, including: a processor, a memory and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory, and the processor is used to execute one or more programs stored in the memory to realize the speed control method in the periodic synchronous position mode as described in the above embodiment.

[0058] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are executed, the speed control method in the periodic synchronous position mode described in the above embodiment is executed.

[0059] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A speed control method in a periodic synchronous position mode, characterized in that: include: Get the actual movement speed of the actuator and record it as the initial speed V 初始 ; Based on the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed? If possible, based on the initial velocity V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; If not, further obtaining the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusting the first jerk J1 or the first acceleration peak A1, and correspondingly planning the position curve of the actuator; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 .

2. The speed control method in the periodic synchronous position mode according to claim 1, characterized in that: Based on the user's demand for actuator speed switching, adjusting the first jerk J1 or the first acceleration peak A1, and correspondingly planning the position curve of the actuator, specifically includes: If the requirement is switching efficiency, the motion mode of the actuator is determined to be the second speed switching mode, and the first jerk J1 is adjusted to the second jerk J2, and based on the initial speed V 初始 , the target speed V 目标 , the second jerk J2, the first acceleration peak A1 and the position curve planning model, planning the position curve of the actuator in the second speed switching mode; If the requirement is switching smoothness, the motion mode of the actuator is determined to be the third speed switching mode, and the first acceleration peak value A1 is adjusted to the second acceleration peak value A2, and based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the second acceleration peak A2 and the position curve planning model, and planning the position curve of the actuator in the third speed switching mode.

3. The speed control method in the periodic synchronous position mode according to claim 1, characterized in that: Based on the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, and determining whether the actuator can move according to the first speed switching mode, specifically including: Determine the initial speed V 初始 and the preset target speed V 目标 , whether the first acceleration J1 and the first acceleration peak A1 satisfy: If so, determining that the actuator can move according to the first speed switching mode; If not, it is determined that the actuator cannot move according to the first speed switching mode.

4. The speed control method in the periodic synchronous position mode according to claim 2, characterized in that: The first speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J1, the acceleration is constant at A1, and the acceleration is constant at V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J1, and the velocity is kept at V 目标 And the acceleration is constant at 0; The second speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 The starting speed is the acceleration changing from 0 to A1 at the rate of change of J2, the acceleration is constant at A1, and V 目标 The terminal velocity is the acceleration changing from A1 to 0 at the rate of change of J2, and the velocity is kept at V 目标 And the acceleration is constant at 0; The third speed switching mode indicates that the speed of the actuator changes from V 初始 Switch to V 目标 The process is: V 初始 is the starting speed and the acceleration changes from 0 to A2 at the rate of change of J1, and V 目标 The terminal velocity is the acceleration changing from A2 to 0 at the rate of change of J1, and the velocity is kept at V 目标 And the acceleration is constant at 0.

5. The speed control method in the periodic synchronous position mode according to claim 1, characterized in that: The position curve planning model includes: Wherein, s(t) represents a function of position changing with time, A represents acceleration, and J represents jerk; s(t) includes a first process of 0<t≤△t1, a second process of △t1<t≤△t1+△t2, a third process of △t1+△t2<t≤△t1+△t2+△t3, and a fourth process of t>△t1+△t2+△t3; △t1 is the duration of the first process, △s1 is the position increment of the first process, △t2 is the duration of the second process, △s2 is the position increment of the second process, △t3 is the duration of the third process, △s3 is the position increment of the third process, 6. The speed control method in the periodic synchronous position mode according to claim 2, characterized in that: The magnitude relationship between the first jerk J1 and the second jerk J2 is: J2>J1; The magnitude relationship between the first acceleration peak value A1 and the second acceleration peak value A2 is: A1>A2.

7. The speed control method in the periodic synchronous position mode according to claim 2, characterized in that: Adjusting the first jerk J1 to a second jerk J2 includes: Adjusting the first acceleration peak value A1 to a second acceleration peak value A2 includes:

8. A speed control system in a periodic synchronous position mode, characterized in that: It includes speed acquisition module, mode judgment module, user demand acquisition module and curve planning module; The speed acquisition module is used to obtain the actual movement speed of the actuator and record it as the initial speed V 初始 ; The mode judgment module is used to determine the initial speed V 初始 and the preset target speed V 目标 , the first jerk J1 and the first acceleration peak A1, determine the speed of the actuator from V 初始 Switch to V 目标 During the process, can the mode be switched to move at the first speed? If yes, the curve planning module, based on the initial speed V 初始 , the target speed V 目标 , the first jerk J1, the first acceleration peak A1 and a pre-built position curve planning model, planning the position curve of the actuator in the first speed switching mode; If not, the curve planning module further obtains the user's demand for actuator speed switching, and based on the user's demand for actuator speed switching, adjusts the first jerk J1 or the first acceleration peak A1, and plans the position curve of the actuator accordingly; The position curve is used to control the movement of the actuator in the periodic synchronous position mode, so that the speed of the actuator changes from V 初始 Switch to V 目标 .

9. A host controller, characterized in that: include: A processor, a memory and a communication bus; the communication bus is used to realize the connection and communication between the processor and the memory, and the processor is used to execute one or more programs stored in the memory to implement the speed control method in the periodic synchronous position mode as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the speed control method in the periodic synchronous position mode according to any one of claims 1 to 7 is executed.