Summary of the invention
The technical matters that the present invention mainly solves provides a kind of method and device thereof that obtains the S type curve of digital control system, can improve the computational accuracy of deceleration planning, solves the jitter problem in the process.
For solving the problems of the technologies described above, an aspect of of the present present invention is: a kind of method of obtaining the S type curve of digital control system is provided, comprises: the original time length to each time period of the S type curve of digital control system is carried out the rounding time span that rounding obtains each corresponding time period; Obtain peak acceleration, maximum deceleration, maximum acceleration and the target velocity of S type curve according to the rounding time span of each time period; Rounding time span, peak acceleration, maximum deceleration, maximum acceleration and target velocity according to each time period obtain length of curve corresponding to each time period; According to the displacement of S type curve corresponding to the time point of length of curve acquisition S type curve corresponding to each time period, to finish the planning of described S type curve.
Wherein, the original time length of each time period of the S type curve of digital control system being carried out the step that rounding obtains the rounding time span of each corresponding time period specifically comprises: each time period A that obtains S type curve
iThe original time length T
i, wherein, each time period A
iBe specially: add boost phase A
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6And subtract decelerating phase A
7, each time period A
iOriginal time length be shown below:
T
i=n
i·T+Δt
i
Wherein, T
iExpression original time length, n
iBe integer, T is interpolation cycle, Δ t
iExpression is less than the time span of an interpolation cycle T, 0<Δ t
i<T, i=1,2 ..., 7;
To each time period A
iThe original time length T
iIn the time span Δ t less than an interpolation cycle T
iRounding is that an interpolation cycle T obtains each time period A
iThe rounding time span, wherein, each time period A
iThe rounding time span be shown below:
T
i′=(n
i+1)·T
Wherein, T
i' expression rounding time span.
Wherein, the step that obtains peak acceleration, maximum deceleration, maximum acceleration and the target velocity of S type curve according to the rounding time span of each time period specifically comprises: according to each time period A
iRounding time span T
i', peak acceleration, maximum deceleration, maximum acceleration, target velocity and each time period A
iSpeed and the relation between the length of curve of corresponding section end point obtain respectively following system of equations:
Each time period A
iThe rate equation group (1) of corresponding section end point:
The length of curve system of equations (2) that each time period is corresponding:
Wherein, f
1, f
2, f
3, f
4, f
5, f
6Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6The speed of corresponding section end point, f
sThe initial velocity of expression S type curve, f represents the target velocity of S type curve, l
1, l
2, l
3, l
4, l
5, l
6, l
7Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6, subtract decelerating phase A
7Corresponding length of curve, A represents peak acceleration, and D represents maximum deceleration, and J represents maximum acceleration;
According to each time period A
iCorresponding length of curve and the relation of S type curve total length obtain following formula:
L=l
1+l
2+l
3+l
4+l
5+l
6+l
7 (3)
Wherein, L represents S type curve total length;
System of equations (1), (2) substitution formula (3) are obtained following formula:
Further obtain target velocity f according to formula (4), shown in the formula specific as follows:
According to each time period A
iRounding time span T
i' and peak acceleration A, maximum deceleration D, maximum acceleration J, target velocity f between relation obtain following system of equations:
Wherein, f
eThe terminal velocity of expression S type curve;
Further obtain peak acceleration A, maximum deceleration D, maximum acceleration J according to system of equations (6), respectively as following various shown in:
Wherein, the step that obtains length of curve corresponding to each time period according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration and the target velocity of each time period specifically comprises: with each time period A
iRounding time span T
i', formula (5), (7), (8), (9) target velocity f, the peak acceleration A, maximum deceleration D and the maximum acceleration J substitution system of equations (1) that obtain respectively obtain each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6With each time period A
iRounding time span T
i', target velocity f, peak acceleration A, maximum deceleration D, maximum acceleration J and each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6Substitution system of equations (2) obtains each time period A
iCorresponding length of curve l
1, l
2, l
3, l
4, l
5, l
6, l
7
Wherein, the step that obtains the displacement of S type curve corresponding to the time point of S type curve according to length of curve corresponding to each time period specifically comprises: obtain the time point of S type curve and the time period A at time point place according to system of equations (2)
iCorresponding starting point is t constantly
I-1Between curve distance, specific as follows shown in:
Wherein, t represents the time point of S type curve, l
iThe time point t of ' expression S type curve and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance, t
iRepresent each time period A
iTerminal point constantly, i=1,2 ..., 7;
According to each time period A
iCorresponding length of curve, the time point t of S type curve and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance l (t) obtain the displacement of S type curve corresponding to time point t, specific as follows shown in:
The displacement of the S type curve that wherein, the time point t of L (t) expression S type curve is corresponding.
For solving the problems of the technologies described above, another aspect of the present invention is: a kind of device that obtains the S type curve of digital control system is provided, comprise: time span rounding module is used for the original time length of each time period of the S type curve of digital control system is carried out rounding and obtained the rounding time span of each corresponding time period; The parameter of curve acquisition module is used for peak acceleration, maximum deceleration, maximum acceleration and target velocity according to the rounding time span acquisition S type curve of each time period; The length of curve acquisition module is used for obtaining length of curve corresponding to each time period according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration and the target velocity of each time period; The curve displacement acquisition module is used for the displacement according to S type curve corresponding to the time point of length of curve acquisition S type curve corresponding to each time period.
Wherein, time span rounding module specifically comprises: original time length acquiring unit, and for each time period A that obtains S type curve
iThe original time length T
i, wherein, each time period A
iBe specially: add boost phase A
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6And subtract decelerating phase A
7, each time period A
iOriginal time length be shown below:
T
i=n
i·T+Δt
i
Wherein, T
iExpression original time length, n
iBe integer, T is interpolation cycle, Δ t
iExpression is less than the time span of an interpolation cycle T, 0<Δ t
i<T, i=1,2 ..., 7;
Rounding time span acquiring unit is used for each time period A
iThe original time length T
iIn the time span Δ t less than an interpolation cycle T
iRounding is that an interpolation cycle T obtains each time period A
iThe rounding time span, wherein, each time period A
iThe rounding time span be shown below:
T
i′=(n
i+1)·T
Wherein, T
i' expression rounding time span.
Wherein, the parameter of curve acquisition module specifically comprises: the target velocity acquiring unit is used for according to each time period A
iRounding time span T
i', peak acceleration, maximum deceleration, maximum acceleration, target velocity and each time period A
iSpeed and the relation between the length of curve of corresponding section end point obtain respectively following system of equations:
Each time period A
iThe rate equation group (1) of corresponding section end point:
The length of curve system of equations (2) that each time period is corresponding:
Wherein, f
1, f
2, f
3, f
4, f
5, f
6Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6The speed of corresponding section end point, f
sThe initial velocity of expression S type curve, f represents the target velocity of S type curve, l
1, l
2, l
3, l
4, l
5, l
6, l
7Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6, subtract decelerating phase A
7Corresponding length of curve, A represents peak acceleration, and D represents maximum deceleration, and J represents maximum acceleration;
The target velocity acquiring unit also is used for according to each time period A
iCorresponding length of curve and the relation of S type curve total length obtain following formula:
L=l
1+l
2+l
3+l
4+l
5+l
6+l
7 (3)
Wherein, L represents S type curve total length;
The target velocity acquiring unit also is used for described system of equations (1), (2) substitution formula (3) are obtained following formula:
The target velocity acquiring unit also is used for obtaining target velocity f according to formula (4), shown in the formula specific as follows:
Acceleration obtainment unit is used for according to each time period A
iRounding time span T
i' and peak acceleration A, maximum deceleration D, maximum acceleration J, target velocity f between relation obtain following system of equations:
Wherein, f
eThe terminal velocity of expression S type curve;
Acceleration obtainment unit also is used for obtaining peak acceleration A, maximum deceleration D, maximum acceleration J according to system of equations (6), respectively as following various shown in:
Wherein, the length of curve acquisition module specifically comprises: the last spot speed acquiring unit of section is used for each time period A
iRounding time span T
i', target velocity f, peak acceleration A, maximum deceleration D and maximum acceleration J substitution system of equations (1) obtain each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6Time step curve length acquiring unit is used for each time period A
iRounding time span T
i', target velocity f, peak acceleration A, maximum deceleration D, maximum acceleration J and each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6Substitution system of equations (2) obtains each time period A
iCorresponding length of curve l
1, l
2, l
3, l
4, l
5, l
6, l
7
Wherein, the curve displacement acquisition module specifically comprises: the curve distance acquiring unit is used for obtaining the time point of S type curve and the time period A at time point place according to system of equations (2)
iCorresponding starting point is t constantly
I-1Between curve distance, specific as follows shown in:
Wherein, t represents the time point of S type curve, l
iThe time point t of ' expression S type curve and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance, t
iRepresent each time period A
iTerminal point constantly, i=1,2 ..., 7;
The curve displacement acquiring unit is used for according to each time period A
iCorresponding length of curve, the time point t of S type curve and the time period A at time point t place
iThe curve distance l (t) of corresponding starting point between constantly obtains the displacement of S type curve corresponding to time point t, specific as follows shown in:
The displacement of the S type curve that wherein, the time point of L (t) expression S type curve is corresponding.
The invention has the beneficial effects as follows: be different from the situation of prior art, embodiment of the present invention is carried out the rounding time span that rounding obtains each corresponding time period by the original time length to each time period of the S type curve of digital control system; Be peak acceleration, maximum deceleration, maximum acceleration and the target velocity that the rounding time span of each time period of interpolation cycle integral multiple obtains S type curve according to time span, improve the degree of accuracy of the parameter value such as peak acceleration; Further rounding time span, peak acceleration, maximum deceleration, maximum acceleration and the target velocity according to each time period obtains length of curve corresponding to each time period; Obtain at last the displacement corresponding to time point of S type curve according to length of curve corresponding to each time period, can improve the computational accuracy of deceleration planning, solve the jitter problem in the process.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiments.Based on the embodiment among 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, method one embodiment that the present invention obtains the S type curve of digital control system may further comprise the steps:
Step S101: original time length is carried out rounding obtain the rounding time span;
Original time length to each time period of the S type curve of digital control system is carried out the rounding time span that rounding obtains each corresponding time period.S type curve index control system is S-type in the rate curve shape in acceleration and deceleration stage.S type curve specifically comprises seven continuous time periods, lights respectively to be from S type curve: add boost phase, even boost phase, subtract boost phase, at the uniform velocity stage, acceleration and deceleration stage, even decelerating phase and the decelerating phase of subtracting; Wherein, add boost phase and refer to acceleration and the continuous time period that increases of speed in the S type curve, even boost phase refers to the time period that acceleration remains unchanged, speed constantly increases, subtract the time period that boost phase refers to that acceleration constantly reduces, speed constantly increases, at the uniform velocity the stage refers to the time period that acceleration and speed all remain unchanged, the acceleration and deceleration stage refers to that retarded velocity constantly increases, ever-reduced time period of speed, even decelerating phase refer to that retarded velocity remains unchanged, the ever-reduced time period of speed, subtracts the decelerating phase to refer to retarded velocity and ever-reduced time period of speed.The rounding time span refers to that the time span of each time period is the integral multiple of interpolation cycle.
Step S102: obtain peak acceleration, maximum deceleration, maximum acceleration and target velocity according to the rounding time span;
Further obtain peak acceleration, maximum deceleration, maximum acceleration and the target velocity of S type curve according to the rounding time span that adds seven time periods such as boost phase of step S101 acquisition.Wherein, acceleration is the derivative of acceleration.
Step S103: obtain length of curve according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration and target velocity;
The rounding time span that adds seven time periods such as boost phase according to step S102 acquisition, the peak acceleration of S type curve, maximum deceleration, maximum acceleration and target velocity further obtain to add seven lengths of curve corresponding to time period such as boost phase, be the starting point moment and the curve distance of terminal point between the moment of each time period, for example even length of curve corresponding to boost phase is the starting point moment and the length of curve size of terminal point between the moment of even boost phase, the starting point of even boost phase is the terminal point moment that a time period adds boost phase constantly, and the terminal point of even boost phase is the starting point moment that the next time period subtracts boost phase constantly.
Step S104: according to the displacement of S type curve corresponding to the time point of length of curve acquisition S type curve corresponding to each time period.
Displacement according to S type curve corresponding to step S103 adding of obtaining time point that seven lengths of curve corresponding to time period such as boost phase further obtain S type curve, namely obtain the length of curve size between the starting point corresponding and S type curve of the random time point between the Origin And Destination on the S type curve, to finish the planning of S type curve.
See also Fig. 2, the present invention obtains in method one embodiment of S type curve of digital control system and original time length to be carried out rounding obtains the rounding time span and specifically comprise following substep:
Substep S1011: the original time length that obtains each time period;
Obtain each time period A of S type curve
iThe original time length T
i, namely add boost phase A
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6And subtract decelerating phase A
7The original time length T that difference is corresponding
1, T
2, T
3, T
4, T
5, T
6, T
7, the original time length T
iObtain according to digital control system parameters such as original peak acceleration, original maximum deceleration, original maximum accelerations.The original time length T
iValue formula specific as follows shown in:
T
i=n
i·T+Δt
i
Wherein, T
iExpression original time length, T is interpolation cycle, n
iBe integer, Δ t
iExpression is less than the time span of an interpolation cycle T, 0<Δ t
i<T, i=1,2 ..., 7.
Substep S1012: be an interpolation cycle to the time span rounding less than an interpolation cycle in the original time length of each time period.
Each time period A to S type curve
iThe original time length T
iIn the time span Δ t less than an interpolation cycle
iRounding is that an interpolation cycle T obtains each time period A
iRounding time span T
i', rounding time span T
i' be the integral multiple of interpolation cycle T time span, rounding time span T
i' value formula specific as follows shown in:
T
i′=(n
i+1)·T
Wherein, T
i' expression rounding time span, n
iBe above-mentioned original time length T
iIn n
iThe below is illustrated the rounding of original time length, for example as even boost phase A
2Corresponding original time length T
2=5T+ Δ t
2(0<Δ t
2<T), n
2=5, this moment is to the original time length T
2In the time span Δ t less than an interpolation cycle T
2Rounding is that an interpolation cycle T obtains even boost phase A
2Corresponding rounding time span T
2The T=6T of '=(5+1); As Δ t
2=0 o'clock, rounding time span T
2'=5T.
The rounding time span T of above-mentioned acquisition
i' be the integral multiple of interpolation cycle T, meet the rule that motor is inputted take interpolation cycle T as chronomere, utilize rounding time span T
i' further adjust the parameters such as peak acceleration that obtain S type curve, can improve the computational accuracy of S type curve planning.
See also Fig. 3, the present invention obtains and obtains peak acceleration, maximum deceleration, maximum acceleration and target velocity according to the rounding time span in method one embodiment of S type curve of digital control system and specifically comprise following substep:
Substep S1021: speed and length of curve according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration, target velocity and section end point obtain respectively system of equations (1), (2);
According to each time period A
iRounding time span T
i', peak acceleration A, maximum deceleration D, maximum acceleration J, target velocity f and each time period A of S type curve
iThe speed of corresponding section end point and the relation between the length of curve be rate equation group (1), the length of curve system of equations (2) put of the section of acquisition end respectively, shown in system of equations (1), (2) are specific as follows:
Each time period A
iThe rate equation group (1) of corresponding section end point:
Each time period A
iCorresponding length of curve system of equations (2):
Wherein, f
1, f
2, f
3, f
4, f
5, f
6Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6The speed of corresponding section end point, f
sThe initial velocity of expression curve, f represents the target velocity of curve, l
1, l
2, l
3, l
4, l
5, l
6, l
7Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6, subtract decelerating phase A
7Corresponding length of curve, A represents peak acceleration, and D represents maximum deceleration, and J represents maximum acceleration.
Substep S1022: the relation according to length of curve corresponding to each time period and curve total length obtains formula (3);
According to each time period A
iCorresponding length of curve and the relation of S type curve total length obtain formula (3) as follows:
L=l
1+l
2+l
3+l
4+l
5+l
6+l
7 (3)
Wherein, L represents S type curve total length.
Substep S1023: obtain target velocity according to system of equations (1), (2) and formula (3);
Above-mentioned system of equations (1), (2) corresponding substitution formula (3) are obtained the relational expression between curve total length and rounding time span, target velocity, initial velocity and the terminal velocity, i.e. formula as follows (4):
Further obtain target velocity f according to formula (4), shown in the formula specific as follows:
With rounding time span T
i, initial velocity f
sAnd terminal velocity f
eThe above-mentioned formula of value substitution (5) can obtain the value of target velocity f.
Substep S1024: obtain peak acceleration, maximum deceleration, maximum acceleration according to the relation equation group between rounding time span and peak acceleration, maximum deceleration, maximum acceleration, the target velocity.
According to each time period A
iRounding time span T
i' and peak acceleration A, maximum deceleration D, maximum acceleration J and target velocity f between relation obtain rounding time span T
i' about the system of equations (3) of peak acceleration A, maximum deceleration D, maximum acceleration J, target velocity f:
Wherein, f
eThe terminal velocity of expression S type curve;
Further obtain peak acceleration A, maximum deceleration D, maximum acceleration J according to above-mentioned system of equations (6), respectively as following various shown in:
With target velocity f, rounding time span T
i', initial velocity F
sAnd terminal velocity f
eThe above-mentioned formula of value substitution (7), (8), (9) can obtain respectively the value of peak acceleration A, maximum deceleration D and maximum acceleration J.
Utilize time span to be the rounding time span T of the integral multiple of interpolation cycle T
i' obtain target velocity f, peak acceleration A, maximum deceleration D and maximum acceleration J, can eliminate speed and the sudden change of acceleration of interpolation cycle T final step, solve the jitter problem in the process.
See also Fig. 4, the present invention obtains and obtains length of curve according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration and target velocity in method one embodiment of S type curve of digital control system and specifically comprise following substep:
Substep S1031: the speed that obtains section end point according to rounding time span, target velocity, peak acceleration, maximum deceleration and maximum acceleration;
With each time period A
iRounding time span T
i', the rate equation group (1) among the above-mentioned substep S1021 of target velocity f, peak acceleration A, maximum deceleration D and maximum acceleration J substitution that obtains respectively of above-mentioned formula (5), (7), (8), (9) obtains each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6
Substep S1032: the speed according to rounding time span, target velocity, peak acceleration, maximum deceleration, maximum acceleration and section end point obtains length of curve.
Further with each time period A
iRounding time span T
i', each time period A of obtaining of target velocity f, peak acceleration A, maximum deceleration D, maximum acceleration J and step S1031
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6Length of curve system of equations (2) among the above-mentioned substep S1021 of substitution and obtain each time period A
iCorresponding length of curve l
1, l
2, l
3, l
4, l
5, l
6, l
7
See also Fig. 5, the present invention obtains and obtains displacement corresponding to time point according to length of curve corresponding to each time period in method one embodiment of S type curve of digital control system and specifically comprise following substep:
Substep S1041: time point starting point the curve distance moment between corresponding with the time period at time point place that obtains S type curve according to system of equations (2);
With the rounding time span T in the length of curve system of equations (2) among the above-mentioned substep S1021
i' replace with the time point of S type curve and the time period A at time point place
iCorresponding starting point is t constantly
I-1Between time span, can obtain the time point of S type curve and the time period A at time point place
iCorresponding starting point is t constantly
I-1Between curve distance, shown in the piecewise function formula (10) specific as follows:
Wherein, t represents the time point of S type curve, l
iThe time point t of ' expression S type curve and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance, t
iRepresent each time period A
iTerminal point constantly, i=1,2 ..., 7.The time point t that for example works as S type curve
1≤ t<t
2The time, i.e. the time period A at time point t place
iBe even boost phase A
2, with in the corresponding above-mentioned piecewise function formula of substitution of the value of t (10)
Obtain l
2' value, namely obtain t and A
2Starting point t constantly
1Between curve distance l
2'.
Substep S1042: obtain displacement corresponding to time point according to the curve distance of length of curve, the time point starting point corresponding with the time period at time point place between constantly.
According to each time period A
iThe time point t of the S type curve that corresponding length of curve, substep S1041 obtain and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance l (t) further obtain the displacement of S type curve corresponding to time point t, shown in the piecewise function formula specific as follows (11):
The displacement of the S type curve that wherein, the time point t of L (t) expression S type curve is corresponding.The time point t that for example works as S type curve
1≤ t<t
2The time, will add the length of curve of boost phase and t and the A that substep S1041 obtains
2Starting point t constantly
1Between curve distance l
2L in the above-mentioned piecewise function formula of ' corresponding substitution (11)
1+ l
2' obtain the value of L (t), namely obtain the displacement L (t) of S type curve corresponding to time point t, the displacement L (t) of S type curve is the starting point of S type curve and the curve distance between the time point t.
Relation between the displacement of the time point that obtains S type curve and S type curve be above-mentioned piecewise function formula (11) afterwards, namely finish the deceleration planning of the S type curve of digital control system.The follow-up above-mentioned piecewise function formula (11) of can utilizing of digital control system is carried out Interpolation Process, the corresponding coordinate of each step-length that obtains processing, the corresponding coordinate of each step-length is sent to servo-driver with the control servomotor, so that the input of servomotor changes according to certain rule, lathe can both rest on the given position in the situation of various processing operations rapidly and accurately.
Be appreciated that method one embodiment that the present invention obtains the S type curve of digital control system carries out the rounding time span that rounding obtains each corresponding time period by the original time length to each time period of the S type curve of digital control system; Be peak acceleration, maximum deceleration, maximum acceleration and the target velocity that the rounding time span of each time period of interpolation cycle integral multiple obtains S type curve according to time span, improve the degree of accuracy of the parameter value such as peak acceleration; Further rounding time span, peak acceleration, maximum deceleration, maximum acceleration and the target velocity according to each time period obtains length of curve corresponding to each time period; According to the displacement of S type curve corresponding to the time point of length of curve acquisition S type curve corresponding to each time period, by the way, can improve the computational accuracy of deceleration planning at last, solve the jitter problem in the process.
See also Fig. 6, device one embodiment that the present invention obtains the S type curve of digital control system comprises:
Time span rounding module 201 is used for the original time length of each time period of the S type curve of digital control system is carried out rounding and obtained the rounding time span of each corresponding time period.
Parameter of curve acquisition module 202, the rounding time span that is used for each time period of obtaining according to time span rounding module 201 further obtains peak acceleration, maximum deceleration, maximum acceleration and the target velocity of S type curve.
Length of curve acquisition module 203 further obtains length of curve corresponding to each time period for the rounding time span of each time period that obtains according to time span rounding module 201 and peak acceleration, maximum deceleration, maximum acceleration and the target velocity of parameter of curve acquisition module 202 acquisitions.
Curve displacement acquisition module 204 is used for obtaining according to length of curve corresponding to each time period that length of curve acquisition module 203 obtains the displacement of S type curve corresponding to the time point of S type curve.
See also Fig. 7, the present invention obtains that time span rounding module specifically comprises in device one embodiment of S type curve of digital control system:
Original time length acquiring unit 2011 is for each time period A that obtains S type curve
iThe original time length T
i, wherein, each time period A
iBe specially: add boost phase A
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6And subtract decelerating phase A
7, each time period A
iOriginal time length be shown below:
T
i=n
i·T+Δt
i
Wherein, T
iExpression original time length, n
iBe integer, T is interpolation cycle, Δ t
iExpression is less than the time span of an interpolation cycle T, 0<Δ t
i<T, i=1,2 ..., 7;
Rounding time span acquiring unit 2012 is used for each time period A that original time length acquiring unit 2011 is obtained
iThe original time length T
iIn the time span Δ t less than an interpolation cycle T
iRounding is that an interpolation cycle T obtains each time period A
iThe rounding time span, wherein, each time period A
iThe rounding time span be shown below:
T
i′=(n
i+1)·T
Wherein, T
i' expression rounding time span.
See also Fig. 8, the present invention obtains that the parameter of curve acquisition module specifically comprises in device one embodiment of S type curve of digital control system:
Target velocity acquiring unit 2021 is used for each time period A that obtains according to rounding time span acquiring unit 2012
iRounding time span T
i', peak acceleration, maximum deceleration, maximum acceleration, target velocity and each time period A
iSpeed and the relation between the length of curve of corresponding section end point obtain respectively following system of equations:
Each time period A
iThe rate equation group (1) of corresponding section end point:
The length of curve system of equations (2) that each time period is corresponding:
Wherein, f
1, f
2, f
3, f
4, f
5, f
6Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6The speed of corresponding section end point, f
sThe initial velocity of expression S type curve, f represents the target velocity of S type curve, l
1, l
2, l
3, l
4, l
5, l
6, l
7Expression adds boost phase A respectively
1, even boost phase A
2, subtract boost phase A
3, stage A at the uniform velocity
4, the acceleration and deceleration stage A
5, even decelerating phase A
6, subtract decelerating phase A
7Corresponding length of curve, A represents peak acceleration, and D represents maximum deceleration, and J represents maximum acceleration;
Target velocity acquiring unit 2021 also is used for according to each time period A
iCorresponding length of curve and the relation of S type curve total length obtain following formula:
L=l
1+l
2+l
3+l
4+l
5+l
6+l
7 (3)
Wherein, L represents S type curve total length;
Target velocity acquiring unit 2021 also is used for system of equations (1), (2) substitution formula (3) are obtained following formula (4):
Target velocity acquiring unit 2021 also is used for obtaining target velocity f according to formula (4), shown in the formula specific as follows (5):
Acceleration obtainment unit 2022 is used for each time period A that obtains according to rounding time span acquiring unit 2012
iRounding time span T
i' and peak acceleration A, maximum deceleration D, maximum acceleration J, target velocity f between relation obtain following system of equations:
Wherein, f
eThe terminal velocity of expression S type curve;
Acceleration obtainment unit 2022 also is used for obtaining peak acceleration A, maximum deceleration D, maximum acceleration J according to system of equations (6), respectively as following various shown in:
Acceleration obtainment unit 2022 is further with target velocity f, rounding time span T
i', initial velocity f
sAnd terminal velocity f
eThe above-mentioned formula of value substitution (7), (8), (9) can obtain respectively the value of peak acceleration A, maximum deceleration D and maximum acceleration J.
See also Fig. 9, the present invention obtains that the length of curve acquisition module specifically comprises in device one embodiment of S type curve of digital control system:
The last spot speed acquiring unit 2031 of section is used for each time period A that rounding time span acquiring unit 2012 is obtained
iRounding time span T
i', the target velocity f that obtains of target velocity acquiring unit 2021, peak acceleration A, maximum deceleration D and the maximum acceleration J substitution system of equations (1) that acceleration obtainment unit 2022 obtains further obtain each time period A
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6
Time step curve length acquiring unit 2032 is used for each time period A that rounding time span acquiring unit 2012 is obtained
iRounding time span T
i', each time period A of obtaining of target velocity f that target velocity acquiring unit 2021 obtains, the last spot speed acquiring unit 2031 of peak acceleration A, maximum deceleration D, maximum acceleration J and section that acceleration obtainment unit 2022 obtains
i(i=1,2 ..., 6) and the corresponding last speed f that puts of section
1, f
2, f
3, f
4, f
5, f
6Substitution system of equations (2) further obtains each time period A
iCorresponding length of curve l
1, l
2, l
3, l
4, l
5, l
6, l
7
See also Figure 10, the present invention obtains that the curve displacement acquisition module specifically comprises in device one embodiment of S type curve of digital control system:
Curve distance acquiring unit 2041 is used for obtaining the time point of S type curve and the time period A at time point place according to system of equations (2)
iCorresponding starting point is t constantly
I-1Between curve distance, specific as follows shown in:
Wherein, t represents the time point of S type curve, l
iThe time point t of ' expression S type curve and the time period A at time point t place
iCorresponding starting point is t constantly
I-1Between curve distance, t
iRepresent each time period A
iTerminal point constantly, i=1,2 ..., 7.The time point t that for example works as S type curve
1≤ t<t
2The time, i.e. the time period A at time point t place
iBe even boost phase A
2, with in the corresponding above-mentioned piecewise function formula of substitution of the value of t (10)
Obtain l
2' value, namely obtain t and A
2Starting point t constantly
1Between curve distance l
2'.
Curve displacement acquiring unit 2042 is used for each time period A that obtains according to time step curve length acquiring unit 2032
iThe time point t of the S type curve that corresponding length of curve, curve distance acquiring unit 2041 obtain and the time period A at time point t place
iThe curve distance l (t) of corresponding starting point between constantly further obtains the displacement of S type curve corresponding to time point t, specific as follows shown in:
The displacement of the S type curve that wherein, the time point of L (t) expression S type curve is corresponding.The time point t that for example works as S type curve
1≤ t<t
2The time, will add the length of curve of boost phase and t and the A that substep S1041 obtains
2Starting point t constantly
1Between curve distance l
2L in the above-mentioned piecewise function formula of ' corresponding substitution (11)
i+ l
2' obtain the value of L (t), namely obtain the displacement L (t) of S type curve corresponding to time point t, the displacement L (t) of S type curve is the starting point of S type curve and the curve distance between the time point t.
Be appreciated that device one embodiment that the present invention obtains the S type curve of digital control system carries out the rounding time span that rounding obtains each corresponding time period by the original time length of each time period of the S type curve of 201 pairs of digital control systems of time span rounding module; Parameter of curve acquisition module 202 is peak acceleration, maximum deceleration, maximum acceleration and the target velocity that the rounding time span of each time period of interpolation cycle integral multiple obtains S type curve according to time span, the degree of accuracy of the parameter values such as raising peak acceleration; Length of curve acquisition module 203 further obtains length of curve corresponding to each time period according to rounding time span, peak acceleration, maximum deceleration, maximum acceleration and the target velocity of each time period; Curve displacement acquisition module 204 according to the displacement of S type curve corresponding to the time point of length of curve acquisition S type curve corresponding to each time period, by the way, can improve the computational accuracy of deceleration planning at last, solves the jitter problem in the process.
The above only is embodiments of the present invention; be not so limit claim 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 the scope of patent protection of the present invention.