JPS61189199A - Drive controlling method of stepping motor - Google Patents

Drive controlling method of stepping motor

Info

Publication number
JPS61189199A
JPS61189199A JP2897985A JP2897985A JPS61189199A JP S61189199 A JPS61189199 A JP S61189199A JP 2897985 A JP2897985 A JP 2897985A JP 2897985 A JP2897985 A JP 2897985A JP S61189199 A JPS61189199 A JP S61189199A
Authority
JP
Japan
Prior art keywords
excitation
sequence data
phase
data
stepping 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.)
Pending
Application number
JP2897985A
Other languages
Japanese (ja)
Inventor
Kazuyuki Inagaki
和幸 稲垣
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2897985A priority Critical patent/JPS61189199A/en
Publication of JPS61189199A publication Critical patent/JPS61189199A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/36Protection against faults, e.g. against overheating or step-out; Indicating faults
    • H02P8/38Protection against faults, e.g. against overheating or step-out; Indicating faults the fault being step-out

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PURPOSE:To prevent a stepout at switching time by outputting other exciting sequence data corresponding to the same counted value as a stored position of one exciting sequence data and then sequentially outputting the other sequence data. CONSTITUTION:Data from a CPU1 is transmitted to drivers PD1-PD4 to control stepping motors MY, MM, MC, MB. Four types of exciting states by 2-phase excitation system is presented in the memory of a CPU1 at every two steps of 1-2 phase excitation type, the exciting sequence data for applying the same exciting state by 1-2 phase exciting type is stored at the location corresponding to the stored location of one data of the exciting sequence data of 2-phase exciting type prepared by two. After the other exciting sequence data corresponding to the same counted value as the storing location of one exciting sequence data is output at switching time, the other exciting sequence data are sequentially output.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ステッピングモータの駆動制御方法に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a stepping motor drive control method.

〔従来の技術〕[Conventional technology]

ステッピングモータは、ディジタル制御が容易なこと、
作動時の応答性が良いこと、及び、入力パルス信号の周
波数に比例した回転速度が得られること等の理由から、
近年、例えば、電子計算機システムにおける周辺機器の
駆動源等として多用される傾向にある。
Stepping motors are easy to control digitally,
Due to the good responsiveness during operation and the ability to obtain a rotation speed proportional to the frequency of the input pulse signal,
In recent years, there has been a tendency for them to be used frequently, for example, as drive sources for peripheral devices in electronic computer systems.

ステッピングモータを用いる一例として、連続噴射型の
インクジェットプリンタにおける、インクを噴射させる
ために加圧するインクジェットポンプのプランジャ駆動
用モータがある。
An example of using a stepping motor is a plunger drive motor of an inkjet pump that pressurizes ink in a continuous injection type inkjet printer.

このインクジェットポンプは、プランジャ駆動モータを
正転させ、その回転を直線運動に変換してプランジャを
ポンプ室内に突入させることにより、ポンプ室内の圧力
を常に一定に保つようにするとともに、このモータの逆
転でプランジャをポンプ室内から引退させることにより
、ポンプ室内に新たなインクを吸い込むように構成され
たものである。
This inkjet pump rotates the plunger drive motor in the normal direction, converts the rotation into linear motion, and pushes the plunger into the pump chamber, thereby keeping the pressure inside the pump chamber constant at all times, and also by rotating the motor in the reverse direction. By retiring the plunger from the pump chamber, new ink is sucked into the pump chamber.

そして、連続噴射型のインクジェットプリンタでは、イ
ンク吐出時に、インクジェットポンプによってインクを
1%以内の圧力変動で吐出する必要があり、プランジャ
の進み量、即ち、プランジャ駆動用モータとしてのステ
ッピングモータのステップ角を小さくして、インクジェ
ットポンプをスムースに運転する必要がある。
In continuous jet inkjet printers, when ejecting ink, it is necessary for the inkjet pump to eject ink with pressure fluctuations within 1%. It is necessary to make the inkjet pump smaller so that the inkjet pump can operate smoothly.

そこで、例えば、ステッピングモータとして3相或いは
4相のものを用いる場合のインク吐出時には、1つの相
と2つの相とを交互に励磁する。いわゆる1−2相励磁
力式を採用して、通常の半分の速度でステッピングモー
タを回転させることが好ましい。一方、インク吸込時に
は、特にステップ角を小さくする必要はなく、一般的に
よく用いられる、2つの相を常に励磁する、いわゆる2
相励磁力式を採用して、通常の速度でステッピングモー
タを回転させればよい。つまり、正転時と逆転時とで、
ステッピングモータに対する励磁方式を変えて駆動制御
する必要がある。
Therefore, for example, when ejecting ink when a three-phase or four-phase stepping motor is used, one phase and two phases are alternately excited. It is preferable to adopt a so-called 1-2 phase excitation force type and rotate the stepping motor at half the normal speed. On the other hand, when sucking ink, there is no need to particularly reduce the step angle, and the so-called two-phase
It is sufficient to adopt a phase excitation magnetic force type and rotate the stepping motor at a normal speed. In other words, during forward rotation and reverse rotation,
It is necessary to control the stepping motor by changing its excitation method.

従来、ステッピングモータにおいて、入力パルスから励
磁方式に応じた励磁出力信号を作り出す部分は、専用の
IC等を用いる形式のものであり、上述したような、例
えば、励磁方式を変えてステッピングモータを正逆転等
させる駆動制御も、それらIC等からなるいわゆるワイ
ヤードロジックによる方法により行われていた(特に文
献はない)。
Conventionally, in a stepping motor, the part that generates an excitation output signal according to the excitation method from input pulses uses a dedicated IC or the like. Drive control for reverse rotation, etc., was also performed by a method using so-called wired logic made up of these ICs (there is no specific literature).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、上述した従来構成による場合には、専用のIC
の価格が高く、また、それらを駆動する付加回路も必要
であるので、全体としてコスト高になる虞れがあった。
However, in the case of the conventional configuration described above, a dedicated IC
Since they are expensive and additional circuits are required to drive them, there is a risk that the overall cost will be high.

本発明の目的は、上記実情に鑑み、励磁方式を適宜切り
替えて駆動させるステッピングモータの駆動制御を、コ
スト的に有利に行えるようにするとともに、切替え時の
動作をスムースに行えるようにすることにある。
In view of the above-mentioned circumstances, an object of the present invention is to enable cost-effective drive control of a stepping motor that is driven by appropriately switching the excitation method, and to enable smooth operation when switching. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によるステッピングモータの駆動制御方法の特徴
は、二つの異なった励磁方式による入力パルス毎の励磁
シーケンスデータを、夫々のデータのうちの、ステップ
角が大きい励磁方式の1ステンプ角を越えないもの同士
を組み合わせてカウンタの同一カウンタ値に対応するよ
うに各別の記憶手段に格納し、夫々の励磁シーケンスデ
ータを、カウンタの加算及び減算に伴ってそのカウンタ
値に対応してループ状に順次出力することにより、ステ
ッピングモータを正転及び逆転させるようにするととも
に、それら二つの励磁方式のうちの一方から他方に切り
替える際に、その時点で出力されている一方の励磁シー
ケンスデータの格納位置と同一のカウンタ値に対応する
他方の励磁シーケンスデータを出力した後に、他方の励
磁シーケンスデータを順次出力することにある。
A feature of the stepping motor drive control method according to the present invention is that the excitation sequence data for each input pulse using two different excitation methods is set so that the excitation sequence data of each input pulse does not exceed one step angle of the excitation method with a larger step angle. The excitation sequence data is combined and stored in separate storage means so as to correspond to the same counter value of the counter, and each excitation sequence data is sequentially output in a loop according to the counter value as the counter is added and subtracted. By doing this, the stepping motor is rotated forward and reverse, and when switching from one of these two excitation methods to the other, the storage location of one of the excitation sequence data that is being output at that time is the same. After outputting the other excitation sequence data corresponding to the counter value of , the other excitation sequence data is sequentially outputted.

〔作 用〕[For production]

つまり、ステッピングモータの駆動を制御するにあたっ
て、励磁方式に応じたモータの各相への励磁の順序を決
定するための信号の種類は、モータの相数とその励磁方
式等により定まるものであり、しかも限られたものであ
る。例えば、3相のモータを2相励磁力式で駆動する場
合には3種類、4相のモータを1−2相励磁力式で、駆
動する場合には8種類しかない。そこで、それら限られ
た種類の信号を、予めシーケンスデータとして記憶させ
ておき、入力パルスに応じてそのシーケンスデータをル
ープ状に順次出力するようにすれば、所定の励磁シーケ
ンスでステッピングモータは駆動されるのである。また
、複数の励磁方式に対応させるためには、夫々のシーケ
ンスデータを各別の記憶手段にストアさせておき、必要
とする励磁方式のデータを出力するようにすればよい訳
である。
In other words, when controlling the drive of a stepping motor, the type of signal used to determine the order of excitation of each phase of the motor according to the excitation method is determined by the number of phases of the motor, its excitation method, etc. Moreover, it is limited. For example, when driving a 3-phase motor with a 2-phase excitation force type, there are 3 types, and when driving a 4-phase motor with a 1-2 phase excitation force type, there are only 8 types. Therefore, if these limited types of signals are stored in advance as sequence data and the sequence data is sequentially output in a loop according to the input pulse, the stepping motor will be driven according to the predetermined excitation sequence. It is. In addition, in order to accommodate a plurality of excitation methods, each sequence data may be stored in separate storage means, and the data for the required excitation method may be output.

ところが、例えば、先程説明したような技術的要求から
、正逆転時に夫々wJ磁方式を異ならせて駆動する場合
には、2つの励磁方式によるシーケンスデータを、互い
に関連させて記憶手段にストアしておく必要がある。つ
まり、正逆転の切替えと同時に励磁方式の切替えを行っ
た場合、夫々異なった記憶手段からの2つのシーケンス
データが続いて出力されることになるが、それら2つの
シーケンスデータにより励磁される相が全く異なってい
ると、この時ステッピングモータは、1パルスあたり1
ステップ角以上回転することとなり、いわゆる脱調現象
が正してしまうからである。
However, for example, due to the technical requirements explained earlier, when driving with different wJ magnetic methods during forward and reverse rotation, the sequence data of the two excitation methods must be stored in a storage means in relation to each other. It is necessary to keep it. In other words, if the excitation method is switched at the same time as forward/reverse switching, two sequence data from different storage means will be output successively, but the phase excited by these two sequence data will be In a completely different way, the stepping motor at this time has 1 pulse per pulse.
This is because the rotation exceeds the step angle and the so-called step-out phenomenon is corrected.

そこで、異なった励磁方式による2つのシーケンスデー
タを各別の記憶手段に格納するにあたって、夫々のデー
タのうちの、ステップ角の大きい励磁方式の1ステップ
角を越えないもの同士を組み合わせてカウンタの同一カ
ウンタ値に対応させるとともに、二つの励磁方式のうち
の一方から他方に切り替える際に、その時点で出力され
ている一方の励磁シーケンスデータの格納位置と同一の
カウンタ値に対応する他方の励磁シーケンスデータを出
力した後に、他方の励磁シーケンスデータを順次出力す
ることによって、励磁方式の切替え時に、ステ・ノピン
グモータが1パルスあたり1ステップ角以上回転するこ
とがないようにしである。
Therefore, when storing two sequence data based on different excitation methods in separate storage means, data of each data that does not exceed one step angle of the excitation method with a large step angle is combined and stored in the same counter. In addition to corresponding to the counter value, when switching from one of the two excitation methods to the other, the other excitation sequence data corresponds to the same counter value as the storage position of one of the excitation sequence data output at that time. By sequentially outputting the other excitation sequence data after outputting , the step/knopping motor is prevented from rotating by more than one step angle per pulse when switching the excitation method.

〔実施例〕〔Example〕

以下に、図面に基づいて、本発明の詳細な説明する。 The present invention will be described in detail below based on the drawings.

第1図は、本発明による駆動制御方法を適用したステッ
ピングモータを、連続噴射型のインクジェットプリンタ
におけるインクジエ・ノドポンプのプランジャ駆動用モ
ータとして用いる場合の、制御装置の一例を示すブロッ
ク図である。
FIG. 1 is a block diagram showing an example of a control device when a stepping motor to which the drive control method according to the present invention is applied is used as a plunger drive motor of an inkjet throat pump in a continuous jet inkjet printer.

マイクロコンピュータの中央処理装置(以後CPUと略
称する)(1)には、クロックパルスジェネレータ(2
)からの基準クロックパルスが入カポ−) (CLK)
を介して入力されている。出力ボート(Pfi)からは
、イエロー、マゼンタ、シアン、及び、グラツクの4色
のインクを夫々加圧して吐出する、4個のインクジェッ
トポンプに対するプランジャ駆動用ステッピングモータ
(MY) 、 (MM) 、 (MC) 、 (Ml)
に、各別のデータラッチ回路(3a)〜(3d)及びパ
ワードライブ回路(4a)〜(4d)を介して、モータ
駆動信号としてのパルス信号を出力するように構成しで
ある。また、CP U (1)には、外部からの各種制
御信号及び描画データ等が入力されるとともに、各イン
クジニットポンプのポンプ室に付設された圧力センサ(
psy) 、 (ps、4) 、 (psc) 、 (
psm)からの検出信号が、入力ボート(1,、)を介
して夫々入力されている。
The central processing unit (hereinafter referred to as CPU) (1) of the microcomputer includes a clock pulse generator (2).
) (CLK)
is entered via. From the output boat (Pfi), there are stepping motors (MY), (MM), ( MC), (Ml)
In addition, it is configured to output a pulse signal as a motor drive signal via separate data latch circuits (3a) to (3d) and power drive circuits (4a) to (4d). In addition, various control signals and drawing data from the outside are input to the CPU (1), and a pressure sensor (
psy), (ps,4), (psc), (
Detection signals from the ports (psm) are inputted via the input ports (1, , ), respectively.

そして、それら各センサ(psv) 、 (PS)l)
 、 (psc) 。
And each of those sensors (psv), (PS)l)
, (psc).

(psi)による検出結果に基づいて、各ポンプ室内の
圧力が常に一定圧に維持されるように、各ステッピング
モータ□b) 、 (MM) 、 (MC) 、 (M
l)を正転駆動さ・せ、その回転をネジ送り機構により
直線運動に変換して、プランジャをポンプ室内に突入さ
せるように構成しである。また、所定の描画が終了して
ポンプ室内のインク残量が少なくなれば、各モータ(M
Y) 、 (MM) 、 (MC) 、 (MB)を逆
転駆動させ、プランジャをポンプ室内から引退させて、
ポンプ室内に新たなインクを吸い込むように構成しであ
る。
Based on the detection result by (psi), each stepping motor □b), (MM), (MC), (M
1) is driven in the normal direction, and the rotation is converted into linear motion by a screw feed mechanism, so that the plunger is thrust into the pump chamber. Also, when the amount of ink remaining in the pump chamber becomes low after the specified drawing is completed, each motor (M
Y), (MM), (MC), and (MB) are driven in reverse, and the plunger is retired from the pump chamber.
It is configured to suck new ink into the pump chamber.

各ステッピングモータ(My) 、 (MM) 、(M
c) 、 (1’Ls)に対する駆動部(PD、)は4
つとも同一であり、その回路図を第2図に示す。なお、
図中、ステッピングモータは(M)、データラッチ回路
は(3)、パワードライブ回路は(4)の符号を、夫々
複数個のものを代表するものとして付しである。
Each stepping motor (My), (MM), (M
c) The driving part (PD, ) for (1'Ls) is 4
The circuit diagram is shown in FIG. 2. In addition,
In the figure, the stepping motor is designated by (M), the data latch circuit is designated by (3), and the power drive circuit is designated by (4), each representing a plurality of components.

データラッチ回路(3)には、CP U (1)からの
8本のデータライン(Do)〜(D、)が接続されてお
り、それら各データライン(Do)〜(D、)により与
えられるデータに基づいて、パワードライブ回路(4)
を介して、ステッピングモータ(M)の各相(A) 、
 (B) 、 (勧、 (TI)を励磁するように構成
されている。尚、図中(5)は、ステッピングモータ(
M)の駆動状態と停止状態とを切り替えるフォトセンサ
からなるスイッチング回路である。
Eight data lines (Do) to (D,) from the CPU (1) are connected to the data latch circuit (3), and the data given by each of the data lines (Do) to (D,) is connected to the data latch circuit (3). Based on data, power drive circuit (4)
Through each phase (A) of the stepping motor (M),
(B), (TI) is configured to excite the stepping motor (TI).
This is a switching circuit consisting of a photosensor that switches between a driving state and a stopped state of M).

ここで用いているステッピングモータ(M)は、4相の
ハイブリッド形であり、励磁方式には、1つの相を順次
励磁しながら運転する1相励磁力式、常に2つづつの相
を順次励磁しなから運転する2相励磁力式、及び、1つ
の相と2つの相とを交互に励磁しながら運転する1−2
相励磁力式の3種類がある。そして、この実施例でのイ
ンクジェットポンプにおいては、インクを1%以内の圧
力変動で吐出する必要があることから、先程述べたモー
タ(M)の正転によるインク吐出時には、ステッピング
モータ(M)のステップ角を小さくしてスムースに運転
させるべく、通常の半分の速度でモータ(M)が回転す
る1−2相励磁力式を採用している。一方、先程述べた
モータ(M)の逆転によるインク吸込時には、特にステ
ップ角を小さくする必要はなく、通常の速度でモータ(
M)が回転する2相励磁力式を採用している。
The stepping motor (M) used here is a 4-phase hybrid type, and the excitation method includes a 1-phase excitation force type that operates while sequentially exciting one phase, and a 1-phase excitation force type that operates while sequentially exciting one phase. Two-phase excitation force type that operates from the ground, and 1-2 that operates while alternately exciting one phase and two phases.
There are three types of phase excitation magnetic force type. In the inkjet pump of this embodiment, since it is necessary to eject ink with a pressure fluctuation within 1%, when ink is ejected by normal rotation of the motor (M) mentioned earlier, the stepping motor (M) is In order to reduce the step angle and operate smoothly, a 1-2 phase excitation force type is adopted in which the motor (M) rotates at half the normal speed. On the other hand, when ink is sucked by reversing the motor (M) as mentioned earlier, there is no need to particularly reduce the step angle, and the motor (M) runs at the normal speed.
A two-phase excitation force type in which M) rotates is adopted.

上述した両励磁方式によるステッピングモータ(M)の
各相の励磁は、先程述べたように、CPU(1)からデ
ータライン(Do)〜(D、)を介して伝送される駆動
データに基づいて行われるように構成されており、以下
、その駆動データについて説明する。
The excitation of each phase of the stepping motor (M) by the above-mentioned two excitation methods is based on the drive data transmitted from the CPU (1) via the data lines (Do) to (D,), as described earlier. The drive data will be described below.

先ず、第3図(イ)は、2相励磁力式における入力パル
スと各相の励磁状態との関係を示すタイムチャートであ
る。各入力パルス毎に、常に2つの相が励磁されながら
、励磁される相が順次変化し、5回目の入力パルス毎に
同じ励磁状態を繰り返すようになっており、4種類の励
磁状態がある訳である。このステッピングモータ(M)
は、ロータの周囲に50個の歯を形成してあり、上述し
た1パルス毎に、1.86づつ、即ち、ステップ角1.
8 ’でモータ(M)が回転することとなる。今、ある
相が励磁されている状態を“1”とし、励磁されていな
い状態を“0”とすれば、各入力パルス毎の各相の状態
は表1のようになる。
First, FIG. 3(a) is a time chart showing the relationship between the input pulse and the excitation state of each phase in the two-phase excitation force formula. For each input pulse, two phases are always excited, and the excited phase changes sequentially, and the same excitation state is repeated every fifth input pulse, which is why there are four types of excitation states. It is. This stepping motor (M)
has 50 teeth formed around the rotor, and each pulse has a step angle of 1.86, that is, a step angle of 1.
The motor (M) will rotate at 8'. Now, if a state in which a certain phase is excited is "1" and a state in which it is not excited is "0", the state of each phase for each input pulse will be as shown in Table 1.

さらに、A相をデータライン(11゜)に、B相をデー
タライン(nl)に、W相をデータライン(D2)に、
そして、■相をデータライン(D3)に、夫々対応させ
ることにより、各相(A) 、 (B) 、 (A) 
、 (B)に対する励磁信号を、CP ’U (1)か
らの8ビツトのデータとして表すことができる。表2に
、各入力パルス毎のデータの内容と、それを16進コー
ドで表したものを示す。
Furthermore, the A phase is connected to the data line (11°), the B phase is connected to the data line (nl), the W phase is connected to the data line (D2),
Then, by making the ■ phase correspond to the data line (D3), each phase (A), (B), (A)
, (B) can be expressed as 8-bit data from CP 'U (1). Table 2 shows the content of data for each input pulse and its hexadecimal code.

表2 従って、16進コードで表せば“03 (111”。Table 2 Therefore, if expressed in hexadecimal code, it is "03 (111)".

“06 (Ill ” 、“、OC+o+ ” + ”
 09(111”の4つのデータを、その順に或いはそ
の逆の順に、ループ状に順次CP U (1)から出力
することによって、ステッピングモータ(M)を正逆方
向に駆動回転することができるのであり、それら4つの
データをその順に組み合わせたものを、2相励磁力式の
励磁シーケンスデータと称することとする。
“06 (Ill”, “,OC+o+”+”
The stepping motor (M) can be driven and rotated in the forward and reverse directions by sequentially outputting the four data of 09 (111") from the CPU (1) in a loop in that order or in the reverse order. The combination of these four data in that order will be referred to as two-phase excitation force type excitation sequence data.

次に、第3図(TI)は、1−2相励磁力式における入
力パルスと各相の励磁状態との関係を示すタイムチャー
トである。各入力パルス毎に、1つの相と2つの相とが
交互に励磁されながら励磁される相が順次変化し、9回
目の入力パルス毎に同じ励磁状態を繰り返すようになっ
ており、8種類の励磁状態がある訳である。この励磁方
式によれば、1パルス毎に、0.9°づつ、即ち、ステ
ップ角0.9°でモータ(M)が回転することとなる。
Next, FIG. 3 (TI) is a time chart showing the relationship between the input pulse and the excitation state of each phase in the 1-2 phase excitation force formula. For each input pulse, one phase and two phases are excited alternately, and the excited phase changes sequentially, and the same excitation state is repeated every 9th input pulse, resulting in eight types of This is why there is an excitation state. According to this excitation method, the motor (M) rotates by 0.9° for each pulse, that is, at a step angle of 0.9°.

先程と同様に、ある相の励磁の状態を“0″と“1”と
の2進コードで表せば、各入力パルス毎の各相の状態は
次頁の表3のようになる。
As before, if the excitation state of a certain phase is represented by a binary code of "0" and "1", the state of each phase for each input pulse will be as shown in Table 3 on the next page.

さらに、先程と同様に、各相(A) 、 (B) 、 
(A) 、 (酌に対する励磁信号を、CPU(1)か
らの8ビツトのデータとして表せば、次頁の表4のよう
になる。
Furthermore, as before, each phase (A), (B),
(A) (If the excitation signal for the cup is expressed as 8-bit data from the CPU (1), it will be as shown in Table 4 on the next page.

従って、16進コードで表せば 01 (H)”8”0
3(II>”+“02(Kl ” + ” 06(H)
 ” +“04 (Ill ” 1“OCcM、” l
 ”08(H) ” l ”09(H) ”の8つのデ
ータを、その順に或いはその逆の順に、ループ状に順次
CPU(1)から出力することによって、ステッピング
モータ(M)を正逆方向に駆動回転することができるの
であり、それら8つのデータをその順に組み合わせたも
のを、1−2相励磁方式の励磁シーケンスデータと称す
ることとする。
Therefore, if expressed in hexadecimal code, it is 01 (H)”8”0
3(II>"+"02(Kl"+"06(H)
” + “04 (Ill” 1 “OCcM,” l
The stepping motor (M) can be rotated in the forward and reverse directions by sequentially outputting the eight data "08 (H)" l "09 (H)" from the CPU (1) in that order or in the reverse order in a loop. The combination of these eight pieces of data in that order will be referred to as the excitation sequence data of the 1-2 phase excitation method.

上述した2つの励磁方式のシーケンスデータは、CP 
U (1)内で、夫々、第5図及び第7図に示す記憶手
段の一例である各別のメモリ(R1)。
The sequence data of the two excitation methods mentioned above is CP
Within U (1), each separate memory (R1) is an example of the storage means shown in FIGS. 5 and 7, respectively.

(R2)内の、連続した番地に格納されている。そして
、それらシーケンスデータを読み出すためのアクセスカ
ウンタを設けてあり、このカウンタの加算又は減算に伴
って、そのカウンタ値が示す番地に格納されたデータを
出力することにより、ステッピングモータ(M)の正逆
転を行うように構成されている。また、この実施例にお
いては、先程説明したように、モータ(M)の正逆転時
に励磁方式を異ならせて駆動するように構成してあり、
後述するように、それら励磁方式の切替え動作をスムー
スに行わせるために、2つのシーケンスデータに対して
同じカウンタを用いるように構成しである。
(R2) are stored at consecutive addresses. An access counter is provided for reading out the sequence data, and as this counter is added or subtracted, the data stored at the address indicated by the counter value is output, thereby correcting the stepping motor (M). Configured to perform reversal. In addition, in this embodiment, as explained earlier, the motor (M) is configured to be driven using different excitation methods when the motor (M) is rotated in the forward or reverse direction.
As will be described later, in order to smoothly perform the excitation method switching operation, the same counter is used for the two sequence data.

つまり、1−2相励磁方式ではデータの種類が8種類で
あり、2相励磁方弐ではデータの種類が4種類あるが、
2相励磁方式の各データを夫々2個づつ用意し、メモリ
(R2)内の隣り合う番地にそれら同一のデータを格納
することによって、2相励磁方式のシーケンスデータを
8個とし、同一のカウンタにより1−2相励磁方式と同
様のアクセスができるようにしである。そして、それら
データを読み出すにあたって、1−2相励磁方式による
モータ正転時には、カウンタを1回づつインクリメント
することにより、また、2相励磁方式によるモータ逆転
時には、カウンタを2回づつデクリメントすることによ
り、必要なデータをCPU(1)から出力することがで
きるようにしである。
In other words, in the 1-2 phase excitation method, there are 8 types of data, and in the 2-phase excitation method, there are 4 types of data.
By preparing two pieces of each data for the two-phase excitation method and storing the same data in adjacent addresses in the memory (R2), there are eight pieces of sequence data for the two-phase excitation method, and the same counter This allows access similar to the 1-2 phase excitation method. To read these data, when the motor rotates forward in the 1-2 phase excitation method, the counter is incremented once, and when the motor is reversed in the 2-phase excitation method, the counter is decremented twice. , so that necessary data can be output from the CPU (1).

さらに、後程、動作説明の際に詳述するが、各別のメモ
リ(Ill)、(R2)内において、2つの励磁方式の
励磁シーケンスデータのうちの、ステップ角が大きい励
磁方式の1ステップ角を越えないものどうしを組み合わ
せて、カウンタの同一カウント値に対応するように格納
しである。
Furthermore, as will be explained in detail later when explaining the operation, one step angle of the excitation method with the larger step angle among the excitation sequence data of the two excitation methods in each of the separate memories (Ill) and (R2). The combinations that do not exceed , are stored so that they correspond to the same count value of the counter.

即ち、2相励磁方式による4種類の励磁状態は、1−2
相励磁方式における2ステップ毎に出現するものであり
、2個づつ用意した2相励磁方式の各励磁シーケンスデ
ータの、一方のデータの格納位置に対応する位置に、1
−2相励磁方式による同一励磁状態を与える励磁シーケ
ンスデータを格納しである。次頁の表5に、両励磁方式
による励磁シーケンスデータをカウンタ値に対応させた
ものを示す。
In other words, the four types of excitation states by the two-phase excitation method are 1-2.
It appears every two steps in the phase excitation method, and one is placed in the position corresponding to the storage position of one of each excitation sequence data of the two-phase excitation method prepared in pairs.
- Stores excitation sequence data that provides the same excitation state using the two-phase excitation method. Table 5 on the next page shows excitation sequence data for both excitation methods in correspondence with counter values.

つまり、二つの励磁方式のうちの一方から他方に切り替
える際に、その時点で出力されている一方の励磁シーケ
ンスデータの格納位置と同一のカウンタ値に対応する他
方の励磁シーケン表5 スデータを出力した後に、他方の励磁シーケンスデータ
を順次出力させることにより、税調現象が生じることを
防止できるのである。
In other words, when switching from one of the two excitation methods to the other, the excitation sequence data of the other corresponding to the same counter value as the storage position of the excitation sequence data of one that is being output at that time is output. By sequentially outputting the other excitation sequence data later, it is possible to prevent the tax adjustment phenomenon from occurring.

例えば、モータ(M)の正転時に1−2相励磁力式で駆
動しており、出力データが“06 n+)”の時に励磁
方式の切替え操作がなされたとする。
For example, suppose that the motor (M) is driven by a 1-2 phase excitation force type during normal rotation, and the excitation method switching operation is performed when the output data is "06 n+)".

この時、1−2相励磁力式による出力データ“06(I
ll”の格納位置に対応する位置に格納された2相励磁
力式のデータも“06 (M)”である。
At this time, the output data “06 (I
The two-phase excitation force formula data stored in the position corresponding to the storage position of “ll” is also “06 (M)”.

従って、2相励磁力式でモータ(M)を逆転駆動するに
あたって、まず、この2相励磁力式のデータを出力した
後に、カウンタを2回づつデクリメントして励磁シーケ
ンスデータを順次出力することで、脱調が防げるのであ
る。
Therefore, when driving the motor (M) in reverse using the two-phase excitation force type, first output the data of this two-phase excitation force type, then decrement the counter twice and sequentially output the excitation sequence data. , this prevents loss of synchronization.

また、例えば、励磁方式の切替え時の出力データが“0
4(約”の場合には、対応する2相励磁力式の励磁シー
ケンスデータは“06□、”であるが、両データの関係
は、2相励磁力式の1ステップ角よりは小さく、それら
が連続して出力されたとしても、脱調となることはない
Also, for example, the output data when switching the excitation method is “0”.
4 (approximately), the corresponding excitation sequence data of the two-phase excitation force formula is "06□," but the relationship between both data is smaller than the one step angle of the two-phase excitation force formula, and their Even if the signal is output continuously, no synchronization occurs.

尚、表5中でカウンタ値を“00 (H)”から“08
 +Ill″までの9個にしているのは次の理由による
。即ち、ステッピングモータ(M)を2相励磁力式によ
って逆転させる際には、カウンタを2回づつデクリメン
トするが、“00 (Ml″をデクリメントすると“O
FF (111″となるので、デクリメント時にカウン
タ値が00 (ot”になれば、カウンタをリセットし
て“08(II)”とするようにしである。そこで、カ
ウンタ値の“QQ(+n″に対応する位置にはダミーデ
ータを格納するようにして、必要とするデータはカウン
タ値の“01(lI、”から“0卜ゎ′の位置に対応し
て格納しであるからである。また、1−2相励磁力式に
よってモータ(M)を正転させる際には、カウンタを1
回づつインクリメントするが、カウンタ値が“08□、
′になれば、カウンタをリセットして“0Ofll)”
とするようにしである。
In addition, in Table 5, the counter value is changed from “00 (H)” to “08 (H)”.
The reason why the number is set to 9 up to +Ill'' is as follows. That is, when the stepping motor (M) is reversed by the two-phase excitation force type, the counter is decremented twice, but the counter is decremented twice, but the counter is decremented twice. Decrementing “O
FF (111"), so if the counter value reaches 00 (ot) when decrementing, the counter is reset to "08 (II)". Therefore, the counter value "QQ (+n") is This is because dummy data is stored in the corresponding position, and the necessary data is stored corresponding to the position from the counter value "01 (lI,") to "0゜ゎ'. Also, When rotating the motor (M) in the forward direction using the 1-2 phase excitation force type, set the counter to 1.
It is incremented one by one, but the counter value is “08□,”
', reset the counter and write "0Ofll)"
This is how it works.

先程説明した側励磁方式の励磁シーケンスデータの格納
の形式は、表5に示すものの他゛にもう一種類可能であ
る。即ち、表5に示すものにおいては、2つづつ用意し
た2相励磁力式の励磁シーケンスデータに対して、その
一方の格納位置に対応する位置に、1−2相wJ磁方式
による同じ励磁状態を与える励磁シーケンスデータを格
納するとともに、他方の格納位置に対応する位置には、
そのデータによる励磁状態に対して、1−2相励磁力式
による正転方向に1ステップ角遅れた励磁状態を与える
励磁シーケンスデータを格納するものであった。この方
式に替えて、2相励磁力式の他方の励磁シーケンスデー
タの格納位置に対応する位置に、そのデータによ為励磁
状態に対して、1−2相励磁力式による正転方向に1ス
テップ角進んだ励磁状態を与える励磁シーケンスデータ
を格納するようにしてもよい訳である。表6に、この形
式による両励磁シーケンスデータをカウンタ値にさ妊た
ものを示す。
In addition to the format shown in Table 5, there is another possible storage format for the excitation sequence data of the side excitation method described earlier. That is, in the case shown in Table 5, for the excitation sequence data of the two-phase excitation force type prepared in pairs, the same excitation state by the 1-2 phase wJ magnetic method is placed at the position corresponding to the storage position of one of the excitation sequence data. In addition to storing the excitation sequence data that gives the
Excitation sequence data that provides an excitation state that is delayed by one step angle in the normal rotation direction based on the 1-2 phase excitation force formula with respect to the excitation state based on the data is stored. Instead of this method, the data is stored in the position corresponding to the storage position of the other excitation sequence data of the 2-phase excitation force type. This means that excitation sequence data that provides an excitation state advanced by a step angle may be stored. Table 6 shows the combination of both excitation sequence data in this format as a counter value.

次に、以上のようにして、各別のメモリ(R1)。Next, each separate memory (R1) is created as described above.

(R2)内に格納された2つの励磁方式による励磁シー
ケンスデータを用いた、ステッピングモータ(M)の正
逆転動作を、第4図及び第6図のフローチャー1・に基
づいて説明する。尚、各データは、表5に示す形式によ
って、第5図及び第7図に示すようなテーブル状に格納
されているものとする。
The forward/reverse operation of the stepping motor (M) using the excitation sequence data of the two excitation methods stored in the motor (R2) will be explained based on flowchart 1 of FIGS. 4 and 6. It is assumed that each data is stored in the format shown in Table 5 in the form of a table as shown in FIGS. 5 and 7.

第4図は、■−2相励磁方式による正転時のフローチャ
ートを示している。
FIG. 4 shows a flowchart during forward rotation using the -2-phase excitation method.

このフローでは、先ずデータアクセス用カウンタ(IC
NT)の内容をチェックする(No、1)、 このカウ
ンタ(ICNT)の内容が16進数で“08181”の
時にのみ、先程述べたようにカウンタ(ICNT)をリ
セットして” 00 (H)”にしくNo、2)、それ
以外の時には何も行わずに(No、3)のステップに進
む。
In this flow, first the data access counter (IC
Check the contents of the counter (ICNT) (No, 1). Only when the contents of this counter (ICNT) is "08181" in hexadecimal, reset the counter (ICNT) as mentioned earlier and write "00 (H)". Otherwise, do nothing and proceed to step (No, 3).

(No、3)のステップでは、1−2相励磁力式による
励磁シーケンスデータが格納されているメモリ(R1)
の先頭位置の番地(DAX(01))を、Xレジスタ(
IX)に読み込む。続いて、BCレジスタ(IBC)に
カウンタ(ICNT)の内容を読み込み(No、4)、
Xレジスタ(IX)にBCCレジスフIBC)の内容を
加算する(No、 5)。
In step (No, 3), the memory (R1) stores the excitation sequence data based on the 1-2 phase excitation force formula.
The address of the start position (DAX (01)) of the X register (
IX). Next, read the contents of the counter (ICNT) into the BC register (IBC) (No, 4),
Add the contents of the BCC register (IBC) to the X register (IX) (No, 5).

その後、Xレジスタ(IX)の内容に従って、メモリ(
R1)から励磁シーケンスデータ(DATA(IX))
をAレジスタ(IA)にロードしくNo、6)、Aレジ
スタ(I^)の内容を、データラッチ回路(3)に出力
する(No、7)、各シーケンスデータは、メモリ(R
8)内で第5図に示すように格納されている。
Then, according to the contents of the X register (IX), the memory (
R1) to excitation sequence data (DATA(IX))
is loaded into the A register (IA) (No, 6), the contents of the A register (I^) are output to the data latch circuit (3) (No, 7), each sequence data is stored in the memory (R
8) as shown in FIG.

例えば、カウンタ(ICNT)が“03.)”であれば
、励磁シーケンスデータとして“06(ゎ′が出力され
ることとなる。
For example, if the counter (ICNT) is "03.)", "06 (ゎ')" will be output as the excitation sequence data.

励磁シーケンスデータの出力が終了すれば、カウンタ(
ICNT)を1回インクリメントした後(No、8)、
(No、1’)のステップに戻って上述したフローを繰
り返す。これにより、メモリ(R1)内の励磁シーケン
スデータがループ状に順次出力され、ステッピングモー
タ(M)は正転方向に駆動されることとなる。
When the output of excitation sequence data is completed, the counter (
After incrementing ICNT) once (No, 8),
Returning to step (No, 1'), the above-described flow is repeated. As a result, the excitation sequence data in the memory (R1) is sequentially output in a loop, and the stepping motor (M) is driven in the normal rotation direction.

第6図は、2相励磁力式による逆転時のフロ−チャート
を示している。
FIG. 6 shows a flowchart at the time of reversal using the two-phase excitation force type.

このフローでは、2相励磁力式による励磁シーケンスデ
ータが格納されているメモリ(R2)の先頭位置の番地
(DAY(01))を、Yレジスタ(IY)に読み込む
(No、11)、続いて、BCレジスタ(IBC)にカ
ウンタ(ICNT)の内容を読み込み(No、12)、
それをYレジスタ(IY)に加算する(No、 13)
、その後、先程の1−2相励磁力式の場合と同様に、Y
レジスタ(IY)の内容に従って、メモリ(R2)から
励磁シーケンスデータ(DATA(IV))をAレジス
タ(■八)にロードしくNo、14)、それをデータラ
ンチ回路(3)に出力する(No、15)、メモリ(R
2)内での各シーケンスデータの格納状態は、第7図に
示すようになっている。
In this flow, the start address (DAY (01)) of the memory (R2) where excitation sequence data based on the two-phase excitation force formula is stored is read into the Y register (IY) (No, 11), and then , reads the contents of the counter (ICNT) into the BC register (IBC) (No, 12),
Add it to Y register (IY) (No, 13)
, then, as in the case of the 1-2 phase excitation force formula, Y
According to the contents of the register (IY), load the excitation sequence data (DATA (IV)) from the memory (R2) into the A register (■8) (No, 14), and output it to the data launch circuit (3) (No. , 15), memory (R
The storage state of each sequence data in 2) is as shown in FIG.

励磁シーケンスデータの出力が終了すれば、カウンタ(
ICNT)を1回デクリメントした後(No、16)、
カウンタ(TCNT)の内容をチェ7りする(No、1
7)。カウンタ(ICNT)が’00(H)”であれば
、先程述べたように、カウンタ(TCNT)をリセット
して“’ 08 n++”にした後(No、18)、(
No、11)のステップに戻る。カウンタ(ICNT)
が“00 ()+1”以外であれば、さらに1回デクリ
メントした後(No、 19)、再度カウンタ(ICN
T)の内容をチェックすル(No、20)。カウンタ(
ICNT)が” 00 Tl11”でなければ、何も行
わずに(No、11)のステップに戻り、カウンタ(T
CNT)が“00.。′であれば、同じくカウンタ(I
CNT)をリセットして“08(II)″にした後(N
o、21)、(No、11)のステップに戻る。
When the output of excitation sequence data is completed, the counter (
After decrementing ICNT) once (No, 16),
Check the contents of the counter (TCNT) (No, 1)
7). If the counter (ICNT) is '00 (H)'', as mentioned earlier, after resetting the counter (TCNT) and setting it to '08 n++' (No, 18), (
No, return to step 11). Counter (ICNT)
If it is other than “00 () + 1”, it is decremented once more (No, 19), and then the counter (ICN
Check the contents of T) (No. 20). counter(
ICNT) is not “00 Tl11”, do nothing and return to step (No, 11), and count the counter (Tl11).
CNT) is “00..”, the counter (I
CNT) and set it to “08(II)” (N
o, 21), return to step (No, 11).

(No、 11)のステップに戻った後は、上述したフ
ローを繰り返す。これにより、メモリ(R2)内の励磁
シーケンスデータがループ状に順次出力され、ステッピ
ングモータ(M>は逆転方向に駆動されることとなる。
After returning to step (No, 11), the above-described flow is repeated. As a result, the excitation sequence data in the memory (R2) is sequentially output in a loop, and the stepping motor (M>) is driven in the reverse direction.

先に述べた実施例では、励磁方式として、2相励磁力式
と1−2相励磁力式とを例にとり、それら両方式を切り
替えるものについて説明したが、3相及び4相のモータ
の残りの励磁方式である1相励磁力式との切り替えも可
能であり、次にそれを説明する。
In the above-mentioned embodiment, the excitation method is a 2-phase excitation force type and a 1-2 phase excitation force type, and a case where both of these types are switched was explained. It is also possible to switch to the one-phase excitation force method, which is the excitation method used in the above, and this will be explained next.

先ず、2相励磁力式と1相励磁力式とを切り替える場合
について説明する。
First, the case of switching between the two-phase excitation force type and the one-phase excitation force type will be described.

2相励磁力式による励磁シーケンスデータは、表2に示
した通りである。一方、1相励磁力式による励磁シーケ
ンスデータは、下記の表7に示すようになる。
The excitation sequence data based on the two-phase excitation force formula is as shown in Table 2. On the other hand, excitation sequence data based on the one-phase excitation force formula is as shown in Table 7 below.

表7 両データを比較すると、全く同一の励磁状態を与えるも
のはないが、1相励磁力式による” 01 (□、”の
データに対しては、2相励磁力式による“03.H,”
か或いは“09 (H)”のデータを組み合わせればよ
い。つまり、励磁方式の切り替え時にそれら再励磁方式
によるデータが続けて出力されたとしても、それらによ
るステップ角は、何れの励磁方式においても1ステップ
角を越えることがなく、脱調現象の起きる虞れはないの
である。
Table 7 Comparing both data, there is no one that gives exactly the same excitation state, but for the data of "01 (□," by the one-phase excitation force formula, "03.H," by the two-phase excitation force formula) ”
Alternatively, the data of "09 (H)" may be combined. In other words, even if data from these re-excitation methods are output continuously when excitation methods are switched, the step angles resulting from them will not exceed one step angle for any of the excitation methods, and there is a risk of a step-out phenomenon occurring. There is no such thing.

また、再励磁方式の何れにおいても、励磁シーケンスデ
ータの種類は、4種類づつである。
Furthermore, in each re-excitation method, there are four types of excitation sequence data.

従って、先の実施例の場合のようにメモリ内での格納位
置を対応させるべく一方の励磁方式によるデータを2個
づつ用意する必要はない。また、正逆転の際のデータ出
力にあたっては、夫々カウンタを1回づつインクリメン
ト或いはデクリメントすればよい。
Therefore, it is not necessary to prepare two pieces of data for each excitation method so that the storage positions in the memory correspond to each other as in the case of the previous embodiment. Furthermore, when outputting data during forward and reverse rotation, the counters may be incremented or decremented once each.

下記の表8及び次頁の表9に、再励磁方式による励磁シ
ーケンスデータを、2つの形式によりカウンタ値に対応
させたものを示す。
Table 8 below and Table 9 on the next page show excitation sequence data based on the re-excitation method in two formats that correspond to counter values.

表8 表9 次に、1−2相励磁力式と1相励磁力式とを切り替える
場合について説明する。
Table 8 Table 9 Next, the case of switching between the 1-2 phase excitation force type and the 1 phase excitation force type will be described.

1−2相励磁力式による励磁シーケンスデータは、表4
に示した通りである。一方、1相励磁力式による励磁シ
ーケンスデータは、先程説明したように、表7に示した
通りである。従って、先に説明した1−2相励磁力式と
2相励磁力式とを切り替えるようにする場合と同様に、
1相励磁力式による励磁シーケンスデータを夫々2個づ
つ用意する必要がある。
The excitation sequence data using the 1-2 phase excitation force formula is shown in Table 4.
As shown in On the other hand, the excitation sequence data based on the one-phase excitation force formula is as shown in Table 7, as explained earlier. Therefore, similar to the case of switching between the 1-2 phase excitation force type and the 2 phase excitation force type described above,
It is necessary to prepare two pieces of excitation sequence data each using the one-phase excitation force formula.

下記の表1O及び表11に、再励磁方式による励磁シー
ケンスデータを、2つの形式によりカウンタ値に対応さ
せたものを示す。
Tables 1O and 11 below show excitation sequence data based on the re-excitation method in two formats that correspond to counter values.

表11 また、先に述べた実施例では、励磁方式の切替えを正逆
転の切替えと同時に行うようにしたものを説明したが、
本発明による駆動制御方法としては、同一方向への回転
の途中で励磁方式%式% 今まで述べてきた実施例においては、4相のハイブリッ
ド形のステッピングモータ(M)を用いていたが、ステ
ッピングモータ(M)としてVR形やPM形を用いても
よく、さらに、その相数は不問である。
Table 11 In addition, in the embodiment described above, the switching of the excitation method was performed at the same time as switching between forward and reverse directions.
In the drive control method according to the present invention, an excitation method is used during rotation in the same direction.In the embodiments described so far, a four-phase hybrid stepping motor (M) is used. A VR type or PM type may be used as the motor (M), and the number of phases is not limited.

そして、表として示すことはしないが、5相以上のモー
タ(M)であれば、励磁方式として、2−3相励磁方式
や3−4相励磁方式も存在し、それら異なった励磁方式
を適宜組み合わせたステッピングモータ(M)の駆動制
御を行うことが可能である。
Although not shown in a table, for motors (M) with 5 or more phases, there are 2-3 phase excitation methods and 3-4 phase excitation methods as excitation methods, and these different excitation methods can be used as appropriate. It is possible to perform drive control of the combined stepping motor (M).

本発明を適用するステッピングモータ(M)としては、
先の実施例で説明したインクジェットプリンタにおける
インクジェットポンプのプランジャ駆動用としてのもの
の他に、各種プリンタ等におけるキャリッジ送り用やヘ
ソ、ド送り用としてのものや、XYプロッタ等における
ペン駆動用としてのもの、或いは、テープリーグやテー
プパンチャ等のテープ送り用としてのもの等、各種用途
のものがある。
The stepping motor (M) to which the present invention is applied is as follows:
In addition to the one for driving the plunger of the inkjet pump in the inkjet printer explained in the previous embodiment, the one for carriage feeding, belly button, dot feeding in various printers, etc., and the one for pen driving in XY plotter etc. There are also tape feeders for various uses such as tape leagues and tape punchers.

〔発明の効果〕〔Effect of the invention〕

以上述べてきたように、本発明によるステッピングモー
タの駆動制御方法は、励磁方式に応じたモータの各相へ
の励磁の順序を決定するための信号を、予めシーケンス
データとして記憶させておき、入力パルスに応じてその
シーケンスデータをループ状に順次出力することで、ス
テッピングモータを所定の励磁方式により駆動するもの
であるから、従来必要としたステッピングモータ駆動制
御のための高価な専用のIC等を省略でき、また、駆動
制御のための回路構成も単純化することができて、コス
トダウンを計れるようになった。
As described above, in the stepping motor drive control method according to the present invention, signals for determining the order of excitation of each phase of the motor according to the excitation method are stored in advance as sequence data, and input The stepping motor is driven by a predetermined excitation method by sequentially outputting the sequence data in a loop according to the pulse, so there is no need for an expensive dedicated IC for stepping motor drive control that was previously required. This can be omitted, and the circuit configuration for drive control can also be simplified, leading to cost reductions.

しかも、異なった励磁方式による2つのシーケンスデー
タを各別の記憶手段に格納するにあたって、夫々のデー
タのうちの、ステップ角の大きい励磁方式の1ステップ
角を越えないもの同士を組み合わせてカウンタの同一カ
ウンタ値に対応させるとともに、二つの励磁方式のうち
の一方から他方に切り替える際に、その時点で出力され
ている一方の励磁シーケンスデータの格納位置と同一の
カウンタ値に対応する他方の励磁シーケンスデータを出
力した後に、他方の励磁シーケンスデータを順次出力す
ることによって、励磁方式の切替え時に、ステッピング
モータが1パルスあたり1ステップ角以上回転すること
がないようにしたものであるから、税調現象が生じる虞
れがなく、励磁方式を切り替える際のモータの動作をス
ムースに行えるようになった。
Moreover, when storing two sequence data based on different excitation methods in separate storage means, data of each data that does not exceed one step angle of the excitation method with a large step angle is combined and stored in the same counter. In addition to corresponding to the counter value, when switching from one of the two excitation methods to the other, the other excitation sequence data corresponds to the same counter value as the storage position of one of the excitation sequence data output at that time. By sequentially outputting the excitation sequence data of the other after outputting the excitation sequence data, the stepping motor does not rotate more than one step angle per pulse when switching the excitation method, so a tax adjustment phenomenon occurs. The motor can now operate smoothly when switching the excitation method without any risk.

従って、全体として、ステッピングモータに対する精度
のよい駆動制御を、コスト的に有利な構成でもって行え
る、優れた制御方法を提供できるようになった。
Therefore, overall, it has become possible to provide an excellent control method that can perform highly accurate drive control of the stepping motor with a cost-effective configuration.

【図面の簡単な説明】[Brief explanation of drawings]

図面は本発明に係るステッピングモータの駆動制御方法
の実施例を示し、第1図はステッピングモータの制御装
置のブロック図、第2図はステッピングモータの駆動部
の回路図、第3図(() 、 (n)は夫々2相励磁方
式と1−2相励磁方式とにおける入力パルスと各相の励
磁状態とを示すタイムチャート、第4図はステンピング
モ−タの正転動作のフローチャート、第5図は1−2相
励磁力式による励磁シーケンスデータのテーブル、第6
図はステッピングモータの逆転動作のフローチャート、
第7図は2相励磁力式による励磁シーケンスデータのテ
ーブルである。 (M)・・・・・・ステッピングモータ、(R+)、(
Rz)・・・・・・記憶手段。
The drawings show an embodiment of the stepping motor drive control method according to the present invention, in which FIG. 1 is a block diagram of a stepping motor control device, FIG. 2 is a circuit diagram of a stepping motor drive section, and FIG. 3 (() , (n) is a time chart showing the input pulse and the excitation state of each phase in the two-phase excitation method and the 1-2 phase excitation method, respectively, FIG. 4 is a flowchart of normal rotation operation of the stamping motor, and FIG. 5 is a table of excitation sequence data based on the 1-2 phase excitation force formula, No. 6
The figure is a flowchart of the reversing operation of a stepping motor.
FIG. 7 is a table of excitation sequence data based on the two-phase excitation force formula. (M)...Stepping motor, (R+), (
Rz)...Memorization means.

Claims (1)

【特許請求の範囲】[Claims]  二つの異なった励磁方式による入力パルス毎の励磁シ
ーケンスデータを、夫々のデータのうちの、ステップ角
が大きい励磁方式の1ステップ角を越えないもの同士を
組み合わせてカウンタの同一カウンタ値に対応するよう
に各別の記憶手段に格納し、夫々の励磁シーケンスデー
タを、カウンタの加算及び減算に伴ってそのカウンタ値
に対応してループ状に順次出力することにより、ステッ
ピングモータを正転及び逆転させるようにするとともに
、それら二つの励磁方式のうちの一方から他方に切り替
える際に、その時点で出力されている一方の励磁シーケ
ンスデータの格納位置と同一のカウンタ値に対応する他
方の励磁シーケンスデータを出力した後に、他方の励磁
シーケンスデータを順次出力するステッピングモータの
駆動制御方法。
The excitation sequence data for each input pulse from two different excitation methods is combined with data that does not exceed one step angle of the excitation method with a large step angle to correspond to the same counter value of the counter. By storing each excitation sequence data in separate storage means and sequentially outputting each excitation sequence data in a loop according to the counter value as the counter is added and subtracted, the stepping motor can be rotated in the forward and reverse directions. At the same time, when switching from one of these two excitation methods to the other, the other excitation sequence data corresponding to the same counter value as the storage position of one of the excitation sequence data output at that time is output. A stepping motor drive control method that sequentially outputs the excitation sequence data of the other after
JP2897985A 1985-02-15 1985-02-15 Drive controlling method of stepping motor Pending JPS61189199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2897985A JPS61189199A (en) 1985-02-15 1985-02-15 Drive controlling method of stepping motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2897985A JPS61189199A (en) 1985-02-15 1985-02-15 Drive controlling method of stepping motor

Publications (1)

Publication Number Publication Date
JPS61189199A true JPS61189199A (en) 1986-08-22

Family

ID=12263533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2897985A Pending JPS61189199A (en) 1985-02-15 1985-02-15 Drive controlling method of stepping motor

Country Status (1)

Country Link
JP (1) JPS61189199A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6462502B1 (en) 1999-01-27 2002-10-08 Fujitsu Limited Stepper motor controlling apparatus
JP2010233862A (en) * 2009-03-31 2010-10-21 Sansei R&D:Kk Game machine
JP2012192257A (en) * 2012-07-13 2012-10-11 Sansei R&D:Kk Game machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6462502B1 (en) 1999-01-27 2002-10-08 Fujitsu Limited Stepper motor controlling apparatus
JP2010233862A (en) * 2009-03-31 2010-10-21 Sansei R&D:Kk Game machine
JP2012192257A (en) * 2012-07-13 2012-10-11 Sansei R&D:Kk Game machine

Similar Documents

Publication Publication Date Title
US4066941A (en) Motor drive control arrangements
US4270074A (en) Brushless DC motor control utilizing a ROM
US4147967A (en) Apparatus and method for controlling the velocity of a moveable member
GB2135800A (en) Operating the print head of a matrix printer
JPH0197199A (en) Pulse motor controller
US3986094A (en) Logic system for print ball tilt control
US6014000A (en) System with motor control using multiple timing signal generators
JPS61189199A (en) Drive controlling method of stepping motor
US5291111A (en) Drive controller and drive control method for a stepping motor without a step out error
US3406381A (en) Print hammer energizing arrangement
US4092568A (en) Interpolating stepping motor system
SU1074420A3 (en) Information output apparatus
JPS58144593A (en) Driving device for motor
US4976555A (en) Serial printer control circuit enabling line feed during carriage deceleration
JP3245185B2 (en) Driving device for stepping motor
US4931713A (en) Rectifier electric drive
JPS6047116B2 (en) Pulse motor control device
JP2000139099A (en) Motor controller
JPH08156328A (en) Timing control device
JPH0343864B2 (en)
KR20010083860A (en) Driving apparatus of micro stepping motor
JP2810806B2 (en) Print timing generation circuit in serial printer
US9621086B2 (en) Method and circuit assembly for driving a stepper motor
JPS61266097A (en) Control system for pulse motor
JPS62118796A (en) Driving device for stepping motor