Summary of the invention
The invention provides a kind of Acceleration-deceleration Control Method based on S type curve and device and numerically-controlled machine, can effectively solve the problem that in and process low in switching place working (machining) efficiency, lathe is impacted.
For solving the problems of the technologies described above, an aspect of of the present present invention is: a kind of Acceleration-deceleration Control Method based on S type curve is provided, S type curve is used for the i+1 section machining locus between the first switching place and the second switching place is carried out speed planning, and the acceleration of this Acceleration-deceleration Control Method control first switching place and the second switching place is non-vanishing.
Wherein, the non-vanishing step of acceleration of control the first switching place and the second switching place specifically comprises: the speed v of calculating the first switching place
sSpeed v with the second switching place
eValue range; Speed v according to the first switching place
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value; Speed v according to the first switching place
s, the second switching place speed v
e, i+1 section machining locus initial acceleration a
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the acceleration of the first switching place and the second switching place is non-vanishing.
Wherein, calculate the speed v of the first switching place
sSpeed v with the second switching place
eThe step of value range specifically comprise: obtain the i section machining locus that is connected with i+1 section machining locus by the first switching place and the first switching angle α of i+1 section machining locus
1, and the second switching angle α that obtains the i+2 section machining locus that is connected with i+1 section machining locus by the second switching place and i+1 section machining locus
2According to the first switching angle α
1With the second switching angle α
2Calculate respectively the speed v of the first switching place
sSpeed v with the second switching place
eValue range.
Wherein, according to the speed v of the first switching place
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe step of maximum possible value specifically comprise: according to formula (1)
And formula (2)
Obtain a
iPossible maximal value, a
iValue and the initial acceleration a of i+1 section machining locus
sEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i section machining locus arrives is the terminal point of i section machining locus; According to formula (3)
And formula (4)
Obtain a
i+1Possible maximal value, a
i+1Value and the terminal point acceleration a of i+1 section machining locus
eEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i+1 section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i+1 section machining locus arrives is the terminal point of i+1 section machining locus.
Wherein, according to the speed v of the first switching place
s, the second switching place speed v
e, i+1 section machining locus initial acceleration a
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the non-vanishing step of acceleration of the first switching place and the second switching place specifically comprises:
Initial acceleration a according to i+1 section machining locus
s, terminal point acceleration a
e, the first switching place speed v
sAnd the speed v of the second switching place
eWith i+1 section machining locus be divided into acceleration, even acceleration, subtract acceleration, at the uniform velocity, acceleration and deceleration, even deceleration and seven stages and obtain respectively following system of equations of slowing down:
The acceleration system of equations (5) of i+1 section machining locus:
The rate equation group (6) of i+1 section machining locus:
The shifted systems (7) of i+1 section machining locus
Wherein, t is time coordinate, t
i(i=1,2,3 ..., 7) and be the time coordinate at each stage end, τ
iExpression local time is to deduct τ with time t in each stage
iThe time value that obtains, T
i(i=1,2,3 ..., 7) and represent the time span that each stage continues, A is peak acceleration, and D is maximum deceleration, and J is maximum acceleration;
According to acceleration system of equations (5), rate equation group (6) and shifted systems (7), i+1 section machining locus is carried out the planning of S type curve speed.
Wherein, according to acceleration system of equations (5), rate equation group (6) and shifted systems (7), the step that i+1 section machining locus carries out the planning of S type curve speed is specifically comprised:
Interval differentiation: the time span that each stage continues is calculated in interval differentiation, obtains according to acceleration system of equations (5):
Wherein, T
1The time span that continues for adding boost phase, T
3The time span that continues for subtracting boost phase, T
5Be lasting time span of acceleration and deceleration stage, T
7For subtracting the time span that the decelerating phase continues;
Reach speed f at even boost phase end
3, according to rate equation group (6) and shifted systems (7), obtain:
f
3=f (8);
Wherein, f is speed of feed, T
2For the lasting time span of even boost phase, if T
2﹤ 0, passes through formula
The value of adjusting peak acceleration A is the maximum possible value, and substitution formula (9) recomputates T
2Value;
Reach speed v subtracting decelerating phase end
e, according to rate equation group (6) and shifted systems (7), obtain:
Wherein, T
6For lasting time span of even decelerating phase, if T
6﹤ 0, passes through formula
The value of adjusting maximum deceleration D is the maximum possible value, and substitution formula (11) is counted T again
6Value;
With T
1, T
2, T
3, T
5, T
6, T
7Value substitution rate equation group (6), in conjunction with
Can get:
Wherein, T
4Be the length of duration in stage at the uniform velocity, L is the length of i+1 section machining locus, l
7For subtracting displacement corresponding to decelerating phase, l
sBe initial position, if T
4﹤ 0, and the value of adjusting speed of feed f makes T
4=0, and recomputate T
1, T
2, T
3, T
5, T
6And T
7Value;
Real-time interpolation: according to T
1, T
2, T
3, T
4, T
5, T
6, T
7Value S type curve carried out real-time interpolation calculate.
For solving the problems of the technologies described above, another aspect of the present invention is: a kind of acceleration/deceleration control device based on S type curve is provided, S type curve is used for the i+1 section machining locus between the first switching place and the second switching place is carried out speed planning, this acceleration/deceleration control device comprises: switching place speed calculation module is used for calculating the speed v of the first switching place
sSpeed v with the second switching place
eValue range; The acceleration calculation module is used for the speed v according to the first switching place of switching place speed calculation module calculating acquisition
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value; The speed planning module is used for the speed v according to the first switching place of switching place speed calculation module calculating acquisition
sSpeed v with the second switching place
eValue range and the initial acceleration a of the i+1 section machining locus that obtains of acceleration calculation module
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the acceleration of the first switching place and the second switching place is non-vanishing.
Wherein, speed calculation module comprises: switching angle acquiring unit is used for obtaining first of the i section machining locus that is connected with i+1 section machining locus by the first switching place and the i+1 section machining locus angle α that transfers
1, and the second switching angle α that obtains the i+2 section machining locus that is connected with i+1 section machining locus by the second switching place and i+1 section machining locus
2The speed computing unit is used for the first switching angle α that obtains according to the angle acquiring unit of transferring
1With the second switching angle α
2Calculate respectively the speed v of the first switching place
sSpeed v with the second switching place
eValue range.
Wherein, the acceleration calculation module comprises:
The initial acceleration computing unit, the initial acceleration computing unit is used for according to formula (1)
And formula (2)
Obtain a
iPossible maximal value, a
iValue and the initial acceleration a of i+1 section machining locus
sEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i section machining locus arrives is the terminal point of i section machining locus;
Terminal point acceleration calculation unit, terminal point acceleration calculation unit is used for according to formula (3)
And
Formula (4)
Obtain a
i+1Possible maximal value, a
i+1Value and the terminal point acceleration a of i+1 section machining locus
eEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i+1 section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i+1 section machining locus arrives is the terminal point of i+1 section machining locus.
Wherein, the speed planning module comprises:
Stage system of equations acquiring unit is used for the initial acceleration a according to i+1 section machining locus
s, terminal point acceleration a
e, the first switching place speed v
sAnd the speed v of the second switching place
eWith i+1 section machining locus be divided into acceleration, even acceleration, subtract acceleration, at the uniform velocity, acceleration and deceleration, even deceleration and seven stages and obtain respectively following system of equations of slowing down:
The acceleration system of equations (5) of i+1 section machining locus:
The rate equation group (6) of i+1 section machining locus:
The shifted systems (7) of i+1 section machining locus
Wherein, t is time coordinate, t
i(i=1,2,3 ..., 7) and be the time coordinate at each stage end, τ
iExpression local time is to deduct τ with time t in each stage
iThe time value that obtains, T
i(i=1,2,3 ..., 7) and represent the time span that each stage continues, A is peak acceleration, and D is maximum deceleration, and J is maximum acceleration;
The speed planning processing unit, the acceleration system of equations (5), rate equation group (6) and the shifted systems (7) that are used for obtaining according to stage system of equations acquiring unit carry out the planning of S type curve speed to i+1 section machining locus.
Wherein, the speed planning processing unit comprises:
Interval differentiation subelement is used for calculating the time span that each stage continues, and obtains according to acceleration system of equations (5):
Wherein, T
1The time span that continues for adding boost phase, T
3The time span that continues for subtracting boost phase, T
5Be lasting time span of acceleration and deceleration stage, T
7For subtracting the time span that the decelerating phase continues;
Reach speed f at even boost phase end
3, according to rate equation group (6) and shifted systems (7), obtain:
f
3=f (8);
Wherein, f is speed of feed, T
2For the lasting time span of even boost phase, if T
2﹤ 0, passes through formula
The value of adjusting peak acceleration A is the maximum possible value, and substitution formula (9) recomputates T
2Value;
Reach speed v subtracting decelerating phase end
e, according to rate equation group (6) and shifted systems (7), obtain:
Wherein, T
6For lasting time span of even decelerating phase, if T
6﹤ 0, passes through formula
The value of adjusting maximum deceleration D is the maximum possible value, and substitution formula (11) is counted T again
6Value
With T
1, T
2, T
3, T
5, T
6, T
7Value substitution rate equation group (6), in conjunction with
Can get:
Wherein, T
4Be the length of duration in stage at the uniform velocity, L is the length of i+1 section machining locus, l
7For subtracting displacement corresponding to decelerating phase, l
sBe initial position, if T
4﹤ 0, and the value of adjusting speed of feed f makes T
4=0, and recomputate T
1, T
2, T
3, T
5, T
6And T
7Value;
The real-time interpolation subelement is used for differentiating according to the interval T that subelement obtains
1, T
2, T
3, T
4, T
5, T
6, T
7Value S type curve carried out real-time interpolation calculate.
For solving the problems of the technologies described above, another aspect of the present invention is: a kind of numerically-controlled machine is provided, and this numerically-controlled machine comprises above-mentioned any acceleration/deceleration control device.
The invention has the beneficial effects as follows: the situation that is different from prior art, the embodiment of the present invention is non-vanishing by the acceleration of controlling the first switching place and the second switching place, acceleration in switching place compared to existing technology is zero, start from scratch acceleration and cause long problem of acceleration time at boost phase, the present invention can shorten the acceleration time, improve working (machining) efficiency, less with the brief acceleration saltus step, can reduce the impact to lathe.
Embodiment
Below in conjunction with the accompanying drawing in embodiment of the present invention, the technical scheme in embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skills all belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
See also Fig. 1, Fig. 1 is the schematic flow sheet of Acceleration-deceleration Control Method one embodiment of the present invention.This Acceleration-deceleration Control Method comprises:
Step S11: the speed v of calculating the first switching place
sSpeed v with the second switching place
eValue range.
In digital control system processing, the program of each part to be processed is comprised of a plurality of program segments, and these program segments are generally straight line and circular arc, therefore between different straight lines and straight line, between straight line and circular arc, all have switching place between different circular arc and circular arc, i.e. flex point.Particularly, i+1 section machining locus is the machining locus of one of them program segment, and i+1 section machining locus can be any one of straight line or circular arc.When i+1 section machining locus is initial manufacture track in a plurality of program segments, the speed v of the first switching place
sBe zero; When i+1 section machining locus is latter end machining locus in a plurality of program segments, the speed v of the second switching place
eBe zero; When i+1 section machining locus was non-initial manufacture track and latter end machining locus, i+1 section machining locus was between two switchings place (the first switching place and the second switching place), and in the present embodiment, the first switching place speed v
sWith the second switching place speed v
eAll non-vanishing.
Step S12: according to the speed v of the first switching place
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value.
Wherein, in the present embodiment, the initial acceleration a of i+1 section machining locus
sEquate the terminal point acceleration a of i+1 section machining locus with the terminal point acceleration of i section machining locus
eEquate with the initial acceleration of i+2 section machining locus.
Step S13: according to the speed v of the first switching place
s, the second switching place speed v
e, i+1 section machining locus initial acceleration a
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the acceleration of the first switching place and the second switching place is non-vanishing.
By obtaining the speed v of the first switching place
s, the second switching place speed v
e, i+1 section machining locus initial acceleration a
sWith terminal point acceleration a
eThe maximum possible value in conjunction with the length L of i+1 section machining locus with add the speed of feed f in man-hour i+1 section machining locus is carried out the planning of S type curve, wherein, speed of feed f initial value is given by the user, but can make corresponding adjustment according to actual conditions in process.
See also Fig. 2, calculate the speed v of the first switching place in Acceleration-deceleration Control Method one embodiment of the present invention
sSpeed v with the second switching place
eValue range comprise following substep:
Substep S111: the first switching angle α that obtains the i section machining locus that is connected with i+1 section machining locus by the first switching place and i+1 section machining locus
1, and the second switching angle α that obtains the i+2 section machining locus that is connected with i+1 section machining locus by the second switching place and i+1 section machining locus
2
Please in conjunction with consulting Fig. 3, adjacent i section machining locus, i+1 section machining locus and i+2 section machining locus are by the first switching place E
iWith the second switching place E
i+1Be connected, i section machining locus and i+1 section machining locus first the switching angle be α
1, along the unit tangent vector of processing direction of feed i section machining locus be
The unit tangent vector of i+1 section machining locus is
Pass through
formula
α 1 ∈ [0 °, 180 °] can obtain α
1Value.Similarly, second of i+1 section machining locus and i+2 section machining locus the switching angle be α
2, at the second switching angle α
2The place along the unit tangent vector of processing direction of feed i+1 section machining locus is
The unit tangent vector of i+2 section machining locus is
Pass through formula
α
2∈ [0 °, 180 °] can obtain α
2Value.
Wherein, in the present embodiment, line style to i section machining locus, i+1 section machining locus and i+2 section machining locus is not construed as limiting, and the line style of i section machining locus, i+1 section machining locus and i+2 section machining locus can be respectively any one in the line styles such as straight line, circular arc.
Substep S112: according to the first switching angle α
1With the second switching angle α
2Calculate respectively the speed v of the first switching place
sSpeed v with the second switching place
eValue range.
Please continue to consult Fig. 3, the moment linear velocity in the same size in actual process before and after General Requirements switching place is located at the first switching place E
iThe speed of front (i section machining locus terminal point) is
The first switching place E
iThe speed of (i+1 section machining locus starting point) is afterwards
Interpolation cycle is T, and the formula of the acceleration of switching process is:
Wherein
It is a that lathe allows peak acceleration
max, for convenience of calculation, with the restrictive condition of resultant acceleration as acceleration, the acceleration limit principle of assigning on each motor shaft is identical, does not calculate at this.The condition that does not cause the speed conflict is:
a
i,i+1≤a
max
(a) can obtain according to formula:
Solve
Similarly, be located at the second switching place E
i+1The speed of front (i+1 section machining locus terminal point) is
The second switching place E
i+1The speed of (i+2 section machining locus starting point) is afterwards
Interpolation cycle is T, and the formula of the acceleration of switching process is:
Wherein
It is a that lathe allows peak acceleration
max, for convenience of calculation, with the restrictive condition of resultant acceleration as acceleration, the acceleration limit principle of assigning on each motor shaft is identical, does not calculate at this.The condition that does not cause the speed conflict is:
a
i+1,i+2≤a
max
(b) can obtain according to formula:
Solve
See also Fig. 4, in Acceleration-deceleration Control Method one embodiment of the present invention according to the speed v of the first switching place
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value comprise following substep:
Substep S211: calculate the initial acceleration a that obtains i+1 section machining locus by formula (1) and formula (2)
sThe maximum possible value.
Please in conjunction with consulting Fig. 5, in order to set forth conveniently, below adjacent machining locus describe with the situation of straight line with the straight line switching, other curves switching types use curve in the tangent line calculating of switching place, can be converted into equally the switching of straight line and straight line.
Last interpolation cycle of i section machining locus is called the i step, and its speed and acceleration are respectively
With
Wherein, last interpolation cycle just in time reaches the terminal point of i section machining locus; An interpolation cycle is called the i+1 step afterwards, the switching from i section machining locus terminal point along i+1 section machining locus direction, and its speed and acceleration are
With
Be the i+2 step at the interpolation cycle of i+1 after the step, its acceleration is
Direction is identical with the tangential direction of i+1 section machining locus.I goes on foot in the interpolation of i+2 step, the relation of acceleration as shown in Figure 5, wherein
Be by
With
Poor the decision, due to
With
With
Corner dimension identical, also namely with
With
Angle identical.
Can be according to formula (1)
And formula (2)
Obtain a
iPossible maximal value, particularly, the acceleration before switching place:
Wherein, J
maxBe maximum acceleration.(c) gets equal sign when formula, namely
The time, can obtain
Maximal value, by the triangle cosine law, obtain formula (1)
Obtain according to formula (1)
The derivation formula of size
In order to improve working (machining) efficiency, get
Larger solution.Whether the below exists the solution of formula (d) is discussed:
When
The Shi Congdi i step is minimum to the increment size of i+1 step transition brief acceleration, can get
In conjunction with
Can obtain:
Further derive:
Formula (2) substitution formula (d) can be tried to achieve a
iValue, the initial acceleration a of i+1 section machining locus
sWith a
iValue equate.
If the solution of formula (d) does not exist, need to readjust
With
Value, wherein,
Value be v
sValue, make
Thereby obtain a
iThe maximum possible value, the also i.e. initial acceleration a of i+1 section machining locus
sThe maximum possible value.
Substep S212: calculate the terminal point acceleration a that obtains i+1 section machining locus by formula (3) and formula (4)
ePossible maximal value.
See also Fig. 6, with the initial acceleration a that calculates i+1 section machining locus
sPossible maximal value similar, describe as an example of the switching of straight line and straight line example equally.
Last interpolation cycle of i+1 section machining locus is called the i+1 step, and its speed and acceleration are respectively
With
Wherein, last interpolation cycle just in time arrives the terminal point of i+1 section machining locus; An interpolation cycle is called the i+2 step afterwards, the switching from i+1 section machining locus along i+2 section machining locus direction, and its speed and acceleration are respectively
With
Direction as shown in Figure 6; Be the i+3 step at the interpolation cycle of i+2 after the step, its acceleration is
Direction is identical with the tangential direction of i+2 section machining locus.I+1 goes on foot in the interpolation of i+2 step, the relation of acceleration as shown in Figure 6, wherein
Be by
With
Poor the decision, due to
With
With
Corner dimension identical, also namely with
With
Angle identical.
Can be according to formula (3)
And formula (4)
Obtain a
i+1Possible maximal value, its procurement process with obtain a
iPossible peaked computation process similar, be not described in detail in this.Wherein, a
eMaximum possible value and a
i+1Possible maximal value equate.
See also Fig. 7, in Acceleration-deceleration Control Method one embodiment of the present invention according to the speed v of the first switching place
s, the second switching place speed v
e, i+1 section machining locus initial acceleration a
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus carried out S type curve speed planning comprise following substep so that the acceleration of the first switching place and the second switching place is non-vanishing:
Substep S311: according to the initial acceleration a of i+1 section machining locus
s, terminal point acceleration a
e, the first switching place speed v
sAnd the speed v of the second switching place
eWith i+1 section machining locus be divided into acceleration, even acceleration, subtract acceleration, at the uniform velocity, acceleration and deceleration, even deceleration and seven stages and obtain respectively acceleration system of equations (5), rate equation group (6) and shifted systems (7) of slowing down.
Wherein, the acceleration system of equations (5) of i+1 section machining locus:
The rate equation group (6) of i+1 section machining locus:
The shifted systems (7) of i+1 section machining locus
The acquisition of above-mentioned system of equations is based on initial and the terminal point acceleration is zero S type curve speed planning theory, its difference is that the initial and terminal point acceleration of above-mentioned system of equations is all non-vanishing, in view of being known by those skilled in the art by zero S type curve speed planning theory based on initial and terminal point acceleration, therefore the derivation of above-mentioned system of equations is not described further.
Wherein, t is time coordinate, t
i(i=1,2,3 ..., 7) and be the time coordinate at each stage end, τ
iExpression local time is to deduct τ with time t in each stage
iThe time value that obtains, T
i(i=1,2,3 ..., 7) and represent the time span that each stage continues, A is peak acceleration, and D is maximum deceleration, and J is maximum acceleration.
Substep S312: i+1 section machining locus is carried out the planning of S type curve speed according to acceleration system of equations (5), rate equation group (6) and shifted systems (7).
Can learn acceleration, speed and each duration in stage of each time point in process and the shift length that travels by above-mentioned system of equations, therefore, be easy to the parameter that obtains according to above-mentioned system of equations i+1 section machining locus is carried out the planning of S type curve speed.Its detailed process is as follows:
See also Fig. 8, according to acceleration system of equations (5), rate equation group (6) and shifted systems (7), the substep that i+1 section machining locus carries out the planning of S type curve speed comprised in Acceleration-deceleration Control Method one embodiment of the present invention:
Substep S3121: the time span that each stage continues is calculated in interval differentiation.
Obtain according to acceleration system of equations (5):
Wherein, T
1The time span that continues for adding boost phase, T
3The time span that continues for subtracting boost phase, T
5Be lasting time span of acceleration and deceleration stage, T
7For subtracting the time span that the decelerating phase continues;
Reach speed f at even boost phase end
3, according to rate equation group (6) and shifted systems (7), obtain:
f
3=f (8);
Wherein, f is speed of feed, T
2For the lasting time span of even boost phase, if T
2﹤ 0, passes through formula
The value of adjusting peak acceleration A is the maximum possible value, and substitution formula (9) recomputates T
2Value;
Reach speed v subtracting decelerating phase end
e, according to rate equation group (6) and shifted systems (7), obtain:
Wherein, T
6For lasting time span of even decelerating phase, if T
6﹤ 0, passes through formula
The value of adjusting maximum deceleration D is the maximum possible value, and substitution formula (11) is counted T again
6Value;
With T
1, T
2, T
3, T
5, T
6, T
7Value substitution rate equation group (6), in conjunction with
Can get:
Wherein, T
4Be the length of duration in stage at the uniform velocity, L is the length of i+1 section machining locus, l
7For subtracting displacement corresponding to decelerating phase, l
sBe initial position, if T
4﹤ 0, and the value of adjusting speed of feed f makes T
4=0, and recomputate T
1, T
2, T
3, T
5, T
6And T
7Value;
It should be noted that also needs the value of peak acceleration A and maximum deceleration D is adjusted accordingly when adjusting the value of speed of feed f.
Substep S3122: according to lasting time span T of stage
1, T
2, T
3, T
4, T
5, T
6, T
7Value S type curve carried out real-time interpolation calculate.
Obtain T by said method
1, T
2, T
3, T
4, T
5, T
6, T
7Value after, the time span that continues according to each stage and transition point time carry out real-time interpolation to S type curve and calculate.
The Acceleration-deceleration Control Method of the embodiment of the present invention is by the speed v in the first switching place
sSpeed v with the second switching place
eObtain maximum initial acceleration and the maximum terminal point acceleration of the i+1 section machining locus that allows in scope, thereby i+1 section machining locus is carried out the planning of S type curve speed, make in process the acceleration of the first switching place and the second switching place non-vanishing.Be zero situation compared to existing technology at the acceleration of switching place, the Acceleration-deceleration Control Method of the embodiment of the present invention can effectively improve working (machining) efficiency, reduces in process the impact to lathe.
See also Fig. 9, Fig. 9 is acceleration/deceleration control device one example structure schematic diagram of the present invention.S type curve is used for the i+1 section machining locus between the first switching place and the second switching place is carried out speed planning, and this acceleration/deceleration control device comprises switching place speed calculation module 11, acceleration calculation module 12 and speed planning module 13.
Switching place speed calculation module 11 is used for calculating the speed v of the first switching place
sSpeed v with the second switching place
eValue range.When i+1 section machining locus is initial manufacture track in a plurality of program segments, the speed v of the first switching place
sBe zero; When i+1 section machining locus is latter end machining locus in a plurality of program segments, the speed v of the second switching place
eBe zero; When i+1 section machining locus was non-initial manufacture track and latter end machining locus, i+1 section machining locus was between two switchings place (the first switching place and the second switching place), and in the present embodiment, the first switching place speed v
sWith the second switching place speed v
eAll non-vanishing.
Particularly, see also Figure 10, this switching place speed calculation module 11 comprises switching angle acquiring unit 111 and speed computing unit 112.
Switching angle acquiring unit 111 is used for obtaining first of the i section machining locus that is connected with i+1 section machining locus by the first switching place and the i+1 section machining locus angle α that transfers
1, and the second switching angle α that obtains the i+2 section machining locus that is connected with i+1 section machining locus by the second switching place and i+1 section machining locus
2
Speed computing unit 112 is for the first switching angle α that obtains according to the angle acquiring unit of transferring
1With the second switching angle α
2Calculate respectively the speed v of the first switching place
sSpeed v with the second switching place
eValue range.
Acceleration calculation module 12 is used for calculating the speed v of the first switching place that obtains according to switching place speed calculation module 11
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value.
Particularly, see also Figure 11, this acceleration calculation module 12 comprises initial acceleration computing unit 121 and terminal point acceleration calculation unit 122.
Initial acceleration computing unit 121 is used for according to formula (1)
And
Formula (2)
Obtain a
iThe maximum possible value, a
iValue and the initial acceleration a of i+1 section machining locus
sEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i section machining locus arrives is the terminal point of i section machining locus.
Terminal point acceleration calculation unit 122 is used for according to formula (3)
And
Formula (4)
Obtain a
i+1The maximum possible value, a
i+1Value and the terminal point acceleration a of i+1 section machining locus
eEquate, wherein,
Be acceleration corresponding to last interpolation cycle T of i+1 section machining locus,
Be the acceleration of the first switching place, the position that last interpolation cycle T machining of i+1 section machining locus arrives is the terminal point of i+1 section machining locus.
Speed planning module 13 is used for calculating the speed v of the first switching place that obtains according to switching place speed calculation module 11
sSpeed v with the second switching place
eValue range and the acceleration calculation module obtain 12 the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the acceleration of described the first switching place and described the second switching place is non-vanishing.
Particularly, see also Figure 12, this speed planning module 13 comprises stage system of equations acquiring unit 131 and speed planning processing unit 132.
The initial acceleration a that stage system of equations acquiring unit 131 is used for according to i+1 section machining locus
s, terminal point acceleration a
e, the first switching place speed v
sAnd the speed v of the second switching place
eWith i+1 section machining locus be divided into acceleration, even acceleration, subtract acceleration, at the uniform velocity, acceleration and deceleration, even deceleration and seven stages and obtain respectively following system of equations of slowing down:
The acceleration system of equations (5) of i+1 section machining locus:
The rate equation group (6) of i+1 section machining locus:
The shifted systems (7) of i+1 section machining locus
Wherein, t is time coordinate, t
i(i=1,2,3 ..., 7) and be the time coordinate at each stage end, τ
iExpression local time is to deduct τ with time t in each stage
iThe time value that obtains, T
i(i=1,2,3 ..., 7) and represent the time span that each stage continues, A is peak acceleration, and D is maximum deceleration, and J is maximum acceleration.
Acceleration system of equations (5), rate equation group (6) and shifted systems (7) that speed planning processing unit 132 is used for obtaining according to stage system of equations acquiring unit 131 carry out the planning of S type curve speed to i+1 section machining locus.Particularly, see also Figure 13, this speed planning processing unit 132 comprises interval differentiate subelement 1321 and real-time interpolation subelement 1322.
Interval differentiation subelement 1321 is used for calculating the time span that each stage continues, and obtains according to acceleration system of equations (5):
Wherein, T
1The time span that continues for adding boost phase, T
3The time span that continues for subtracting boost phase, T
5Be lasting time span of acceleration and deceleration stage, T
7For subtracting the time span that the decelerating phase continues;
Reach speed f at even boost phase end
3, according to rate equation group (6) and shifted systems (7), obtain:
f
3=f (8);
Wherein, f is speed of feed, T
2For the lasting time span of even boost phase, if T
2﹤ 0, passes through formula
The value of adjusting peak acceleration A is the maximum possible value, and substitution formula (9) recomputates T
2Value;
Reach speed v subtracting decelerating phase end
e, according to rate equation group (6) and shifted systems (7), obtain:
Wherein, T
6For lasting time span of even decelerating phase, if T
6﹤ 0, passes through formula
The value of adjusting maximum deceleration D is the maximum possible value, and substitution formula (11) is counted T again
6Value
With T
1, T
2, T
3, T
5, T
6, T
7Value substitution rate equation group (6), in conjunction with
Can get:
Wherein, T
4Be the length of duration in stage at the uniform velocity, L is the length of i+1 section machining locus, l
7For subtracting displacement corresponding to decelerating phase, l
sBe initial position, if T
4﹤ 0, and the value of adjusting speed of feed f makes T
4=0, and recomputate T
1, T
2, T
3, T
5, T
6And T
7Value.
Real-time interpolation subelement 1322 is used for differentiating according to the interval T that subelement obtains
1, T
2, T
3, T
4, T
5, T
6, T
7Value S type curve carried out real-time interpolation calculate.
The acceleration/deceleration control device of the embodiment of the present invention is by the speed v in the first switching place
sSpeed v with the second switching place
eObtain maximum initial acceleration and the maximum terminal point acceleration of the i+1 section machining locus that allows in scope, thereby i+1 section machining locus is carried out the planning of S type curve speed, make in process non-vanishing at the acceleration of the first switching place and the second switching place.Be zero at the acceleration of switching place compared to existing technology, the acceleration/deceleration control device of the embodiment of the present invention can effectively improve working (machining) efficiency, reduces in process the impact to lathe.
See also Figure 14, Figure 14 is the structural representation of numerically-controlled machine one embodiment of the present invention.This numerically-controlled machine comprises control device 60, drive unit 70, actuating unit 80 and supply unit (not shown).
This supply unit is to this numerically-controlled machine power supply, the actuating unit 80 that this control device 60 is controlled these drive unit 70 driving numerically-controlled machines operates, wherein, actuating unit 80 comprises the parts that NC cutting cutter head, NC laser welding head, numerical control operated platform, robot arm etc. can be controlled by software program.Control device 60 includes but not limited to acceleration/deceleration control device 601.Acceleration/deceleration control device 601 is used for the acceleration of switching place of adjacent machining locus is controlled and made it non-vanishing.
In the present embodiment, acceleration/deceleration control device 601 comprises:
Switching place speed calculation module is used for calculating the speed v of the first switching place
sSpeed v with the second switching place
eValue range.
The acceleration calculation module is used for the speed v according to the first switching place of switching place speed calculation module calculating acquisition
sSpeed v with the second switching place
eValue range calculate the initial acceleration a of i+1 section machining locus
sWith terminal point acceleration a
eThe maximum possible value.
The speed planning module is used for the speed v according to the first switching place of switching place speed calculation module calculating acquisition
sSpeed v with the second switching place
eValue range and the initial acceleration a of the i+1 section machining locus that obtains of acceleration calculation module
sWith terminal point acceleration a
eThe maximum possible value i+1 section machining locus is carried out S type curve speed planning so that the acceleration of the first switching place and the second switching place is non-vanishing.
Certainly, its specific works principle includes but not limited to Acceleration-deceleration Control Method and the device that previous embodiment is related, does not repeat them here.
The numerically-controlled machine of the present embodiment is by the speed v in the first switching place
sSpeed v with the second switching place
eObtain maximum initial acceleration and the maximum terminal point acceleration of the i+1 section machining locus that allows in scope, thereby i+1 section machining locus is carried out the planning of S type curve speed, make in process non-vanishing at the acceleration of the first switching place and the second switching place.Be zero at the acceleration of switching place compared to existing technology, the acceleration/deceleration control device of the embodiment of the present invention can effectively improve working (machining) efficiency, reduces in process the impact to lathe.
The above is only embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.