JPH05176575A - Speed detecting method based on encoder signal - Google Patents

Speed detecting method based on encoder signal

Info

Publication number
JPH05176575A
JPH05176575A JP3135828A JP13582891A JPH05176575A JP H05176575 A JPH05176575 A JP H05176575A JP 3135828 A JP3135828 A JP 3135828A JP 13582891 A JP13582891 A JP 13582891A JP H05176575 A JPH05176575 A JP H05176575A
Authority
JP
Japan
Prior art keywords
speed
time
encoder signal
cam
cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3135828A
Other languages
Japanese (ja)
Inventor
Noriaki Kabetani
紀昭 壁谷
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP3135828A priority Critical patent/JPH05176575A/en
Publication of JPH05176575A publication Critical patent/JPH05176575A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To ensure the detection frequency of speed detection, and to improve the accuracy of detecting speed without being subject to the effect of the mounting error of a detection means. CONSTITUTION:A first time T1 obtained by multiplying a count value J by 100musec is stored in a first time memory in S20, and a period ST acquired by adding a second time T2 previously stored in a second time memory and the first time T1 is stored in a period memory in S21. The speed of a motor is arithmetically operated on the basis of the period ST and a fixed angle and the speed value V obtained is stored in a speed memory in S22. The motor is driven and controlled so that the speed value V stored in the speed memory reaches set speed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はエンコーダ信号に基く速
度検出方法に関し、特に検出手段からのエンコーダ信号
の立上り毎又は立下り毎にスリット板の速度を検出する
方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a speed detecting method based on an encoder signal, and more particularly to a method for detecting the speed of a slit plate each time the encoder signal from the detecting means rises or falls.

【0002】[0002]

【従来の技術】従来、電動モータやエンジンなどの駆動
軸或いはこれらの駆動軸で駆動される被駆動系の回転軸
の回転速度を検出する場合に、フォト・エンコーダ(オ
プティカル・エンコーダ)方式が一般に採用されてい
る。即ち、複数のスリットを円周方向に所定間隔おきに
形成した円形且つ薄板状のディスク板をモータの駆動軸
に固着し、発光素子及び受光素子とを設けた光学系のセ
ンサでこれら複数のスリットを検出し、このセンサから
出力されるエンコーダ信号に基いてモータの回転速度を
検出するようにしている。
2. Description of the Related Art Conventionally, a photo encoder (optical encoder) system is generally used to detect the rotational speed of a drive shaft of an electric motor or an engine or a rotary shaft of a driven system driven by these drive shafts. Has been adopted. That is, a circular and thin disk plate in which a plurality of slits are formed at predetermined intervals in the circumferential direction is fixed to a drive shaft of a motor, and an optical system sensor provided with a light emitting element and a light receiving element is provided with these slits. Is detected, and the rotation speed of the motor is detected based on the encoder signal output from this sensor.

【0003】ところで、複数のスリットをそのスリット
幅の略2倍の寸法の間隔毎に円周方向に形成した場合に
は、各スリットの始端及び終端毎にセンサからのエンコ
ーダ信号を読込み、このエンコーダ信号の立下り
(「H」レベルから「L」レベルへの切換え)毎に直前
の立上り(「L」レベルから「H」レベルへの切換え)
からこの立下りまでのHレベル期間のHレベル時間を求
め、このHレベル時間に基いてスリット板つまりモータ
の回転速度を検出するとともに、エンコーダ信号の立上
り毎に直前の立下りからこの立上りまでのLレベル期間
のLレベル時間を求め、このLレベル時間に基いてモー
タの回転速度を検出するようにしている。但し、これら
Hレベル時間とLレベル時間とが等しくなるように、セ
ンサの取付け位置が調節されている。
By the way, when a plurality of slits are formed in the circumferential direction at intervals of approximately twice the width of the slit, encoder signals from the sensor are read at the beginning and end of each slit, and the encoder is read. Every time the signal falls (switches from "H" level to "L" level) immediately preceding rise (switches from "L" level to "H" level)
From this to the fall, the H level time of the H level period is obtained, the rotation speed of the slit plate, that is, the motor is detected based on this H level time, and at every rise of the encoder signal, from the immediately preceding fall to this rise. The L level time of the L level period is calculated, and the rotation speed of the motor is detected based on this L level time. However, the mounting position of the sensor is adjusted so that the H level time and the L level time are equal.

【0004】[0004]

【発明が解決しようとする課題】前述したように、セン
サを介して各スリットの始端及び終端毎にエンコーダ信
号を読込んで、これらHレベル時間及びLレベル時間に
基いて回転速度を検出する場合、エンコーダ信号のHレ
ベル時間とLレベル時間とを等しくする為に、センサの
光学系特性を鑑みて、スリットの幅寸法やスリット間隔
を設計するので、スリット板製作に高度の技術を必要と
すること、エンコーダ信号のHレベル時間とLレベル時
間とが等しくなるようにセンサを精度良く取付ける取付
け作業に多大の労力を要すること、更に図10に示すよ
うに、センサの取付け精度にバラツキが生じ、例えば1
点鎖線で示すようにHレベル時間が誤差時間tだけ長く
なったときには、Hレベル時間とLレベル時間とに基い
て夫々求めた検出速度に誤差が生じること、などの問題
がある。
As described above, when the encoder signal is read at each of the beginning and the end of each slit through the sensor and the rotation speed is detected based on these H level time and L level time, In order to equalize the H level time and the L level time of the encoder signal, the width dimension of the slit and the slit interval are designed in consideration of the optical system characteristics of the sensor, so that a high level technology is required for manufacturing the slit plate. In addition, a great amount of labor is required for the mounting work of mounting the sensor with high accuracy so that the H level time and the L level time of the encoder signal become equal, and further, as shown in FIG. 1
When the H level time becomes longer by the error time t as shown by the dotted line, there is a problem that an error occurs in the detection speeds respectively calculated based on the H level time and the L level time.

【0005】本発明の目的は、速度検出のサイクルタイ
ムを短くし且つ検出手段の取付け誤差の影響を受けるこ
となく検出速度の精度を向上し得るようにしたエンコー
ダ信号に基く速度検出方法を提供することにある。
An object of the present invention is to provide a speed detection method based on an encoder signal, which can shorten the speed detection cycle time and improve the accuracy of the detection speed without being affected by the mounting error of the detection means. Especially.

【0006】[0006]

【課題を解決するための手段】本発明に係るエンコーダ
信号に基く速度検出方法は、スリット板に円周方向又は
直線方向に所定間隔おきに形成された複数のスリットを
検出手段で検出し、検出手段からのエンコーダ信号を用
いてスリット板の速度を検出する速度検出方法におい
て、各スリットの始端及び終端毎にエンコーダ信号を読
込み、エンコーダ信号の「L」から「H」への各立上り
毎に前回の立上りから今回の立上りまでの周期を求め且
つその周期を用いてスリット板の速度を検出し、エンコ
ーダ信号の「H」から「L」への各立下り毎に前回の立
下りから今回の立下りまでの周期を求め且つその周期を
用いてスリット板の速度を検出するものである。
A velocity detecting method based on an encoder signal according to the present invention detects a plurality of slits formed in a slit plate at predetermined intervals in a circumferential direction or a linear direction, and detects the slits. In the speed detecting method for detecting the speed of the slit plate using the encoder signal from the means, the encoder signal is read at each start and end of each slit, and the previous time is read every time the encoder signal rises from "L" to "H". From the rising of this time to the rising of this time, the speed of the slit plate is detected using this cycle, and every time the encoder signal goes from “H” to “L”, the previous falling to the current rising The period until the descent is obtained, and the velocity of the slit plate is detected by using the period.

【0007】[0007]

【作用】本発明に係るエンコーダ信号に基く速度検出方
法においては、スリット板に円周方向又は直線方向に所
定間隔おきに形成された複数のスリットの各々の始端及
び終端毎に検出手段からのエンコーダ信号が読込まれ、
このエンコーダ信号の「L」から「H」への各立上り毎
に前回の立上りから今回の立上りまでの周期を求め且つ
その周期を用いてスリット板の速度を検出するととも
に、このエンコーダ信号の「H」から「L」への各立下
り毎に前回の立下りから今回の立下りまでの周期を求め
且つその周期を用いてスリット板の速度を検出する。こ
こで、図10に示すように、検出手段の取付け精度のバ
ラツキにより例えHレベル時間に誤差時間が含まれた場
合でも、前回の立上りから今回の立上りまでの周期(H
レベル時間+Lレベル時間)或いは前回の立下りから今
回の立下りまでの周期については、誤差時間の影響を受
けないので、この周期によるスリット板の検出速度精度
を大幅に向上できる。更に、この誤差時間の影響を受け
ないので、検出手段の光学系特性を鑑みることなくスリ
ット板の製作を容易にすることができる上、検出手段の
取付け作業を大幅に簡単化することができる。
In the velocity detecting method based on the encoder signal according to the present invention, the encoder from the detecting means is provided for each of the start and end of the plurality of slits formed at predetermined intervals in the circumferential direction or the linear direction on the slit plate. The signal is read,
For each rising edge of this encoder signal from "L" to "H", the cycle from the previous rising edge to this rising edge is obtained, the speed of the slit plate is detected using this cycle, and the "H" level of this encoder signal is detected. For each trailing edge from "L" to "L", the cycle from the previous trailing edge to the current trailing edge is obtained, and the speed of the slit plate is detected using this cycle. Here, as shown in FIG. 10, even if the error time is included in the H level time due to the variation in the mounting accuracy of the detecting means, the cycle (H
The level time + L level time) or the cycle from the previous fall to the current fall is not affected by the error time, so that the detection speed accuracy of the slit plate due to this cycle can be greatly improved. Further, since it is not affected by this error time, the slit plate can be easily manufactured without considering the optical system characteristics of the detecting means, and the mounting operation of the detecting means can be greatly simplified.

【0008】[0008]

【発明の効果】本発明に係るエンコーダ信号に基く速度
検出方法によれば、〔作用〕の項で説明したように、各
スリットの始端及び終端毎にエンコーダ信号を読込む一
方、エンコーダ信号の立上り毎又は立下り毎に周期を求
めるとともに、その周期によりスリット板の速度を検出
するので、この周期については誤差時間に影響せず、ス
リット板の検出速度精度を大幅に向上できること、検出
手段の光学系特性を鑑みることなくスリット板の製作を
容易にできること、更に検出手段の取付け作業を大幅に
簡単化できること、加えて速度はエンコーダ信号の立上
り毎及び立下り毎に検出されるので、従来と同様に速度
検出のサイクルタイムを短くできること、などの効果が
ある。
According to the velocity detecting method based on the encoder signal of the present invention, as described in the section [Operation], the encoder signal is read at each of the start and end of each slit and the rising edge of the encoder signal is obtained. Every period or every fall, the speed of the slit plate is detected by the period, so the error time is not affected for this period, and the accuracy of the detection speed of the slit plate can be greatly improved. The slit plate can be easily manufactured without considering the system characteristics, the mounting work of the detecting means can be greatly simplified, and the speed can be detected at each rising and falling of the encoder signal. In addition, the speed detection cycle time can be shortened.

【0009】[0009]

【実施例】以下、本発明の実施例について図面に基いて
説明する。本実施例は電子タイプライタに設けられた1
つの直流モータの回転速度を検出する速度検出方法に本
発明を適用した場合のものである。図1・図2に示すよ
うに、タイプライタ1のケーシングの内部の左右両端に
は夫々側壁板(機枠)2が設けられ、その1対の側壁板
2間に配設されたプラテン3は、そのプラテン軸4の両
端部近傍において両側壁板2に回転可能に支持されると
ともに、プラテン軸4の左端部に固着した従動ギヤ(図
示略)を介してラインフィードモータ(図6参照)39
及び図示外のプラテン駆動機構により回転駆動される。
Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, 1 provided on the electronic typewriter
This is a case where the present invention is applied to a speed detection method for detecting the rotation speeds of two DC motors. As shown in FIGS. 1 and 2, side wall plates (machine frames) 2 are provided on both left and right ends inside the casing of the typewriter 1, and the platen 3 disposed between the pair of side wall plates 2 is A line feed motor (see FIG. 6) 39 is rotatably supported by both side wall plates 2 in the vicinity of both ends of the platen shaft 4, and via a driven gear (not shown) fixed to the left end of the platen shaft 4.
And is driven to rotate by a platen drive mechanism (not shown).

【0010】1対の側壁板2間には、更にガイド軸5と
側面視略U字状のガイド部材6とがプラテン3と平行に
配設されており、次にこれらガイド軸5及びガイド部材
6に左右方向移動可能に支持されたキャリッジ7につい
て、図1〜図4に基いて説明する。ガイド軸5とガイド
部材6との間において、左右方向に所定距離隔てた板状
で且つ概ね矩形状の1対のメインフレーム8が前後方向
向きに配設され、これら両メインフレーム8は、ガイド
軸5に左右方向移動可能且つ回転可能に支持された支持
部材9の第1支持部10及び第2支持部11の上端部で
あって、両メインフレーム8間にスペーサとして挿入さ
れたこれら両支持部10・11の上端部に外側からピン
12・13で夫々固着されている。尚、これら1対のメ
インフレーム8でキャリッジ本体14が構成されてい
る。
Between the pair of side wall plates 2, a guide shaft 5 and a guide member 6 which is substantially U-shaped in side view are further arranged in parallel with the platen 3. Next, the guide shaft 5 and the guide member are arranged. The carriage 7, which is supported by the carriage 6 so as to be movable in the left-right direction, will be described with reference to FIGS. Between the guide shaft 5 and the guide member 6, a pair of plate-shaped and substantially rectangular main frames 8 are arranged in the front-rear direction at a predetermined distance in the left-right direction. The upper ends of the first supporting portion 10 and the second supporting portion 11 of the supporting member 9 supported by the shaft 5 so as to be movable in the left-right direction and rotatably, and both of these supporting members are inserted as spacers between the main frames 8. Pins 12 and 13 are fixed to the upper ends of the parts 10 and 11 from the outside, respectively. The pair of main frames 8 constitutes the carriage body 14.

【0011】次に、印字機構15について説明すると、
右側のメインフレーム8には直流モータ16がそれ自身
の回転を防止した状態で支持され、このモータ16の駆
動軸17は両メインフレーム8を夫々挿通して左方へ延
び、この駆動軸17にはモータ16側から、両メインフ
レーム8の内側に位置し側面視略巴形状の印字用カム1
8と、モータ16の回転速度を検出する為のエンコーダ
ディスク19と、印字リボンPRをステップ送りする為
のリボン供給用カム22とホルダ部材32を消去位置に
上昇駆動する為の上昇用カム21とが夫々固着されてい
る。尚、印字用カム18とリボン供給用カム22と上昇
用カム21とでカム体20が構成され、リボン供給用カ
ム22と上昇用カム21とは一体的に形成されている。
図1・図4に印字用カム18の印字開始位置を示す。
Next, the printing mechanism 15 will be described.
A DC motor 16 is supported by the main frame 8 on the right side in a state in which the DC motor 16 is prevented from rotating, and a drive shaft 17 of this motor 16 is inserted through both main frames 8 and extends to the left. Is located inside the main frames 8 from the side of the motor 16 and has a generally side-viewed side view cam 1 for printing.
8, an encoder disk 19 for detecting the rotation speed of the motor 16, a ribbon supply cam 22 for stepwise feeding the print ribbon PR, and a raising cam 21 for raising and driving the holder member 32 to the erasing position. Are fixed respectively. A cam body 20 is composed of the printing cam 18, the ribbon supply cam 22, and the lifting cam 21, and the ribbon supply cam 22 and the lifting cam 21 are integrally formed.
1 and 4 show the print start position of the print cam 18.

【0012】前記エンコーダディスク19の外周部には
図4に示すように、複数のスリット19aがそのスリッ
ト幅の略2倍の寸法の間隔毎に環状に形成され、これら
複数のスリット19aを検出する為のフォトインタラプ
タ36が左側のメインフレーム8に固着されている。即
ち、このフォトインタラプタ36はエンコーダディスク
19の回転により移動するスリット19aの始端及び終
端毎にエンコーダ信号を制御装置Cの入出力インターフ
ェイス85に出力する。但し、スリット19aは約2.
4°間隔で配置されている。
As shown in FIG. 4, a plurality of slits 19a are formed in an annular shape on the outer peripheral portion of the encoder disk 19 at intervals of approximately twice the slit width, and these slits 19a are detected. A photo interrupter 36 for fixing is fixed to the left main frame 8. That is, the photo interrupter 36 outputs an encoder signal to the input / output interface 85 of the control device C at each of the start end and the end of the slit 19a which is moved by the rotation of the encoder disk 19. However, the slit 19a is about 2.
They are arranged at 4 ° intervals.

【0013】両メインフレーム8の後端部の上端部に
は、側面視略く字状の回動レバー23の中央部とリンク
24の下端部とが夫々ピン25・26で回動可能に枢支
され、プラテン3に対向するように前後方向向きに配設
された印字ハンマー27はその後端部でリンク24の上
端部に回動可能に枢着されるとともに、前後方向の中央
部で回動レバー23の上端部に回動可能に枢着されてい
る。更に、回動レバー23の前端部にはカムフォロワ2
8が回転可能に枢着され、このカムフォロワ28が印字
用カム18のカム面に常に当接するように回動レバー2
3の上端部とリンク24の下端部とに引っ張りバネ29
が張架されている。尚、符号30はホイール駆動モータ
(図6参照)37及び図示外のホイール駆動機構により
回転駆動されるディジーホイールであり、符号31は印
字リボンPRを収納したリボンカセットであり、符号3
2はリボンカセット31を載置するとともに、ガイド軸
5に左右方向移動自在に枢支された補助フレーム33に
支持軸34を介して上下に揺動可能なホルダ部材であ
る。前記キャリッジ7はキャリッジ駆動モータ(図6参
照)38及び図示外の駆動機構により駆動ワイヤを介し
てプラテン3に沿って左右方向に往復移動駆動される。
At the upper ends of the rear ends of both main frames 8, a central portion of a rotary lever 23 and a lower end portion of a link 24, which are substantially V-shaped when viewed from the side, are pivoted by pins 25 and 26, respectively. The print hammer 27 which is supported and arranged in the front-rear direction so as to face the platen 3 is pivotally attached to the upper end of the link 24 at the rear end thereof, and is rotated at the center in the front-rear direction. It is pivotally attached to the upper end of the lever 23 so as to be rotatable. Further, the cam follower 2 is attached to the front end of the turning lever 23.
8 is rotatably attached to the rotary lever 2 so that the cam follower 28 always contacts the cam surface of the printing cam 18.
A tension spring 29 is attached to the upper end of the link 3 and the lower end of the link 24.
Is stretched. Reference numeral 30 is a daisy wheel rotatably driven by a wheel drive motor (see FIG. 6) 37 and a wheel drive mechanism (not shown), and reference numeral 31 is a ribbon cassette accommodating the print ribbon PR, and reference numeral 3
Reference numeral 2 denotes a holder member on which a ribbon cassette 31 is placed and which can be vertically swung via a support shaft 34 on an auxiliary frame 33 pivotally supported by a guide shaft 5 so as to be movable in the left-right direction. The carriage 7 is reciprocally driven in the left-right direction along the platen 3 via a drive wire by a carriage drive motor (see FIG. 6) 38 and a drive mechanism (not shown).

【0014】前記印字用カム18の外側の湾曲状カム面
は図4に示すように、カムフォロワ28が摺動する摺動
範囲において、その略前半部分では半径拡大率が大きく
なっており、印字ハンマー27がプラテン3を打撃する
ときにカムフォロワ28が摺動する打撃部分を含むその
略後半部分では半径拡大率が微少になっている。しか
も、印字ハンマー27の打撃後においても印字ハンマー
27をプラテン3に押圧し得るように、印字用カム18
には摺動範囲より所定長さだけ湾曲状カムが延長されて
いる。
As shown in FIG. 4, the curved cam surface on the outer side of the printing cam 18 has a large radius enlargement ratio in the substantially first half portion in the sliding range in which the cam follower 28 slides. The radius expansion rate is very small in the approximately latter half portion including the striking portion where the cam follower 28 slides when the platen 3 strikes the platen 3. Moreover, the printing cam 18 is configured so that the printing hammer 27 can be pressed against the platen 3 even after the printing hammer 27 is hit.
The curved cam extends from the sliding range by a predetermined length.

【0015】従って、カム体20が印字開始位置からモ
ータ16により図1にて印字方向Pに所定角度だけ高速
で回転されると、カムフォロワ28が印字用カム18の
湾曲状カム面に沿って上昇するので、回動レバー23が
反時計回転方向に回動し、印字ハンマー27はディジー
ホイール30の活字30a及び印字リボンPRを介して
プラテン3を打撃する。
Therefore, when the cam body 20 is rotated at a high speed by a predetermined angle in the print direction P in FIG. 1 from the print start position by the motor 16, the cam follower 28 rises along the curved cam surface of the print cam 18. As a result, the rotating lever 23 rotates counterclockwise, and the print hammer 27 strikes the platen 3 via the type 30a of the daisy wheel 30 and the print ribbon PR.

【0016】ここで、両メインフレーム8の上端部の外
側には前後方向に延びる調節用プレート41が夫々配設
され、両調節用プレート41の前端部には各メインフレ
ーム8に形成された長円孔8aを挿通した支軸42が固
着されている。一方、前記支軸42に後端部が回動可能
に枢支された当接部材44の前端部にはガイド部材6の
後端部に摺接自在に係合する係合部44aが設けられて
いる。
Here, adjustment plates 41 extending in the front-rear direction are provided outside the upper ends of both main frames 8, and the front ends of both adjustment plates 41 have the lengths formed in each main frame 8. The support shaft 42 inserted through the circular hole 8a is fixed. On the other hand, an engaging portion 44a that slidably engages with the rear end of the guide member 6 is provided at the front end of the contact member 44 whose rear end is rotatably supported by the support shaft 42. ing.

【0017】次に、文字消去時に印字リボンPRに代え
て消去リボンCRを印字ハンマー27に対向させるため
にホルダ部材32を印字位置から消去位置に上昇させる
消去機構50について、図1〜図5に基いて簡単に説明
する。前記上昇用カム21とリボン供給用カム22とは
一体的なカム体として形成されており、このカム体の左
側に形成された上昇用カム21には、このカム21の中
心から等半径を有する基準カム21aと、この基準カム
21aから連続して半径拡大方向に延びる第1傾斜カム
面21bと、この第1傾斜カム面21bに途中部におい
て連なり且つ外周カム面21dに連なる第2傾斜カム面
21cと、この第2傾斜カム面21cの右端部から半径
拡大方向に延びる薄肉状の案内壁21eであってこのカ
ム21の左端面21fから案内壁21eの薄肉状左端部
21gに亙って徐々に肉厚が減少する案内壁21eと、
この案内壁21eの外周に沿って案内壁21eより左端
面21f側へ突出状に形成された案内リブ21hであっ
て案内壁21eから半径が縮小する方向に左端面21f
まで延びた案内リブ21hとが形成されている。
1 to 5 show an erasing mechanism 50 for raising the holder member 32 from the printing position to the erasing position so that the erasing ribbon CR, instead of the printing ribbon PR, faces the printing hammer 27 when erasing characters. A brief description will be given based on this. The ascending cam 21 and the ribbon supply cam 22 are formed as an integral cam body, and the ascending cam 21 formed on the left side of the cam body has an equal radius from the center of the cam 21. The reference cam 21a, a first inclined cam surface 21b continuously extending from the reference cam 21a in the radial expansion direction, and a second inclined cam surface continuous with the first inclined cam surface 21b at an intermediate portion and with the outer peripheral cam surface 21d. 21c and a thin-walled guide wall 21e extending from the right end portion of the second inclined cam surface 21c in the radial expansion direction, and gradually extending from the left end surface 21f of the cam 21 to the thin-walled left end portion 21g of the guide wall 21e. A guide wall 21e with a reduced wall thickness,
The guide ribs 21h are formed along the outer periphery of the guide wall 21e so as to project from the guide wall 21e toward the left end face 21f, and the left end face 21f extends in a direction in which the radius decreases from the guide wall 21e.
A guide rib 21h extending up to is formed.

【0018】更に、この上昇用カム21に当接する従動
ピン52は、ホルダ部材32の左端部の側壁32aに上
端部が固着された支持部材51の下端部に左右方向移動
可能に支持され、コイルバネ53により常に右方へ弾性
付勢されている。この従動ピン52は、印字開始時には
図4に示すようにホルダ部材32の自重により、そのピ
ン先端部を基準カム21aに上方から当接させてホルダ
部材32を図1に示す印字位置(基準揺動位置)に支持
するとともに、前記左端面21fに左方から当接させて
いる。即ち、ホルダ部材32の上下揺動量はこの従動ピ
ン52の上下方向の移動量により決定される。ここで、
印字開始時における印字用カム18と上昇用カム21と
従動ピン52とカムフォロワ28との位置関係を図4に
示す。
Further, the driven pin 52 abutting against the ascending cam 21 is supported by a lower end portion of a support member 51 having an upper end portion fixed to a side wall 32a at the left end portion of the holder member 32 so as to be movable in the left-right direction, and a coil spring. It is always elastically urged to the right by 53. At the start of printing, the driven pin 52 causes the tip end of the pin to contact the reference cam 21a from above due to the weight of the holder member 32 as shown in FIG. The left end face 21f is brought into contact with the left end face 21f from the left. That is, the amount of vertical swing of the holder member 32 is determined by the amount of vertical movement of the driven pin 52. here,
FIG. 4 shows the positional relationship among the printing cam 18, the lifting cam 21, the driven pin 52, and the cam follower 28 at the start of printing.

【0019】従って、カム体20が図4に示す印字開始
時の位相角からモータ16により印字方向Pと反対方向
(反印字方向という)に所定角度だけ回転したとき、従
動ピン52は第1傾斜カム面21bにより上方へ移動す
るのでホルダ部材32もその上方への移動距離に応じて
上方に揺動し、その後カム体20が印字方向Pに回転さ
れると従動ピン52は第2傾斜カム面21cを経て外周
カム面21dに到達するので、ホルダ部材32は更に上
方に揺動して消去位置に切換えられる。このとき、消去
リボンCRは印字ハンマー27に対向した位置となる。
Therefore, when the cam body 20 is rotated by a predetermined angle in the direction opposite to the printing direction P (referred to as the anti-printing direction) by the motor 16 from the phase angle at the start of printing shown in FIG. Since the cam surface 21b moves upward, the holder member 32 also swings upward according to the upward moving distance, and when the cam body 20 is rotated in the printing direction P after that, the driven pin 52 moves the second inclined cam surface. Since the outer peripheral cam surface 21d is reached via 21c, the holder member 32 is swung further upward and switched to the erasing position. At this time, the erasing ribbon CR is at a position facing the print hammer 27.

【0020】ここで、印字ハンマー27が印字作動する
までに印字リボンPRを所定量分だけ巻取りスプールに
巻取る印字リボン巻取り機構及び消去作動後に消去リボ
ンCRを所定両だけ巻取りスプールに巻取る消去リボン
巻取り機構が設けられているが、本発明に直接関係しな
いので、その説明を省略する。尚、符号61は印字リボ
ンPRの巻取りスプール67に連結されたラチェット、
符号76は消去リボンCRを巻装した供給スプール、符
号77は消去リボンCRの巻取りスプール、符号78は
巻取りスプール77に連結されたラチェットである。
Here, a predetermined amount of the print ribbon PR is wound on the take-up spool before the print hammer 27 starts the print operation, and a erasing ribbon CR is wound on the take-up spool by a predetermined number after the erasing operation. An erasing ribbon winding mechanism is provided, but the description thereof is omitted because it is not directly related to the present invention. Reference numeral 61 is a ratchet connected to the take-up spool 67 of the print ribbon PR,
Reference numeral 76 is a supply spool around which the erasing ribbon CR is wound, reference numeral 77 is a take-up spool for the erasing ribbon CR, and reference numeral 78 is a ratchet connected to the take-up spool 77.

【0021】次に、電子タイプライタ1の制御系は図6
のブロック図に示すように構成されている。キーボード
KBには、アルファベットキーと数字キーと記号キーを
含む文字キー、スペースキー、リターンキー、その他各
種の機能キーなどが通常のものと同様に設けられてい
る。
Next, the control system of the electronic typewriter 1 is shown in FIG.
The block diagram of FIG. The keyboard KB is provided with character keys including alphabet keys, numeral keys, and symbol keys, a space key, a return key, and other various function keys in the same manner as a normal keyboard.

【0022】前記モータ16の回転速度制御について説
明すると、制御装置Cは、フォトインタラプタ36から
入力したエンコーダ信号を用いて回転速度を検出する一
方、設定された回転速度となるようにPWM(パルス幅
変調)制御のデューティ比を決定し、そのデューティ比
のパルス信号が駆動回路81へ供給され、そのパルス信
号に対応する駆動電流がモータ16へ出力される。
The rotation speed control of the motor 16 will be described. The control device C detects the rotation speed using the encoder signal input from the photo interrupter 36, and at the same time, sets the PWM (pulse width) so that the rotation speed is set. The duty ratio of (modulation) control is determined, a pulse signal having the duty ratio is supplied to the drive circuit 81, and a drive current corresponding to the pulse signal is output to the motor 16.

【0023】制御装置CはCPU87と、CPU87に
データバスなどのバス86を介して接続された入出力
(I/O)インターフェイス85、ROM88及びRA
M90とから構成されている。ROM88には、印字動
作や消去動作を実行する為にモータ16を駆動する駆動
制御プログラム、印字動作や消去動作に連動して各モー
タ37〜39を駆動する駆動制御プログラム、キーボー
ドKBで文字キーや記号キーなどの印字可能キーが操作
されたときに実行される文字印字制御の制御プログラム
などが格納されている。
The controller C has a CPU 87, an input / output (I / O) interface 85 connected to the CPU 87 via a bus 86 such as a data bus, a ROM 88 and an RA.
It is composed of M90. The ROM 88 has a drive control program for driving the motor 16 to execute a printing operation or an erasing operation, a drive control program for driving each of the motors 37 to 39 in association with the printing operation or the erasing operation, a character key on the keyboard KB, A control program for character printing control executed when a printable key such as a symbol key is operated is stored.

【0024】RAM90の第1時間メモリ(内容を時間
T1とする)91には、エンコーダ信号の各立上り
(「L」レベルから「H」レベルへの切換え)毎に前回
の立上りから今回の立上りまでの周期の後半のLレベル
期間のLレベル時間が格納され、又はエンコーダ信号の
各立下り(「H」レベルから「L」レベルへの切換え)
毎に前回の立下りから今回の立下りまでの周期の後半の
Hレベル期間のHレベル時間が格納される。また、第2
時間メモリ(内容を時間T2とする)92には、エンコ
ーダ信号の各立上り毎に前回の立上りから今回の立上り
までの周期の前半のHレベル期間のHレベル時間が格納
され、又はエンコーダ信号の各立下り毎に前回の立下り
から今回の立下りまでの周期の前半のLレベル期間のL
レベル時間が格納される(図9参照)。周期メモリ93
には、第1時間T1と第2時間T2とを加算した周期S
Tが格納される。速度メモリ94には、演算で求められ
たモータ16の速度値V(rpm)が格納される。カウンタ
メモリ95には、100μsec毎にインクリメントされ
るカウント値Jが格納される。更に、RAM90には、
タイプライタ1の制御上必要なデータやCPU87の演
算結果を一時的に格納するバッファ、カウンタ及びポイ
ンタなどの種々のメモリが設けられている。
The first time memory (whose content is time T1) 91 of the RAM 90 is stored from the previous rise to the present rise at each rising edge of the encoder signal (switching from the "L" level to the "H" level). The L level time of the L level period of the latter half of the cycle is stored, or each falling edge of the encoder signal (switching from “H” level to “L” level)
Each time, the H level time of the H level period of the latter half of the cycle from the previous fall to the present fall is stored. Also, the second
The time memory (whose content is time T2) 92 stores the H level time of the H level period in the first half of the cycle from the previous rising to the current rising for each rising of the encoder signal, or each of the encoder signals. At each fall, L in the L level period in the first half of the cycle from the previous fall to this fall
The level time is stored (see FIG. 9). Cycle memory 93
Is a cycle S obtained by adding the first time T1 and the second time T2.
T is stored. The speed memory 94 stores the speed value V (rpm) of the motor 16 calculated. The counter memory 95 stores a count value J that is incremented every 100 μsec. Furthermore, in the RAM 90,
Various memories such as a buffer, a counter and a pointer for temporarily storing the data necessary for controlling the typewriter 1 and the calculation result of the CPU 87 are provided.

【0025】次に、タイプライタ1の制御装置Cで文字
印字制御が実行されたときに、この制御に含まれCPU
87に対して割り込み処理により実行される計時制御の
サブルーチン及び速度検出制御のサブルーチンについ
て、図7・図8のフローチャートに基いて説明する。
尚、図中符号Si(i=20、21、22・・・)は各
ステップである。
Next, when the character printing control is executed by the control device C of the typewriter 1, the CPU included in this control is executed.
The timing control subroutine and the speed detection control subroutine executed by the interrupt process for 87 will be described with reference to the flowcharts of FIGS. 7 and 8.
In addition, reference numeral Si (i = 20, 21, 22, ...) In the drawing represents each step.

【0026】キーボードKBにおいて文字キー或いは記
号キーが操作されて文字印字制御が実行されると同時
に、100μsec 毎のインターバル割り込みにより計時
制御(図7参照)が開始され、カウンタメモリ95のカ
ウント値Jが「1」だけインクリメントされ(S3
0)、この制御を終了する。
At the same time that the character key or the symbol key is operated on the keyboard KB to execute the character print control, the time count control (see FIG. 7) is started by the interval interrupt every 100 μsec, and the count value J of the counter memory 95 is changed. It is incremented by "1" (S3
0), this control ends.

【0027】更に、文字印字制御の開始後、フォトイン
タラプタ36から入力したエンコーダ信号の立上り毎又
は立下り毎に速度検出制御(図8参照)が開始され、先
ずカウント値Jに100μsec を乗じた第1時間T1が
第1時間メモリ91に格納され(S20)、第2時間メ
モリ92に既に格納されている第2時間T2とこの第1
時間T1とを加算した周期STが周期メモリ93に格納
される(S21)。次に、この周期STと所定角度(例
えば、2.4 °)とに基いてモータ16の速度演算が実行
され、この求められた速度値V(rpm)が速度メモリ94
に格納される(S22)。次に、第1時間T1が第2時
間メモリ92に第2時間T2として格納され(S2
3)、カウント値Jがクリアされ(S24)、この制御
を終了する。但し、この文字印字制御の開始後、エンコ
ーダ信号の立上り及び立下りが数個入力されるまで、モ
ータ16は所定の初期速度で駆動される。
Further, after the character printing control is started, the speed detection control (see FIG. 8) is started each time the encoder signal input from the photo interrupter 36 rises or falls, and the count value J is first multiplied by 100 μsec. The first time T1 is stored in the first time memory 91 (S20), and the second time T2 already stored in the second time memory 92 and the first time T2 are stored.
The cycle ST obtained by adding the time T1 is stored in the cycle memory 93 (S21). Next, the speed calculation of the motor 16 is executed based on this cycle ST and a predetermined angle (for example, 2.4 °), and the calculated speed value V (rpm) is stored in the speed memory 94.
(S22). Next, the first time T1 is stored in the second time memory 92 as the second time T2 (S2
3), the count value J is cleared (S24), and this control ends. However, after starting this character printing control, the motor 16 is driven at a predetermined initial speed until several rising and falling encoder signals are input.

【0028】例えば、図9に示すように、矢印Aで示す
エンコーダ信号の立上りのタイミングのときには、第1
時間メモリ91に格納された第1時間T1(Lレベル時
間)と第2時間メモリ92に格納された第2時間T2
(Hレベル時間)とを加算した周期STに基いてモータ
16の回転速度(rpm)が演算される。そして、演算で求
められた回転速度が設定された回転速度となるようにモ
ータ16が駆動制御される。
For example, as shown in FIG. 9, at the rising timing of the encoder signal indicated by arrow A, the first
The first time T1 (L level time) stored in the time memory 91 and the second time T2 stored in the second time memory 92
The rotation speed (rpm) of the motor 16 is calculated based on the cycle ST obtained by adding (H level time). Then, the drive of the motor 16 is controlled so that the calculated rotation speed becomes the set rotation speed.

【0029】以上説明したように、フォトインタラプタ
36の取付け精度のバラツキにより例え第1時間T1或
いは第2時間T2に誤差時間が含まれた場合でも、前回
の立上りから今回の立上りまでの周期ST(Hレベル時
間+Lレベル時間)或いは前回の立下りから今回の立下
りまでの周期STについては、誤差時間に影響を受けな
いので、この周期STによるモータ16つまりエンコー
ダディスク19の検出速度精度を大幅に向上できる。更
に、検出速度には誤差時間の影響を受けないので、フォ
トインタラプタ36の光学系特性を鑑みることなくエン
コーダディスク19の製作を容易にすることができる
上、フォトインタラプタ36の取付け作業を大幅に簡単
化することができる。加えて、回転速度はエンコーダ信
号の立上り毎及び立下り毎に検出されるので、従来と同
様に速度検出のサイクルタイムを短くすることができ
る。
As described above, even when the error time is included in the first time T1 or the second time T2 due to variations in the mounting accuracy of the photo interrupter 36, the cycle ST ( (H level time + L level time) or the cycle ST from the previous fall to the current fall is not affected by the error time, and therefore the detection speed accuracy of the motor 16 or the encoder disk 19 by this cycle ST is significantly increased. Can be improved. Further, since the detection speed is not affected by the error time, it is possible to easily manufacture the encoder disk 19 without considering the optical system characteristics of the photo interrupter 36, and the mounting work of the photo interrupter 36 is greatly simplified. Can be converted. In addition, since the rotation speed is detected every time the encoder signal rises and every time the encoder signal falls, the cycle time for speed detection can be shortened as in the conventional case.

【0030】尚、別のフォトインタラプタを追加して設
け、これら両フォトインタラプタから夫々入力されるエ
ンコーダ信号の位相差に基いてモータ16の回転方向を
同時に求めることも可能である。尚、複数のスリット1
9aが円周方向に所定角度毎に形成されたエンコーダデ
ィスクを用いることも可能である。尚、電動モータやエ
ンジンの駆動軸或いはこれらの駆動軸により駆動される
工作機械やロボットなど産業上の種々の駆動系の回転軸
の速度検出方法に本発明を適用することができる。尚、
複数のスリットを所定間隔おきに形成した直線状のスリ
ット板に対してモータやシリンダなどの種々のアクチュ
エータにより相対的に移動する各種の駆動体の移動速度
を検出する速度検出方法に本発明を適用し得ることは勿
論である。
It is also possible to additionally provide another photo interrupter and simultaneously determine the rotation direction of the motor 16 based on the phase difference between the encoder signals respectively input from these two photo interrupters. In addition, a plurality of slits 1
It is also possible to use an encoder disk in which 9a is formed at a predetermined angle in the circumferential direction. The present invention can be applied to a method for detecting the speed of a drive shaft of an electric motor or an engine, or a rotary shaft of various drive systems in industry such as machine tools and robots driven by these drive shafts. still,
The present invention is applied to a speed detection method for detecting the moving speeds of various driving bodies that are relatively moved by various actuators such as a motor and a cylinder with respect to a linear slit plate having a plurality of slits formed at predetermined intervals. Of course, you can do that.

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

【図1】電子タイプライタの内部機構の側面図である。FIG. 1 is a side view of an internal mechanism of an electronic typewriter.

【図2】図1の2矢視図である。FIG. 2 is a view on arrow 2 of FIG.

【図3】電子タイプライタの内部機構の部分正面図であ
る。
FIG. 3 is a partial front view of the internal mechanism of the electronic typewriter.

【図4】キャリッジ本体の側面図である。FIG. 4 is a side view of a carriage body.

【図5】上昇用カムの斜視図である。FIG. 5 is a perspective view of a lifting cam.

【図6】電子タイプライタの制御系のブロック図であ
る。
FIG. 6 is a block diagram of a control system of the electronic typewriter.

【図7】割り込み処理で実行される計時制御のルーチン
の概略フローチャートである。
FIG. 7 is a schematic flowchart of a timing control routine executed in interrupt processing.

【図8】割り込み処理で実行される速度検出制御のルー
チンの概略フローチャートである。
FIG. 8 is a schematic flowchart of a speed detection control routine executed in interrupt processing.

【図9】フォトインタラプタから入力されるエンコーダ
信号の波形図である。
FIG. 9 is a waveform diagram of an encoder signal input from a photo interrupter.

【図10】従来技術の課題を説明するエンコーダ信号の
波形図である。
FIG. 10 is a waveform diagram of an encoder signal for explaining the problems of the conventional technique.

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

16 直流モータ 19 エンコーダディスク 19a スリット 36 フォトインタラプタ 87 CPU 88 ROM 90 RAM C 制御装置 16 DC Motor 19 Encoder Disk 19a Slit 36 Photointerrupter 87 CPU 88 ROM 90 RAM C Controller

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 スリット板に円周方向又は直線方向に所
定間隔おきに形成された複数のスリットを検出手段で検
出し、検出手段からのエンコーダ信号を用いてスリット
板の速度を検出する速度検出方法において、 各スリットの始端及び終端毎にエンコーダ信号を読込
み、 エンコーダ信号の「L」から「H」への各立上り毎に前
回の立上りから今回の立上りまでの周期を求め且つその
周期を用いてスリット板の速度を検出し、 エンコーダ信号の「H」から「L」への各立下り毎に前
回の立下りから今回の立下りまでの周期を求め且つその
周期を用いてスリット板の速度を検出することを特徴と
するエンコーダ信号に基く速度検出方法。
1. A speed detector for detecting a plurality of slits formed at predetermined intervals in a circumferential direction or a linear direction on a slit plate by a detecting means and detecting the speed of the slit plate using an encoder signal from the detecting means. In the method, the encoder signal is read at the beginning and the end of each slit, the cycle from the previous rising to the current rising is calculated for each rising edge of the encoder signal from “L” to “H”, and that cycle is used. The speed of the slit plate is detected, the cycle from the previous falling to the current falling is calculated for each falling edge of the encoder signal from "H" to "L", and the speed of the slit plate is calculated using this cycle. A speed detection method based on an encoder signal, characterized by detecting.
JP3135828A 1991-05-09 1991-05-09 Speed detecting method based on encoder signal Pending JPH05176575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3135828A JPH05176575A (en) 1991-05-09 1991-05-09 Speed detecting method based on encoder signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3135828A JPH05176575A (en) 1991-05-09 1991-05-09 Speed detecting method based on encoder signal

Publications (1)

Publication Number Publication Date
JPH05176575A true JPH05176575A (en) 1993-07-13

Family

ID=15160742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3135828A Pending JPH05176575A (en) 1991-05-09 1991-05-09 Speed detecting method based on encoder signal

Country Status (1)

Country Link
JP (1) JPH05176575A (en)

Similar Documents

Publication Publication Date Title
JPS62275769A (en) Electronic typewriter
JPH05176575A (en) Speed detecting method based on encoder signal
JPS6134989B2 (en)
JPH04333904A (en) Controller for servo motor
JPH05122969A (en) Speed controller based on encoder signal
JPH04372590A (en) Motor controller
US5230283A (en) Print hammer position control device
JP2924021B2 (en) Platen gap adjustment device
KR900006929B1 (en) Daisy wheel printing device with variable hammer delay
JP2658242B2 (en) Printing device
JPH04334467A (en) Printing apparatus
JPH04345874A (en) Printer
JPH0624095A (en) Printing equipment
JPH04334468A (en) Printing apparatus
JPS6271668A (en) Printer
JP2693997B2 (en) Print head gap automatic adjustment mechanism
JPH0442195B2 (en)
JPH06166238A (en) Printer
KR940002881B1 (en) Printer wheel motor setting timing control method
JPH04307283A (en) Printing apparatus
JPS613768A (en) Electronic typewriter
JPH06270489A (en) Printer
JPH05131721A (en) Printing device
JPH07290765A (en) Shuttle control device of dot printer
JPH061046A (en) Printer