JPH066996A - Motor controller - Google Patents

Motor controller

Info

Publication number
JPH066996A
JPH066996A JP4158291A JP15829192A JPH066996A JP H066996 A JPH066996 A JP H066996A JP 4158291 A JP4158291 A JP 4158291A JP 15829192 A JP15829192 A JP 15829192A JP H066996 A JPH066996 A JP H066996A
Authority
JP
Japan
Prior art keywords
motor
speed
reversal
time
rotation
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.)
Granted
Application number
JP4158291A
Other languages
Japanese (ja)
Other versions
JP2723757B2 (en
Inventor
Hiroyuki Harada
博之 原田
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial 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 Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP4158291A priority Critical patent/JP2723757B2/en
Priority to US08/076,428 priority patent/US5442267A/en
Priority to EP93109726A priority patent/EP0574931A1/en
Publication of JPH066996A publication Critical patent/JPH066996A/en
Application granted granted Critical
Publication of JP2723757B2 publication Critical patent/JP2723757B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Exposure Or Original Feeding In Electrophotography (AREA)
  • Optical Systems Of Projection Type Copiers (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE:To enhance safety and to detect reversal time of motor highly accurately at low cost by making a decision that the motor has actually inverted when the rotational speed of motor drops below a reference speed and performing abnormality processing if reversal point of motor is not detected within a predetermined time after provision of reversal instruction. CONSTITUTION:Upon receiving a reversal command from a body control section, a motor control section 6 delivers a reversal instruction to a driver 7. The motor control section 6 then counts pulses delivered from a photointerrupter 5 and cauclates rotational speed of a motor 1 during a unit minute time. The motor control section makes a decision whether the calculated rotational speed is lower than a reference speed or not and assumes that the motor 1 has reversed if the calculated speed is lower than the reference speed. If the speed of the motor 1 does not drop below the reference speed even upon elapse of sufficient time for detecting reversal of the motor 1, a decision is made that the motor 1 is abnormal and the motor 1 is stopped. This constitution enhances safety in the motor control employing a single phase encoder.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はモータ制御装置に関
し、特に、モータを反転させる場合に、モータの反転位
置を正確に検出することのできるモータ制御装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motor control device, and more particularly to a motor control device capable of accurately detecting a reverse position of a motor when reversing the motor.

【0002】[0002]

【従来の技術】たとえば複写機やファクシミリ装置等に
おける原稿を照明走査するための光学系駆動用モータ
や、複写機に装着される自動原稿送り装置駆動用のモー
タにおいては、第1方向に回転して光学系や原稿搬送ベ
ルトを第1方向へ駆動し、所定のタイミングで第2方向
へ反転して、光学系や原稿搬送ベルトを第1方向と反対
の第2方向へ駆動する。
2. Description of the Related Art For example, a motor for driving an optical system for illuminating and scanning a document in a copying machine or a facsimile machine, or a motor for driving an automatic document feeder mounted in a copying machine rotates in a first direction. And drives the optical system and the document conveying belt in the first direction, reverses them in the second direction at a predetermined timing, and drives the optical system and the document conveying belt in the second direction opposite to the first direction.

【0003】このような光学系駆動や原稿搬送ベルトの
駆動においては、駆動反転位置を正確に制御する必要が
ある。そのためには、駆動源であるモータが実際に、ど
の時点で正転から逆転に切換わったかを検出する必要が
ある。ところで、回転するモータは、慣性があり、反転
命令信号が与えられても、直ちに正転から逆転に切換わ
るわけではなく、反転命令信号と実際にモータが正転か
ら逆転に反転する時とでは、時間のずれがある。それゆ
え、上述のような光学系駆動用モータや自動原稿送り装
置の搬送ベルト駆動用モータにおいては、モータに与え
る反転命令信号と、モータが実際に正転から逆転に反転
する時との時間のずれを正確に検出して、それを制御に
反映させなければ、精度の良い制御ができない。
In such optical system driving and driving of the original conveying belt, it is necessary to accurately control the driving reversal position. For that purpose, it is necessary to detect when the motor, which is the drive source, actually switches from normal rotation to reverse rotation. By the way, the rotating motor has inertia, and even if a reverse command signal is given, it does not immediately switch from normal rotation to reverse rotation, and it does not depend on the reverse command signal and when the motor actually reverses from normal rotation to reverse rotation. , There is a time lag. Therefore, in the above-described optical system driving motor and the conveying belt driving motor of the automatic document feeder, the time between the reversal command signal given to the motor and the time when the motor actually reverses from normal rotation to reverse rotation is set. Accurate control cannot be performed unless the deviation is accurately detected and reflected in the control.

【0004】従来のたとえば自動原稿送り装置の駆動用
モータの逆転制御では、特開昭61−174538号公
報に記載されたモータ反転時の検出制御がある。この公
開公報に記載の制御では、モータに連結されたエンコー
ダの出力パルスを検出し、モータに反転命令信号が与え
られた時刻t1と、エンコーダ出力が変化しなくなる時
刻t2との差を求めることで、モータに反転命令信号が
与えられた時t1と、実際にモータが反転を開始した時
t2とのずれ時間Tを検出するものである。
In the conventional reverse rotation control of a drive motor of an automatic document feeder, for example, there is a detection control at the time of motor reversal disclosed in Japanese Patent Laid-Open No. 61-174538. In the control described in this publication, the output pulse of the encoder connected to the motor is detected, and the difference between the time t1 when the inversion command signal is given to the motor and the time t2 when the encoder output stops changing is obtained. The time T between the time t1 when the inversion command signal is applied to the motor and the time t2 when the motor actually starts inversion is detected.

【0005】また、上述の公開公報に記載の制御に代え
て、たとえば、モータ軸に連動した位相の90度異なる
2相式のエンコーダを用いるものでも、モータの反転位
置を正確に検出することができる。位相の90度異なる
2相式のエンコーダでは、一般に、エンコーダが回転す
ることにより、図7Aに示すように、A相とB相のパル
スが出力される。そして、A相のパルスとB相のパルス
とは互いに90度の位相差を有している。それゆえ、モ
ータが正転時には、図7Bに示すように、A相のパルス
が立ち上がった時点におけるB相の信号レベルを検出す
ると、B相のレベルはたとえばハイである。
Further, in place of the control described in the above-mentioned publication, for example, a two-phase encoder that is interlocked with the motor shaft and has a phase difference of 90 degrees can be used to accurately detect the reverse position of the motor. it can. In a two-phase encoder having a phase difference of 90 degrees, generally, as the encoder rotates, pulses of A phase and B phase are output as shown in FIG. 7A. The A-phase pulse and the B-phase pulse have a phase difference of 90 degrees with each other. Therefore, when the motor rotates in the normal direction, as shown in FIG. 7B, when the B-phase signal level at the time when the A-phase pulse rises is detected, the B-phase level is, for example, high.

【0006】逆に、モータが逆転している場合は、図7
Cに示すように、A相のパルスが立ち上がった時点でB
相の信号レベルを検出すると、B相の信号レベルはたと
えばローである。それゆえ、A相のパルスが立ち上がっ
た時点におけるB相の信号レベルを検出することで、モ
ータが正転しているか、逆転しているかを正確に検出す
ることができる。
On the contrary, when the motor is rotating in the reverse direction, as shown in FIG.
As shown in C, when the phase A pulse rises, B
When the phase signal level is detected, the B phase signal level is low, for example. Therefore, by detecting the B-phase signal level at the time when the A-phase pulse rises, it is possible to accurately detect whether the motor is rotating in the normal direction or in the reverse direction.

【0007】[0007]

【発明が解決しようとする課題】上述した従来技術のう
ち、特開昭61−174538号公報に記載の制御で
は、反転命令信号が出力された時から、実際の反転が検
出されるまでのずれ時間Tが比較的長く、しかも、エン
コーダの出力が変化しなくなった時点の検出が正確に行
えないので、モータが実際に反転する時点を検出する制
御方法としては、精度が良くないという欠点があった。
Among the above-mentioned conventional techniques, in the control described in Japanese Patent Laid-Open No. 61-174538, there is a deviation from when the inversion command signal is output to when the actual inversion is detected. Since the time T is relatively long and the time when the output of the encoder does not change cannot be accurately detected, the control method for detecting the time when the motor actually reverses has a drawback that the accuracy is not good. It was

【0008】一方、上述の90度位相の異なる2相式の
エンコーダを用いる方法では、モータが実際に反転する
時点を正確に検出することができるが、2相式のエンコ
ーダは高価であり、しかも、エンコーダからの信号線が
2相式であるため1本多く、安価な装置を構成する場合
には適さないという欠点があった。それゆえ、構成が簡
易で、かつ、精度良くモータの実際の反転時点を検出す
ることができるモータ制御装置が望まれる。このような
モータ制御装置を発明するにあたっては、上述のよう
に、2相式のエンコーダを使用できないため、単相式の
エンコーダに基づいてモータの回転速度を検出する必要
がある。ところで、単相式のエンコーダに基づいてモー
タの回転速度を検出し、しかも反転時点を検出する場
合、万一、モータの反転が検出されない事態が生じる
と、モータに反転電圧が印加され続ける等の不具合があ
る。
On the other hand, in the method using the two-phase encoder having the 90-degree phase difference, the time when the motor actually reverses can be detected accurately, but the two-phase encoder is expensive and However, since the signal line from the encoder is of a two-phase type, there is one more line, which is not suitable for constructing an inexpensive device. Therefore, a motor control device having a simple structure and capable of accurately detecting the actual reversal time of the motor is desired. In inventing such a motor control device, since the two-phase encoder cannot be used as described above, it is necessary to detect the rotation speed of the motor based on the single-phase encoder. By the way, when the rotation speed of the motor is detected based on the single-phase encoder and the reversal time is detected, if the reversal of the motor is not detected, the reverse voltage is continuously applied to the motor. There is a defect.

【0009】そこでこの発明は、このような不具合がな
く、構成が簡易で精度良くモータの実際の反転時点を検
出可能なモータ制御装置を提供することを目的とする。
Therefore, an object of the present invention is to provide a motor control device which does not have such a problem, has a simple structure, and is capable of accurately detecting the actual reversal point of the motor.

【0010】[0010]

【課題を解決するための手段】請求項1記載の発明は、
モータの回転軸に連結され、モータ回転に連動して回転
信号を出力する回転信号出力手段と、回転信号出力手段
から出力される回転信号に基づいて、モータの回転速度
を算出する速度算出手段と、モータに反転命令を出力す
る手段と、反転命令出力後の速度算出手段で算出される
モータの回転速度が予め定める基準速度以下になったか
否かを判別する判別手段と、判別手段が回転速度が基準
速度以下になったと判別したことに応答して、モータの
反転時点を判定する反転検出手段と、反転命令出力後、
所定時間内に、モータの反転時点が検出されないときに
異常処理を行う異常処理手段とを含むことを特徴とする
モータ制御装置である。
The invention according to claim 1 is
Rotation signal output means connected to the rotation shaft of the motor and outputting a rotation signal in conjunction with the rotation of the motor; and speed calculation means for calculating the rotation speed of the motor based on the rotation signal output from the rotation signal output means. A means for outputting a reversal command to the motor, a discrimination means for discriminating whether or not the rotation speed of the motor calculated by the speed calculation means after the reversal instruction is output is equal to or lower than a predetermined reference speed, and the discrimination means is a rotation speed. In response to determining that the motor speed has become equal to or lower than the reference speed, the reverse detection means for determining the reverse time of the motor, and the output of the reverse command,
The motor control device includes an abnormality processing unit that performs abnormality processing when a motor reversal time is not detected within a predetermined time.

【0011】[0011]

【作用】この発明によれば、反転命令出力後、所定時間
内にモータの反転が検出されない場合は、異常事態と判
別され、所定の保護動作が行われるから、万一モータの
反転が検出されなかったときでも、危険な状態等になる
ことのない安全なモータ制御装置とすることができる。
According to the present invention, when the reversal of the motor is not detected within a predetermined time after the reversal command is output, it is determined that an abnormal situation has occurred and a predetermined protection operation is performed, so that the reversal of the motor is detected. It is possible to provide a safe motor control device that does not cause a dangerous state even when there is no such situation.

【0012】[0012]

【実施例】以下には、図面を参照して、この発明の一実
施例について詳細に説明をする。図1は、この発明の一
実施例にかかるモータ駆動制御装置の構成を示すブロッ
ク図である。図1を参照して説明すると、モータ1はた
とえばDCサーボモータであって、負荷2を駆動するた
めのものである。負荷2としては、たとえば複写機に装
着される自動原稿搬送装置の搬送ベルトが考えられる。
また、負荷2としては、複写機の原稿照明走査用の光学
系が考えられる。その他、負荷2としては、任意の駆動
部材が考えられる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a motor drive control device according to an embodiment of the present invention. Referring to FIG. 1, the motor 1 is, for example, a DC servo motor and is for driving the load 2. As the load 2, for example, a transport belt of an automatic document feeder mounted on a copying machine can be considered.
Further, as the load 2, an optical system for original document illumination scanning of a copying machine can be considered. In addition, as the load 2, any driving member can be considered.

【0013】モータ1の回転軸にはモータ1の回転状態
を検出するための検出器3が連結されている。検出器3
は、たとえば放射状に多数のスリットが形成された回転
円板4と、この回転円板4に光学的に結合されたフォト
インタラプタ5とによって構成された単相式のエンコー
ダとされている。このような構成にすると、検出器3を
簡易でかつ安価に構成することができる。この実施例で
は、回転円板4には、たとえば総数70〜80個のスリ
ットが放射状に形成されている。それゆえ、モータ1が
1回転すると、フォトインタラプタ5から70〜80個
のパルスが出力される。
A detector 3 for detecting the rotating state of the motor 1 is connected to the rotary shaft of the motor 1. Detector 3
Is a single-phase encoder composed of, for example, a rotary disk 4 having a large number of radial slits and a photointerrupter 5 optically coupled to the rotary disk 4. With such a configuration, the detector 3 can be configured simply and inexpensively. In this embodiment, for example, a total of 70 to 80 slits are radially formed on the rotary disc 4. Therefore, when the motor 1 makes one rotation, 70 to 80 pulses are output from the photo interrupter 5.

【0014】検出器3は、上述のような構成に代えて、
サーボモータ1の回転に周期的に連動したパルスを出力
する他の機器、たとえば周波数発生器を用いてもよい。
フォトインタラプタ5の出力パルスはモータ制御部6へ
与えられる。モータ制御部6には、マイクロコンピュー
タやメモリが備えられていて、モータ制御部6によって
モータ1が反転制御されるとともに、モータ1の実際の
反転時が検出される。
The detector 3 is replaced with the above-mentioned structure,
Other devices, such as a frequency generator, that outputs a pulse that is cyclically linked to the rotation of the servo motor 1 may be used.
The output pulse of the photo interrupter 5 is given to the motor controller 6. The motor control unit 6 is provided with a microcomputer and a memory, and the motor control unit 6 controls the motor 1 to reverse and at the same time detects when the motor 1 is actually reversed.

【0015】モータ制御部6の制御信号はドライバ7へ
与えられ、ドライバ7によってモータ1が回転される。
図2は、モータ制御部6から出力される反転命令信号
と、モータ1の実際の回転速度と、フォトインタラプタ
5から出力されるパルスに基づいてモータ制御部6が検
出する速度データおよび加速度データとの関係を表わす
波形図である。図2に示すように、反転命令がオンする
と、そのタイミングでモータ1の実速度は正転側の定速
回転から除々に下がり、時間t2でモータ1の回転は0
となり、時間t2から逆転する。
The control signal of the motor control unit 6 is given to the driver 7, and the driver 1 rotates the motor 1.
FIG. 2 shows an inversion command signal output from the motor control unit 6, the actual rotation speed of the motor 1, and speed data and acceleration data detected by the motor control unit 6 based on the pulse output from the photo interrupter 5. FIG. 6 is a waveform chart showing the relationship of As shown in FIG. 2, when the reversal instruction is turned on, the actual speed of the motor 1 gradually decreases from the constant speed rotation on the forward rotation side at that timing, and the rotation of the motor 1 becomes 0 at time t2.
And then reverses from time t2.

【0016】このモータ1の実速度は、フォトインタラ
プタ5の検出パルスに基づいて、モータ制御部6内で
は、図2Cのような階段状の速度データとして把握され
る。また、このモータ1の加速度は、フォトインタラプ
タ5の検出パルスに基づいて、モータ制御部6内で、図
2Dのような把握される。モータ制御部6内には、図2
Cおよび図2Dに示すデータを算出するために、図3に
示すようなフォトインタラプタ5のパルス幅データCW
DTを算出するための回路が備えられている。
The actual speed of the motor 1 is grasped in the motor control section 6 as stepwise speed data as shown in FIG. 2C based on the detection pulse of the photo interrupter 5. Further, the acceleration of the motor 1 is grasped in the motor control section 6 as shown in FIG. 2D based on the detection pulse of the photo interrupter 5. In the motor control unit 6, FIG.
C and pulse width data CW of the photo interrupter 5 as shown in FIG. 3 in order to calculate the data shown in FIG. 2D.
A circuit is provided for calculating DT.

【0017】図3を参照して説明すると、フォトインタ
ラプタ5から出力されるパルスはエッジ検出回路61へ
与えられる。エッジ検出回路61は、与えられるパルス
のたとえば立ち上がりエッジを検出して、その検出出力
を導出する。そしてその検出出力は、アップカウンタ6
2へ与えられてカウントされる。また、このパルス幅デ
ータCWDT算出回路には、基準クロックをアップカウ
ントするたとえば16ビット構成のフリーランニングカ
ウンタ63が備えられている。フリーランニングカウン
タ63は、基準クロックとしてたとえば周波数f=1.
5MHz程度のマイクロコンピュータのマシンクロック
をカウントする。
Referring to FIG. 3, the pulse output from the photo interrupter 5 is given to the edge detection circuit 61. The edge detection circuit 61 detects, for example, the rising edge of the applied pulse and derives the detection output. The detected output is the up counter 6
It is given to 2 and counted. Further, the pulse width data CWDT calculation circuit is provided with a free running counter 63 of, for example, a 16-bit configuration that counts up the reference clock. The free running counter 63 uses, for example, a frequency f = 1.
The machine clock of the microcomputer of about 5 MHz is counted.

【0018】一方、エッジ検出回路61の出力は、キャ
プチャ信号としてキャプチャレジスタ64へ与えられ
る。キャプチャレジスタ64は、エッジ検出回路61か
ら与えられるキャプチャ信号をトリガとしてフリーラン
ニングカウンタ63のカウント数を読取保持する。した
がって、キャプチャレジスタ64の内容はエッジ検出回
路61の出力、すなわちフォトインタラプタ5から出力
されるパルスの立ち上がりエッジによって更新されてい
く。
On the other hand, the output of the edge detection circuit 61 is given to the capture register 64 as a capture signal. The capture register 64 reads and holds the count number of the free-running counter 63 by using the capture signal given from the edge detection circuit 61 as a trigger. Therefore, the content of the capture register 64 is updated by the output of the edge detection circuit 61, that is, the rising edge of the pulse output from the photo interrupter 5.

【0019】それゆえ、図4に示すように、ある時点Δ
t1において、アップカウンタ62のカウント数がUD
Cmであり、またそのときのキャプチャレジスタ64の
カウント数がCPTmであり、その時点Δt1から単位
微小時間Δt後のΔt2におけるアップカウンタ62の
カウント数をUDCn、キャプチャレジスタ64のカウ
ント数をCPTnとすれば、フォトインタラプタ5から
与えられるパルス幅データCWDTは、
Therefore, as shown in FIG.
At t1, the count number of the up counter 62 is UD
Cm and the count number of the capture register 64 at that time is CPTm. For example, the pulse width data CWDT given from the photo interrupter 5 is

【0020】[0020]

【数1】 [Equation 1]

【0021】なお、図3においては、アップカウンタ6
2が用いられているものとして説明したが、このアップ
カウンタ62に代えて、モータ1が反転したことが検出
されると、ダウンカウントに切換わるアップダウンカウ
ンタを用いたものとしてもよい。上述の式(1)におい
ては、アップダウンカウンタを用いた場合を考慮して、
右辺の分母は絶対値がとられている。
In FIG. 3, the up counter 6
Although it has been described that 2 is used, the up counter 62 may be replaced with an up / down counter that switches to down counting when it is detected that the motor 1 is reversed. In the above formula (1), considering the case of using the up-down counter,
The denominator on the right side is the absolute value.

【0022】また、単位微小時間Δtの間の平均加速度
は、
The average acceleration during the unit minute time Δt is

【0023】[0023]

【数2】 [Equation 2]

【0024】で求めることができる。ところで、モータ
1が反転する場合は、モータ1の実速度は正転側から除
々に減速し、やがて0になり、逆転側になって除々に加
速する。ところが、モータ制御部6内で算出される速度
データは、モータ1の実速度が0になっても、図2Cに
示すように速度データは0にならず、正確な反転時の検
出が困難である。
It can be obtained by By the way, when the motor 1 reverses, the actual speed of the motor 1 gradually decelerates from the forward rotation side, eventually becomes 0, and gradually increases to the reverse rotation side. However, in the speed data calculated in the motor control unit 6, even if the actual speed of the motor 1 becomes 0, the speed data does not become 0 as shown in FIG. is there.

【0025】そこで、一つの実施例では、図2Cに示す
速度データが予め定める基準速度以下になったときにモ
ータ1が反転したとみなすか、または、より正確なモー
タ1の反転時を決めるために、速度データが基準速度以
下になった時から所定の微小時間Δt0を経過した時
に、モータ1が反転したと判別するようにした。また、
他の実施例としては、図2Cに示す速度データが予め定
める基準速度Nth以下になり、かつ、その場合に図2
Dに示す加速度データが負から正に反転した時点を、モ
ータ1が反転した時点とみなすようにした。
Therefore, in one embodiment, when the speed data shown in FIG. 2C becomes equal to or less than a predetermined reference speed, it is considered that the motor 1 is reversed, or a more accurate reversal time of the motor 1 is determined. In addition, when the predetermined minute time Δt0 has passed since the speed data became lower than the reference speed, it is determined that the motor 1 has reversed. Also,
In another embodiment, the speed data shown in FIG. 2C is equal to or lower than a predetermined reference speed Nth, and in that case, the speed data shown in FIG.
The time when the acceleration data shown in D is reversed from negative to positive is regarded as the time when the motor 1 is reversed.

【0026】さらに、これらの各実施例において、反転
命令が出力されて後、所定時間内にモータ1の反転が判
定されなかった場合は、異常事態であるとして保護処理
がされるようにして、単相エンコーダを用いたモータ制
御における安全性の向上が図られている。次に、第5図
のフローチャートを参照して、モータ制御部6の制御動
作の一例について説明をする。
Further, in each of these embodiments, when the reversal of the motor 1 is not judged within a predetermined time after the reversal command is output, the protection processing is performed as an abnormal situation, The safety of motor control using a single-phase encoder has been improved. Next, an example of the control operation of the motor control unit 6 will be described with reference to the flowchart of FIG.

【0027】このモータ1がたとえば複写機に装着され
た自動原稿搬送装置の搬送ベルト駆動用のモータであ
り、モータ制御部6がそのモータの制御部であるとす
る。すると、モータ制御部6には、自動原稿搬送装置の
全体制御を行う本体制御部から反転指令が与えられる。
応じて、モータ制御部6はドライバ7に対して反転命令
を出力する。また、異常検出用タイマ3をスタートさせ
る(ステップS1)。
It is assumed that the motor 1 is a motor for driving a conveyor belt of an automatic document feeder installed in a copying machine, and the motor controller 6 is a controller for the motor. Then, the motor control unit 6 is given a reversal instruction from the main body control unit that controls the entire automatic document feeder.
In response, the motor control unit 6 outputs an inversion instruction to the driver 7. Further, the abnormality detection timer 3 is started (step S1).

【0028】次いで、タイマ1をスタートさせる(ステ
ップS2)。タイマ1は、単位微小時間Δtを計時する
ためのものである。次いで、フォトインタラプタ5から
入力されるパルスがカウントされる(ステップS3)。
そして、単位微小時間Δtが経過するまでの間、パルス
のカウントが続けられる(ステップS4,S3,S
4)。
Next, the timer 1 is started (step S2). The timer 1 is for measuring a unit micro time Δt. Next, the pulses input from the photo interrupter 5 are counted (step S3).
Then, pulse counting is continued until the unit minute time Δt elapses (steps S4, S3, S).
4).

【0029】このパルスのカウントは、図3を参照して
説明したように、アップカウンタ62でパルス数がカウ
ントされるとともに、その間の基準クロックの数がキャ
プチャレジスタ64でカウントされる。そして、単位微
小時間Δtが経過すると、その単位微小時間Δtの間に
カウントされたアップカウンタ62のパルス数(UDC
n−UDCm)およびその単位微小時間Δtの間のキャ
プチャレジスタ64のカウント数の変化(CPTn−C
PTm)に基づいて、パルス幅データCWDTが求めら
れ、かつ、式(2)に基づいてモータ1の回転速度Nが
求められる(ステップS5)。
As for the counting of this pulse, as described with reference to FIG. 3, the number of pulses is counted by the up counter 62, and the number of reference clocks during that time is counted by the capture register 64. When the unit minute time Δt elapses, the number of pulses (UDC) of the up counter 62 counted during the unit minute time Δt.
n-UDCm) and the change in the count number of the capture register 64 during the unit minute time Δt (CPTn-C
The pulse width data CWDT is obtained based on PTm), and the rotation speed N of the motor 1 is obtained based on equation (2) (step S5).

【0030】そして、その算出された速度Nが基準速度
Nth以下か否かの判別がされる(ステップS6)。判
別の結果、算出されたNが基準速度Nth以下でなけれ
ば、次に、タイマ3がタイムアップしたか否かの判別が
される(ステップS7)。タイマ3は、上述したように
異常検出用タイマであり、タイマ3の計時時間は、反転
検出に必要十分な時間が予め設定されている。それゆ
え、正常動作をしている限り、タイマ3はこの時点でタ
イムアップしない。したがって、ステップS2からの制
御が繰返されて、次の単位微小時間Δtの間の速度Nが
算出されることになる(ステップS2〜S5)。
Then, it is judged whether or not the calculated speed N is less than or equal to the reference speed Nth (step S6). As a result of the determination, if the calculated N is not equal to or less than the reference speed Nth, then it is determined whether or not the timer 3 has timed up (step S7). The timer 3 is an abnormality detection timer as described above, and the time measured by the timer 3 is preset to a time sufficient for reversal detection. Therefore, as long as it is operating normally, the timer 3 does not time up at this point. Therefore, the control from step S2 is repeated, and the speed N during the next unit micro time Δt is calculated (steps S2 to S5).

【0031】一方、ステップS7において、万一タイマ
3がタイムアップしたと判別された場合、すなわちタイ
マ3で設定されているモータ1の反転検出に必要十分な
時間が経過しても、まだモータ1の速度Nが所定の基準
速度Nth以下にならない場合は、異常状態であると判
断されてモータ1が停止され(ステップS8)、この制
御は終わる。
On the other hand, if it is determined in step S7 that the timer 3 has timed out, that is, even if the time required for the reverse rotation detection of the motor 1 set by the timer 3 has elapsed, the motor 1 is still running. If the speed N is not equal to or lower than the predetermined reference speed Nth, it is determined to be in an abnormal state, the motor 1 is stopped (step S8), and this control ends.

【0032】なお、モータ1を直ちに停止させるのに代
えて、たとえばモータ1を所定の速度で所定の時間だけ
回転させ続けた後、駆動を停止せさるようにしてもよ
い。このように、タイマ3がタイムアップしたことに基
づき、モータ1に対する保護処理がされる点が、この実
施例における特徴である。モータ1の制御が正常に行わ
れている場合には、タイマ3がタイムアップするまで
に、ステップS6において、算出された回転速度Nが基
準速度Nth以下と判別される。そうすると、タイマ2
がスタートされる(ステップS9)。タイマ2は、予め
定める微小時間Δt0を計時するためのタイマである。
Instead of immediately stopping the motor 1, for example, the driving may be stopped after the motor 1 is continuously rotated at a predetermined speed for a predetermined time. As described above, the characteristic feature of this embodiment is that the protection process is performed on the motor 1 based on the time-up of the timer 3. When the control of the motor 1 is normally performed, it is determined in step S6 that the calculated rotation speed N is equal to or lower than the reference speed Nth before the timer 3 times out. Then timer 2
Is started (step S9). The timer 2 is a timer for measuring a predetermined minute time Δt0.

【0033】タイマ2がスタートした後、タイマ2が予
め定める微小時間Δt0を計時してタイムアップしたこ
とが判別されると(ステップS10)、その時点でモー
タ1が反転したと判別される(ステップS11)。この
ような制御を行うと、タイマ2で計時している時間が微
小時間Δt0であるから、先に説明した特開昭61−1
74538号公報のように、相対的に長い時間Tに基づ
く時間観察によってモータ1の反転時期を検出しないた
め、モータ1の反転時を正確に判定できるという利点が
ある。
After the timer 2 is started, when it is determined that the timer 2 has timed up by measuring a predetermined minute time Δt0 (step S10), it is determined that the motor 1 is reversed at that time (step S10). S11). When such control is performed, the time measured by the timer 2 is a minute time Δt0, so that the above-mentioned Japanese Patent Laid-Open No. 61-1
As in Japanese Patent No. 74538, since the reversal timing of the motor 1 is not detected by time observation based on the relatively long time T, there is an advantage that the reversal time of the motor 1 can be accurately determined.

【0034】また、この実施例では、モータ1の回転速
度Nが基準速度Nth以下になった後に、タイマ2をス
タートさせるようにしたが、モータ1の速度が所定速度
以下になったか否かの判定しきい値(基準速度Nth)
を十分に低くすることにより、ステップS6における基
準速度Nth以下の判定がされた時点で、モータ1が反
転したとみなすことも可能である。
Further, in this embodiment, the timer 2 is started after the rotational speed N of the motor 1 becomes equal to or lower than the reference speed Nth. However, whether the speed of the motor 1 is equal to or lower than a predetermined speed is determined. Judgment threshold (reference speed Nth)
It is also possible to consider that the motor 1 is reversed at the time when it is determined that the speed is equal to or lower than the reference speed Nth in step S6 by sufficiently lowering.

【0035】図6は、モータ制御部6の他の制御動作を
説明するためのフローチャートである。図6に示すフロ
ーチャートでは、モータ制御部6がモータ1の反転時点
を検出するのに加速度データを活用する例が示されてい
る。図6を参照して説明すると、モータ制御部6に自動
原稿搬送装置の全体制御を行う本体制御部から反転命令
が与えられると、モータ制御部6はドライバ7に対して
反転命令を出力するとともに、異常検出用タイマ3をス
タートさせる(ステップS21)。
FIG. 6 is a flow chart for explaining another control operation of the motor control unit 6. The flowchart shown in FIG. 6 shows an example in which the motor control unit 6 uses the acceleration data to detect the reversal time of the motor 1. Referring to FIG. 6, when a reversing instruction is given to the motor control section 6 from the main body control section that controls the entire automatic document feeder, the motor control section 6 outputs the reversal instruction to the driver 7. , The abnormality detection timer 3 is started (step S21).

【0036】次いで、タイマ1をスタートさせる(ステ
ップS22)。タイマ1は、単位微小時間Δtを計時す
るためのものである。次いで、フォトインタラプタ5か
ら入力されるパルスがカウントされる(ステップS2
3)。そして、単位微小時間Δtが経過するまでの間、
パルスのカウントが続けられる。このパルスのカウント
は、図3を参照して説明したように、アップカウンタ6
2でパルス数がカウントされるとともに、その間の基準
クロックの数がキャプチャレジスタ64でカウントされ
る。
Then, the timer 1 is started (step S22). The timer 1 is for measuring a unit micro time Δt. Next, the pulses input from the photo interrupter 5 are counted (step S2).
3). Then, until the unit minute time Δt elapses,
The pulse counting continues. This pulse counting is performed by the up counter 6 as described with reference to FIG.
The number of pulses is counted at 2 and the number of reference clocks during that time is counted at the capture register 64.

【0037】そして、単位微小時間Δtが経過すると、
その単位微小時間Δtの間にカウントされたアップカウ
ンタ62のパルス数(UDCn−UDCm)およびその
単位微小時間Δtの間のキャプチャレジスタ64のカウ
ント数の変化(CPTn−CPTm)に基づいて、パル
ス幅データCWDTが求められ、かつ、式(2)に基づ
いてモータ1の回転速度Nが求められる(ステップS2
5)。
When the unit minute time Δt elapses,
The pulse width is based on the number of pulses of the up counter 62 (UDCn-UDCm) counted during the unit minute time Δt and the change in the number of counts of the capture register 64 (CPTn-CPTm) during the unit minute time Δt. The data CWDT is obtained, and the rotation speed N of the motor 1 is obtained based on the equation (2) (step S2).
5).

【0038】また、単位微小時間Δtの間の加速度αが
算出される(ステップS26)。加速度αは、上述した
式(3)により求められる。そして、次のステップS2
7において、ステップS5で算出された速度Nが基準速
度Nth以下か否かの判別がされる。その結果、算出さ
れた速度Nが基準速度Nth以下でなければ、次いで、
タイマ3がタイムアップしたか否かの判別がされる(ス
テップS28)。
Further, the acceleration α during the unit minute time Δt is calculated (step S26). The acceleration α is obtained by the above-mentioned formula (3). Then, the next step S2
In 7, it is determined whether or not the speed N calculated in step S5 is less than or equal to the reference speed Nth. As a result, if the calculated speed N is not less than or equal to the reference speed Nth, then
It is determined whether or not the timer 3 has timed out (step S28).

【0039】タイマ3は、上述したように、異常検出用
タイマであり、モータ1の反転検出に必要十分な時間を
計時するためのものである。それゆえ、正常状態におい
ては、この時点でタイマ3はタイムアップしないから、
ステップS22からの制御が繰返されて、次の単位微小
時間Δtの間の速度Nが算出され、その間の加速度αが
求められる(ステップS22〜S26)。
As described above, the timer 3 is an abnormality detecting timer, and is for measuring a time necessary and sufficient for detecting the reverse rotation of the motor 1. Therefore, in the normal state, the timer 3 does not expire at this point,
The control from step S22 is repeated, the speed N during the next unit minute time Δt is calculated, and the acceleration α during that time is obtained (steps S22 to S26).

【0040】もし、ステップS28においてタイマ3が
タイムアップしたと判別されると、モータ1の反転に必
要十分な時間内においてモータ1の速度Nが基準速度N
th以下にならなかったわけであるから、異常であると
判別されてモータ1が停止される(ステップS29)。
このように、この実施例においてはタイマ3がタイムア
ップしたことに基づいて保護動作としてモータ1が直ち
に停止されるよう制御される。
If it is determined in step S28 that the timer 3 has timed out, the speed N of the motor 1 is set to the reference speed N within the time necessary and sufficient for reversing the motor 1.
Since it has not become less than th, it is judged to be abnormal and the motor 1 is stopped (step S29).
As described above, in this embodiment, the motor 1 is controlled so as to be immediately stopped as a protective operation based on the time-up of the timer 3.

【0041】なお、モータ1を直ちに制御させるのに代
えて、所定の低速度で所定の時間だけ駆動した後に停止
させるようにしてもよい。正常な制御においては、タイ
マ3がタイムアップするまでの間に、ステップS27に
おいて、算出された回転速度Nが基準速度Nth以下に
なったことが判別される。すると、加速度αが正になっ
たか否かの判別がされる(ステップS30)。加速度α
は、図2Dに示すように、モータ1が減速中は負であ
り、モータ1が加速状態にあると正に反転する。したが
って、加速度αが正でないとき、すなわち加速度αが負
であれば、モータ1は反転しておらず減速中であるとい
うことになる。
Instead of immediately controlling the motor 1, the motor 1 may be driven at a predetermined low speed for a predetermined time and then stopped. In normal control, it is determined in step S27 that the calculated rotation speed N has become equal to or lower than the reference speed Nth before the timer 3 times out. Then, it is determined whether or not the acceleration α has become positive (step S30). Acceleration α
2D is negative while the motor 1 is decelerating and is positively reversed when the motor 1 is in an accelerating state, as shown in FIG. 2D. Therefore, when the acceleration α is not positive, that is, when the acceleration α is negative, the motor 1 is not reversing and is decelerating.

【0042】加速度αが正でない場合は、次いで、タイ
マ3がタイムアップしたか否かの判別がされる(ステッ
プS31)。もし、タイマ3がタイムアップするまでに
加速度αが正にならなければ、反転検出に必要十分な時
間内にモータ1の反転が検出されないわけであるから、
異常事態であると判別され、モータ1は停止される(ス
テップS29)。
If the acceleration α is not positive, then it is determined whether the timer 3 has timed out (step S31). If the acceleration α does not become positive by the time the timer 3 times up, the reversal of the motor 1 is not detected within the time necessary and sufficient for reversal detection.
It is determined that there is an abnormal situation, and the motor 1 is stopped (step S29).

【0043】正常な状態では、ステップS31におい
て、タイマ3はタイムアップしていないと判別されるか
ら、ステップS30において、加速度αが正になった時
点で、モータ1の反転が検出される(ステップS3
2)。以上の図5および図6に示すフローチャートは、
この発明の実施例にかかる制御であり、この発明は、図
5および図6のフローチャートに制限されず、種々の変
更が可能である。
In a normal state, in step S31, it is determined that the timer 3 has not timed up, so in step S30, the reversal of the motor 1 is detected when the acceleration α becomes positive (step S30). S3
2). The flowcharts shown in FIGS. 5 and 6 above are
The control according to the embodiment of the present invention is not limited to the flowcharts of FIGS. 5 and 6, and various modifications can be made.

【0044】[0044]

【発明の効果】この発明は、以上のように構成されてお
り、安価な構成でモータの反転時期を精度良く判定する
ことができるとともに、万一、モータの反転時期が判定
されない場合には、異常状態であると判定されてモータ
が停止されるので、安全性が高く、モータの反転時期を
安価にかつ精度良く検出できるモータ制御装置とするこ
とができる。
The present invention is configured as described above, and the motor reversal timing can be accurately determined with an inexpensive structure, and if the motor reversal timing is not determined, Since it is determined that the motor is in an abnormal state and the motor is stopped, it is possible to provide a motor control device that is highly safe and can detect the reversal timing of the motor inexpensively and accurately.

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

【図1】この発明の一実施例にかかるモータ制御装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a motor control device according to an embodiment of the present invention.

【図2】この発明の一実施例にかかるモータ制御装置に
おける反転命令と、モータの実速度と、検出されたモー
タの速度データとの関係を表わす波形図である。
FIG. 2 is a waveform diagram showing a relationship between a reversal command, an actual motor speed, and detected motor speed data in the motor control device according to the embodiment of the present invention.

【図3】この発明の一実施例におけるパルス幅データ算
出回路の一例を示すブロック図である。
FIG. 3 is a block diagram showing an example of a pulse width data calculation circuit in an embodiment of the present invention.

【図4】パルス幅の算出原理を説明するための図であ
る。
FIG. 4 is a diagram for explaining a calculation principle of a pulse width.

【図5】この発明の一実施例におけるモータ反転検出制
御の内容を表わすフローチャートである。
FIG. 5 is a flowchart showing the contents of motor reversal detection control in one embodiment of the present invention.

【図6】この発明の他の実施例におけるモータ反転検出
制御の内容を表わすフローチャートである。
FIG. 6 is a flowchart showing the contents of motor reversal detection control in another embodiment of the present invention.

【図7】従来の2相式エンコーダの正転と逆転とを検出
する原理を説明するための波形図である。
FIG. 7 is a waveform diagram for explaining the principle of detecting normal rotation and reverse rotation of a conventional two-phase encoder.

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

1 モータ 2 負荷 3 検出装置 5 フォトインタラプタ 6 モータ制御部 1 motor 2 load 3 detection device 5 photo interrupter 6 motor control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】モータの回転軸に連結され、モータ回転に
連動して回転信号を出力する回転信号出力手段と、 回転信号出力手段から出力される回転信号に基づいて、
モータの回転速度を算出する速度算出手段と、 モータに反転命令を出力する手段と、 反転命令出力後の速度算出手段で算出されるモータの回
転速度が予め定める基準速度以下になったか否かを判別
する判別手段と、 判別手段が回転速度が基準速度以下になったと判別した
ことに応答して、モータの反転時点を判定する反転検出
手段と、 反転命令出力後、所定時間内に、モータの反転時点が検
出されないときに異常処理を行う異常処理手段とを含む
ことを特徴とするモータ制御装置。
1. A rotation signal output unit that is connected to a rotation shaft of a motor and outputs a rotation signal in association with the rotation of the motor, and a rotation signal output from the rotation signal output unit.
A speed calculation means for calculating the rotation speed of the motor, a means for outputting a reversal instruction to the motor, and a check as to whether or not the rotation speed of the motor calculated by the speed calculation means after the reversal instruction is output is below a predetermined reference speed. And a reversal detection unit that determines the reversal time of the motor in response to the discrimination unit determining that the rotation speed has become equal to or lower than the reference speed. A motor control device comprising: an abnormality processing unit that performs abnormality processing when a reversal time point is not detected.
JP4158291A 1992-06-17 1992-06-17 Motor control device Expired - Lifetime JP2723757B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP4158291A JP2723757B2 (en) 1992-06-17 1992-06-17 Motor control device
US08/076,428 US5442267A (en) 1992-06-17 1993-06-14 Device for controlling the reverse rotation of a motor and method of judging time point where the motor is actually rotated in a reverse direction
EP93109726A EP0574931A1 (en) 1992-06-17 1993-06-17 Device for controlling reverse rotation of motor and method of judging time point where motor is actually rotated in reverse direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4158291A JP2723757B2 (en) 1992-06-17 1992-06-17 Motor control device

Publications (2)

Publication Number Publication Date
JPH066996A true JPH066996A (en) 1994-01-14
JP2723757B2 JP2723757B2 (en) 1998-03-09

Family

ID=15668399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4158291A Expired - Lifetime JP2723757B2 (en) 1992-06-17 1992-06-17 Motor control device

Country Status (1)

Country Link
JP (1) JP2723757B2 (en)

Also Published As

Publication number Publication date
JP2723757B2 (en) 1998-03-09

Similar Documents

Publication Publication Date Title
KR910001853B1 (en) Method and apparatus for controlling torque of a door opening and closing motor for an automatic door
JP2009127347A (en) Automatic door driving device and automatic door device
US5442267A (en) Device for controlling the reverse rotation of a motor and method of judging time point where the motor is actually rotated in a reverse direction
JPH066996A (en) Motor controller
JP3696979B2 (en) Obstacle detection device for automatic door device
JPS59112308A (en) Numerical controller
US5941359A (en) Positioning apparatus
JP2000166275A (en) Servo control device by detecting current ripple
JP2769067B2 (en) Motor control device
EP0574931A1 (en) Device for controlling reverse rotation of motor and method of judging time point where motor is actually rotated in reverse direction
JPH066995A (en) Motor controller
JP4820053B2 (en) Motor rotation stop detection device
JP3480860B2 (en) Disturbance tracking type positioning control method
JPH07208976A (en) Rotational-position detection apparatus
JPH0522975A (en) Motor drive control method and apparatus
EP0475500A1 (en) Electronic device for controlling the speed and direction of rotation of a motor for a machine for making ice chips
KR0136976B1 (en) A control apparatus and method of brushless motor
JPH08194556A (en) Controller for cam switch
JP3102520B2 (en) Drive device for brushless motor
JP3337038B2 (en) Motor control method for bread maker
JPH06113576A (en) Motor controller
JP2600975B2 (en) Speed control method for synchronous motor
US20210072722A1 (en) Drive controller with self-contained correction function of position errors
JPH0766006B2 (en) Rotation stop control device
JP2529185B2 (en) Motor control circuit