JPS60183997A - Drive controller for stepping motor - Google Patents

Drive controller for stepping motor

Info

Publication number
JPS60183997A
JPS60183997A JP3754284A JP3754284A JPS60183997A JP S60183997 A JPS60183997 A JP S60183997A JP 3754284 A JP3754284 A JP 3754284A JP 3754284 A JP3754284 A JP 3754284A JP S60183997 A JPS60183997 A JP S60183997A
Authority
JP
Japan
Prior art keywords
stepping motor
data
speed
acceleration
deceleration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3754284A
Other languages
Japanese (ja)
Inventor
Kousaku Tsugita
継田 孝作
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 Corp
Original Assignee
Toshiba 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 Corp filed Critical Toshiba Corp
Priority to JP3754284A priority Critical patent/JPS60183997A/en
Publication of JPS60183997A publication Critical patent/JPS60183997A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/14Arrangements for controlling speed or speed and torque

Landscapes

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

Abstract

PURPOSE:To reduce the capacity of a memory of generating respective speed modes by one types of accelerating and decelerating data, thereby largely decreasing the accelerating and decelerating data for suppressing a vibration. CONSTITUTION:Accelerating and decelerating data, and speed mode data are stored in advance in a memory 12, thereby suppressing the vibration when a motor 11 is accelerated or decelerated to prevent a variation in the speed from occurring at the constant speed time and stopping state time. Further, a basic clock pulse (b) varying in the period is supplied from a counter CTR1 to a counter CTR2 in response to the speed mode. The counter CTR2 counts the pulse (b) in response to the data to switch the exciting phase of the motor 11 to supply the pulse signal (d) of varying period for deciding the exciting phase switching timing to a CPU10.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、例えばゾリンタに使用されるステノビングモ
〜り□駆動制御装置F2に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a stenobing motor drive control device F2 used, for example, in Zolinta.

〔発明の技やI;1的背景とその問題点〕一般的に、シ
リアルドットプリンタ等のキャリ、ジ用1嚇動蔚にはス
テッピングモータが用いられている。キャリッジには印
字ヘッドが搭載されており、ステッピングモータにより
キャリッジが往復移動することで印字ヘッドによる印字
動作が行なわれる。
[Techniques of the Invention: 1. Background and Problems] In general, stepping motors are used for the carriage and movement of serial dot printers and the like. A print head is mounted on the carriage, and as the carriage is moved back and forth by a stepping motor, the print head performs a printing operation.

ところで、上記のキャリッジ駆動用ステッピングモータ
を駆動制御する場合、加速、定速及び減速の各速度状態
毎にコントロールする必要がある。しかしながら、例え
ば加速して定速状態になった場合、ステッピングモータ
固有の振動により一定の時間、速度変動である振動状態
が発生するのが一般的である。この振動状態で、印字動
作が行なわれると、文字の印字幅が不定になるなど印字
品質が低下する問題がある。捷だ、減速した後停止状態
に到達した場合、上記のような振動状態が発生している
と、このj1□に動が収まるまで待機することになる。
By the way, when controlling the drive of the stepping motor for driving the carriage, it is necessary to control each speed state of acceleration, constant speed, and deceleration. However, for example, when the stepping motor is accelerated to a constant speed state, vibrations inherent to the stepping motor generally cause a vibration state in which the speed fluctuates for a certain period of time. If a printing operation is performed in this vibrating state, there is a problem that printing quality deteriorates, such as the printing width of characters becoming unstable. If the vehicle reaches a stop state after decelerating, and the vibration state described above occurs, the vehicle will wait until the motion stops at j1□.

このため、次の印字動作の開始が遅れることになり、印
字実行速度が低下することになる。
Therefore, the start of the next printing operation is delayed, and the printing execution speed is reduced.

このような問題点を解決するために、従来では加速、減
速時のステッピングモータの励磁相の切換え周期を可変
する方式が用いられている。
In order to solve such problems, conventionally, a method has been used in which the switching period of the excitation phase of the stepping motor during acceleration and deceleration is varied.

具体的には、加速時での励磁相の切換え周期を等加速状
態での理論上の周期より変化させて、定速状態に到達し
た際に振動が発生しない様にステ、ピングモータの加速
度をコントロールする。また、減速時から停止状態に移
行する場合モ、同様にステッピングモータの加速度をコ
ントロールする。しかしながら、通常プリンタでは、文
字のドツト構成、縮小文字及び拡大文字組の印字内容に
応じてステッピングモータの速度モードは10数種にも
なる。このため、上記のような従来の方式では、各速度
モードに対応して振動抑制用の加速、減速データ即ち加
減速時の励磁相の切換え周期データが必要となり、これ
らのデータを格納するためのメモリ容量は膨大になる欠
点があった。
Specifically, the switching period of the excitation phase during acceleration is changed from the theoretical period under uniform acceleration conditions, and the acceleration of the stepping motor and pin motor is adjusted so that vibration does not occur when a constant speed condition is reached. control. Furthermore, when transitioning from deceleration to stop, the acceleration of the stepping motor is similarly controlled. However, in a normal printer, there are more than ten speed modes of the stepping motor depending on the dot structure of the characters and the printed contents of reduced and enlarged character sets. Therefore, in the conventional method described above, acceleration and deceleration data for vibration suppression, that is, excitation phase switching cycle data during acceleration and deceleration, are required for each speed mode. The drawback was that the memory capacity was enormous.

〔発明の目的〕[Purpose of the invention]

本発明は上記の事情に鑑みてなされたもので、その目的
は、振動抑制用の加速、減速データを大幅に減少してメ
モリの容量を減少でき、しかも定速時及び停止時の速度
変動である振動の発生を大幅に防止してステッピングモ
ータを確実で安定に駆動できるステッピングモータ駆動
制御装置を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to significantly reduce acceleration and deceleration data for vibration suppression, thereby reducing memory capacity, and to reduce speed fluctuations at constant speed and when stopped. An object of the present invention is to provide a stepping motor drive control device that can drive a stepping motor reliably and stably by greatly preventing the occurrence of certain vibrations.

〔発明の概要〕[Summary of the invention]

本発明では、ステッピングモータの加速、減速データに
相当する所定の加減速カウント数値データ及び速度モー
ドに対応する速度カウント数値データを予め記憶するメ
モリ手段が設けられる。制御手段は、ステッピングモー
タの速度モードに応じた上記速度カウント数値データを
第1のカウント手段にグリセットする。第1のカウント
手段は、設定された速度カウント数値データに基づいた
周期の基本クロック信号を発生する。第2のカウント手
段は、制御手段によシ設定される加減速カウント数11
6.データに応じて上記基本クロック信号をカウントし
て、ステッピングモータの加速、減速の各駆動状態に応
じた周期のパルス信号を発生する。
In the present invention, a memory means is provided for storing in advance predetermined acceleration/deceleration count numerical data corresponding to acceleration and deceleration data of the stepping motor and speed count numerical data corresponding to the speed mode. The control means sets the speed count numerical data according to the speed mode of the stepping motor in the first counting means. The first counting means generates a basic clock signal having a period based on set speed count numerical data. The second counting means has an acceleration/deceleration count number of 11 set by the control means.
6. The basic clock signal is counted according to the data, and a pulse signal having a period corresponding to each drive state of acceleration and deceleration of the stepping motor is generated.

このパルス信号に基づいて、生成手段にニスチッピング
モータの駆動を決定する励磁相データを生成して、ステ
ッピングモータの駆動手段に供給する。
Based on this pulse signal, the generating means generates excitation phase data that determines the driving of the varnish chipping motor, and supplies the generated excitation phase data to the stepping motor driving means.

このような構成により、1種類の加速、減速データ及び
速度モードデータを記憶するだけで、ステ、ピングモー
タを確実で安定に駆動することができる。
With such a configuration, it is possible to reliably and stably drive the steering and ping motors by simply storing one type of acceleration, deceleration data, and speed mode data.

〔発明の実施例〕[Embodiments of the invention]

以下図面を参照して本発明の一実施例を説明する。第1
図は一実施例に係わる装置の構成を示すブロック図であ
る。第1図において、マイクロプロセッサ(以下CPU
と称す)10は、例えばプリンタ全体の動作を制御する
もので、ステッピングモータ(以下単にモータと称す)
11の駆動を決定する励磁相データを生成する。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing the configuration of an apparatus according to an embodiment. In Figure 1, a microprocessor (hereinafter referred to as CPU)
10 is a stepping motor (hereinafter simply referred to as motor) that controls the operation of the entire printer, for example.
Excitation phase data that determines the drive of 11 is generated.

メモリ12は、モータ11の加速、減速データ及び速度
モードに対応する各カウント数値m。
The memory 12 stores acceleration and deceleration data of the motor 11 and each count value m corresponding to the speed mode.

n1fc予め記憶している。n1fc is stored in advance.

プログラマブルカウンタ13は、2個の独立したカウン
タCTRI及びCTR2からな9、各カウンタCTR7
、CTR2はそれぞれCPU Z oにより設定される
カウント数値nonに基づいてカウント動作を行なうよ
うに構成されている。カウンタCTRIは、CP[J 
10によりプリセットされるカウント数値nに応じてC
PU 10から供給される基本クロックツぐルスaをカ
ウントして、このパルスBを分周した出力信号をカウン
タCTR2の基本クロックパルスbとして’iii <
−1;、する。
The programmable counter 13 consists of two independent counters CTRI and CTR29, each counter CTR7.
, CTR2 are each configured to perform a counting operation based on a count value non set by the CPU Z o. Counter CTRI is CP[J
C according to the count value n preset by 10.
The basic clock pulse a supplied from the PU 10 is counted, and the output signal obtained by dividing this pulse B is set as the basic clock pulse b of the counter CTR2.
-1;, do.

カウンタCTR2は、CPU Z oのゲート信号Cに
より動作を開始して、CPU 10によシブリセットさ
れるカウント数値mに応じて上記基本クロックパルスb
をカウントして、所定の周期を有する・ぐルス信号dを
発生してCPU 10に供給する。モータドライノ9ノ
4は、CPUl0から供給される励磁相データに応じた
励rJJ′i電流を発生してモータ1ノを駆動する。
The counter CTR2 starts its operation in response to the gate signal C of the CPU Z o, and receives the basic clock pulse b according to the count value m that is reset by the CPU 10.
is counted, a pulse signal d having a predetermined period is generated and supplied to the CPU 10. The motor driver 9/4 generates an excitation rJJ'i current according to the excitation phase data supplied from the CPU10 to drive the motor 1.

上記のような構成の、駆動制御装置に卦いて、−実Kq
例に係わる動作を説明する。先ず、プリンタの印字コマ
ンドを実行すると、CPU 10 (d。
In addition to the drive control device configured as described above, -actual Kq
The operation related to the example will be explained. First, when a printer print command is executed, the CPU 10 (d.

第21ン]に示すような基本クロックパルスaをカウン
タCTR7に供給する。このとき、CPU 10は印字
1fiJ1作に応じて決定される速度モード(例えば文
字ドツト数により決定されるモータノ1の速度)に対応
するカウント数値nをメモリ12から読出してカウンタ
CTR1にシリセットする。カウンタCTR1は、第2
図に示すようにカウント数値nの値に応じてCPU 1
0から供給でれる基本クロック・ぐルスaを分周した出
力/JルスbiカウンタCTR2に供給する。
A basic clock pulse a as shown in [21st line] is supplied to the counter CTR7. At this time, the CPU 10 reads from the memory 12 a count value n corresponding to the speed mode determined according to the printing 1fiJ1 (for example, the speed of the motor number 1 determined by the number of character dots) and resets it in the counter CTR1. Counter CTR1 is the second
As shown in the figure, CPU 1
The basic clock pulse a supplied from 0 is divided and supplied to the output/J clock bi counter CTR2.

カウンタCTR2は、CPU 1 oから供給されるゲ
ート信号Cによりカウント動作を開始し、カウンタCT
RIから与えられる基本クロックツ、07レスbをカウ
ントする。このとき、CPU 10はモータIIの加速
、減速の各駆動状態に応じたカウント数ll1t’ m
をメモリ12からMC+出してカウンタCTR2にプリ
セットする。これにより、カウンタCTR2は例えば第
3図に示すようなノeルスイr; @ d (カウント
数値mが5の場合)を発生してCPU 10に出力する
。CPU 70は、カウンタCTR2から供給式れるパ
ルス信号dの周期に応じた励磁相データを生成して、モ
ータドライノ々14に供給する。
The counter CTR2 starts counting operation by the gate signal C supplied from the CPU 1o, and the counter CT
Count the basic clocks given by RI, 07resb. At this time, the CPU 10 calculates the count number ll1t' m according to each drive state of acceleration and deceleration of the motor II.
MC+ is taken out from the memory 12 and preset to the counter CTR2. As a result, the counter CTR2 generates, for example, a signal as shown in FIG. 3 (when the count value m is 5) and outputs it to the CPU 10. The CPU 70 generates excitation phase data according to the period of the pulse signal d supplied from the counter CTR2 and supplies it to the motor drinos 14.

ここで、例えばモータ11を加速させる場合を想定する
と、CPU 10はメモリ12からカロ速データに相当
するカウント数値m(第4図のm1〜ms )をカウン
タCTR2にプリセットする。カウンタCTRZは、前
記のように基本クロックツやルスbf、プリセットされ
るカウント数r直m 1 ” m gに応じてカウント
する。これにより、カウンタCTR2から第4図に示す
ようなノjルス信号dが発生して、CPU J Oに供
給される。
Here, assuming that the motor 11 is to be accelerated, for example, the CPU 10 presets a count value m (m1 to ms in FIG. 4) corresponding to Karo speed data from the memory 12 into the counter CTR2. As mentioned above, the counter CTRZ counts according to the basic clock signal, the pulse bf, and the preset count number m1''mg.Thereby, the counter CTR2 generates a pulse signal d as shown in FIG. is generated and supplied to the CPU JO.

CPU 70は、パルス信号dに応じた励磁相データを
生成してモータドライバJ4に供給する。
The CPU 70 generates excitation phase data according to the pulse signal d and supplies it to the motor driver J4.

モータドライバ14は、励磁相データに応じて例えば第
4図に示すようなタイミングでモータ11のA相〜D相
に励磁霜、流を供給する。これにより、モータ1ノはパ
ルス信号dの周期T1〜T7に応じて徐々に加速されて
いく。また、モータ11を減速させる場合には、CPU
 10はメモリ12からイL(速データに相当するカウ
ント数1直mをカウンタCTR2にプリセットする。こ
れにより、カウンタCTRZ it:周期が徐々に増大
する・やルス信号dを発生し、モータノ1は徐々に減速
埒れていく。
The motor driver 14 supplies excitation frost and current to phases A to D of the motor 11 at timings as shown in FIG. 4, for example, in accordance with excitation phase data. As a result, the motor 1 is gradually accelerated according to the cycles T1 to T7 of the pulse signal d. In addition, when decelerating the motor 11, the CPU
10 presets the count number 1 series corresponding to the speed data from the memory 12 into the counter CTR2.As a result, the counter CTRZ it: generates a pulse signal d whose cycle gradually increases, and the motor number 1 is It is gradually slowing down.

このようにして、メモリ12に予め加速、減速データ及
び速度モードデータを記憶しておくことにより、モータ
1)を加速または減速させる際振動を抑full して
定速時及び停止状態時に速度変動が発生することを防止
できる。さらに、速度モードに応じて周期が変化する基
本クロックツぐルスbがカウンタCTR1からカウンタ
c’rR2に供給さ′17する。カウンタCTR2は、
上記加速、減速データに応じて基本クロックパルスbを
力10に供給する。したがって、1種類の加速、減速デ
ータにより、各速度モードに応じてしかも振動抑制を可
能とする励磁相データがCPUl0により生成される。
In this way, by storing acceleration, deceleration data, and speed mode data in the memory 12 in advance, vibrations can be fully suppressed when accelerating or decelerating the motor 1), and speed fluctuations can be prevented during constant speed and stopped states. This can be prevented from occurring. Further, a basic clock signal b whose period changes depending on the speed mode is supplied from the counter CTR1 to the counter c'rR2. Counter CTR2 is
A basic clock pulse b is supplied to the force 10 in accordance with the acceleration and deceleration data. Therefore, using one type of acceleration and deceleration data, CPU10 generates excitation phase data that corresponds to each speed mode and also enables vibration suppression.

このため、速度モードに応じて各加速、減速データを用
意することを不要にでき、加速、減速データを大幅に減
少することができる。これにより、加速、減速データを
記憶するメモリ12の容量を大幅に減少することができ
る。
Therefore, it is not necessary to prepare each acceleration and deceleration data according to the speed mode, and the amount of acceleration and deceleration data can be significantly reduced. Thereby, the capacity of the memory 12 for storing acceleration and deceleration data can be significantly reduced.

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

以上詳述したように本発明によれば、振動抑制用の加速
、減速データを大幅に減少でき、しかもステッピングモ
ータの定速時及び停止時の振動である速度変動の発生を
大幅に防止できる。
As described in detail above, according to the present invention, acceleration and deceleration data for vibration suppression can be significantly reduced, and the occurrence of speed fluctuations, which are vibrations when the stepping motor is at constant speed and when it is stopped, can be significantly prevented.

したがって、加速、減速データ及び速度モードデータを
記憶するメモリの容量を大幅に減少でき、しかもステッ
ピングモータを確実で安定に駆動できる極めて有用々ス
テッピングモータ、駆動制御波「1を提供できるもので
ある。
Therefore, it is possible to significantly reduce the memory capacity for storing acceleration, deceleration data, and speed mode data, and to provide an extremely useful stepping motor drive control wave ``1'' that can drive the stepping motor reliably and stably.

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

第1図は本発明の一実施例に1A′ζわるステッピング
モータ駆、動f:i制御装置の本¥成を示すブロックダ 図、第2図乃至第呻図はそitぞれ紀1図の装fン了の
動作を説明するだめのタイミングチャートである。 IO・・・マイクロプロセツサ、11・・・ステッピン
グモーク、12・・・メモリ、13・・・プログラマブ
ルカウンタ、14・・・モータドライノぐ。 13′ 第 2 図 b(n =3ン i3図 第4図 !]゛ +T7@ 第5図 CI −−−−−−−一−−−
Fig. 1 is a block diagram showing the main structure of a stepping motor drive and control device according to an embodiment of the present invention, and Figs. This is a timing chart for explaining the operation of loading the camera. IO...Microprocessor, 11...Stepping mode, 12...Memory, 13...Programmable counter, 14...Motor dry nozzle. 13' Fig. 2 b (n = 3 n i3 Fig. 4!) ゛+T7 @ Fig. 5 CI

Claims (1)

【特許請求の範囲】[Claims] ステッピングモータの加速、減速データに相当する所定
の加減速カウント数値データ及び速度モードに対応する
速度カウント数値データを予め記憶するメモリ手段と、
上記ステッピングモータの駆動状態に応じた上記加減速
カウント数値データ及び速度カウント数値データを上記
メモリ手段から胱出す制御手段と、この制御手段によシ
設定される上記速度カウント数値r−夕に基づいてカウ
ント動作して上記速度モードに応じた周期の基本クロッ
ク信号全発生する第1のカウント手段と、上記制御手段
によシ設定される上記加減速カウント数値データに基づ
いて上記第1のカウント手段から供給される上記基本ク
ロック信号をカウントして上記ステッピングモータの加
減速の変化に対応する周期のパルス信号を発生する第2
のカウント手段と、この第2のカウント手段から供給さ
れる上記・ぐルス信号の周期に基ついてステッピングモ
ータの励磁相データを生成する生成手段と、この生成手
段から供給される一]二記励(面相データに応じた励磁
電流を発生して上記ステッピングモータを駆動スるjt
メ1Q11手段とを↓!、 41i7 してなることを
特徴とするステッピングモータ(11イ動制御装置。
a memory means for storing in advance predetermined acceleration/deceleration count numerical data corresponding to acceleration and deceleration data of the stepping motor and speed count numerical data corresponding to the speed mode;
A control means outputs the acceleration/deceleration count numerical data and speed count numerical data corresponding to the driving state of the stepping motor from the memory means, and a control means based on the speed count value set by the control means. a first counting means that performs a counting operation and generates all the basic clock signals with a period corresponding to the speed mode; and a first counting means that performs a counting operation and generates all basic clock signals with a period corresponding to the speed mode; a second pulse signal that counts the supplied basic clock signal and generates a pulse signal with a period corresponding to changes in acceleration/deceleration of the stepping motor;
counting means, generating means for generating excitation phase data of the stepping motor based on the cycle of the pulse signal supplied from the second counting means, and excitation phase data supplied from the generating means. (Generates an excitation current according to the face phase data to drive the stepping motor.)
Me1Q11 means ↓! , 41i7 A stepping motor (11i motion control device) characterized by:
JP3754284A 1984-02-29 1984-02-29 Drive controller for stepping motor Pending JPS60183997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3754284A JPS60183997A (en) 1984-02-29 1984-02-29 Drive controller for stepping motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3754284A JPS60183997A (en) 1984-02-29 1984-02-29 Drive controller for stepping motor

Publications (1)

Publication Number Publication Date
JPS60183997A true JPS60183997A (en) 1985-09-19

Family

ID=12500407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3754284A Pending JPS60183997A (en) 1984-02-29 1984-02-29 Drive controller for stepping motor

Country Status (1)

Country Link
JP (1) JPS60183997A (en)

Similar Documents

Publication Publication Date Title
JP2563790B2 (en) Printer carriage control method
US4506201A (en) Microprocessor controlled pulse motor
JPS63112182A (en) Printer device
US3983468A (en) Motor drive system including a feedback loop
JPS60183997A (en) Drive controller for stepping motor
JPS6210835B2 (en)
KR0185048B1 (en) A step motor position control and a printer head control apparatus and method
JPH0515197A (en) Drive control method for step motor
US5177422A (en) Recording control system for a recording apparatus
JP2000185433A (en) Line printer
US4842431A (en) Multi-speed cooling fan for printing device
US5147143A (en) Printer carriage homing mechanism
JPH0614597A (en) Circuit and method for driving paper feed of printer
JP3050259B2 (en) Printing control device
JPS60120081A (en) Carriage drive controller
JPH0211369A (en) Printer
JPS6135199A (en) Lock current supplying method of pulse motor
JPH0542743A (en) Control of spacing mechanism of printer
JPH01222698A (en) Printer
JPS60120080A (en) Carriage drive controller
JPH0818453B2 (en) Carriage feed control circuit for in-vehicle serial printer
JPS58208084A (en) Printer
JPS59155083A (en) Controller for carrier-feeding stepping motor in printer
JP2792652B2 (en) Serial printer
JP3251344B2 (en) Pulse output circuit