JPH06284795A - Stepping motor operation/stop detecting circuit - Google Patents

Stepping motor operation/stop detecting circuit

Info

Publication number
JPH06284795A
JPH06284795A JP7179293A JP7179293A JPH06284795A JP H06284795 A JPH06284795 A JP H06284795A JP 7179293 A JP7179293 A JP 7179293A JP 7179293 A JP7179293 A JP 7179293A JP H06284795 A JPH06284795 A JP H06284795A
Authority
JP
Japan
Prior art keywords
current
motor
time
signal
stepping motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7179293A
Other languages
Japanese (ja)
Inventor
芳典 ▲高▼橋
Yoshinori Takahashi
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP7179293A priority Critical patent/JPH06284795A/en
Publication of JPH06284795A publication Critical patent/JPH06284795A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

PURPOSE:To provide a stepping motor operation/stop detecting circuit capable of detecting a stepping motor operated/stopped by measuring a time for changing a current flowing through a drive circuit. CONSTITUTION:An overcurrent signal 30, output by a comparator 28 provided in a drive circuit 10, is fed out to a timer circuit 40 connected to a CPU37, and a time of high level of this signal 30 is measured by the timer circuit 40. This measured time is compared with a preset time by the CPU37, to judge whether a motor is stopped or not.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ステッピングモータの
作動/停止を検出する検出回路に関し、特にステッピン
グモータの駆動中ステッピングモータが作動/停止した
ことを検出するステッピングモータ停止検出回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a detection circuit for detecting the operation / stop of a stepping motor, and more particularly to a stepping motor stop detection circuit for detecting the operation / stop of a stepping motor during driving of the stepping motor.

【0002】[0002]

【従来の技術】従来ステッピングモータは、例えばシリ
アルプリンタ等でスペーシングモータとして、印字ヘッ
ドを搭載したキャリッジを搬送するのに使用される。図
6は従来のシリアルプリンタの印字機構部の構成を示す
要部斜視図であり、印字ヘッド2はキャリッジ3に搭載
され、このキャリッジ3は同期ベルト4を介してステッ
ピングモータ1(以下モータと称す)により搬送される
ようになっている。サイドフレーム5はシリアルプリン
タの側部に設けられている。電源投入時に、モータ1を
駆動してキャリッジ3を左方向に搬送してサイドフレー
ム5にキャリッジ3を突き当てると、キャリッジ3が特
定の位置にあることが検出され、その位置を基準に印字
位置を決定することができる。
2. Description of the Related Art Conventionally, a stepping motor is used as a spacing motor in a serial printer, for example, to convey a carriage having a print head. FIG. 6 is a perspective view of a main part showing a configuration of a printing mechanism section of a conventional serial printer. The print head 2 is mounted on a carriage 3, and the carriage 3 is provided with a stepping motor 1 (hereinafter referred to as a motor) via a synchronous belt 4. ). The side frame 5 is provided on the side portion of the serial printer. When the power is turned on, the motor 1 is driven to convey the carriage 3 to the left and the carriage 3 is abutted against the side frame 5, and it is detected that the carriage 3 is at a specific position. Can be determined.

【0003】次にステッピングモータを用いる上記構造
のシリアルプリンタの印字基準位置決定動作について同
じく図6に基づいて説明する。上記の突き当てに関し、
キャリッジ3がサイドフレーム5に突き当たったことを
検出するために図に示す如く、モータ1の回転軸上に取
付けたスリット円板6と、該スリット円板6のスリット
7を検出する透過型フォトインタラプタ(以下フォトセ
ンサと称す)8を設置している。即ち、モータ1が回転
していると、フォトセンサ8の出力はオン・オフを繰り
返すが、キャリッジ3がサイドフレーム5に突き当たる
とモータ1が停止するのでスリット円板6が停止し、フ
ォトセンサ8の出力はオンまたはオフの状態で変化しな
い。従ってフォトセンサ8の出力が変化しない事でキャ
リッジ3がサイドフレーム5に突き当たったことを検出
できる。
Next, the print reference position determining operation of the serial printer having the above structure using the stepping motor will be described with reference to FIG. Regarding the above-mentioned abutment,
In order to detect that the carriage 3 has hit the side frame 5, as shown in the figure, a slit disk 6 mounted on the rotating shaft of the motor 1 and a transmission type photo interrupter for detecting the slit 7 of the slit disk 6. (Hereinafter referred to as a photo sensor) 8 is installed. That is, when the motor 1 is rotating, the output of the photo sensor 8 is repeatedly turned on and off, but when the carriage 3 hits the side frame 5, the motor 1 is stopped, so that the slit disk 6 is stopped and the photo sensor 8 is stopped. The output of does not change in the on or off state. Therefore, since the output of the photo sensor 8 does not change, it can be detected that the carriage 3 has hit the side frame 5.

【0004】また、キャリッジ3が特定の位置にあるこ
とを検出するための従来の別の機構を図7に基づいて説
明する。図7はマイクロスイッチを設けた場合のシリア
ルプリンタの印字機構部の構成を示す要部斜視図であ
る。スリット円板6とフォトセンサ8の代りに、マイク
ロスイッチ9はサイドフレーム5に設けられている。そ
の他の構造は図6と同様である。
Another conventional mechanism for detecting that the carriage 3 is at a specific position will be described with reference to FIG. FIG. 7 is a main part perspective view showing a configuration of a printing mechanism section of a serial printer when a micro switch is provided. Instead of the slit disk 6 and the photo sensor 8, a micro switch 9 is provided on the side frame 5. Other structures are the same as those in FIG.

【0005】図7において、キャリッジ3がサイドフレ
ーム5から離れた状態ではマイクロスイッチ9はオフし
ており、キャリッジ3がサイドフレーム5に近付くとマ
イクロスイッチ9のレバが押下されるので、マイクロス
イッチ9はオンする。マイクロスイッチ9がオンする時
のキャリッジ3の位置は特定される為、キャリッジ3の
初期位置を検出できる。以上、サイドフレーム5にマイ
クロスイッチ9を設置することにより、このマイクロス
イッチ9の出力によりキャリッジ3が特定の位置にある
ことを検出することができ、この結果検出位置を基準に
印字位置を決定することができる。
In FIG. 7, the micro switch 9 is turned off when the carriage 3 is separated from the side frame 5, and when the carriage 3 approaches the side frame 5, the lever of the micro switch 9 is pushed down. Turns on. Since the position of the carriage 3 when the micro switch 9 is turned on is specified, the initial position of the carriage 3 can be detected. As described above, by installing the micro switch 9 on the side frame 5, it is possible to detect that the carriage 3 is at a specific position by the output of the micro switch 9, and as a result, the print position is determined based on the detected position. be able to.

【0006】[0006]

【発明が解決しようとする課題】しかしステッピングモ
ータを使用する場合、例えば上記構造のシリアルプリン
タでは、スリット円板とフォトセンサ、マイクロスイッ
チ等の機構的な基準位置検出手段を設けなければステッ
ピングモータが物理的に停止しているか、作動している
か判断することができなかった。
However, when a stepping motor is used, for example, in a serial printer having the above-described structure, the stepping motor will be used unless mechanical reference position detecting means such as a slit disk, a photo sensor, and a micro switch are provided. It was not possible to determine whether it was physically stopped or operating.

【0007】本発明では前述したマイクロスイッチ等の
機構的基準位置検出手段を設けることなく、ステッピン
グモータ使用時に電流の変化する時定数を観測して、モ
ータが作動/停止していることを検出する回路を提供す
ることを目的とする。
In the present invention, it is possible to detect whether the motor is operating or stopped by observing the time constant for changing the current when the stepping motor is used, without providing the above-mentioned mechanical reference position detecting means such as the micro switch. The purpose is to provide a circuit.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に本発明は、複数個のモータコイルを選択的に相励磁す
ることにより該モータコイルに電流を流してステッピン
グモータを駆動し、該モータコイルに流れた電流が基準
値に対し超過しているか否かを検出してオン・オフの電
流超過信号を出力し、該電流超過信号のオン・オフによ
り該モータコイルに流す電流を制御する駆動回路と、前
記電流超過信号のオン時間またはオフ時間を計測する計
測手段と、前記計測手段により計測された前記オン時間
またはオフ時間を設定時間と比較することにより、前記
ステッピングモータが作動しているか、停止しているか
を判定する判定手段とを設けたものである。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, according to the present invention, a plurality of motor coils are selectively phase-excited to flow a current through the motor coils to drive a stepping motor. A drive that detects whether or not the current flowing through the coil exceeds a reference value, outputs an on / off current excess signal, and controls the current flowing through the motor coil by turning on / off the current excess signal. Whether the stepping motor is operating by comparing a circuit, a measuring unit that measures the ON time or the OFF time of the current excess signal, and the ON time or the OFF time measured by the measuring unit with a set time. A determination means for determining whether the vehicle is stopped is provided.

【0009】[0009]

【作用】駆動回路のモータコイルに電流を流してステッ
ピングモータを駆動すると、モータコイルに流れた電流
が基準値に対し超過しているか否かによって電流超過信
号の出力がオン・オフする。これにより、電流が超過し
ていない場合は電流超過信号をオンしてモータコイルに
電流を流すオン制御をし、超過している場合は電流超過
信号をオフしてモータコイルに電流を流さないオフ制御
をする。計測手段は電流超過信号のオン時間、またはオ
フ時間を計測し、判定手段が、計測されたこのオン時間
またはオフ時間と設定時間とを比較する。この時、オン
時間またはオフ時間が設定時間より長い場合、判定手段
はステッピングモータが作動していると判定し、オン時
間またはオフ時間が設定時間より短い場合、停止してい
ると判定する。この結果、従来のように機構的な手段を
設けなくてもステッピングモータが作動しているか、停
止しているか判断することができる。
When the stepping motor is driven by passing a current through the motor coil of the drive circuit, the output of the current excess signal is turned on / off depending on whether the current flowing through the motor coil exceeds the reference value. As a result, when the current does not exceed the limit, the excess current signal is turned on to turn on the current to the motor coil, and when it exceeds the limit, the excess current signal is turned off and the current is not passed to the motor coil. Take control. The measuring means measures the on-time or off-time of the current excess signal, and the determining means compares the measured on-time or off-time with the set time. At this time, when the on time or the off time is longer than the set time, the determination means determines that the stepping motor is operating, and when the on time or the off time is shorter than the set time, it determines that the stepping motor is stopped. As a result, it is possible to determine whether the stepping motor is operating or stopped without providing any mechanical means as in the conventional case.

【0010】[0010]

【実施例】以下に本発明の実施例について図面を参照し
ながら詳細に説明する。なお各図面に共通する要素には
同一の符号を付す。
Embodiments of the present invention will be described in detail below with reference to the drawings. Note that elements common to the drawings are given the same reference numerals.

【0011】図1は本実施例の4相ステッピングモータ
を定電流駆動する回路ブロック図であって、11はステ
ッピングモータ(以下モータと称す)に流す全電流を制
御するpnpトランジスタで、通電指令信号12がオン
の期間プリアンプ13を介してオンする。14〜17は
各々モータ1の第1相〜第4相のモータコイル18〜2
1に接続されているnpnトランジスタで、各々第1相
励磁指令信号22〜第4相励磁指令信号25によりオン
/オフを制御される。26は電流検出用抵抗で、モータ
コイル18〜21に流れる全電流に比例する電圧が電流
レベル信号27に現れる。34はフライホイールダイオ
ードで、モータコイル18〜21にエネルギーが蓄積さ
れ、かつnpnトランジスタ14〜17がオンした状態
で、pnpトランジスタ11がオフした場合の蓄積エネ
ルギー放出の還流ルートを形成する。36は駆動用電源
である。
FIG. 1 is a circuit block diagram for driving a four-phase stepping motor of the present embodiment with a constant current. Reference numeral 11 is a pnp transistor for controlling the total current supplied to the stepping motor (hereinafter referred to as a motor). It turns on through the preamplifier 13 while 12 is on. 14 to 17 are motor coils 18 to 2 of the first to fourth phases of the motor 1, respectively.
ON / OFF of the npn transistor connected to 1 is controlled by the first phase excitation command signal 22 to the fourth phase excitation command signal 25, respectively. Reference numeral 26 is a current detection resistor, and a voltage proportional to the total current flowing through the motor coils 18 to 21 appears in the current level signal 27. Reference numeral 34 denotes a flywheel diode, which forms a circulation route for discharging stored energy when the pnp transistor 11 is turned off while the energy is stored in the motor coils 18 to 21 and the npn transistors 14 to 17 are turned on. Reference numeral 36 is a driving power source.

【0012】28は比較器で、電流レベル信号27がそ
のマイナス入力に入力され、比較器28のプラス入力に
は抵抗35を介して電流設定信号29が入力されてい
る。比較器28は、電流レベル信号27の電圧レベルと
比較器28のプラス入力に入力される電圧レベルとを常
に比較しており、電流レベル信号27の電圧レベルが比
較器28のプラス入力電圧よりも高い場合に電流超過信
号30として低レベルを出力し、電流レベル信号27の
電圧レベルが比較器28のプラス入力電圧レベルよりも
低い場合に電流超過信号30として高レベルを出力する
ようになっている。31は帰還抵抗で、電流超過信号3
0が低レベルの場合は電流設定信号29よりも比較器2
8のプラス入力電圧を低くし、電流超過信号30が高レ
ベルの場合は電流設定信号29よりも比較器28のプラ
ス入力電圧を高くすることにより比較器28にヒステリ
シス特性をもたせ、高速の出力変化による発振を防いで
いる。電流超過信号30は通電許可信号33と共にゲー
ト32に入力される負帰還回路となっており、通電許可
信号33がオンで電流超過信号30が高レベルの場合の
み通電指令信号12はオンとなる。また、電流超過信号
30は、後述するタイマ回路40に入力される。以上に
より駆動回路10は成っている。
Reference numeral 28 denotes a comparator, to which a current level signal 27 is inputted to its minus input, and to the plus input of the comparator 28, a current setting signal 29 is inputted via a resistor 35. The comparator 28 constantly compares the voltage level of the current level signal 27 with the voltage level input to the plus input of the comparator 28, and the voltage level of the current level signal 27 is higher than the plus input voltage of the comparator 28. When it is high, a low level is output as the current excess signal 30, and when the voltage level of the current level signal 27 is lower than the positive input voltage level of the comparator 28, a high level is output as the current excess signal 30. . 31 is a feedback resistor, which is an overcurrent signal 3
When 0 is at a low level, the comparator 2 is used rather than the current setting signal 29.
When the positive input voltage of 8 is decreased and the current excess signal 30 is at a high level, the positive input voltage of the comparator 28 is made higher than that of the current setting signal 29 so that the comparator 28 has a hysteresis characteristic and high-speed output change. It prevents the oscillation due to. The excess current signal 30 is a negative feedback circuit that is input to the gate 32 together with the energization permission signal 33, and the energization command signal 12 is turned on only when the energization permission signal 33 is on and the excess current signal 30 is at a high level. Further, the current excess signal 30 is input to the timer circuit 40 described later. The drive circuit 10 is configured as described above.

【0013】次に制御回路50について同じく図1に基
づいて説明する。37は中央処理装置(CPU)で、リ
ードオンメモリ(ROM)38に格納されるプログラム
に従いバス39を介してタイマ回路40のカウント値を
読みとる。また前記プログラムに従い、CPU37は入
出力(I/O)ポート41を介してタイマ回路40のカ
ウント値をリセットしたりモータ1を制御する。このタ
イマ回路40にタイマ制御入力信号42として図1の電
流超過信号30が入力され、該信号が高レベルの期間の
みCPU37より供給されるクロック信号43をタイマ
回路40はカウントし、タイマ制御入力信号42が低レ
ベルになるとカウントを停止すると共にカウント値を保
持し、I/Oポート41に接続されているカウント終了
信号44をオンにするようになっている。またCPU3
7はI/Oポート41からタイマ回路40に入力される
タイマリセット信号45によりタイマ回路40のカウン
ト値をリセットできる。CPU37はカウント終了信号
44がオンになるとタイマ回路40のカウント値を読み
取るとともに、ROM38に記憶されている設定時間で
ある後述するton12とこのカウント値とを比較す
る。なお、I/Oポート41のモータ制御信号群46は
図1の通電許可信号33、第1相励磁指令信号22〜第
4相励磁指令信号25として、CPU37がI/Oポー
ト41を介して制御するようになっている。
Next, the control circuit 50 will be described with reference to FIG. A central processing unit (CPU) 37 reads the count value of the timer circuit 40 via a bus 39 according to a program stored in a read-on memory (ROM) 38. Further, according to the program, the CPU 37 resets the count value of the timer circuit 40 and controls the motor 1 via the input / output (I / O) port 41. The current excess signal 30 shown in FIG. 1 is input to the timer circuit 40 as the timer control input signal 42, and the timer circuit 40 counts the clock signal 43 supplied from the CPU 37 only while the signal is at a high level. When 42 becomes a low level, counting is stopped, the count value is held, and the count end signal 44 connected to the I / O port 41 is turned on. CPU3
7 can reset the count value of the timer circuit 40 by a timer reset signal 45 input from the I / O port 41 to the timer circuit 40. When the count end signal 44 is turned on, the CPU 37 reads the count value of the timer circuit 40, and compares the count value with a later-described ton12 which is the set time stored in the ROM 38. The motor control signal group 46 of the I / O port 41 is controlled by the CPU 37 via the I / O port 41 as the energization permission signal 33 and the first phase excitation command signal 22 to the fourth phase excitation command signal 25 of FIG. It is supposed to do.

【0014】次に上記駆動回路10と制御回路50を持
つステッピングモータの通常回転駆動動作について図1
〜図3に基づいて説明する。図2は本実施例の動作状態
を説明する波形図であり、図3はモータコイルの駆動状
態を示す波形図である。
Next, the normal rotation drive operation of the stepping motor having the drive circuit 10 and the control circuit 50 will be described with reference to FIG.
~ It demonstrates based on FIG. FIG. 2 is a waveform diagram for explaining the operation state of the present embodiment, and FIG. 3 is a waveform diagram showing the drive state of the motor coil.

【0015】図1において、通電許可信号33をオン状
態にして電流設定信号29を出力すると、比較器28の
マイナス入力はプラス入力より低いので比較器28は電
流超過信号30を高レベルで出力する。また第1相〜第
4相励磁指令信号22〜25を回転させたい方向に従
い、図3に示すように2つの相を常時励磁して順次オン
・オフする。これにより、通電指令信号12はオン状態
になり、PNPトランジスタ11がオンして電流がモー
タコイル18〜21へ流れる。モータコイル18〜21
は2相励磁となっているので、PNPトランジスタ11
を通過した電流は4つのモータコイル18〜21のうち
2つのモータコイルを通過し、電流検出用抵抗26へ流
れる。
In FIG. 1, when the energization permission signal 33 is turned on and the current setting signal 29 is output, the minus input of the comparator 28 is lower than the plus input, so the comparator 28 outputs the current excess signal 30 at a high level. . Further, as shown in FIG. 3, the two phases are constantly excited and sequentially turned on / off in accordance with the direction in which the first phase to fourth phase excitation command signals 22 to 25 are to be rotated. As a result, the energization command signal 12 is turned on, the PNP transistor 11 is turned on, and current flows to the motor coils 18 to 21. Motor coils 18-21
Is a two-phase excitation, the PNP transistor 11
The current that has passed through passes through two of the four motor coils 18 to 21 and flows to the current detection resistor 26.

【0016】電流検出用抵抗26により電流レベル信号
27の電圧を比較器28のマイナス入力に印加する。比
較器28は電流レベル信号27の電圧レベルと比較器2
8のプラス入力の電圧レベルとを比較し、この比較結果
により電流超過信号30としてオン、即ち高レベル、或
いはオフ、即ち低レベルを出力する。電流レベル信号2
7は図2に示す波形となっている。また図2のV1 ,V
2 は比較器28のプラス入力の電圧レベルである。電流
がモータコイル18〜21を通過し、電流レベル信号2
7の電圧レベルが高くなりV2に達すると、前述したよ
うに比較器28は低レベルを出力し、これにより帰還抵
抗31は比較器28のプラス入力レベルをV2 からV1
へ下げる作用をする。
The voltage of the current level signal 27 is applied to the negative input of the comparator 28 by the current detecting resistor 26. The comparator 28 compares the voltage level of the current level signal 27 with the comparator 2
8 is compared with the voltage level of the positive input, and the comparison result is output as the current excess signal 30 that is on, that is, high level, or off, that is, low level. Current level signal 2
7 has the waveform shown in FIG. In addition, V 1 and V in FIG.
2 is the voltage level of the positive input of the comparator 28. The current passes through the motor coils 18-21 and the current level signal 2
When the voltage level of 7 rises to reach V2, the comparator 28 outputs a low level as described above, which causes the feedback resistor 31 to change the positive input level of the comparator 28 from V 2 to V 1.
Acts to lower to.

【0017】また、電流超過信号30として低レベルが
出力されることにより、PNPトランジスタ11は電流
を遮断し、この結果電流レベル信号27の電圧レベルは
徐々に低くなりV1 に達する。これにより比較器28は
高レベルを出力し、再び帰還抵抗31は比較器28のプ
ラス入力レベルをV1 からV2 へと上げる。以上がモー
タの通常回転中に行われる動作である。
When the low level is output as the current excess signal 30, the PNP transistor 11 cuts off the current, and as a result, the voltage level of the current level signal 27 gradually decreases and reaches V 1 . This causes the comparator 28 to output a high level, and the feedback resistor 31 again raises the positive input level of the comparator 28 from V 1 to V 2 . The above is the operation performed during normal rotation of the motor.

【0018】ところで、前述したように電流超過信号3
0はタイマ回路40に入力されるようになっている。次
にモータの回転、停止検出動作について図4のフローチ
ャートに基づいて説明する。図4はモータの回転、停止
検出動作を説明するフローチャートである。
By the way, as described above, the current excess signal 3
0 is input to the timer circuit 40. Next, the rotation and stop detection operation of the motor will be described based on the flowchart of FIG. FIG. 4 is a flow chart for explaining the rotation / stop detection operation of the motor.

【0019】電流超過信号30が低レベルである時(ス
テップ1)、CPU37に制御されてI/Oポート41
はタイマリセット信号45をタイマ回路40へ出力する
(ステップ2)。この後電流超過信号30が高レベル出
力すると(ステップ3)、CPU37から送出されるク
ロック信号43をタイマ回路40はカウントする。この
時タイマ回路40により計測される時間は、図2に矢印
で示すtonで表される時間、即ち電流超過信号30の
オン時間であり、電流超過信号30が低レベルを出力す
るとタイマ回路40は、I/Oポート41を介してカウ
ント終了信号44をCPU37へ送出してカウントを終
了する(ステップ4)
When the excess current signal 30 is at a low level (step 1), the CPU 37 controls the I / O port 41.
Outputs the timer reset signal 45 to the timer circuit 40 (step 2). After that, when the current excess signal 30 is output at a high level (step 3), the timer circuit 40 counts the clock signal 43 sent from the CPU 37. At this time, the time measured by the timer circuit 40 is the time represented by ton shown by the arrow in FIG. 2, that is, the on time of the current excess signal 30, and when the current excess signal 30 outputs a low level, the timer circuit 40 , A count end signal 44 is sent to the CPU 37 via the I / O port 41 to end the count (step 4).

【0020】この後CPU37は、タイマ回路40に保
持されたカウント値を読み取り(ステップ5)、ROM
38に格納された前述した設定時間ton12の値とカ
ウント値とを比較する(ステップ6)。ここでton1
2について図5に基づいて説明する。図5はモータが停
止している時と回転している時の電流レベル信号を示す
説明図である。
Thereafter, the CPU 37 reads the count value held in the timer circuit 40 (step 5), and ROM
The value of the preset time ton12 stored in 38 is compared with the count value (step 6). Here ton1
2 will be described with reference to FIG. FIG. 5 is an explanatory diagram showing current level signals when the motor is stopped and rotating.

【0021】波形61aはモータ1が回転している時の
電流レベル信号27の波形であり、波形61bはモータ
1が停止している時の電流レベル信号27の波形を示
す。図からわかるようにモータ1が回転している時の電
流レベル信号27の表す波形61aは、モータ1が停止
している時の波形61bより周期が長くなっている。こ
れは、モータ1の回転によりモータコイルで逆起電力が
発生するからである。それ故、モータ1が回転している
場合の電流レベル信号27の電圧レベルV1 からV2
到達するまでの時間ton1は、モータ1が停止してい
る場合にV1 からV2 に到達するまでの時間ton2よ
りも大きくなる(ton1>ton2 )。図中の前述し
た設定時間ton12はton1よりも小さくton2
よりも大きく(ton1>ton12>ton2)、t
on1とton2のほぼ半分の時間である。しかし、t
on1>ton12>ton2を満たす値であれば必ず
しも半分の時間でなくてもよい。
The waveform 61a is the waveform of the current level signal 27 when the motor 1 is rotating, and the waveform 61b is the waveform of the current level signal 27 when the motor 1 is stopped. As can be seen from the figure, the waveform 61a represented by the current level signal 27 when the motor 1 is rotating has a longer cycle than the waveform 61b when the motor 1 is stopped. This is because the counter electromotive force is generated in the motor coil due to the rotation of the motor 1. Therefore, time ton1 from a voltage level V 1 of the current level signal 27 when the motor 1 is rotating until it reaches the V 2 reaches from V 1 to V 2 when the motor 1 is stopped Is longer than the time ton2 (ton1> ton2). The set time ton12 described above in the figure is smaller than ton1 and ton2
Greater than (ton1>ton12> ton2), t
It is almost half the time of on1 and ton2. But t
If the value satisfies on1>ton12> ton2, it does not necessarily have to be half the time.

【0022】上記により、CPU37がton12とカ
ウント値とを比較しカウント値がton12よりも小さ
かった場合、CPU37はモータ1が停止していると判
断する(ステップ7)。また、カウント値がton12
よりも大きかった場合モータ1が回転していると判断す
る(ステップ8)
As described above, the CPU 37 compares the ton12 with the count value, and when the count value is smaller than the ton12, the CPU 37 determines that the motor 1 is stopped (step 7). In addition, the count value is ton12
If it is greater than, it is determined that the motor 1 is rotating (step 8)

【0023】ここでton1とton2の大小関係につ
いて式により説明する。電流検出用抵抗26の抵抗値を
Ri、駆動用電源36の電圧をVd、モータコイル18
〜21の抵抗成分をRj、インダクタンスをL、モータ
回転中に各モータコイルに発生する逆起電力をErと
し、まず電流レベル信号27の波形について説明する。
Here, the magnitude relation between ton1 and ton2 will be described by means of equations. The resistance value of the current detection resistor 26 is Ri, the voltage of the driving power supply 36 is Vd, and the motor coil 18
The waveform of the current level signal 27 will be described first, where Rj is the resistance component of .about.21, L is the inductance, and Er is the counter electromotive force generated in each motor coil during motor rotation.

【0024】通電指令信号12がオンの期間の電流レベ
ル信号27の電流電圧は次式から求められる。モータ1
は回転している場合、1相あたりの電流はRjとLの直
列回路に電圧(VdーEr)を印加する場合の電流波形
の一部であり、また図3に示す如く常時2つの相が駆動
されているので前記電流の2倍が電流検出用抵抗26に
流れる。1相当りの電流Iは通電開始時をt=0とする
と、
The current voltage of the current level signal 27 while the energization command signal 12 is on is obtained from the following equation. Motor 1
Is a part of the current waveform when a voltage (Vd-Er) is applied to the series circuit of Rj and L when rotating, and as shown in FIG. Since it is driven, twice the current flows through the current detection resistor 26. If the current I corresponding to 1 is t = 0 at the start of energization,

【数1】 図5に示す、電流レベル信号27の部分拡大図のA点を
t=0とする式は、式(2)をt=0でVi=V2 とし
て式(3)で示すようになる。
[Equation 1] The equation in which the point A in the partially enlarged view of the current level signal 27 shown in FIG. 5 is t = 0 is as shown in the equation (3), where Vi = V 2 at t = 0.

【数2】 [Equation 2]

【0025】次にモータ1が停止している式(1)に相
当する式は逆起電力Erが無い場合になるので、式
(6)に示すようになる。
Next, the equation corresponding to the equation (1) in which the motor 1 is stopped is as shown in the equation (6) because there is no back electromotive force Er.

【数3】 [Equation 3]

【0026】電流レベル信号27がV1 からV2 に到達
するまでの時間は、モータ1が回転している場合をto
n1、停止している場合をton2とすると、各々式
(10)及び式(11)を満足する。
The time required for the current level signal 27 to reach from V 1 to V 2 is when the motor 1 is rotating.
If n1 and ton2 when the vehicle is stopped, the equations (10) and (11) are satisfied.

【数4】 式(10)及び式(11)を解くと、式(12)、式
(13)に示すようになる。
[Equation 4] By solving the equations (10) and (11), the equations (12) and (13) are obtained.

【数5】 ここで式(12)と式(13)の大小関係を知る為に、
式(12)の対数関数の変数から式(13)の対数関数
の変数を減ずると、
[Equation 5] Here, in order to know the magnitude relation between Expression (12) and Expression (13),
Subtracting the logarithmic function variable of equation (13) from the logarithmic function variable of equation (12) gives

【数6】 [Equation 6]

【0027】以上から、式(14)の分母の第1項をみ
ると、式(9)の対数関数の変数の分母と同じであり、
式(9)の対数関数の変数が正で分子の(2・Ri・V
d)が正なので分母も正となる。従って式(14)の分
母の第1項は正となる。同様に、式(14)の分母の第
2項を考えると、式(5)の対数関数の変数の分母と同
じであり、式(5)の対数関数の変数が正で分子の{2
・Ri・(VdーEr)}はモータの逆起電力Erが印
加電圧Vdを越えることはないので正となり、分母も正
となる。従って式(14)の分母の第2項は正である。
式(14)の分母と分子が共に正なので式(14)の値
が正であり、この結果ton1>ton2となる。
From the above, looking at the first term of the denominator of equation (14), it is the same as the denominator of the variable of the logarithmic function of equation (9),
The variable of the logarithmic function in equation (9) is positive and the numerator (2 · Ri · V
Since d) is positive, the denominator is also positive. Therefore, the first term of the denominator of equation (14) is positive. Similarly, considering the second term of the denominator of Expression (14), it is the same as the denominator of the logarithmic function variable of Expression (5), and the variable of the logarithmic function of Expression (5) is positive and the numerator {2
Ri * (Vd-Er)} is positive because the back electromotive force Er of the motor does not exceed the applied voltage Vd, and the denominator is also positive. Therefore, the second term of the denominator of equation (14) is positive.
Since the denominator and the numerator of Expression (14) are both positive, the value of Expression (14) is positive, and as a result, ton1> ton2.

【0028】別の実施例として、前記実施例で比較器2
8が高レベルを出力している間の時間、即ちオン時間を
計測する代りに低レベルを出力している間の時間、即ち
オフ時間を計測するようにしてもよい。この場合、図5
の電流レベル信号27のV2からV1 へ下がるまでにか
かる時間は、V1 からV2 へ上がるまでにかかる時間が
長い程長く、短い程短くなるので、前記実施例と同様
に、オフ時間を利用することによりモータ1の回転、停
止を検出することができる。
As another embodiment, the comparator 2 in the above embodiment is used.
Instead of measuring the time during which 8 outputs a high level, that is, the on-time, the time during which a low level is output, that is, the off-time may be measured. In this case,
Time taken from V 2 to decrease to V 1 of the current level signal 27 is longer from V 1 longer the time it takes up to V 2, is shorter as shortened, similarly to the foregoing embodiment, the OFF time It is possible to detect the rotation and stop of the motor 1 by utilizing.

【0029】[0029]

【発明の効果】以上詳細に説明した様に、この発明によ
れば駆動回路の駆動時間または非駆動時間を計測手段を
使用して計測し、その時間を設定時間と比較することに
よりステッピングモータが作動しているか、停止してい
るかを判断する判定手段を設けることにより、機構的な
作動、停止検出手段を設けることなくモータが作動して
いるか、停止しているかを検出できる。この発明ではモ
ータを駆動する回路を利用することができるので、この
結果従来よりも部品点数を減らすことができる。
As described in detail above, according to the present invention, the stepping motor can be operated by measuring the driving time or the non-driving time of the driving circuit using the measuring means and comparing the time with the set time. By providing the determination means for determining whether the motor is operating or stopped, it is possible to detect whether the motor is operating or stopped without providing mechanical operation or stop detection means. In the present invention, a circuit for driving the motor can be used, and as a result, the number of parts can be reduced as compared with the conventional case.

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

【図1】本発明に係る実施例の制御系を示す回路ブロッ
ク図である。
FIG. 1 is a circuit block diagram showing a control system of an embodiment according to the present invention.

【図2】実施例の動作状態を説明する波形図である。FIG. 2 is a waveform diagram illustrating an operating state of the embodiment.

【図3】モータコイルの駆動状態を示す波形図である。FIG. 3 is a waveform diagram showing a driving state of a motor coil.

【図4】モータの回転、停止検出動作を説明するフロー
チャートである。
FIG. 4 is a flowchart illustrating a motor rotation / stop detection operation.

【図5】電流レベル信号を示す説明図である。FIG. 5 is an explanatory diagram showing a current level signal.

【図6】従来のシリアルプリンタの印字機構部を示す要
部斜視図である。
FIG. 6 is a main part perspective view showing a printing mechanism section of a conventional serial printer.

【図7】従来のシリアルプリンタの印字機構部を示す要
部斜視図である。
FIG. 7 is a main part perspective view showing a printing mechanism section of a conventional serial printer.

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

10 駆動回路 18〜21 モータコイル 27 電流レベル信号 28 比較器 30 電流超過信号 37 CPU 40 タイマ回路 10 Drive Circuit 18-21 Motor Coil 27 Current Level Signal 28 Comparator 30 Current Excess Signal 37 CPU 40 Timer Circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数個のモータコイルを選択的に相励磁
することにより該モータコイルに電流を流してステッピ
ングモータを駆動し、該モータコイルに流れた電流が基
準値に対し超過しているか否かを検出してオン・オフの
電流超過信号を出力し、該電流超過信号のオン・オフに
より該モータコイルに流す電流を制御する駆動回路と、 前記電流超過信号のオン時間またはオフ時間を計測する
計測手段と、 前記計測手段により計測された前記オン時間またはオフ
時間を設定時間と比較することにより、前記ステッピン
グモータが回転しているか、停止しているかを判定する
判定手段とを設けたことを特徴とするステッピングモー
タ作動/停止検出回路。
1. A stepping motor is driven by selectively supplying a plurality of motor coils with phase excitation to cause a current to flow through the motor coils. Whether or not the current flowing through the motor coils exceeds a reference value. A drive circuit that detects whether or not it outputs an on / off current excess signal and controls the current flowing to the motor coil by turning on / off the current excess signal, and measures the on time or off time of the current excess signal And a determination unit that determines whether the stepping motor is rotating or stopped by comparing the ON time or the OFF time measured by the measuring unit with a set time. A stepping motor operation / stop detection circuit characterized by:
【請求項2】 前記計測手段はタイマ回路である請求項
1記載のステッピングモータ作動/停止検出回路。
2. The stepping motor operation / stop detection circuit according to claim 1, wherein the measuring means is a timer circuit.
JP7179293A 1993-03-30 1993-03-30 Stepping motor operation/stop detecting circuit Pending JPH06284795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7179293A JPH06284795A (en) 1993-03-30 1993-03-30 Stepping motor operation/stop detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7179293A JPH06284795A (en) 1993-03-30 1993-03-30 Stepping motor operation/stop detecting circuit

Publications (1)

Publication Number Publication Date
JPH06284795A true JPH06284795A (en) 1994-10-07

Family

ID=13470782

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7179293A Pending JPH06284795A (en) 1993-03-30 1993-03-30 Stepping motor operation/stop detecting circuit

Country Status (1)

Country Link
JP (1) JPH06284795A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007511192A (en) * 2003-11-03 2007-04-26 ムービング マグネット テクノロジーズ (ソシエテ アノニム) Stepping motor stop fixing detection method and stepping motor equipped with a stop detector

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007511192A (en) * 2003-11-03 2007-04-26 ムービング マグネット テクノロジーズ (ソシエテ アノニム) Stepping motor stop fixing detection method and stepping motor equipped with a stop detector
JP4871131B2 (en) * 2003-11-03 2012-02-08 ムービング マグネット テクノロジーズ (ソシエテ アノニム) Stepping motor stop fixing detection method and stepping motor equipped with a stop detector

Similar Documents

Publication Publication Date Title
US6483270B1 (en) Method and device for controlling position sensorless motor
KR940002924B1 (en) Motor energizing circuit
US8659259B2 (en) Stepping motor driving apparatus
JP5168978B2 (en) Motor drive device
US7221122B2 (en) Inverter control device
JPH06284795A (en) Stepping motor operation/stop detecting circuit
US7429846B2 (en) Stepping motor control apparatus
CN115499573A (en) Video camera
JPH08182378A (en) Method and apparatus for detecting rotor position of brusheless motor
US6700346B2 (en) Motor driving circuit with a motor failure detecting function
JP2000184789A (en) Method for driving stepping motor
US4638235A (en) Motor driving apparatus
JPH0750998B2 (en) Step motor abnormality detection device
JP3815238B2 (en) Motor rotation control method
JPH0746896A (en) Step-out detector for stepping motor
JP2006129543A (en) Stepping motor driver and driving method
JPH11127598A (en) Control device for hold of stepping motor
JP4070280B2 (en) Stepping motor step-out detection device
JP2002010689A (en) Pulse-motor control method
JP2001275398A (en) Zero-point detection method and positioning device
JP2001008480A (en) Speed controller for motor
JPH08140391A (en) Driver for brushless motor
JPH0646596A (en) Drive controller for stepping motor
JP2001199109A (en) Printer equipped with cutter
JPH05184185A (en) Speed control method for dc brushless motor