JPH06219599A - Detector of moving medium - Google Patents

Detector of moving medium

Info

Publication number
JPH06219599A
JPH06219599A JP858193A JP858193A JPH06219599A JP H06219599 A JPH06219599 A JP H06219599A JP 858193 A JP858193 A JP 858193A JP 858193 A JP858193 A JP 858193A JP H06219599 A JPH06219599 A JP H06219599A
Authority
JP
Japan
Prior art keywords
detection
output voltage
moving medium
actual
gradient
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
JP858193A
Other languages
Japanese (ja)
Inventor
Kazuaki Takaishi
和昭 高石
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
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP858193A priority Critical patent/JPH06219599A/en
Publication of JPH06219599A publication Critical patent/JPH06219599A/en
Pending legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

PURPOSE:To promote the speediness and exactitude of detection by detecting the extent of output voltage in a photointerrupter with a hinge contacting with a moving medium, calculating the actual gradient of an output voltage curve, and comparing it with the setting gradient, then checking the detection operation. CONSTITUTION:When a contact piece is rotated as far as more than a certain angle with a hinge as the center by contact of a moving medium, an output voltage is generated out of a photointerrupter 10. This output voltage is converted into digital data by an analog-to-digital converter 15 at every setting time. In addition, two gradient calculating means 21 and 22 calculate the actual gradient of an output voltage curve with both the digital data at the last time and this time. Hereat these detection operation checking means 21 and 22 compare the calculated actual gradient with the preset setting gradient, and when the actual gradient has cane to more than the setting one, they confirm that the photointerrupter 10 has entered the detection operation. Subsequently, in the case where the actual gradient calculated by these gradient calculating means 21 and 22 has cane to zero, the detection definitive means 21 and 22 detect and confirm that the moving medium arrives at the specified position or runs past.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、移動媒体の検出装置に
関する。特に、プリンタで用いる透明な印字対象たる移
動媒体の有無検出に利用される。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving medium detecting device. In particular, it is used to detect the presence / absence of a moving medium that is a transparent printing target used in a printer.

【0002】[0002]

【従来の技術】移動媒体が所定位置に到達しあるいは通
過終了したか否かを検出する必要のある場合が多々あ
る。この一例としてプリンタにおける移動媒体の検出方
法を図6に示す。
2. Description of the Related Art In many cases, it is necessary to detect whether or not a moving medium has reached a predetermined position or has finished passing. As an example of this, a method of detecting a moving medium in a printer is shown in FIG.

【0003】図6において、1は印字ヘッドを含み対向
配設されたプラテン4とともに印字部を形成する。印字
対象媒体(移動媒体P)は、移送ローラ2,3によって
X方向に移動される。かかるプリンタでは、移動媒体P
の印字開始時における頭出し検出や印字長検出のため
に、移動媒体Pの先端,後端を所定位置に配設された検
出装置(5,6)で検出している。
In FIG. 6, reference numeral 1 forms a printing portion together with a platen 4 which includes a printing head and is arranged oppositely. The print target medium (moving medium P) is moved in the X direction by the transfer rollers 2 and 3. In such a printer, the moving medium P
In order to detect the cue and the print length at the start of printing, the front end and the rear end of the moving medium P are detected by the detection devices (5, 6) arranged at predetermined positions.

【0004】ここに、移動媒体Pが不透明な用紙の場合
は、図6に実線で示す反射型光学検出器5,6を用い
る。または、点線で示すように受光器7を対向配設した
透過型光学検出器が用いられている。しかし、例えばオ
ーバーヘッドプロジェクタで利用する投影資料を作成す
るための透明な移動媒体Pに印字する場合は、検出器
5,6のダイナミックレンジ等の関係から正確に検出す
ることができない。
When the moving medium P is an opaque sheet, the reflection type optical detectors 5 and 6 shown by the solid lines in FIG. 6 are used. Alternatively, as shown by a dotted line, a transmissive optical detector in which the light receiver 7 is arranged so as to face is used. However, for example, when printing on a transparent moving medium P for creating a projection material used in an overhead projector, it cannot be accurately detected because of the dynamic range of the detectors 5 and 6.

【0005】そこで、透明な移動媒体Pについては、図
7に示す不透明なマークM,Mを貼付け、不透明な移動
媒体Pと擬制して検出している。しかしながら、この方
法では印字有効領域ApがマークM,Mのために狭小化
されてしまう不具合がある他、移動するマークM,Mに
対する光学検出器5,6(7,7)の配設位置を正確と
しなければならないので煩わしい。
Therefore, for the transparent moving medium P, the opaque marks M, M shown in FIG. However, this method has a problem that the print effective area Ap is narrowed due to the marks M, M, and the positions where the optical detectors 5, 6 (7, 7) are arranged with respect to the moving marks M, M. It is annoying because it has to be accurate.

