Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor
Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor
Taha A. Al-Sabbagh
University of Mosul College of Electronics Engineering Electronic Dept.
Abstract
Literature survey indicates that the design of sequence generator is considered for a few number of control sequences of stepper motor. In our research a new circuit is built in a simple design for generation of all required sequences up to eight phases for Variable Reluctance (V.R.) stepper motor .This circuit must be followed by a power drive circuit to achieve the power requirement of the stepper motor. In case of getting a certain sequence , these data must be given to the system ; number of phases, number of 1st energized phases, type of sequence (full step or half step mode) and finally the direction of rotation, hence the system in response will generate the required sequence. Some papers previously used SSI & MSI circuits to build the sequence generator ,but in this paper an LSI (EPROM) circuit as well as SSI & MSI circuits are used to get minimal design with less components. The paper includes a brief description of the fundamentals of sequences controlling the stepper motor, the detailed proposed circuit description and samples of experimental results with an appendix illustrating a complete map of the EPROM which is used to store all required sequences.
-8
Received 12/3/2009
73
Accepted 14/2/2009
Vol.18
No.5
October
2010
The basic principle of variable reluctance motors have been known for long time [ 1 ], therefore it is surprising that a new structure has been still invented a few years ago [ 2 ]. The sequence generator of the stepper motor can be derived from different ways such as a parallel port of a personal computer which was used in controlling multiple stepper motors in a robotic manipulator arm [ 3 ]. Sequences which control the drive unit and rotate the stepper motor with a uniform motion are defined here as control sequences (switching sequences). Generation of such sequences depends basically on the characteristics of the sequence generator (translator) as well as the frequency of input clock. There are two basic types of sequences that could be generated for a variable reluctance stepper motor. Type (A): Sequences that provide equal number of energized phases at any time. Type (B): Sequences that provide different number of energized phases alternatively. A short-hand notation used for identifying the control sequence: (sign) X ( Y , Z ) where, + sign = Positive sequence. - sign = Negative sequence. X = Number of stepper motor phases. Y = Number of 1st energized phases. Z = Number of 2nd energized phases. In type A we have (Y=Z) while in type B (Z=Y-1) where Y (X-1). These two types up to 8 phases are to be considered in tables (1 and 2) where other types are unconcerned. Table (1) Type A positive sequence (Number of sequences =27) Sequence Number 1 +3 ( 1,1 ) +4 ( 1,1 ) +5 ( 1,1 ) +6 ( 1,1 ) +7 ( 1,1 ) +8 ( 1,1 ) 2 +3 ( 2,2 ) +4 ( 2,2 ) +5 ( 2,2 ) +6 ( 2,2 ) +7 ( 2,2 ) +8 ( 2,2 ) 3 +4 ( 3,3 ) +5 ( 3,3 ) +6 ( 3,3 ) +7 ( 3,3 ) +8 ( 3,3 ) 4 5 6 7
Number of Phases 3 4 5 6 7 8
+7 ( 6,6 ) +8 ( 6,6 )
+8 ( 7,7 )
Table (2) Type B positive sequence (Number of sequences =21) Sequence Number Number of 1 2 3 4 5 6 Phases 3 +3 ( 2,1 ) 4 +4 ( 2,1 ) +4 ( 3,2 ) 5 +5 (2,1 ) +5 ( 3,2 ) +5 ( 4,3 ) 6 +6 ( 2,1 ) +6 ( 3,2 ) +6 ( 4,3 ) +6 ( 5,4 ) 7 +7 ( 2,1 ) +7 ( 3,2 ) +7 ( 4,3 ) +7 ( 5,4 ) +7 ( 6,5 ) 8 +8 ( 2,1 ) +8 ( 3,2 ) +8 ( 4,3 ) +8 ( 5,4 ) +8 ( 6,5 ) +8 ( 7,6 )
74
Kamil : Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor Two additional tables can be obtained in the same manner only by changing the positive sign to negative (Negative control sequences). For all tables, the total number of control sequences is equal to ( 96 ). For illustration, an example for type A sequences like +3(1,1) is considered which identifies a 3-phase stepper motor with single phase energized at any one time with clockwise rotation. For type B sequences consider +3(2,1) which represents a three phase motor having two energized phases initially then one followed by two and so on alternatively. [ 5 ] By Concerning the sign which mean clockwise or counter clockwise rotation, 4 types of control sequences could be generated, figures (1 and 2 ) illustrate the clockwise rotation for type A and B respectively.
a) Timing Diagram b) Vector Diagram Fig. ( 1 ): Type A positive sequence + 3 ( 1 , 1 ) a-Timing Diagram b- Vector Diagram
a) Timing Diagram b) Vector Diagram Fig. (2): Type B positive sequence + 3 ( 2 , 1 ) a-Timing Diagram b-Vector Diagram From the above figures, it is clear that for type A control sequences the number of pulses is equal the number of phases to complete one revolution (full step mode ),while for type B the number of pulses is equal twice the number of phases (half step mode) . Fig. (3) illustrates +8(1,1) type A positive sequence while -8(5,4) represents type B negative sequence alternatively as a sample for one of the operating cases for the stepper motor. There is also another technique which is called micro stepping control that allows stepper motion to take fractional steps, by having two adjacent field poles energized at the same time using a specialized integrated circuit L292 made by SGS-THOMSON [ 6 ] . Field Programmable Gate Array (FPGA) also used to improve the positioning accuracy of two phase stepper motor [ 7 ] . 75
Al-Rafidain Engineering
Vol.18
No.5
October
2010
b- Type B negative sequence -8(5,4) Fig. (3) : 8-phase sequences : a- Type A positive sequence +8(1,1) b- Type B negative sequence -8(5,4) 76
Fig. (4) : 4-phase vector diagram Fig.(4) indicates that step angle is halved and the torque increased to ( 1.41 ) over that produced when only single phase excited while the excitation current drawn by the motor will be doubled. For (3F) energized at a time step angle is (45) and the torque will not be changed while the excitation current is increased to 3 times. The following table can be concluded for static pull torque for variable reluctance motor up to (6F) , more than (6F) can be derived in the same manner. Table (3) Static pull out torques
No. of Energized Type Phases of Motor 3 4 5 6 1 2 3 4 5
1 1 1 1
1 1.62 2
1 1.73
The incremental positioning (step angle) of a stepper motor can be represented by the following equation: Step angle (q) = 2 / N -------------------------------------------------------------- (1) Where N=X for type A sequences, N=2X for type B sequences. Finally the overall speed (Rev/ Min) of the stepper motor can be derived as: 77
Al-Rafidain Engineering
Vol.18
No.5
October
2010
Overall speed = f / N (Rev/ Sec. ) = ( f / N )* 60 (Rev/ Min.) --------------- (2) Where (f) represents the frequency of input clock pulse; N=X for type A sequences, N=2X for type B sequences.
Fig. (5): Block diagram of sequence generator using SSI & MSI circuits
78
79
Al-Rafidain Engineering
Vol.18
No.5
October
2010
These basic three units illustrated in details in fig.(7) and shall be explained in preceding paragraphs.
80
Kamil : Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor The Counter Unit: The MOD-16 counter is selected to be 4-bit counter with clear facility to cover ( 16 ) states needed for 8-phase stepper motor. For 4 and 8-phase stepper motor the number of states is equal to eight or sixteen for type A and type B sequences respectively. If 4 states are repeated four times and 8 states are repeated twice then all locations in a page are accessed avoiding erroneous pattern and extra decoding logic. The problem is when the number of phases is 3, 5, 6 or 7. This can be solved as follows: For 3-phase and 6-phase stepper motor and for type A and type B sequences number of states are equal to three, six or twelve respectively. Hence the three states are repeated four times, six states are repeated twice while twelve states are repeated once and not more in a page because it will exceed the capacity of a page, so a decoding circuit (AND gate) is needed to decode (1100)2 count of MOD-16 counter when number of phases equals 3 or 6. Decoding process is performed by using a multiplexer (8 to 1) to decode these conditions: When the Number of counting = QD QC QB QA 10 in decimal = 1 0 1 0 for 5 phases 12 in decimal = 1 1 0 0 for 3 & 6 phases 14 in decimal = 1 1 1 0 for 7 phases As the counter will counts ascending so AND gates of three inputs could be used instead of 4-input as it will pass to 10, 12 and 14 before 11, 13 and 15 respectively. As in the following: Y = QD QC QB instead of Y = QD QC QB QA and so on . As a result, the resetting logic circuit consists of three AND gates and one multiplexer (74151) circuit that will automatically clear MOD-16 counter and canceling erroneous patterns by forcing the counter to count in legal locations of the EPROM. The control section of MOD-16 counter consists of two parts; the first part is a single pole double through switch to run the motor continuously or to make the motor move step by step by selecting the continuous clock circuit or the single clock circuit. The second part is to control start /stop operation. There is more than a way to stop the motor rotation, here is one suitable one by using an AND gate associated with a SR-latch to get a clear signal without any bouncing. The Converting Unit: The number of phases is set to the circuit by a thumbwheel switch (BCD) that gives 4 bits. As the system constructed to generate a sequence for maximum 8 phases then this number ( X ) will be minimized to 3 bits by a 4-16 decoder associated with a few NAND gates. A magnitude comparator of 4-bit is used to give the user an error indication when the number of the first energized phases ( Y ) is equal or greater than the number of phases ( X ). The EPROM Unit : This store is divided into four logical partitions with 1Kbyte size for each partition to store the basic four types of previously discussed stepper motor control sequences as shown in fig.(8). Each partition is subdivided into (8) banks since up to 8-phases stepper motor is required. Each bank is dedicated for one phase, in turn subdivided into (8) pages, and each page contains repeated states of each sequence and the number of pages defined by the number of sequences. 81
Al-Rafidain Engineering
Vol.18
No.5
October
2010
Access time in the range (30-320) nsec can be obtained using (LSI) EPROM.
The suitable pattern for such a type of motor is obtained from the data which is stored previously in a lookup table in specific locations of this memory. This is performed when the user decide to connect a certain stepper motor to the system. So the number of phases ( X ), the number of first energized phases ( Y ), the type of sequence ( type A or type B ) and the direction of rotation must be set in the system. All these data will set a certain address of the EPROM to specify a page that is related to the selected type of stepper motor operation. The counter will scan the content (Bytes) of the page to get the pattern needed for driving the motor. As the capacity of the memory is 4 Kbyte so the address of the EPROM needs to be 12 bits, which are derived from the following distribution: QD QC QB QA Y2 Y1 Y0 R2 R1 R0 T D 4 bits representing the nibble coming from the counter. 3 bits representing the number of first energized phases that is set to the system by a thumbwheel switch. 3 bits represent the number of phases in the stepper motor that is coming from the converter circuit output ( X-1 ). The type of stepper motor sequence: T = 0 for type A. and T = 1 for type B. The direction of rotation: D = 0 clockwise Rotation ( CW). D = 1 counter clockwise Rotation (CCW).
82
Kamil : Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor Example: The sequence + 3 ( 1 , 1 ) is:D T R2 R1 R0 Y2 Y1 Y0 QD QC QB QA 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 F 1 Hex Starting address 1 Hex Ending address
Hence the starting address is equal to 110H while ending address is 11FH which represents the page specified for the control sequence + 3 ( 1, 1 ). By applying the above address distribution one can derive any absolute address for any desired sequence. Hence all the 96 sequences that are mentioned in the previous paragraph are stored in the memory as shown in table (3). The complete map of the EPROM construction is shown in the Appendix.
Table ( 3 ) EPROM Construction Direction (D) Type (T) EPROM Addressing 0 0 000H-3FFH 0 1 400H-7FFH 1 0 800H-BFFH 1 1 C00H-FFFH
The phase indicator circuit consisting of 8 LEDS to display the state of the control sequence so that any body can analyze the bit patterns of any control sequence at any time. The terminals ( 1 8 ) are specialized to be connected to the driver circuit then to the stepper motor.
Experimental Results
The experimental system has been built and operated in the laboratory and all data for the stepper motor concerning 4 -phase with all different operating sequences are recorded : {+4 (1,1), + 4 (2,1) , - 4 (1,1) & - 4 (4,2) } using data acquisition monitor : (DATAQ INSTRUMENTS, Model DI-148) with personal computer (PC) as indicated in fig. (9) & fig. (10). Fig. ( 9 ) indicates experimental plot of type A, type B positive control sequences for 4- phase stepper motor whilst fig.(10) represents the experimental plot of the corresponding negative control sequences. Fig. (11) Shows the structure of the experimental system using : ( KING INSTRUMENT ELECTRONICS, Kit Model KL- 300 ).
83
Al-Rafidain Engineering
Vol.18
No.5
October
2010
B: +4 (2,1) type B sequence Fig. (9): 4-phase Type A & B positive sequences 84
B: -4 (2,1) type B sequence Fig. (10): 4-phase Type A & B negative sequences 85
Al-Rafidain Engineering
Vol.18
No.5
October
2010
Conclusion
The system may be used as a laboratory test bench kit for any Variable Reluctance (V.R.) stepper motor constructed of three to eight phases. The design of the system could be modified so that the memory will be minimized to 2 Kbyte of EPROM but using up/down facility of the counter, in that condition the same page of the memory will be used for the clockwise and counter clockwise sequence with additional circuit to make different parallel process depending on motor phases. Also the circuit diagram that is designed in this paper might be changed with a single chip of FPGA using (Advance Boolean Expression Language ABEL) or another type of (Hardware Description Language HDL) for programming, to make all the control needed to perform scanning the suitable page of a certain sequence. Seven segment display may be used also for the design to have a short hand notation at the front panel such as + 5 ( 4 , 3 ) so that the user can see the type of sequence that is running.
References
1. Lawrenson P. J. Variable Switched Reluctance Motors, Proceeding IEE, Vol. 127, No. 4, July 1980, pp. 253-265. 2. Seidemann V., Edler J., Buttgenbach S., Stolting H. Linear Variable Reluctance (VR) Micro Motor with Horizontal Flux Guidance: Concept, Simulation, Fabrication and Test, International Conference on Solid-State Sensors, Actuators and Microsystems, Vol. 2, 812 June 2003, pp. 1415 1418. 3. Johnson, M.J. Subramanyam, G.;A Parallel Port Interface Circuit for Computer Control Applications Involving Multiple Stepper Motors, IEEE 39th Midwest Symposium on Circuits and Systems, Vol. 2, 18-21 Aug. 1996, pp. 889-892. 4. Athani V.V., " Motors Fundamentals, Applications and Design ", New Age International, 1st edition, 2006. 5. Kilian C. Modern Control Technology Components and System, Delmar Pub, 3rd edition, 2005. 6. Baluta G. Micro Stepping Mode for Stepper Motor Control, International Symposium on Signals, Circuits and Systems, Vol. 2, 13-14 July 2007, Lasi. pp. 1-4. 7. Zhaojin Wen, Weihai chen, Zhiyue Xu, Jianhua Wang Analysis of Two-Stepper Motor Driver Based on FPGA, IEEE International Conference on Industrial Informatics, 16-18 Aug. 2006, Singapore. pp. 821-826. 8. Jivone D. D. Digital Principles and Design McGraw Hill, 1st edition, 2003.
86
Kamil : Sequence Generator To Derive 8-Phase Variable Reluctance Stepper Motor Appendix Complete Map Of EPROM Construction Clockwise Rotation Counter Clockwise Rotation
Start Add. (Hex) 110 120 190 1A0 1B0 210 220 230 240 290 2A0 2B0 2C0 2D0 310 320 330 340 350 360 390 3A0 3B0 3C0 3D0 3E0 3F0 520 5A0 5B0 620 630 640 6A0 6B0 6C0 6D0 720 730 740 750 760 7A0 7B0 7C0 7D0 7E0 7F0 End Add. (Hex) 11F 12F 19F 1AF 1BF 21F 22F 23F 24F 29F 2AF 2BF 2CF 2DF 31F 32F 33F 34F 35F 36F 39F 3AF 3BF 3CF 3DF 3EF 3FF 52F 5AF 5BF 62F 63F 64F 6AF 6BF 6CF 6DF 72F 73F 74F 75F 76F 7AF 7BF 7CF 7DF 7EF 7FF Sequence Type +3( 1 , 1 ) +3( 2 , 2 ) +4( 1 , 1 ) +4( 2 , 2 ) +4( 3 , 3 ) +5( 1 , 1 ) +5( 2 , 2 ) +5( 3 , 3 ) +5( 4 , 4 ) +6( 1 , 1 ) +6( 2 , 2 ) +6( 3 , 3 ) +6( 4 , 4 ) +6( 5 , 5 ) +7( 1 , 1 ) +7( 2 , 2 ) +7( 3 , 3 ) +7( 4 , 4 ) +7( 5 , 5 ) +7( 6 , 6 ) +8( 1 , 1 ) +8( 2 , 2 ) +8( 3 , 3 ) +8( 4 , 4 ) +8( 5 , 5 ) +8( 6 , 6 ) +8( 7 , 7 ) +3( 2 , 1 ) +4( 2 , 1 ) +4( 3 , 2 ) +5(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