JP2918742B2 - Drive control device for stepping motor - Google Patents

Drive control device for stepping motor

Info

Publication number
JP2918742B2
JP2918742B2 JP9770692A JP9770692A JP2918742B2 JP 2918742 B2 JP2918742 B2 JP 2918742B2 JP 9770692 A JP9770692 A JP 9770692A JP 9770692 A JP9770692 A JP 9770692A JP 2918742 B2 JP2918742 B2 JP 2918742B2
Authority
JP
Japan
Prior art keywords
drive
end position
stepping motor
actual
encoder
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 - Fee Related
Application number
JP9770692A
Other languages
Japanese (ja)
Other versions
JPH0646596A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP9770692A priority Critical patent/JP2918742B2/en
Publication of JPH0646596A publication Critical patent/JPH0646596A/en
Application granted granted Critical
Publication of JP2918742B2 publication Critical patent/JP2918742B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ステッピングモータの
駆動制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drive control device for a stepping motor.

【0002】[0002]

【従来の技術】図5に、ステッピングモータの駆動制御
装置の一般的構成を示す。同図において、制御装置10
からドライバ20に、所定数の駆動パルス信号(Pi)
と回転方向指定信号(順方向FW,逆方向RV)とを出
力すると、ドライバ20はステッピングモータ30に相
切替励磁信号を出力し、ステッピングモータ30を指定
方向に回転駆動する。回転速度は駆動パルス信号(P
i)の周波数で決まり、かつ回転数(角度)は駆動パル
ス信号の数Piで決まる。
2. Description of the Related Art FIG. 5 shows a general configuration of a drive control device for a stepping motor. In FIG.
A predetermined number of drive pulse signals (Pi)
When the driver 20 outputs the rotation direction designating signal (forward direction FW, reverse direction RV), the driver 20 outputs a phase switching excitation signal to the stepping motor 30, and drives the stepping motor 30 to rotate in the designated direction. The rotation speed is determined by the drive pulse signal (P
The frequency is determined by the frequency i), and the rotation speed (angle) is determined by the number Pi of the drive pulse signals.

【0003】かかるステッピングモータ30と駆動制御
装置(10,20)とを用いれば、所定速度線図でかつ
高精度で各種負荷を移動させかつ位置決めできる。オー
プンループであるから、装置簡素化が図れる。
The use of the stepping motor 30 and the drive control devices (10, 20) makes it possible to move and position various loads with a predetermined speed diagram and with high accuracy. Because of the open loop, the device can be simplified.

【0004】例えば、負荷がプリンタのキャリアである
場合、図6に示す回転駆動開始位置STから回転駆動終
了位置SPまでを定速でかつ高精度位置決めしつつ順方
向FWに移動させれば、印字有効領域L内に鮮明印字を
行える。逆方向RVについても同様である。この際、制
御装置10からドライバ20に入力される駆動パルス信
号の数をPiとする。
For example, when the load is a carrier of a printer, if the load is moved in the forward direction FW from the rotational drive start position ST to the rotational drive end position SP shown in FIG. Clear printing can be performed in the effective area L. The same applies to the reverse direction RV. At this time, the number of drive pulse signals input from the control device 10 to the driver 20 is Pi.

【0005】ところで、負荷や電源電圧の変動等がある
と、入力した駆動パルス信号の数Piとステッピングモ
ータ30の回転数(角度)との対応性が崩れる、つまり
脱調してしまうことがある。そこで印字有効領域Lの外
側にオーバーラン検出器1,2を設け、脱調現象を自動
検出している。したがって、順方向FW(逆方向RV)
移動のための駆動パルス信号の設定数Piを加えたのに
も拘わらずオーバーラン検出器2(1)がON動作すれ
ば、オーバーラン側の脱調を検出できる。なお、シ
トラン側の脱調は、次回の方向転換移動時に反対側のオ
ーバーラン検出器1(2)で検出できる。
If the load or power supply voltage fluctuates, for example, the correspondence between the number Pi of the input drive pulse signals and the rotation speed (angle) of the stepping motor 30 may be lost, that is, the motor may lose synchronism. . Therefore, overrun detectors 1 and 2 are provided outside the print effective area L to automatically detect a step-out phenomenon. Therefore, forward FW (reverse RV)
If the overrun detector 2 (1) is turned ON despite the addition of the set number Pi of the drive pulse signals for the movement, the step-out on the overrun side can be detected. Incidentally, the step-out of tio over <br/> Trang side can be detected on the opposite side of the overrun detector 1 (2) at the next turning movement.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来構造によると、オーバーラン検出器1,2の配設位置
はレイアウト上のある種制限があるから、僅かのオーバ
ーランやショートランを引起こす脱調を検出することは
至難である。また、上記プリンタに用いる場合、それら
を稼働中の印字状態から見極めることも非常に難しい。
また、オーバーランやショートランは累積増大してしま
う。したがって、印字済用紙を手に取って初めて気付く
という不都合が生ずる。反面、全行のうち数行が左右方
向に少々位置ずれしても支障のない場合もあるが、従来
構造では1行でもオーバーラン検出器1,2がON動作
する程のオーバーランあるいはショートランがあると、
プリンタが自動停止されてしまうので印字作業能率が低
下する。これら問題は、オーバーラン検出器1,2を多
大な労力,時間をかけていかに慎重にセットしても、解
決はできない。
However, according to the above-mentioned conventional structure, the arrangement positions of the overrun detectors 1 and 2 have some restrictions on the layout. It is very difficult to detect the key. In addition, when used in the above-mentioned printer, it is very difficult to determine them from the printing state during operation.
In addition, overruns and short runs increase cumulatively. Therefore, there is an inconvenience that the user notices the condition only after picking up the printed paper. On the other hand, there is a case where there is no problem even if a few lines out of all the lines are displaced a little in the left-right direction. When there is
Since the printer is automatically stopped, the printing work efficiency is reduced. These problems cannot be solved even if the overrun detectors 1 and 2 are carefully set with great effort and time.

【0007】ここに本発明の目的は、前回駆動中におけ
る脱調現象を自動検出し引続く今回駆動以降はそのオー
バーランあるいはショートランを自動補正して正確に回
転駆動できるステッピングモータの駆動制御装置を提供
することにある。
An object of the present invention is to provide a drive control device for a stepping motor capable of automatically detecting a step-out phenomenon during a previous drive, and automatically correcting an overrun or a short run after the current drive to accurately rotate the drive. Is to provide.

【0008】[0008]

【課題を解決するための手段】本発明に係るステッピン
グモータの駆動制御装置は、駆動パルス信号を出力する
制御装置と、駆動パルス信号を入力としてステッピング
モータを回転駆動制御するドライバと、を含み形成され
たステッピングモータの駆動制御装置において、前記ス
テッピングモータに連結された回転角度相当信号を出力
するエンコーダと、エンコーダの出力信号に基づいて駆
動開始位置を検出する開始位置検出手段と、エンコーダ
の出力信号に基づいて実際の駆動終了位置を検出する実
際終了位置検出手段と、前記制御装置からドライバに出
力する駆動パルス信号の数とエンコーダの出力信号とか
開始位置検出手段によって検出された駆動開始位置を
基準とした目標駆動終了位置を算出する目標終了位置算
出手段と、検出された実際駆動終了位置と算出された目
標駆動終了位置とを比較して脱調の有無を判別する判別
手段と、脱調有と判別された場合に当該検出された実際
駆動終了位置を駆動開始位置として前回と異なる回転方
向にステッピングモータを回転駆動制御する今回駆動用
の駆動パルス信号の設定数に加減する補正パルス数を前
回の実際駆動終了位置と目標駆動終了位置とから算出す
る補正パルス数算出手段と、を設けたことを特徴とす
る。
A drive control device for a stepping motor according to the present invention includes a control device for outputting a drive pulse signal, and a driver for controlling the rotation of the stepping motor by inputting the drive pulse signal. A stepping motor drive control device, wherein the encoder outputs a rotation angle equivalent signal connected to the stepping motor, a start position detecting means for detecting a drive start position based on the output signal of the encoder, and an output signal of the encoder. Actual drive end position detecting means for detecting an actual drive end position based on the drive start position detected by the start position detecting means from the number of drive pulse signals output from the control device to the driver and the output signal of the encoder. A target end position calculating means for calculating a target drive end position as a reference; Determining means for comparing the actual drive end position with the calculated target drive end position to determine the presence or absence of step-out; and determining that the actual drive end position is detected when step-out is determined to be the drive start position. The number of correction pulses is calculated from the previous actual drive end position and the target drive end position to calculate the number of correction pulses to be added to or subtracted from the set number of drive pulse signals for current drive that controls the stepping motor to rotate in a different rotation direction from the previous time. Means are provided.

【0009】[0009]

【作用】上記構成による本発明では、回転駆動開始に際
し、開始位置検出手段はエンコーダの出力信号からその
駆動開始位置を検出する。設定数の駆動パルス信号を加
えた回転駆動が終了すると、実際終了位置検出手段がエ
ンコーダの出力信号から実際駆動終了位置を検出する。
これと前後して目標終了位置算出手段が、駆動パルス信
号の設定数とエンコーダの出力信号とから開始位置検出
手段によって先に検出された駆動開始位置を基準とした
目標駆動終了位置を算出する。
According to the present invention having the above-described structure, at the time of starting the rotation drive, the start position detecting means detects the drive start position from the output signal of the encoder. When the rotation drive with the set number of drive pulse signals is completed, the actual end position detecting means detects the actual drive end position from the output signal of the encoder.
Before or after this, the target end position calculating means detects the start position from the set number of drive pulse signals and the output signal of the encoder.
To calculate a target driving end position relative to the detected driving start position above the unit.

【0010】ここに、補正パルス数算出手段は、判別手
段によって検出された実際駆動終了位置と算出された目
標駆動終了位置との比較から脱調有と判別されると、次
回の設定駆動パルス数に加減する補正パルス数を算出す
る。よって、前回の脱調によるオーバーランあるいはシ
ョートランを累積させることなく、今回以降の回転駆動
制御を正規かつ正確に行える。
Here, the correction pulse number calculating means determines that there is step-out from the comparison between the actual drive end position detected by the determination means and the calculated target drive end position, and determines the next set drive pulse number. The number of correction pulses to be added to or subtracted from is calculated. Therefore, the rotation drive control after this time can be performed properly and accurately without accumulating the overrun or the short run due to the previous step-out.

【0011】[0011]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本駆動制御装置は、図1に示す如く、基本的構成
が従来例(図5)と同じとされかつエンコーダ35と開
始位置検出手段(11,12)と実際終了位置検出手段
(11,12)と目標終了位置算出手段(11,12)
と判別手段(11,12)と補正パルス数算出手段(1
1,12)とを設け、前回駆動中に脱調の有無を自動判
別し、脱調有と判別された場合には今回駆動以後にその
オーバーランあるいはショートランを持越しかつ累積さ
せないように自動補正して今回以後の回転駆動を正確に
行えるように構成されている。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIG. 1, this drive control device has the same basic configuration as that of the conventional example (FIG. 5), and has an encoder 35, start position detecting means (11, 12), and actual end position detecting means (11, 12). And target end position calculating means (11, 12)
And determination means (11, 12) and correction pulse number calculation means (1
1, 12) are provided, and the presence / absence of step-out during the previous drive is automatically determined. Then, it is configured so that the rotation drive after this time can be accurately performed.

【0012】まず、エンコーダ35は、図1に示すよう
にステッピングモータ30に連結され、その回転角度
(乃至回転数)を検出し、回転角度相当信号を出力す
る。この実施例では、ステッピングモータ30の1ステ
ップに16(0〜15)通りの4ビット出力信号を発生
するものとされている。
First, the encoder 35 is connected to the stepping motor 30 as shown in FIG. 1, detects the rotation angle (or the number of rotations), and outputs a signal corresponding to the rotation angle. In this embodiment, one step of the stepping motor 30 generates 16 (0 to 15) 4-bit output signals.

【0013】ここに、本実施例の場合、ステッピングモ
ータ30はプリンタのキャリアを往復移動するものとさ
れている。プリンタの印字有効領域(幅)は図2に示す
Lとされ、制御装置10からドライバ20に駆動パルス
信号の設定数Piを加えることにより、キャリア(印字
ヘッド)が丁度距離(L)だけ移動されるものと形成さ
れている。また、図2中のSTは駆動開始位置で、SP
は目標とする駆動終了位置である。さらに、図2で左→
右が順方向FWとされている。
In this embodiment, the stepping motor 30 reciprocates on the carrier of the printer. The printing effective area (width) of the printer is set to L shown in FIG. 2, and the carrier (print head) is moved just by the distance (L) by adding the set number Pi of the driving pulse signal from the control device 10 to the driver 20. Is formed. ST in FIG. 2 is a driving start position and SP
Is a target drive end position. In addition, left in Fig. 2 →
The right side is the forward direction FW.

【0014】次に、開始位置検出手段は、エンコーダ3
5の出力信号に基づいて図2(図3)に示す駆動開始位
置STつまり駆動開始時の値FNa1(RNa2)を検
出する手段で、制御装置10を形成するCPU11,R
OM12とから構成され、図4のST11(ST16)
で実行される。
Next, the start position detecting means includes an encoder 3
2 (FIG. 3), that is, means for detecting the drive start position ST shown in FIG. 2 (FIG. 3), that is, the value FNa1 (RNa2) at the start of drive.
OM12 and ST11 (ST16) in FIG.
Executed in

【0015】一方、実際終了位置検出手段は、エンコー
ダ35の出力信号に基づいて実際に回転駆動した後の図
2(図3)に示す実際駆動終了位置SPつまり実際駆動
終了時の値FNa2(RNa1)を検出するもので、こ
れもCPU11,ROM12からなりST11(ST1
6)で実行される。
On the other hand, the actual end position detecting means detects the actual drive end position SP shown in FIG. 2 (FIG. 3) after the actual rotation driving based on the output signal of the encoder 35, that is, the value FNa2 (RNa1) at the end of the actual drive. ), Which also comprises a CPU 11 and a ROM 12 and ST11 (ST1
Executed in 6).

【0016】また、目標終了位置算出手段は、印字有効
幅Lだけキャリアを移動させるために必要とする駆動パ
ルス信号の設定数Piとエンコーダ35の出力信号すな
わち出力信号の形態(上記4ビット)とから、先に検出
した駆動開始時の値FNa1(RNa2)を基準とした
目標駆動終了位置SPつまり目標駆動終了時の値FNc
2(RNc1)を算出{FNc2=FNa1+(Pi×
16)〔RNc1=RNa2−(Pi×16)〕}する
もので、CPU11,ROM12とからなり、図4のS
T12(ST17)で実行される。なお、この算出は、
駆動パルス信号の設定数(Pi)が予め決まっているこ
とから、ST11(16)において駆動開始時の値FN
a1(RNa2)を検出した直後に実行してもよい。
The target end position calculating means calculates the number Pi of drive pulse signals required for moving the carrier by the effective printing width L, the output signal of the encoder 35, that is, the form of the output signal (the above 4 bits). From the target drive end position SP based on the drive start value FNa1 (RNa2) detected earlier, that is, the target drive end value FNc.
2 (RNc1) {FNc2 = FNa1 + (Pi ×
16) [RNc1 = RNa2- (Pi × 16)]}, which comprises the CPU 11 and the ROM 12,
This is executed in T12 (ST17). This calculation is
Since the set number (Pi) of the drive pulse signals is predetermined, the value FN at the start of driving in ST11 (16) is determined.
It may be executed immediately after detecting a1 (RNa2).

【0017】以上の各値FNa1,FNc2,FNa2
(RNa2,RNc1,RNa1)は、RAM13に一
時記憶される。
The above values FNa1, FNc2, FNa2
(RNa2, RNc1, RNal) are temporarily stored in the RAM 13.

【0018】ここに、判別手段は、検出された実際駆動
終了位置〔実際終了時の値FNa2(RNa1)〕と算
出された目標駆動終了位置〔目標終了時の値FNc2
(RNc1)〕とを比較して、その同異性からステッピ
ングモータ30の脱調の有無を自動判別する手段で、S
T13(ST18)を実行するCPU11,ROM12
とからなる。ST13(ST18)で、YES判断され
た場合は脱調が無く、NO判断された場合に脱調有と判
別される。
Here, the determination means determines the detected actual drive end position [actual end value FNa2 (RNa1)] and the calculated target drive end position [target end value FNc2.
(RNc1)] to automatically determine whether or not the stepping motor 30 has stepped out based on the same isomer.
CPU 11 and ROM 12 executing T13 (ST18)
Consists of In ST13 (ST18), if a YES determination is made, there is no step-out, and if a NO determination is made, it is determined that there is step-out.

【0019】また、補正パルス数算出手段は、CPU1
1,ROM12とから形成され、判別手段で脱調有と判
別された場合に、当該検出実際駆動終了位置〔図2のF
Na2(図3のRNa1)〕を今回の回転駆動開始位置
として前回駆動〔FW(RV)〕と異なる回転方向RV
(FW)にステッピングモータ30を回転駆動制御する
当該今回の駆動パルス信号の設定数Pi(Pi)に加減
する補正パルス数△FPn(△RPn)を求める〔ST
15(ST20)〕。脱調無の場合は補正パルス数△F
Pn(△RPn)は零(0)である〔ST14(ST1
9)〕。
The means for calculating the number of correction pulses includes a CPU 1
1 and the ROM 12, and when it is determined by the determination means that there is step-out, the detected actual drive end position [F in FIG.
Na2 (RNa1 in FIG. 3)] as the current rotational drive start position, and a rotational direction RV different from the previous drive [FW (RV)].
In (FW), the number of correction pulses △ FPn (nRPn) to be added to or subtracted from the set number Pi (Pi) of the current drive pulse signal for rotationally driving and controlling the stepping motor 30 is obtained [ST
15 (ST20)]. When no step-out occurs, the number of correction pulses △ F
Pn (△ RPn) is zero (0) [ST14 (ST1
9)].

【0020】すなわち、図2において、同(A)に示す
順方向FWに前回駆動した場合の目標終了時の値がFN
c2であるべきところ、同(B)に実線で示す如く脱調
によるオーバーランによって実際終了時の値がFNa2
となった場合、この実際終了位置(FNa2)から設定
数Piの駆動パルス信号を加えて逆方向RVに今回駆動
したのでは、初めの駆動開始位置STに戻れない。そこ
で、同(B)に示す補正パルス数△FPnを加えてやれ
ば、同(C)に2点鎖線で示すように初めの駆動開始位
置STに正確に戻せる。同(B)に点線および同(C)
で1点鎖線で示すシートランの場合も同様である。さら
に、図3(A)〜(C)に示す前回が逆方向RVで今回
が順方向FWの場合も同様である。
That is, in FIG. 2, the value at the time of the target end when the previous drive in the forward direction FW shown in FIG.
Although it should be c2, the value at the time of actual termination due to overrun due to step-out is FNa2 as shown by the solid line in FIG.
In this case, if the drive pulse signal of the set number Pi is added this time from the actual end position (FNa2) and the current drive is performed in the reverse direction RV, it is not possible to return to the initial drive start position ST. Therefore, by adding the number of correction pulses △ FPn shown in (B), it is possible to accurately return to the initial drive start position ST as shown by the two-dot chain line in (C). (B) and dotted line (C)
The same applies to a seat run indicated by a dashed line. Further, the same applies to the case where the previous time shown in FIGS. 3A to 3C is the reverse direction RV and the current time is the forward direction FW.

【0021】なお、以上の各手段は、制御装置10のR
OM12に格納された図4に示す補正プログラムによっ
てCPU11が適時に実行するものとされる。
Each of the above means corresponds to the R
The correction program shown in FIG. 4 stored in the OM 12 is executed by the CPU 11 in a timely manner.

【0022】次に、作用を説明する。駆動開始位置ST
〔図2(A)〕から順方向FWに駆動する場合は、図4
のST10でYES判断される。同時的に、制御装置1
0からドライバ20に駆動パルス信号の設定数Piが所
定の周波数で出力され、ドライバ20がステッピングモ
ータ30を回転駆動し始める。
Next, the operation will be described. Drive start position ST
When driving in the forward direction FW from [FIG. 2A], FIG.
YES is determined in ST10. At the same time, the control device 1
From 0, the set number Pi of the drive pulse signal is output to the driver 20 at a predetermined frequency, and the driver 20 starts rotating the stepping motor 30.

【0023】ここに、開始位置検出手段(11,12)
がエンコーダ35の出力から図2の駆動開始位置(開始
時の値FNa1)を検出する、つまりその値FNa1を
読取ってRAM13に一時記憶する(ST11)。駆動
終了すると、実際終了位置検出手段(11,12)が、
実際駆動終了位置(実際終了時の値FNa2)を検出す
る(ST11)。図2(B)の実線で示す場合はオーバ
ーラン、点線で示す場合はショートランである。
Here, the start position detecting means (11, 12)
Detects the drive start position (starting value FNa1) in FIG. 2 from the output of the encoder 35, that is, reads the value FNa1 and temporarily stores it in the RAM 13 (ST11). When the driving is completed, the actual end position detecting means (11, 12)
An actual driving end position (actual end value FNa2) is detected (ST11). In FIG. 2B, a solid line indicates an overrun, and a dotted line indicates a short run.

【0024】また、目標終了位置算出手段(11,1
2)は、ST12において目標駆動終了位置(目標終了
時の値FNc2)を算出する。すると、判別手段(1
1,12)が、この値FNc2と実際終了時の値FN
2とを比較して脱調の有無を判別する(ST13)。
The target end position calculating means (11, 1)
2) In ST12, a target drive end position (value FNc2 at the time of target end) is calculated. Then, the determination means (1
1, 12) is, the value of the FN a fact at the end of this value FNc2
Then, the presence or absence of step-out is determined by comparing with Step 2 (ST13).

【0025】ST13でYES判断されると脱調が無い
ので、補正パルス数△FPnは零(0)とされるが、N
O判断されると補正パルス数算出手段(11,12)が
補正パルス数△FPnを自動算出する(ST15)。こ
の補正パルス数△FPnの値は、図2(B)に実線で示
したオーバーランの場合はプラスの値となり、同(C)
に点線で示したショートランの場合はマイナスの値とな
る。
If the determination in ST13 is YES, there is no step-out, so the number of correction pulses ΔFPn is set to zero (0).
When the determination is O, the correction pulse number calculation means (11, 12) automatically calculates the correction pulse number △ FPn (ST15). The value of the number of correction pulses △ FPn becomes a positive value in the case of overrun shown by a solid line in FIG.
In the case of the short run indicated by the dotted line, the value is negative.

【0026】かくして、同(C)に示す今回の逆方向R
Vでの駆動に際して、制御装置10は駆動パルス信号の
設定数Piに前回駆動時に求めた補正パルス数△FPn
を加減算してドライバ20に出力する。したがって、同
(C)に示すように確実に戻の位置(ST)に戻せる。
Thus, the current reverse direction R shown in FIG.
At the time of driving at V, the control device 10 sets the set number Pi of the driving pulse signal to the number of correction pulses 時 に FPn obtained at the previous driving.
Is added and subtracted and output to the driver 20. Therefore, it is possible to reliably return to the return position (ST) as shown in FIG.

【0027】なお、図3に示す前回が逆方向RV駆動で
かつ今回が順方向FW駆動の場合についても同様に作用
する。
The same applies to the case where the previous time is the reverse RV drive and the current time is the forward FW drive shown in FIG.

【0028】しかして、この実施例によれば、エンコー
ダ35と開始位置検出手段(11,12)と実際終了位
置検出手段(11,12)と目標終了位置算出手段(1
1,12)と判別手段(11,12)と補正パルス数算
出手段(11,12)とを設け、前回駆動中に目標駆動
終了位置と実際駆動終了位置とを比較して脱調の有無を
自動判別するとともに今回駆動に際する補正パルス数を
算出しかつ今回駆動の駆動パルス信号の設定数(Pi)
にその補正パルス数を加減する構成とされているので、
前回駆動時に脱調があってもそのオーバーランあるいは
ショートランを今回駆動以降に持越すことがなく、今回
以降の駆動を正確に行える。
According to this embodiment, the encoder 35, the start position detecting means (11, 12), the actual end position detecting means (11, 12), and the target end position calculating means (1)
1, 12), determination means (11, 12) and correction pulse number calculation means (11, 12), and compares the target drive end position with the actual drive end position during the previous drive to determine if there is a step-out. The number of correction pulses for the current drive is automatically determined, and the set number of drive pulse signals for the current drive (Pi) is calculated.
Since the number of correction pulses is adjusted to
Even if there is a step-out during the previous drive, the overrun or short run is not carried over after the current drive, and the drive after this time can be performed accurately.

【0029】また、エンコーダ35がステッピングモー
タ30の1ステップを4ビット16分割信号を出力する
ものと形成されているので、その脱調の有無を正確に検
出できる。
Further, since the encoder 35 is configured to output a 4-bit divided signal for one step of the stepping motor 30, it is possible to accurately detect whether or not the step-out occurs.

【0030】また、目標終了時の値FNc2,RNc1
は、エンコーダ35の出力信号から検出した実際の駆動
開始位置(FNa1,RNa2)を基準として算出する
ものとされているから、実際運転にマッチングした適応
性の広いものとなる。
The values FNc2 and RNc1 at the end of the target
Is calculated on the basis of the actual drive start position (FNa1, RNa2) detected from the output signal of the encoder 35, and therefore has a wide adaptability that matches actual driving.

【0031】また、脱調判別は、駆動パルス信号とエン
コーダ35の出力信号とに基づいて行うので、従来のオ
ーバーラン検出器(1,2)を配設する必要がない。よ
って、プリンタを一段と小型化できる。
Since the step-out determination is performed based on the drive pulse signal and the output signal of the encoder 35, there is no need to provide the conventional overrun detector (1, 2). Therefore, the size of the printer can be further reduced.

【0032】[0032]

【発明の効果】本発明によれば、エンコーダと開始位置
検出手段と実際終了位置検出手段と目標終了位置算出手
段と判別手段と補正パルス数算出手段とを設け、前回駆
動中に目標駆動終了位置と実際駆動終了位置とを比較し
て脱調の有無を自動判別するとともに、今回駆動に際す
る補正パルス数を算出しかつ今回駆動の駆動パルス信号
の設定数にその補正パルス数を加減する構成とされてい
るので、前回駆動時に脱調があってもそのオーバーラン
あるいはショートランを今回駆動以降に持越すことがな
く、今回以降の駆動を正確に行える。
According to the present invention, the encoder, the start position detecting means, the actual end position detecting means, the target end position calculating means, the determining means and the correction pulse number calculating means are provided, and the target driving end position is determined during the previous driving. And the actual drive end position are compared to automatically determine the presence or absence of step-out, calculate the number of correction pulses for the current drive, and add or subtract the number of correction pulses to the set number of drive pulse signals for the current drive Therefore, even if there is a step-out during the previous drive, the overrun or short run is not carried over after the current drive, and the drive after this time can be performed accurately.

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

【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】同じく、動作(1)を説明するための図であ
る。
FIG. 2 is also a diagram for explaining an operation (1).

【図3】同じく、動作(2)を説明するための図であ
る。
FIG. 3 is a diagram for explaining the operation (2).

【図4】同じく、動作(1),(2)を説明するための
フローチャートである。
FIG. 4 is a flowchart for explaining operations (1) and (2).

【図5】従来例を示すブロック図である。FIG. 5 is a block diagram showing a conventional example.

【図6】従来例の動作と問題点を説明するための図であ
る。
FIG. 6 is a diagram for explaining the operation and problems of the conventional example.

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

1,2 オーバーラン検出器 10 制御装置 11 CPU(開始位置検出手段,実際終了位置検出手
段,目標終了位置算出手段,判別手段,補正パルス数算
出手段) 12 ROM(開始位置検出手段,実際終了位置検出手
段,目標終了位置算出手段,判別手段,補正パルス数算
出手段) 13 RAM 20 ドライバ 30 ステッピングモータ 35 エンコーダ
1, 2 overrun detector 10 control device 11 CPU (start position detecting means, actual end position detecting means, target end position calculating means, discriminating means, correction pulse number calculating means) 12 ROM (start position detecting means, actual end position) Detection means, target end position calculation means, determination means, correction pulse number calculation means) 13 RAM 20 driver 30 stepping motor 35 encoder

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 駆動パルス信号を出力する制御装置と、
駆動パルス信号を入力としてステッピングモータを回転
駆動制御するドライバと、を含み形成されたステッピン
グモータの駆動制御装置において、 前記ステッピングモータに連結された回転角度相当信号
を出力するエンコーダと、 エンコーダの出力信号に基づいて駆動開始位置を検出す
る開始位置検出手段と、 エンコーダの出力信号に基づいて実際の駆動終了位置を
検出する実際終了位置検出手段と、 前記制御装置からドライバに出力する駆動パルス信号の
数とエンコーダの出力信号とから開始位置検出手段によ
って検出された駆動開始位置を基準とした目標駆動終了
位置を算出する目標終了位置算出手段と、 検出された実際駆動終了位置と算出された目標駆動終了
位置とを比較して脱調の有無を判別する判別手段と、 脱調有と判別された場合に当該検出された実際駆動終了
位置を駆動開始位置として前回と異なる回転方向にステ
ッピングモータを回転駆動制御する今回駆動用の駆動パ
ルス信号の設定数に加減する補正パルス数を前回の実際
駆動終了位置と目標駆動終了位置とから算出する補正パ
ルス数算出手段と、 を設けたことを特徴とするステッピングモータの駆動制
御装置。
A control device for outputting a drive pulse signal;
A driver for controlling the rotation of the stepping motor by inputting a drive pulse signal; and an encoder for outputting a signal corresponding to a rotation angle coupled to the stepping motor; and an output signal of the encoder Start position detection means for detecting a drive start position based on the following: an actual end position detection means for detecting an actual drive end position based on an output signal of an encoder; and the number of drive pulse signals output from the control device to a driver. From the start signal and the output signal of the encoder .
Whether a target end position calculating means for calculating, by comparing the detected actual driving end position and calculated target driving end position of the step-out target drive end position relative to the detected driving start position I Determining means for determining whether a step-out has occurred, and using the detected actual drive end position as the drive start position as a drive start position to control the stepping motor to rotate in a different direction from the previous drive pulse signal for the current drive. A drive control device for a stepping motor, comprising: correction pulse number calculation means for calculating a correction pulse number to be added or subtracted from a set number from a previous actual drive end position and a target drive end position.
JP9770692A 1992-04-17 1992-04-17 Drive control device for stepping motor Expired - Fee Related JP2918742B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9770692A JP2918742B2 (en) 1992-04-17 1992-04-17 Drive control device for stepping motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9770692A JP2918742B2 (en) 1992-04-17 1992-04-17 Drive control device for stepping motor

Publications (2)

Publication Number Publication Date
JPH0646596A JPH0646596A (en) 1994-02-18
JP2918742B2 true JP2918742B2 (en) 1999-07-12

Family

ID=14199366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9770692A Expired - Fee Related JP2918742B2 (en) 1992-04-17 1992-04-17 Drive control device for stepping motor

Country Status (1)

Country Link
JP (1) JP2918742B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4807932B2 (en) * 2003-11-14 2011-11-02 株式会社三共 Game machine
JP4535013B2 (en) * 2006-03-21 2010-09-01 株式会社三洋物産 Game machine
JP4535012B2 (en) * 2006-03-21 2010-09-01 株式会社三洋物産 Game machine
JP4840500B2 (en) * 2009-10-02 2011-12-21 株式会社三洋物産 Game machine

Also Published As

Publication number Publication date
JPH0646596A (en) 1994-02-18

Similar Documents

Publication Publication Date Title
US6424798B1 (en) Device for controlling sensorless brushless-DC-motor
EP0762626B1 (en) Motor control unit
JP2918742B2 (en) Drive control device for stepping motor
JP3053144B2 (en) Printer carriage motor controller
JPH05252778A (en) Method for controlling speed malfunction time of copying machine optical system
JP3800917B2 (en) Motor control device and storage medium
JP3458718B2 (en) Serial printer and operating method of serial printer
JP3503429B2 (en) Motor control device
JPH06286276A (en) Control method of detection of carrier jam
JPS62100196A (en) Drive circuit for stepping motor
JPS60236781A (en) Serial printer controlling system
JP2644662B2 (en) Rotary cutter control method
JP2742233B2 (en) Line thermal printer
JP3093741B2 (en) Magnetic tape running control method and control device
JP2720483B2 (en) Positioning control device
US5149215A (en) Carriage position error detection in a serial printer
JPS59149796A (en) Control system for stepping motor
JP3372960B2 (en) Carriage control device
JP2742243B2 (en) Print correction method
JPH06146327A (en) Working machine control device for construction machine
JPS62253459A (en) Printer
JP2003039762A (en) Printing unit
JPH0447408A (en) Numerical controller
JPH02121867A (en) Printer
JPH05122966A (en) Printer controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees