JP3165777B2 - Step-up motor slow-up / down control device - Google Patents

Step-up motor slow-up / down control device

Info

Publication number
JP3165777B2
JP3165777B2 JP28666394A JP28666394A JP3165777B2 JP 3165777 B2 JP3165777 B2 JP 3165777B2 JP 28666394 A JP28666394 A JP 28666394A JP 28666394 A JP28666394 A JP 28666394A JP 3165777 B2 JP3165777 B2 JP 3165777B2
Authority
JP
Japan
Prior art keywords
data
register
register group
registers
group
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 - Fee Related
Application number
JP28666394A
Other languages
Japanese (ja)
Other versions
JPH08149889A (en
Inventor
哲生 喜多村
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP28666394A priority Critical patent/JP3165777B2/en
Publication of JPH08149889A publication Critical patent/JPH08149889A/en
Application granted granted Critical
Publication of JP3165777B2 publication Critical patent/JP3165777B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ装置,プ
リンタ等に搭載されるステッピングモータのスローアッ
プ・ダウン制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a slow-up / down control device for a stepping motor mounted on a facsimile machine, a printer or the like.

【0002】[0002]

【従来の技術】一般に、ステッピングモータを高速で運
転させる場合には、モータの温度上昇等を防止するため
に、低速で運転を開始し、徐々に回転を上げて必要な定
速回転を得る、いわゆるスローアップが用いられてい
る。また、停止時には急激にモータを停止しても慣性力
によって所望通りには停止されないので、徐々に回転を
下げて停止させる、いわゆるスローダウンが用いられて
いる。このようなスローアップ及びスローダウンは、速
度切換えの段階が多いほど滑らかな起動及び停止が得ら
れる。
2. Description of the Related Art Generally, when a stepping motor is operated at a high speed, the operation is started at a low speed in order to prevent the temperature of the motor from rising and the like, and the rotation is gradually increased to obtain a required constant speed rotation. So-called slow-up is used. In addition, when the motor is stopped, even if the motor is suddenly stopped, the motor is not stopped as desired by the inertial force. In such a slow-up and a slow-down, a smooth start and stop can be obtained as the number of speed switching steps increases.

【0003】従来のステッピングモータの駆動装置にお
いては、モータに出力される相切替のための駆動パルス
の1秒当りの数、いわゆるパルス周波数(PPS:パル
ス・パー・セコント)を、ハードウェアによって徐々に
大きくまたは小さくすることでスローアップまたはスロ
ーダウンを実現するようにしたものと、中央処理装置に
よるプログラム制御によってソフト的に前記駆動パルス
の出力タイミングを切換えることによりスローアップ及
びスローダウンを実現するようにしたものとがあった。
In a conventional driving device for a stepping motor, the number of drive pulses per second for phase switching output to the motor, the so-called pulse frequency (PPS: pulse per second), is gradually increased by hardware. A slow-up or a slow-down is realized by increasing or decreasing the speed, and a slow-up or a slow-down is realized by switching the output timing of the drive pulse by software under program control of a central processing unit. There was something you did.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、スロー
アップ及びスローダウンを全てハードウェアで構成した
場合には、回路構成が複雑化し回路規模が大きくなるの
で小型化できない等の問題があった。また、中央処理装
置によるプログラム制御によってスローアップ及びスロ
ーダウンを実現した場合には、中央処理装置の負荷が増
大するので、速度切換の段階を減らして負荷を軽減させ
なければならず、滑らかな起動及び停止ができなかっ
た。
However, when the slow-up and the slow-down are all constituted by hardware, there is a problem that the circuit configuration becomes complicated and the circuit scale becomes large, so that the size cannot be reduced. Further, when slow-up and slow-down are realized by program control by the central processing unit, the load on the central processing unit increases, so that the speed switching step must be reduced to reduce the load, and smooth start-up is performed. And could not be stopped.

【0005】本発明はこのような事情に基いてなされた
もので、その目的とするところは、構成の簡略化及び小
型化を図るとともに、中央処理装置の負荷が増大するこ
となく滑らかな起動及び停止ができるステッピングモー
タのスローアップ・ダウン制御装置を提供しようとする
ものである。
The present invention has been made in view of such circumstances, and aims to simplify and reduce the size of the configuration, and to achieve a smooth start-up without increasing the load on the central processing unit. An object of the present invention is to provide a slow-up / down control device for a stepping motor that can be stopped.

【0006】[0006]

【課題を解決するための手段】本発明は、制御信号の入
力タイミングでステッピングモータに駆動パルスを供給
するモータドライバと、複数個のレジスタを直列に接続
してなる第1及び第2のレジスタ群と、第1及び第2の
レジスタ群の一方を書込み対象レジスタとして選択し他
方を読出し対象レジスタ群として選択するレジスタ群選
択手段と、書込み対象レジスタ群の各レジスタにスロー
アップまたはスローダウンのデータを書込むデータ書込
み手段と、読出し対象レジスタ群の最終段のレジスタの
データをロード信号が入力される毎にロードしそのデー
タからカウントを開始するカウンタと、このカウンタへ
のロード信号に応動して読出し対象レジスタ群の各レジ
スタのデータをそれぞれ次段へシフトするシフト手段
と、カウンタのフルカウントにより出力されるモータド
ライバ制御信号に応動してロード信号をカウンタへ出力
するロード信号出力手段と、モータドライバ制御信号を
検出する制御信号検出手段と、この検出手段によりモー
タドライバ制御信号を読出し対象レジスタ群を構成する
各レジスタの個数分検出する毎にレジスタ群選択手段に
よる選択対象のレジスタ群を切換えるレジスタ群切換手
段とを備えたものである。
SUMMARY OF THE INVENTION The present invention provides a motor driver for supplying a drive pulse to a stepping motor at the input timing of a control signal, and a first and second register group comprising a plurality of registers connected in series. A register group selecting means for selecting one of the first and second register groups as a write target register and selecting the other as a read target register group; and storing slow-up or slow-down data in each register of the write target register group. Data writing means for writing, a counter for loading data of a register at the last stage of a register group to be read each time a load signal is input, and counting from the data; and a counter for reading in response to a load signal to the counter A shift means for shifting the data of each register of the target register group to the next stage, and a counter full Load signal output means for outputting a load signal to a counter in response to a motor driver control signal output by a counter, control signal detection means for detecting a motor driver control signal, and a motor driver control signal to be read by the detection means Register group switching means for switching the register group to be selected by the register group selecting means each time the number of registers constituting the register group is detected.

【0007】[0007]

【作用】このような構成の本発明においては、ステッピ
ングモータの停止状態では、レジスタ群選択手段によっ
て一方のレジスタ群が書込み対象レジスタとして選択さ
れる。これにより、この一方のレジスタ群を構成する各
レジスタに、データ書込み手段によってレジスタ個数分
のスローアップデータが書込まれる。
In the present invention having such a configuration, when the stepping motor is stopped, one register group is selected as a register to be written by the register group selecting means. As a result, slow-up data for the number of registers is written by the data writing means into each of the registers constituting this one register group.

【0008】次に、ステッピングモータの運転が開始さ
れると、レジスタ群選択手段によって一方のレジスタ群
が読出し対象レジスタとして選択され、他方のレジスタ
群が書込み対象レジスタとして選択される。これによ
り、一方のレジスタ群の最終段レジスタに記憶された先
頭データがカウンタにロードされ、カウンタはそのデー
タからカウントを開始する。このとき、一方のレジスタ
群の各レジスタのデータがそれぞれ次段にシフトされ
る。
Next, when the operation of the stepping motor is started, one register group is selected as a read target register by the register group selecting means, and the other register group is selected as a write target register. As a result, the leading data stored in the last register of one of the register groups is loaded into the counter, and the counter starts counting from the data. At this time, the data of each register of one register group is shifted to the next stage.

【0009】その後、カウンタがフルカウントしてモー
タドライバ制御信号が出力されると、一方のレジスタ群
の最終段レジスタにシフトされていた2番目データがカ
ウンタにロードされ、カウンタはそのデータからカウン
トを再開する。このとき、一方のレジスタ群の各レジス
タのデータがそれぞれ次段にシフトされる。
Thereafter, when the counter counts full and the motor driver control signal is output, the second data which has been shifted to the last register of one of the register groups is loaded into the counter, and the counter restarts counting from the data. I do. At this time, the data of each register of one register group is shifted to the next stage.

【0010】こうして、カウンタのフルカウントにより
出力されるモータドライバ制御信号が一方のレジスタ群
のレジスタ個数分検出されるまで上記処理が繰り返され
る。その間、他方のレジスタ群を構成する各レジスタに
は、データ書込み手段によって残りのスローアップデー
タが順にレジスタ個数分書込まれる。
In this manner, the above processing is repeated until the motor driver control signals output by the full count of the counter are detected for the number of registers in one of the register groups. In the meantime, the remaining slow-up data is sequentially written into each of the registers constituting the other register group by the number of registers by the data writing means.

【0011】しかして、制御信号検出手段によってレジ
スタ個数分のモータドライバ制御信号が検出されると、
他方のレジスタ群が読出し対象レジスタに切換わり、一
方のレジスタ群が書込み対象レベル群に切換わる。これ
により、他方のレジスタ群の最終段レジスタに記憶され
たデータがカウンタにロードされ、カウンタはそのデー
タからカウントを開始する。このとき、他方のレジスタ
群の各レジスタのデータがそれぞれ次段にシフトされ
る。
When the motor driver control signals for the number of registers are detected by the control signal detecting means,
The other register group switches to the read target register, and one register group switches to the write target level group. As a result, the data stored in the last register of the other register group is loaded into the counter, and the counter starts counting from the data. At this time, the data of each register in the other register group is shifted to the next stage.

【0012】その後、カウンタがフルカウントしてモー
タドライバ制御信号が出力されると、他方のレジスタ群
の最終段レジスタにシフトされていたデータがカウンタ
にロードされ、カウンタはそのデータからカウントを再
開する。このとき、他方のレジスタ群の各レジスタのデ
ータがそれぞれ次段にシフトされる。
Thereafter, when the counter counts up and the motor driver control signal is output, the data shifted to the last register of the other register group is loaded into the counter, and the counter restarts counting from the data. At this time, the data of each register in the other register group is shifted to the next stage.

【0013】こうして、カウンタのフルカウントにより
出力されるモータドライバ制御信号が他方のレジスタ群
のレジスタ個数分検出されるまで上記処理が繰り返され
る。その間、一方のレジスタ群を構成する各レジスタに
は、データ書込み手段によって残りのスローアップデー
タが順にレジスタ個数分書込まれる。
The above process is repeated until the motor driver control signals output by the full count of the counter are detected by the number of registers of the other register group. In the meantime, the remaining slow-up data is sequentially written into each of the registers constituting one of the register groups by the number of registers by the data writing means.

【0014】しかして、制御信号検出手段によってレジ
スタ個数分のモータドライバ制御信号が検出されると、
一方のレジスタ群が読出し対象レジスタに切換わり、他
方のレジスタ群が書込み対象レベル群に切換わって、前
記と同様に作用する。
When the motor driver control signals for the number of registers are detected by the control signal detecting means,
One register group is switched to a register to be read, and the other register group is switched to a level group to be written, and operates in the same manner as described above.

【0015】この結果、モータドライバからは制御信号
の入力タイミングでステッピングモータに駆動パルスが
出力されるので、ステッピングモータのスローアップ運
転が行われる。
As a result, the drive pulse is output from the motor driver to the stepping motor at the input timing of the control signal, so that the stepping motor performs a slow-up operation.

【0016】一方、ステッピングモータの運転を停止さ
せる場合もスローアップデータの代りにスローダウンデ
ータが用いられる点を除けば前記と同様である。要する
に、第1レジスタ群及び第2レジスタ群に交互にスロー
ダウンデータが書込まれ、一方のレジスタ群が書込み対
象のときには他方のレジスタ群に記憶されているデータ
が順にカウンタにロードされてカウントが行われ、フル
カウント毎に出力される制御信号のタイミングでステッ
ピングモータに駆動パルスが出力されて、ステッピング
モータのスローダウン運転が行われる。
On the other hand, when the operation of the stepping motor is stopped, the operation is the same as described above except that the slowdown data is used instead of the slowup data. In short, slowdown data is alternately written to the first register group and the second register group, and when one register group is to be written, the data stored in the other register group is sequentially loaded into the counter to count. Then, a drive pulse is output to the stepping motor at the timing of the control signal output every full count, and the stepping motor performs a slowdown operation.

【0017】[0017]

【実施例】以下、本発明の一実施例を図面を用いて説明
する。図2はこの実施例であるステッピングモータ搭載
機器の要部構成を示すブロック図であって、ステッピン
グモータ1、制御信号としてのキャリー信号CRの入力
タイミングで前記ステッピングモータ1に駆動パルスを
供給するモータドライバ2、このモータドライバ2に前
記キャリー信号CRを送出するモータ制御回路3、該ス
テッピングモータ搭載機器の制御部本体を構成する中央
処理装置(以下、CPUと略称する)4、このCPU4
を制御するプログラムデータ等の固定的データを記憶す
るROM(リード・オンリ・メモリ)5、及び可変的デ
ータを記憶するRAM(ランダム・アクセス・メモリ)
6等を備えている。そして、前記CPU4と、ROM5
及びRAM6と、モータ制御回路3とは、アドレスバ
ス,データバス等のバスライン7で接続されている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing the main configuration of the stepping motor-equipped device according to this embodiment. The stepping motor 1 supplies a drive pulse to the stepping motor 1 at the input timing of a carry signal CR as a control signal. A driver 2, a motor control circuit 3 for sending the carry signal CR to the motor driver 2, a central processing unit (hereinafter abbreviated as CPU) 4, which constitutes a control unit main body of the stepping motor mounted device, and a CPU 4
(Read only memory) 5 for storing fixed data such as program data for controlling the RAM, and RAM (random access memory) for storing variable data
6 and so on. Then, the CPU 4 and the ROM 5
The RAM 6 and the motor control circuit 3 are connected by a bus line 7 such as an address bus and a data bus.

【0018】前記RAM6には、特に、スローアップ制
御時において段階的に増加するパルス周波数(1秒当り
のパルス周波数:PPS)に基いて定まるステップ毎の
スローアップデータが予め設定されるスローアップテー
ブル6aと、スローダウン制御時において段階的に減少
する前記パルス周波数に基いて定まるステップ毎のスロ
ーダウンデータが予め設定されるスローダウンテーブル
6bとが設けられている。
The RAM 6 stores, in advance, a slow-up table 6a in which, in particular, slow-up data for each step determined based on a pulse frequency (pulse frequency per second: PPS) that increases stepwise during the slow-up control. And a slowdown table 6b in which slowdown data for each step determined based on the pulse frequency that decreases stepwise during the slowdown control is set in advance.

【0019】図1は前記モータ制御回路3の詳細ブロッ
ク図である。このモータ制御回路3は、m1,m2,m
3,m4,m5の5個のレジスタを直列に接続してなる
第1のレジスタ群11と、n1,n2,n3,n4,n
5の5個のレジスタを直列に接続してなる第2のレジス
タ群12とを有する。第1のレジスタ群11の初段レジ
スタm1には第1のセレクタ13を介して外部よりデー
タが書き込まれるようになっている。また、第2のレジ
スタ群12の初段レジスタn1には第2のセレクタ14
を介して外部よりデータが書き込まれるようになってい
る。一方、各レジスタ群11,12の最終段レジスタm
5,n5に記憶されたデータは、レジスタ群選択手段を
構成する第3セレクタ15を介して選択的にカウンタ1
6にロードされるようになっている。各レジスタm1〜
m5,n1〜n5は、FIFO(先入れ・先出し)形式
のレジスタであって、それぞれライト信号AW,BWに
同期してデータを書込む際に次段のレジスタに前のデー
タをシフトする。
FIG. 1 is a detailed block diagram of the motor control circuit 3. This motor control circuit 3 includes m1, m2, m
A first register group 11 in which five registers 3, 3, m5, and m5 are connected in series; and n1, n2, n3, n4, n
And a second register group 12 in which five registers of No. 5 are connected in series. Data is externally written to the first stage register m1 of the first register group 11 via the first selector 13. The first selector n1 of the second register group 12 includes the second selector 14
The data is written from outside via the. On the other hand, the final stage register m of each of the register groups 11 and 12
5, n5 are selectively sent to the counter 1 via a third selector 15 constituting a register group selecting means.
6 is loaded. Each register m1
m5, n1 to n5 are FIFO (first-in, first-out) type registers, which shift previous data to the next register when writing data in synchronization with the write signals AW, BW, respectively.

【0020】前記第1のセレクタ13は、常時はb入力
を選択しており、選択信号ASの立上がりに同期して一
時的にa入力を選択する。a入力には前記CPU4から
のデータバスライン7aが接続されており、b入力には
前記第1のレジスタ群11の最終段レジスタm5から出
力されるデータのバスライン17が接続されている。ま
た、前記第2のセレクタ14も、常時はb入力を選択し
ており、選択信号BSの立上がりに同期して一時的にa
入力を選択する。a入力には前記CPU4からのデータ
バスライン7aが接続されており、b入力には前記第2
のレジスタ群12の最終段レジスタn5から出力される
データのバスライン18が接続されている。
The first selector 13 always selects the b input, and temporarily selects the a input in synchronization with the rise of the selection signal AS. The data bus line 7a from the CPU 4 is connected to the a input, and the bus line 17 for the data output from the last register m5 of the first register group 11 is connected to the b input. The second selector 14 also selects the b input at all times, and temporarily selects the a input in synchronization with the rise of the selection signal BS.
Select input. The data bus line 7a from the CPU 4 is connected to the a input, and the second bus is connected to the b input.
Are connected to a bus line 18 for data output from the last-stage register n5 of the register group 12 of FIG.

【0021】前記第3のセレクタ15は、選択信号RS
がローレベル“L”であるときa入力を選択し、同選択
信号RSがハイレベル“H”であるときb入力を選択す
る。a入力には前記バスライン17が接続されており、
b入力には前記バスライン18が接続されている。ここ
に、第3のセレクタによって選択された側のレジスタ群
は読出し対象レジスタとなり、他方のレジスタ群は書込
み対象レジスタとなる。
The third selector 15 outputs a selection signal RS
Is low level "L", the a input is selected, and when the selection signal RS is high level "H", the b input is selected. The bus line 17 is connected to the a input,
The bus line 18 is connected to the b input. Here, the register group on the side selected by the third selector is a register to be read, and the other register group is a register to be written.

【0022】前記カウンタ16は、ロード信号RDがロ
ーレベル“L”のときのカウンタクロック信号CLKの
立上がりに同期して前記第3のセレクタ15によって選
択された側のバスライン17,18のデータをロード
し、そのデータから前記カウンタクロック信号CLKの
立上がりに同期してカウントを開始する。そして、カウ
ントフル(例えば8ビットカウンタであればFFH )に
なると直ぐに前記モータドライバ2への制御信号となる
キャリー信号CRを出力するように構成されている。な
お、前記カウンタクロック信号CLKはCPU4から供
給され、CPU4によってカウンタ16の分周値を設定
できるようになっている。
The counter 16 synchronizes the data of the bus lines 17 and 18 on the side selected by the third selector 15 in synchronization with the rising of the counter clock signal CLK when the load signal RD is at the low level “L”. The data is loaded, and counting is started from the data in synchronization with the rise of the counter clock signal CLK. A carry signal CR serving as a control signal to the motor driver 2 is output as soon as the count becomes full (for example, FFH in the case of an 8-bit counter). The counter clock signal CLK is supplied from the CPU 4 so that the CPU 4 can set the frequency division value of the counter 16.

【0023】前記キャリー信号CRは前記モータドライ
バ2に入力され、モータドライバ2は、このキャリー信
号CRの入力タイミングでステッピングモータ1に4相
分の駆動パルスA,/A,B,/Bを順繰りに供給する
ようになっている。
The carry signal CR is input to the motor driver 2. The motor driver 2 sequentially drives the four-phase drive pulses A, / A, B, / B to the stepping motor 1 at the input timing of the carry signal CR. To be supplied.

【0024】また、前記キャリー信号CRはロード信号
出力手段としてのロード出力回路19と、制御信号検出
手段としてのキャリー検出回路20にも供給される。前
記ロード出力回路19は、キャリー信号CRの立上がり
に同期して前記ロード信号RDを一旦ローレベル“L”
にし、その後ハイレベル“H”に戻す。また、CPU4
によりステッピングモータ1の運転開始を指令するモー
タスタート信号MSの立上がりにおいても同様に前記ロ
ード信号RDのレベル切換を行う。
The carry signal CR is also supplied to a load output circuit 19 as load signal output means and a carry detection circuit 20 as control signal detection means. The load output circuit 19 temporarily changes the load signal RD to a low level “L” in synchronization with the rise of the carry signal CR.
And then return to high level "H". CPU4
Accordingly, the level of the load signal RD is similarly switched at the rise of the motor start signal MS for instructing the start of the operation of the stepping motor 1.

【0025】前記キャリー検出回路20は、前記キャリ
ー信号CRを検出し、その検出数が各レジスタ群11,
12を構成するレジスタの個数「5」に達する毎にTフ
リップフロップ21のトリガ端子Tにトリガ信号を出力
する。
The carry detection circuit 20 detects the carry signal CR, and the number of detections is determined by each register group 11,
Each time the number of registers constituting “12” reaches “5”, a trigger signal is output to the trigger terminal T of the T flip-flop 21.

【0026】前記Tフリップフロップ21は、リセット
端子Rに入力される前記モータスタート信号MSの立上
げに同期してリセットし、正転出力Qをハイレベル
“H”にし、反転出力/Qをローレベル“L”にする。
その後、前記キャリー検出回路20からトリガ端子Tに
トリガ信号が入力される毎に、正転出力Qと反転出力/
Qの信号レベルを切換える。このTフリップフロップ2
1の正転出力Q及び反転出力/Qは、いずれもレジスタ
群制御回路22に入力されるようになっている。
The T flip-flop 21 resets in synchronization with the rise of the motor start signal MS input to the reset terminal R, sets the normal output Q to a high level "H", and sets the inverted output / Q to a low level. Set to level “L”.
Thereafter, each time a trigger signal is input from the carry detection circuit 20 to the trigger terminal T, the normal output Q and the inverted output /
The signal level of Q is switched. This T flip-flop 2
The normal output Q and the inverted output / Q of 1 are both input to the register group control circuit 22.

【0027】前記レジスタ群制御回路22は、前記Tフ
リップフロップ21の正転出力Q及び反転出力/Qと、
前記ロード出力回路19からのロード信号RDと、CP
U4からのライト信号WRとをそれぞれ入力し、前記第
1〜第3のセレクタ13,14,15への各選択信号A
S,BS,RSと、前記第1及び第2のレジスタ群1
1,12への各ライト信号AW,BWを出力するもの
で、レジスタ群切換手段を構成する。
The register group control circuit 22 includes a non-inverted output Q and an inverted output / Q of the T flip-flop 21;
A load signal RD from the load output circuit 19;
The write signal WR from the U4 is input to each of the first to third selectors 13, 14, and 15, and
S, BS, RS, and the first and second register groups 1
These output the write signals AW and BW to the registers 1 and 12, respectively, and constitute register group switching means.

【0028】具体的には、前記レジスタ群制御回路22
は、図3に示すように、Tフリップフロップ21の正転
出力Qを前記第3のセレクタ15に対する選択信号RS
として出力する。また、この正転出力Qと前記ライト信
号WRとの論理積をとる負論理の第1のアンドゲート2
3を備え、この第1のアンドゲート23の出力を前記第
2のセレクタ14に対する選択信号BSとして出力す
る。さらに、Tフリップフロップ21の反転出力/Qと
前記ライト信号WRとの論理積をとる負論理の第2のア
ンドゲート24を備え、この第2のアンドゲート24の
出力を前記第1のセレクタ13に対する選択信号ASと
して出力するようになっている。
More specifically, the register group control circuit 22
As shown in FIG. 3, the non-inverted output Q of the T flip-flop 21 is supplied to the third selector 15 by a selection signal RS.
Output as Further, the first AND gate 2 of negative logic which takes the logical product of the forward output Q and the write signal WR.
3 and outputs the output of the first AND gate 23 as a selection signal BS to the second selector 14. Further, a second AND gate 24 of negative logic which takes the logical product of the inverted output / Q of the T flip-flop 21 and the write signal WR is provided, and the output of the second AND gate 24 is supplied to the first selector 13. Is output as a selection signal AS corresponding to.

【0029】また、このレジスタ群制御回路22は、a
入力への前記ロード信号RDと、b入力への前記ライト
信号WRのいずれか一方を選択して、前記第2のセレク
タ14に対するライト信号BWとして出力する第4のセ
レクタ25と、a入力への前記ライト信号WRと、b入
力への前記ロード信号RDのいずれか一方を選択して、
前記第1のセレクタ13に対するライト信号AWとして
出力する第5のセレクタ26とを備えている。前記第4
のセレクタ25は、前記Tフリップフロップ21の正転
出力Qがハイレベル“H”のときa入力を選択し、ロー
レベル“L”のときb入力を選択する。他方、前記第5
のセレクタ26は、前記Tフリップフロップ21の反転
出力/Qがローレベル“L”のときa入力を選択し、ハ
イレベル“H”のときb入力を選択する。
The register group control circuit 22 has a
A fourth selector 25 that selects one of the load signal RD to the input and the write signal WR to the b input and outputs the selected signal as a write signal BW to the second selector 14; Selecting one of the write signal WR and the load signal RD to the b input,
And a fifth selector 26 that outputs a write signal AW to the first selector 13. The fourth
Selector 25 selects the a input when the non-inverting output Q of the T flip-flop 21 is at a high level “H”, and selects the b input when the non-inverted output Q is at a low level “L”. On the other hand, the fifth
Selector 26 selects the a input when the inverted output / Q of the T flip-flop 21 is at a low level “L”, and selects the b input when the inverted output / Q is at a high level “H”.

【0030】このように構成された本実施例において
は、予めスローアップテーブル6aにスローアップ制御
時において段階的に増加するパルス周波数に基いて定ま
るステップ毎のスローアップデータを設定しておく。ま
た、スローダウンテーブル6bにスローダウン制御時に
おいて段階的に減少するパルス周波数に基いて定まるス
テップ毎のスローダウンデータを設定しておく。
In the present embodiment configured as described above, the slow-up data for each step determined based on the pulse frequency that increases stepwise during the slow-up control is set in the slow-up table 6a in advance. In addition, slowdown data for each step determined based on a pulse frequency that decreases stepwise during slowdown control is set in the slowdown table 6b.

【0031】スローアップ運転時において、ステップ毎
に増加するパルス周波数の増加曲線の一例を図5に示
す。また、スローダウン運転時において、ステップ毎に
減少するパルス周波数の減少曲線の一例を図6に示す。
さらに、図5に示す増加曲線のパルス周波数[PPS]
を得るのに必要なカウンタ16でのステップ毎のクロッ
クカウント数と、図6に示す減少曲線のパルス周波数
[PPS]を得るのに必要なカウンタ16でのステップ
毎のクロックカウント数とを次の[表1]に示す。
FIG. 5 shows an example of an increase curve of the pulse frequency which increases in each step during the slow-up operation. FIG. 6 shows an example of a decrease curve of the pulse frequency that decreases in each step during the slowdown operation.
Further, the pulse frequency [PPS] of the increase curve shown in FIG.
And the clock count of each step of the counter 16 required to obtain the pulse frequency [PPS] of the decreasing curve shown in FIG. It is shown in [Table 1].

【0032】[0032]

【表1】 すなわち、前記スローアップデータ及びスローダウンデ
ータは、ステップ毎に対応するクロックカウント数をカ
ウンタ16がカウントしたときフルカウントとなるよう
に、それぞれステップ毎にカウンタ16の初期値をセッ
トすればよい。
[Table 1] That is, the initial value of the counter 16 may be set for each step so that the slow-up data and the slow-down data become full when the counter 16 counts the clock count number corresponding to each step.

【0033】さて、ステッピングモータ1が停止してい
る初期状態では、図4に示すように、第3のセレクタ1
5の選択信号RSがローレベル“L”であるので、第1
のレジスタ群11が読出し対象レジスタとして選択さ
れ、第2のレジスタ群12が書込み対象レジスタとして
選択されている。ただし、各レジスタ群11,12の各
レジスタm1〜m5,n1〜n5のデータは“0”にク
リアされている。
In the initial state where the stepping motor 1 is stopped, as shown in FIG.
5 is low level “L”, the first
Is selected as a register to be read, and the second register group 12 is selected as a register to be written. However, the data of the registers m1 to m5 and n1 to n5 of the register groups 11 and 12 are cleared to “0”.

【0034】この状態で、ステッピングモータ1の運転
開始に先立ち、CPU4はスローアップテーブル6aよ
り第1ステップから第5ステップまでの5つのスローア
ップデータB1,B2,B3,B4,B5を読出してス
テップ順にデータバスライン7aに送出するとともに、
ライト信号WRを5パルス送出する。
In this state, prior to the start of the operation of the stepping motor 1, the CPU 4 reads out five slow-up data B1, B2, B3, B4, and B5 from the first step to the fifth step from the slow-up table 6a, and reads the data in the order of steps. While sending it out to the data bus line 7a,
Five pulses of the write signal WR are transmitted.

【0035】そうすると、このライト信号WRは第2の
レジスタ群12へのライト信号BWとなって各レジスタ
n1〜n5に与えられ、各レジスタn1〜n5はデータ
の書込みとシフトを5回繰り返す。これにより、レジス
タn5には第1ステップのスローアップデータB1が書
込まれ、レジスタn4には第2ステップのスローアップ
データB2が書込まれ、レジスタn3には第3ステップ
のスローアップデータB3が書込まれ、レジスタn2に
は第4ステップのスローアップデータB4が書込まれ、
レジスタn1には第5ステップのスローアップデータB
5が書込まれる。したがって、第2のレジスタ群12の
データバスライン18には最終段のレジスタn5のデー
タB1が出力される。
Then, the write signal WR becomes a write signal BW to the second register group 12 and is applied to each of the registers n1 to n5. Each of the registers n1 to n5 repeats data writing and shifting five times. Thereby, the first step slow-up data B1 is written into the register n5, the second step slow-up data B2 is written into the register n4, and the third step slow-up data B3 is written into the register n3. , The slow-up data B4 of the fourth step is written into the register n2,
Register n1 has the slow-up data B of the fifth step.
5 is written. Therefore, the data B1 of the register n5 at the last stage is output to the data bus line 18 of the second register group 12.

【0036】次に、CPU4は、図4中時点t0にてモ
ータスタート信号MSを立上げてステッピングモータ1
の運転開始を指令する。そうすると、Tフリップフロッ
プ21がリセットされて選択信号RSが立上がる。これ
により、第3のセレクタ15が切換って第1のレジスタ
群11が書込み対象レジスタとなり、第2のレジスタ群
12が読出し対象レジスタとなる。また、モータスター
ト信号MSの立上がりに同期してロード信号RDが立下
がり、その後のカウンタクロック信号CLKの立上がり
に同期してカウンタ16に読出し対象レジスタである第
2のレジスタ群12からの出力データB1がロードさ
れ、カウンタ16はこのデータB1からカウントを開始
する。
Next, the CPU 4 raises the motor start signal MS at time t0 in FIG.
Command to start operation. Then, the T flip-flop 21 is reset and the selection signal RS rises. As a result, the third selector 15 switches, and the first register group 11 becomes a register to be written, and the second register group 12 becomes a register to be read. The load signal RD falls in synchronization with the rise of the motor start signal MS, and the counter 16 outputs the output data B1 from the second register group 12 which is the register to be read to the counter 16 in synchronization with the rise of the counter clock signal CLK thereafter. Is loaded, and the counter 16 starts counting from this data B1.

【0037】その後、前記ロード信号RDがハイレベル
“H”に戻ると、その立上がりに同期して第2のレジス
タ群12へのライト信号BWが各レジスタn1〜n5を
アクセスし、各レジスタn1〜n5のデータをそれぞれ
次段にシフトする。この結果、第2のレジスタ群12の
データバスライン18には最終段のレジスタn5のデー
タB2が出力される。なお、このとき、初段のレジスタ
n1には第2のセレクタ14を介して最終段のレジスタ
n5からシフトされたデータB1が書込まれている。
Thereafter, when the load signal RD returns to the high level "H", the write signal BW to the second register group 12 accesses each of the registers n1 to n5 in synchronization with its rise, and The data of n5 is shifted to the next stage. As a result, the data B2 of the last register n5 is output to the data bus line 18 of the second register group 12. At this time, the data B1 shifted from the last-stage register n5 via the second selector 14 is written in the first-stage register n1.

【0038】図4中時点t1にてカウンタ16がフルカ
ウントしてキャリー信号CAが立上がると、モータドラ
イバ2からステッピングモータ1に対して駆動パルスが
出力される。また、このキャリー信号CAの立上がりに
同期してロード信号RDが立下がり、その後のカウンタ
クロック信号CLKの立上がりに同期してカウンタ16
に第2のレジスタ群12からの出力データB2がロード
され、カウンタ16はこのデータB2からカウントを再
開する。
When the counter 16 fully counts and the carry signal CA rises at time t1 in FIG. 4, a driving pulse is output from the motor driver 2 to the stepping motor 1. Load signal RD falls in synchronization with the rise of carry signal CA, and counter 16 synchronizes with the subsequent rise of counter clock signal CLK.
Is loaded with the output data B2 from the second register group 12, and the counter 16 restarts counting from this data B2.

【0039】その後、前記ロード信号RDがハイレベル
“H”に戻ると、その立上がりに同期して前記キャリー
信号CAが立ち下がる。また、前記ロード信号RDの立
上がりに同期して第2のレジスタ群12へのライト信号
BWが各レジスタn1〜n5をアクセスし、各レジスタ
n1〜n5のデータをそれぞれ次段にシフトする。この
結果、第2のレジスタ群12のデータバスライン18に
は最終段のレジスタn5のデータB3が出力される。な
お、このとき、初段のレジスタn1には第2のセレクタ
14を介して最終段のレジスタn5からシフトされたデ
ータB2が書込まれている。
Thereafter, when the load signal RD returns to the high level "H", the carry signal CA falls in synchronization with its rise. Further, the write signal BW to the second register group 12 accesses each of the registers n1 to n5 in synchronization with the rise of the load signal RD, and shifts the data of each of the registers n1 to n5 to the next stage. As a result, the data B3 of the last-stage register n5 is output to the data bus line 18 of the second register group 12. At this time, the data B2 shifted from the last-stage register n5 is written into the first-stage register n1 via the second selector 14.

【0040】以後、カウンタ16がフルカウントしてキ
ャリー信号CAが立上がる毎に上記動作が繰り返され
る。こうして、図4中時点t2にて第2のレジスタ群1
2を構成するレジスタの個数に相当する5回目のキャリ
ー信号CAが送出されると、キャリー検出回路20から
トリガ信号が出力される。これにより、Tフリップフロ
ップ21の出力Q,/Qの信号レベルが反転して選択信
号RSが立ち下がり、第3のセレクタ15が切換わって
第1のレジスタ群11が読出し対象レジスタとなり、第
2のレジスタ群12が書込み対象レジスタとなる。
Thereafter, the above operation is repeated each time the counter 16 fully counts and the carry signal CA rises. Thus, at time t2 in FIG.
When the fifth carry signal CA corresponding to the number of registers constituting 2 is transmitted, the carry detection circuit 20 outputs a trigger signal. As a result, the signal levels of the outputs Q and / Q of the T flip-flop 21 are inverted to cause the selection signal RS to fall, the third selector 15 is switched, and the first register group 11 becomes a register to be read, and Are the write target registers.

【0041】ところで、CPU4はステッピングモータ
1の運転開始から5回目のキャリー信号が出力されるま
での間t0〜t1に、スローアップテーブル6aより第
6ステップから第10ステップまでの5つのスローアッ
プデータA1.A2.A3.A4.A5を読出してステ
ップ順にデータバスライン7aに送出するとともに、ラ
イト信号WRを5パルス送出する。
During the period from t0 to t1 from the start of the operation of the stepping motor 1 to the output of the fifth carry signal, the CPU 4 reads the five slow-up data A1 from the sixth step to the tenth step from the slow-up table 6a. . A2. A3. A4. A5 is read and transmitted to the data bus line 7a in the order of steps, and five pulses of the write signal WR are transmitted.

【0042】そうすると、このライト信号WRは書込み
対象レジスタである第1のレジスタ群11へのライト信
号AWとなって各レジスタm1〜m5に与えられ、各レ
ジスタm1〜m5はデータの書込みとシフトを5回繰り
返す。これにより、レジスタm5には第6ステップのス
ローアップデータA1が書込まれ、レジスタm4には第
7ステップのスローアップデータA2が書込まれ、レジ
スタm3には第8ステップのスローアップデータA3が
書込まれ、レジスタm2には第9ステップのスローアッ
プデータA4が書込まれ、レジスタm1には第10ステ
ップのスローアップデータA5が書込まれる。したがっ
て、5回目のキャリー信号が出力されたときには、第1
のレジスタ群11のデータバスライン17には最終段の
レジスタm5のデータA1が出力されている。
Then, the write signal WR becomes a write signal AW to the first register group 11, which is a register to be written, and is given to each of the registers m1 to m5. Each of the registers m1 to m5 writes and shifts data. Repeat 5 times. Thereby, the slow-up data A1 of the sixth step is written to the register m5, the slow-up data A2 of the seventh step is written to the register m4, and the slow-up data A3 of the eighth step is written to the register m3. , The ninth step slow-up data A4 is written in the register m2, and the tenth step slow-up data A5 is written in the register m1. Therefore, when the fifth carry signal is output, the first
The data A1 of the register m5 at the last stage is output to the data bus line 17 of the register group 11 of FIG.

【0043】このため、5回目のキャリー信号CAの立
上がりに同期してロード信号RDが立下がると、その後
のカウンタクロック信号CLKの立上がりに同期してカ
ウンタ16に第1のレジスタ群11からの出力データA
1がロードされ、カウンタ16はこのデータA1からカ
ウントを再開する。
Therefore, when the load signal RD falls in synchronization with the fifth rise of the carry signal CA, the counter 16 outputs the output from the first register group 11 to the counter 16 in synchronization with the subsequent rise of the counter clock signal CLK. Data A
1 is loaded, and the counter 16 restarts counting from this data A1.

【0044】その後、前記ロード信号RDがハイレベル
“H”に戻ると、その立上がりに同期して前記キャリー
信号CAが立ち下がる。また、前記ロード信号RDの立
上がりに同期して第1のレジスタ群11へのライト信号
AWが各レジスタm1〜m5をアクセスし、各レジスタ
m1〜m5のデータをそれぞれ次段にシフトする。この
結果、第1のレジスタ群11のデータバスライン17に
は最終段のレジスタm5のデータA2が出力される。な
お、このとき、初段のレジスタm1には第1のセレクタ
13を介して最終段のレジスタm5からシフトされたデ
ータA1が書込まれている。
Thereafter, when the load signal RD returns to the high level "H", the carry signal CA falls in synchronization with its rise. The write signal AW to the first register group 11 accesses each of the registers m1 to m5 in synchronization with the rise of the load signal RD, and shifts the data of each of the registers m1 to m5 to the next stage. As a result, the data A2 of the last register m5 is output to the data bus line 17 of the first register group 11. At this time, the data A1 shifted from the last-stage register m5 via the first selector 13 is written in the first-stage register m1.

【0045】図4中時点t3にてカウンタ16がフルカ
ウントして6回目のキャリー信号CAが立上がると、モ
ータドライバ2からステッピングモータ1に対して駆動
パルスが出力される。また、このキャリー信号CAの立
上がりに同期してロード信号RDが立下がり、その後の
カウンタクロック信号CLKの立上がりに同期してカウ
ンタ16に第1のレジスタ群11からの出力データA2
がロードされ、カウンタ16はこのデータA2からカウ
ントを再開する。
At time t3 in FIG. 4, when the counter 16 fully counts and the sixth carry signal CA rises, a drive pulse is output from the motor driver 2 to the stepping motor 1. The load signal RD falls in synchronization with the rise of the carry signal CA, and the output data A2 from the first register group 11 is supplied to the counter 16 in synchronization with the subsequent rise of the counter clock signal CLK.
Is loaded, and the counter 16 restarts counting from this data A2.

【0046】その後、前記ロード信号RDがハイレベル
“H”に戻ると、その立上がりに同期して前記キャリー
信号CAが立ち下がる。また、前記ロード信号RDの立
上がりに同期して第1のレジスタ群11へのライト信号
AWが各レジスタm1〜m5をアクセスし、各レジスタ
m1〜m5のデータをそれぞれ次段にシフトする。この
結果、第1のレジスタ群11のデータバスライン17に
は最終段のレジスタm5のデータA3が出力される。な
お、このとき、初段のレジスタm1には第1のセレクタ
13を介して最終段のレジスタm5からシフトされたデ
ータA2が書込まれている。
Thereafter, when the load signal RD returns to the high level "H", the carry signal CA falls in synchronization with its rise. The write signal AW to the first register group 11 accesses each of the registers m1 to m5 in synchronization with the rise of the load signal RD, and shifts the data of each of the registers m1 to m5 to the next stage. As a result, the data A3 of the last register m5 is output to the data bus line 17 of the first register group 11. At this time, the data A2 shifted from the last-stage register m5 via the first selector 13 is written in the first-stage register m1.

【0047】以後、カウンタ16がフルカウントしてキ
ャリー信号CAが立上がる毎に上記動作が繰り返され
る。こうして、読出し対象レジスタが第1のレジスタ群
11に切換わった後、この第1のレジスタ群11を構成
するレジスタの個数に相当する5回目(合計10回目)
のキャリー信号CAが送出されると、キャリー検出回路
20からトリガ信号が出力される。これにより、Tフリ
ップフロップ21の出力Q,/Qの信号レベルが再び反
転して選択信号RSが立ち上がり、第3のセレクタ15
が切換わって第1のレジスタ群11が書込み対象レジス
タとなり、第2のレジスタ群12が読出し対象レジスタ
となる。
Thereafter, the above operation is repeated each time the counter 16 performs a full count and the carry signal CA rises. After the register to be read is switched to the first register group 11 in this manner, a fifth time (a total of ten times) corresponding to the number of registers constituting the first register group 11 is performed.
Is transmitted, the carry detection circuit 20 outputs a trigger signal. As a result, the signal levels of the outputs Q and / Q of the T flip-flop 21 are again inverted and the selection signal RS rises, and the third selector 15
Are switched, the first register group 11 becomes a register to be written, and the second register group 12 becomes a register to be read.

【0048】ところで、CPU4は5回目のキャリー信
号CAが出力されてから10回目のキャリー信号CAが
出力されるまでの間に、スローアップテーブル6aより
第11ステップから第15ステップまでの5つのスロー
アップデータB6.B7.B8.B9.B10を読出し
てステップ順にデータバスライン7aに送出するととも
に、ライト信号WRを5パルス送出する。
By the way, during the period from the output of the fifth carry signal CA to the output of the tenth carry signal CA, the CPU 4 outputs five throws from the eleventh step to the fifteenth step from the throw-up table 6a. Updater B6. B7. B8. B9. B10 is read and transmitted to the data bus line 7a in the order of steps, and five pulses of the write signal WR are transmitted.

【0049】そうすると、このライト信号WRは書込み
対象レジスタである第2のレジスタ群12へのライト信
号BWとなって各レジスタn1〜n5に与えられ、各レ
ジスタn1〜n5はデータの書込みとシフトを5回繰り
返す。これにより、レジスタn5には第11ステップの
スローアップデータB6が書込まれ、レジスタn4には
第12ステップのスローアップデータB7が書込まれ、
レジスタn3には第13ステップのスローアップデータ
B8が書込まれ、レジスタn2には第14ステップのス
ローアップデータB9が書込まれ、レジスタn1には第
15ステップのスローアップデータB10が書込まれ
る。したがって、10回目のキャリー信号CAが出力さ
れたときには、第2のレジスタ群12のデータバスライ
ン18には最終段のレジスタn5のデータB6が出力さ
れている。
Then, the write signal WR becomes a write signal BW to the second register group 12, which is a register to be written, and is given to each of the registers n1 to n5. Each of the registers n1 to n5 performs writing and shifting of data. Repeat 5 times. Thereby, the slow-up data B6 of the eleventh step is written to the register n5, the slow-up data B7 of the twelfth step is written to the register n4,
The slow-up data B8 of the thirteenth step is written to the register n3, the slow-up data B9 of the fourteenth step is written to the register n2, and the slow-up data B10 of the fifteenth step is written to the register n1. Therefore, when the tenth carry signal CA is output, the data B6 of the last-stage register n5 is output to the data bus line 18 of the second register group 12.

【0050】このため、10回目のキャリー信号CAの
立上がりに同期してロード信号RDが立下がると、その
後のカウンタクロック信号CLKの立上がりに同期して
カウンタ16に第2のレジスタ群12からの出力データ
B6がロードされ、カウンタ16はこのデータB6から
カウントを再開する。
Therefore, when the load signal RD falls in synchronization with the tenth rise of the carry signal CA, the counter 16 outputs the output from the second register group 12 to the counter 16 in synchronization with the subsequent rise of the counter clock signal CLK. The data B6 is loaded, and the counter 16 restarts counting from this data B6.

【0051】以後、上述した動作が繰り返される。これ
により、スローアップテーブル6aに設定されている各
ステップのスローアップデータは、CPU4によって5
ステップずつ読出されて、第1のレジスタ群11と第2
のレジスタ群12とに交互に書込まれる。また、一方の
レジスタ群にデータが書き込まれている間に、他方のレ
ジスタ群から順に各レジスタにセットされている1段階
前の5ステップ分のデータが1ステップずつカウンタ1
6にロードされてその都度カウントが開始され、フルカ
ウントする毎にキャリー信号CAが出力されて、その出
力タイミングでモータドライバ2からステッピングモー
タ1に駆動パルスが出力される。そして、読出し対象の
レジスタ群にセットされていた5ステップ分のデータが
全てカウンタ16にロードされると、読出し対象レジス
タと書込み対象レジスタとが入替わる。
Thereafter, the above operation is repeated. As a result, the slow-up data of each step set in the slow-up table 6a is stored in the CPU 4 by the CPU 5.
The first register group 11 and the second
Are written alternately with the register group 12 of the first row. While data is being written to one of the register groups, the data of the previous five steps set in each register in order from the other register group is stored in the counter 1 by one step.
6 and starts counting each time. Every time a full count is performed, a carry signal CA is output, and a drive pulse is output from the motor driver 2 to the stepping motor 1 at the output timing. When all the data for the five steps set in the register group to be read are loaded into the counter 16, the register to be read and the register to be written are switched.

【0052】この結果、スローアップテーブル6aに設
定されている各ステップのスローアップデータに基づい
てステッピングモータ1は徐々に回転速度を上げ、スロ
ーアップ運転を行って所望の定速回転を得る。
As a result, the rotation speed of the stepping motor 1 is gradually increased based on the slow-up data of each step set in the slow-up table 6a, and a desired constant speed rotation is obtained by performing the slow-up operation.

【0053】なお、モータ制御回路3は、定速回転とな
った後もスローアップ運転時と同様に動作する。ただし
CPU4は、スローアップテーブル6aの最終ステップ
のデータを一方のレジスタ群に書込み、その書込み対象
の一方のレジスタ群が読出し対象のレジスタに切換わっ
た後は、予め設定された定速回転速度のパルス周波数に
基づいて算出された定速時データをデータバスライン7
aに送出するとともに、ライト信号WRを5パルス送出
する。これにより、書込み対象となった他方のレジスタ
群の各レジスタには上記定速時データが共通に書込まれ
る。また、CPU4は、その後に書込み対象のレジスタ
群と読出し対象のレジスタ群とが入替ると、再び上記定
速時データをデータバスライン7aに送出するととも
に、ライト信号WRを5パルス送出する。これにより、
書込み対象となった他方のレジスタ群の各レジスタにも
上記定速時データが共通に書込まれる。その後、CPU
4はステッピングモータ1の停止を指令するまでレジス
タ群11,12へのデータの書込みは行わない。
The motor control circuit 3 operates in the same manner as in the slow-up operation even after the rotation at the constant speed. However, the CPU 4 writes the data of the final step of the slow-up table 6a into one register group, and after the one register group to be written is switched to the register to be read, the CPU 4 sets the data at the preset constant rotation speed. The constant speed data calculated based on the pulse frequency is transferred to the data bus line 7.
a and 5 pulses of the write signal WR. As a result, the constant-speed data is written in common to the registers of the other register group to be written. When the group of registers to be written and the group of registers to be read are subsequently switched, the CPU 4 sends out the constant speed data to the data bus line 7a again and sends out five pulses of the write signal WR. This allows
The constant speed data is also written in common to the registers of the other register group to be written. Then the CPU
No. 4 does not write data into the register groups 11 and 12 until the stop of the stepping motor 1 is commanded.

【0054】前述したように、読出し対象のレジスタ群
からカウンタ16にロードされるデータは、そのレジス
タ群の初段のレジスタにも書込まれる。従って、各レジ
スタ群11,12の各レジスタm1〜m5,n1〜n5
にそれぞれ1回だけ定速時データを書込んでおけば、常
に共通の定速時データがカウンタ16にセットされてス
テッピングモータ1は定速回転を維持する。よって、C
PU4はステッピングモータ1の停止を指令するまでレ
ジスタ群11,12にデータを書込む必要はない。
As described above, the data loaded into the counter 16 from the register group to be read is also written to the first register of the register group. Therefore, the registers m1 to m5, n1 to n5 of the register groups 11 and 12
If the constant speed data is written only once each time, the common constant speed data is always set in the counter 16 and the stepping motor 1 maintains the constant speed rotation. Therefore, C
The PU 4 does not need to write data to the register groups 11 and 12 until the PU 4 instructs the stepping motor 1 to stop.

【0055】一方、ステッピングモータ1の運転を停止
させる場合には、CPU4は、運転開始時と同様にし
て、スローダウンテーブル6bのデータを先頭ステップ
から5ステップずつ第1のレジスタ群11及び第2のレ
ジスタ群12に交互に書込む。こうすることにより、一
方のレジスタ群が書込み対象のときには他方のレジスタ
群に記憶されている1段階前の5ステップ分のデータが
1ステップずつカウンタ16にロードされてその都度カ
ウントが開始され、フルカウントする毎にキャリー信号
CAが出力されて、その出力タイミングでモータドライ
バ2からステッピングモータ1に駆動パルスが出力され
る。
On the other hand, when stopping the operation of the stepping motor 1, the CPU 4 stores the data in the slowdown table 6b in the first register group 11 and the second Are alternately written to the register group 12 of FIG. In this way, when one register group is to be written, the data of the previous five steps stored in the other register group is loaded into the counter 16 one step at a time, and counting is started each time. Each time the carry signal CA is output, a drive pulse is output from the motor driver 2 to the stepping motor 1 at the output timing.

【0056】この結果、スローダウンテーブル6bに設
定されている各ステップのスローダウンデータに基づい
てステッピングモータ1は徐々に回転速度を落とし、ス
ローダウン運転を行って停止する。
As a result, the rotation speed of the stepping motor 1 is gradually reduced based on the slowdown data of each step set in the slowdown table 6b, and the stepping motor 1 performs a slowdown operation and stops.

【0057】このように本実施例によれば、スローアッ
プ及びスローダウンの制御時において、CPU4はステ
ッピングモータ1の相が5回変化するまでに一方のレジ
スタ群に5ステップ分のスローアップデータまたはスロ
ーダウンデータを書込めばよいので、プログラム制御に
よってステッピングモータ1の相が変化するタイミング
を決定する従来の構成に比べて、CPU4の負荷を軽減
できる。換言すれば、CPU4の許容負荷までステップ
数を増加させることができ、滑らかな起動及び停止が可
能となる。
As described above, according to the present embodiment, during the slow-up and slow-down control, the CPU 4 stores the five-step slow-up data or slow-down data in one of the register groups until the phase of the stepping motor 1 changes five times. Since it is sufficient to write down data, the load on the CPU 4 can be reduced as compared with the conventional configuration in which the timing at which the phase of the stepping motor 1 changes by program control is determined. In other words, the number of steps can be increased up to the permissible load of the CPU 4, and smooth start and stop can be performed.

【0058】また、定速運転時においては、初期におい
て2回だけ各レジスタ群11,12に共通の定速時デー
タを書込めば後は制御不要となるので、この点でもCP
U4の負荷が軽減される。
At the time of constant speed operation, if the constant speed data common to each of the register groups 11 and 12 is written only twice in the initial stage, no control is required thereafter.
The load on U4 is reduced.

【0059】また、ハードウェアの構成も簡単であり、
小型化が容易である。
Also, the hardware configuration is simple,
It is easy to reduce the size.

【0060】なお、前記実施例では各レジスタ群11,
12を構成するレジスタの個数を5個としたが、これに
限定されるものではない。
In the above embodiment, each register group 11,
Although the number of registers constituting 12 is five, the number is not limited to five.

【0061】[0061]

【発明の効果】以上詳述したように本発明によれば、構
成の簡略化及び小型化を図るとともに、中央処理装置の
負荷が増大することなく滑らかな起動及び停止ができる
ステッピングモータのスローアップ・ダウン制御装置を
提供できる。また、定速運転時には初期に2回だけ各レ
ジスタ群に共通の定速時データを書込めば後は制御不要
となるので、この点でも中央処理装置の負荷を軽減でき
る効果を奏する。
As described above in detail, according to the present invention, the structure of the stepping motor can be simplified and downsized, and the step-up motor can be started and stopped smoothly without increasing the load on the central processing unit.・ A down control device can be provided. In addition, at the time of constant-speed operation, if the constant-speed data common to each register group is written only twice at the beginning, control becomes unnecessary after that, so that the effect of reducing the load on the central processing unit is also achieved.

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

【図1】 本発明の一実施例におけるモータ制御回路の
詳細ブロック図。
FIG. 1 is a detailed block diagram of a motor control circuit according to an embodiment of the present invention.

【図2】 同実施例であるステッピングモータ搭載機器
の要部構成を示すブロック図
FIG. 2 is a block diagram showing a configuration of a main part of the device equipped with a stepping motor according to the embodiment;

【図3】 図1に示すレジスタ制御回路の詳細ブロック
図。
FIG. 3 is a detailed block diagram of a register control circuit shown in FIG. 1;

【図4】 同実施例の作用説明に用いるタイミング図。FIG. 4 is a timing chart used to explain the operation of the embodiment.

【図5】 スローアップ運転時にステップ毎に増加する
パルス周波数の増加曲線の一例を示すグラフ。
FIG. 5 is a graph showing an example of an increase curve of a pulse frequency that increases for each step during a slow-up operation.

【図6】 スローダウン運転時にステップ毎に減少する
パルス周波数の減少曲線の一例を示すグラフ。
FIG. 6 is a graph showing an example of a decrease curve of a pulse frequency that decreases for each step during a slowdown operation.

【符号の説明】[Explanation of symbols]

1…ステッピングモータ 2…モータドライバ 3…モータ駆動回路 4…CPU(中央処
理装置) 6a…スローアップテーブル 6b…スローダウン
テーブル 11…第1のレジスタ群 12…第2のレジス
タ群 13〜15…第1〜第3のセレクタ 16…カウンタ 19…ロード出力回
路 20…キャリー検出回路 21…Tフリップフ
ロップ 22…レジスタ群制御回路
DESCRIPTION OF SYMBOLS 1 ... Stepping motor 2 ... Motor driver 3 ... Motor drive circuit 4 ... CPU (Central processing unit) 6a ... Slow-up table 6b ... Slow-down table 11 ... 1st register group 12 ... 2nd register group 13-15 ... 1st to 3rd selectors 16 ... Counter 19 ... Load output circuit 20 ... Carry detection circuit 21 ... T flip-flop 22 ... Register group control circuit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 制御信号の入力タイミングでステッピン
グモータに駆動パルスを供給するモータドライバと、複
数個のレジスタを直列に接続してなる第1及び第2のレ
ジスタ群と、第1及び第2のレジスタ群の一方を書込み
対象レジスタ群として選択し他方を読出し対象レジスタ
群として選択するレジスタ群選択手段と、前記書込み対
象レジスタ群の各レジスタにスローアップまたはスロー
ダウンのデータを書込むデータ書込み手段と、前記読出
し対象レジスタ群の最終段のレジスタのデータをロード
信号が入力される毎にロードしそのデータからカウント
を開始するカウンタと、このカウンタへのロード信号に
応動して前記読出し対象レジスタ群の各レジスタのデー
タをそれぞれ次段へシフトするシフト手段と、前記カウ
ンタのフルカウントにより出力される前記モータドライ
バ制御信号に応動して前記ロード信号を前記カウンタへ
出力するロード信号出力手段と、前記モータドライバ制
御信号を検出する制御信号検出手段と、この検出手段に
より前記モータドライバ制御信号を前記読出し対象レジ
スタ群を構成する各レジスタの個数分検出する毎に前記
レジスタ群選択手段による選択対象のレジスタ群を切換
えるレジスタ群切換手段とを具備したことを特徴とする
ステッピングモータのスローアップ・ダウン制御装置。
1. A motor driver for supplying a drive pulse to a stepping motor at an input timing of a control signal, a first and second register group formed by connecting a plurality of registers in series, and a first and second register group. Register group selecting means for selecting one of the register groups as a write target register group and selecting the other as a read target register group; and data writing means for writing slow-up or slow-down data to each register of the write target register group. A counter for loading data of the register at the last stage of the group of registers to be read each time a load signal is input and starting counting from the data; and a counter for loading the group of registers to be read in response to a load signal to the counter. Shift means for shifting the data of each register to the next stage, and a full count of the counter A load signal output means for outputting the load signal to the counter in response to the motor driver control signal output by the control circuit; a control signal detection means for detecting the motor driver control signal; A register group switching means for switching a register group to be selected by the register group selecting means each time a signal is detected by the number of registers constituting the read target register group,・ Down control device.
【請求項2】 データ書込み手段によりスローアップデ
ータの最終ステップのデータを書込み対象の一方のレジ
スタ群に書込み、そのレジスタ群がレジスタ群切換手段
により読出し対象のレジスタ群に切換わった後、書込み
対象となった他方のレジスタ群の各レジスタに予め設定
された定速時データを共通に書込み、その後、前記レジ
スタ群切換手段によりレジスタ群選択手段による選択対
象のレジスタ群が入替ると、書込み対象となった一方の
レジスタ群の各レジスタに前記定速時データを共通に書
込み、その後、ステッピングモータの停止を指令するま
で各レジスタ群へのデータの書込みを行わないことを特
徴とする請求項1記載のステッピングモータのスローア
ップ・ダウン制御装置。
2. The data writing means writes the data of the final step of the slow-up data to one of a group of registers to be written, and the group of registers is switched to a group of registers to be read by a register group switching means. The constant-speed data set in advance is written in common to the respective registers of the other register group, and then, when the register group to be selected by the register group selecting means is switched by the register group switching means, the data is written. 2. The data writing method according to claim 1, wherein the constant-speed data is written in common to the registers of the other register group, and thereafter, the data is not written to each register group until a command to stop the stepping motor is issued. Slow-up / down control device for stepping motor.
JP28666394A 1994-11-21 1994-11-21 Step-up motor slow-up / down control device Expired - Fee Related JP3165777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28666394A JP3165777B2 (en) 1994-11-21 1994-11-21 Step-up motor slow-up / down control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28666394A JP3165777B2 (en) 1994-11-21 1994-11-21 Step-up motor slow-up / down control device

Publications (2)

Publication Number Publication Date
JPH08149889A JPH08149889A (en) 1996-06-07
JP3165777B2 true JP3165777B2 (en) 2001-05-14

Family

ID=17707349

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28666394A Expired - Fee Related JP3165777B2 (en) 1994-11-21 1994-11-21 Step-up motor slow-up / down control device

Country Status (1)

Country Link
JP (1) JP3165777B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8804212B2 (en) 2007-05-23 2014-08-12 Kyocera Document Solutions Inc. Stepping motor control device capable of reducing load on CPU
JP6035291B2 (en) 2014-07-31 2016-11-30 京セラドキュメントソリューションズ株式会社 Stepping motor drive device and image forming apparatus
CN109643966B (en) * 2017-03-06 2022-06-21 深圳市大疆创新科技有限公司 Motor control system, unmanned aerial vehicle and motor protection method

Also Published As

Publication number Publication date
JPH08149889A (en) 1996-06-07

Similar Documents

Publication Publication Date Title
US20070162654A1 (en) Memory controller and memory control method
EP0740059B1 (en) An A/D conversion control apparatus for an internal combustion engine
JP3165777B2 (en) Step-up motor slow-up / down control device
JP2000134992A (en) Step motor control signal generation system
US6563282B2 (en) Motor control apparatus
JP4226762B2 (en) Motor control circuit and control system using the same
JPH1050070A (en) Memory controller
JPS607478B2 (en) Sub-scanning step motor drive device
US6535519B1 (en) Method and apparatus for data sharing between two different blocks in an integrated circuit
JPH06115137A (en) Method of controlling thermal recorder
JPH08147214A (en) Memory device
JP3720669B2 (en) Motor control device
JP4054916B2 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JP2002272185A (en) Motor drive apparatus
JP2001286190A (en) Motor controller
JP3049857B2 (en) Drive control device for wire dot print head
JP2577604Y2 (en) Image memory and data processing device
JP2001286189A (en) Motor controller
JP2002215563A (en) Dma controller
JP2001245493A (en) Motor controller
JPH0825673A (en) Thermal head split driving apparatus
JPS5945763A (en) Facsimile controller
JP2003198369A (en) A/d converter and signal processing system
JP2575930B2 (en) Printer's print pin control circuit
JP2563724B2 (en) Sub-scanning control device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees