JPH10323089A - Controller and control method for printer motor - Google Patents

Controller and control method for printer motor

Info

Publication number
JPH10323089A
JPH10323089A JP13010597A JP13010597A JPH10323089A JP H10323089 A JPH10323089 A JP H10323089A JP 13010597 A JP13010597 A JP 13010597A JP 13010597 A JP13010597 A JP 13010597A JP H10323089 A JPH10323089 A JP H10323089A
Authority
JP
Japan
Prior art keywords
motor
rotation
motor driver
printer
cpu
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.)
Withdrawn
Application number
JP13010597A
Other languages
Japanese (ja)
Inventor
Shunsaku Miyazawa
俊作 宮澤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP13010597A priority Critical patent/JPH10323089A/en
Publication of JPH10323089A publication Critical patent/JPH10323089A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a controller and control method for a printer motor capable of accurately adjusting the moving speed of a printing head and improving printing quality by adjusting the variation time interval of a motor control signal with an accuracy several times higher than the accuracy of a CPU timer. SOLUTION: This printer refers to a rotation trigger signal 13 generated by a CPU11 and its motor driver 19 rotates and drives a carriage (CR) motor 21 by the motor driver control signals 38, 39 generated by a motor driver control section 15. In this case, the motor driver control section 15 contains a motor driver signal generating circuit 15A, a motor driver drive mode setting register 15B, a block revolution setting register 15C, and a step time setting table 15D during block rotation, and the motor driver control signals 38, 39 are sequentially changed at least by n step (n>=2 as integer) for one rotation trigger signal 13.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタ用モータ
の制御装置及び制御方法に関し、特に、プリンタによる
印字速度を高めることができ、且つ印字品質も向上させ
ることが可能なプリンタ用モータの制御装置及び制御方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device and a control method for a motor for a printer, and more particularly to a control device for a motor for a printer capable of increasing the printing speed of a printer and improving the printing quality. And a control method.

【0002】[0002]

【従来の技術】プリンタには、キャリッジ(CR)モー
タ、紙送り(PF)モータ、プラテンギャップ調整モー
タ等、複数種類のモータが用いられる。一般に、これら
のモータは、それぞれのモータドライバが生成するモー
タ電流により回転駆動され、各モータドライバは、モー
タドライバ制御部等から出力される制御信号により制御
される。
2. Description of the Related Art A plurality of types of motors such as a carriage (CR) motor, a paper feed (PF) motor, and a platen gap adjustment motor are used in a printer. Generally, these motors are rotationally driven by motor currents generated by respective motor drivers, and each motor driver is controlled by a control signal output from a motor driver control unit or the like.

【0003】一方、これらのモータは、印字、キャリッ
ジの移動、あるいは他の機構的目的等、それぞれの目的
に応じた制御モードによりその回転が制御される必要が
ある。
On the other hand, the rotation of these motors needs to be controlled in a control mode corresponding to each purpose, such as printing, carriage movement, or other mechanical purposes.

【0004】また、例えば、印字のためのモータの回転
においても、インク残量やへッド温度等のメカ環境に合
わせてフレキシブルに回転動作状態を変更する必要もあ
る。
In addition, for example, in the rotation of a motor for printing, it is necessary to flexibly change the rotation operation state in accordance with a mechanical environment such as a remaining amount of ink and a head temperature.

【0005】かかる従来のプリンタ用モータ制御の一例
を図5に示す。
FIG. 5 shows an example of such a conventional printer motor control.

【0006】同図に示すプリンタでは、CRモータ51
の回転軸が回転することによりべルト52を左右に移動
させ、べルト52に固定されたキャリッジ53とそのキ
ヤリッジ53に固定された印字へッド54が、印刷用紙
55の上を左右に移動しつつ印刷が実行される。そし
て、CRモータ51の回転制御は、一般にタイマ56を
内臓したタイプのCPU57を用いて行われ、かかるC
PU57の内臓タイマ56によってリアルタイムに時間
管理されながら、CRモータ51の回転動作状態が制御
される。また、印刷用紙55上の印字すべき位置に印字
へッド54が移動してきたタイミングで、印字へッド5
4にインク噴射用制御信号58を送るための時間管理
等、印刷のための一連のシーケンスの時間管理にもCP
U57の内臓タイマ56が用いられている。
In the printer shown in FIG.
The rotation of the rotation shaft causes the belt 52 to move left and right, and the carriage 53 fixed to the belt 52 and the print head 54 fixed to the carriage 53 move left and right on the printing paper 55. The printing is executed while performing the printing. The rotation control of the CR motor 51 is generally performed using a CPU 57 having a timer 56 built therein.
While the time is managed in real time by the built-in timer 56 of the PU 57, the rotational operation state of the CR motor 51 is controlled. Further, at the timing when the print head 54 has moved to a position on the printing paper 55 where printing is to be performed, the print head 5 is moved.
4 for time management of a series of printing sequences, such as time management for sending an ink ejection control signal 58 to the CP 4.
A built-in timer 56 of U57 is used.

【0007】上述したCRモータ51の制御では、従
来、予めCPU57の内臓タイマ56に設定しておいた
時間が経過するごとに発生するCPU57の割り込み処
理に同期して、CRモータ51の制御信号を変化させる
ことにより、CRモータ51の回転駆動モード(2−2
相駆動、1−2相駆動、W1−2相駆動など)等を制御
している。
In the above-described control of the CR motor 51, a control signal of the CR motor 51 is conventionally synchronized with an interrupt process of the CPU 57 which is generated every time the time set in the built-in timer 56 of the CPU 57 elapses. By changing the rotation mode, the rotation driving mode of the CR motor 51 (2-2)
Phase drive, 1-2 phase drive, W1-2 phase drive, etc.).

【0008】図6に、上述したCPUの内臓タイマを利
用して印刷を実行する場合の動作のタイミングフローを
示す。
FIG. 6 shows a timing flow of an operation when printing is performed by using the built-in timer of the CPU.

【0009】即ち、CPUによる割り込み処理59毎
に、モータ制御信号60の状態が変化しながら、CRモ
ータ51が回転する状態を示している。CRモータ51
の回転と共に、印字へッド54が印刷用紙55の上を移
動し、インク噴射用制御信号58がアクティブになった
位置で、印刷用紙55の上に印刷デ一タ61が印刷され
る。
That is, this shows a state in which the CR motor 51 rotates while the state of the motor control signal 60 changes for each interruption process 59 by the CPU. CR motor 51
With the rotation of the print head 54, the print head 54 moves on the print paper 55, and the print data 61 is printed on the print paper 55 at the position where the ink ejection control signal 58 becomes active.

【0010】[0010]

【発明が解決しようとする課題】プリンタによる印字速
度や印字品質を向上させるためには、プリンタ用の各種
モータに流れる電流を、より小さな時間単位で精密に制
御する必要がある。このためには、上述したモータ電流
を生成するモータドライバを制御するためのモータドラ
イバ制御信号をより小さな時間単位で精密に制御するこ
とが課題となる。
In order to improve the printing speed and printing quality of a printer, it is necessary to precisely control the current flowing through various motors for the printer in smaller time units. For this purpose, it is necessary to precisely control the motor driver control signal for controlling the motor driver that generates the motor current described above in smaller time units.

【0011】以下に、いわゆるカラーアジャストの問題
を例にとって説明する。
Hereinafter, a problem of so-called color adjustment will be described as an example.

【0012】図7に、インクを噴射する印字へッド54
の概略構造を示す。ここでは、印字へッド54上にノズ
ル列71とノズル列72の2本のノズル列があるものと
して説明する。各ノズル列71及び72には、ノズル7
3、ノズル74等、複数のノズルが配置されている。ま
た、ノズル列71とノズル列72は、設計上、所定の距
離75だけ離間して配置されている。例えば、図7に示
した印字ヘッド54を用いてカラー印刷を行う場合に
は、ノズル列71とノズル列72に異なる色のインクを
割り当て、これらのインクを同一位置に付着させて色合
成を行う。即ち、図8に示すように、印字へッド54が
位置(A)にある時点で、ノズル列72からインクを噴
射し、さらに印字へッド54が位置(B)に来た時点
で、ノズル列71からインクを噴射することで、印刷用
紙55の印刷位置76に、ノズル列72のインクと、こ
れと異なる色のノズル列71のインクが噴射され、色合
成されて、カラー印刷が可能となる。
FIG. 7 shows a print head 54 for ejecting ink.
The schematic structure of is shown. Here, a description will be given assuming that there are two nozzle rows on the print head 54, a nozzle row 71 and a nozzle row 72. Each of the nozzle rows 71 and 72 has a nozzle 7
3, a plurality of nozzles such as the nozzle 74 are arranged. In addition, the nozzle row 71 and the nozzle row 72 are spaced apart from each other by a predetermined distance 75 in design. For example, when color printing is performed using the print head 54 shown in FIG. 7, different colors of ink are assigned to the nozzle rows 71 and 72, and these inks are attached to the same position to perform color synthesis. . That is, as shown in FIG. 8, when the print head 54 is at the position (A), ink is ejected from the nozzle row 72, and when the print head 54 comes to the position (B), By ejecting the ink from the nozzle row 71, the ink of the nozzle row 72 and the ink of the nozzle row 71 of a different color are ejected to the print position 76 of the printing paper 55, and the colors are combined, so that color printing is possible. Becomes

【0013】ところで、プリンタの、例えば、上述した
CRモータ51の回転軸の径寸法にバラツキ等がある
と、機種によって印字へッド54の移動速度が変わって
しまうため、異なるノズル列71と72から同一位置に
高精度にインク噴射を行うことは困難である。そこで、
かかるメカ的バラツキに伴う印字へッド54の移動速度
を補正するために、CRモータ51の制御信号を変化さ
せる時間間隔を、より短い時間単位で調整できるように
する必要がある。
If the diameter of the rotary shaft of the CR motor 51 of the printer varies, for example, the moving speed of the print head 54 changes depending on the type of the printer. It is difficult to perform ink ejection to the same position with high accuracy. Therefore,
In order to correct the moving speed of the print head 54 due to such mechanical variation, it is necessary to adjust the time interval for changing the control signal of the CR motor 51 in a shorter time unit.

【0014】しかしながら、図5に示した上述した従来
の制御方式では、CPU57の内臓タイマ56は、発振
回路80からCPU57に入力されるクロック81の1
クロック時間を最小の時間単位とするため、これより短
い時間単位で、CRモータ51の制御信号60を変化さ
せる時間間隔を調整することができなかった。
However, in the above-described conventional control method shown in FIG. 5, the built-in timer 56 of the CPU 57 uses one of the clocks 81 input from the oscillation circuit 80 to the CPU 57.
Since the clock time is set to the minimum time unit, the time interval for changing the control signal 60 of the CR motor 51 cannot be adjusted in a shorter time unit.

【0015】また、従来の制御方式では、モータ制御信
号60の変化時間ごとに、CPU57がモータ制御を管
理する必要があったため、印字速度を上げるために印字
ヘッド54の移動速度を速くすればするほど、CPU5
7がCRモータ51の制御のために呼び出される割合が
増えるので、これが障碍となってトータルとしての印刷
速度を上げることができなかった。
In the conventional control method, the CPU 57 needs to manage the motor control every time the motor control signal 60 changes, so that the moving speed of the print head 54 can be increased to increase the printing speed. CPU5
7 increases the rate of being called out for controlling the CR motor 51, and this causes an obstacle, so that the printing speed as a whole cannot be increased.

【0016】本発明の目的は、CPUタイマ精度の複数
倍の精度でモータ制御信号の変化時間間隔を調整するこ
とにより、印字へッドの移動速度を精密調整することが
でき、且つ印字品質を向上させ得るプリンタ用モータの
制御装置及び制御方法を提供することにある。
An object of the present invention is to precisely adjust the moving speed of the print head by adjusting the change time interval of the motor control signal with a multiple of the accuracy of the CPU timer, and to improve the print quality. An object of the present invention is to provide a printer motor control device and a control method that can be improved.

【0017】また、本発明の他の目的は、印字へッドの
移動速度を上げても、CPUがモータ制御信号を変化さ
せるために呼び出される割合を増加させることが無く、
トータルとしての印刷速度を向上させ得るプリンタ用モ
ータの制御装置及び制御方法を提供することにある。
Another object of the present invention is to increase the moving speed of the print head without increasing the rate at which the CPU is called to change the motor control signal.
An object of the present invention is to provide a control device and a control method for a printer motor that can improve the printing speed as a whole.

【0018】[0018]

【課題を解決するための手段】上記目的達成のため、本
発明に係るプリンタ用モータの制御装置及び制御方法で
は、CPUに関連して発生する回転トリガ信号を参照し
て発せられるモータ制御信号によりモータの回転を制御
するプリンタ用モータの制御において、1つの前記回転
トリガ信号に対して前記モータ制御信号を順次、少なく
ともn(nは、n≧2の整数)ステップ変化させるよう
にしている。
In order to achieve the above object, a control device and a control method for a printer motor according to the present invention use a motor control signal generated by referring to a rotation trigger signal generated in connection with a CPU. In the control of the printer motor for controlling the rotation of the motor, the motor control signal is sequentially changed by at least n (n is an integer of n ≧ 2) steps in response to one rotation trigger signal.

【0019】即ち、請求項1に係る発明では、CPUに
関連して発生する回転トリガ信号を参照して発せられる
モータ制御信号によりモータの回転を制御するプリンタ
用モータの制御装置において、1つの前記回転トリガ信
号に対して前記モータ制御信号を順次、少なくともn
(nは、n≧2の整数)ステップ変化させる手段を有す
ることを特徴としている。
That is, according to the first aspect of the present invention, in the printer motor control device for controlling the rotation of the motor by the motor control signal generated by referring to the rotation trigger signal generated in relation to the CPU, The motor control signal is sequentially applied to the rotation trigger signal at least for n times.
(N is an integer greater than or equal to 2).

【0020】CPUに関連して出力される1つの回転ト
リガ信号によって、モータ制御信号が、少なくともn
(nは、n≧2の整数)ステップ出力されるため、CP
Uタイマの単位時間のn倍の精度で、回転速度を調整可
能となる。
One rotation trigger signal output in connection with the CPU causes the motor control signal to be at least n
(N is an integer of n ≧ 2) step output,
The rotation speed can be adjusted with an accuracy of n times the unit time of the U timer.

【0021】また、CPUが、モータ制御のために呼び
出される割合は、印字へッドが実際に移動している期間
で計算して、従来の(1/n)回に減らせるので、印刷
速度を向上することができる。
Further, the rate at which the CPU is called for motor control is calculated during the period when the print head is actually moving, and can be reduced to (1 / n) times of the conventional method. Can be improved.

【0022】また、請求項2に係る発明では、更に、前
記nステップの各ステップ時間を設定する手段と、前記
1つの回転トリガ信号に対して前記モータ制御信号を変
化させるステップ数nの値を設定する手段とを有するこ
とを特徴としている。
Further, in the invention according to claim 2, further, a means for setting each step time of the n steps and a value of the number of steps n for changing the motor control signal with respect to the one rotation trigger signal are further provided. Setting means.

【0023】また、請求項3に係る発明では、更に、前
記1つの回転トリガ信号に対して前記モータ制御信号を
変化させるステップ数nの値を変更する手段を有するこ
とを特徴としている。
Further, the invention according to claim 3 is characterized by further comprising means for changing the value of the number n of steps for changing the motor control signal in response to the one rotation trigger signal.

【0024】これにより、印刷速度等に応じてモータ制
御信号の状態をフレキシブルに変えることができる。
Thus, the state of the motor control signal can be flexibly changed according to the printing speed and the like.

【0025】一方、請求項4に係る発明では、更に、前
記nステップの各ステップそれぞれに対応するモータ制
御状態をあらかじめ設定する手段を有することを特徴と
している。
On the other hand, the invention according to claim 4 is characterized by further comprising means for presetting a motor control state corresponding to each of the n steps.

【0026】また、請求項5に係る発明では、前記プリ
ンタ用モータは、キャリッジモータであることを特徴と
している。
According to a fifth aspect of the present invention, the printer motor is a carriage motor.

【0027】更に、請求項6に係る発明では、前記nス
テップの変化は、キャリッジの定速駆動中に行われるこ
とを特徴としている。
Further, the invention according to claim 6 is characterized in that the change in n steps is performed during the constant speed driving of the carriage.

【0028】更にまた、請求項7に係る発明では、前記
nの値をキャリッジの移動速度に応じて変更することを
特徴としている。
Further, the invention according to claim 7 is characterized in that the value of n is changed according to the moving speed of the carriage.

【0029】これにより、例えばキャリッジの移動が高
速で行われる時は、nの値を大きくし、反対に低速で行
われる時は、nの値を小さくする等、フレキシブルな制
御が可能となる。
Thus, for example, when the carriage is moved at a high speed, the value of n is increased, and when the carriage is moved at a low speed, the value of n is decreased.

【0030】尚、請求項8に係る発明では、前記回転ト
リガ信号は、CPUに関連して動作するタイマのカウン
トアップにより発生することを特徴としている。
[0030] The invention according to claim 8 is characterized in that the rotation trigger signal is generated by counting up a timer operating in connection with the CPU.

【0031】一方、請求項9に係る発明では、CPUに
関連して発生する1つの回転トリガ信号に対してモータ
制御信号をn(nは、n≧1の整数)ステップ変化させ
るモードを複数有することによりモータの回転を制御す
るプリンタ用モータの制御装置において、前記複数のモ
ードを任意に切り換える切り換え手段を有することを特
徴としている。
On the other hand, the invention according to claim 9 has a plurality of modes for changing the motor control signal by n (n is an integer of n ≧ 1) steps in response to one rotation trigger signal generated in relation to the CPU. Thus, a printer motor control device for controlling the rotation of the motor is characterized in that it has a switching means for arbitrarily switching the plurality of modes.

【0032】これにより、例えば、回転速度の遅い状態
では、1つの回転トリガ信号に対してモータ制御信号を
1ステップ変化させるモードを選択して、フレキシブル
なモータ制御を可能とし、回転速度の速い定速状態で
は、1つの回転トリガ信号に対してモータ制御信号を複
数ステップ変化させるモードに切り換えることにより、
従来のCPUタイマによる精度に対して複数倍の精度で
モータ回転速度を調整することができる。また、モード
の切り換えにより、1つの回転トリガ信号に対してモー
タ制御信号を複数ステップから複数ステップへとステッ
プ数を任意に変化させることも可能である。
Thus, for example, in a state in which the rotation speed is low, a mode in which the motor control signal is changed by one step in response to one rotation trigger signal is selected to enable flexible motor control, and a constant rotation speed is maintained. In the high speed state, by switching to a mode in which the motor control signal is changed by a plurality of steps in response to one rotation trigger signal,
The motor rotation speed can be adjusted with a multiple of accuracy higher than that of the conventional CPU timer. Further, by switching the mode, the number of steps of the motor control signal can be arbitrarily changed from a plurality of steps to a plurality of steps for one rotation trigger signal.

【0033】[0033]

【発明の実施の形態】以下、図面に基づいて本発明の実
施の形態について詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0034】本実施の形態では、本発明に係る制御装置
をシリアルプリンタ用の、永久磁石型或いはハイブリッ
ド型の2相のステッピングモータから成るキャリッジモ
ータの制御に適用した。
In the present embodiment, the control device according to the present invention is applied to control of a carriage motor composed of a permanent magnet type or hybrid type two-phase stepping motor for a serial printer.

【0035】即ち、本実施の形態に係る制御装置は、図
示しないシリアルプリンタのプリンタコントローラ内に
設けられ、図1に示すように、CPU11からの回転ト
リガ信号13を参照してモータドライバ制御部15が発
生するモータドライバ制御信号38、39によりモータ
ドライバ19がキャリッジ(CR)モータ21を回転駆
動させる例に適用される。
That is, the control device according to the present embodiment is provided in a printer controller of a serial printer (not shown), and as shown in FIG. This is applied to an example in which the motor driver 19 drives the carriage (CR) motor 21 to rotate in response to the motor driver control signals 38 and 39 in which occurs.

【0036】以下、本実施の形態に係る制御装置の具体
的構成を説明する。
Hereinafter, a specific configuration of the control device according to the present embodiment will be described.

【0037】CPU11は、第1の発信回路22からの
クロック23のクロック供給を受け、ROM25に格納
されているプログラム、及び、RAM27を使用しなが
ら、印刷動作を実行する。印字へッド54(図5参照)
は、CRモータ21の回転によって移動し、CRモータ
21は、モータドライバ19からのA相電流33とB相
電流34の2相電流によって回転する。モータドライバ
19は、モータドライバ制御部15からのA相電流制御
信号群38とB相電流制御信号群39によって制御さ
れ、これらA相電流制御信号群38とB相電流制御信号
群39の状態に応じて、2−2相駆動、1−2相駆動、
W1−2相駆動など様々な駆動方式を用いつつCRモー
タ21を回転駆動する。CPU11内部には、CPUタ
イマ12があり、CPUタイマ12は第1の発振回路2
2からクロック23の供給を受け、タイマ時間を計測す
る。
The CPU 11 receives the clock 23 supplied from the first transmission circuit 22 and executes a printing operation using the program stored in the ROM 25 and the RAM 27. Printing head 54 (see FIG. 5)
Is moved by the rotation of the CR motor 21, and the CR motor 21 is rotated by the two-phase current of the A-phase current 33 and the B-phase current 34 from the motor driver 19. The motor driver 19 is controlled by an A-phase current control signal group 38 and a B-phase current control signal group 39 from the motor driver control unit 15, and changes to the state of the A-phase current control signal group 38 and the B-phase current control signal group 39. Accordingly, 2-2 phase drive, 1-2 phase drive,
The CR motor 21 is rotationally driven while using various driving methods such as W1-2 phase driving. Inside the CPU 11, there is a CPU timer 12, and the CPU timer 12
2 is supplied with the clock 23, and the timer time is measured.

【0038】図2に示すように、モータドライバ制御部
15は、モータドライバ制御信号生成回路15Aと、モ
ータドライバ駆動モ一ド設定レジスタ15B、ブロック
回転数設定レジスタ15C、ブロック回転時のステップ
時間設定テーブル15Dとにより構成されている。モー
タドライバ制御信号生成回路15Aは、第2の発振回路
40から供給されるクロック42によって、最小時間単
位が決められ、動作する。また、モータドライバ制御信
号生成回路15Aは、第2の発振回路40から供給され
るクロック42によって上述したA相電流制御信号群3
8とB相電流制御信号群39を生成し、これら信号群を
モータドライバ19に供給する。ここで、モータドライ
バ制御信号生成回路15Aは、モータドライバ駆動モ一
ド設定レジスタ15B、ブロック回転数設定レジスタ1
5C、ブロック回転時のステップ時間設定テーブル15
Dの状態に対応したモータドライバ制御信号群38及び
39を、CPU11からの回転トリガ信号13に同期し
て生成する。
As shown in FIG. 2, the motor driver control unit 15 includes a motor driver control signal generation circuit 15A, a motor driver driving mode setting register 15B, a block rotation speed setting register 15C, and a step time setting during block rotation. And a table 15D. The motor driver control signal generation circuit 15A operates with the minimum time unit determined by the clock 42 supplied from the second oscillation circuit 40. In addition, the motor driver control signal generation circuit 15A uses the clock 42 supplied from the second oscillation circuit 40 to output the A-phase current control signal group 3
8 and a B-phase current control signal group 39 are generated, and these signals are supplied to the motor driver 19. Here, the motor driver control signal generation circuit 15A includes a motor driver drive mode setting register 15B, a block rotation speed setting register 1
5C, step time setting table 15 for block rotation
Motor driver control signal groups 38 and 39 corresponding to the state D are generated in synchronization with the rotation trigger signal 13 from the CPU 11.

【0039】尚、モータドライバA相電流制御信号群3
8は、A相フェーズ制御信号CRAPH,A相電流値制
御信号CRA1及びCRA0,A相リファレンス電圧信
号VREF_Aを含み、モータドライバB相電流制御信
号群39は、B相フェーズ制御信号CRBPH,B相電
流値制御信号CRB1及びCRB0,B相リファレンス
電圧信号VREF_Bを含む。A相フェーズ制御信号C
RAPH、B相フェーズ制御信号CRBPHは、それぞ
れA相電流33、B相電流34の方向を制御する信号、
A相電流値制御信号CRA1及びCRA0、B相電流値
制御信号CRB1及びCRB0は、それぞれA相電流3
3、B相電流34の電流値をデジタル的に1(ful
l),2/3,1/3と決定する信号、A相リファレン
ス電圧信号VREF_A、B相リファレンス電圧信号V
REF_Bは、それぞれA相電流33、B相電流34の
電流の絶対値、即ち、上記fullのときの電流値を定
める信号である。
The motor driver A-phase current control signal group 3
8 includes an A-phase control signal CRAPH, an A-phase current value control signal CRA1 and CRA0, and an A-phase reference voltage signal VREF_A, and the motor driver B-phase current control signal group 39 includes a B-phase control signal CRBPH and a B-phase current. It includes the value control signals CRB1 and CRB0 and the B-phase reference voltage signal VREF_B. A phase control signal C
The RAPH and B phase control signals CRBPH are signals for controlling the directions of the A phase current 33 and the B phase current 34, respectively.
The A-phase current value control signals CRA1 and CRA0 and the B-phase current value control signals CRB1 and CRB0 are
3. Digitally setting the current value of the B-phase current 34 to 1 (full)
l), signals determined as 2/3, 1/3, A-phase reference voltage signal VREF_A, B-phase reference voltage signal V
REF_B is a signal that determines the absolute value of the current of the A-phase current 33 and the current of the B-phase current 34, that is, the current value at the time of full.

【0040】本実施の形態に係る制御装置では、モータ
ドライバ駆動モード設定レジスタ15Bにおいてブロッ
ク回転モードが設定されると、CPU11からの1つの
回転トリガ信号13に対して、nステップ(n≧2)の
CRモータ21の回転をモータドライバ制御信号生成回
路15Aから自動発生させ、CRモータ21をnステッ
プ(n≧2)、即ち、複数ステップ回転させる。
In the control device according to the present embodiment, when the block rotation mode is set in the motor driver drive mode setting register 15B, one rotation trigger signal 13 from the CPU 11 is given n steps (n ≧ 2). Of the CR motor 21 is automatically generated from the motor driver control signal generation circuit 15A, and the CR motor 21 is rotated n steps (n ≧ 2), that is, a plurality of steps.

【0041】即ち、モータドライバ駆動モード設定レジ
スタ15Bにおいてブロック回転モードが設定される
と、モータドライバ制御信号生成回路15Aは、CPU
11からの1つの回転トリガ信号13に対して、ブロッ
ク回転数設定レジスタ15Cで設定されている数のステ
ップ数のモータドライバ制御信号群38、39をブロッ
ク回転時のステップ時間設定テーブル15Dに設定され
た時間間隔で順次生成し、モータドライバ19に出力す
る。CPU11は、ブロック回転数設定レジスタ15C
に設定されている、ブロック回転数及び、ブロック回転
時のステップ時間設定テーブル15Dに設定されてい
る、ブロック回転モード時のステップ時間間隔から、次
に出力すべき回転トリガ時刻が設定され、モータドライ
バ制御部15に出力される。
That is, when the block rotation mode is set in the motor driver drive mode setting register 15B, the motor driver control signal generation circuit 15A
In response to one rotation trigger signal 13 from 11, the motor driver control signal groups 38 and 39 having the number of steps set in the block rotation number setting register 15C are set in the step time setting table 15D for block rotation. It is sequentially generated at the specified time intervals and output to the motor driver 19. The CPU 11 controls the block rotation speed setting register 15C.
The rotation trigger time to be output next is set from the block rotation speed and the step time interval in the block rotation mode set in the block rotation step time setting table 15D set in the motor driver. It is output to the control unit 15.

【0042】図3(a),(b)を用いて、本実施の形
態に係る制御装置の動作を説明する。
The operation of the control device according to the present embodiment will be described with reference to FIGS.

【0043】本実施の形態では、CRモータ21が停止
状態から回転を始め、回転速度を加速していき、印刷の
ための定速回転駆動を行った後、回転速度を減速してい
き、最後に停止させる一連のシーケンスに適用した。そ
して、回転速度の遅い状態のうちは、CPU11からの
1つの回転トリガ信号13に対して、モータドライバ制
御信号群38又は39を1ステップずつ変化させるモー
ドを使用し、印刷のためのインク噴射が行われる、回転
速度の速い定速状態では、1つの回転トリガ信号13に
対して、モータドライバ制御信号群38又は39を複数
ステップずつ変化させるモードを使用した。
In the present embodiment, the CR motor 21 starts rotating from a stopped state, accelerates the rotational speed, performs a constant-speed rotation drive for printing, and then reduces the rotational speed. Applied to a sequence of stops. In a state in which the rotation speed is low, a mode in which the motor driver control signal group 38 or 39 is changed by one step in response to one rotation trigger signal 13 from the CPU 11 is used, and ink ejection for printing is performed. In the constant speed state where the rotation speed is high, a mode is used in which the motor driver control signal group 38 or 39 is changed by a plurality of steps for one rotation trigger signal 13.

【0044】まず、初期状態において、CRモータ21
は回転が停止している状態にあるものとする。
First, in the initial state, the CR motor 21
Means that the rotation is stopped.

【0045】ここで、CRモータ21の回転を開始させ
る制御を始める前に、CPU11は図3(a)に示す
(S1)の処理を行う。即ち、CPU11はモータドラ
イバ駆動モ一ド設定レジスタ15Bに内部レジスタ設定
用の信号16を発し、モータドライバ駆動モ一ド設定レ
ジスタ15Bを、CPU11からの1つの回転トリガ信
号13に対して、モータドライバ制御信号群38,39
の状態を1ステップだけ変化させる信号がモータドライ
バ制御信号生成回路15Aから出力されるモードに設定
する。また、CPUタイマ12には、CRモータ21の
回転前のモータ制御状態J0(図3(a)参照)を保持
する時間T0を入れ、CPUタイマ12のカウンタをス
タートする。
Here, before starting the control for starting the rotation of the CR motor 21, the CPU 11 performs the processing of (S1) shown in FIG. That is, the CPU 11 issues a signal 16 for setting an internal register to the motor driver drive mode setting register 15B, and outputs the motor driver drive mode setting register 15B to the motor driver in response to one rotation trigger signal 13 from the CPU 11. Control signal group 38, 39
Is set to a mode in which a signal for changing the state of the above by one step is output from the motor driver control signal generation circuit 15A. Further, the CPU timer 12 is provided with a time T0 for maintaining the motor control state J0 (see FIG. 3A) before the rotation of the CR motor 21 and starts the counter of the CPU timer 12.

【0046】この(S1)処理により、モータドライバ
制御信号群38,39の状態はJ0状態となり、図3
(a)に示すように、CPUタイマ12のカウントアッ
プ時間T0までJ0状態を保持する。CPUタイマ12
のカウントアップによって回転トリガ信号13aがモー
タドライバ制御信号生成回路15Aに入力され、この回
転トリガ信号13aを受けてモータドライバ制御信号生
成回路15Aは、図3(a)に示すように、1ステップ
だけ変化してJ1状態となったモータドライバ制御信号
群38,39を生成してモータドライバ19に供給し、
モータドライバ19はこのJ1状態の信号に応じてCR
モータ21を回転駆動する。また、CPUタイマ12の
カウントアップにより、CPU11は図3(a)に示す
(S2)の処理を行う。即ち、CPU11は、モータ制
御状態J1を保持する時間T1をCPUタイマ12に入
れ、CPUタイマ12のカウンタをスタートする。
By the (S1) processing, the state of the motor driver control signal groups 38 and 39 becomes the J0 state, and FIG.
As shown in (a), the J0 state is held until the count-up time T0 of the CPU timer 12. CPU timer 12
As a result, the rotation trigger signal 13a is input to the motor driver control signal generation circuit 15A, and upon receiving the rotation trigger signal 13a, the motor driver control signal generation circuit 15A performs only one step as shown in FIG. The motor driver control signal groups 38 and 39 changed to the J1 state are generated and supplied to the motor driver 19,
The motor driver 19 responds to this J1 state signal by
The motor 21 is driven to rotate. In addition, the CPU 11 performs the process of (S2) shown in FIG. That is, the CPU 11 enters the time T1 for holding the motor control state J1 into the CPU timer 12, and starts the counter of the CPU timer 12.

【0047】この(S2)処理により、T1時間後、C
PUタイマ12はカウントアップし、回転トリガ信号1
3bがモータドライバ制御信号生成回路15Aに入力さ
れ、この回転トリガ信号13bを受けてモータドライバ
制御信号生成回路15Aは、図3(a)に示すように、
更に1ステップだけ変化してJ2状態となったモータド
ライバ制御信号群38,39を生成してモータドライバ
19に供給し、モータドライバ19はこのJ2状態の信
号に応じてCRモータ21を回転駆動する。また、CP
U11は、モータ制御状態J2を保持する時間T2をC
PUタイマ12に入れ、CPUタイマ12のカウンタを
スタートする。
By this (S2) processing, after T1 time, C
The PU timer 12 counts up and the rotation trigger signal 1
3b is input to the motor driver control signal generation circuit 15A, and the motor driver control signal generation circuit 15A receives the rotation trigger signal 13b, as shown in FIG.
Further, a group of motor driver control signals 38 and 39 changed by one step into the J2 state are generated and supplied to the motor driver 19, and the motor driver 19 rotates the CR motor 21 according to the signal in the J2 state. . Also, CP
U11 sets the time T2 for holding the motor control state J2 to C
It enters the PU timer 12 and starts the counter of the CPU timer 12.

【0048】以後、CRモータ21が所定のモータ制御
状態Jn(図3(b)参照)に達するまで、以上の制御
動作を繰り返し、CPU11から順次、出力される回転
トリガ信号13に対し、モータドライバ制御信号群3
8,39の状態を1ステップずつ進めることにより、C
Rモータ21を回転駆動する。この時、CPU11から
回転トリガ信号13が出力される間隔を次第に短くして
いくことによって、モータドライバ制御信号群38,3
9のステップ間隔が短くなり、CRモータ21の回転速
度が速くなっていく。
Thereafter, the above control operation is repeated until the CR motor 21 reaches a predetermined motor control state Jn (see FIG. 3B). Control signal group 3
By advancing the states of 8, 39 one by one, C
The R motor 21 is driven to rotate. At this time, by gradually shortening the interval at which the rotation trigger signal 13 is output from the CPU 11, the motor driver control signal groups 38, 3
9, the step interval becomes shorter, and the rotational speed of the CR motor 21 becomes faster.

【0049】このようにCRモータ21の回転を加速し
て、CRモータ21の回転速度が所定の速度に達したと
ころで、モータドライバ駆動モ一ド設定レジスタ15B
がブロック回転モードに設定される。このブロック回転
モードに変更する所定の速度は、ROM25内の制御プ
ログラムとして予め設定しておけば良い。
When the rotation of the CR motor 21 is accelerated as described above and the rotation speed of the CR motor 21 reaches a predetermined speed, the motor driver drive mode setting register 15B
Is set to the block rotation mode. The predetermined speed for changing to the block rotation mode may be set in advance as a control program in the ROM 25.

【0050】即ち、上記モータ制御状態Jnに達する
と、CPU11は図3(b)に示す(S3)の処理を行
う。まず、CPU11は、内部レジスタ設定用の信号1
6をモータドライバ駆動モ一ド設定レジスタ15B、ブ
ロック回転数設定レジスタ15C及びステップ時間設定
テーブル15Dに発する。この内部レジスタ設定用の信
号16を受けて、モータドライバ駆動モ一ド設定レジス
タ15Bは、CPU11からの1つの回転トリガ信号1
3に対して複数ステップの制御信号変化をモータドライ
バ制御信号生成回路15Aから出力するモードに設定さ
れる。また、ブロック回転数設定レジスタ15Cには、
ステップ数nの値として、例えば、4が設定される。更
に、各ステップの保持時間(Jn+1状態保持時間、J
n+2状態保持時間、Jn+3状態保持時間)がそれぞ
れブロック回転時のステップ時間設定テーブル15Dに
設定される。尚、Jn+4状態の保持時間は、S4処理
で設定されるCPUタイマ12への設定時間によって決
まってくる。
That is, when the motor control state Jn is reached, the CPU 11 performs the processing of (S3) shown in FIG. 3B. First, the CPU 11 outputs the signal 1 for setting the internal register.
6 is issued to the motor driver drive mode setting register 15B, the block rotation speed setting register 15C, and the step time setting table 15D. In response to the internal register setting signal 16, the motor driver drive mode setting register 15 B receives one rotation trigger signal 1 from the CPU 11.
3 is set to a mode in which a control signal change in a plurality of steps is output from the motor driver control signal generation circuit 15A. In addition, the block rotation number setting register 15C includes:
For example, 4 is set as the value of the number of steps n. Furthermore, the holding time of each step (Jn + 1 state holding time, J
(n + 2 state holding time, Jn + 3 state holding time) are set in the block rotation step time setting table 15D. The holding time of the Jn + 4 state is determined by the time set in the CPU timer 12 set in the S4 process.

【0051】CPU11は、図3(b)において、実際
に複数ステップ変化の動作モードに入るTn+1期間の
1つ前のTn期間に(S3)処理を実行し、Tn+1が
開始される先頭の回転トリガ信号13eに同期して、モ
ータドライバ駆動モ一ド設定レジスタ15B、ブロック
回転数設定レジスタ15C、ステップ時間設定テーブル
15Dの各状態をモータドライバ制御信号生成回路15
Aに取り込み、図3(b)に示すように、1つの回転ト
リガ信号13eに対して、モータドライバ制御信号群3
8及び39を4回変化させる動作が開始される。
In FIG. 3B, the CPU 11 executes the process (S3) in the Tn period immediately before the Tn + 1 period that actually enters the operation mode in which a plurality of steps are changed, and the first rotation trigger at which Tn + 1 is started. The respective states of the motor driver drive mode setting register 15B, the block rotation speed setting register 15C, and the step time setting table 15D are synchronized with the signal 13e.
A, and as shown in FIG. 3 (b), the motor driver control signal group 3
The operation of changing 8 and 39 four times is started.

【0052】モータドライバ制御信号生成回路15A
は、回転トリガ信号13eに同期して取り込んだ各種設
定状態をもとに、モータドライバ制御信号群38及び3
9を、各ステップの保持時間後、図3(b)に示すよう
に、Jn+2,Jn+3,Jn+4へと変化させる。J
n+4状態からJn+5状態ヘは、次の回転トリガ信号
13fが入力されることによって変化する。従って、T
n+1期間の最初で行われるS4処理では、CPUタイ
マ12にTn+1時間を設定することとなる。
Motor driver control signal generation circuit 15A
Are based on various setting states taken in synchronization with the rotation trigger signal 13e.
9 is changed to Jn + 2, Jn + 3, and Jn + 4 after the holding time of each step, as shown in FIG. J
The state changes from the n + 4 state to the Jn + 5 state when the next rotation trigger signal 13f is input. Therefore, T
In the S4 process performed at the beginning of the n + 1 period, the CPU timer 12 is set to Tn + 1 time.

【0053】ここで、CPU11が行うS4処理を説明
すると、CPUタイマ12にTn+1時間(Jn+1状
態保持時間+Jn+2状態保持時間+Jn+3状態保持
時間+Jn+4状態保持時間)を入れる。次のTn+2
期間での各ステップの保持時間を、それぞれ各ステップ
時間設定テーブル15Dに設定する(Jn+5状態保持
時間、Jn+6状態保持時間、Jn+7状態保持時間、
Jn+8状態保持時間は、後述するS5処理で設定され
るCPUタイマ12への設定時間によって決まってく
る。
Here, the S4 process performed by the CPU 11 will be described. Tn + 1 time (Jn + 1 state holding time + Jn + 2 state holding time + Jn + 3 state holding time + Jn + 4 state holding time) is input to the CPU timer 12. Next Tn + 2
The holding time of each step in the period is set in each step time setting table 15D (Jn + 5 state holding time, Jn + 6 state holding time, Jn + 7 state holding time,
The Jn + 8 state holding time is determined by the time set in the CPU timer 12 set in S5 processing described later.

【0054】続いて、Tn+1時間後の、CPUタイマ
12のタイムアップによって入力される回転トリガ信号
13fによって、モータドライバ制御信号群38及び3
9の状態は、Jn+5状態となり、CPU11はS5処
理を行う。
Subsequently, the motor driver control signal groups 38 and 3 are supplied by the rotation trigger signal 13f input by the time-up of the CPU timer 12 after Tn + 1 time.
The state of 9 becomes the Jn + 5 state, and the CPU 11 performs the S5 process.

【0055】ここで、CPU11が行うS5処理を説明
すると、CPUタイマ12にTn+2時間(Jn+5状
態保持時間+Jn+6状態保持時間+Jn+7状態保持
時間+Jn十8状態保時時間)を入れる。次のTn+3
期間(図示せず)での各ステップの保持時間を、それぞ
れ各ステップ時間設定テーブル15Dに設定する。
Here, the S5 process performed by the CPU 11 will be described. Tn + 2 time (Jn + 5 state holding time + Jn + 6 state holding time + Jn + 7 state holding time + Jn eighteen state holding time) is input to the CPU timer 12. Next Tn + 3
The retention time of each step in a period (not shown) is set in each step time setting table 15D.

【0056】この後、同様の動作を繰り返すことによ
り、1つの回転トリガ信号13に対し、モータドライバ
制御信号群38及び39の4回の変化が発生するよう
に、CRモータ21の回転制御が行われる。
Thereafter, by repeating the same operation, the rotation of the CR motor 21 is controlled so that the motor driver control signals 38 and 39 change four times for one rotation trigger signal 13. Will be

【0057】このように、モータドライバ制御信号群3
8及び39の変化4ステップ分の時間をCPUタイマ1
2に与えることとなり、従来に対して4倍の精度でCR
モータ21の回転速度を調整することが可能となる。ま
た、CPU11からモータドライバ制御信号群38及び
39の状態を変化させるためにCPU11が呼び出され
る割合は、制御信号群38及び39の状態の変化速度が
同じとして、従来の1/4となるので、他のデータ処理
に割り当てる時間が増えることから、本実施の形態の制
御装置が適用されたプリンタによるトータルとしての印
刷速度の向上、スループットの短縮を図ることができ
る。
As described above, the motor driver control signal group 3
The CPU timer 1 sets the time corresponding to 4 steps of changes in 8 and 39.
2 which is 4 times higher than the conventional CR
The rotation speed of the motor 21 can be adjusted. Further, the rate at which the CPU 11 is called to change the state of the motor driver control signal groups 38 and 39 from the CPU 11 is 1/4 of the conventional rate, assuming that the change speed of the state of the control signal groups 38 and 39 is the same. Since the time allocated to other data processing increases, it is possible to improve the total printing speed and shorten the throughput by the printer to which the control device of the present embodiment is applied.

【0058】さて、CRモータ21を定速回転させて行
う印刷動作が終了し、CRモータ21の回転速度が減速
に入り、所定の速度まで減速されると、CRモータ21
の回転制御は、CPU11からの回転トリガ信号13に
同期して上述したブロック回転モードから抜け出し、C
PU11からの1つの回転トリガ信号13に対して、モ
ータドライバ制御信号群38又は39を1ステップずつ
進めるモードに戻る。尚、このブロック回転モードから
抜け出す所定の速度も、ROM25内の制御プログラム
として予め設定しておくことが可能である。そして、C
PU11から回転トリガ信号13が出力される間隔を次
第に長くしていくことによって、モータドライバ制御信
号群38,39のステップ間隔が長くなり、CRモータ
21の回転速度が減速されていき、最後に停止される。
When the printing operation performed by rotating the CR motor 21 at a constant speed is completed, the rotation speed of the CR motor 21 starts to decrease, and when the rotation speed is reduced to a predetermined speed, the CR motor 21
The rotation control of the control exits from the block rotation mode described above in synchronization with the rotation trigger signal 13 from the CPU 11,
The mode returns to the mode in which the motor driver control signal group 38 or 39 is advanced by one step in response to one rotation trigger signal 13 from the PU 11. The predetermined speed for exiting from the block rotation mode can also be set in advance as a control program in the ROM 25. And C
By gradually increasing the interval at which the rotation trigger signal 13 is output from the PU 11, the step interval of the motor driver control signal groups 38 and 39 is increased, and the rotation speed of the CR motor 21 is reduced, and finally stopped. Is done.

【0059】以上のように、本実施の形態では、回転速
度の遅い状態では、CPU11からの1つの回転トリガ
信号13に対して、モータドライバ制御信号群38又は
39を1ステップずつ変化させるモードを選択し、印刷
のためのインク噴射が行われる、回転速度の速い定速状
態では、1つの回転トリガ信号13に対して、モータド
ライバ制御信号群38又は39を複数ステップずつ変化
させるモードを選択することができる。従って、回転速
度の遅い状態では、CPUが1ステップ変化毎にCRモ
ータ21の回転制御を管理できるので、フレキシブルな
モータ制御が可能となる。一方、回転速度の速い状態で
は、従来のCPUタイマによる精度に対して4倍の精度
でCRモータ21の回転速度を調整することができるの
で、印字品質を向上させ得る。また、CPU11が呼び
出される割合が従来の1/4となるので、他のデータ処
理に割り当てる時間が増え、印刷速度の向上、スループ
ットの短縮を図ることができる。
As described above, in the present embodiment, in a state where the rotation speed is low, the mode in which the motor driver control signal group 38 or 39 is changed by one step in response to one rotation trigger signal 13 from the CPU 11 is set. In the constant speed state where the rotation speed is high and ink jetting for printing is performed, a mode in which the motor driver control signal group 38 or 39 is changed by a plurality of steps for one rotation trigger signal 13 is selected. be able to. Accordingly, in a state where the rotation speed is low, the CPU can manage the rotation control of the CR motor 21 for each step change, so that flexible motor control becomes possible. On the other hand, when the rotation speed is high, the rotation speed of the CR motor 21 can be adjusted with an accuracy four times higher than the accuracy of the conventional CPU timer, so that the printing quality can be improved. Further, since the ratio at which the CPU 11 is called is 1/4 of the conventional rate, the time allocated to other data processing is increased, so that the printing speed can be improved and the throughput can be reduced.

【0060】図4に本実施の形態の制御装置による制御
手順をフローチャートにして示す。
FIG. 4 is a flowchart showing a control procedure by the control device according to the present embodiment.

【0061】まず、CPUタイマ12がスタートし(S
101)、モード設定を変更するか否かが判断される
(S102)。モード設定を変更する場合には、モード
変更がなされる(S103)。ここで、モード変更と
は、設定自動発生ステップ数の変更等を意味する。即
ち、このモード変更により、設定自動発生ステップ数
を、1ステップから複数ステップに変更すること、即
ち、単数ステップ変化の回転モードから複数ステップ変
化(ブロック回転)の回転モードへの変更のみならず、
複数ステップから複数ステップに変更すること、即ち、
例えば、上述した4ステップ変化のモードから8又は1
6ステップ変化のモード等への変更が可能である。そし
て、この第N制御状態(N=1)が確定され(S10
4)、CPUタイマ12がカウントアップすると(S1
05)、このカウントアップの信号を受けて回転トリガ
信号13が発生する(S106)。図3(b)に関連し
て述べたように、CPU11は、回転トリガ信号13に
同期して、モータドライバ駆動モ一ド設定レジスタ15
B、ブロック回転数設定レジスタ15C、ステップ時間
設定テーブル15Dの各状態をモータドライバ制御信号
生成回路15Aに取り込み、この取り込みにより、単数
ステップ変化の回転モードから複数ステップ変化(ブロ
ック回転)の回転モードへのモード変更状態が有効とな
る。続いて、この回転トリガ信号13を供給されたモー
タドライバ制御信号生成回路15Aは、第1制御状態の
モータドライバ制御信号群38及び39を出力する(S
107)。そして、Nが設定自動発生ステップ数より小
さいうちは(S108)、続いて、第N状態の設定保持
時間が経過したか否かが判断され(S109)、そうで
ある場合には第N制御状態のモータドライバ制御信号群
38及び39が出力され(S110)、N=N+1とし
てS108に戻り、同様の判断がなされる。S108に
おいて、Nが設定自動発生ステップ数より小さくない場
合(S108)、S102に戻り、モード設定を変更す
るか否かが再び判断される。
First, the CPU timer 12 starts (S
101), it is determined whether to change the mode setting (S102). When changing the mode setting, the mode is changed (S103). Here, the mode change means, for example, a change in the number of set automatic generation steps. That is, by changing the mode, the number of set automatic generation steps is changed from one step to a plurality of steps, that is, not only from a single-step change rotation mode to a multi-step change (block rotation) rotation mode,
Changing from multiple steps to multiple steps, ie
For example, from the four-step change mode described above, 8 or 1
It is possible to change to a 6-step change mode or the like. Then, the N-th control state (N = 1) is determined (S10).
4) When the CPU timer 12 counts up (S1)
05), the rotation trigger signal 13 is generated in response to the count-up signal (S106). As described with reference to FIG. 3B, the CPU 11 synchronizes with the rotation trigger signal 13 to set the motor driver driving mode setting register 15.
B, the states of the block rotation speed setting register 15C and the step time setting table 15D are fetched into the motor driver control signal generation circuit 15A, and by this fetching, the rotation mode changes from a single step change to a multiple step change (block rotation) rotation mode. Mode change state becomes effective. Subsequently, the motor driver control signal generation circuit 15A supplied with the rotation trigger signal 13 outputs the motor driver control signal groups 38 and 39 in the first control state (S
107). Then, as long as N is smaller than the set automatic generation step number (S108), it is determined whether the set holding time of the N-th state has elapsed (S109), and if so, the N-th control state Are output (S110), the process returns to S108 as N = N + 1, and the same determination is made. If N is not smaller than the set number of automatic generation steps in S108 (S108), the process returns to S102, and it is determined again whether to change the mode setting.

【0062】以上、本発明を特定の実施形態について述
べたが、本発明はこれらに限られるものではなく、特許
請求の範囲に記載された発明の範囲内で、他の実施形態
についても適用される。
As described above, the present invention has been described with respect to specific embodiments. However, the present invention is not limited to these embodiments, and is applicable to other embodiments within the scope of the invention described in the claims. You.

【0063】例えば、上述した実施形態ではCPU内臓
タイマを用いたが、CPUに関連して動作するタイマで
あれば、外部タイマであっても良い。
For example, in the above embodiment, the CPU built-in timer is used, but an external timer may be used as long as it operates in connection with the CPU.

【0064】また、上述した実施形態はプリンタ用キャ
リッジモータの制御について述べたが、本発明は、勿
論、他のプリンタ用モータの制御についても適用可能で
ある。
In the above-described embodiment, the control of the carriage motor for the printer has been described. However, the present invention is of course applicable to the control of other motors for the printer.

【0065】尚、上述した実施形態では、当初1つの回
転トリガ信号に対して1ステップ変化させるモードを採
用し、これを4ステップ変化させるモードに変更した
が、印刷のためのインク噴射が行われる、回転速度の速
い定速状態では、1つの回転トリガ信号に対して8乃至
16ステップ変化させても良い。例えば、2−2相励磁
によりCRモータ21の回転速度を調整する場合では、
8ステップ毎に変化させるモードで充分である。このよ
うに、本発明は、例えば、印字のためのインク噴射が行
われる状況などでは、複数ステップのブロックとして適
合していればCRモータの回転速度の制御は充分である
という視点に基づいてなされたものであり、CRモータ
21の回転速度を調整する状況に応じて、様々なステッ
プ数の変化を用いれば良い。
In the above-described embodiment, the mode in which one rotation trigger signal is changed by one step at the beginning is adopted, and the mode is changed to four steps. However, ink ejection for printing is performed. In a constant speed state where the rotation speed is high, one rotation trigger signal may be changed by 8 to 16 steps. For example, when adjusting the rotation speed of the CR motor 21 by 2-2 phase excitation,
A mode that changes every eight steps is sufficient. As described above, the present invention is made from the viewpoint that the control of the rotation speed of the CR motor is sufficient if it is adapted as a block of a plurality of steps, for example, in a situation where ink ejection for printing is performed. Therefore, various changes in the number of steps may be used depending on the situation where the rotation speed of the CR motor 21 is adjusted.

【0066】更に、上述した実施形態では、モータドラ
イバ制御部15を、モータドライバ制御信号生成回路1
5A、モータドライバ駆動モ一ド設定レジスタ15B、
ブロック回転数設定レジスタ15C、及びブロック回転
時のステップ時間設定テーブル15Dとにより構成した
が、これらに加えて、モータドライバ制御部15内に例
えば、EEPROMを設け、このEEPROMに上述し
た複数ステップの各ステップそれぞれに対応するモータ
制御信号出力状態をプログラムとして書き込んでおく等
することにより、かかるプログラムに従って、予め設定
しておいた各ステップに対応するモータ制御信号状態
が、順次、自動的に出力されるようにしても良い。この
ようにすれば、EEPROMのプログラムを書き換える
ことにより、CPUの性能やモータ制御の目的に応じて
モータドライバの相データを自由に書き換えることもで
きる。
Further, in the above-described embodiment, the motor driver control unit 15 is connected to the motor driver control signal generation circuit 1
5A, a motor driver drive mode setting register 15B,
Although the configuration is made up of the block rotation number setting register 15C and the step time setting table 15D at the time of block rotation, in addition to these, for example, an EEPROM is provided in the motor driver control unit 15, and each of the plurality of steps described above is stored in this EEPROM. By writing the motor control signal output state corresponding to each step as a program, the motor control signal state corresponding to each preset step is automatically output sequentially in accordance with the program. You may do it. In this way, by rewriting the EEPROM program, the phase data of the motor driver can be freely rewritten according to the performance of the CPU and the purpose of motor control.

【0067】[0067]

【発明の効果】以上説明したように、本発明によれば、
CPUからの1つの回転トリガ信号で、少なくともn回
(n≧2)のモータ制御信号変化を可能とするため、C
PUタイマ精度の複数倍の精度で、プリンタ用モ一タの
回転速度を調整することができる。
As described above, according to the present invention,
To enable at least n (n ≧ 2) motor control signal changes with one rotation trigger signal from the CPU,
The rotation speed of the printer motor can be adjusted with a multiple of the accuracy of the PU timer.

【0068】従って、特に、回転速度の速い定速状態
で、印刷のためのインク噴射が行われるため、このイン
ク噴射中のモータ回転速度、即ち、印字へッド移動速度
をCPUタイマ精度の複数倍の精度で調整することがで
き、印字品質を向上することが可能となる。
Accordingly, since the ink jetting for printing is performed particularly in the constant speed state where the rotational speed is high, the motor rotation speed during ink jetting, that is, the print head moving speed is determined by a plurality of times of CPU timer accuracy. The adjustment can be performed with double precision, and the printing quality can be improved.

【0069】また、モータ回転速度が速い状態でのモ一
タ制御のためのCPUの呼出回数が1/nに減少するの
で、CPUによる他のデータ処理に割く時間を増やすこ
とが可能となるので、その分プリンタによる印刷速度を
高速化し得る。
Further, since the number of calls of the CPU for motor control at a high motor rotation speed is reduced to 1 / n, it is possible to increase the time allotted to other data processing by the CPU. The printing speed by the printer can be increased accordingly.

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

【図1】本発明の実施の形態に係るプリンタ用モータの
制御装置をシリアルプリンタのCRモータの制御に適用
した構成を示す図である。
FIG. 1 is a diagram showing a configuration in which a printer motor control device according to an embodiment of the present invention is applied to control a CR motor of a serial printer.

【図2】本発明の実施の形態に係るプリンタ用モータの
制御装置の構成を示す図である。
FIG. 2 is a diagram showing a configuration of a printer motor control device according to an embodiment of the present invention.

【図3】本実施の形態に係るプリンタ用モータの制御装
置の動作を説明するためのタイミングチャートである。
FIG. 3 is a timing chart for explaining the operation of the printer motor control device according to the embodiment.

【図4】本実施の形態の制御装置による制御手順を示す
フローチャートである。
FIG. 4 is a flowchart illustrating a control procedure performed by the control device according to the present embodiment.

【図5】従来のプリンタ用モータの制御方式を説明する
ための図である。
FIG. 5 is a diagram for explaining a control method of a conventional printer motor.

【図6】タイミングチャートを用いて、従来のプリンタ
用モータの制御方式を説明するための図である。
FIG. 6 is a diagram for explaining a conventional printer motor control method using a timing chart.

【図7】従来のプリンタ用モータの制御方式における問
題点を説明するためにインク噴射ノズルの概略構造を示
す図である。
FIG. 7 is a diagram showing a schematic structure of an ink jet nozzle for explaining a problem in a conventional control method of a printer motor.

【図8】従来のプリンタ用モータの制御方式における、
カラーアジャストの問題点を説明するための図である。
FIG. 8 illustrates a conventional printer motor control method.
FIG. 4 is a diagram for explaining a problem of color adjustment.

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

11 CPU 12 CPUタイマ 13a〜13f 回転トリガ信号 15 モータドライバ制御部 15A モータドライバ制御信号生成回路 15B モータドライバ駆動モ一ド設定レ
ジスタ 15C ブロック回転数設定レジスタ 15D ブロック回転時のステップ時間設
定テーブル 17 モータドライバ制御信号 19 モータドライバ 21 キャリッジ(CR)モータ 22 第1の発信回路 23 クロック 25 ROM 27 RAM 33 A相電流 34 B相電流 38 A相電流制御信号群 39 B相電流制御信号群 40 第2の発振回路 42 クロック
Reference Signs List 11 CPU 12 CPU timer 13a to 13f Rotation trigger signal 15 Motor driver control unit 15A Motor driver control signal generation circuit 15B Motor driver drive mode setting register 15C Block rotation speed setting register 15D Step time setting table for block rotation 17 Motor driver Control signal 19 Motor driver 21 Carriage (CR) motor 22 First transmission circuit 23 Clock 25 ROM 27 RAM 33 A-phase current 34 B-phase current 38 A-phase current control signal group 39 B-phase current control signal group 40 Second oscillation Circuit 42 clock

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 CPUに関連して発生する回転トリガ信
号を参照して発せられるモータ制御信号によりモータの
回転を制御するプリンタ用モータの制御装置において、 1つの前記回転トリガ信号に対して前記モータ制御信号
を順次、少なくともn(nは、n≧2の整数)ステップ
変化させる手段を有することを特徴とするプリンタ用モ
ータの制御装置。
1. A control device for a printer motor for controlling rotation of a motor by a motor control signal generated by referring to a rotation trigger signal generated in relation to a CPU, wherein the motor is controlled in response to one rotation trigger signal. A controller for a printer motor, comprising means for sequentially changing the control signal by at least n (n is an integer of n ≧ 2) steps.
【請求項2】 請求項1記載のプリンタ用モータの制御
装置において、 更に、前記nステップの各ステップ時間を設定する手段
と、 前記1つの回転トリガ信号に対して前記モータ制御信号
を変化させるステップ数nの値を設定する手段とを有す
ることを特徴とするプリンタ用モータの制御装置。
2. The controller for a printer motor according to claim 1, further comprising: means for setting each step time of the n steps; and changing the motor control signal with respect to the one rotation trigger signal. Means for setting the value of the number n.
【請求項3】 請求項1及び2記載のプリンタ用モータ
の制御装置において、 更に、前記1つの回転トリガ信号に対して前記モータ制
御信号を変化させるステップ数nの値を変更する手段を
有することを特徴とするプリンタ用モータの制御装置。
3. The controller for a printer motor according to claim 1, further comprising means for changing a value of the number n of steps for changing the motor control signal with respect to the one rotation trigger signal. A controller for a printer motor.
【請求項4】 請求項1〜3記載のプリンタ用モータの
制御装置において、 更に、前記nステップの各ステップそれぞれに対応する
モータ制御状態をあらかじめ設定する手段を有すること
を特徴とするプリンタ用モータの制御装置。
4. The printer motor control device according to claim 1, further comprising means for presetting a motor control state corresponding to each of said n steps. Control device.
【請求項5】 請求項1〜4記載のプリンタ用モータの
制御装置において、 前記プリンタ用モータは、キャリッジモータであること
を特徴とするプリンタ用モータの制御装置。
5. The printer motor control device according to claim 1, wherein said printer motor is a carriage motor.
【請求項6】 請求項3〜5記載のプリンタ用モータの
制御装置において、 前記nステップの変化は、キャリッジの定速駆動中に行
われることを特徴とするプリンタ用モータの制御装置。
6. The printer motor control device according to claim 3, wherein the change of n steps is performed during a constant speed drive of the carriage.
【請求項7】 請求項3〜6記載のプリンタ用モータの
制御装置において、 前記nの値をキャリッジの移動速度に応じて変更するこ
とを特徴とするプリンタ用モータの制御装置。
7. The control device for a printer motor according to claim 3, wherein the value of n is changed according to the moving speed of the carriage.
【請求項8】 請求項1〜7記載のプリンタ用モータの
制御装置において、 前記回転トリガ信号は、CPUに関連して動作するタイ
マのカウントアップにより発生することを特徴とするプ
リンタ用モータの制御装置。
8. A control device for a printer motor according to claim 1, wherein said rotation trigger signal is generated by counting up a timer operating in connection with a CPU. apparatus.
【請求項9】 CPUに関連して発生する1つの回転ト
リガ信号に対してモータ制御信号をn(nは、n≧1の
整数)ステップ変化させるモードを複数有することによ
りモータの回転を制御するプリンタ用モータの制御装置
において、 前記複数のモードを任意に切り換える切り換え手段を有
することを特徴とするプリンタ用モータの制御装置。
9. The motor rotation is controlled by providing a plurality of modes for changing the motor control signal by n (n is an integer of n ≧ 1) steps in response to one rotation trigger signal generated in relation to the CPU. A controller for a printer motor, comprising: a switching unit for arbitrarily switching the plurality of modes.
【請求項10】 CPUに関連して回転トリガ信号を発
生し、該回転トリガ信号を参照してモータ制御信号を発
してモータの回転を制御するプリンタ用モータの制御方
法において、 1つの前記回転トリガ信号に対して前記モータ制御信号
を順次、少なくともn(nは、n≧2の整数)ステップ
変化させることを特徴とするプリンタ用モータの制御方
法。
10. A printer motor control method for generating a rotation trigger signal in relation to a CPU and generating a motor control signal with reference to the rotation trigger signal to control the rotation of the motor. A method for controlling a motor for a printer, wherein the motor control signal is sequentially changed by at least n (n is an integer of n ≧ 2) steps with respect to the signal.
JP13010597A 1997-05-20 1997-05-20 Controller and control method for printer motor Withdrawn JPH10323089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13010597A JPH10323089A (en) 1997-05-20 1997-05-20 Controller and control method for printer motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13010597A JPH10323089A (en) 1997-05-20 1997-05-20 Controller and control method for printer motor

Publications (1)

Publication Number Publication Date
JPH10323089A true JPH10323089A (en) 1998-12-04

Family

ID=15026078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13010597A Withdrawn JPH10323089A (en) 1997-05-20 1997-05-20 Controller and control method for printer motor

Country Status (1)

Country Link
JP (1) JPH10323089A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012115565A (en) * 2010-12-02 2012-06-21 Le Tekku:Kk Reel control circuit for reel type game machine and game machine control chip having the same
CN105932914A (en) * 2016-06-26 2016-09-07 高玉琴 Control device for revolving table

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012115565A (en) * 2010-12-02 2012-06-21 Le Tekku:Kk Reel control circuit for reel type game machine and game machine control chip having the same
CN105932914A (en) * 2016-06-26 2016-09-07 高玉琴 Control device for revolving table

Similar Documents

Publication Publication Date Title
JPS6311375A (en) Method for controlling carriage of printer
US4232975A (en) Print hammer control
US4506201A (en) Microprocessor controlled pulse motor
US3644812A (en) Web feed apparatus with stepping motor drive
US4693618A (en) Dot matrix printer providing multiple print pulses for one energization of a printing head stepping motor
JPH10323089A (en) Controller and control method for printer motor
JPS61150699A (en) Step motor controller
KR960005692B1 (en) Drive controller and drive control method for a stepping motor without a step out error
JPS6135980A (en) Paper feed control apparatus of dot printer
US6000869A (en) Technique for controlling the position of a driving motor and a print head
JPS6047116B2 (en) Pulse motor control device
EP0257473A2 (en) A method of controlling a step motor
JPH0515197A (en) Drive control method for step motor
GB2105871A (en) Speed control device for a stepping motor
JPS58102779A (en) Control system of printing of emphatic character
US10511241B2 (en) Motor control device and printer
US4863295A (en) Printer platen motor controller
JP2001327191A (en) Drive mechanism controlling device, method for controlling drive mechanism, and its record medium
JPH08252955A (en) Printer and controlling method therefor
JP2576179B2 (en) Stepping motor control device
JPS60242081A (en) Type selection control system
JP2002052775A (en) Printing controller for dot line printer
JP2740693B2 (en) Spacing control method for color serial printer
JPH0767314B2 (en) Drive control method for stepping motor
JPH07170794A (en) Control method for stepping motor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040803