CN103618482A - Method for generating pulses with symmetric trapezoid acceleration and deceleration - Google Patents
Method for generating pulses with symmetric trapezoid acceleration and deceleration Download PDFInfo
- Publication number
- CN103618482A CN103618482A CN201310661637.0A CN201310661637A CN103618482A CN 103618482 A CN103618482 A CN 103618482A CN 201310661637 A CN201310661637 A CN 201310661637A CN 103618482 A CN103618482 A CN 103618482A
- Authority
- CN
- China
- Prior art keywords
- pulse
- deceleration
- acceleration
- moderating process
- accelerator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a method for generating pulses with symmetric trapezoid acceleration and deceleration. The method for generating the pulses with symmetric trapezoid acceleration and deceleration comprises the steps that firstly, data are initialized, wherein the initial velocity in the time zero of trapezoid acceleration, the initial velocity at the zero moment of trapezoid deceleration and the number of pulses in the acceleration process or the deceleration process are calculated; secondly, the frequency of pulses in the constant acceleration process and the frequency of pulses in the constant deceleration process are obtained, wherein a pulse frequency value calculated when the constant acceleration process stops serves as a pulse frequency value used when the constant deceleration process begins. Due to the fact that real-time control over each pulse in the operation process of a motor is carried out, the pulses with completely-symmetric acceleration and deceleration can be obtained.
Description
Technical field
The present invention relates to a kind of method that produces symmetrical trapezoidal acceleration and deceleration pulse.
Background technology
Along with the fast development of equipment manufacture, the performance of automation equipment is badly in need of improving, and motor is typical actuator in automation equipment, and the quality of control system runnability depends on whether the control of motor is reached to optimum state to a great extent.In research Electric Machine Control, find that the output pulse of most of controllers is asymmetric in acceleration and moderating process, will cause like this motor to stop the rotating speed that rotating speed constantly can not reach expectation, can have influence on motor and accurately control the performance of occasion.Traditional algorithm, the control curve of output can reach symmetrical effect in theory, in processor, realize and but have certain difference with theory, actual acceleration and deceleration stage output pulse frequency can stop in the pulse frequency higher than calculating in theory, and acceleration and deceleration stage umber of pulse is unpredictable, easily affects control precision.
Summary of the invention
The technical problem solving
The problem existing for solving prior art, the present invention proposes a kind of method that produces symmetrical trapezoidal acceleration and deceleration pulse.
Technical scheme
The present invention improves existing algorithm, and the calculated value that will speed up termination when slowing down is assigned to the value that reduction of speed starts, and can reach like this effect of acceleration and deceleration symmetry, is conducive to accurately control the run location of motor in motion control.
Technical scheme of the present invention is:
A kind of described method that produces symmetrical trapezoidal acceleration and deceleration pulse, is characterized in that: adopt following steps:
Step 1: initialization data:
Step 1.1: adopt formula g=f
1-β/(2f
1) obtain trapezoidal acceleration and deceleration zero initial velocity g constantly, wherein f
1be the initial velocity value that motor is set, β is motor acceleration;
Step 1.2: utilize formula { [g+ (g+ β t
m)]/2}t
m=m-1 obtains the umber of pulse m of accelerator or moderating process, wherein t
mto accelerate or total time of moderating process;
Step 2: enter even accelerator, calculate the frequency of each pulse in even accelerator, and the accelerator umber of pulse obtaining according to step 1 determines that even accelerator finishes;
Step 3: after even accelerator finishes, with motor actuating speed constant-speed operation, then enter even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency value that when the even accelerator of usining stops, the pulse frequency value of calculating starts as even moderating process; Calculate the frequency of each pulse in even moderating process, and the moderating process umber of pulse obtaining according to step 1 determines that even moderating process finishes.
Beneficial effect
The present invention improves on the basis of existing motor control method, by the processing to initial velocity, acceleration, actuating speed, deceleration, these parameters of termination speed, can draw the umber of pulse needing in motor operation course, and the frequency of each pulse.Real-time control by each pulse in motor operation course, just can obtain the pulse of acceleration and deceleration full symmetric.
Accompanying drawing explanation
Fig. 1: flow chart of the present invention;
Fig. 2: the pulse train in trapezoidal acceleration and deceleration process constantly;
Fig. 3: the moment waveform of asymmetric acceleration and deceleration process;
Fig. 4: the moment waveform of symmetrical acceleration and deceleration process;
Fig. 5: the oscillogram of the actual output in embodiment.
Embodiment
Below in conjunction with specific embodiment, the present invention is described:
Given first principle of the present invention, for the pulse train in the trapezoidal acceleration and deceleration process shown in Fig. 2 constantly, when motor is with initial velocity f
1start, with acceleration β, accelerate, with actuating speed f
sconstant-speed operation, the rate equation of motor can be expressed as: f=g+ β t, wherein g represents a value lower than toggle speed.
T in Fig. 2
1, t
2, t
3, t
4, t
5..., t
mrepresent the initial time that different frequency pulse sends, in each time interval, a step angle of motor rotation, so each little trapezoidal area is 1.The time interval Δ t of two adjacent pulses
m=t
m+1– t
m.This pulse frequency f=1/ Δ t constantly exporting
m, the pulse frequency of this pulse frequency during with this center time point is identical.
In Fig. 2, if t=Δ t
1/ 2 o'clock, at Δ t
1=1/f
1time, f=g+ β t can become f
1=g+ Δ t
1/ 2=g+ β/(2f
1), g=f
1-β/(2f
1).
T in Fig. 2
mconstantly, there is m-1 pulse to produce, so to t
mtrapezoidal integration constantly can obtain { [g+ (g+ β t
m)]/2}t
m=m-1, obtains t
m={ [g
2+ 2 (m-1) β)]
1/2-g}/β, the time interval that can obtain adjacent two pulses is: Δ t
m=t
m+1-t
m={ (g
2+ 2m β)
1/2-[g
2+ 2 (m-1) β)]
1/2}/β, frequency that can each pulse in acceleration and deceleration process is: f
m=1/ Δ t
m={ (g
2+ 2m β)
1/2+ [g
2+ 2 (m-1) β)]
1/2}/2.
According to above-mentioned principle, the method that produces symmetrical trapezoidal acceleration and deceleration pulse in the present embodiment adopts following steps:
Step 1: initialization data:
Step 1.1: adopt formula g=f
1-β/(2f
1) obtain trapezoidal acceleration and deceleration zero initial velocity g constantly, wherein f
1be the initial velocity value that motor is set, β is motor acceleration;
Step 1.2: utilize formula { [g+ (g+ β t
m)]/2}t
m=m-1 obtains the umber of pulse m of accelerator or moderating process, wherein t
mto accelerate or total time of moderating process; So just can guarantee to control motor in the operational mode that automatically switches of different stages.
Step 2: enter even accelerator, calculate the frequency of each pulse in even accelerator, and the accelerator umber of pulse obtaining according to step 1 determines that even accelerator finishes;
Step 3: after even accelerator finishes, with motor actuating speed constant-speed operation, then enter even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency value that when the even accelerator of usining stops, the pulse frequency value of calculating starts as even moderating process; Calculate the frequency of each pulse in even moderating process, and the moderating process umber of pulse obtaining according to step 1 determines that even moderating process finishes.
If the pulse frequency value that the pulse frequency value of calculating when not usining even accelerator termination here starts as even moderating process, can cause moderating process to take actuating speed value calculates as initial value, like this under certain deceleration pulse, pulse frequency when motor stops is larger, easy like this motor is caused to certain damage.
In the present embodiment, whole method realizes in FPGA, the pulse that can observe control output by the waveform of output is symmetrical (shown in Fig. 5), realized acceleration initially identical with deceleration termination pulse frequency constantly, the pulse frequency that realization should reach when arriving deceleration termination with given umber of pulse.The symmetrical acceleration and deceleration pulse that this method produces, is conducive to control the pulse frequency of slowing down while stopping, and can make like this motor improve a lot aspect vibration characteristics.
Claims (1)
1. a method that produces symmetrical trapezoidal acceleration and deceleration pulse, is characterized in that: adopt following steps:
Step 1: initialization data:
Step 1.1: adopt formula g=f
1-β/(2f
1) obtain trapezoidal acceleration and deceleration zero initial velocity g constantly, wherein f
1be the initial velocity value that motor is set, β is motor acceleration;
Step 1.2: utilize formula { [g+ (g+ β t
m)]/2}t
m=m-1 obtains the umber of pulse m of accelerator or moderating process, wherein t
mto accelerate or total time of moderating process;
Step 2: enter even accelerator, calculate the frequency of each pulse in even accelerator, and the accelerator umber of pulse obtaining according to step 1 determines that even accelerator finishes;
Step 3: after even accelerator finishes, with motor actuating speed constant-speed operation, then enter even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency value that when the even accelerator of usining stops, the pulse frequency value of calculating starts as even moderating process; Calculate the frequency of each pulse in even moderating process, and the moderating process umber of pulse obtaining according to step 1 determines that even moderating process finishes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310661637.0A CN103618482B (en) | 2013-12-09 | 2013-12-09 | Method for generating pulses with symmetric trapezoid acceleration and deceleration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310661637.0A CN103618482B (en) | 2013-12-09 | 2013-12-09 | Method for generating pulses with symmetric trapezoid acceleration and deceleration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103618482A true CN103618482A (en) | 2014-03-05 |
CN103618482B CN103618482B (en) | 2017-01-11 |
Family
ID=50169185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310661637.0A Active CN103618482B (en) | 2013-12-09 | 2013-12-09 | Method for generating pulses with symmetric trapezoid acceleration and deceleration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103618482B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612455A (en) * | 2017-08-11 | 2018-01-19 | 歌尔股份有限公司 | Motor control method, device and sports equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02133080A (en) * | 1988-11-09 | 1990-05-22 | Fuji Electric Co Ltd | Deceleration instructing circuit for motor |
CN1845021A (en) * | 2005-04-08 | 2006-10-11 | 三菱电机株式会社 | Command generating device |
CN102298359A (en) * | 2011-06-18 | 2011-12-28 | 山东大学 | Method for controlling acceleration and deceleration in numerical control system to transit smoothly |
CN103312248A (en) * | 2013-05-16 | 2013-09-18 | 哈尔滨工程大学 | Method for compensating inflection point error of linear acceleration to deceleration based on DSP (Digital Signal Processor) |
-
2013
- 2013-12-09 CN CN201310661637.0A patent/CN103618482B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02133080A (en) * | 1988-11-09 | 1990-05-22 | Fuji Electric Co Ltd | Deceleration instructing circuit for motor |
CN1845021A (en) * | 2005-04-08 | 2006-10-11 | 三菱电机株式会社 | Command generating device |
CN102298359A (en) * | 2011-06-18 | 2011-12-28 | 山东大学 | Method for controlling acceleration and deceleration in numerical control system to transit smoothly |
CN103312248A (en) * | 2013-05-16 | 2013-09-18 | 哈尔滨工程大学 | Method for compensating inflection point error of linear acceleration to deceleration based on DSP (Digital Signal Processor) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107612455A (en) * | 2017-08-11 | 2018-01-19 | 歌尔股份有限公司 | Motor control method, device and sports equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103618482B (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106444635B (en) | A kind of asymmetric S curve Acceleration-deceleration Control Method and device of kinetic control system | |
CN103466452B (en) | Crane operation control method and system | |
CN103303454B (en) | A kind of electric steering gear device based on speed ring commutation and control method thereof | |
CN104228887B (en) | The method and system that a kind of ATO grade is adjusted in real time | |
CN102355193A (en) | On-line rotational inertia identification device for alternate current permanent magnet servo system and identification method | |
CN106341063B (en) | Control of Step Motor's Acceleration and Deceleration method | |
CN110109490A (en) | A kind of adaptive-feedrate adjustment method of stepper motor driving head | |
CN101917159A (en) | System and method for controlling running speed and displacement of linear motor | |
CN102522944B (en) | Servo-motor acceleration-deceleration control method for servo pressure machine | |
CN101699763A (en) | Rotary inertia identification method for permanent magnet synchronous motor AC servo system | |
CN107670929A (en) | A kind of dispensing method of point gum machine | |
CN108396451B (en) | A kind of discrete velocity control method of Intelligent glove machine cylinder needle selection | |
CN108958173A (en) | S curve deceleration planning method under any velocity of displacement based on trapezoidal solution | |
CN103312248B (en) | Method for compensating inflection point error of linear acceleration to deceleration based on DSP (Digital Signal Processor) | |
CN103412511B (en) | A kind of permagnetic synchronous motor direct-drive oil extractor controls system and control method | |
CN105471353A (en) | Servo-motor rotary inertia identification method and apparatus thereof | |
CN101537477A (en) | Non-sinusoidal waveform generator used for mold oscillation | |
CN103618482A (en) | Method for generating pulses with symmetric trapezoid acceleration and deceleration | |
CN106788084B (en) | Motion control method and device, motion trail planning method | |
CN105720864B (en) | Decelerating through motor frequency gives method, frequency converter and system | |
CN102904482B (en) | Ultralow rotation speed control method of ultrasonic motor | |
CN109639200A (en) | A kind of rotary inertia on-line identification method based on electric motor load torque detection | |
CN107932509A (en) | A kind of SPTA acceleration and deceleration interpolation control methods for robot control system | |
CN103253565B (en) | Elevator, and method and device for setting operating speed of elevator | |
CN108311321A (en) | The frequency converter and its driving method and system of a kind of application lifting reciprocating engine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |