WO2018068302A1 - Trajectory velocity planning method and trajectory velocity planning device - Google Patents
Trajectory velocity planning method and trajectory velocity planning device Download PDFInfo
- Publication number
- WO2018068302A1 WO2018068302A1 PCT/CN2016/102126 CN2016102126W WO2018068302A1 WO 2018068302 A1 WO2018068302 A1 WO 2018068302A1 CN 2016102126 W CN2016102126 W CN 2016102126W WO 2018068302 A1 WO2018068302 A1 WO 2018068302A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- acceleration
- point
- trajectory
- maximum value
- target trajectory
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
- G05B19/416—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control of velocity, acceleration or deceleration
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34432—Speed and current control integrated into nc control system
Definitions
- the implementation of the present application relates to the field of numerical control systems, and in particular, to a track speed planning method and a track speed planning device.
- the trajectory speed planning performed by the numerical control system usually includes T-type speed planning or S-type speed planning.
- speed planning for a specified target trajectory the user usually gives the desired feed speed F and maximum acceleration A, and then calculates Track acceleration on this trajectory And according to the obtained trajectory acceleration Calculate track speed Related motion parameters.
- the trajectory speed Refers to the actual speed at which the workpiece moves along the target trajectory, which is the combined speed of the velocity relative to a single axis; trajectory acceleration Yes and track speed Corresponding acceleration Track speed The initial speed.
- the embodiment of the invention is used to solve the prior art, because the synthetic acceleration will be
- the maximum value is set to feedrate A, resulting in acceleration of a single axis
- the value cannot reach the maximum acceleration A, which reduces the problem of processing efficiency.
- An aspect of the embodiments of the present invention provides a method for trajectory speed planning, including:
- the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
- the target trajectory MP is an arc MP
- the arc MP is terminated by a point M and a point P.
- the coordinates of the point M are M(x M , yM , z M ),
- the coordinates of point P are P(x P , y P , z P ), which determines the acceleration of a single axis Synthetic acceleration
- the relationship coefficient f i between them includes:
- Determining the maximum value of the relationship coefficient f i as B includes: determining The maximum value in the
- the maximum value a rm for the target trajectory MP speed planning includes:
- a rm is the value of the first target trajectory acceleration
- the value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
- the centripetal unit direction vector at point M is The tangential unit direction vector at point M is Point N is the point on the arc MP, determining the acceleration of a single axis at point N Synthetic acceleration
- the relationship coefficient f i between them includes:
- determining that the maximum value of the relationship coefficient f i is B includes:
- the maximum values of f x , f y and f z are calculated by Newton iteration method as f xm , f ym and f zm , respectively ;
- the maximum value a rm for the target trajectory MP speed planning includes:
- a second aspect of the embodiments of the present invention provides a trajectory speed planning apparatus, including:
- a relationship coefficient determination module for determining the acceleration of a single axis for a specified target trajectory MP Synthetic acceleration
- the relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;
- a maximum value determining module configured to determine that the maximum value of the relationship coefficient f i is B;
- the maximum value of a rm , get A is the given maximum acceleration value
- a speed planning module for synthesizing acceleration according to the The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
- the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
- the target trajectory MP is an arc MP
- the arc MP is a point M and a point P as end points.
- the coordinates of the point M are M(x M , y M , z M )
- the coordinates of the point P are P(x P , y P , z P )
- the relationship coefficient determining module includes:
- a first determining unit configured to determine that the relationship coefficient f i is:
- the maximum value determining module includes:
- a second determining unit for determining The maximum value in the
- the speed planning module includes:
- a third determining unit configured to determine the combined acceleration
- the maximum value a rm is the value of the first target trajectory acceleration
- the value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
- a first calculating unit configured to calculate a value of the first target trajectory acceleration Calculating the trajectory speed with the given feed rate F
- the centripetal unit direction vector at the point M is The tangential unit direction vector at point M is Point N is a point on the arc MP
- the relationship coefficient determining module includes:
- the fourth determining unit is used according to the following formula:
- a fifth determining unit configured to determine a tangential acceleration at a point N according to the system of equations (4) And centripetal acceleration The numerical relationship is
- a third calculating unit for substituting the formula (5) into the system of equations (3) to obtain the relationship coefficient f i is:
- the maximum value determining module includes:
- a fourth calculating unit for calculating the maximum values of f x , f y , and f z by the Newton iteration method according to the equation group (6), respectively, f xm , f ym , and f zm , and determining f xm , f ym , and f zm
- the speed planning module includes:
- a sixth determining unit for determining Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
- An eighth calculating unit configured to calculate a value of the second target trajectory acceleration Calculating the trajectory speed with the given feed rate F
- a third aspect of the embodiments of the present invention provides a trajectory speed planning apparatus, including:
- the processor is configured to perform the following steps by calling an operation instruction stored by the memory:
- the maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
- the acceleration of a single axis is adopted.
- the maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration
- the maximum value of a rm as is usually the case Therefore, a rm >A improves processing efficiency.
- FIG. 1 is a schematic diagram of an embodiment of a method for planning a trajectory speed according to the present invention
- FIG. 2 is a schematic diagram of another embodiment of a method for planning a trajectory speed according to the present invention.
- FIG. 3 is a schematic diagram of another embodiment of a method for planning a trajectory speed according to the present invention.
- FIG. 4 is a schematic diagram of an embodiment of a track speed planning device of the present invention.
- Figure 5 is a schematic view showing another embodiment of the track speed planning device of the present invention.
- Figure 6 is a schematic view showing another embodiment of the track speed planning device of the present invention.
- Figure 7 is a schematic illustration of another embodiment of the trajectory velocity planning apparatus of the present invention.
- Embodiments of the present invention provide a trajectory speed planning method and a trajectory speed planning device by using an acceleration of a single axis
- the maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration
- the maximum value of a rm is to improve processing efficiency.
- an embodiment of the method for trajectory speed planning in the embodiment of the present invention includes:
- determining f i means determining the relationship coefficient between the acceleration of the axis and the combined acceleration; if there are two or more axes in the path velocity planning process, for example, including X and Y , Z three axes, then determine f i is to determine the acceleration of the X axis Synthetic acceleration The relationship between the relationship coefficient f x and the acceleration of the Y axis Synthetic acceleration The relationship between the coefficient f y and the acceleration of the Z axis Synthetic acceleration The relationship between the factors f z , where
- the user gives the maximum acceleration A, ie the acceleration of a single axis The value cannot exceed the maximum acceleration A.
- Will f i B and Into the formula Calculated In other words, to ensure the acceleration of a single axis The value does not exceed the maximum acceleration A, the resultant acceleration Value cannot exceed Synthetic acceleration Maximum value
- the user For the speed planning of the target trajectory MP, the user gives the desired feed rate F. According to the resulting synthetic acceleration
- the maximum value a rm and the given feed rate F can be used for speed planning of the target trajectory MP, for example, calculating the trajectory acceleration on this trajectory And according to the obtained trajectory acceleration Calculate track speed Related motion parameters.
- Embodiment of the present application by accelerating a single axis
- the maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration Maximum value Since f i ⁇ 1, and usually, synthetic acceleration Acceleration with a single axis They are not on the same line, so f i ⁇ 1, so B ⁇ 1, and therefore a rm >A, which improves the processing efficiency compared with the prior art.
- the speed planning for the target trajectory MP may include linear velocity planning and arc velocity planning.
- the target trajectory MP may be a line segment MP or an arc MP, which are respectively described below:
- the target track MP is the line segment MP:
- the speed of the target trajectory MP is planned as a linear velocity plan
- the target trajectory MP is a line segment MP
- the line segment MP is represented by a point M and a point P.
- the trajectory speed planning method of the present invention is another Examples include:
- the line segment MP starts with one end point M and ends with the other end point P.
- the coordinates of the point M are M(x M , y M , z M )
- the coordinates of the point P are P(x P , y P , z P )
- the projection of the line segment MP on the X-axis is
- the projection of the line segment MP on the Y-axis is
- the acceleration of each single axis of the CNC system is the same as the X, Y, and Z axes, respectively, the acceleration of the single axis at this time.
- Determining the relationship coefficient f i means determining the acceleration of the X axis separately Synthetic acceleration The relationship between the coefficient fx and the acceleration of the Y-axis Synthetic acceleration The relationship between the coefficient fy, the acceleration of the Z axis Synthetic acceleration The relationship coefficient fz, where And, for linear velocity planning, synthetic acceleration The direction is the same as the direction of the line segment MP. Therefore, the following equations can be obtained:
- the user gives the maximum acceleration A, ie the acceleration of a single axis
- the value cannot exceed the maximum acceleration A.
- the resultant acceleration Value cannot exceed Synthetic acceleration Maximum value
- the user For the speed planning of the line segment MP, the user gives the desired feed rate F. According to the determined value of the first target trajectory acceleration And the given feed rate F can calculate the track speed on the target line segment MP Related motion parameters.
- the embodiment of the present application determines the maximum value of the relationship coefficient f i And the acceleration of a single axis
- the maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration Maximum value Normally, synthetic acceleration Acceleration with a single axis Not on the same line, so Therefore, a rm >A, the processing efficiency is improved as compared with the prior art.
- the target track MP is an arc MP:
- the speed of the target trajectory MP is planned to be an arc speed plan
- the target trajectory MP is an arc MP
- the arc MP is represented by a point M and a point P.
- the trajectory speed planning of the present invention includes:
- the centripetal unit direction vector at point M is The tangential unit direction vector at point M is Synthetic acceleration at point N when the workpiece is running to point N
- point N can be any point N on the arc MP
- ⁇ is the radians of the angle from point M to point N.
- the projection on the Y axis is:
- the tangential acceleration at point N can be determined according to the equation (4) And centripetal acceleration The numerical relationship is:
- step 303 and step 301 there is no timing limitation between step 303 and step 301 between step 303 and step 301, as long as step 303 is completed before step 304.
- the maximum values of f x , f y and f z are calculated by the Newton iteration method to be f xm , f ym and f zm , respectively . Then, the sizes of f xm , f ym , and f zm can be compared.
- the value B f xm .
- the user gives the maximum acceleration A, ie the acceleration of a single axis
- the value cannot exceed the maximum acceleration A.
- the synthetic acceleration The maximum value reaches a rm .
- Step 306 determines the resultant acceleration Maximum value due to the relationship So you can be sure Range of values, and then determine The maximum value.
- the movement of the workpiece on the arc MP may have the following two conditions: 1) The uniform circular motion is always performed, and when moving to the point P, the tangential velocity is the trajectory linear velocity. The value reaches the maximum; 2) the uniform acceleration circular motion is first accelerated to the user-specified feed rate, ie After that, the uniform speed circular motion is performed at the speed F.
- the trajectory acceleration Tangential acceleration Tangential acceleration In this embodiment, in the speed planning of the arc MP, the trajectory acceleration Tangential acceleration Tangential acceleration The maximum value is In order to improve the processing efficiency, it is necessary to maximize the second target trajectory acceleration. Value of the second target trajectory For T-speed planning or S-type speed planning, the trajectory acceleration in the uniform acceleration and deceleration phases of the arc MP Therefore, the second target trajectory acceleration can be made Tangential acceleration The maximum value, namely:
- the user For the speed planning of the arc MP, the user gives the desired feed rate F. According to the determined value of the second target trajectory acceleration And the given feed speed F can calculate the track speed on the target arc MP Related motion parameters.
- the trajectory velocity planning method in the embodiment of the present invention has been described above.
- the trajectory velocity planning device in the embodiment of the present invention will be described below.
- an embodiment of a trajectory speed planning apparatus includes:
- the relationship coefficient determining module 401 is configured to determine the relationship between the acceleration of the single axis and the combined acceleration Coefficient
- a maximum value determining module 402 configured to determine a maximum value of the relationship coefficient
- a calculation module 403 configured to calculate a maximum value of the combined acceleration
- the speed planning module 404 is configured to perform speed planning of the target trajectory MP.
- another embodiment of the trajectory speed planning apparatus in the embodiment of the present invention includes:
- a projection determining module 501 configured to determine a projection of the line segment MP on the coordinate axis
- a first determining unit 502 configured to determine a relationship coefficient according to a projection of the line segment MP on the coordinate axis;
- a second determining unit 503, configured to determine a maximum value of the relationship coefficient
- a ninth calculating unit 504, configured to calculate a maximum value of the combined acceleration
- a third determining unit 505 configured to determine a maximum value of the combined acceleration as a value of the first target trajectory acceleration
- the first calculating unit 506 is configured to calculate a track speed.
- another embodiment of the trajectory speed planning apparatus in the embodiment of the present invention includes:
- a fourth determining unit 601, configured to determine a combined acceleration at the point N;
- a second calculating unit 602 configured to determine an expression of a relationship coefficient at a point N;
- a fifth determining unit 603, configured to determine a relationship between the tangential acceleration at the point N and the centripetal acceleration
- a third calculating unit 604 configured to calculate a relationship coefficient at the point N;
- a fourth calculating unit 605, configured to determine a maximum value of the relationship coefficient
- a tenth calculating unit 606, configured to calculate a maximum value of the combined acceleration
- a fifth calculating unit 607 configured to determine a relationship between the combined acceleration and the centripetal acceleration
- a sixth calculating unit 608, configured to determine a maximum value of the centripetal acceleration
- a seventh calculating unit 609 configured to determine a maximum value of the tangential acceleration
- a sixth determining unit 610 configured to determine that a maximum value of the tangential acceleration is a value of the second target trajectory acceleration
- the eighth calculating unit 611 is configured to calculate a track speed.
- trajectory speed planning apparatus in the embodiment of the present invention is described above from the perspective of a modular functional entity.
- the trajectory speed planning apparatus in the embodiment of the present invention is described below from the perspective of hardware processing.
- FIG. 7 in the embodiment of the present invention, Another embodiment of the trajectory velocity planning apparatus includes:
- the processor 701 is configured to perform the following steps by calling an operation instruction stored in the memory 702:
- Synthetic acceleration The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
- the processor 701 is further configured to perform the following steps:
- the coordinates of the point M are M(x M , y M , z M ), and the coordinates of the point P are P(x P , y P , z P ), and the relationship coefficient f i is determined as:
- Determining the maximum value of the relationship coefficient f i as B includes: determining The maximum value in the
- the processor 701 is further configured to perform the following steps:
- a rm is the value of the first target trajectory acceleration
- the value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
- the processor 701 is further configured to perform the following steps:
- centripetal unit direction vector at point M is The tangential unit direction vector at point M is Point N is the point on the arc MP, according to the following formula:
- the processor 701 is further configured to perform the following steps:
- the maximum values of f x , f y and f z are calculated by Newton iteration method as f xm , f ym and f zm , respectively ;
- the processor 701 is further configured to perform the following steps:
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Numerical Control (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Disclosed are a trajectory velocity planning method and a trajectory velocity planning device. The method comprises: for a designated target trajectory MP, determining a relationship coefficient fi between single-axis acceleration (I) and composite acceleration (II) to obtain (III), wherein M is a start point of the target trajectory MP, and P is an end point of the target trajectory MP; determining the maximum value of the relationship coefficient fi as B; according to the maximum value B of the relationship coefficient fi and the maximum value of the single-axis acceleration (I), calculating the maximum value arm of the composite acceleration (II) to obtain (IV), wherein A is the given maximum acceleration value; and, according to the maximum value arm of the composite acceleration (II) and a given feed speed F, performing velocity planning for the target trajectory MP. By setting the maximum value of the single-axis acceleration (I) as the maximum acceleration A, and thus determining the maximum value arm of the composite acceleration (II), processing efficiency may be improved.
Description
本申请实施涉及数控系统领域,尤其涉及一种轨迹速度规划方法及轨迹速度规划装置。The implementation of the present application relates to the field of numerical control systems, and in particular, to a track speed planning method and a track speed planning device.
数控系统进行的轨迹速度规划,通常包括T型速度规划或S型速度规划,在对指定的一段目标轨迹进行速度规划时,用户通常会给定期望的进给速度F和最大加速度A,之后计算此段轨迹上的轨迹加速度并根据得到的轨迹加速度计算轨迹速度等相关运动参数。其中,轨迹速度是指工件沿目标轨迹运动的实际速度,是相对于单个轴的速度的合成速度;轨迹加速度是和轨迹速度相对应的加速度,满足为轨迹速度的初始速度。The trajectory speed planning performed by the numerical control system usually includes T-type speed planning or S-type speed planning. When speed planning for a specified target trajectory, the user usually gives the desired feed speed F and maximum acceleration A, and then calculates Track acceleration on this trajectory And according to the obtained trajectory acceleration Calculate track speed Related motion parameters. Where the trajectory speed Refers to the actual speed at which the workpiece moves along the target trajectory, which is the combined speed of the velocity relative to a single axis; trajectory acceleration Yes and track speed Corresponding acceleration Track speed The initial speed.
在进行速度规划的过程中,由于单个轴的最大加速度关系到电机本身的加速能力和加工过程中的震动情况,所以与工件的表面加工质量直接相关,因此需要限定各个轴的合成加速度的最大值,以将单个轴的加速度限定在小于最大加速度A的范围内,对于笛卡尔坐标系XYZ,包括和同时,为了提高加工效率,减少总加工时间,需要提高各个轴的合成加速度即尽量提高单个轴的加速度
In the process of speed planning, since the maximum acceleration of a single shaft is related to the acceleration capability of the motor itself and the vibration during machining, it is directly related to the surface machining quality of the workpiece, so it is necessary to limit the combined acceleration of each axis. Maximum value to increase the acceleration of a single axis Limited to a range less than the maximum acceleration A, for the Cartesian coordinate system XYZ, include with At the same time, in order to improve the processing efficiency and reduce the total processing time, it is necessary to increase the combined acceleration of each axis. That is to maximize the acceleration of a single axis
通常情况下,合成加速度与单个轴的加速度不在同一直线上,因此现有技术中,在对指定的一段轨迹进行速度规划时,为了保证不超过给定的最大加速度A并且尽量提高合成加速度会将的最大值arm设定为A,并根据确定的的最大值arm计算相关运动参数。Normally, synthetic acceleration Acceleration with a single axis Not on the same line, so In the prior art, when speed planning is performed on a specified trajectory, in order to ensure Does not exceed a given maximum acceleration A and maximizes the resultant acceleration Will The maximum value a rm is set to A, and is determined according to The maximum value a rm is calculated for the relevant motion parameters.
但是,在进行轨迹速度规划时,将的最大值设定为A,会导致的值无法达到最大加速度A,的最大值仍有提高的空间,因此加工效率并未得到充分提高。However, when planning the trajectory speed, The maximum value is set to A, which will result in The value cannot reach the maximum acceleration A, The maximum value still has room for improvement, so the processing efficiency has not been sufficiently improved.
发明内容Summary of the invention
本发明实施例用于解决现有技术中,因将合成加速度的最大值设定为进给速度A,导致单个轴的加速度的值无法达到最大加速度A,降低加工效率的问题。
The embodiment of the invention is used to solve the prior art, because the synthetic acceleration will be The maximum value is set to feedrate A, resulting in acceleration of a single axis The value cannot reach the maximum acceleration A, which reduces the problem of processing efficiency.
本发明实施例的一方面提供了一种轨迹速度规划方法,包括:An aspect of the embodiments of the present invention provides a method for trajectory speed planning, including:
对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;确定关系系数fi的最大值为B;根据关系系数fi的最大值B和单个轴的加速度的最大值A,计算合成加速度的最大值arm,得到A为给定的最大加速度值;根据合成加速度的最大值arm和给定的进给速度F进行目标轨迹MP的速度规划。Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, point P is the end point of the target trajectory MP; determining the maximum value of the relation coefficient f i is B; according to the maximum value B of the relationship coefficient f i and the acceleration of the single axis Maximum value A, calculate the composite acceleration The maximum value of a rm , get A is the given maximum acceleration value; according to the combined acceleration The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
结合第一方面,在第一方面的第一种可能的实现方式中,目标轨迹MP为线段MP,线段MP以点M和点P作为端点。In conjunction with the first aspect, in a first possible implementation of the first aspect, the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
结合第一方面,在第一方面的第二种可能的实现方式中,目标轨迹MP为圆弧MP,圆弧MP以点M和点P作为端点。In conjunction with the first aspect, in a second possible implementation of the first aspect, the target trajectory MP is an arc MP, and the arc MP is terminated by a point M and a point P.
结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),所述确定单个轴的加速度与合成加速度之间的关系系数fi包括:In conjunction with the first possible implementation of the first aspect, in a third possible implementation of the first aspect, for the Cartesian coordinate system XYZ, the coordinates of the point M are M(x M , yM , z M ), The coordinates of point P are P(x P , y P , z P ), which determines the acceleration of a single axis Synthetic acceleration The relationship coefficient f i between them includes:
确定所述关系系数fi为:Determining that the relationship coefficient f i is:
其中|MP|为线段MP的长度;Where |MP| is the length of the line segment MP;
确定关系系数fi的最大值为B包括:确定中的最大值,得到
Determining the maximum value of the relationship coefficient f i as B includes: determining The maximum value in the
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,根据合成加速度的最大值arm进行目标轨迹MP的速度规划包括:In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, The maximum value a rm for the target trajectory MP speed planning includes:
确定合成加速度的最大值arm为第一目标轨迹加速度的取值第一
目标轨迹加速度的取值为线段MP上匀加速和匀减速阶段轨迹加速度的取值,即
Determining synthetic acceleration The maximum value a rm is the value of the first target trajectory acceleration The value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
根据第一目标轨迹加速度的取值和给定的进给速度F计算轨迹速度
According to the value of the first target trajectory acceleration Calculate the path velocity with a given feedrate F
结合第一方面的第二种可能的实现方式,在第一方面的第五种可能的实现方式中,对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为点N为圆弧MP上的点,确定点N处单个轴的加速度与合成加速度之间的关系系数fi包括:In conjunction with the second possible implementation of the first aspect, in a fifth possible implementation of the first aspect, for the Cartesian coordinate system XYZ, the centripetal unit direction vector at point M is The tangential unit direction vector at point M is Point N is the point on the arc MP, determining the acceleration of a single axis at point N Synthetic acceleration The relationship coefficient f i between them includes:
根据如下公式:According to the following formula:
确定点N处的合成加速度其中和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值,得到:Determine the combined acceleration at point N among them with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N, which yields:
根据方程(2)获得如下方程组:Obtain the following equations according to equation (2):
若目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,存在如下方程组,其中r为圆弧MN的半径,s为从点M至点N转过角度的弧长,为点N处的轨迹速度:
If the velocity of the target trajectory MP is planned to be T-speed planning, and the point M to the point N is in the uniform acceleration motion phase, there is a system of equations where r is the radius of the arc MN and s is rotated from the point M to the point N The arc length of the angle, For the track speed at point N:
根据方程组(4)确定点N处的切向加速度和向心加速度的数值关系为
Determine the tangential acceleration at point N according to equation (4) And centripetal acceleration The numerical relationship is
将公式(5)代入方程组(3)得到关系系数fi为:Substituting equation (5) into equation (3) yields the relationship coefficient f i as:
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,确定关系系数fi的最大值为B包括:With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, determining that the maximum value of the relationship coefficient f i is B includes:
根据方程组(6),用牛顿迭代法计算fx、fy和fz的最大值分别为fxm、fym和fzm;According to the equation (6), the maximum values of f x , f y and f z are calculated by Newton iteration method as f xm , f ym and f zm , respectively ;
确定fxm、fym和fzm中的最大值,得到B=max(fxm,fym,fzm)。The maximum values in f xm , f ym , and f zm are determined, and B = max (f xm , f ym , f zm ) is obtained.
结合第一方面的第六种可能的实现方式,在第一方面的第七种可能的实现方式中,根据合成加速度的最大值arm进行目标轨迹MP的速度规划包括:In conjunction with the sixth possible implementation of the first aspect, in a seventh possible implementation of the first aspect, The maximum value a rm for the target trajectory MP speed planning includes:
将公式(5)代入如下公式:Substituting equation (5) into the following formula:
当点N与点P重合时,θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值得到其中
When point N coincides with point P, θ=θ P , where θ P is the radians of the opening angle corresponding to the arc MP, at this time Reaches the maximum value get among them
确定的最大值为第二目标轨迹加速度的取值即第二目标轨迹加速度的取值为圆弧MP上匀加速和匀减速阶段轨迹加速度的取值;determine Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
根据第二目标轨迹加速度的取值和给定的进给速度F计算轨迹速度
According to the value of the second target trajectory acceleration Calculate the path velocity with a given feedrate F
本发明实施例的第二方面提供了一种轨迹速度规划装置,包括:A second aspect of the embodiments of the present invention provides a trajectory speed planning apparatus, including:
关系系数确定模块,对于指定的目标轨迹MP,用于确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;A relationship coefficient determination module for determining the acceleration of a single axis for a specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;
最大值确定模块,用于确定所述关系系数fi的最大值为B;a maximum value determining module, configured to determine that the maximum value of the relationship coefficient f i is B;
计算模块,用于根据所述关系系数fi的最大值B和所述单个轴的加速度的最大值A,计算所述合成加速度的最大值arm,得到A为给定的最大加速度值;a calculation module for using a maximum value B of the relationship coefficient f i and an acceleration of the single axis Maximum value A, calculate the combined acceleration The maximum value of a rm , get A is the given maximum acceleration value;
速度规划模块,用于根据所述合成加速度的最大值arm和给定的进给速度F进行目标轨迹MP的速度规划。a speed planning module for synthesizing acceleration according to the The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
结合第二方面,在第二方面的第一种可能的实现方式中,所述目标轨迹MP为线段MP,所述线段MP以点M和点P作为端点。In conjunction with the second aspect, in a first possible implementation of the second aspect, the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
结合第二方面,在第二方面的第二种可能的实现方式中,所述目标轨迹MP为圆弧MP,所述圆弧MP以点M和点P作为端点。In conjunction with the second aspect, in a second possible implementation manner of the second aspect, the target trajectory MP is an arc MP, and the arc MP is a point M and a point P as end points.
结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),所述关系系数确定模块包括:In conjunction with the first possible implementation of the second aspect, in a third possible implementation of the second aspect, for the Cartesian coordinate system XYZ, the coordinates of the point M are M(x M , y M , z M ) The coordinates of the point P are P(x P , y P , z P ), and the relationship coefficient determining module includes:
第一确定单元,用于确定所述关系系数fi为:
a first determining unit, configured to determine that the relationship coefficient f i is:
其中|MP|为线段MP的长度;Where |MP| is the length of the line segment MP;
所述最大值确定模块包括:The maximum value determining module includes:
结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述速度规划模块包括:In conjunction with the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the speed planning module includes:
第三确定单元,用于确定所述合成加速度的最大值arm为第一目标轨迹加速度的取值所述第一目标轨迹加速度的取值为线段MP上匀加速和匀减速阶段轨迹加速度的取值,即a third determining unit, configured to determine the combined acceleration The maximum value a rm is the value of the first target trajectory acceleration The value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
第一计算单元,用于根据所述第一目标轨迹加速度的取值和所述给定的进给速度F计算轨迹速度
a first calculating unit, configured to calculate a value of the first target trajectory acceleration Calculating the trajectory speed with the given feed rate F
结合第二方面的第二种可能的实现方式,在第二方面的第五种可能的实现方式中,对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为点N为圆弧MP上的点,关系系数确定模块包括:In conjunction with the second possible implementation of the second aspect, in a fifth possible implementation of the second aspect, for the Cartesian coordinate system XYZ, the centripetal unit direction vector at the point M is The tangential unit direction vector at point M is Point N is a point on the arc MP, and the relationship coefficient determining module includes:
第四确定单元,用于根据如下公式:The fourth determining unit is used according to the following formula:
确定点N处的合成加速度其中和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值,得到:
Determine the combined acceleration at point N among them with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N, which yields:
第二计算单元,用于根据方程(2)获得如下方程组:a second calculation unit for obtaining the following system of equations according to equation (2):
若所述目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,存在如下方程组,其中r为圆弧MN的半径,s为从点M至点N转过角度的弧长,为点N处的轨迹速度:If the speed of the target trajectory MP is planned to be a T-type velocity plan, and the point M to the point N are in the uniform acceleration motion phase, there is a following equation group, where r is the radius of the arc MN, and s is from the point M to the point N The arc length of the angle is turned, For the track speed at point N:
第五确定单元,用于根据方程组(4)确定点N处的切向加速度和向心加速度的数值关系为
a fifth determining unit, configured to determine a tangential acceleration at a point N according to the system of equations (4) And centripetal acceleration The numerical relationship is
第三计算单元,用于将公式(5)代入方程组(3)得到所述关系系数fi为:a third calculating unit for substituting the formula (5) into the system of equations (3) to obtain the relationship coefficient f i is:
结合第二方面的第五种可能的实现方式,在第二方面的第六种可能的实现方式中,所述最大值确定模块包括:With reference to the fifth possible implementation of the second aspect, in a sixth possible implementation manner of the second aspect, the maximum value determining module includes:
第四计算单元,用于根据方程组(6),用牛顿迭代法计算fx、fy和fz的
最大值分别为fxm、fym和fzm,确定fxm、fym和fzm中的最大值,得到a fourth calculating unit for calculating the maximum values of f x , f y , and f z by the Newton iteration method according to the equation group (6), respectively, f xm , f ym , and f zm , and determining f xm , f ym , and f zm The maximum value in the
B=max(fxm,fym,fzm)。B = max (f xm , f ym , f zm ).
结合第二方面的第六种可能的实现方式,在第二方面的第七种可能的实现方式中,所述速度规划模块包括:In conjunction with the sixth possible implementation of the second aspect, in a seventh possible implementation of the second aspect, the speed planning module includes:
第五计算单元,用于将公式(5)代入如下公式:A fifth calculation unit for substituting the formula (5) into the following formula:
第六计算单元,用于当点N与点P重合时,θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值得到a sixth calculating unit, configured to: when the point N coincides with the point P, θ=θ P , where θ P is a radians of the opening angle corresponding to the arc MP, Reaches the maximum value get
第七计算单元,用于将arm和代入公式(7)中,得到的最大值
a seventh calculation unit for a rm and Substituting into formula (7), get Maximum value
第六确定单元,用于确定的最大值为第二目标轨迹加速度的取值即所述第二目标轨迹加速度的取值为圆弧MP上匀加速和匀减速阶段轨迹加速度的取值;a sixth determining unit for determining Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
第八计算单元,用于根据所述第二目标轨迹加速度的取值和所述给定的进给速度F计算轨迹速度
An eighth calculating unit, configured to calculate a value of the second target trajectory acceleration Calculating the trajectory speed with the given feed rate F
本发明实施例的第三方面提供了一种轨迹速度规划装置,包括:A third aspect of the embodiments of the present invention provides a trajectory speed planning apparatus, including:
存储器和处理器;Memory and processor;
通过调用所述存储器存储的操作指令,所述处理器,用于执行如下步骤:The processor is configured to perform the following steps by calling an operation instruction stored by the memory:
对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;
确定所述关系系数fi的最大值为B;Determining that the maximum value of the relationship coefficient f i is B;
根据所述关系系数fi的最大值B和所述单个轴的加速度的最大值A,
计算所述合成加速度的最大值arm,得到A为给定的最大加速度值;According to the maximum value B of the relationship coefficient f i and the acceleration of the single axis Maximum value A, calculate the combined acceleration The maximum value of a rm , get A is the given maximum acceleration value;
根据所述合成加速度的最大值arm和给定的进给速度F进行目标轨迹MP的速度规划。According to the combined acceleration The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
本申请实施例提供的方案中,通过将单个轴的加速度的最大值设定为最大加速度A,进而确定合成加速度的最大值arm,由于通常情况下,因此arm>A,提高了加工效率。In the solution provided by the embodiment of the present application, the acceleration of a single axis is adopted. The maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration The maximum value of a rm , as is usually the case Therefore, a rm >A improves processing efficiency.
图1是本发明轨迹速度规划方法一个实施例示意图;1 is a schematic diagram of an embodiment of a method for planning a trajectory speed according to the present invention;
图2是本发明轨迹速度规划方法另一个实施例示意图;2 is a schematic diagram of another embodiment of a method for planning a trajectory speed according to the present invention;
图3是本发明轨迹速度规划方法另一个实施例示意图;3 is a schematic diagram of another embodiment of a method for planning a trajectory speed according to the present invention;
图4是本发明轨迹速度规划装置一个实施例示意图;4 is a schematic diagram of an embodiment of a track speed planning device of the present invention;
图5是本发明轨迹速度规划装置另一个实施例示意图;Figure 5 is a schematic view showing another embodiment of the track speed planning device of the present invention;
图6是本发明轨迹速度规划装置另一个实施例示意图;Figure 6 is a schematic view showing another embodiment of the track speed planning device of the present invention;
图7是本发明轨迹速度规划装置另一个实施例示意图。Figure 7 is a schematic illustration of another embodiment of the trajectory velocity planning apparatus of the present invention.
本发明实施例提供了一种轨迹速度规划方法及轨迹速度规划装置,通过将单个轴的加速度的最大值设定为最大加速度A,进而确定合成加速度的最大值arm,提高加工效率。Embodiments of the present invention provide a trajectory speed planning method and a trajectory speed planning device by using an acceleration of a single axis The maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration The maximum value of a rm is to improve processing efficiency.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、
产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present invention and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units, but may include those that are not clearly listed or for these processes, methods,
Other steps or units inherent to the product or equipment.
为便于理解,下面对本发明实施例中的具体流程进行描述,请参阅图1,本发明实施例中轨迹速度规划方法一个实施例包括:For ease of understanding, the specific process in the embodiment of the present invention is described below. Referring to FIG. 1, an embodiment of the method for trajectory speed planning in the embodiment of the present invention includes:
101、确定单个轴的加速度与合成加速度之间的关系系数;101. Determine a relationship coefficient between an acceleration of a single axis and a combined acceleration;
对于指定的目标轨迹MP,其中,点M为目标轨迹MP的起点,点P为目标轨迹MP的终点,确定单个轴的加速度与合成加速度之间的关系系数fi,得到其中fi的取值与该轴相对应,不同轴的加速度与合成加速度之间的关系系数取值可以不同。若轨迹速度规划过程中只有一个轴,那么确定fi是指确定该轴的加速度与合成加速度之间的关系系数;若轨迹速度规划过程中有两个或两个以上轴,比如包括X、Y、Z三个轴,那么确定fi是指分别确定X轴的加速度与合成加速度之间的关系系数fx、Y轴的加速度与合成加速度之间的关系系数fy、Z轴的加速度与合成加速度之间的关系系数fz,其中
For the specified target trajectory MP, where point M is the starting point of the target trajectory MP, point P is the end point of the target trajectory MP, and the acceleration of the single axis is determined Synthetic acceleration The relationship coefficient f i between Where f i corresponds to the axis, and the relationship between the acceleration of the different axes and the combined acceleration may be different. If there is only one axis in the path velocity planning process, then determining f i means determining the relationship coefficient between the acceleration of the axis and the combined acceleration; if there are two or more axes in the path velocity planning process, for example, including X and Y , Z three axes, then determine f i is to determine the acceleration of the X axis Synthetic acceleration The relationship between the relationship coefficient f x and the acceleration of the Y axis Synthetic acceleration The relationship between the coefficient f y and the acceleration of the Z axis Synthetic acceleration The relationship between the factors f z , where
102、确定关系系数的最大值;102. Determine a maximum value of the relationship coefficient;
对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi之后,可以计算关系系数fi的最大值,得到关系系数fi的最大值为B。Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration After the relationship between the coefficients f i, the relationship between the maximum value may be calculated coefficients f i, the maximum value is obtained for the relationship between the coefficient f i B.
103、计算合成加速度的最大值;103. Calculate a maximum value of the combined acceleration;
对于目标轨迹MP的速度规划,用户给定最大加速度A,即单个轴的加速度的值不能超过最大加速度A。将fi=B和代入公式计算得到也就是说,为了保证单个轴的加速度的值不超过最大加速度A,合成加速度的值不能超过即合成加速度的最大值
For the speed planning of the target trajectory MP, the user gives the maximum acceleration A, ie the acceleration of a single axis The value cannot exceed the maximum acceleration A. Will f i =B and Into the formula Calculated In other words, to ensure the acceleration of a single axis The value does not exceed the maximum acceleration A, the resultant acceleration Value cannot exceed Synthetic acceleration Maximum value
104、进行目标轨迹MP的速度规划。104. Perform speed planning of the target trajectory MP.
对于目标轨迹MP的速度规划,用户给定期望的进给速度F。根据得到的合成加速度的最大值arm和给定的进给速度F可以进行目标轨迹MP的速度规划,比如,计算此段轨迹上的轨迹加速度并根据得到的轨迹加速度计算轨迹速度等相关运动参数。
For the speed planning of the target trajectory MP, the user gives the desired feed rate F. According to the resulting synthetic acceleration The maximum value a rm and the given feed rate F can be used for speed planning of the target trajectory MP, for example, calculating the trajectory acceleration on this trajectory And according to the obtained trajectory acceleration Calculate track speed Related motion parameters.
本申请实施例通过将单个轴的加速度的最大值设定为最大加速度A,进而确定合成加速度的最大值由于fi≤1,并且通常情况下,合成加速度与单个轴的加速度不在同一直线上,因此fi<1,故B<1,因此arm>A,和现有技术相比,提高了加工效率。Embodiment of the present application by accelerating a single axis The maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration Maximum value Since f i ≤ 1, and usually, synthetic acceleration Acceleration with a single axis They are not on the same line, so f i <1, so B<1, and therefore a rm >A, which improves the processing efficiency compared with the prior art.
上述实施例中,对目标轨迹MP的速度规划可以包括直线速度规划和圆弧速度规划,相应的,目标轨迹MP可以为线段MP,也可以为圆弧MP,下面分别进行说明:In the above embodiment, the speed planning for the target trajectory MP may include linear velocity planning and arc velocity planning. Correspondingly, the target trajectory MP may be a line segment MP or an arc MP, which are respectively described below:
一、目标轨迹MP为线段MP:First, the target track MP is the line segment MP:
在本实施例中,对目标轨迹MP的速度规划为直线速度规划,目标轨迹MP为线段MP,线段MP以点M和点P作为端点,具体请参阅图2,本发明轨迹速度规划方法另一实施例包括:In this embodiment, the speed of the target trajectory MP is planned as a linear velocity plan, the target trajectory MP is a line segment MP, and the line segment MP is represented by a point M and a point P. For details, refer to FIG. 2, the trajectory speed planning method of the present invention is another Examples include:
201、确定线段MP在坐标轴的投影;201. Determine a projection of the line segment MP on the coordinate axis;
线段MP以一个端点M为起点,以另一个端点P为终点。对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),那么线段MP在X轴的投影为|xP-xM|,线段MP在Y轴的投影为|yP-yM|,线段MP在X轴的投影为|zP-zM|。The line segment MP starts with one end point M and ends with the other end point P. For the Cartesian coordinate system XYZ, the coordinates of the point M are M(x M , y M , z M ), and the coordinates of the point P are P(x P , y P , z P ), then the projection of the line segment MP on the X-axis is |x P -x M |, the projection of the line segment MP on the Y-axis is |y P -y M |, and the projection of the line segment MP on the X-axis is |z P -z M |.
202、根据线段MP在坐标轴的投影确定关系系数;202. Determine a relationship coefficient according to a projection of the line segment MP on the coordinate axis;
若数控系统各单个轴的加速度的方向分别与X、Y、Z轴相同,此时单个轴的加速度为和确定关系系数fi是指分别确定X轴的加速度与合成加速度之间的关系系数fx、Y轴的加速度与合成加速度之间的关系系数fy、Z轴的加速度与合成加速度之间的关系系数fz,其中并且,对于直线速度规划,合成加速度的方向与线段MP的方向相同。因此可以得到如下方程组:
If the acceleration of each single axis of the CNC system is the same as the X, Y, and Z axes, respectively, the acceleration of the single axis at this time. for with Determining the relationship coefficient f i means determining the acceleration of the X axis separately Synthetic acceleration The relationship between the coefficient fx and the acceleration of the Y-axis Synthetic acceleration The relationship between the coefficient fy, the acceleration of the Z axis Synthetic acceleration The relationship coefficient fz, where And, for linear velocity planning, synthetic acceleration The direction is the same as the direction of the line segment MP. Therefore, the following equations can be obtained:
其中|MP|为线段MP的长度。Where |MP| is the length of the line segment MP.
由于单个轴的加速度与合成加速度之间存在关系系数fi,使得因此关系系数fi为:Due to the acceleration of a single axis Synthetic acceleration There is a relationship coefficient f i between them Therefore the relationship coefficient f i is:
203、确定关系系数的最大值;203. Determine a maximum value of the relationship coefficient.
在确定关系系数fx、fy和fz的值之后,比较fx、fy和fz的值的大小,即比较的大小,假设的值最大,那么关系系数fi的最大值
After determining the values of the relationship coefficients f x , f y , and f z , compare the magnitudes of the values of f x , f y , and f z , that is, compare Size, hypothesis The value is the largest, then the maximum value of the relationship coefficient f i
204、计算合成加速度的最大值;204. Calculate a maximum value of the combined acceleration;
对于线段MP的速度规划,用户给定最大加速度A,即单个轴的加速度的值不能超过最大加速度A。将和代入公式计算得到也就是说,为了保证单个轴的加速度的值不超过最大加速度A,合成加速度的值不能超过即合成
加速度的最大值
For the speed planning of the line segment MP, the user gives the maximum acceleration A, ie the acceleration of a single axis The value cannot exceed the maximum acceleration A. will with Into the formula Calculated In other words, to ensure the acceleration of a single axis The value does not exceed the maximum acceleration A, the resultant acceleration Value cannot exceed Synthetic acceleration Maximum value
205、确定合成加速度的最大值为第一目标轨迹加速度的取值;205. Determine a maximum value of the combined acceleration as a value of the first target trajectory acceleration;
由于直线速度规划中,合成加速度的方向与线段MP的方向相同,因此合成加速度即为线段MP的轨迹加速度为了提高加工效率,需要尽量提高第一目标轨迹加速度的值,第一目标轨迹加速度为T型速度规划或S型速度规划中线段MP上匀加速和匀减速阶段轨迹加速度因此可以令第一目标轨迹加速度的取值为合成加速度的最大值arm,即:Synthetic acceleration due to linear velocity planning The direction is the same as the direction of the line segment MP, so the resultant acceleration That is the trajectory acceleration of the line segment MP In order to improve the processing efficiency, it is necessary to maximize the first target trajectory acceleration. Value of the first target trajectory For T-speed planning or S-type speed planning, the trajectory acceleration in the uniform acceleration and deceleration phases of the line segment MP Therefore, the first target trajectory acceleration can be made Synthetic acceleration The maximum value of a rm , ie:
206、计算轨迹速度。206. Calculate the trajectory speed.
对于线段MP的速度规划,用户给定期望的进给速度F。根据确定的第一目标轨迹加速度的取值和给定的进给速度F可以计算目标线段MP上轨迹速度等相关运动参数。For the speed planning of the line segment MP, the user gives the desired feed rate F. According to the determined value of the first target trajectory acceleration And the given feed rate F can calculate the track speed on the target line segment MP Related motion parameters.
本申请实施例通过确定关系系数fi的最大值并将单个轴的加速度的最大值设定为最大加速度A,进而确定合成加速度的最大值通常情况下,合成加速度与单个轴的加速度不在同一直线上,因此因此arm>A,和现有技术相比,提高了加工效率。The embodiment of the present application determines the maximum value of the relationship coefficient f i And the acceleration of a single axis The maximum value is set to the maximum acceleration A, which in turn determines the combined acceleration Maximum value Normally, synthetic acceleration Acceleration with a single axis Not on the same line, so Therefore, a rm >A, the processing efficiency is improved as compared with the prior art.
二、目标轨迹MP为圆弧MP:Second, the target track MP is an arc MP:
在本实施例中,对目标轨迹MP的速度规划为圆弧速度规划,目标轨迹MP为圆弧MP,圆弧MP以点M和点P作为端点,具体请参阅图3,本发明轨迹速度规划方法另一实施例包括:In this embodiment, the speed of the target trajectory MP is planned to be an arc speed plan, the target trajectory MP is an arc MP, and the arc MP is represented by a point M and a point P. For details, refer to FIG. 3, the trajectory speed planning of the present invention. Another embodiment of the method includes:
301、确定点N处的合成加速度;301. Determine a synthetic acceleration at a point N;
对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为当工件运行至点N处时,点N处的合成加速度其中点N可以为圆弧MP上的任意一点N,和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值。将上述的表达式进一步整
理为关于和的表达式,得到:For the Cartesian coordinate system XYZ, the centripetal unit direction vector at point M is The tangential unit direction vector at point M is Synthetic acceleration at point N when the workpiece is running to point N Where point N can be any point N on the arc MP, with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N. Will be above The expression is further organized into with Expression, get:
302、确定点N处关系系数的表达式;302. Determine an expression of a relationship coefficient at a point N;
当工件运行至点N处时,根据公式(2),可以得到在各坐标轴上的投影,其中在X轴上的投影为:When the workpiece runs to point N, according to formula (2), you can get Projection on each coordinate axis, where The projection on the X axis is:
若数控系统各单个轴的加速度的方向分别与X、Y、Z轴相同,此时单个轴的加速度为和单个轴的加速度与合成加速度之间存在关系系数fi,使得确定关系系数fi是指分别确定X轴的加速度与合成加速度之间的关系系数fx、Y轴的加速度与合成加速度之间的关系系数fy、Z轴的加速度与合成加速度之间的关系系数fz,其中
If the acceleration of each single axis of the CNC system is the same as the X, Y, and Z axes, respectively, the acceleration of the single axis at this time. for with Acceleration of a single axis Synthetic acceleration There is a relationship coefficient f i between them Determining the relationship coefficient f i means determining the acceleration of the X axis separately Synthetic acceleration The relationship between the relationship coefficient f x and the acceleration of the Y axis Synthetic acceleration The relationship between the coefficient f y and the acceleration of the Z axis Synthetic acceleration The relationship between the factors f z , where
因此点N处关系系数fi的表达式为:Therefore, the expression of the relationship coefficient f i at point N is:
303、确定点N处的切向加速度和向心加速度的关系式;303. Determine a relationship between a tangential acceleration at a point N and a centripetal acceleration;
若目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,则存在如下方程组,其中r为圆弧MN的半径,s为从点M至点N转过角度的弧长,为点N处的轨迹速度:
If the speed of the target trajectory MP is planned to be T-type velocity planning, and the point M to point N is in the uniform acceleration motion phase, there is a system of equations where r is the radius of the arc MN and s is from the point M to the point N The arc length over the angle, For the track speed at point N:
根据方程组(4)可以确定点N处的切向加速度和向心加速度的数值关系为:The tangential acceleration at point N can be determined according to the equation (4) And centripetal acceleration The numerical relationship is:
304、计算点N处的关系系数;304. Calculate a relationship coefficient at a point N;
将公式(5)代入方程组(3)得到点N处的关系系数fi为:Substituting equation (5) into equation (3) yields the relationship coefficient f i at point N as:
需要说明的是,步骤303与步骤301之间,步骤303与步骤302之间均没有时序限制,只要步骤303在步骤304之前完成即可。It should be noted that there is no timing limitation between step 303 and step 301 between step 303 and step 301, as long as step 303 is completed before step 304.
305、确定关系系数的最大值;305. Determine a maximum value of the relationship coefficient.
根据方程组(6),用牛顿迭代法计算fx、fy和fz的最大值分别为fxm、fym和fzm。之后可以比较fxm、fym和fzm的大小,本实施例以三者中的最大值max(fxm,fym,fzm)=fxm为例进行说明,那么关系系数fi的最大值B=fxm。According to the equation (6), the maximum values of f x , f y and f z are calculated by the Newton iteration method to be f xm , f ym and f zm , respectively . Then, the sizes of f xm , f ym , and f zm can be compared. In this embodiment, the maximum value max(f xm , f ym , f zm )=f xm among the three is taken as an example, and then the maximum of the relationship coefficient f i . The value B = f xm .
306、计算合成加速度的最大值;306. Calculate a maximum value of the combined acceleration;
对于圆弧MP的速度规划,用户给定最大加速度A,即单个轴的加速度的值不能超过最大加速度A。将fi=B=fxm和代入公式计算得到也就是说,为了保证单个轴的加速度的值不超过最大加速度A,合成加速度的值不能超过即合成加速度的最大值
为了提高加工效率,在速度规划中,令合成加速度的最大值达到arm。For the speed planning of the arc MP, the user gives the maximum acceleration A, ie the acceleration of a single axis The value cannot exceed the maximum acceleration A. Will f i = B = f xm and Into the formula Calculated In other words, to ensure the acceleration of a single axis The value does not exceed the maximum acceleration A, the resultant acceleration Value cannot exceed Synthetic acceleration Maximum value In order to improve the processing efficiency, in the speed planning, the synthetic acceleration The maximum value reaches a rm .
在本实施例对圆弧MP的速度规划中,轨迹加速度为切向加速度为了确定圆弧MP上的轨迹加速度需要确定切向加速度的最大值。步骤306确定了合成加速度的最大值,由于存在关系式因此可以确定的取值范围,进而确定的最大值。In the speed planning of the arc MP in this embodiment, the trajectory acceleration Tangential acceleration In order to determine the trajectory acceleration on the arc MP Need to determine tangential acceleration The maximum value. Step 306 determines the resultant acceleration Maximum value due to the relationship So you can be sure Range of values, and then determine The maximum value.
307、确定合成加速度与向心加速度的关系式;307. Determine a relationship between the combined acceleration and the centripetal acceleration;
将公式(5)代入如下公式:Substituting equation (5) into the following formula:
308、确定向心加速度的最大值;308. Determine a maximum value of the centripetal acceleration;
工件在圆弧MP上的运动可能有以下两种情况:1)一直做匀加速圆周运动,当运动到点P时,切向速度即轨迹线速度的值达到最大;2)先做匀加速圆周运动,加速至用户给定的进给速度,即之后,以速度F做匀速圆周运动。The movement of the workpiece on the arc MP may have the following two conditions: 1) The uniform circular motion is always performed, and when moving to the point P, the tangential velocity is the trajectory linear velocity. The value reaches the maximum; 2) the uniform acceleration circular motion is first accelerated to the user-specified feed rate, ie After that, the uniform speed circular motion is performed at the speed F.
由于并且因此在从点M运动到点P的过程中,对于第一种情况,当运动到点P时,达到最大,达到最大值arm;对于第二种情况,当时,达到最大,达到最大值arm。由于在匀加速圆周运动过程中,满足因此当达到最大值arm时,以上两种情况相比,第一种情况下,点N与点P重合,θ可以取到最大值θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值
due to and Therefore, in the process of moving from point M to point P, for the first case, when moving to point P, to reach maximum, Achieve the maximum value a rm ; for the second case, when Time, to reach maximum, The maximum value a rm is reached. Satisfied during the uniform acceleration of the circular motion So when When the maximum value a rm is reached, compared with the above two cases, in the first case, the point N coincides with the point P, and θ can take the maximum value θ=θ P , where θ P is the opening angle corresponding to the arc MP Radian value, at this time Reaches the maximum value
309、确定切向加速度的最大值;309. Determine a maximum value of the tangential acceleration;
将和代入公式(7)中,得到由于为合成加速度的最大值,为向心加速度的最大值,因此为切向加速度的最大值。will with Substituting into formula (7), get due to Synthetic acceleration Maximum value, Centripetal acceleration Maximum value, therefore Tangential acceleration The maximum value.
310、确定切向加速度的最大值为第二目标轨迹加速度的取值;310. Determine a maximum value of the tangential acceleration as a value of the second target trajectory acceleration;
本实施例对圆弧MP的速度规划中,轨迹加速度为切向加速度切向加速度的最大值为为了提高加工效率,需要尽量提高第二目标轨迹加速度的值,第二目标轨迹加速度为T型速度规划或S型速度规划中圆弧MP上匀加速和匀减速阶段轨迹加速度因此可以令第二目标轨迹加速度的取值为切向加速度的最大值,即:In this embodiment, in the speed planning of the arc MP, the trajectory acceleration Tangential acceleration Tangential acceleration The maximum value is In order to improve the processing efficiency, it is necessary to maximize the second target trajectory acceleration. Value of the second target trajectory For T-speed planning or S-type speed planning, the trajectory acceleration in the uniform acceleration and deceleration phases of the arc MP Therefore, the second target trajectory acceleration can be made Tangential acceleration The maximum value, namely:
311、计算轨迹速度。311. Calculate the trajectory speed.
对于圆弧MP的速度规划,用户给定期望的进给速度F。根据确定的第二目标轨迹加速度的取值和给定的进给速度F可以计算目标圆弧MP上轨迹速度等相关运动参数。For the speed planning of the arc MP, the user gives the desired feed rate F. According to the determined value of the second target trajectory acceleration And the given feed speed F can calculate the track speed on the target arc MP Related motion parameters.
上面对本发明实施例中的轨迹速度规划方法进行了描述,下面对本发明实施例中的轨迹速度规划装置进行描述。The trajectory velocity planning method in the embodiment of the present invention has been described above. The trajectory velocity planning device in the embodiment of the present invention will be described below.
请参阅图4,本发明实施例中轨迹速度规划装置的一个实施例包括:Referring to FIG. 4, an embodiment of a trajectory speed planning apparatus according to an embodiment of the present invention includes:
关系系数确定模块401,用于确定单个轴的加速度与合成加速度之间的关
系系数;The relationship coefficient determining module 401 is configured to determine the relationship between the acceleration of the single axis and the combined acceleration
Coefficient
最大值确定模块402,用于确定关系系数的最大值;a maximum value determining module 402, configured to determine a maximum value of the relationship coefficient;
计算模块403,用于计算合成加速度的最大值;a calculation module 403, configured to calculate a maximum value of the combined acceleration;
速度规划模块404,用于进行目标轨迹MP的速度规划。The speed planning module 404 is configured to perform speed planning of the target trajectory MP.
本实施例中的轨迹速度规划装置各模块间的关系参照图1对应的实施例,此处不再赘述。The relationship between the modules of the trajectory speed planning apparatus in this embodiment refers to the corresponding embodiment of FIG. 1 and will not be described herein.
请参阅图5,本发明实施例中轨迹速度规划装置的另一个实施例包括:Referring to FIG. 5, another embodiment of the trajectory speed planning apparatus in the embodiment of the present invention includes:
投影确定模块501,用于确定线段MP在坐标轴的投影;a projection determining module 501, configured to determine a projection of the line segment MP on the coordinate axis;
第一确定单元502,用于根据线段MP在坐标轴的投影确定关系系数;a first determining unit 502, configured to determine a relationship coefficient according to a projection of the line segment MP on the coordinate axis;
第二确定单元503,用于确定关系系数的最大值;a second determining unit 503, configured to determine a maximum value of the relationship coefficient;
第九计算单元504,用于计算合成加速度的最大值;a ninth calculating unit 504, configured to calculate a maximum value of the combined acceleration;
第三确定单元505,用于确定合成加速度的最大值为第一目标轨迹加速度的取值;a third determining unit 505, configured to determine a maximum value of the combined acceleration as a value of the first target trajectory acceleration;
第一计算单元506,用于计算轨迹速度。The first calculating unit 506 is configured to calculate a track speed.
本实施例中的轨迹速度规划装置各模块间的关系参照图2对应的实施例,此处不再赘述。The relationship between the modules of the trajectory speed planning device in this embodiment refers to the corresponding embodiment in FIG. 2, and details are not described herein again.
请参阅图6,本发明实施例中轨迹速度规划装置的另一个实施例包括:Referring to FIG. 6, another embodiment of the trajectory speed planning apparatus in the embodiment of the present invention includes:
第四确定单元601,用于确定点N处的合成加速度;a fourth determining unit 601, configured to determine a combined acceleration at the point N;
第二计算单元602,用于确定点N处关系系数的表达式;a second calculating unit 602, configured to determine an expression of a relationship coefficient at a point N;
第五确定单元603,用于确定点N处的切向加速度和向心加速度的关系式;a fifth determining unit 603, configured to determine a relationship between the tangential acceleration at the point N and the centripetal acceleration;
第三计算单元604,用于计算点N处的关系系数;a third calculating unit 604, configured to calculate a relationship coefficient at the point N;
第四计算单元605,用于确定关系系数的最大值;a fourth calculating unit 605, configured to determine a maximum value of the relationship coefficient;
第十计算单元606,用于计算合成加速度的最大值;a tenth calculating unit 606, configured to calculate a maximum value of the combined acceleration;
第五计算单元607,用于确定合成加速度与向心加速度的关系式;a fifth calculating unit 607, configured to determine a relationship between the combined acceleration and the centripetal acceleration;
第六计算单元608,用于确定向心加速度的最大值;a sixth calculating unit 608, configured to determine a maximum value of the centripetal acceleration;
第七计算单元609,用于确定切向加速度的最大值;a seventh calculating unit 609, configured to determine a maximum value of the tangential acceleration;
第六确定单元610,用于确定切向加速度的最大值为第二目标轨迹加速度的取值;a sixth determining unit 610, configured to determine that a maximum value of the tangential acceleration is a value of the second target trajectory acceleration;
第八计算单元611,用于计算轨迹速度。The eighth calculating unit 611 is configured to calculate a track speed.
本实施例中的轨迹速度规划装置各模块间的关系参照图3对应的实施例,
此处不再赘述。The relationship between the modules of the trajectory speed planning device in this embodiment refers to the corresponding embodiment of FIG. 3,
I will not repeat them here.
上面从模块化功能实体的角度对本发明实施例中的轨迹速度规划装置进行描述,下面从硬件处理的角度对本发明实施例中的轨迹速度规划装置进行描述,请参阅图7,本发明实施例中的轨迹速度规划装置另一实施例包括:The trajectory speed planning apparatus in the embodiment of the present invention is described above from the perspective of a modular functional entity. The trajectory speed planning apparatus in the embodiment of the present invention is described below from the perspective of hardware processing. Referring to FIG. 7, in the embodiment of the present invention, Another embodiment of the trajectory velocity planning apparatus includes:
处理器701和存储器702等,其中轨迹速度规划装置中的处理器的数量可以一个或多个,图7中以一个处理器701为例。本领域技术人员可以理解,图7中示出的轨迹速度规划装置结构并不构成对轨迹速度规划装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The processor 701 and the memory 702 and the like, wherein the number of processors in the trajectory speed planning device may be one or more, and one processor 701 is taken as an example in FIG. It will be understood by those skilled in the art that the trajectory velocity planning device structure shown in FIG. 7 does not constitute a limitation of the trajectory velocity planning device, and may include more or less components than those illustrated, or combine some components, or different. Parts layout.
其中,通过调用存储器702存储的操作指令,处理器701,用于执行如下步骤:The processor 701 is configured to perform the following steps by calling an operation instruction stored in the memory 702:
对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;
确定关系系数fi的最大值为B;Determining that the maximum value of the relationship coefficient f i is B;
根据关系系数fi的最大值B和单个轴的加速度的最大值A,计算合成加速度的最大值arm,得到A为给定的最大加速度值;According to the maximum value B of the relationship coefficient f i and the acceleration of a single axis Maximum value A, calculate the composite acceleration The maximum value of a rm , get A is the given maximum acceleration value;
根据合成加速度的最大值arm和给定的进给速度F进行目标轨迹MP的速度规划。Synthetic acceleration The maximum value a rm and the given feed speed F are used for speed planning of the target trajectory MP.
在本发明的一些实施例中,处理器701还用于执行以下步骤:In some embodiments of the present invention, the processor 701 is further configured to perform the following steps:
对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),确定关系系数fi为:For the Cartesian coordinate system XYZ, the coordinates of the point M are M(x M , y M , z M ), and the coordinates of the point P are P(x P , y P , z P ), and the relationship coefficient f i is determined as:
其中|MP|为线段MP的长度;
Where |MP| is the length of the line segment MP;
确定关系系数fi的最大值为B包括:确定中的最大值,得到
Determining the maximum value of the relationship coefficient f i as B includes: determining The maximum value in the
在本发明的一些实施例中,处理器701还用于执行以下步骤:In some embodiments of the present invention, the processor 701 is further configured to perform the following steps:
确定合成加速度的最大值arm为第一目标轨迹加速度的取值第一目标轨迹加速度的取值为线段MP上匀加速和匀减速阶段轨迹加速度的取值,即
Determining synthetic acceleration The maximum value a rm is the value of the first target trajectory acceleration The value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
根据第一目标轨迹加速度的取值和给定的进给速度F计算轨迹速度
According to the value of the first target trajectory acceleration Calculate the path velocity with a given feedrate F
在本发明的一些实施例中,处理器701还用于执行以下步骤:In some embodiments of the present invention, the processor 701 is further configured to perform the following steps:
对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为点N为圆弧MP上的点,根据如下公式:For the Cartesian coordinate system XYZ, the centripetal unit direction vector at point M is The tangential unit direction vector at point M is Point N is the point on the arc MP, according to the following formula:
确定点N处的合成加速度其中和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值,得到:Determine the combined acceleration at point N among them with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N, which yields:
根据方程(2)获得如下方程组:Obtain the following equations according to equation (2):
若目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,存在如下方程组,其中r为圆弧MN的半径,s为从点M至点N转过角度的弧长,为点N处的轨迹速度:If the velocity of the target trajectory MP is planned to be T-speed planning, and the point M to the point N is in the uniform acceleration motion phase, there is a system of equations where r is the radius of the arc MN and s is rotated from the point M to the point N The arc length of the angle, For the track speed at point N:
根据方程组(4)确定点N处的切向加速度和向心加速度的数值关系为
Determine the tangential acceleration at point N according to equation (4) And centripetal acceleration The numerical relationship is
将公式(5)代入方程组(3)得到关系系数fi为:Substituting equation (5) into equation (3) yields the relationship coefficient f i as:
在本发明的一些实施例中,处理器701还用于执行以下步骤:In some embodiments of the present invention, the processor 701 is further configured to perform the following steps:
根据方程组(6),用牛顿迭代法计算fx、fy和fz的最大值分别为fxm、fym和fzm;According to the equation (6), the maximum values of f x , f y and f z are calculated by Newton iteration method as f xm , f ym and f zm , respectively ;
确定fxm、fym和fzm中的最大值,得到B=max(fxm,fym,fzm)。The maximum values in f xm , f ym , and f zm are determined, and B = max (f xm , f ym , f zm ) is obtained.
在本发明的一些实施例中,处理器701还用于执行以下步骤:In some embodiments of the present invention, the processor 701 is further configured to perform the following steps:
将公式(5)代入如下公式:Substituting equation (5) into the following formula:
当点N与点P重合时,θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值得到其中
When point N coincides with point P, θ=θ P , where θ P is the radians of the opening angle corresponding to the arc MP, at this time Reaches the maximum value get among them
确定的最大值为第二目标轨迹加速度的取值即第二目标轨迹加速度的取值为圆弧MP上匀加速和匀减速阶段轨迹加速度的取值;determine Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
根据第二目标轨迹加速度的取值和给定的进给速度F计算轨迹速度
According to the value of the second target trajectory acceleration Calculate the path velocity with a given feedrate F
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that The technical solutions are described as being modified, or equivalent to some of the technical features, and the modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (17)
- 一种轨迹速度规划方法,其特征在于,包括:A method for trajectory velocity planning, comprising:对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;确定所述关系系数fi的最大值为B;Determining that the maximum value of the relationship coefficient f i is B;根据所述关系系数fi的最大值B和所述单个轴的加速度的最大值A,计算所述合成加速度的最大值arm,得到A为给定的最大加速度值;According to the maximum value B of the relationship coefficient f i and the acceleration of the single axis Maximum value A, calculate the combined acceleration The maximum value of a rm , get A is the given maximum acceleration value;
- 根据权利要求1所述的轨迹速度规划方法,其特征在于,所述目标轨迹MP为线段MP,所述线段MP以点M和点P作为端点。The trajectory velocity planning method according to claim 1, wherein the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
- 根据权利要求1所述的轨迹速度规划方法,其特征在于,所述目标轨迹MP为圆弧MP,所述圆弧MP以点M和点P作为端点。The trajectory velocity planning method according to claim 1, wherein the target trajectory MP is an arc MP, and the arc MP is represented by a point M and a point P.
- 根据权利要求2所述的轨迹速度规划方法,其特征在于,对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),所述确定单个轴的加速度与合成加速度之间的关系系数fi包括:The trajectory velocity planning method according to claim 2, wherein for the Cartesian coordinate system XYZ, the coordinates of the point M are M (x M , y M , z M ), and the coordinates of the point P are P (x P , y P , z P ), the determination of the acceleration of a single axis Synthetic acceleration The relationship coefficient f i between them includes:确定所述关系系数fi为:Determining that the relationship coefficient f i is:其中|MP|为线段MP的长度;Where |MP| is the length of the line segment MP;
- 根据权利要求4所述的轨迹速度规划方法,其特征在于,所述根据所述合成加速度的最大值arm进行目标轨迹MP的速度规划包括:The trajectory velocity planning method according to claim 4, wherein said synthetic acceleration is based on said The maximum value a rm for the target trajectory MP speed planning includes:确定所述合成加速度的最大值arm为第一目标轨迹加速度的取值所述第一目标轨迹加速度的取值为线段MP上匀加速和匀减速阶段轨迹加速度的取值,即 Determining the combined acceleration The maximum value a rm is the value of the first target trajectory acceleration The value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
- 根据权利要求3所述的轨迹速度规划方法,其特征在于,对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为点N为圆弧MP上的点,确定点N处单个轴的加速度与合成加速度之间的关系系数fi包括:The trajectory velocity planning method according to claim 3, wherein for the Cartesian coordinate system XYZ, the centripetal unit direction vector at the point M is The tangential unit direction vector at point M is Point N is the point on the arc MP, determining the acceleration of a single axis at point N Synthetic acceleration The relationship coefficient f i between them includes:根据如下公式:According to the following formula:确定点N处的合成加速度其中和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值,得到:Determine the combined acceleration at point N among them with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N, which yields:根据方程(2)获得如下方程组:Obtain the following equations according to equation (2):若所述目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,存在如下方程组,其中r为圆弧MN的半径,s为从点M至 点N转过角度的弧长,为点N处的轨迹速度:If the speed of the target trajectory MP is planned to be a T-type velocity plan, and the point M to the point N are in the uniform acceleration motion phase, there is a following equation group, where r is the radius of the arc MN, and s is from the point M to the point N The arc length of the angle is turned, For the track speed at point N:根据方程组(4)确定点N处的切向加速度和向心加速度的数值关系为 Determine the tangential acceleration at point N according to equation (4) And centripetal acceleration The numerical relationship is将公式(5)代入方程组(3)得到所述关系系数fi为:Substituting equation (5) into equation (3) yields the relationship coefficient f i as:
- 根据权利要求6所述的轨迹速度规划方法,其特征在于,所述确定所述关系系数fi的最大值为B包括:The trajectory velocity planning method according to claim 6, wherein the determining that the maximum value of the relationship coefficient f i is B comprises:根据方程组(6),用牛顿迭代法计算fx、fy和fz的最大值分别为fxm、fym和fzm;According to the equation (6), the maximum values of f x , f y and f z are calculated by Newton iteration method as f xm , f ym and f zm , respectively ;确定fxm、fym和fzm中的最大值,得到B=max(fxm,fym,fzm)。The maximum values in f xm , f ym , and f zm are determined, and B = max (f xm , f ym , f zm ) is obtained.
- 根据权利要求7所述的轨迹速度规划方法,其特征在于,所述根据所述合成加速度的最大值arm进行目标轨迹MP的速度规划包括:The trajectory velocity planning method according to claim 7, wherein said synthetic acceleration is based on said The maximum value a rm for the target trajectory MP speed planning includes:将公式(5)代入如下公式:Substituting equation (5) into the following formula:当点N与点P重合时,θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值得到其中 When point N coincides with point P, θ=θ P , where θ P is the radians of the opening angle corresponding to the arc MP, at this time Reaches the maximum value get among them确定的最大值为第二目标轨迹加速度的取值即所述第二目标轨迹加速度的取值为圆弧MP上匀加速和匀减速阶段轨迹加速度的取值;determine Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
- 一种轨迹速度规划装置,其特征在于,包括:A trajectory speed planning device, comprising:关系系数确定模块,对于指定的目标轨迹MP,用于确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;A relationship coefficient determination module for determining the acceleration of a single axis for a specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;最大值确定模块,用于确定所述关系系数fi的最大值为B;a maximum value determining module, configured to determine that the maximum value of the relationship coefficient f i is B;计算模块,用于根据所述关系系数fi的最大值B和所述单个轴的加速度的最大值A,计算所述合成加速度的最大值arm,得到A为给定的最大加速度值;a calculation module for using a maximum value B of the relationship coefficient f i and an acceleration of the single axis Maximum value A, calculate the combined acceleration The maximum value of a rm , get A is the given maximum acceleration value;
- 根据权利要求9所述的轨迹速度规划装置,其特征在于,所述目标轨迹MP为线段MP,所述线段MP以点M和点P作为端点。The trajectory velocity planning apparatus according to claim 9, wherein the target trajectory MP is a line segment MP, and the line segment MP has a point M and a point P as end points.
- 根据权利要求9所述的轨迹速度规划装置,其特征在于,所述目标轨迹MP为圆弧MP,所述圆弧MP以点M和点P作为端点。The trajectory velocity planning apparatus according to claim 9, wherein the target trajectory MP is an arc MP, and the arc MP is represented by a point M and a point P.
- 根据权利要求10所述的轨迹速度规划装置,其特征在于,对于笛卡尔坐标系XYZ,点M的坐标为M(xM,yM,zM),点P的坐标为P(xP,yP,zP),所述关系系数确定模块包括:The trajectory velocity planning apparatus according to claim 10, wherein for the Cartesian coordinate system XYZ, the coordinates of the point M are M (x M , y M , z M ), and the coordinates of the point P are P (x P , y P , z P ), the relationship coefficient determining module includes:第一确定单元,用于确定所述关系系数fi为: a first determining unit, configured to determine that the relationship coefficient f i is:其中|MP|为线段MP的长度;Where |MP| is the length of the line segment MP;所述最大值确定模块包括:The maximum value determining module includes:
- 根据权利要求12所述的轨迹速度规划装置,其特征在于,所述速度规划模块包括:The trajectory speed planning apparatus according to claim 12, wherein the speed planning module comprises:第三确定单元,用于确定所述合成加速度的最大值arm为第一目标轨迹加速度的取值所述第一目标轨迹加速度的取值为线段MP上匀加速和匀减速阶段轨迹加速度的取值,即a third determining unit, configured to determine the combined acceleration The maximum value a rm is the value of the first target trajectory acceleration The value of the first target trajectory acceleration For the line segment MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value, ie
- 根据权利要求11所述的轨迹速度规划装置,其特征在于,对于笛卡尔坐标系XYZ,点M处的向心单位方向矢量为点M处的切向单位方向矢量为点N为圆弧MP上的点,关系系数确定模块包括:The trajectory velocity planning apparatus according to claim 11, wherein for the Cartesian coordinate system XYZ, the centripetal unit direction vector at the point M is The tangential unit direction vector at point M is Point N is a point on the arc MP, and the relationship coefficient determining module includes:第四确定单元,用于根据如下公式:The fourth determining unit is used according to the following formula:确定点N处的合成加速度其中和分别为点N处的切向加速度和向心加速度,θ为从点M至点N转过角度的弧度值,得到:Determine the combined acceleration at point N among them with The tangential acceleration and the centripetal acceleration at point N, respectively, θ is the radians of the angle from point M to point N, which yields:第二计算单元,用于根据方程(2)获得如下方程组:a second calculation unit for obtaining the following system of equations according to equation (2):若所述目标轨迹MP的速度规划为T型速度规划,且从点M至点N处于匀加速运动阶段,存在如下方程组,其中r为圆弧MN的半径,s为从点M至点N转过角度的弧长,为点N处的轨迹速度:If the speed of the target trajectory MP is planned to be a T-type velocity plan, and the point M to the point N are in the uniform acceleration motion phase, there is a following equation group, where r is the radius of the arc MN, and s is from the point M to the point N The arc length of the angle is turned, For the track speed at point N:第五确定单元,用于根据方程组(4)确定点N处的切向加速度和向心加速度的数值关系为 a fifth determining unit, configured to determine a tangential acceleration at a point N according to the system of equations (4) And centripetal acceleration The numerical relationship is第三计算单元,用于将公式(5)代入方程组(3)得到所述关系系数fi为:a third calculating unit for substituting the formula (5) into the system of equations (3) to obtain the relationship coefficient f i is:
- 根据权利要求14所述的轨迹速度规划装置,其特征在于,所述最大值确定模块包括:The trajectory speed planning apparatus according to claim 14, wherein the maximum value determining module comprises:第四计算单元,用于根据方程组(6),用牛顿迭代法计算fx、fy和fz的最大值分别为fxm、fym和fzm,确定fxm、fym和fzm中的最大值,得到 a fourth calculating unit for calculating the maximum values of f x , f y , and f z by the Newton iteration method according to the equation (6), respectively, f xm , f ym , and f zm , and determining f xm , f ym , and f zm The maximum value in theB=max(fxm,fym,fzm)。B = max (f xm , f ym , f zm ).
- 根据权利要求15所述的轨迹速度规划装置,其特征在于,所述速度规划模块包括:The trajectory speed planning apparatus according to claim 15, wherein the speed planning module comprises:第五计算单元,用于将公式(5)代入如下公式:A fifth calculation unit for substituting the formula (5) into the following formula:第六计算单元,用于当点N与点P重合时,θ=θP,其中θP为圆弧MP对应的张角的弧度值,此时达到最大值得到a sixth calculating unit, configured to: when the point N coincides with the point P, θ=θ P , where θ P is a radians of the opening angle corresponding to the arc MP, Reaches the maximum value get第七计算单元,用于将arm和代入公式(7)中,得到的最大值第六确定单元,用于确定的最大值为第二目标轨迹加速度的取值即所述第二目标轨迹加速度的取值为圆弧MP上匀加速和匀减速阶段轨迹加速度的取值;a sixth determining unit for determining Maximum value The value of the second target trajectory acceleration which is The value of the second target trajectory acceleration For the arc MP, uniform acceleration and uniform deceleration phase trajectory acceleration Value
- 一种轨迹速度规划装置,其特征在于,包括:A trajectory speed planning device, comprising:存储器和处理器;Memory and processor;通过调用所述存储器存储的操作指令,所述处理器,用于执行如下步骤:The processor is configured to perform the following steps by calling an operation instruction stored by the memory:对于指定的目标轨迹MP,确定单个轴的加速度与合成加速度之间的关系系数fi,得到点M为目标轨迹MP的起点,点P为目标轨迹MP的终点;Determine the acceleration of a single axis for the specified target trajectory MP Synthetic acceleration The relationship coefficient f i between Point M is the starting point of the target trajectory MP, and point P is the end point of the target trajectory MP;确定所述关系系数fi的最大值为B;Determining that the maximum value of the relationship coefficient f i is B;根据所述关系系数fi的最大值B和所述单个轴的加速度的最大值A, 计算所述合成加速度的最大值arm,得到A为给定的最大加速度值;According to the maximum value B of the relationship coefficient f i and the acceleration of the single axis Maximum value A, calculate the combined acceleration The maximum value of a rm , get A is the given maximum acceleration value;
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201680038477.6A CN108235742B (en) | 2016-10-14 | 2016-10-14 | Trajectory speed planning method and trajectory speed planning device |
PCT/CN2016/102126 WO2018068302A1 (en) | 2016-10-14 | 2016-10-14 | Trajectory velocity planning method and trajectory velocity planning device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/102126 WO2018068302A1 (en) | 2016-10-14 | 2016-10-14 | Trajectory velocity planning method and trajectory velocity planning device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018068302A1 true WO2018068302A1 (en) | 2018-04-19 |
Family
ID=61904924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/102126 WO2018068302A1 (en) | 2016-10-14 | 2016-10-14 | Trajectory velocity planning method and trajectory velocity planning device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108235742B (en) |
WO (1) | WO2018068302A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130197688A1 (en) * | 2010-10-13 | 2013-08-01 | Omoron Corporation | Control apparatus, control system and control method |
CN103970073A (en) * | 2013-01-24 | 2014-08-06 | 北京配天大富精密机械有限公司 | Acceleration and deceleration planning method and device for numerical control system and numerical control machine tool |
CN104181860A (en) * | 2014-08-25 | 2014-12-03 | 浙江理工大学 | S-type acceleration and deceleration control method of numerical control machine tool |
CN104678899A (en) * | 2015-02-11 | 2015-06-03 | 北京配天技术有限公司 | Curve velocity planning method and device, as well as numerical control machining path data processing method |
CN105892402A (en) * | 2016-06-17 | 2016-08-24 | 浙江理工大学 | Point-to-point motion control method for mechanical arm |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103231381B (en) * | 2013-05-03 | 2015-10-21 | 中山大学 | A kind of novel acceleration layer repetitive motion planning method of redundancy mechanical arm |
CN105500354B (en) * | 2016-02-02 | 2017-05-17 | 南京埃斯顿机器人工程有限公司 | Transitional track planning method applied by industrial robot |
-
2016
- 2016-10-14 WO PCT/CN2016/102126 patent/WO2018068302A1/en active Application Filing
- 2016-10-14 CN CN201680038477.6A patent/CN108235742B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130197688A1 (en) * | 2010-10-13 | 2013-08-01 | Omoron Corporation | Control apparatus, control system and control method |
CN103970073A (en) * | 2013-01-24 | 2014-08-06 | 北京配天大富精密机械有限公司 | Acceleration and deceleration planning method and device for numerical control system and numerical control machine tool |
CN104181860A (en) * | 2014-08-25 | 2014-12-03 | 浙江理工大学 | S-type acceleration and deceleration control method of numerical control machine tool |
CN104678899A (en) * | 2015-02-11 | 2015-06-03 | 北京配天技术有限公司 | Curve velocity planning method and device, as well as numerical control machining path data processing method |
CN105892402A (en) * | 2016-06-17 | 2016-08-24 | 浙江理工大学 | Point-to-point motion control method for mechanical arm |
Also Published As
Publication number | Publication date |
---|---|
CN108235742B (en) | 2021-01-08 |
CN108235742A (en) | 2018-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7979158B2 (en) | Blending algorithm for trajectory planning | |
US4528632A (en) | Industrial articulated robot linear interpolation control device | |
WO2017113069A1 (en) | S-shaped curve planning method and device, and numerically-controlled machine tool | |
US20180088551A1 (en) | Curve velocity planning method, device, and numerical control machining route data processing method thereof | |
JP2019517929A (en) | Trajectory planning method of point-to-point movement in robot joint space | |
CN107756400B (en) | 6R robot inverse kinematics geometric solving method based on momentum theory | |
Rahaman et al. | A new approach to contour error control in high speed machining | |
JP2017094438A (en) | Robot system having function of simplifying teaching work by learning and function of improving operation performance | |
WO2017113195A1 (en) | Processing path planning method, processing path planning apparatus and numerically controlled machine tool | |
CN109623825A (en) | A kind of motion track planing method, device, equipment and storage medium | |
JP2017127964A (en) | Robot apparatus having learning function | |
CN113084792A (en) | Method for determining joint singular area, robot and storage device | |
WO2018195689A1 (en) | S-type velocity planning method, device and system, and robot and numerical control machine tool | |
WO2018068302A1 (en) | Trajectory velocity planning method and trajectory velocity planning device | |
WO2024041646A1 (en) | Trajectory planning method and apparatus for joint space of multi-shaft device | |
CN112720492A (en) | Complex track fairing method and device for multi-axis robot, medium and electronic equipment | |
JP2016049607A (en) | Robot device, method of controlling robot device, program, and recording medium | |
CN113858213B (en) | Robot dynamic track planning method for target synchronization | |
CN112066943B (en) | Calculation method and device for rotation angle of vector adjustment rotating mechanism | |
JP2003076410A (en) | Speed control device, speed control method and program for carrying the method with computer | |
CN114415598A (en) | Transition method and device of machining path, storage medium and computer equipment | |
CN113946139A (en) | Speed prediction method of numerical control system, control method of numerical control system and numerical control system | |
Duong et al. | Effectiveness of input shaping and real-time NURBS interpolation for reducing feedrate fluctuation | |
Kang et al. | Accurate Contour Error Estimation-based robust contour control for dual-linear-motor-driven gantry stages | |
CN116985136B (en) | Quaternion-based mechanical arm node attitude speed look-ahead control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16918896 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16918896 Country of ref document: EP Kind code of ref document: A1 |