CN103618482B - Method for generating pulses with symmetric trapezoid acceleration and deceleration - Google Patents

Method for generating pulses with symmetric trapezoid acceleration and deceleration Download PDF

Info

Publication number
CN103618482B
CN103618482B CN201310661637.0A CN201310661637A CN103618482B CN 103618482 B CN103618482 B CN 103618482B CN 201310661637 A CN201310661637 A CN 201310661637A CN 103618482 B CN103618482 B CN 103618482B
Authority
CN
China
Prior art keywords
pulse
acceleration
deceleration
moderating process
motor
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.)
Active
Application number
CN201310661637.0A
Other languages
Chinese (zh)
Other versions
CN103618482A (en
Inventor
常铎
董卫虎
窦渭江
张亚云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
Original Assignee
705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp filed Critical 705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
Priority to CN201310661637.0A priority Critical patent/CN103618482B/en
Publication of CN103618482A publication Critical patent/CN103618482A/en
Application granted granted Critical
Publication of CN103618482B publication Critical patent/CN103618482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method producing symmetric trapezium acceleration and deceleration pulse
Technical field
The present invention relates to a kind of method producing symmetric trapezium 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 in automation equipment Typical actuator, the quality of control system runnability is heavily dependent on and controls whether to reach to motor Optimum state.In research motor controls, find that the output pulse of most of controller is being accelerated and in moderating process is being Asymmetric, so the rotating speed causing the motor stop timing can not be reached desired rotating speed, influence whether that motor is in essence Really control the performance of occasion.Traditional algorithm, the controlling curve exported in theory can reach symmetrical effect, can Being to realize but having with theory certain difference within a processor, actual acceleration and deceleration stage output pulse frequency can be higher than reason Stopping the when of the pulse frequency of calculating in opinion, and acceleration and deceleration stage pulse number is unpredictable, easily impact controls essence Degree.
Summary of the invention
Solve the technical problem that
For solving the problem that prior art exists, the present invention proposes a kind of method producing symmetric trapezium acceleration and deceleration pulse.
Technical scheme
Existing algorithm is improved by the present invention, when slowing down, the value of calculation of end of boost is assigned to the value that reduction of speed starts, So can reach the effect that acceleration and deceleration are symmetrical, be conducive to accurately controlling the run location of motor in motor control.
The technical scheme is that
A kind of described method producing symmetric trapezium acceleration and deceleration pulse, it is characterised in that: employing following steps:
Step 1: initialization data:
Step 1.1: use formula g=f1-β/(2f1) obtain the initial velocity g, wherein f in trapezoidal acceleration and deceleration zero moment1 Being the initial velocity value of motor setting, β is motor acceleration;
Step 1.2: utilize formula { [g+ (g+ β tm)]/2}tm=m-1 obtains the umber of pulse of accelerator or moderating process M, wherein tmIt is to accelerate or moderating process total time;
Step 2: enter even accelerator, calculates the frequency of each pulse in even accelerator, and obtains according to step 1 To accelerator umber of pulse determine that even accelerator terminates;
Step 3: after even accelerator terminates, with motor actuating speed constant-speed operation, then enters even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency calculated when terminating with even accelerator The pulse frequency value that rate value starts as even moderating process;Calculate the frequency of each pulse in even moderating process, and according to The moderating process umber of pulse that step 1 obtains determines that even moderating process terminates.
Beneficial effect
The present invention improves on the basis of existing motor control method, by initial velocity, acceleration, drive Dynamic speed, deceleration, the process of termination these parameters of speed, it can be deduced that the pulse needed in motor operation course Number, and the frequency of each pulse.By the real-time control to pulse each in motor operation course, it is possible to obtain The pulse that acceleration and deceleration are full symmetric.
Accompanying drawing explanation
The flow chart of Fig. 1: the present invention;
Fig. 2: the pulse sequence timings during trapezoidal acceleration and deceleration;
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.
Detailed description of the invention
Below in conjunction with specific embodiment the present invention described:
First the principle of the present invention is given, for the pulse sequence timings during the trapezoidal acceleration and deceleration shown in Fig. 2, when Motor is with initial velocity f1Start, accelerate with acceleration β, with actuating speed fsConstant-speed operation, the rate equation of motor Can be expressed as: f=g+ β t, wherein g represents a value less than toggle speed.
T in Fig. 21、t2、t3、t4、t5、……、tmRepresent the initial time of different frequency pulsing, In each time interval, motor rotates a step angle, so each little trapezoidal area is 1.Two adjacent arteries and veins The time interval Δ t of punchingm=tm+1–tm.The then pulse frequency f=1/ Δ t of this moment outputm, this pulse frequency and Ben Shi Between midpoint time pulse frequency identical.
In fig. 2, if t=is Δ t1When/2, at Δ t1=1/f1Time, f=g+ β t can become f1=g+ Δ t1/ 2=g+ β/(2f1), then g=f1-β/(2f1)。
T in fig. 2mM-1 pulses generation was had before moment, so to tmTrapezoidal integration before moment can obtain {[g+(g+βtm)]/2}tm=m-1, obtains tm={ [g2+2(m-1)β)]1/2-g}/β, can obtain adjacent two pulses time Between be spaced apart: Δ tm=tm+1-tm={ (g2+2mβ)1/2-[g2+2(m-1)β)]1/2}/β, can be every during acceleration and deceleration The frequency of individual pulse is: fm=1/ Δ tm={ (g2+2mβ)1/2+[g2+2(m-1)β)]1/2}/2。
According to above-mentioned principle, the present embodiment produces the method for symmetric trapezium acceleration and deceleration pulse and uses following steps:
Step 1: initialization data:
Step 1.1: use formula g=f1-β/(2f1) obtain the initial velocity g, wherein f in trapezoidal acceleration and deceleration zero moment1 Being the initial velocity value of motor setting, β is motor acceleration;
Step 1.2: utilize formula { [g+ (g+ β tm)]/2}tm=m-1 obtains the umber of pulse of accelerator or moderating process M, wherein tmIt is to accelerate or moderating process total time;Thus can ensure that and can control motor on different rank The Duan Jinhang automatic switchover method of operation.
Step 2: enter even accelerator, calculates the frequency of each pulse in even accelerator, and obtains according to step 1 To accelerator umber of pulse determine that even accelerator terminates;
Step 3: after even accelerator terminates, with motor actuating speed constant-speed operation, then enters even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency calculated when terminating with even accelerator The pulse frequency value that rate value starts as even moderating process;Calculate the frequency of each pulse in even moderating process, and according to The moderating process umber of pulse that step 1 obtains determines that even moderating process terminates.
If the pulse frequency that the pulse frequency value calculated when not terminating using even accelerator here starts as even moderating process Rate value, then can cause moderating process to calculate with actuating speed value for initial value, so under certain deceleration pulse, and electricity Pulse frequency when machine stops is bigger, and motor so easily causes certain damage.
In the present embodiment, whole method realizes in FPGA, by the waveform of output it is observed that control output Pulse is symmetrical (shown in Fig. 5), it is achieved that accelerate the most identical with the pulse frequency of deceleration end time, it is achieved with Given umber of pulse arrives the pulse frequency that reach when terminating of slowing down.The symmetrical plus-minus rapid pulse that this method produces Punching, is conducive to controlling pulse frequency when terminating of slowing down, such that motor has the biggest proposing in terms of vibration characteristics High.

Claims (1)

1. the method producing symmetric trapezium acceleration and deceleration pulse, it is characterised in that: employing following steps:
Step 1: initialization data:
Step 1.1: use formula g=f1-β/(2f1) obtain the initial velocity g, wherein f in trapezoidal acceleration and deceleration zero moment1 Being the initial velocity value of motor setting, β is motor acceleration, the time interval Δ t of the first two adjacent pulse1With motor Initial velocity value f set1Meet Δ t1=1/f1
Step 1.2: utilize formula { [g+ (g+ β tm)]/2}tm=m-1 obtains the umber of pulse of accelerator or moderating process M, wherein tmBeing to accelerate or moderating process total time, in the time interval of each adjacent pulse, motor revolves Turning a step angle, adjacent pulse time interval is 1 with the trapezoidal area of motor speed composition;
Step 2: enter even accelerator, calculates the frequency of each pulse in even accelerator, and obtains according to step 1 To accelerator umber of pulse determine that even accelerator terminates;
Step 3: after even accelerator terminates, with motor actuating speed constant-speed operation, then enters even moderating process;
Step 4: enter even moderating process, in even moderating process, the pulse frequency calculated when terminating with even accelerator The pulse frequency value that rate value starts as even moderating process;Calculate the frequency of each pulse in even moderating process, and according to The moderating process umber of pulse that step 1 obtains determines that even moderating process terminates.
CN201310661637.0A 2013-12-09 2013-12-09 Method for generating pulses with symmetric trapezoid acceleration and deceleration Active CN103618482B (en)

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 CN103618482A (en) 2014-03-05
CN103618482B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

Patent Citations (4)

* Cited by examiner, † Cited by third party
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)

Also Published As

Publication number Publication date
CN103618482A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
CN104442822B (en) Automatic gear shift control method of motor-transmission integrated drive system for electrical vehicle
CN108663994A (en) A kind of servo motor S curve Acceleration-deceleration Control Method
CN106341063B (en) Control of Step Motor's Acceleration and Deceleration method
CN103466452B (en) Crane operation control method and system
CN104228887B (en) The method and system that a kind of ATO grade is adjusted in real time
CN110109490A (en) A kind of adaptive-feedrate adjustment method of stepper motor driving head
CN108396451B (en) A kind of discrete velocity control method of Intelligent glove machine cylinder needle selection
RU2012158124A (en) ELECTRIC VEHICLE REDUCTION CONTROL DEVICE
MX2019015633A (en) Target vehicle speed generation method and target vehicle speed generation device for driving assistance vehicle.
CN107670929A (en) A kind of dispensing method of point gum machine
CN103618482B (en) Method for generating pulses with symmetric trapezoid acceleration and deceleration
WO2012138173A3 (en) Electric vehicle and method for controlling the speed thereof
CN102522944A (en) Servo-motor acceleration-deceleration control method for servo pressure machine
JP2016131459A5 (en)
CN103163838A (en) Control method for acceleration and deceleration of numerical control machine tool
EP2610606A3 (en) Speed control apparatus and program for speed control apparatus; and automatic vehicle driving apparatus, engine dynamo control apparatus, and control programs used for respective apparatuses
CN105720864B (en) Decelerating through motor frequency gives method, frequency converter and system
CN105799544B (en) Method for solving starting jitter and electric brake noise of pure electric vehicle
CN106374798B (en) A kind of Control of Step Motor's Acceleration and Deceleration method of adjustable microstep number
CN106788084A (en) Motion control method and device, motion trail planning method
CN103925358B (en) Electric automobile self shifter control method and its device
CN109508050B (en) Speed control method for automatic point drilling machine
CN109760053A (en) A kind of Dynamic Programming method for control speed of truss manipulator
KR20140046751A (en) Method for controlling synchronization of automated manual transmission
CN102882463B (en) Control parameter setting method of speed regulating controller in speed regulating device of torque motor

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