CN112564560B - Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner - Google Patents
Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner Download PDFInfo
- Publication number
- CN112564560B CN112564560B CN202011463020.4A CN202011463020A CN112564560B CN 112564560 B CN112564560 B CN 112564560B CN 202011463020 A CN202011463020 A CN 202011463020A CN 112564560 B CN112564560 B CN 112564560B
- Authority
- CN
- China
- Prior art keywords
- steps
- stepping motor
- acceleration
- deceleration
- time interval
- 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
Links
- 230000001133 acceleration Effects 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000008569 process Effects 0.000 claims abstract description 14
- 230000033001 locomotion Effects 0.000 claims abstract description 12
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001575 pathological effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P8/00—Arrangements for controlling dynamo-electric motors rotating step by step
- H02P8/14—Arrangements for controlling speed or speed and torque
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Stepping Motors (AREA)
Abstract
The invention discloses a method and a device for controlling acceleration and deceleration of a stepping motor of a digital slice scanner, wherein the method comprises the following steps: calculating the time interval between steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner; calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval, and the step number x and the time required by acceleration and deceleration; calculating the time interval between each step of the acceleration stage and the deceleration stage of the stepping motor by an S-shaped acceleration and deceleration curve formula; dividing the total step number into a plurality of parts according to different input step numbers; and controlling the movement of the stepping motor according to the divided steps and the time interval between the steps. The invention has more flexible and more accurate control on the acceleration and the deceleration of the stepping motor and more flexible control on the time of rotating the stepping motor by different steps.
Description
Technical Field
The invention relates to a method and a device for controlling acceleration and deceleration of a stepping motor of a digital slice scanner, belonging to the technical field of stepping motor control.
Background
Digital slice scanners are a technology that organically combines computer technology with conventional optical magnification devices. The whole pathological section or the pathological section at the designated position can be completely scanned and shot by driving X, Y, Z to move by using a stepping motor.
The step motor realizes the angular displacement by receiving the pulse, and the speed of the pulse frequency directly influences the speed of the rotation of the step motor. An excessively fast pulse frequency cannot be used when the stepping motor is started, the stepping motor can be out of step due to the excessively fast pulse frequency, and the stepping motor can be overshot due to sudden stop of the pulse frequency. The start and stop of the stepping motor is a process in which there is an acceleration and a deceleration, i.e., a process in which the pulse frequency is faster and slower. The acceleration and deceleration process of the stepping motor directly influences whether the movement of the stepping motor is accurate, smooth, stable and fluent.
The step motor is accelerated and decelerated too fast to bring about larger motor vibration, the step motor is accelerated and decelerated slowly, and although vibration is reduced, more time is occupied.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for controlling acceleration and deceleration of a stepping motor of a digital slice scanner, which can flexibly control the acceleration and deceleration of the stepping motor.
The technical scheme adopted for solving the technical problems is as follows:
in a first aspect, a method for controlling acceleration and deceleration of a stepping motor of a digital slice scanner provided in an embodiment of the present invention includes the following steps:
calculating the time interval between steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval, and the step number x and the time required by acceleration and deceleration;
calculating the time interval between each step of the acceleration stage and the deceleration stage of the stepping motor by an S-shaped acceleration and deceleration curve formula;
dividing the total step number into a plurality of parts according to different input step numbers;
and controlling the movement of the stepping motor according to the divided steps and the time interval between the steps.
As a possible implementation manner of this embodiment, the time interval t between steps when the stepping motor moves at the highest speed and at the uniform speed is:
in the formula, m is the rotating speed of the stepping motor, and n is the number of steps of one turn of the stepping motor.
As a possible implementation manner of this embodiment, the formula of the S-type acceleration/deceleration curve is:
where t is the time interval between steps, k is the maximum value of the time interval between steps, a and b are constants, and x is the number of steps at the time of acceleration.
As a possible implementation manner of this embodiment, the dividing the total number of steps into a plurality of parts includes: according to the difference of the input steps, the total steps are divided into two parts of acceleration steps and deceleration steps, or the total steps are divided into three parts of acceleration steps, constant speed steps and deceleration steps.
As a possible implementation manner of this embodiment, the dividing the total number of steps into two parts, namely an acceleration step number and a deceleration step number, includes:
and comparing the number of steps moved by the stepping motor with a set threshold number of steps, and if the number of steps moved by the stepping motor is smaller than or equal to 2 times of the threshold number of steps and is an even number, dividing the total number of steps into a half acceleration step number and a half deceleration step number.
As a possible implementation manner of this embodiment, the dividing the total number of steps into three parts, namely an acceleration step number, a constant speed step number, and a deceleration step number, includes: if the number of moving steps of the stepping motor is less than or equal to 2 times of the threshold number of steps and is an odd number, dividing the total number of steps into 1 step of constant speed, and dividing the rest number of steps into half of the number of acceleration steps and half of the number of deceleration steps; if the number of moving steps of the stepping motor is more than 2 times of the threshold number of steps, the number of acceleration steps and the number of deceleration steps are both equal to the threshold, and the remaining number of steps is the constant speed number of steps.
In a second aspect, an embodiment of the present invention provides a control apparatus for accelerating and decelerating a stepping motor of a digital slice scanner, including:
the highest speed interval calculation module is used for calculating the time interval between the steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
the curve parameter calculation module is used for calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval between steps when the stepping motor moves at the highest speed and at a constant speed and the number x and time of the steps required by acceleration and deceleration;
the stage time interval module is used for calculating the time interval between each step of the acceleration stage and each step of the deceleration stage of the stepping motor through an S-shaped acceleration and deceleration curve formula;
the step number dividing module is used for dividing the total step number into a plurality of parts according to different input step numbers;
and the control module is used for controlling the movement of the stepping motor according to the divided steps and the time interval between the steps.
As a possible implementation manner of this embodiment, the time interval t between steps when the stepping motor moves at the highest speed and at the uniform speed is:
in the formula, m is the rotating speed of the stepping motor, and n is the number of steps of one turn of the stepping motor.
As a possible implementation manner of this embodiment, the formula of the S-type acceleration/deceleration curve is:
where t is the time interval between steps, k is the maximum value of the time interval between steps, a and b are constants, and x is the number of steps at the time of acceleration.
As a possible implementation manner of this embodiment, the step number dividing module includes:
the first step number dividing module is used for dividing the total step number into an acceleration step number and a deceleration step number according to different input step numbers;
or the second step number dividing module is used for dividing the total step number into three parts of an acceleration step number, a constant speed step number and a deceleration step number according to the difference of the input step numbers.
As a possible implementation manner of this embodiment, the dividing the total number of steps into two parts, namely an acceleration step number and a deceleration step number, includes:
and comparing the number of steps moved by the stepping motor with a set threshold number of steps, and if the number of steps moved by the stepping motor is smaller than or equal to 2 times of the threshold number of steps and is an even number, dividing the total number of steps into a half acceleration step number and a half deceleration step number.
As a possible implementation manner of this embodiment, the dividing the total number of steps into three parts, namely an acceleration step number, a uniform speed step number, and a deceleration step number, includes: if the number of moving steps of the stepping motor is less than or equal to 2 times of the threshold number of steps and is an odd number, dividing the total number of steps into 1 step of constant speed, and dividing the rest number of steps into half of the number of acceleration steps and half of the number of deceleration steps; if the number of moving steps of the stepping motor is more than 2 times of the threshold number of steps, the number of acceleration steps and the number of deceleration steps are both equal to the threshold, and the remaining number of steps is the constant speed number of steps.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the invention has more flexible and more accurate control on the acceleration and the deceleration of the stepping motor and more flexible control on the time of rotating the stepping motor by different steps. Compared with other acceleration and deceleration modes of the stepping motor, the invention enables the speed change of the acceleration and deceleration process of the stepping motor to be smoother and the rotation to be smoother.
Description of the drawings:
FIG. 1 is a flow chart illustrating a method of controlling acceleration and deceleration of a stepper motor of a digital slice scanner in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of an S-shaped acceleration and deceleration curve (acceleration and deceleration curves) shown in accordance with an exemplary embodiment;
fig. 3 is a block diagram illustrating a control apparatus for acceleration and deceleration of a stepping motor of a digital slice scanner according to an exemplary embodiment.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the following figures:
in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily limit the invention.
Fig. 1 is a flow chart illustrating a method of controlling acceleration and deceleration of a stepper motor of a digital slice scanner according to an exemplary embodiment. As shown in fig. 1, a method for controlling acceleration and deceleration of a stepping motor of a digital slice scanner according to an embodiment of the present invention includes the following steps:
calculating the time interval between steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval, and the step number x and the time required by acceleration and deceleration;
calculating the time interval between each step of the acceleration stage and the deceleration stage of the stepping motor by an S-shaped acceleration and deceleration curve formula;
dividing the total step number into a plurality of parts according to different input step numbers;
and controlling the movement of the stepping motor according to the divided steps and the time interval between the steps.
As a possible implementation manner of this embodiment, the time interval t between steps when the stepping motor moves at the highest speed and at the uniform speed is:
in the formula, m is the rotating speed of the stepping motor, and n is the number of steps of one turn of the stepping motor.
The larger the time interval t between steps is, the slower the stepping motor rotates, whereas the faster the stepping motor rotates, the rotational speed of the stepping motor is changed by changing the time interval between steps of the stepping motor. When the stepping motor receives a pulse signal, the stepping motor rotates by an angle for one step, and the pulse interval is equal to the time interval t between steps. The lower the pulse interval, i.e. the faster the pulse frequency, the faster the stepper motor speed.
As a possible implementation manner of this embodiment, the formula of the S-type acceleration/deceleration curve is:
where t is the step-to-step time interval, k is the maximum value of the step-to-step time interval, a and b are constants, and x is the number of acceleration steps. x is any positive integer
As a possible implementation manner of this embodiment, the dividing the total step number into multiple parts includes: according to the difference of the input steps, the total steps are divided into two parts of acceleration steps and deceleration steps, or the total steps are divided into three parts of acceleration steps, constant speed steps and deceleration steps.
As a possible implementation manner of this embodiment, the dividing the total number of steps into two parts, namely an acceleration step number and a deceleration step number, includes:
and comparing the moving steps of the stepping motor with a set threshold step number, and if the moving steps of the stepping motor are smaller than or equal to 2 times of the threshold step number and are even numbers, dividing the total step number into a half acceleration step number and a half deceleration step number.
As a possible implementation manner of this embodiment, the dividing the total number of steps into three parts, namely an acceleration step number, a uniform speed step number, and a deceleration step number, includes: if the number of moving steps of the stepping motor is less than or equal to 2 times of the threshold number of steps and is an odd number, dividing the total number of steps into 1 step of constant speed, and dividing the rest number of steps into half of the number of acceleration steps and half of the number of deceleration steps; if the number of the moving steps of the stepping motor is more than 2 times of the threshold step number, the number of the acceleration steps and the number of the deceleration steps are both equal to the threshold, and the remaining step number is the constant speed step number.
In a second aspect, an apparatus for controlling acceleration and deceleration of a stepping motor of a digital slice scanner according to an embodiment of the present invention includes:
the highest speed interval calculation module is used for calculating the time interval between the steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
the curve parameter calculation module is used for calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval between steps when the stepping motor moves at the highest speed and at a constant speed and the number x and time of the steps required by acceleration and deceleration;
the stage time interval module is used for calculating the time interval between each step of the acceleration stage and each step of the deceleration stage of the stepping motor through an S-shaped acceleration and deceleration curve formula;
the step number dividing module is used for dividing the total step number into a plurality of parts according to different input step numbers;
and the control module is used for controlling the movement of the stepping motor according to the divided steps and the time interval between the steps.
As a possible implementation manner of this embodiment, the time interval t between steps when the stepping motor moves at the highest speed and at the uniform speed is:
in the formula, m is the rotating speed of the stepping motor, and n is the number of steps of one turn of the stepping motor.
As a possible implementation manner of this embodiment, as shown in fig. 2, a formula of the S-shaped acceleration/deceleration curve is:
where t is the time interval between steps, k is the maximum value of the time interval between steps, a and b are constants, and x is the number of steps at the time of acceleration.
The horizontal axis represents x and the vertical axis represents t. x =1, t is the time interval after the first step (i.e. the first pulse) of the stepper motor. x =2, t is the time interval after the second step (i.e., the second pulse) of the stepper motor. By analogy, the number of acceleration steps or the number of deceleration steps needs to be counted by the number of steps, namely x is counted in sequence. k determines the maximum time interval t between steps, i.e. the maximum pulse interval, b determines the speed of the stepping motor changing from static to uniform motion, x represents the step (assuming that acceleration is set to 30 steps, x takes values from 1 to 30 in sequence), a: this value determines what the minimum value of t would be if x were fixed.
As a possible implementation manner of this embodiment, the step number dividing module includes:
the first step number dividing module is used for dividing the total step number into an acceleration step number and a deceleration step number according to different input step numbers;
or the second step number dividing module is used for dividing the total step number into three parts of an acceleration step number, a constant speed step number and a deceleration step number according to the difference of the input step numbers.
As a possible implementation manner of this embodiment, the dividing the total number of steps into two parts, namely an acceleration step number and a deceleration step number, includes:
and comparing the number of steps moved by the stepping motor with a set threshold number of steps, and if the number of steps moved by the stepping motor is smaller than or equal to 2 times of the threshold number of steps and is an even number, dividing the total number of steps into a half acceleration step number and a half deceleration step number.
As a possible implementation manner of this embodiment, the dividing the total number of steps into three parts, namely an acceleration step number, a uniform speed step number, and a deceleration step number, includes: if the number of moving steps of the stepping motor is less than or equal to 2 times of the threshold number of steps and is an odd number, dividing the total number of steps into 1 step of constant speed, and dividing the rest number of steps into half of the number of acceleration steps and half of the number of deceleration steps; if the number of moving steps of the stepping motor is more than 2 times of the threshold number of steps, the number of acceleration steps and the number of deceleration steps are both equal to the threshold, and the remaining number of steps is the constant speed number of steps.
One specific implementation process for controlling the acceleration and deceleration of the stepping motor of the digital slice scanner by using the control device disclosed by the invention is as follows:
according to the performance of the actual stepping motor and the requirements on the stepping motor in actual use, the rotating speed of the X-axis stepping motor is required to be 236 revolutions per minute, one circle of the X-axis stepping motor is 3200 steps, and the time interval t =79 microseconds between the steps of the X-axis highest-speed uniform-speed motion can be calculated.
In order to reduce the vibration condition of starting and stopping the stepping motor and consider the time control of the movement of the stepping motor, the acceleration and deceleration step number is x =50. The initial time interval from the first step to the second step is set to k =300 microseconds.
Through the determination of the above parameters, it can be known that x takes a value from 1 to 50 steps, and t should take a value from 300 to 79 microseconds. I.e. the stepping motor is accelerated from the first step to the fiftieth step, the time interval between each step becomes smaller and smaller until the time interval t =79 microseconds between steps when we set the highest speed uniform motion. The values of the parameters a and b in the sigmoidal equation are then set empirically to meet the above requirements.
After the S-shaped curve formula is determined, time interval data corresponding to the S-shaped curve is calculated according to the S-shaped curve formula and stored in an array A. The time interval data directly control the speed of the frequency of the rotation pulse transmission of the stepping motor.
Comparing the number of steps moved by the stepping motor with a set threshold number of steps (the number of acceleration steps x = 50), and if the number of steps moved by the stepping motor is less than or equal to 2 times of the threshold number of steps and is an even number, dividing the number of steps moved into half of acceleration and half of deceleration; if the moving step number of the stepping motor is less than or equal to 2 times of the threshold step number and is an odd number, dividing the moving step number into 1 step, namely accelerating half and decelerating half of the residual step number at constant speed; if the number of moving steps of the stepping motor is more than 2 times of the threshold number of steps, the number of acceleration steps is equal to the number of deceleration steps which is equal to the threshold, and the number of residual steps is equal to the number of constant speed steps.
And after the moving steps of the stepping motor are divided, starting to execute an acceleration function, reading the generated pulse frequency from the array A, and reversely executing the deceleration curve, namely the acceleration curve.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a logical division, and other divisions may be realized in practice, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments provided in the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (8)
1. A control method for acceleration and deceleration of a stepping motor of a digital slice scanner is characterized by comprising the following steps:
calculating the time interval between steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval, and the step number x and the time required by acceleration and deceleration;
calculating the time interval between each step of the acceleration stage and the deceleration stage of the stepping motor by an S-shaped acceleration and deceleration curve formula;
dividing the total step number into a plurality of parts according to different input step numbers;
controlling the movement of the stepping motor according to the divided steps and the time interval between the steps;
the formula of the S-shaped acceleration and deceleration curve is as follows:
where t is the time interval between steps, k is the maximum value of the time interval between steps, a and b are constants, and x is the number of steps at the time of acceleration.
2. The method for controlling acceleration and deceleration of the stepping motor of the digital slice scanner as claimed in claim 1, wherein the time interval t between steps when the stepping motor moves at the highest speed and at the uniform speed is:
in the formula, m is the rotating speed of the stepping motor, and n is the number of steps of one turn of the stepping motor.
3. The method as claimed in claim 2, wherein the dividing the total number of steps into a plurality of parts comprises: according to the difference of the input steps, the total steps are divided into two parts of acceleration steps and deceleration steps, or the total steps are divided into three parts of acceleration steps, constant speed steps and deceleration steps.
4. The method as claimed in claim 3, wherein the dividing the total number of steps into two parts of an acceleration step number and a deceleration step number comprises:
and comparing the number of steps moved by the stepping motor with a set threshold number of steps, and if the number of steps moved by the stepping motor is smaller than or equal to 2 times of the threshold number of steps and is an even number, dividing the total number of steps into a half acceleration step number and a half deceleration step number.
5. The method as claimed in claim 3, wherein the dividing of the total number of steps into three parts, namely, an acceleration step, a constant speed step and a deceleration step, comprises: if the number of moving steps of the stepping motor is less than or equal to 2 times of the threshold number of steps and is an odd number, dividing the total number of steps into 1 step of constant speed, and dividing the rest number of steps into half of the number of acceleration steps and half of the number of deceleration steps; if the number of moving steps of the stepping motor is more than 2 times of the threshold number of steps, the number of acceleration steps and the number of deceleration steps are both equal to the threshold, and the remaining number of steps is the constant speed number of steps.
6. The utility model provides a controlling means of digital section scanner step motor acceleration and deceleration which characterized by includes:
the highest speed interval calculation module is used for calculating the time interval between the steps when the stepping motor moves at the highest speed and at the uniform speed according to the highest rotating speed of the stepping motor in the scanning process of the digital slice scanner;
the curve parameter calculation module is used for calculating each parameter of the S-shaped acceleration and deceleration curve according to the calculated time interval between steps when the stepping motor moves at the highest speed and at a constant speed and the number x and time of the steps required by acceleration and deceleration;
the stage time interval module is used for calculating the time interval between each step of the acceleration stage and each step of the deceleration stage of the stepping motor through an S-shaped acceleration and deceleration curve formula;
the step number dividing module is used for dividing the total step number into a plurality of parts according to different input step numbers;
the control module is used for controlling the movement of the stepping motor according to the divided steps and the time interval between the steps;
the formula of the S-shaped acceleration and deceleration curve is as follows:
where t is the time interval between steps, k is the maximum value of the time interval between steps, a and b are constants, and x is the number of steps at the time of acceleration.
8. The apparatus for controlling acceleration and deceleration of a stepping motor of a digital slice scanner as claimed in claim 6, wherein the step number dividing module comprises:
the first step number dividing module is used for dividing the total step number into an acceleration step number and a deceleration step number according to different input step numbers;
or the second step number dividing module is used for dividing the total step number into three parts of an acceleration step number, a constant speed step number and a deceleration step number according to the difference of the input step numbers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011463020.4A CN112564560B (en) | 2020-12-09 | 2020-12-09 | Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011463020.4A CN112564560B (en) | 2020-12-09 | 2020-12-09 | Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112564560A CN112564560A (en) | 2021-03-26 |
CN112564560B true CN112564560B (en) | 2022-11-04 |
Family
ID=75062809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011463020.4A Active CN112564560B (en) | 2020-12-09 | 2020-12-09 | Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112564560B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2579387A1 (en) * | 1985-03-25 | 1986-09-26 | Centre Techn Ind Mecanique | METHOD AND DEVICE FOR CONTROLLING THE ACCELERATION OF AN ELECTRIC MOTOR STEP BY STEP |
US6384562B1 (en) * | 2000-04-10 | 2002-05-07 | Umax Data Systems Inc. | Scanner motor acceleration method |
JP2006042493A (en) * | 2004-07-27 | 2006-02-09 | Canon Inc | Apparatus and method for controlling motor |
CN101369130A (en) * | 2002-01-07 | 2009-02-18 | 西门子能量及自动化公司 | Pulse output function for programmable logic controller |
CN109981008A (en) * | 2019-04-19 | 2019-07-05 | 广东乐之康医疗技术有限公司 | Infusion control method and its equipment with stepper motor |
CN111062412A (en) * | 2019-11-06 | 2020-04-24 | 天津大学 | Novel intelligent identification method for indoor pedestrian movement speed by intelligent shoes |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6449450B1 (en) * | 2001-02-09 | 2002-09-10 | Toshiba Tec Kabushiki Kaisha | Image forming apparatus |
-
2020
- 2020-12-09 CN CN202011463020.4A patent/CN112564560B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2579387A1 (en) * | 1985-03-25 | 1986-09-26 | Centre Techn Ind Mecanique | METHOD AND DEVICE FOR CONTROLLING THE ACCELERATION OF AN ELECTRIC MOTOR STEP BY STEP |
US6384562B1 (en) * | 2000-04-10 | 2002-05-07 | Umax Data Systems Inc. | Scanner motor acceleration method |
CN101369130A (en) * | 2002-01-07 | 2009-02-18 | 西门子能量及自动化公司 | Pulse output function for programmable logic controller |
JP2006042493A (en) * | 2004-07-27 | 2006-02-09 | Canon Inc | Apparatus and method for controlling motor |
CN109981008A (en) * | 2019-04-19 | 2019-07-05 | 广东乐之康医疗技术有限公司 | Infusion control method and its equipment with stepper motor |
CN111062412A (en) * | 2019-11-06 | 2020-04-24 | 天津大学 | Novel intelligent identification method for indoor pedestrian movement speed by intelligent shoes |
Non-Patent Citations (1)
Title |
---|
基于Cortex-M3的S型加减速控制;蔡锦达等;《控制工程》;20160220(第02期);第206-210页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112564560A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102904512A (en) | Control system and control method for step motor | |
CN107681933B (en) | Control method and system for driving stepping motor | |
CN107800338B (en) | Stepping motor speed increasing and decreasing control method based on FPGA | |
CN110109491A (en) | Continuous S curve acceleration and deceleration motion control method, system and electronic equipment | |
CN112564560B (en) | Method and device for controlling acceleration and deceleration of stepping motor of digital slice scanner | |
CN112491313A (en) | Motor control method, device, equipment and computer readable storage medium | |
CN112889218A (en) | Automated speed ramp control for stepper motors | |
CN110460274B (en) | Trapezoidal speed regulation control algorithm of stepping motor | |
CN112486034B (en) | Method for verifying track planning, electronic equipment and storage medium | |
CN110690835A (en) | Method for accelerating and decelerating motor by using S-shaped curve | |
CN112803846A (en) | Stepping motor control circuit and method for controlling stepping motor | |
CN107544573B (en) | Control method and system for driving stepping motor | |
CN111130405A (en) | Motor control method and device and terminal equipment | |
CN106584861A (en) | Control system of trapezoidal speed curve of 3D printer extrusion head | |
CN111371378B (en) | Method and apparatus for speed control | |
CN110535380A (en) | A kind of method for controlling stepping motor, device, system and storage medium | |
CN110365274A (en) | Electronic gear method of adjustment, device and servo motor | |
CN115847395A (en) | Method and system for judging in-place movement of extractor, electronic equipment and storage medium | |
CN116455274A (en) | Control method, system and related device of stepping motor | |
CN108233825A (en) | A kind of pulse control method and system | |
CN110978803B (en) | Thermal transfer printer, motor driving method and device thereof, and storage medium | |
CN113054879B (en) | Speed control method of stepping motor and related equipment | |
CN115173758B (en) | Method, device and equipment for controlling speed of stepping motor and storage medium | |
CN111628682A (en) | Stepping motor synchronous driving method, stepping motor synchronous driving device, terminal and storage medium | |
JP3734968B2 (en) | Motor control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |