JPS6011558B2 - How to drive a step motor - Google Patents
How to drive a step motorInfo
- Publication number
- JPS6011558B2 JPS6011558B2 JP55035599A JP3559980A JPS6011558B2 JP S6011558 B2 JPS6011558 B2 JP S6011558B2 JP 55035599 A JP55035599 A JP 55035599A JP 3559980 A JP3559980 A JP 3559980A JP S6011558 B2 JPS6011558 B2 JP S6011558B2
- Authority
- JP
- Japan
- Prior art keywords
- register
- phase
- step motor
- shift
- output
- 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.)
- Expired
Links
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
- H02P8/20—Arrangements for controlling speed or speed and torque characterised by bidirectional operation
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Stepping Motors (AREA)
Description
【発明の詳細な説明】
本発明はステップモータの回転方向すなわち時計回りか
反時計回りかを制御するための駆動方法に関するもので
ある。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a driving method for controlling the rotational direction of a step motor, ie, clockwise or counterclockwise.
従来、4相のステップモータの駆動回路としては、時計
回りの場合第1図に示すような回路構成となっていた。Conventionally, a drive circuit for a four-phase step motor has had a circuit configuration as shown in FIG. 1 for clockwise rotation.
すなわち、入力機子11に、第2図aに示すようなクロ
ツクパルスが入力され、かつ入力端子12に、ク。ツク
パルス数の制御信号が入力される。すると、アンド回路
13の出力が2個のフリツプフロツブ回路14,15に
クロツク信号として加えられ、第2図b,c.d,eに
示すようなそれぞれのフリップフロツプ回路I4,15
のQ,Q出力がそれぞれA相、B相、C相およびD相の
出力となって出力する。これらの出力が90度ずつ移相
したパルスとなるように、A,C,B,Dの順に並べ換
えてステップモータの各相のソレノイドヘバツフアを通
して順次反時計方向に供給する。すると1ステップで1
5度ずつ時計方向にステップ回転し、クロックパルス数
により所定位直に停止する。このような従釆の方法のま
までは、時計回りから反時計回りに方向転換するのが不
可能であり、したがって、反時計回りも制御したいとき
には、別個に外部制御回路を要し、しかもこの別個の外
部制御回路では方向転換の操作が面倒で、かつ高価にな
るという欠点があった。That is, a clock pulse as shown in FIG. 2a is input to the input armature 11, and a clock pulse is input to the input terminal 12. A control signal for the number of pulses is input. Then, the output of the AND circuit 13 is applied as a clock signal to the two flip-flop circuits 14 and 15, and the signals shown in FIG. 2b, c. Respective flip-flop circuits I4 and 15 as shown in d and e.
The Q and Q outputs are output as A-phase, B-phase, C-phase and D-phase outputs, respectively. These outputs are rearranged in the order of A, C, B, and D so that the pulses are phase-shifted by 90 degrees, and are sequentially supplied counterclockwise through the solenoid buffers of each phase of the step motor. Then 1 in 1 step
It rotates clockwise in steps of 5 degrees and stops at a predetermined position depending on the number of clock pulses. With this follow-up method, it is impossible to change direction from clockwise to counterclockwise. Therefore, if you want to control counterclockwise as well, a separate external control circuit is required, and this separate The external control circuit had the disadvantage that direction changing operations were troublesome and expensive.
本発明は、このような従釆の欠点を解決するためになさ
れたもので、レジスタを用いこのレジスタに正または逆
回転方向の違いに応じて異なる切期値を設定するととも
に左シフトまたは右シフトに制御することによりステッ
プモータの回転方向を制御するようにしたものである。The present invention was made in order to solve the drawbacks of such a dependent system, and uses a register to set different cut-off values depending on the direction of forward or reverse rotation, and also to shift to the left or right. The rotation direction of the step motor is controlled by controlling the rotation direction of the step motor.
すなわち、第1図および第2図に示す回路では、各相(
A.B,C,D相)とステップ位置(1.0,m,W)
との関係は、第1表のようになる。第1表
また、これは90度ずつ移相したパルスとなるように並
べ換えると、第2表のように書き換えることができる。That is, in the circuits shown in FIGS. 1 and 2, each phase (
A. B, C, D phase) and step position (1.0, m, W)
The relationship is as shown in Table 1. Table 1 If this is rearranged so that the pulses are phase-shifted by 90 degrees, it can be rewritten as shown in Table 2.
第2表第2表からわかることは、1ステップの時計回り
をさせようとするときは、初期位置として「0011」
すなわち「3」をレジスタに設定し、1回の左シフトを
すればよい。Table 2 It can be seen from Table 2 that when trying to rotate one step clockwise, the initial position is "0011".
That is, it is sufficient to set "3" in the register and perform one left shift.
この左シフトを順次繰返えすと、モータは時計方向に回
転する。逆に、1ステップの反時計回りをさせようとす
るときは、初期位置として「1001」すなわち「9」
を設定し、1回の右シフトをすればよい。この右シフト
を順次繰返えすと、モー外ま反時計万向に回転する。以
上のことから、レジスタとシフト制御回転方向が制御可
能となる。以下、本発明の一実施例を第3図以下の図面
に基づいて説明する。When this left shift is repeated in sequence, the motor rotates clockwise. Conversely, if you want to rotate one step counterclockwise, set "1001" or "9" as the initial position.
All you have to do is set , and shift to the right once. By repeating this shift to the right one after another, the motor rotates in all directions counterclockwise. From the above, the register and shift control rotation direction can be controlled. Hereinafter, one embodiment of the present invention will be described based on the drawings from FIG. 3 onwards.
ステップモータ2川ま、4極で1回転が24ステップ、
1ステップが15度の回転をするものを例として説明す
る。Step motor: 2 rivers, 4 poles, 24 steps per revolution.
An example in which one step rotates by 15 degrees will be explained.
21はアキュムレータ等のレジスタで、モータが4相で
あるから、4ビットの倍数の記憶容量をもつでいる。21 is a register such as an accumulator, and since the motor has four phases, it has a storage capacity that is a multiple of 4 bits.
22はシフト制御回路で、左シフトまたは右シフトを、
つまり時計回りまたは反時計回りを制御する。22 is a shift control circuit, which controls left shift or right shift;
In other words, it controls clockwise or counterclockwise.
0,1.2,3は出力ボートで、これらの出力ボート0
,1,2,3からはそれぞれ90度ずつ移相した第6図
d,a,c,bのようなパルスが出力する。0, 1, 2, 3 are output boats, these output boats 0
, 1, 2, and 3 output pulses as shown in Fig. 6 d, a, c, and b whose phase is shifted by 90 degrees, respectively.
この出力ポ−ト0,1,2,3はドライバ23,24,
25,26、バッファ(図示せず)を介して前記4極ス
テップモータ20のD相、A相、C相およびB相の順に
それぞれ接続されている。この順序がA,B,C,Dで
はなくD,A,C,Bであるのは、それぞれのパルスが
90度ずつ移相した状態で順次相隣る相へ出力せしめる
ために並べ換えたことによる。つぎに本発明の作用を第
4図のフローチャートを参照しつつ説明する。These output ports 0, 1, 2, 3 are connected to drivers 23, 24,
25, 26, and the D phase, A phase, C phase, and B phase of the four-pole step motor 20 are connected in this order via buffers (not shown), respectively. The reason why this order is D, A, C, B instead of A, B, C, D is because each pulse is rearranged so that it is output to the adjacent phase sequentially with a phase shift of 90 degrees. . Next, the operation of the present invention will be explained with reference to the flowchart shown in FIG.
まずレジスタ21に、初期値を入力する。First, an initial value is input into the register 21.
つまり、正方向の回転であれば第5図aのステップ「1
」のように「0011」を設定し、逆方向の回転であれ
ば第5図bのステップ「1」のように「1001」を設
定する。すると、この設定された値が出力ボート0,1
,2,3に謙出され、ステップモータ20の各相のドラ
イバ23,24,25,26を駆動し、ソレノイドを励
磁する。In other words, if the rotation is in the positive direction, step "1" in FIG.
If the rotation is in the opposite direction, set "1001" as in step "1" in FIG. 5b. Then, this set value is output port 0, 1
, 2, and 3, drive the drivers 23, 24, 25, and 26 of each phase of the step motor 20, and excite the solenoids.
第6図におけるt時間経過後にレジスタ21をシフト制
御回路22からの信号で時計回りとするときは左シフト
し、反時計回りとするときは右シフトとする。すると、
前記同様各相のソレノィドを励磁して第5図aまたはb
のステップロの状態になる。以後t時間経過毎にレジス
タ21を3回シフトしてステップ回転すると、全体の1
/6回転して初期状態に戻る。さらに詳しくは、正回転
の場合、レジスタ21に第5図aのステップ「1」の初
期値「0011」を設定する。When the register 21 is to be rotated clockwise by a signal from the shift control circuit 22 after the elapse of time t in FIG. 6, it is shifted to the left, and when it is to be rotated counterclockwise, it is shifted to the right. Then,
In the same way as above, the solenoids of each phase are energized and the
It will be in a step-ro state. After that, if the register 21 is shifted 3 times and rotated step by step every time t, the total 1
/6 rotations and returns to the initial state. More specifically, in the case of forward rotation, the initial value "0011" of step "1" in FIG. 5a is set in the register 21.
すると、出力ボートの1と0が「1」であるから、D相
とA相が励磁されてセットされる。つぎにシフト制御回
路22によりレジスタ21に左シフトを指令する。する
と、第5図aのステップ「D」のように、「0110」
と左へ1桁シフトするので、D相が解磁されA相とC相
が励磁される。すると、ロー外ま、1ステップだけ時計
回りに回転する。同様にしてレジスタ21を「1100
」→「1001」と順次シフトして1ステップずつ回転
せしめ、さらに初期状態「0011」となり、以下時計
方向に回転する。Then, since 1 and 0 of the output port are "1", the D phase and A phase are excited and set. Next, the shift control circuit 22 instructs the register 21 to shift to the left. Then, as in step "D" of Figure 5a, "0110"
and shifts one digit to the left, so the D phase is demagnetized and the A and C phases are excited. Then, it will rotate clockwise by one step until it goes out of low. Similarly, register 21 is set to "1100".
” → “1001” and rotated one step at a time. Further, the initial state becomes “0011” and the rotation is thereafter clockwise.
つぎに、逆回転の場合、レジスタ21に第5図bのステ
ップ「1」の初期値「1001」を設定する。Next, in the case of reverse rotation, the initial value "1001" of step "1" in FIG. 5b is set in the register 21.
すると、出力ボートの3と0が「1」であるからD相と
B相が励磁されてセットされる。つぎにシフト制御回路
22によりレジスタ21に右シフトを指令する。すると
、第5図bのステップ「D」のように、「1100」と
右へ1桁シフトし、ロータは1ステップだけ反時計回り
に回転する。以下「0110」→「0011」とシフト
し、さらに、初期状態「1001」へ戻り以下反購計方
向に回転する。前記実施例において、レジスタ21は4
ビットとしたが、4nビット(n=1,2…)の場合は
、上下各4ビット毎に同じ初期値を設定すればよい。前
記実施例では4相のステップモータの場合について説明
したが、4n相(n=1,2…)でも全く同じ方法で可
能である。Then, since output ports 3 and 0 are "1", the D phase and B phase are excited and set. Next, the shift control circuit 22 instructs the register 21 to shift to the right. Then, as in step "D" in FIG. 5b, the rotor is shifted one digit to the right to "1100" and the rotor rotates counterclockwise by one step. Thereafter, it shifts from "0110" to "0011", and then returns to the initial state "1001" and thereafter rotates in the counterclockwise direction. In the above embodiment, the register 21 has four
However, in the case of 4n bits (n=1, 2, . . . ), the same initial value may be set for each of the upper and lower four bits. In the above embodiment, the case of a 4-phase step motor was explained, but the same method can be applied to a 4n-phase step motor (n=1, 2, . . . ).
本発明は上述のような方法としたので、ステップモータ
の時計回りと反時計回りの方向転換が簡単に行なえ、し
かも簡単な回路を付加するだけであり、実装が容易で安
価に提供できる。Since the present invention employs the method described above, it is possible to easily change the direction of the step motor between clockwise and counterclockwise directions, and only requires the addition of a simple circuit, making it easy to implement and provide at low cost.
特に本発明は、トラクターフイード装置を具備したプリ
ンタ等のステップモータを使用する装置に用いるとすぐ
れた効果を有する。In particular, the present invention has excellent effects when used in devices that use a step motor, such as a printer equipped with a tractor feed device.
第1図は従来のステップモータ駆動回路のブロック図、
第2図は各部の波形図、第3図は本発明による駆動方法
を実現するためブロック図、第4図はフローチャート、
第5図a,bは正回転時と逆回転時のレジスタの出力ボ
ートの説明図、第6図a,b,c,dは各相の出力波形
図である。
11・・・・・・クロックパルス入力端子、12…・・
・パルス数制御信号入力端子、13・・・・・・アンド
ゲート、14,15・・・・・・フリッブフロップ回路
、20……ステップモータ、21……レジスタ、22…
…シフト制御回路、0,1,2,3・・・・・・出力ポ
−ト、23,24,25,26……ドライバ。
第1図第2図
第3図
第4図
第5図
第6図Figure 1 is a block diagram of a conventional step motor drive circuit.
FIG. 2 is a waveform diagram of each part, FIG. 3 is a block diagram for realizing the driving method according to the present invention, and FIG. 4 is a flow chart.
FIGS. 5a and 5b are explanatory diagrams of the output ports of the register during forward rotation and reverse rotation, and FIGS. 6a, b, c, and d are output waveform diagrams of each phase. 11... Clock pulse input terminal, 12...
・Pulse number control signal input terminal, 13...AND gate, 14, 15...Flip-flop circuit, 20...Step motor, 21...Register, 22...
...Shift control circuit, 0, 1, 2, 3... Output port, 23, 24, 25, 26... Driver. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6
Claims (1)
は正の整数)ビツトのレジスタに第1の初期値を設定し
、クロツクパルスの入力毎にレジスタを第1の方向に順
次シフトとなしこのレジスタの出力を出力ポートに読出
し、この出力ポートの各出力を4n相の各相に順次加え
、前記レジスタを第2の初期値に設定変更するとともに
、レジスタのシフト方向を第2の方向に変えることによ
り回転方向を正逆反転するようにしたステツプモータの
駆動方法。 2 特許請求の範囲第1項記載において、ステツプモー
タの各相に加えられるパルスは90度ずつ順次移相する
ようにしたステツプモータの駆動方法。[Claims] 1 4n (n
is a positive integer), set the first initial value in the bit register, shift the register sequentially in the first direction every time a clock pulse is input, read the output of this register to the output port, and read the output of this register to the output port. is sequentially added to each of the 4n phases, the setting of the register is changed to the second initial value, and the direction of rotation is reversed by changing the shift direction of the register to the second direction. Driving method. 2. A method for driving a step motor according to claim 1, wherein the pulses applied to each phase of the step motor are sequentially phase-shifted by 90 degrees.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55035599A JPS6011558B2 (en) | 1980-03-19 | 1980-03-19 | How to drive a step motor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55035599A JPS6011558B2 (en) | 1980-03-19 | 1980-03-19 | How to drive a step motor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56132198A JPS56132198A (en) | 1981-10-16 |
| JPS6011558B2 true JPS6011558B2 (en) | 1985-03-26 |
Family
ID=12446273
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55035599A Expired JPS6011558B2 (en) | 1980-03-19 | 1980-03-19 | How to drive a step motor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6011558B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6392456U (en) * | 1986-12-04 | 1988-06-15 | ||
| JPH0332862U (en) * | 1989-08-02 | 1991-03-29 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5248322U (en) * | 1975-10-01 | 1977-04-06 |
-
1980
- 1980-03-19 JP JP55035599A patent/JPS6011558B2/en not_active Expired
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6392456U (en) * | 1986-12-04 | 1988-06-15 | ||
| JPH0332862U (en) * | 1989-08-02 | 1991-03-29 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56132198A (en) | 1981-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4642544A (en) | Control circuit for driving step motor | |
| EP0437575B1 (en) | A method and a device for sensorless control of a reluctance motor | |
| US4463301A (en) | Step motor driving circuit | |
| US5663616A (en) | Noise tolerant brushless motor position monitoring apparatus and method | |
| US3986094A (en) | Logic system for print ball tilt control | |
| GB1579043A (en) | Method and drive circuitry for stepping motors | |
| US4703244A (en) | Pulse motor control apparatus | |
| JPS6011558B2 (en) | How to drive a step motor | |
| JPS6011557B2 (en) | Step motor driving method and its driving circuit | |
| US5175482A (en) | Stepping motor control circuit | |
| SU1474822A1 (en) | Pulse distributor for controlling four-phase stepping motor | |
| CA1101926A (en) | Shift register for controlling the energization of a multiwinding motor | |
| US5155427A (en) | Drive controller for stepping motor | |
| JPH0898596A (en) | Stepping motor controller | |
| JPS6115596A (en) | Stepping motor drive device | |
| JPS603679Y2 (en) | 4-phase pulse motor drive control circuit | |
| JPH0720392B2 (en) | Brushless motor drive circuit | |
| SU1372589A1 (en) | Apparatus for controlling m-phase stepping motor with step splitting | |
| JP2546370Y2 (en) | 1-2-phase excitation drive circuit for 2-phase stepping motor | |
| SU1312740A1 (en) | Digital device for controlling three-phase bridge inverter | |
| JPS6316320Y2 (en) | ||
| GB2083303A (en) | Stepper motors | |
| SU1543529A1 (en) | Pulse distributor for controlling three-phase step motor | |
| SU1767688A1 (en) | Gate electric drive | |
| JPS60113695A (en) | Drive circuit for pulse motor |