【0006】かくして、本出願人は反射型または透過型
の光学検出器に代えて、図8に示すヒンジ付きリミット
スイッチ10Sを用いて構築した検出装置を提案してい
る。このヒンジ付きリミットスイッチ10Sは、移動媒
体Pが当接すると接触片14Sがヒンジ13Sを中心に
回動し、その結果接触片14Sと一体的な検出片12S
がリミットスイッチ11SをONさせるものと形成して
ある。またチャタリング防止回路を設け、一層の正確検
出をするものとしている。
Thus, the present applicant has proposed a detection device constructed by using a hinged limit switch 10S shown in FIG. 8 in place of the reflection type or transmission type optical detector. In this limit switch 10S with a hinge, the contact piece 14S rotates about the hinge 13S when the moving medium P abuts, and as a result, the detection piece 12S integrated with the contact piece 14S.
Is configured to turn on the limit switch 11S. In addition, a chattering prevention circuit is provided for more accurate detection.

【0007】すなわち、図5(B)に示すように設定時
間Tごとにリミットスイッチ11SがON状態であるか
否かを確認し、2回続けてON状態であることを条件に
検出確定している。したがって、移動媒体Pの先端また
は後端が実際に所定位置に到達しまたは通過終了した時
刻をt1とすれば、時刻t1から最長でも2T以内の時
間遅れで確実に検出できる。
That is, as shown in FIG. 5 (B), it is confirmed whether or not the limit switch 11S is in the ON state at every set time T, and the detection is confirmed on the condition that the limit switch 11S is in the ON state twice in a row. There is. Therefore, if the time when the leading end or the trailing end of the moving medium P actually reaches the predetermined position or the passage end is set to t1, it is possible to reliably detect with a time delay of at most 2T from the time t1.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、かかる
ヒンジ付きリミットスイッチ10Sを用いた検出装置で
は、時間遅れ(2T)が大きいとの指摘がある。すなわ
ち、その構造上、上記設定時間(サンプリング時間)T
は10ms程度とされる。しかし、例えば一層の印字高
速化および高精度化が求められるプリンタに採用する場
合、移送ローラ2,3が例えば500μs/ステップ角
度のステッピングモータで駆動されるものとすると、時
刻t1から2T(20ms)の時間遅れをもって検出さ
れたときには、4ステップ角度分だけ移動媒体PがX方
向に移送されてしまうという誤差が生じてしまうからで
ある。
However, it has been pointed out that the detection device using the hinged limit switch 10S has a large time delay (2T). That is, due to its structure, the set time (sampling time) T
Is about 10 ms. However, when the transfer rollers 2 and 3 are driven by a stepping motor of, for example, 500 μs / step angle in the case where it is used in a printer that requires higher printing speed and higher accuracy, for example, from time t1 to 2T (20 ms). This is because, if the moving medium P is detected with a time delay of, the moving medium P is moved in the X direction by four step angles.

【0009】本発明の目的は、高速かつ正確に検出でき
る移動媒体の検出装置を提供することにある。
It is an object of the present invention to provide a moving medium detecting device capable of high-speed and accurate detection.

【0010】[0010]

【課題を解決するための手段】本発明にかかる移動媒体
の検出装置は、ヒンジを中心に回動可能な接触片を所定
方向に移送される移動媒体に接触可能として配設された
ヒンジ付きフォトインタラプタと、このフォトインタラ
プタの出力電圧を設定時間ごとにデジタルデータに変換
するA/Dコンバータと、変換された前回デジタルデー
タと今回デジタルデータとを用いて該出力電圧カーブの
実際傾きを算出する傾き算出手段と、算出された実際傾
きと予めセットされた設定傾きとを比較して実際傾きが
設定傾き以上になったことを条件に該フォトインタラプ
タが検出動作に入ったことを確認する検出動作確認手段
と、この検出動作確認手段で検出動作が確認された後に
該傾き算出手段で算出された実際傾きが零となったこと
を条件に該移動媒体を検出したと確定する検出確定手段
と、を具備してなる移動媒体の検出装置である。
SUMMARY OF THE INVENTION A moving medium detecting apparatus according to the present invention includes a hinged photo arranged so that a contact piece rotatable about a hinge can be brought into contact with a moving medium transported in a predetermined direction. An interrupter, an A / D converter that converts the output voltage of the photo interrupter into digital data at every set time, and a slope that calculates the actual slope of the output voltage curve using the converted previous digital data and current digital data. Detecting operation confirmation for comparing the calculating means with the calculated actual inclination and the preset inclination set to confirm that the photointerrupter has entered the detecting operation on condition that the actual inclination is equal to or larger than the preset inclination Means and the moving medium on the condition that the actual inclination calculated by the inclination calculating means after the detecting operation is confirmed by the detecting operation confirming means becomes zero. Detection determining means for determining that it has detected an a detection device of the moving medium consisting comprises a.

【0011】[0011]

【作用】上記構成による本発明では、移動媒体の接触に
よって接触片がヒンジを中心にある角度以上回動される
と、フォトインタラプタから出力電圧が発生される。出
力電圧はハンチングしているが、設定時間ごとにA/D
コンバータでデジタルデータに変換される。また、傾き
算出手段は、前回と今回の両デジタルデータを用いて出
力電圧カーブの実際傾きを算出する。
According to the present invention having the above-mentioned structure, when the contact piece is rotated by a certain angle about the hinge due to the contact of the moving medium, the output voltage is generated from the photo interrupter. Output voltage is hunting, but A / D every set time
Converted to digital data by a converter. Further, the slope calculating means calculates the actual slope of the output voltage curve using both the previous digital data and the current digital data.

【0012】ここに、検出動作確認手段は、算出された
実際傾きと予めセットされた設定傾きとを比較して実際
傾きが設定傾き以上になったことを条件にフォトインタ
ラプタが検出動作に入ったと確認する。この検出動作確
認がされた後に傾き算出手段で算出された実際傾きが零
(0)となった場合に、検出確定手段は移動媒体が所定
位置に到達しまたは通過終了したと検出確定する。
Here, the detection operation confirming means compares the calculated actual inclination with a preset setting inclination, and the photointerrupter enters the detection operation on condition that the actual inclination is equal to or larger than the set inclination. Check. When the actual inclination calculated by the inclination calculating means becomes zero (0) after the detection operation is confirmed, the detection confirming means detects and confirms that the moving medium has reached the predetermined position or has finished passing.

【0013】したがって、A/Dコンバータにおけるア
ナログ・デジタル変換周期つまり設定時間を例えば10
0μsにセットしておけば、最長でも100μs以内の
時間遅れで確実な検出ができる。しかも、設定時間を非
常に小さくしても、検出動作確認は出力電圧カーブの実
際傾きと設定傾きとの比較によって確認されるものと形
成されているので、接触片の回動途中に一時的に実際傾
きが零となる状態があった場合でも誤検出しない。
Therefore, the analog-digital conversion cycle, that is, the set time in the A / D converter is set to, for example, 10
If it is set to 0 μs, reliable detection can be performed with a time delay of 100 μs or less at the longest. Moreover, even if the set time is made very small, the detection operation confirmation is formed by comparing the actual inclination of the output voltage curve with the set inclination, so that the contact piece is temporarily rotated during the rotation. Even if there is a state where the inclination is actually zero, false detection is not performed.

【0014】[0014]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本検出装置は、図1,図2に示す如く、ヒンジ付
フォトインタラプタ10とA/Dコンバータ15と傾き
算出手段(21,22)と検出動作確認手段(21,2
2)と検出確定手段(21,22)とを設け、チャタリ
ングを防止しつつ時間遅れが小さく、正確な高速検出が
できるように構成している。なお、従来例(図8)と同
じプリンタに用いるものとされ、ヒンジ付きフォトイン
タラプタ10は印字部(1,4)の上流側と下流側との
各所定位置に配設された一対(10,10)からなる。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIGS. 1 and 2, this detection apparatus includes a hinged photo interrupter 10, an A / D converter 15, an inclination calculation means (21, 22), and a detection operation confirmation means (21, 2).
2) and the detection confirming means (21, 22) are provided so that chattering can be prevented, time delay is small, and accurate high-speed detection can be performed. The hinged photo interrupter 10 is assumed to be used in the same printer as the conventional example (FIG. 8), and a pair (10, 10) is provided at each predetermined position on the upstream side and the downstream side of the printing section (1, 4). It consists of 10).

【0015】まず、各ヒンジ付きフォトインタラプタ1
0は、図2に示す如く、ヒンジ13を中心に回動する接
触片14とこれと一体的な遮閉片12とフォトカプラ1
1とからなる。接触片14はジャムが起らないような形
態とされている。各フォトカプラ11は、図1に示すよ
うに、発光素子11Dと受光素子11Rとからなり、通
常は遮閉片12で光隔離され接触片14が所定角度以上
回動された場合に光結合されるものと形成されている。
したがって、図5(A)に示すように、移動媒体Pが接
触片14に当接し始めた時刻t0以後に出力電圧が発生
される。但し、確実検出状態でないからハンチングが現
われる。そして、時刻t1以降において確実検出された
場合に出力電圧は一定の所定電圧Vとなる。
First, the photo interrupter 1 with each hinge
As shown in FIG. 2, the reference numeral 0 designates a contact piece 14 which rotates around a hinge 13, a shield piece 12 integrated with the contact piece 14, and a photocoupler 1.
It consists of 1. The contact piece 14 is shaped so that jamming does not occur. As shown in FIG. 1, each photocoupler 11 is composed of a light emitting element 11D and a light receiving element 11R, and is normally light-isolated by a shielding piece 12 and optically coupled when a contact piece 14 is rotated by a predetermined angle or more. It is formed with one.
Therefore, as shown in FIG. 5A, the output voltage is generated after the time t0 when the moving medium P starts to contact the contact piece 14. However, hunting appears because it is not in the sure detection state. Then, after the time t1, the output voltage becomes a constant predetermined voltage V when it is reliably detected.

【0016】次に、A/Dコンバータ15は、各フォト
インタラプタ10(11R)から入力されたアナログデ
ータ(出力電圧)をデジタルデータに変換するもので、
図5(A)に示す変換周期(設定時間t)は、この実施
例の場合、100μsに設定されている。変換されたデ
ジタルデータDi−1,Diは、CPU21によってR
AM23に記憶される。なお、このA/Dコンバータ1
5は各フォトインタラプタ10に共用する。
Next, the A / D converter 15 converts analog data (output voltage) input from each photo interrupter 10 (11R) into digital data.
The conversion cycle (set time t) shown in FIG. 5A is set to 100 μs in this embodiment. The converted digital data Di-1 and Di are R by the CPU 21.
It is stored in AM23. In addition, this A / D converter 1
5 is shared by each photo interrupter 10.

【0017】詳しくは、設定時間tごとのA/D割込み
によって変換動作される。変換後のデジタルデータつま
りHEX値は、図3に示すように移動媒体Pを検出して
いない場合が00HEXで、完全検出した場合は抵抗分
圧(図1)してあるためE0HEXとなる。ブロックの
選択は、デコーダ16によってなされる。なお、図1,
図4の割込みステータスは、上流側のヒンジ付きフォト
インタラプタ10についての検出実施をあらわすステー
タスI1,下流側のヒンジ付きフォトインタラプタ10
の検出実施をあらわすステータスI2の2通りである。
More specifically, the conversion operation is performed by an A / D interrupt every set time t. The converted digital data, that is, the HEX value, is 00HEX when the moving medium P is not detected as shown in FIG. 3, and is E0HEX when the moving medium P is completely detected because the resistance voltage is divided (FIG. 1). The block selection is performed by the decoder 16. Note that FIG.
The interrupt status in FIG. 4 indicates a status I1 indicating that the upstream hinged photo interrupter 10 is detected, and the downstream hinged photo interrupter 10 is detected.
There are two types of status I2, which indicates that the detection is performed.

【0018】ところで、図1に示す駆動制御ユニット2
0は、CPU21,ROM22,RAM23,キーボー
ド(図示省略)等を含み、プリンタ全体を駆動制御す
る。例えば、移送ローラ2,3の回転駆動用のステッピ
ングモータ(STM)26は、ドライバ25を介して接
続され、適時に適量だけ駆動制御される。また、上記A
/Dコンバータ15,デコーダ16もバス接続されてい
る。
By the way, the drive control unit 2 shown in FIG.
Reference numeral 0 includes a CPU 21, a ROM 22, a RAM 23, a keyboard (not shown) and the like, and drives and controls the entire printer. For example, a stepping motor (STM) 26 for rotationally driving the transfer rollers 2 and 3 is connected via a driver 25 and is controlled to be driven in an appropriate amount at an appropriate time. In addition, the above A
The / D converter 15 and the decoder 16 are also connected to the bus.

【0019】ここに、傾き算出手段は、割込みステータ
ス(I1 or I2)がセットされている場合(図4
のST11)に、変換されかつRAM23に記憶された
前回デジタルデータDi−1と今回デジタルデータDi
とを用いて図3に拡大表示した出力電圧カーブの実際傾
きKi(K12,K23,K34,K45,K46)を
算出するもので、CPU21,ROM22から形成され
図4のST12,13で実行される。因みに、図3の時
間軸ととの間の実際傾きは、設定時間tが一定であ
るからその差〔Di−(Di−1)〕として求まる。す
なわち、点線で示すK23となる。このように算出され
た実際傾きKiもRAM23に一時記憶される(ST1
2,13)。なお、設定傾きkは、予めROM22に固
定データとして格納されている。しかし、キーボード等
を用いて可変入力しRAM23に記憶させておくように
しても実施できる。
Here, the inclination calculating means is used when the interrupt status (I1 or I2) is set (see FIG. 4).
ST11) of the previous digital data Di-1 and the current digital data Di-1 converted and stored in the RAM 23.
Is used to calculate the actual slope Ki (K12, K23, K34, K45, K46) of the output voltage curve enlarged and displayed in FIG. 3, which is formed from the CPU 21 and the ROM 22 and is executed in ST12 and 13 of FIG. . Incidentally, since the set time t is constant, the actual slope between the time axis and the time axis in FIG. 3 is obtained as the difference [Di− (Di−1)]. That is, K23 shown by the dotted line is obtained. The actual inclination Ki calculated in this manner is also temporarily stored in the RAM 23 (ST1
2, 13). The set slope k is stored in the ROM 22 as fixed data in advance. However, it can also be implemented by variably inputting it using a keyboard or the like and storing it in the RAM 23.

【0020】次に、検出動作確認手段は、算出された実
際傾きKiと設定傾きkとを比較(図4のST14)し
てKi≧kの場合(ST14のYES)に当該フォトイ
ンタラプタ10が検出動作に入ったものと確認する手段
で、CPU21,ROM22とからなりST14,15
で実行される。確認すると、CPU21はRAM23に
その旨のステータスをセットする(ST15)。
Next, the detection operation confirming means compares the calculated actual inclination Ki with the set inclination k (ST14 in FIG. 4), and when Ki ≧ k (YES in ST14), the photo interrupter 10 detects the photointerrupter 10. It is a means for confirming that the operation has started, and comprises a CPU 21 and a ROM 22, and ST14, 15
Run on. Upon confirmation, the CPU 21 sets a status to that effect in the RAM 23 (ST15).

【0021】すなわち、検出動作確認はチャタリング防
止のために行う。しかし、図5(A)に示す設定時間t
を従来例〔同(B)〕の設定時間Tの例えば1/100
として高速検出しようとすると、従来例のように2回続
けてON状態であればよいという手法は採用できない。
なぜならば、図3において実際に確実検出可能な時刻t
1以前の出力変動期間中でも検出確定されてしまう場合
があり得るからである。
That is, the detection operation is confirmed to prevent chattering. However, the set time t shown in FIG.
Is 1/100 of the set time T in the conventional example [(B)]
However, in order to detect at high speed, it is not possible to adopt the method that is required to be in the ON state twice in a row as in the conventional example.
This is because the time t at which actual reliable detection is possible in FIG.
This is because the detection may be confirmed even during the output fluctuation period before 1.

【0022】そこで、本発明では、各フォトインタラプ
タ10の出力電圧の変化率(実際傾きKi)が経験的に
選択決定された値(設定傾きk)以上となった場合に検
出動作を確認する、つまり出力電圧が一定となる直前を
確認するという手法によって、チャタリングによる誤検
出を防止するわけである。
Therefore, in the present invention, the detection operation is confirmed when the rate of change (actual slope Ki) of the output voltage of each photo interrupter 10 becomes equal to or greater than the empirically selected value (set slope k). That is, a method of confirming immediately before the output voltage becomes constant prevents erroneous detection due to chattering.

【0023】したがって、検出確定手段は、検出動作が
確認されたこと(ST16のYES)と及びその後に傾
き算出手段(21,22)で算出された実際傾きKiが
零(0)つまり出力電圧が一定となったことを条件に、
移動媒体Pの前端・後端の検出確定をする。具体的に
は、CPU21とROM22とから形成されST17の
YES,ST18で実行される。検出確定の旨のステー
タスはRAM23にセットされる。なお、この際、ST
15でセットされた検出動作確認ステータスは消去され
る。
Therefore, the detection confirming means confirms the detection operation (YES in ST16) and the actual inclination Ki calculated by the inclination calculating means (21, 22) thereafter is zero (0), that is, the output voltage is On condition that it became constant,
The detection of the front end and the rear end of the moving medium P is confirmed. Specifically, it is formed of the CPU 21 and the ROM 22, and is executed in YES in ST17 and ST18. The status of the detection confirmation is set in the RAM 23. At this time, ST
The detection operation confirmation status set in 15 is erased.

【0024】かかる構成の実施例において、図2に示す
上流側に配設されたヒンジ付フォトインタラプタ10の
検出動作は次のようにして成される。駆動制御ユニット
20によってステッピングモータ26が回動駆動され、
図2でX方向に移送された移動媒体Pの先端が接触片1
4に当接したとする。図5(A)でいえば、時刻t0に
おいて当接する。
In the embodiment having such a structure, the detection operation of the hinged photo interrupter 10 arranged on the upstream side shown in FIG. 2 is performed as follows. The drive control unit 20 rotationally drives the stepping motor 26,
The tip of the moving medium P transferred in the X direction in FIG.
Suppose that it touches 4. In FIG. 5A, the contact is made at time t0.

【0025】すると、接触片14(遮閉片12)がヒン
ジ13を中心に回動するので、フォトカプラ11(11
R)から出力電圧が発生される。この出力電圧は、図
3,図5に示す如く、時刻t1までの間はハンチング状
態である。設定時間tが経過してA/D割込みがかかる
と、A/Dコンバータ15は出力電圧をデジタルデータ
Diに変換する(図4のST10)。割込みステータス
I1,I2がセットされていない(OFF)の場合は、
そのデジタルデータDiがRAM23に記憶される(S
T19)。
Then, since the contact piece 14 (shielding piece 12) rotates about the hinge 13, the photocoupler 11 (11) is rotated.
The output voltage is generated from R). This output voltage is in the hunting state until time t1 as shown in FIGS. When the A / D interrupt occurs after the set time t has elapsed, the A / D converter 15 converts the output voltage into digital data Di (ST10 in FIG. 4). If the interrupt statuses I1 and I2 are not set (OFF),
The digital data Di is stored in the RAM 23 (S
T19).

【0026】ここにおいて、割込みステータスI1がセ
ットされていると、傾き算出手段(21,22)が働き
実際傾きKiを算出する(ST12)。引続き、検出動
作確認手段(21,22)が算出された実際傾きKiと
予めセットされていた設定傾きkとを比較する(ST1
4)。始めのうちはKi<kとなり(ST14のNO判
断)、かつ未だ検出動作確認がされていない(ST16
のNO判断)ので、今回デジタルデータ(Di)が次の
ための前回デジタルデータ(Di−1)としてRAM2
3に記憶される(ST19)。そして、リターンされ
る。
Here, if the interrupt status I1 is set, the inclination calculating means (21, 22) operates to calculate the actual inclination Ki (ST12). Subsequently, the detection operation confirming means (21, 22) compares the calculated actual inclination Ki with the preset inclination k (ST1).
4). Ki <k at the beginning (NO judgment in ST14), and the detection operation has not been confirmed yet (ST16).
No.), the current digital data (Di) is used as the previous digital data (Di-1) for the RAM2.
3 is stored (ST19). And it is returned.

【0027】その後、ST14においてYES判断され
ると、検出動作確認手段(21,22)が検出動作を確
認する(ST15)。すなわち、A/Dコンバータ15
の出力電圧がハンチング状態ではあるが、間もなくヒン
ジ付フォトインタラプタ10が移動媒体Pを確実に検出
するのであろうことを予告する。
After that, if YES is determined in ST14, the detecting operation confirming means (21, 22) confirms the detecting operation (ST15). That is, the A / D converter 15
Although the output voltage of 1 is in the hunting state, it is predicted that the hinged photo interrupter 10 will surely detect the moving medium P soon.

【0028】かくして、この検出動作確認がされた(S
T16のYES)後に、傾き算出手段(21,22)で
算出された実際傾きKiが零(0)となる(ST17の
YES)と、検出確定手段(21,22)が移動媒体P
が所定位置となったことを確定する(ST18)。
Thus, the detection operation was confirmed (S
When the actual inclination Ki calculated by the inclination calculating means (21, 22) becomes zero (0) after (YES in T16) (YES in ST17), the detection confirming means (21, 22) causes the moving medium P to move.
Is determined to be the predetermined position (ST18).

【0029】しかして、この実施例によれば、ヒンジ付
フォトインタラプタ10とA/Dコンバータ15と傾き
算出手段(21,22)と検出動作確認手段(21,2
2)と検出確定手段(21,22)とを設け、A/Dコ
ンバータ15の出力電圧の実際傾きKiと予めセットさ
れた設定傾きkとを比較して実際傾きKiが設定傾きk
以上となったことを条件としかつその後に実際傾きKi
が零(0)となったときに移動媒体Pの検出を確定する
構成とされているので、移動媒体Pが透明なものであっ
ても不透明なものであってもハンチング中の誤検出を防
止しつつ所定位置において移動媒体Pを確実かつ高速に
検出できる。
According to this embodiment, however, the photo interrupter 10 with hinge, the A / D converter 15, the inclination calculating means (21, 22) and the detecting operation confirming means (21, 2).
2) and the detection confirmation means (21, 22) are provided, and the actual slope Ki of the output voltage of the A / D converter 15 is compared with the preset slope k to set the actual slope Ki.
The condition is that the above is satisfied, and after that, the actual slope Ki
Since the detection of the moving medium P is determined when is zero (0), erroneous detection during hunting is prevented regardless of whether the moving medium P is transparent or opaque. At the same time, the moving medium P can be detected reliably and quickly at the predetermined position.

【0030】また、A/Dコンバータ15の変換周期
(t)ごとにフォトインタラプタ10の検出動作状態を
確認でき、かつその実際傾きKiによってハンチングを
防止しつつ確実検出を予告するものと形成されているの
で、設定時間tを例えば100μsとセットしておけ
ば、フォトインタラプタ10と移動媒体Pとの物理的係
合による確実検出時点t1から最長でも100μs以内
の時間遅れで検出確定できる。よって、従来例(図8)
の場合に比較して100倍以上の高速検出ができる。
Further, the detection operation state of the photo interrupter 10 can be confirmed at every conversion period (t) of the A / D converter 15, and the actual inclination Ki can be used to prevent hunting and give advance notice of reliable detection. Therefore, if the set time t is set to, for example, 100 μs, the detection can be confirmed with a time delay of 100 μs at the longest from the reliable detection time t1 due to the physical engagement between the photo interrupter 10 and the moving medium P. Therefore, the conventional example (Fig. 8)
It is possible to detect at least 100 times faster than the above case.

【0031】また、設定時間tおよび設定傾きkは可変
設定できるものとされているので、フォトインタラプタ
10の特性,接触片14の形態等々の諸条件に即応した
運用ができ、適用性が広い。
Further, since the set time t and the set slope k can be variably set, it is possible to operate in accordance with various conditions such as the characteristics of the photo interrupter 10 and the shape of the contact piece 14, and the applicability is wide.

【0032】また、設定時間tを高速変換可能な100
μs以下にも設定できるから、両フォントインタラプタ
10,10に1台のA/Dコンバータ15を設ければよ
く、コスト低減が図れる。
Further, the set time t can be converted at a high speed of 100.
Since it can be set to μs or less, it is sufficient to provide one A / D converter 15 for both font interrupters 10 and 10, and the cost can be reduced.

【0033】[0033]

【発明の効果】本発明によれば、ヒンジ付フォトインタ
ラプタとA/Dコンバータと傾き算出手段と検出動作確
認手段と検出確定手段とを設け、A/Dコンバータの出
力電圧の実際傾きと予めセットされた設定傾きとを比較
し実際傾きが設定傾き以上となったことを条件としかつ
その後に実際傾きが零(0)となったときに移動媒体の
検出を確定する構成とされているので、移動媒体が透明
なものであっても不透明なものであってもハンチング中
の誤検出を防止しつつ所定位置において移動媒体Pを確
実かつ高速に検出できる。
According to the present invention, a photo interrupter with a hinge, an A / D converter, a slope calculating means, a detection operation confirming means, and a detection confirming means are provided, and the actual slope of the output voltage of the A / D converter is preset. It is configured to determine the detection of the moving medium when the actual inclination becomes equal to or more than the set inclination and the actual inclination becomes zero (0) after that by comparing the set inclination that has been set. Whether the moving medium is transparent or opaque, the moving medium P can be reliably and quickly detected at a predetermined position while preventing erroneous detection during hunting.

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

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

【図2】同じく、移動媒体の移送方向とフォトインタラ
プタの配設位置関係を説明するための図である。
FIG. 2 is a diagram for explaining a transfer direction of a moving medium and an arrangement positional relationship of photo interrupters.

【図3】同じく、変換されたデジタルデータとその実際
傾きとの関係を説明するための図である。
FIG. 3 is a diagram for explaining the relationship between converted digital data and its actual inclination in the same manner.

【図4】同じく、動作を説明するためのフローチャート
である。
FIG. 4 is likewise a flowchart for explaining the operation.

【図5】同じく、出力電圧波形と設定時間との関係を従
来例との比較において説明するための図である。
FIG. 5 is also a diagram for explaining the relationship between the output voltage waveform and the set time in comparison with the conventional example.

【図6】従来例(反射型)を説明するための図である。FIG. 6 is a diagram for explaining a conventional example (reflection type).

【図7】同じく、その問題点を説明するための図であ
る。
FIG. 7 is also a diagram for explaining the problem.

【図8】従来例(ヒンジ付リミットスイッチ型)を説明
するための図である。
FIG. 8 is a diagram for explaining a conventional example (limit switch type with hinge).

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

1 印字部 2,3 移送ローラ 4 プラテン 5,6 反射型検出装置 7 透過型検出装置 10S ヒンジ付リミットスイッチ 10 ヒンジ付フォトインタラプタ 11 フォトカプラ 12 遮閉片 13 ヒンジ 14 接触片 15 A/Dコンバータ 16 デコーダ 20 駆動制御盤 21 CPU(傾き算出手段,検出動作確認手段,検出
確定手段) 22 ROM(傾き算出手段,検出動作確認手段,検出
確定手段) 23 RAM P 移動媒体 t 設定時間 Di−1 前回デジタルデータ Di 今回デジタルデータ Ki 実際傾き k 設定傾き
1 Printing Section 2, 3 Transfer Roller 4 Platen 5, 6 Reflection Type Detection Device 7 Transmission Type Detection Device 10S Limit Switch with Hinge 10 Photointerrupter with Hinge 11 Photocoupler 12 Blocking Piece 13 Hinge 14 Contact Piece 15 A / D Converter 16 Decoder 20 Drive control board 21 CPU (tilt calculation means, detection operation confirmation means, detection confirmation means) 22 ROM (tilt calculation means, detection operation confirmation means, detection confirmation means) 23 RAM P Moving medium t Set time Di-1 Previous digital Data Di Current digital data Ki Actual slope k Set slope

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ヒンジを中心に回動可能な接触片を所定
方向に移送される移動媒体に接触可能として配設された
ヒンジ付きフォトインタラプタと、 このフォトインタラプタの出力電圧を設定時間ごとにデ
ジタルデータに変換するA/Dコンバータと、 変換された前回デジタルデータと今回デジタルデータと
を用いて該出力電圧カーブの実際傾きを算出する傾き算
出手段と、 算出された実際傾きと予めセットされた設定傾きとを比
較して実際傾きが設定傾き以上になったことを条件に該
フォトインタラプタが検出動作に入ったことを確認する
検出動作確認手段と、 この検出動作確認手段で検出動作が確認された後に該傾
き算出手段で算出された実際傾きが零となったことを条
件に該移動媒体を検出したと確定する検出確定手段と、 を具備してなる移動媒体の検出装置。
1. A photo interrupter with a hinge, in which a contact piece rotatable about a hinge is arranged so as to be in contact with a moving medium transported in a predetermined direction, and an output voltage of the photo interrupter is digitalized every set time. An A / D converter for converting into data, a slope calculating means for calculating the actual slope of the output voltage curve using the converted previous digital data and this time digital data, and the calculated actual slope and preset settings. The detection operation confirming means for confirming that the photointerrupter has started the detection operation on the condition that the actual inclination is equal to or larger than the set inclination and the detection operation is confirmed by the detection operation confirming means. A detection confirming means for confirming that the moving medium is detected on condition that the actual inclination calculated by the inclination calculating means becomes zero. Detecting device that transfer medium.
JP858193A 1993-01-21 1993-01-21 Detector of moving medium Pending JPH06219599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP858193A JPH06219599A (en) 1993-01-21 1993-01-21 Detector of moving medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP858193A JPH06219599A (en) 1993-01-21 1993-01-21 Detector of moving medium

Publications (1)

Publication Number Publication Date
JPH06219599A true JPH06219599A (en) 1994-08-09

Family

ID=11696982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP858193A Pending JPH06219599A (en) 1993-01-21 1993-01-21 Detector of moving medium

Country Status (1)

Country Link
JP (1) JPH06219599A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5677097A (en) * 1996-01-18 1997-10-14 Fuji Xerox Co., Ltd. Electrophotographic photoreceptor
US5770339A (en) * 1994-10-18 1998-06-23 Fuji Xerox Co., Ltd. Electrophotographic photoreceptor using charge transporting copolyester

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5770339A (en) * 1994-10-18 1998-06-23 Fuji Xerox Co., Ltd. Electrophotographic photoreceptor using charge transporting copolyester
US5677097A (en) * 1996-01-18 1997-10-14 Fuji Xerox Co., Ltd. Electrophotographic photoreceptor

Similar Documents

Publication Publication Date Title
US5127752A (en) Device and method of registering image relative to border of printed media
US5007751A (en) Printer having carriage zeroing device
JPH0292660A (en) Paper cutting controller in printer device
JPH06219599A (en) Detector of moving medium
JPH0887380A (en) Operating body adaptive console panel device
US6883800B2 (en) Paper convey method and device in image forming apparatus
JPH0524317A (en) Printer
US5395104A (en) Paper conveying device
JP2738802B2 (en) Carrier jam detection control method
US20020149802A1 (en) Image reading apparatus
JP2717138B2 (en) Setting method by sensor
US6073928A (en) Sheet end detecting mechanism
JPH02162069A (en) Paper jam detector
JPH11254272A (en) Thermal displacement correcting method for feed screw
KR100240702B1 (en) An apparatus for inspecting the location of seat in ics
JPH102715A (en) Position detector
JP3366974B2 (en) Linear shuttle drive control method, linear shuttle drive device, and linear shuttle type printer
JPH0281869A (en) Method for controlling servo
JPH08268618A (en) Paper inverting mechanism and image forming device using the same
JPH08231083A (en) Correcting device for side slip of paper sheet
KR0135170B1 (en) Device &amp; method for automatically controlling sheet margin
JPH03216065A (en) Original reader
JPH10269389A (en) Method for detecting passage of plural persons in gate device
JP2524042Y2 (en) Paper skew detector
JP4529324B2 (en) Continuous paper printer