| 数据搜索系统,热门电子元器件搜索 |
|
AN2044 数据表(PDF) 5 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2044 数据表(HTML) 5 Page - STMicroelectronics |
|
5 / 9 page ![]() 5/9 AN2044 APPLICATION NOTE Table 1. State Variable Representation In its simplest form this system executes a trapezoidal move by the following steps: 1) Calculate the motor position values ( P1 and P-P2 using the formulas derived above ) at which the system should transition from accel to constant speed and then from constant speed to de- cel. 2) Set the POS and SPD variables to zero, set ACC to the required value, and then start up the ISR. The ISR will update SPD by adding ACC0 into SPD0, ACC1 into SPD1 (plus a possible carry from previous), and then inc SPD2 if there was a carry out of ACC1 + SPD1. POS is up- dated by adding SPD1 into POS0, SPD2 into POS1 (with carry), then inc POS2 if SPD2 + POS1 produced a carry and finally inc POS3 if POS2 rolls over. 3) Whenever POS2 increases (it could never increase by more that 1 because of the small time tick), advance the motor by one step. 4) When the integer part (POS3: POS2) of POS matches P1, set ACC to zero to enter the constant velocity region. Speed will hold constant but position will continue to increase. 5) When POS matches P-P2, change the value in ACC from zero to the required decel setting and start subtracting into SPD instead of adding. 6) When POS matches P, set ACC and SPD to zero ( SPD should already be there ), stop stepping the motor, and hold position. In step 3 of the procedure for executing a trapezoidal move it was stated that we must "ad- vance the motor by one step". Lets examine the details required to accomplish this. First, let's describe how a bipolar, two phase stepper motor is commutated or stepped. The motor has two windings (A and B) each of which may be in one of three states: Positive, Negative, or Off based on the direction of current flow, if any, through the coil. The convention- al half step commutating sequence is described in figure 4. After step #7 the sequence re- peats back from 0. Table 2 presents a graphical display of the current in the motor coils vs. motor step. Table 2. Half Step Commutating Sequence POS3 POS2 * POS1 POS0 * SPD2 SPD1 SPD0 * ACC1 ACC0 STEP # COIL A COIL B IN1A IN2A ENA IN1B IN2B ENB 0POS NEG 1 0 1 0 1 1 1POS ZERO 1 0 1 X X 0 2POS POS 1 0 1 1 0 1 3ZERO POS X X 0 1 0 1 4 NEG POS 0 1 1 1 0 1 5NEG ZERO 0 1 1 X X 0 6NEG NEG 0 1 1 0 1 1 7ZERO NEG X X 0 0 1 1 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |