JP3624322B2 - Motor control circuit and motor control method - Google Patents

Motor control circuit and motor control method Download PDF

Info

Publication number
JP3624322B2
JP3624322B2 JP25634194A JP25634194A JP3624322B2 JP 3624322 B2 JP3624322 B2 JP 3624322B2 JP 25634194 A JP25634194 A JP 25634194A JP 25634194 A JP25634194 A JP 25634194A JP 3624322 B2 JP3624322 B2 JP 3624322B2
Authority
JP
Japan
Prior art keywords
motor
predetermined
time
stop position
self
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP25634194A
Other languages
Japanese (ja)
Other versions
JPH08123552A (en
Inventor
信也 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Frontech 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 Fujitsu Ltd, Fujitsu Frontech Ltd filed Critical Fujitsu Ltd
Priority to JP25634194A priority Critical patent/JP3624322B2/en
Publication of JPH08123552A publication Critical patent/JPH08123552A/en
Application granted granted Critical
Publication of JP3624322B2 publication Critical patent/JP3624322B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、学習機能付のモータ制御回路およびモータ制御方法に関するものである。
【0002】
【従来の技術】
従来、モータを回転させてカッタを駆動し用紙を切断する方法がある。このときのモータ駆動方法は、図6の(1)から(4)に示すように、
(1) モータを正転(右周り)に回転させてカッタを駆動し、用紙を切断する。
【0003】
(2) その後、モータの回転に伴い回転する円盤の切り欠きの左端の部分でフォトトランジスタが投光された光を受光したときに、逆電流を50ms流してブレーキを行った後、実際に回転が停止するまでの補償時間200msを待つ。
【0004】
(3) (2)の補償時間200msを待った後、切り欠きの部分からフォトトランジスタが光を受光しない場合には、回り過ぎと判断し、逆転電流(例えば30ms逆転電流)を供給してモータが停止するまでの補償時間200msを待つ。
【0005】
(4) (3)の補償時間200msを経過後のモータが停止した位置でフォトトランジスタが光を受光したら、終了する。受光しない場合は、(3)を繰り返し、回り過ぎた部分を少しづつ逆転させる。
【0006】
【発明が解決しようとする課題】
従来の上述した図6の(1)から(4)のモータ制御方法によって用紙の切断動作を行うと、モータの慣性で動く時間が大きすぎ、実際の動作が止まるまでフォトトランジスタの状態チェックを行えないので、300ms〜400msという大きな時間ロスとなってしまい、全体のモータ制御に多くの時間が必要となってしまうという問題があった。
【0007】
本発明は、これらの問題を解決するため、モータを回転させて用紙カットなどの動作をさせた後、自己学習によって最適な逆電流ブレーキ時間を算出して以降はこの逆電流ブレーキ時間によって所望位置に停止させ、従来の慣性で動く補償時間を待つことを無くすと共に、バック処理を繰り返す時間ロスを無くし、迅速な最適なモータ制御を実現することを目的としている。
【0008】
【課題を解決するための手段】
図1を参照して課題を解決するための手段を説明する。
図1において、モータ制御部2は、モータ6を制御するものであって、モータ6に駆動電流を供給して所定の動作を実行させた後、所定位置に来たことを検出したときに、所定時間Tの間、ブレーキ電流をモータに供給した後、補償時間経過後に所定停止位置を通り過ぎていた場合に、逆転電流を供給して所定停止位置に戻すバック処理を繰り返して所定停止位置に停止させ、一方、補償時間経過後に所定停止位置に停止した場合に、バック処理を行わないように制御などするものである。
【0009】
モータ6は、回転して所定の動作を行った後、所定停止位置に停止して次の動作の待機するものである。
切り欠き8は、モータ6の位置を所定停止位置に停止させるためのものである。
【0010】
円盤7は、モータ6の回転に伴い回転するものであって、切り欠き8を設けて所定停止位置にモータ6を停止させるためのものである。
フォトトランジスタ9は、円盤7の切り欠き8が所定停止位置にきたことを検出するものである。
【0011】
【作用】
本発明は、図1に示すように、モータ制御部2がモータ6に駆動電流を供給して所定の動作を実行させた後、所定位置に来たことを検出したときに、初期値あるいは前回の値に所定値を足し込んで自己学習した所定時間Tの間、ブレーキ電流をモータに供給した後、補償時間経過後に所定停止位置を通り過ぎていた場合に、逆転電流を供給して所定停止位置に戻すバック処理を繰り返して所定停止位置に停止させ、一方、補償時間経過後に所定停止位置に停止した場合に、バック処理を行わないようにしている。
【0012】
この際、モータ6の回転に伴い回転する円盤7に切り欠き8を設け、当該切り欠き8の一端をフォトトランジスタ9によって光が検出されて通過したときを所定位置とし、当該切り欠き8のほぼ中央を所定停止位置とするようにしている。
【0013】
また、モータ6への電源投入時あるいはリセット時に自己学習を行い、自己学習後に当該自己学習した所定時間T(あるいは切り欠き8のほぼ中央にくるように補正した所定時間T)で固定し、短い時間で確実にモータを所定停止位置に停止させるようにしている。
【0014】
従って、モータ6を回転させて用紙カットなどの動作をさせた後、自己学習によって最適な逆電流ブレーキ時間Tを算出して以降はこの逆電流ブレーキ時間Tによって所望位置に停止させることにより、従来の慣性で動く補償時間を待つことを無くすと共に、バック処理を繰り返す時間ロスを無くし、迅速な最適なモータ制御を実現することが可能となった。
【0015】
【実施例】
次に、図1から図5を用いて本発明の実施例の構成および動作を順次詳細に説明する。
【0016】
図1は、本発明の1実施例構成図を示す。
図1の(a)は、構成図を示す。
図1の(a)において、コントローラ1は、モータ6を制御して本券用紙10をカッタ11の刃12によってカットするものであって、モータ制御部2などから構成されるものである。
【0017】
モータ制御部2は、モータ6を駆動したり、所定位置に停止させるなどするものである。
RAM3は、各種データなどを格納するものである。
【0018】
モータ6は、カッタ11を駆動して本券用紙10を切断するものである。
円盤7は、モータ6の回転に伴い回転するものであって、切り欠き8を設けてモータ6を所定停止位置に停止させるためのものである。
【0019】
切り欠き8は、円盤7の外周部に設けた所定幅Wの切り欠きであって、フォトトランジスタ9によって、投光された光を検出して位置検出するためのものである。
【0020】
フォトトランジスタ9は、円盤7の外周部に設けた切り欠き8を通って投光された光を検出する素子である。
本券用紙10は、切断対象の用紙である。
【0021】
カッタ11は、本券用紙10を切断する機構である。
カッタの刃12は、本券用紙10を切断する刃である。
アーム13は、モータ6の回転に伴い回転するここでは、円盤7の回転に伴い、カッタ11の刃12を駆動するものである。
【0022】
図1の(b)は、制御信号を示す。ここで、コントローラ1は、図示の信号を出力すると、モータ6は図示の下記の動作を行う。
動作 信号
正転 01
逆転 10
ブレーキ 11
次に、図2のフローチャートの順序に従い、図1の構成の動作を詳細に説明する。
【0023】
図2において、S1は、初期設定を行う。これは、右側に記載したように、
・T=50ms
・所定停止位置回転時間8ms
と初期設定する。ここで、Tは、逆電流ブレーキ時間(所定時間)である。所定停止位置回転時間は、図1の切り欠き8の左端の位置からほぼ中央に停止させるために必要な実験によって求めた時間である。
【0024】
S2は、モータを1回転、正転(右回り)させる。これは、図1の(a)のモータ制御部2が信号01をモータ6に供給し、当該モータ6を1回転正転させようとする。
【0025】
S3は、フォト停止位置か判別する。これは、図1の(a)のフォトトランジスタ9が切り欠き8を通過した光を検出したか判別する。YESの場合には、S4で本券用紙10のカットが終了したと判明すると共に、S5以降のカッタの位置補正のために行う、所定停止位置にモータ6を停止させる処理を行う。一方、S3のNOの場合には、フォトトランジスタ9が切り欠き8を通過した光を検出するのを待機する。
【0026】
S5は、電源投入後の最初のカットか判別する。YESの場合には、S6に進む。NOの場合には、S12に進む。
S6は、逆電流ブレーキ時間T=50ms(S1で初期設定された逆電流ブレーキT=50ms)の間、逆電流をモータ6に流す。
【0027】
S7は、モータブレーキ停止補償時間200msの間、待ってモータ6が停止するのを待機する。
S8は、フォト停止位置か判別する。これは、S7でモータ6が停止した位置がフォト停止位置か判別する。YESの場合には、モータ6が所定停止位置に停止したと判明したので終了する。NOの場合には、モータ6が所定停止位置を通過したと判明したので、S9でモータ逆回転30msの間、モータ6を逆回転させ、S10でモータブレーキ停止補償時間200msを経過してモータ6が停止するのを待ち、S11でモータ逆回転動作フラグをONにセットし、S8に戻って繰り返し、所定停止位置に戻るまでバック処理を繰り返す。
【0028】
以上のS5のYESからS11によって、電源投入の最初の本券用紙10のカットの場合には、フォトトランジスタ9によって切り欠き8の左端で光を検出したときから、逆電流ブレーキ時間T=50ms(初期値)のブレーキを行った後(S6、S7)、バック処理(S8からS11)を繰り返し、所定停止位置までモータ6を徐々に逆回転させる。
【0029】
S12は、S5のNOで電源投入の最初のカットではなくて、2回目以降のカットと判明したので、逆回転動作フラグがONか判別する(S11で逆回転フラグがONにセットされたか判別する)。ONの場合には、前回にモータ6を逆回転させたと判明したので、S13からS15およびS8からS11で自己学習を行う。OFFの場合には、前回にモータ6を逆回転させていないと判明したので、S16で逆電流ブレーキ時間Tに+8msを足し込んでこの更新した逆電流ブレーキ時間Tの間、モータ6をブレーキして切り欠き8のほぼ中央位置でモータ6が停止するようにし、S17でモータブレーキ停止補償時間50ms経過後に所定停止位置にモータ6を停止して終了する。
【0030】
S13は、逆電流ブレーキ時間Tに+2msを足し込んだ更新した逆電流ブレーキ時間Tの間、逆電流をモータ6に流す。
S14は、モータブレーキ停止補償時間200msの間、待ってモータ6が停止するのを待機する。
【0031】
S15は、モータ逆回転フラグをOFFにリセットし、S8に進む。
S8は、フォト停止位置か判別する。これは、S15でモータ6が停止した位置がフォト停止位置か判別する。YESの場合には、モータ6が所定停止位置に停止したと判明したので終了する。そして、次回のカット時には、S5のNO、S12のOFF、S16、S17によって一連の自己学習を終了する。一方、S8のNOの場合には、モータ6が所定停止位置を通過したと判明したので、S9でモータ逆回転30msの間、モータ6を逆回転させ、S10でモータブレーキ停止補償時間200msを経過してモータ6が停止するのを待ち、S11でモータ逆回転動作フラグをONにセットし、S8に戻って繰り返し、所定停止位置に戻るまでバック処理を繰り返す。そして、次回のカット時には、S5のNO、S12のON、S13、S14、S15、S8からS11を繰り返し、自己学習を繰り返す。
【0032】
以上のS5のNO、S12のON、S13からS15、S8からS11によって、電源投入の2回目以降の本券用紙10のカットの場合には、フォトトランジスタ9によって切り欠き8の左端で光を検出したときから、逆電流ブレーキ時間T(自己学習によって1回目50ms、2回目52ms、3回目54ms・・・)のブレーキを行った後(S13、S14)、バック処理(S8からS11)を繰り返し、所定停止位置までモータ6を徐々に逆回転させることを、本券用紙10のカット毎に繰り返し、逆電流ブレーキ時間Tの自己学習を行う。そして、モータ逆転が不要となった時点で自己学習を終了し、次回以降はこの自己学習した逆電流ブレーキ時間Tの間、ブレーキを行い、所定停止位置にモータ6を正確に停止させることが可能となる。
【0033】
図3は、本発明の動作説明図を示す。これは、既述した図2の自己学習するときの様子を示したものである。
図3の(a)は、1回目の動作を示す。これは、図2のS1からS4、S5のYES、S6からS11の処理を行ったときの様子を表す。詳述すれば、フォト信号がONの時点で、モータ6の駆動を停止し、逆電流を▲2▼50ms(初期値T)の間、流し、200msのモータブレーキ停止補償時間の経過後に、フォト信号がONとならないので、n回繰り返し、フォト信号がONとなった時点で終了し、所定停止位置にモータ6をバック処理する。この1回目では、逆電流ブレーキ時間Tは、50ms+2=52msと更新する。
【0034】
図3の(b)は、2回目の動作を示す。これは、図2のS1からS4、S5のNO、S12のON、S13からS15、S8からS11の処理を行ったときの様子を表す。詳述すれば、フォト信号がONの時点で、モータ6の駆動を停止し、逆電流を▲2▼52ms(初期値に2msを足し込んだ52ms)の間、流し、200msのモータブレーキ停止補償時間の経過後に、フォト信号がONとならないので、m回繰り返し、フォト信号がONとなった時点で終了し、所定停止位置にモータ6をバック処理する。この2回目では、逆電流ブレーキ時間Tは、52ms+2=54msと更新する。
【0035】
図3の(c)は、n回目の動作を示す。これは、図2のS1からS4、S5のNO、S12のON、S13からS15、S8の最初にYESとなったときの様子を表す。これは、今回のS13の逆電流ブレーキ時間Tに+2msを足し込んんでブレーキしてモータブレーキ停止補償時間▲4▼50msの経過後にフォト停止位置に丁度モータ6が停止して逆転が不要となったものである。
【0036】
図3の(d)は、時間固定後の動作を示す。これは、図3の(c)で逆回転が不要となった次回において、図2のS1からS4、S5のNO、S12のOFF、S16、S17のときの様子を表す。これは、前回の自己学習でフォト停止位置に丁度モータ6が停止したのでモータ逆転動作フラグがOFFにされたままであったので、今回はS12のOFFとなり、S16で逆電流ブレーキ時間Tに+8msして切り欠き8のほぼ中央の位置でモータ6が停止するようにし、S17でモータブレーキ停止補償時間50ms経過後に一連の処理を終了するようにしたものである。詳述すれば、フォト信号がONの時点で、モータ6の駆動を停止し、逆電流を▲2▼50+Xms(初期値にX(前回までの2msの足し込みの総数)を足し込んだ時間)+8msの間、流し、▲4▼50msのモータブレーキ停止補償時間の経過後に、フォト信号がONのままであり、一連のモータ停止処理を終了する。
【0037】
図4は、本発明の学習説明図を示す。
▲1▼は、自己学習回数であって、電流投入後の最初のカットからバック処理が無くなるまでのカット回数を表す。この▲1▼は、例えば既述した図3の(a)の1回目、(b)の2回目、・・・(c)のn回目(n=23回の場合)を表す。
【0038】
▲2▼は、逆電流ブレーキ時間Tの値が自己学習される変化を表す。
▲3▼は、図3のXの値であって、逆電流ブレーキ時間Tに足し込んだ値を表す。
▲4▼は、モータ停止までの補償時間を表す。
【0039】
▲5▼は、カッタモータ全体の処理時間を表す。
実際に図1の構成のモータ6(カッタモータ)について自己学習回数を実測した結果、モータによって若干バラツキがあるが、平均してバック処理が3回以内(自己学習が3回以内)で、固定時間と自己学習させることができ、従来の図6の場合の660msを本願発明によリ292msに短縮することができ、2.26分の1に短縮することができた。
【0040】
図5は、本発明の切り欠き例を示す。これは、図1のモータ6の回転に伴い回転する円盤7の切り欠き8の形状を示したものである。ここで、実線の○の位置がフォトトランジスタ9の受光部になったときがモータ6の所定停止位置である。左側の点線の○の位置がモータ6の駆動を停止し、逆電流ブレーキを開始させる位置である。右側の点線の○の位置がモータ6を逆回転させてフォトトランジスタ9で検出した位置である。
【0041】
以上のように、円盤7に所定幅Wの切り欠き8を設けることにより、当該切り欠き8の先端がフォトトランジスタ9で検出されたときにモータ6の駆動を停止および逆電流ブレーキ時間Tの間、ブレーキして停止した位置が、切り欠き8の幅Wを通過してしまったときはバック処理を行うと共に逆電流ブレーキ時間Tを増大させることを繰り返して自己学習を行う。そして、ブレーキして停止した位置が、切り欠き8の幅Wの丁度右端のときに自己学習が終了し、当該右端からほぼ中央の位置にするためにここでは、8msを逆電流ブレーキ時間Tに加算している。これにより、所定幅Wを持つ切り欠き8によって正確に所定停止位置にモータ6を自己学習させて停止させることが可能となる。
【0042】
【発明の効果】
以上説明したように、本発明によれば、モータ6を回転させて用紙カットなどの動作をさせた後、自己学習によって最適な逆電流ブレーキ時間Tを算出して以降はこの逆電流ブレーキ時間Tによって所望位置に停止させる構成を採用しているため、従来の慣性で動く補償時間を待つことを無くすと共に、バック処理を繰り返す時間ロスを無くし、迅速な最適なモータ制御を実現することができる。これらにより、モータ6を用いて所定の動作をさせた後、所定停止位置に停止するまでの要する処理時間を大幅に短縮、例えば660msを292msに短縮することができた。
【図面の簡単な説明】
【図1】本発明の1実施例構成図である。
【図2】本発明の動作説明フローチャートである。
【図3】本発明の動作説明図である。
【図4】本発明の学習説明図である。
【図5】本発明の切り欠き例である。
【図6】従来技術の説明図である。
【符号の説明】
1:コントローラ
2:モータ制御部
3:RAM
6:モータ
7:円盤
8:切り欠き
9:フォトトランジスタ
10:本券用紙
11:カッタ
12:カッタの刃
13:アーム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a motor control circuit with a learning function and a motor control method.
[0002]
[Prior art]
Conventionally, there is a method of cutting a sheet by driving a cutter by rotating a motor. The motor driving method at this time is as shown in (1) to (4) of FIG.
(1) The cutter is driven by rotating the motor in the normal direction (clockwise) to cut the paper.
[0003]
(2) After that, when the light projected by the phototransistor is received at the left end of the notch of the rotating disk that rotates with the rotation of the motor, the reverse current is applied for 50 ms to perform braking, and then the actual rotation Waits for a compensation time of 200 ms until it stops.
[0004]
(3) After waiting for the compensation time of 200 ms in (2), if the phototransistor does not receive light from the notched portion, it is determined that the phototransistor has rotated too much, and a reverse current (for example, 30 ms reverse current) is supplied to Wait for a compensation time of 200 ms before stopping.
[0005]
(4) When the phototransistor receives light at the position where the motor has stopped after the compensation time of 200 ms in (3), the process ends. If it does not receive light, repeat (3) and reverse the overturned portion little by little.
[0006]
[Problems to be solved by the invention]
When the paper cutting operation is performed by the conventional motor control method shown in FIGS. 6A to 6D in FIG. 6 described above, it takes too much time to move due to the inertia of the motor, and the state of the phototransistor can be checked until the actual operation stops. Therefore, there is a problem that a large time loss of 300 ms to 400 ms occurs, and a lot of time is required for the entire motor control.
[0007]
In order to solve these problems, the present invention calculates the optimum reverse current brake time by self-learning after rotating the motor to perform operations such as paper cutting, and thereafter, the desired position is determined by this reverse current brake time. The purpose of this is to realize a quick and optimal motor control by eliminating the waiting time for the compensation time for moving by the conventional inertia and eliminating the time loss of repeating the back process.
[0008]
[Means for Solving the Problems]
Means for solving the problem will be described with reference to FIG.
In FIG. 1, the motor control unit 2 controls the motor 6, and supplies a driving current to the motor 6 to execute a predetermined operation, and then detects that it has reached a predetermined position. After supplying the brake current to the motor for a predetermined time T, if the vehicle has passed the predetermined stop position after the compensation time has elapsed, the reverse processing is repeated to return to the predetermined stop position by supplying the reverse current and stop at the predetermined stop position. On the other hand, when the vehicle stops at a predetermined stop position after the compensation time has elapsed, control is performed so that back processing is not performed.
[0009]
The motor 6 rotates and performs a predetermined operation, and then stops at a predetermined stop position and waits for the next operation.
The notch 8 is for stopping the position of the motor 6 at a predetermined stop position.
[0010]
The disk 7 rotates with the rotation of the motor 6, and is provided with a notch 8 to stop the motor 6 at a predetermined stop position.
The phototransistor 9 detects that the notch 8 of the disk 7 has reached a predetermined stop position.
[0011]
[Action]
As shown in FIG. 1, when the motor control unit 2 supplies a driving current to the motor 6 to execute a predetermined operation and then detects that it has reached a predetermined position, the initial value or the previous time is detected. When the brake current is supplied to the motor for a predetermined time T that is self-learned by adding a predetermined value to the value of the motor, and after passing the predetermined stop position after the compensation time has elapsed, a reverse current is supplied to the predetermined stop position. When the back process is returned to (2) and stopped at the predetermined stop position, the back process is not performed when the stop time is reached after the compensation time has elapsed.
[0012]
At this time, a notch 8 is provided in the disk 7 that rotates with the rotation of the motor 6, and when one end of the notch 8 is detected and passed by the phototransistor 9, a predetermined position is set. The center is set as a predetermined stop position.
[0013]
Further, self-learning is performed when the motor 6 is powered on or reset, and is fixed at a predetermined time T (or a predetermined time T corrected so as to be approximately at the center of the notch 8) after self-learning and is short. The motor is surely stopped at a predetermined stop position in time.
[0014]
Accordingly, after rotating the motor 6 to perform operations such as paper cutting, the optimum reverse current brake time T is calculated by self-learning, and thereafter, the motor is stopped at a desired position by the reverse current brake time T. This makes it possible to realize a quick and optimal motor control by eliminating the waiting time for the compensation time to move with the inertia and eliminating the time loss of repeating the back process.
[0015]
【Example】
Next, the configuration and operation of the embodiment of the present invention will be sequentially described in detail with reference to FIGS.
[0016]
FIG. 1 shows a block diagram of an embodiment of the present invention.
FIG. 1A shows a configuration diagram.
In FIG. 1A, the controller 1 controls the motor 6 and cuts the ticket sheet 10 with the blade 12 of the cutter 11, and is composed of the motor control unit 2 and the like.
[0017]
The motor control unit 2 drives the motor 6 or stops it at a predetermined position.
The RAM 3 stores various data.
[0018]
The motor 6 drives the cutter 11 and cuts the ticket sheet 10.
The disk 7 rotates with the rotation of the motor 6, and is provided with a notch 8 to stop the motor 6 at a predetermined stop position.
[0019]
The notch 8 is a notch having a predetermined width W provided on the outer peripheral portion of the disk 7, and is for detecting the position of the light projected by the phototransistor 9.
[0020]
The phototransistor 9 is an element that detects light projected through a notch 8 provided on the outer periphery of the disk 7.
The ticket sheet 10 is a sheet to be cut.
[0021]
The cutter 11 is a mechanism for cutting the ticket sheet 10.
The cutter blade 12 is a blade for cutting the ticket sheet 10.
The arm 13 rotates as the motor 6 rotates. Here, the arm 13 drives the blade 12 of the cutter 11 as the disk 7 rotates.
[0022]
FIG. 1B shows a control signal. Here, when the controller 1 outputs the illustrated signal, the motor 6 performs the following operation illustrated.
Operation signal normal rotation 01
Reverse 10
Brake 11
Next, the operation of the configuration of FIG. 1 will be described in detail according to the order of the flowchart of FIG.
[0023]
In FIG. 2, S1 performs initial setting. This is, as described on the right side,
・ T = 50ms
・ Predetermined stop position rotation time 8ms
And initialize. Here, T is the reverse current brake time (predetermined time). The predetermined stop position rotation time is a time determined by an experiment necessary to stop the center approximately from the position of the left end of the notch 8 in FIG.
[0024]
In S2, the motor is rotated once and rotated forward (clockwise). This is because the motor control unit 2 in FIG. 1A supplies the signal 01 to the motor 6 and tries to rotate the motor 6 one rotation forward.
[0025]
In S3, it is determined whether it is a photo stop position. This is to determine whether the phototransistor 9 in FIG. 1A has detected light passing through the notch 8. In the case of YES, it is determined in S4 that the cutting of the ticket sheet 10 has been completed, and a process of stopping the motor 6 at a predetermined stop position is performed for correcting the cutter position after S5. On the other hand, in the case of NO in S3, it waits for the phototransistor 9 to detect the light that has passed through the notch 8.
[0026]
In S5, it is determined whether it is the first cut after the power is turned on. If YES, the process proceeds to S6. If NO, the process proceeds to S12.
In S6, a reverse current is supplied to the motor 6 during the reverse current brake time T = 50 ms (reverse current brake T = 50 ms initially set in S1).
[0027]
S7 waits for the motor brake stop compensation time 200 ms and waits for the motor 6 to stop.
In S8, it is determined whether it is a photo stop position. This is to determine whether the position where the motor 6 is stopped in S7 is the photo stop position. In the case of YES, it is determined that the motor 6 has stopped at the predetermined stop position, and the process ends. In the case of NO, since it has been found that the motor 6 has passed the predetermined stop position, the motor 6 is reversely rotated for 30 ms in reverse rotation of the motor in S9, and the motor brake stop compensation time of 200 ms elapses in S10. The motor reverse rotation operation flag is set to ON in S11, the process returns to S8 and is repeated, and the back process is repeated until the predetermined stop position is returned.
[0028]
In the case of cutting the first ticket sheet 10 when the power is turned on by YES to S11 in S5, the reverse current brake time T = 50 ms (from when the phototransistor 9 detects light at the left end of the notch 8). After the braking of the initial value (S6, S7), the back process (S8 to S11) is repeated, and the motor 6 is gradually reversely rotated to the predetermined stop position.
[0029]
S12 determines that the reverse rotation operation flag is ON because it is not the first cut of power-on in S5 but the second and subsequent cuts (S11 determines whether the reverse rotation flag is set to ON in S11). ). In the case of ON, since it was found that the motor 6 was reversely rotated last time, self-learning is performed from S13 to S15 and from S8 to S11. In the case of OFF, since it was found that the motor 6 was not reversely rotated last time, the motor 6 is braked for the updated reverse current brake time T by adding +8 ms to the reverse current brake time T in S16. Thus, the motor 6 is stopped at substantially the center position of the notch 8, and after the motor brake stop compensation time of 50 ms elapses in S17, the motor 6 is stopped at the predetermined stop position and the process ends.
[0030]
In step S13, a reverse current is supplied to the motor 6 during the updated reverse current brake time T obtained by adding +2 ms to the reverse current brake time T.
S14 waits for the motor brake stop compensation time 200 ms and waits for the motor 6 to stop.
[0031]
In S15, the motor reverse rotation flag is reset to OFF, and the process proceeds to S8.
In S8, it is determined whether it is a photo stop position. In step S15, it is determined whether the position where the motor 6 is stopped is the photo stop position. In the case of YES, it is determined that the motor 6 has stopped at the predetermined stop position, and the process ends. At the time of the next cut, a series of self-learning is terminated by NO in S5, OFF in S12, S16, and S17. On the other hand, in the case of NO in S8, since it has been found that the motor 6 has passed the predetermined stop position, in S9, the motor 6 is reversely rotated for 30 ms, and the motor brake stop compensation time of 200 ms elapses in S10. Then, after waiting for the motor 6 to stop, the motor reverse rotation operation flag is set to ON in S11, and the process returns to S8 and repeats, and the back process is repeated until it returns to the predetermined stop position. In the next cut, S5 NO, S12 ON, S13, S14, S15, S8 to S11 are repeated, and self-learning is repeated.
[0032]
With the above S5 NO, S12 ON, S13 to S15, and S8 to S11, light is detected at the left end of the notch 8 by the phototransistor 9 in the case of cutting the ticket sheet 10 after the second power-on. After braking the reverse current brake time T (first time 50 ms, second time 52 ms, third time 54 ms... By self-learning) (S13, S14), the back process (S8 to S11) is repeated. The reverse rotation of the motor 6 to the predetermined stop position is repeated every time the ticket sheet 10 is cut, and the self-learning of the reverse current brake time T is performed. Then, self-learning is finished when the motor reverse rotation is no longer necessary, and the next time and afterward, braking is performed during the self-learned reverse current brake time T, and the motor 6 can be accurately stopped at a predetermined stop position. It becomes.
[0033]
FIG. 3 is a diagram for explaining the operation of the present invention. This shows the state of self-learning in FIG. 2 described above.
FIG. 3A shows the first operation. This represents a state when the processes of S1 to S4, YES of S5, and S6 to S11 of FIG. 2 are performed. More specifically, when the photo signal is ON, the driving of the motor 6 is stopped, a reverse current is supplied for 2 ms for 50 ms (initial value T), and after the elapse of 200 ms for the motor brake stop compensation time, Since the signal is not turned ON, the process is repeated n times, and the process ends when the photo signal is turned ON, and the motor 6 is back-processed at a predetermined stop position. In this first time, the reverse current brake time T is updated to 50 ms + 2 = 52 ms.
[0034]
FIG. 3B shows the second operation. This represents a state when the processes of S1 to S4, NO of S5, S12 of ON, S13 to S15, and S8 to S11 of FIG. 2 are performed. More specifically, when the photo signal is ON, the driving of the motor 6 is stopped and a reverse current is supplied for 52 ms (52 ms obtained by adding 2 ms to the initial value) to compensate for the motor brake stop of 200 ms. Since the photo signal is not turned on after the elapse of time, the process is repeated m times, and when the photo signal is turned on, the process is finished and the motor 6 is back-processed at a predetermined stop position. In this second time, the reverse current brake time T is updated to 52 ms + 2 = 54 ms.
[0035]
FIG. 3C shows the n-th operation. This represents the situation when S1 to S4, S5 NO, S12 ON, S13 to S15, and S8 at the beginning of FIG. 2 are YES. This is the result of adding +2 ms to the reverse current brake time T of S13 this time, and braking and motor brake stop compensation time (4) After the elapse of 50 ms, the motor 6 just stops at the photo stop position, and reverse rotation becomes unnecessary. Is.
[0036]
FIG. 3D shows an operation after the time is fixed. This shows the situation at the next time S1 to S4, S5 NO, S12 OFF, S16, and S17 in FIG. This is because the motor 6 just stopped at the photo stop position in the previous self-learning and the motor reverse operation flag remains OFF, so this time the S12 is OFF, and the reverse current brake time T is +8 ms in S16. Thus, the motor 6 is stopped at substantially the center position of the notch 8, and a series of processing is ended after the motor brake stop compensation time of 50 ms elapses in S17. More specifically, when the photo signal is ON, the driving of the motor 6 is stopped and the reverse current is set to (2) 50 + Xms (the time when X (total number of additions of 2 ms up to the previous time) is added to the initial value) Flow for +8 ms. (4) After the 50 ms motor brake stop compensation time has elapsed, the photo signal remains ON, and the series of motor stop processing ends.
[0037]
FIG. 4 shows a learning explanatory diagram of the present invention.
(1) is the number of self-learning times, and represents the number of cuts from the first cut after the current is applied until the back process is eliminated. This {circle over (1)} represents, for example, the first time in FIG. 3 (a), the second time in (b),... (C) and the nth time (when n = 23).
[0038]
(2) represents a change in which the value of the reverse current brake time T is self-learned.
(3) represents the value of X in FIG. 3 and added to the reverse current braking time T.
(4) represents the compensation time until the motor stops.
[0039]
(5) represents the processing time of the entire cutter motor.
As a result of actually measuring the number of times of self-learning for the motor 6 (cutter motor) having the configuration shown in FIG. 1, there is a slight variation depending on the motor, but on average, back processing is within 3 times (self-learning is within 3 times) and fixed. It was possible to self-learn with time, and 660 ms in the conventional case of FIG. 6 could be reduced to 292 ms according to the present invention, and could be reduced to 1/26.
[0040]
FIG. 5 shows a cutout example of the present invention. This shows the shape of the notch 8 of the disk 7 that rotates as the motor 6 of FIG. 1 rotates. Here, when the position of the solid line ○ becomes the light receiving portion of the phototransistor 9, the motor 6 is at a predetermined stop position. The position of the dotted line on the left side is the position where the driving of the motor 6 is stopped and the reverse current brake is started. A position indicated by a dotted line on the right side is a position detected by the phototransistor 9 by rotating the motor 6 in the reverse direction.
[0041]
As described above, by providing the disc 7 with the notch 8 having the predetermined width W, when the tip of the notch 8 is detected by the phototransistor 9, the driving of the motor 6 is stopped and during the reverse current brake time T. When the braked and stopped position passes through the width W of the notch 8, the self-learning is performed by repeatedly performing the back process and increasing the reverse current brake time T. The self-learning is completed when the position where the brake is stopped is just the right end of the width W of the notch 8, and in order to make the position approximately the center from the right end, here, 8 ms is set as the reverse current brake time T. It is adding. As a result, the motor 6 can be self-learned and stopped at the predetermined stop position accurately by the notch 8 having the predetermined width W.
[0042]
【The invention's effect】
As described above, according to the present invention, after the motor 6 is rotated to perform operations such as paper cutting, the optimum reverse current brake time T is calculated by self-learning, and thereafter the reverse current brake time T is calculated. Therefore, it is possible to realize a quick optimum motor control by eliminating the waiting time for the compensation time for moving by the conventional inertia and eliminating the time loss for repeating the back process. As a result, the processing time required to stop at a predetermined stop position after a predetermined operation using the motor 6 can be significantly reduced, for example, 660 ms can be shortened to 292 ms.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an embodiment of the present invention.
FIG. 2 is a flowchart explaining the operation of the present invention.
FIG. 3 is an operation explanatory diagram of the present invention.
FIG. 4 is an explanatory diagram of learning according to the present invention.
FIG. 5 is a cutout example of the present invention.
FIG. 6 is an explanatory diagram of a conventional technique.
[Explanation of symbols]
1: Controller 2: Motor control unit 3: RAM
6: motor 7: disk 8: notch 9: phototransistor 10: book ticket paper 11: cutter 12: cutter blade 13: arm

Claims (2)

回転して所定の動作を行った後、所定停止位置に停止して次の動作の待機することを繰り返すモータに駆動電流を供給して所定の動作を実行させた後、所定位置に来たことを検出したときに、初期値あるいは前回の値に所定値を足し込んで自己学習した所定時間Tの間、ブレーキ電流をモータに供給した後、モータブレーキ停止補償時間経過後に所定停止位置を通り過ぎていた場合に、逆転電流を供給して所定停止位置に戻すバック処理を繰り返して、モータの逆転が不要となった時点で前記自己学習を終了し、次回以降は該自己学習終了時の前記所定時間Tの間、ブレーキ電流をモータに供給することでモータを所定停止位置に停止させるモータ制御部
を備えたことを特徴とするモータ制御回路。
After rotating and performing a predetermined operation, stopping at a predetermined stop position and waiting for the next operation to supply the drive current to the motor to execute the predetermined operation, then came to the predetermined position When a brake current is supplied to the motor for a predetermined time T that is self-learned by adding a predetermined value to the initial value or the previous value, and after passing the motor brake stop compensation time, it passes the predetermined stop position. In this case, the self-learning is terminated when the reverse rotation of the motor is no longer necessary by supplying a reverse rotation current and returning to the predetermined stop position, and after the next time, the predetermined time at the end of the self-learning A motor control circuit comprising a motor control section for stopping the motor at a predetermined stop position by supplying a brake current to the motor during T.
回転して所定の動作を行った後、所定停止位置に停止して次の動作の待機することを繰り返すモータ制御方法であって、
このモータに駆動電流を供給して所定の動作を実行させた後、所定位置に来たことを検出したときに、初期値あるいは前回の値に所定値を足し込んで自己学習した所定時間Tの間、ブレーキ電流をモータに供給した後、モータブレーキ停止補償時間経過後に所定停止位置を通り過ぎていた場合に、逆転電流を供給して所定停止位置に戻すバック処理を繰り返して、モータの逆転が不要となった時点で前記自己学習を終了し、次回以降は該自己学習終了時の前記所定時間Tの間、ブレーキ電流をモータに供給することでモータを所定停止位置に停止させる
ことを特徴とするモータ制御方法。
A motor control method that repeats rotating and performing a predetermined operation, then stopping at a predetermined stop position and waiting for the next operation,
After the drive current is supplied to the motor and a predetermined operation is executed, when it is detected that the motor has reached a predetermined position, the predetermined value is added to the initial value or the previous value and self-learned for a predetermined time T During this period, after the brake current is supplied to the motor , if the motor brake stop compensation time has passed and the vehicle has passed the predetermined stop position, the reverse process of supplying the reverse current and returning it to the predetermined stop position is repeated so that the motor does not need to be reversed. The self-learning is terminated at a point in time, and the motor is stopped at a predetermined stop position by supplying a brake current to the motor for the predetermined time T at the end of the self-learning after the next time. Motor control method.
JP25634194A 1994-10-21 1994-10-21 Motor control circuit and motor control method Expired - Lifetime JP3624322B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25634194A JP3624322B2 (en) 1994-10-21 1994-10-21 Motor control circuit and motor control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25634194A JP3624322B2 (en) 1994-10-21 1994-10-21 Motor control circuit and motor control method

Publications (2)

Publication Number Publication Date
JPH08123552A JPH08123552A (en) 1996-05-17
JP3624322B2 true JP3624322B2 (en) 2005-03-02

Family

ID=17291335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25634194A Expired - Lifetime JP3624322B2 (en) 1994-10-21 1994-10-21 Motor control circuit and motor control method

Country Status (1)

Country Link
JP (1) JP3624322B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4847108B2 (en) * 2005-11-25 2011-12-28 株式会社リコー Motor drive control device and image forming apparatus
CN111082732B (en) * 2019-12-31 2021-07-23 普冉半导体(上海)股份有限公司 Automatic learning system for current curve mode of voice coil motor driver

Also Published As

Publication number Publication date
JPH08123552A (en) 1996-05-17

Similar Documents

Publication Publication Date Title
JP3624322B2 (en) Motor control circuit and motor control method
JP3422826B2 (en) Stencil printing machine
JP2002346987A (en) Automatic cutter device
US6312177B1 (en) Line printer
CA2195593C (en) Method of controlling ribbon motor for color printing system
JP2524746Y2 (en) Tightening force control device for banding machine band
JPH01128860A (en) Cutting method for recording paper
JPH10155290A (en) Device for controlling electric motor
JPS6023091A (en) Printer
JP3709604B2 (en) Automatic positioning control device for turret
JPH1111447A (en) Label peeler
JP3658190B2 (en) Image forming apparatus
JP2915373B2 (en) Control method of robot with infinite rotation axis
JP3767934B2 (en) Packaging machine
JPH0449712Y2 (en)
JPH0669812B2 (en) Label feed amount adjusting device
JPH06106273A (en) Thin plate feeding device
JP2893220B2 (en) Roll paper take-up control method for paper-burning plotter
JP2793335B2 (en) Printer device
JPH0310860A (en) Page printer
JPH02166013A (en) Supply method of thermal welding tape in bundling machine
JPH0613761Y2 (en) Safety stop device installed in automatic bar material feeder
JP2002087691A (en) Method for controlling cutter
JP2758711B2 (en) Paper winding detection method for printer
EP0756202A1 (en) Method and apparatus for removing the thermoadhesive film-splicing element after developing and printing

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040518

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040720

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041026

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041117

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071210

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081210

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101210

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101210

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111210

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111210

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131210

Year of fee payment: 9

EXPY Cancellation because of completion of term