JPS6137456A - Paper-feed controller for printer - Google Patents

Paper-feed controller for printer

Info

Publication number
JPS6137456A
JPS6137456A JP16059184A JP16059184A JPS6137456A JP S6137456 A JPS6137456 A JP S6137456A JP 16059184 A JP16059184 A JP 16059184A JP 16059184 A JP16059184 A JP 16059184A JP S6137456 A JPS6137456 A JP S6137456A
Authority
JP
Japan
Prior art keywords
paper feed
paper
feed
command signal
electromagnet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP16059184A
Other languages
Japanese (ja)
Other versions
JPH0458394B2 (en
Inventor
Yuji Iida
飯田 雄二
Shigeru Kiuchi
木内 茂
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 JP16059184A priority Critical patent/JPS6137456A/en
Publication of JPS6137456A publication Critical patent/JPS6137456A/en
Publication of JPH0458394B2 publication Critical patent/JPH0458394B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/76Line-spacing mechanisms
    • B41J19/78Positive-feed mechanisms
    • B41J19/92Electromagnetically-operated mechanisms

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To feed paper positively, and to prevent stacked printing by transmitting a paper-feed command signal over an electromagnet again when an elapsed time until the reception of a paper-feed detecting signal from a paper-feed detecting mechanism after the input time of the paper-feed command signal passes a predetermined allowable time. CONSTITUTION:When a paper-feed command signal is inputted, a printing motor 20 is turned and started, and timing pulses TP are transmitted. Paper-feed flags for flag regions ROM4, RAM6 are set to ''1'' at the same time as the transmission of timing pulses TP while the count value FCT of a paper-feed counter 2 is cleared to ''0''. Each electromagnet 12 for several paper-feed mechanism 9 is conducted. A crank arm 16 is operated and a paper-feed detecting signal (b) at an H level is received from a photosensor 30, the paper-feed counter 2 counts eight timing pulses TP, and the operation of the paper-feed is completed when the count value FCT reaches to eight. When there is the paper-feed mechanism 9 in which the photosensor 30 does not transmit a paper-feed signal at the H level though the count value reaches to eight at a time t1 and the operation of paper- feed is completed, excitation currents are flowed again.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は紙送り指令信号を受信後実際に紙送りされたこ
とを検出し、許容時間内に実際に紙送りされなかったと
き、再び紙送り指令を実行するプリンタの紙送り制御装
置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention detects that the paper has actually been fed after receiving a paper feed command signal, and when the paper is not actually fed within a permissible time, the paper is restarted again. The present invention relates to a paper feed control device for a printer that executes a feed command.

[従来の技術〕 一般に、情報処理システムに組込まれたプリンタは、情
報処理システムのホストコンピュータ等から出力される
文字コード信号を受信して、この文字コードに対応する
印字ホイールの活字又はキャラクタジェネレータのドツ
トパターンを読み出してキャリッジに搭載された印字ヘ
ッドでもって、プラテンにセットされた印字用紙上に該
当文字を印字出力するように構成されている。そして、
〜ホストコンピュータから改行等のために紙送り指令信
号が入力すると、紙送り機構が動作して印字用紙が1行
分だけ紙送りされる。
[Prior Art] In general, a printer incorporated in an information processing system receives a character code signal output from a host computer of the information processing system, and prints the type on the print wheel or the character generator that corresponds to the character code. It is configured to read out the dot pattern and use a print head mounted on a carriage to print out the corresponding characters on a print sheet set on a platen. and,
- When a paper feed command signal is input from the host computer for a line feed, etc., the paper feed mechanism operates and the printing paper is fed by one line.

[発明が解決しようとする問題点コ しかしながら、上記のようにホストコンピュータからの
紙送り指令信号にて紙送り機構を動作させて紙送りを実
行するプリンタの紙送り制御装置においては次よような
問題があった。すなわち、上記紙送り機構には、紙送り
指令信号に応動して動作する電磁石1紙送り用のモータ
等の一定量以上の電流によって可動する電子部材が多数
組込まれている。したがって、ホストコンピュータから
紙送り指令信号が入力したとしても、何等かの要因にて
電源電圧が低下して上記各可動電子部材が正常に動作し
なくて、実際に紙送りが実行されな、い場合がある。し
かし、多少の電圧降下に対しては駆動を伴わない制御回
路は正常に動作するために、上記紙送り信号は正規に受
信される。すると、ホストコンピュータは正規に紙送り
が実行されたと判断して、次の行に対する印字指令を送
出する。
[Problems to be Solved by the Invention] However, in the paper feed control device for a printer that operates a paper feed mechanism to feed paper in response to a paper feed command signal from a host computer as described above, the following problems occur. There was a problem. That is, the paper feeding mechanism incorporates a large number of electronic members that are movable by a certain amount of current or more, such as an electromagnet 1 paper feeding motor that operates in response to a paper feeding command signal. Therefore, even if a paper feed command signal is input from the host computer, the power supply voltage may drop for some reason and the movable electronic components mentioned above may not operate properly, and the paper may not actually be fed. There are cases. However, since the control circuit that does not involve driving operates normally in response to a slight voltage drop, the paper feed signal is normally received. Then, the host computer determines that the paper has been properly fed and sends a print command for the next line.

その結果、1行に2行分の文字が重ねて印字されること
になる。
As a result, two lines of characters are printed overlappingly on one line.

また、紙送り指令信号がホストコンピュータから入力さ
れた後、紙送り機構が動作して実際に印。
Also, after the paper feed command signal is input from the host computer, the paper feed mechanism operates to actually print.

字用紙の紙送りが実行されるまでの間にこのプリンタに
停電事故が発生した場合、当然紙送りは実行されない。
If a power outage occurs in this printer before the paper is fed, the paper will not be fed.

しかしホストコンピュータは一旦紙送り指令信号を送出
したので、プリンタにおいて当然組送りが実行されたと
判断する。そして、停電が復帰したのち次の行に対する
印字指令信号を送出する。その結果、前述と同様に、1
行に2行分の文字が重ねて印字されることになる。
However, since the host computer has once sent the paper feed command signal, the printer naturally determines that group feeding has been executed. After the power is restored, a print command signal for the next line is sent. As a result, 1
Two lines of characters will be printed overlapping each other.

本発明はこのような事情に基づいてなされたものであり
、その目的とするところは、実際に紙送りが実行された
ことを検出して、たとえ外部からの紙送り指令信号に対
応して紙送りがなされなかったとしても、確実に紙送り
を実行でき、重ね印字を防止して、信頼性を向上できる
プリンタの紙送り制御装置を提供することにある。
The present invention has been made based on the above circumstances, and its purpose is to detect that paper feeding has actually been carried out and to detect paper feeding in response to a paper feeding command signal from the outside. To provide a paper feed control device for a printer that can reliably execute paper feed even if paper is not fed, prevents overprinting, and improves reliability.

[問題点を解決するための手段] 本発明は、紙送り指令信号に応動する電磁石にてクラン
クアームを駆動し、このクランクアームでもって紙送り
ローラに連結されたラチェットホイールを回転させるこ
とによって、この紙送りローラにセットされた印字用紙
を1行分紙送りするプリンタの紙送り制御装置において
、紙送りローラにセットされた印字用紙が実際に紙送り
されたことを検出する紙送り検出機構を設け、紙送り指
令信号の入力時刻から紙送り検出機構からの紙送り検出
信号受信までの経過時間が予め定められた許容時間を経
過したとき、紙送り指令信号を再び前記電磁石へ送出す
るようにしたものである。
[Means for solving the problem] The present invention drives a crank arm using an electromagnet that responds to a paper feed command signal, and uses the crank arm to rotate a ratchet wheel connected to a paper feed roller. The paper feed control device of the printer that feeds the print paper set on the paper feed roller by one line includes a paper feed detection mechanism that detects that the print paper set on the paper feed roller is actually fed. and when the elapsed time from the input time of the paper feed command signal to the reception of the paper feed detection signal from the paper feed detection mechanism exceeds a predetermined allowable time, the paper feed command signal is sent to the electromagnet again. This is what I did.

また別の発明においては、上記の発明に加えて、この制
御装置の停電および停電復帰を検出する電源検出回路を
設け、紙送り指令信号の入力時刻からの前述の経過時間
が予め定められた許容時間を経過したとき、およびこの
許容時間が経過しないうちに電源検出回路が停電を検出
しその後改めて停電復帰を検出したとき、紙送り指令信
号を再び前記電磁石へ送出するようにしたものである。
In another invention, in addition to the above invention, a power supply detection circuit is provided to detect a power outage and a power outage recovery of the control device, and the above-mentioned elapsed time from the input time of the paper feed command signal is set to a predetermined tolerance. When the time has elapsed, or when the power supply detection circuit detects a power outage and then detects the return of the power outage before the allowable time has elapsed, the paper feed command signal is sent to the electromagnet again.

[作用] このような構成のプリンタの紙送り制御装置であれば、
紙送り指令信号が入力して予め定められた訂容時間怪過
した後に、実際に超送りが実行されたことを検出する紙
送り検出機構が紙送り検出信号を送出しなければ再び電
磁石へ紙送り指令信号が送出されるので、必ず紙送りが
実行される。
[Function] If the printer paper feed control device has this configuration,
After the paper feed command signal is input and a predetermined volume correction time has elapsed, if the paper feed detection mechanism that detects that super-feeding has actually been performed does not send out a paper feed detection signal, the paper will not be transferred to the electromagnet again. Since a feed command signal is sent, paper feeding is always executed.

また別の発明のプリンタの紙送り制御装置においては、
上記の作用に加え、紙送り指令信号が入力してから許容
時間が経過するまでの間にこの制御装置が停電し、その
後に停電復帰がなされたとき、紙送り指令信号が再び電
磁石へ送出されるので、停電が発生しても必ず紙送りが
実行される。
In a paper feed control device for a printer according to another invention,
In addition to the above effects, if this control device experiences a power outage after the paper feed command signal is input and the allowable time has elapsed, and then the power is restored, the paper feed command signal is sent to the electromagnet again. Therefore, even if a power outage occurs, paper feeding will always be performed.

[実施例] 以下本発明の一実施例を図面を用いて説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の紙送り制御装置の概略構成を示すブロ
ック図であり、図中1はホストコンピュータ2から送出
された紙送り指令信号に基づき各種演算処理を実行する
cpu <中央処理8置)である。このcpuiは、デ
ータバス、アドレスバス等からなるパスライン3を介し
て、制御プログラム等の固定データを記憶するROM4
.停電時にバッテリ5でバックアップされ、カウンタ、
フラグ等の各種可変データを一時記憶するRAM6゜前
記外部のホストコンピュータ2に伝送路7を介して接続
されたI10インターフェース81紙送り門構9へ紙送
り指令信号等を送出しこの紙送り機構からの紙送り検出
信号等を受信する紙送り駆動回路10.この制御装置の
停電および停電復帰を検出する電源検出回路11等を制
御する。
FIG. 1 is a block diagram showing a schematic configuration of a paper feed control device according to an embodiment. In the figure, 1 is a CPU that executes various arithmetic processing based on a paper feed command signal sent from a host computer 2. ). This CPU is connected to a ROM 4 that stores fixed data such as control programs via a path line 3 consisting of a data bus, an address bus, etc.
.. Backed up by battery 5 during power outage, counter,
A RAM 6 for temporarily storing various variable data such as flags. An I10 interface 81 connected to the external host computer 2 via a transmission line 7. A paper feed command signal etc. is sent to the paper feed gate mechanism 9 from this paper feed mechanism. A paper feed drive circuit 10 that receives a paper feed detection signal, etc. The power supply detection circuit 11, etc., which detects power outage and power outage recovery of this control device, is controlled.

なお、実施例の紙送り制御装置においては、電子キャッ
シュレジスタを想定してレシートと内部記録紙との2つ
の印字用紙のために紙送り門構9を同一構成の2台の紙
送り様構で構成している。
In the paper feed control device of the embodiment, assuming an electronic cash register, the paper feed gate mechanism 9 is constructed with two paper feed mechanisms having the same configuration for two printing sheets, a receipt and an internal recording paper. It consists of

第2図は前記各紙送り機構9の概略構成を示す模式図で
ある。図中12はCPU1から紙送り指令信号が紙送り
駆動回路10へ入力されると、この紙送り駆動回路10
から出力される励磁電流にて励磁される電磁石であり、
この電磁石12が励磁されると、支点13にて枢支され
たストップ板14が矢印方向に回動する。ストップ板1
4が矢印方向に回動すると、支点15に枢支されたクラ
ンクアーム16の側面に回転自在に取付けられた偏心カ
ム17のストップ軸18がストップ板14゜から外れる
。すると、偏心カム17はストップ軸18に連結された
ばね19の復元力により時計方向に回転して、印字モー
タ20にて一定速度で回転駆動されているビニオン21
に歯合する。しかして、印字モータ20にて偏心カム1
7はさらに時計方向に回転させられる。偏心カム17が
さらに時計方向に回転すると、クランクアーム16は支
点15を中心に反時計方向に回動し、このクランクアー
ム16の側面に枢支された紙送りアーム22が矢印方向
に移動する。そして紙送りアーム22の先端に取付けら
れた爪部23が紙送りローラ24の軸の一端に取付けら
れたラチェットホイール25を1溝分だけ時計方向に回
転させる。ラチェットホイール25が時計方向に回転す
ると、紙送りローラ24とピンチローラ26との間に挿
入された印字用紙27が矢印方向に1行分紙送りされる
FIG. 2 is a schematic diagram showing a schematic configuration of each paper feeding mechanism 9. As shown in FIG. 12 in the figure indicates that when a paper feed command signal is input from the CPU 1 to the paper feed drive circuit 10, the paper feed drive circuit 10
It is an electromagnet that is excited by the excitation current output from the
When this electromagnet 12 is excited, a stop plate 14 pivoted at a fulcrum 13 rotates in the direction of the arrow. Stop plate 1
4 rotates in the direction of the arrow, the stop shaft 18 of the eccentric cam 17 rotatably attached to the side surface of the crank arm 16 pivotally supported on the fulcrum 15 is removed from the stop plate 14°. Then, the eccentric cam 17 rotates clockwise due to the restoring force of the spring 19 connected to the stop shaft 18, and the pinion 21, which is rotationally driven at a constant speed by the printing motor 20, rotates clockwise.
mesh with. Therefore, the eccentric cam 1 is operated by the printing motor 20.
7 is further rotated clockwise. When the eccentric cam 17 further rotates clockwise, the crank arm 16 rotates counterclockwise about the fulcrum 15, and the paper feed arm 22 pivotally supported on the side surface of the crank arm 16 moves in the direction of the arrow. Then, the claw portion 23 attached to the tip of the paper feed arm 22 rotates the ratchet wheel 25 attached to one end of the shaft of the paper feed roller 24 clockwise by one groove. When the ratchet wheel 25 rotates clockwise, the printing paper 27 inserted between the paper feed roller 24 and the pinch roller 26 is fed by one line in the direction of the arrow.

同時にクランクアーム16に固定され、中央部に長孔2
8が穿設された遮蔽板29が矢印方向に点線で示す位置
まで移動する。遮蔽板29に穿設された長孔28が点線
位置まで達すると、この遮蔽板2つを両側から長孔28
を挟むように設けられた発光ダイオードとフォトトラン
ジスタとからなるフォトセンサ30からHレベルの紙送
り検出信号すが前記紙送り駆動回路10へ送出される。
At the same time, it is fixed to the crank arm 16 and has a long hole 2 in the center.
The shielding plate 29 with holes 8 moved in the direction of the arrow to the position shown by the dotted line. When the long hole 28 drilled in the shielding plate 29 reaches the dotted line position, the two shielding plates are inserted into the long hole 28 from both sides.
An H-level paper feed detection signal is sent to the paper feed drive circuit 10 from a photosensor 30 consisting of a light emitting diode and a phototransistor that are arranged to sandwich the paper.

なお、クランクアーム16が図示する定位置に止どまっ
ている時は、フォトセンサ30の発光ダイオード、フォ
トトランジス−9間は遮蔽板29で遮蔽されるために、
出力信号はしレベルである。これ等遮蔽板29.長孔2
8.フAトセンサ30は紙送り検出曙構を構成している
Note that when the crank arm 16 remains at the fixed position shown in the figure, the light emitting diode of the photosensor 30 and the phototransistor 9 are shielded by the shielding plate 29.
The output signal is at the edge level. These shielding plates 29. long hole 2
8. The A foot sensor 30 constitutes a paper feed detection mechanism.

さらに偏心カム17が回転すると、クランクアーム16
は逆に時計方向に回動して図示する位置に戻り、偏心カ
ム17がビニオン21から離れ、電磁石12の通電が停
止されているので、ストップ板14がストップ軸18に
当接して、偏心カム17は図示する定位置に停止する。
When the eccentric cam 17 further rotates, the crank arm 16
rotates clockwise in the opposite direction and returns to the position shown in the figure, and the eccentric cam 17 separates from the pinion 21 and the electromagnet 12 is de-energized, so the stop plate 14 comes into contact with the stop shaft 18, and the eccentric cam 17 is stopped at the fixed position shown in the figure.

なお、前記印字モータ20は回転を開始すると時間を計
時するために予め定められた一定周期を有する第6図に
示すりrミングバルスCT 7′; Cを紙送り駆動回
路10へ送出する。
Incidentally, when the printing motor 20 starts rotating, it sends out a running pulse CT7'C shown in FIG. 6 having a predetermined constant period to measure time to the paper feed drive circuit 10.

前記RAM6内には、第3図に示すように、ホストコン
ピュータ2から伝送路7およびI10インターフェース
8を介して入力される各種のデータおよび指令信号を一
時記憶するデータ領域RA1の他に、ホストコンピュー
タ2からI10インターフェース8へ入力した紙送り指
令信号を紙送り駆動回路10へ送出した時刻から紙送り
機構9のフォトセンサ30からHレベルの紙送り検出信
号が紙送り駆動回路10へ入力するまでの経過時間を計
時する計時手段としての、前記印字モータ20からのタ
イミングパルス(TP)aをカウントする紙送りカウン
トRA2.各紙送り機構9の動作状態(FD、ST)を
[01Ml  [2]の符号で記憶する紙送り状態メモ
リRA3.それぞれの紙送り機構9に対する紙送り指令
信号が入力したことを示す紙送りフラグ(FEl、FL
AG。
As shown in FIG. 3, the RAM 6 includes a data area RA1 that temporarily stores various data and command signals input from the host computer 2 via the transmission line 7 and I10 interface 8, as well as 2 to the I10 interface 8 is sent to the paper feed drive circuit 10 until the H level paper feed detection signal is input from the photo sensor 30 of the paper feed mechanism 9 to the paper feed drive circuit 10. A paper feed count RA2, which counts timing pulses (TP) a from the printing motor 20, serves as a timer for measuring elapsed time. Paper feed state memory RA3. which stores the operating state (FD, ST) of each paper feed mechanism 9 with the code [01Ml[2]. A paper feed flag (FE1, FL) indicating that a paper feed command signal has been input to each paper feed mechanism 9
A.G.

FE2.FLAG)を格納するフラグ領域RA4゜RA
5が形成されている。
FE2. FLAG) is stored in the flag area RA4゜RA
5 is formed.

なお、前記紙送り状態メモリRA3の動作状態FD、S
T [0]は紙送り指令信号がまだ入力していない状態
又は全ての紙送り動作が終了した動作状態を示し、動作
状flFD、ST[1]は紙送り指令信号が入力してか
ら最初の電磁石12が通電されるまでの動作状態を示し
、動作状態FD。
Note that the operating states FD and S of the paper feeding state memory RA3 are
T [0] indicates a state in which the paper feed command signal has not been input yet or an operating state in which all paper feed operations have been completed, and the operation status flFD, ST [1] indicates the state in which the paper feed command signal has not been input yet. The operating state FD shows the operating state until the electromagnet 12 is energized.

ST[2]は最初の電磁石12の通電後金ての紙送り動
作が終了するまでの動作状態を示す。
ST[2] indicates the operating state from the first energization of the electromagnet 12 until the end of the paper feeding operation.

前記CPU1はホストコンピュータ2がら各印字用紙2
7に対する紙送り指令信号が入力すると、第4図の流れ
図に従って紙送り処理を実行するように構成されている
。すなわち紙送り指令信号がI10インターフェース8
へ入力すると、紙送り駆動回路10を介して紙送り機構
9の印字モータ2oを回転起動させる。印字モータ20
が回転を開始するとこの印字モータ20は第6図に示す
タイミングパルスaを紙送り駆動回路10へ送出する。
The CPU 1 processes each printing paper 2 from the host computer 2.
When a paper feed command signal for No. 7 is input, the paper feed process is executed according to the flowchart shown in FIG. In other words, the paper feed command signal is sent to the I10 interface 8.
When input to , the print motor 2o of the paper feed mechanism 9 is started to rotate via the paper feed drive circuit 10. Print motor 20
When the printing motor 20 starts rotating, the printing motor 20 sends a timing pulse a shown in FIG. 6 to the paper feed drive circuit 10.

次に、RAM6の紙送り状態メモリRA3の該当する紙
送り機構9の動作状fiFD、STを[1]に設定する
。その後、Plにて電源検出回路11が停電を検出中か
又は停電復帰を検出した後まだ電圧が正規の電圧に上昇
していなくて不安定状態中でないことを確認し、タイミ
ングパルスaがHレベルに変化すると、RAM6の紙送
りカウンタRA2のカウント値FCTをOにクリアする
。そして、電磁石12に対する励磁電流の通電を開始す
る。そして、紙送り指令信号に該当するフラグ領域RA
4.RA5の紙送りフラグを1に設定し、紙送り状態メ
モリRA3の該当する動作状態FD、STを[2]に設
定する。
Next, the operation status fiFD, ST of the corresponding paper feed mechanism 9 in the paper feed status memory RA3 of the RAM 6 is set to [1]. After that, it is confirmed at Pl that the power supply detection circuit 11 is detecting a power outage or that the voltage has not risen to the normal voltage after detecting the return of a power outage and is not in an unstable state, and the timing pulse a is at the H level. When the value changes to , the count value FCT of the paper feed counter RA2 in the RAM 6 is cleared to O. Then, the application of excitation current to the electromagnet 12 is started. Then, the flag area RA corresponding to the paper feed command signal
4. The paper feed flag of RA5 is set to 1, and the corresponding operating states FD and ST of paper feed state memory RA3 are set to [2].

P2にてタイミングパルスTPがLレベルへ変化すると
、フォトセンサ30から実際に紙送りが実行されたこと
を示すHレベルの紙送り検出信号すが紙送り駆動回路1
0へ入力したことを確認し、このHレベルの紙送り検出
信号すの該当するフラグli RRA 4又はRA5の
紙送りフラグをOにクリアする。さらに、タイミングパ
ルスTPが再びHレベルに変化したことを確認すると、
RAM6の紙送りカウンタRA2のカウント値FCTを
1だけ増加する。次に紙送り状態メモリRA3の該当動
作状態FD、STが[2]であることを確認すると、電
磁石12への通電を遮断する。通電が遮断されると紙送
り指令信号に対する該当印字用紙27が1行分紙送りさ
れたことになる。
When the timing pulse TP changes to L level at P2, the photo sensor 30 outputs an H level paper feed detection signal indicating that paper feeding has actually been executed.
After confirming that the paper feed detection signal at the H level has been inputted to 0, the corresponding paper feed flag of RRA4 or RA5 of this H level paper feed detection signal is cleared to O. Furthermore, when it is confirmed that the timing pulse TP has changed to H level again,
The count value FCT of paper feed counter RA2 in RAM6 is increased by one. Next, when it is confirmed that the corresponding operating states FD and ST in the paper feed state memory RA3 are [2], the power to the electromagnet 12 is cut off. When the power supply is cut off, the printing paper 27 corresponding to the paper feed command signal has been fed by one line.

該当印字用紙2jの紙送りが終了すると、紙送りカウン
タRA2のカウント値FCTが許容値8に達したか否か
を調べる。達していなければP2へ戻りタイミングパル
スTPのLレベルへの変化後、再びフォトセンサ30の
紙送り検出信号すを調べる。今度はこの検出信号すはL
レベルへ戻っているのでタイミングパルスTPのHレベ
ルへの変化を待って紙送りカウンタRA2のカウント値
FCTを再び1だけ増加する。その結果カウント値FC
Tが8に達すると、P3にて全てのフラグ領域RA4.
RA5の紙送りフラグがOであるか否かを調べ、まだ1
のフラグが残っていたならばまだ実際に紙送りされてい
ない紙送り機構9が存在すると判断して、Plと同様に
電源検出回路11にて停電中や電圧不安定中でないこと
、タイミングパルスTPがHレベルであることを確認し
た後、紙送りフラグが1に設定された残りの紙送り機構
9の電磁石12に励磁電流の通電を開始してP2へ戻り
該当紙送りDi 419のフォトセンサ30から出力さ
れるHレベルの紙送り検出信号すの入力を待つ。
When the paper feeding of the corresponding printing paper 2j is completed, it is checked whether the count value FCT of the paper feeding counter RA2 has reached the allowable value 8 or not. If the timing pulse TP has not reached the L level, the process returns to P2, and after the timing pulse TP changes to the L level, the paper feed detection signal of the photosensor 30 is checked again. This time, this detection signal is L.
Since it has returned to the high level, the count value FCT of the paper feed counter RA2 is increased by 1 again after waiting for the timing pulse TP to change to the H level. As a result, count value FC
When T reaches 8, all flag areas RA4.
Check whether the paper feed flag of RA5 is O or not.
If the flag remains, it is determined that there is a paper feeding mechanism 9 that is not actually feeding paper yet, and similarly to Pl, the power supply detection circuit 11 detects that there is no power outage or unstable voltage, and the timing pulse TP is detected. After confirming that the paper feed flag is at H level, the application of excitation current to the electromagnets 12 of the remaining paper feed mechanisms 9 whose paper feed flags are set to 1 is started, and the process returns to P2, where the photo sensor 30 of the corresponding paper feed Di 419 Waits for the input of the H-level paper feed detection signal output from the terminal.

P3にて全ての紙送りフラグがOにクリアされていたな
らば、ホストコンピュータから入力された紙送り指令信
号に対応する全ての紙送り動作は終了したと判断して紙
送り状態メモリRA3の動作状!FD、STを[0]に
クリアしてこの紙送り処理を終了する。
If all paper feed flags are cleared to O in P3, it is determined that all paper feed operations corresponding to the paper feed command signal input from the host computer have been completed, and the paper feed status memory RA3 is operated. Status! FD and ST are cleared to [0] and this paper feeding process is ended.

第5図は紙送り制御!ll装置の電源オン時の起動処理
を示す流れ図である。すなわち、操作者の電源投入又は
電源検出回路11が停電復帰を検出すると、まず通常の
初期処理を実行した後、バッテリ5にてバックアップさ
れているRAM60紙送り状態メモリRA3の各動作状
態FD、STの値を調べる。そして、全ての動作状BF
D、STが[0]であれば紙送り動作中に停電が生じて
いないと判断して通常の業務を実行する。また、動作状
態FD、STが[0]以外であれば、紙送り動作中に停
電が発生して全ての紙送り動作が終了していないと判断
して、紙送り機構9の印字モータ20を回転起動させる
。そして、上記動作状態FD、STの値を調べ、[1コ
であれば紙送り指令信号が入力してから最初の電磁石1
2が通電されるまでの間に停電が発生したと判断して、
第4図のPlへ戻る。一方、動作状態FD、STが[2
]であれば、最初の電磁石12が通電された後すべての
紙送り動作が終了するまでの間に停電が発生したと判断
して第4図のP3へ戻る。
Figure 5 shows paper feed control! 11 is a flowchart showing startup processing when the ll device is powered on. That is, when the operator turns on the power or the power supply detection circuit 11 detects a power failure recovery, the normal initial processing is executed first, and then each operating state FD, ST of the RAM 60 paper feed state memory RA3 backed up by the battery 5 is Find out the value of . And all the action BF
If D and ST are [0], it is determined that there is no power outage during the paper feeding operation, and normal work is executed. Furthermore, if the operating states FD and ST are other than [0], it is determined that a power outage has occurred during the paper feeding operation and all paper feeding operations have not been completed, and the printing motor 20 of the paper feeding mechanism 9 is turned off. Start rotation. Then, check the values of the operating states FD and ST, and check [If it is 1, the first electromagnet 1 after the paper feed command signal is input.
It is determined that a power outage has occurred before 2 is turned on, and
Return to Pl in FIG. On the other hand, the operating states FD and ST are [2
], it is determined that a power outage has occurred after the first electromagnet 12 is energized until all paper feeding operations are completed, and the process returns to P3 in FIG.

このように網成されたプリンタの紙送り制御装置であれ
ば、第6図に示すように、時刻tOにてホストコンピュ
ータ2から例えば両方の印字用紙27に対する紙送り指
令信号が入力すると、印字モータ20が回転起動してタ
イミングパルスTPが送出される。同時にフラグ領域R
A4.RA5の紙送りフラグが1に設定されると共に、
紙送りカウンタRA2のカウント1直FCTがOにクリ
アされる。また、各紙送り機構9の各電磁石12が通電
される。そして、クランクアーム16が動作してフォト
センサ30からHレベルの紙送り検出信号すを受信して
、紙送りカウンタRA2がタイミングパルスTPを8つ
数えてカウントfiaFcTb< sになるとこの紙送
り動作が終了する。しかし図示するように、時刻t1に
てカウント値が8になり、紙送り動作が終了したにもか
かわらず、フォトセンサ30がHレベルの紙送り検出信
号を送出しなかった紙送り機構9が存在すれば、該当紙
送り機構9の電磁石12へ再び励磁電流を流す。
In the paper feed control device for a printer configured in this manner, as shown in FIG. 20 starts rotating and a timing pulse TP is sent out. At the same time flag area R
A4. The paper feed flag of RA5 is set to 1, and
Count 1 shift FCT of paper feed counter RA2 is cleared to O. Further, each electromagnet 12 of each paper feeding mechanism 9 is energized. Then, when the crank arm 16 operates and receives an H-level paper feed detection signal from the photosensor 30, and the paper feed counter RA2 counts eight timing pulses TP and the count becomes fiaFcTb<s, this paper feed operation is started. finish. However, as shown in the figure, there is a paper feeding mechanism 9 in which the photosensor 30 does not send out an H-level paper feeding detection signal even though the count value reaches 8 at time t1 and the paper feeding operation is completed. Then, the excitation current is again applied to the electromagnet 12 of the corresponding paper feed mechanism 9.

このような紙送り制御装置であれば、電源の電圧降下等
の何等かの要因にてホストコンピュータ2から紙送り指
令信号が入力したにもかかわらず、実際に紙送りが実行
されなかった場合は、タイミングパルスを8個数える許
容時間経過した後、再び電磁石12へ励磁電流が流され
るので、必ず入力紙送り指令信号に対する紙送りが実行
される。
With such a paper feed control device, if paper feed is not actually executed even though a paper feed command signal is input from the host computer 2 due to some factor such as a voltage drop in the power supply, After the permissible time period of counting eight timing pulses has elapsed, the excitation current is applied to the electromagnet 12 again, so that the paper feed in response to the input paper feed command signal is always executed.

したがって、紙送りがなされずに、1行に文字が重ねて
印字出力されることはない。
Therefore, the paper is not fed and characters are not printed out in a single line.

また、ホストコンピュータ2から紙送り指令が入力して
から実際に砥送り動作が終了するまでの間に停電が発生
して、その後一定時間経過後に停電復帰した場合、RA
M60紙送り状態メモリRA3の動作状態FD、STの
記憶内容に基づき停電直前の動作状態を判断して、紙送
り動作を実行するようにしている。したがって、たとえ
紙送り動作中に停電が生じたとしても、停電復帰時に正
規に紙送りが実行されるので、1行に文字が重ねて印字
出力されることはない。
In addition, if a power outage occurs between the input of a paper feed command from the host computer 2 and the actual completion of the abrasive feeding operation, and the power is restored after a certain period of time, the RA
The paper feeding operation is executed by determining the operating state immediately before the power failure based on the stored contents of the operating states FD and ST of the M60 paper feeding state memory RA3. Therefore, even if a power outage occurs during a paper feeding operation, the paper will be normally fed when the power is restored, so that characters will not be printed out in a single line.

このように、入力した紙送り指令信号に対して確実に紙
送りを実行でき、プリンタの信頼性を向上できる。
In this way, paper feeding can be reliably executed in response to the input paper feeding command signal, and the reliability of the printer can be improved.

なお、本発明は上述した実施例に限定されるものではな
い。実施例においては電子キャッシュレジスタに組込ま
れたレシートと内部記録紙との2つの印字用紙を紙送り
する2つの紙送り偲構が存在する場合について説明した
が、印字用紙、舐送り機構の設置数は特に限定されるも
のではない。
Note that the present invention is not limited to the embodiments described above. In the embodiment, the case where there are two paper feeding mechanisms for feeding two types of printing paper, the receipt and the internal recording paper built into the electronic cash register, has been described, but the number of installed printing paper and lick feeding mechanisms may vary. is not particularly limited.

[発明の効果] 以上説明したように本発明によれば、実際に紙送りが実
行されたことを検出することによって、たとえ外部から
の紙送り指令信号に対して紙送りがなされなかったとし
ても、確実に紙送りを実行でき、重ね印字を防止して、
紙送り装置全体の信頼性を向上できる。
[Effects of the Invention] As explained above, according to the present invention, by detecting that paper feeding is actually performed, even if paper feeding is not performed in response to a paper feeding command signal from the outside, Paper can be fed reliably, preventing overprinting,
The reliability of the entire paper feeding device can be improved.

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

図は本発明の一実施例のプリンタの紙送り制御Vl置を
示すものであり、第1図は概略構成を示すブロック図、
第2図は紙送り機構の概略構成を示す模式図、第3図は
記憶部の主なメモリを示す図、第4図および第5図は動
作を示す流れ図、第6図は動作を示すタイムチャートで
ある。 1・・・CPU、2・・・ホストコンピュータ、6・・
・RAM、8・・・I10インターフェース、9・・・
紙送り灘構、10・・・紙送り駆動回路、11・・・電
源検出回路、12・・・電磁石、14・・・ストッパ板
、16・・・クランクアーム、17・・・偏心カム、2
0・・・印字モータ、21・・・ビニオン、22・・・
紙送りアーム、25・・・ラチェットホイール、24・
・・紙送りローラ、27・・・印字用紙、29・・・遮
蔽板、30フオトセンサ、RA2・・・紙送りカウンタ
、RA3・・・紙送り状態メモリ。 出願人代理人 弁理士 鈴江武彦 第1123 第2v!J 1日
The figure shows the paper feed control Vl position of a printer according to an embodiment of the present invention, and FIG. 1 is a block diagram showing a schematic configuration.
Fig. 2 is a schematic diagram showing the general configuration of the paper feeding mechanism, Fig. 3 is a diagram showing the main memory of the storage section, Figs. 4 and 5 are flow charts showing the operation, and Fig. 6 is a time diagram showing the operation. It is a chart. 1...CPU, 2...Host computer, 6...
・RAM, 8...I10 interface, 9...
Paper feeding nada structure, 10... Paper feeding drive circuit, 11... Power supply detection circuit, 12... Electromagnet, 14... Stopper plate, 16... Crank arm, 17... Eccentric cam, 2
0... Print motor, 21... Binion, 22...
Paper feed arm, 25... Ratchet wheel, 24...
...Paper feed roller, 27...Print paper, 29...Shielding plate, 30 Photo sensor, RA2...Paper feed counter, RA3...Paper feed state memory. Applicant's agent Patent attorney Takehiko Suzue No. 1123 2nd v! J 1 day

Claims (2)

【特許請求の範囲】[Claims] (1)紙送り指令信号に応動する電磁石にてクランクア
ームを駆動し、このクランクアームでもって紙送りロー
ラに連結されたラチェットホィールを回転させることに
よって、この紙送りローラにセットされた印字用紙を1
行分紙送りするプリンタの紙送り制御装置において、前
記紙送りローラにセットされた印字用紙が実際に紙送り
されたことを検出する紙送り検出機構と、前記紙送り指
令信号の入力時刻から前記紙送り検出機構からの紙送り
検出信号を受信するまでの経過時間を計時する計時手段
と、この計時手段が予め定められた許容時間を計時した
とき、前記紙送り指令信号を再び前記電磁石へ送出する
手段とを備えたことを特徴とするプリンタの紙送り制御
装置。
(1) A crank arm is driven by an electromagnet that responds to a paper feed command signal, and the crank arm rotates a ratchet wheel connected to the paper feed roller, thereby moving the printing paper set on the paper feed roller. 1
A paper feed control device for a printer that feeds paper by a line includes a paper feed detection mechanism that detects whether printing paper set on the paper feed roller is actually fed, and a paper feed detection mechanism that detects whether the printing paper set on the paper feed roller is actually fed, and a paper feed detection mechanism that detects the paper feed from the input time of the paper feed command signal. a timer for measuring the elapsed time until receiving the paper feed detection signal from the paper feed detection mechanism; and when the timer measures a predetermined allowable time, the paper feed command signal is sent again to the electromagnet. 1. A paper feed control device for a printer, comprising means for controlling the paper feed of a printer.
(2)紙送り指令信号に応動する電磁石にてクランクア
ームを駆動し、このクランクアームでもって紙送りロー
ラに連結されたラチェットホィールを回転させることに
よって、この紙送りローラにセットされた印字用紙を1
行分紙送りするプリンタの紙送り制御装置において、こ
の制御装置の停電および停電復帰を検出する電源検出回
路と、前記紙送りローラにセットされた印字用紙が実際
に紙送りされたことを検出する紙送り検出機構と、前記
紙送り指令信号の入力時刻から前記紙送り検出機構から
の紙送り検出信号受信までの経過時間を計時する計時手
段と、この計時手段が予め定められた許容時間を計時し
たとき、およびこの計時手段が前記許容時間を計時しな
い間に前記電源検出回路が前記停電を検出しその後改め
て停電復帰を検出したとき、前記紙送り指令信号を再び
前記電磁石へ送出する手段とを備えたことを特徴とする
プリンタの紙送り制御装置。
(2) A crank arm is driven by an electromagnet that responds to a paper feed command signal, and the crank arm rotates a ratchet wheel connected to the paper feed roller, thereby moving the printing paper set on the paper feed roller. 1
A paper feed control device for a printer that feeds paper by a line includes a power supply detection circuit that detects a power outage and a recovery from a power outage of this control device, and a power supply detection circuit that detects that printing paper set on the paper feed roller is actually fed. a paper feed detection mechanism; a timer for timing the elapsed time from the input time of the paper feed command signal to the reception of the paper feed detection signal from the paper feed detection mechanism; and the timer to measure a predetermined allowable time. means for sending the paper feed command signal to the electromagnet again when the power supply detection circuit detects the power outage and then detects the return of the power outage while the timer does not measure the allowable time; A paper feed control device for a printer, characterized in that:
JP16059184A 1984-07-31 1984-07-31 Paper-feed controller for printer Granted JPS6137456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16059184A JPS6137456A (en) 1984-07-31 1984-07-31 Paper-feed controller for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16059184A JPS6137456A (en) 1984-07-31 1984-07-31 Paper-feed controller for printer

Publications (2)

Publication Number Publication Date
JPS6137456A true JPS6137456A (en) 1986-02-22
JPH0458394B2 JPH0458394B2 (en) 1992-09-17

Family

ID=15718259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16059184A Granted JPS6137456A (en) 1984-07-31 1984-07-31 Paper-feed controller for printer

Country Status (1)

Country Link
JP (1) JPS6137456A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03160129A (en) * 1989-11-15 1991-07-10 Mazda Motor Corp Control device of engine
US5221035A (en) * 1990-11-29 1993-06-22 Seiko Instruments Inc. Printing medium feeding device of an image reproduction apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03160129A (en) * 1989-11-15 1991-07-10 Mazda Motor Corp Control device of engine
US5221035A (en) * 1990-11-29 1993-06-22 Seiko Instruments Inc. Printing medium feeding device of an image reproduction apparatus

Also Published As

Publication number Publication date
JPH0458394B2 (en) 1992-09-17

Similar Documents

Publication Publication Date Title
US8920055B2 (en) Printer device and method for controlling cutting position of boarding pass
JPS6137456A (en) Paper-feed controller for printer
JP3871008B2 (en) Platen mechanism, printing apparatus using the same, and control method therefor
JPS6137457A (en) Paper-feed controller for printer
JP3444055B2 (en) Paper feeding mechanism
KR100415608B1 (en) Method and device for preventing paper jam of printer
JP2745791B2 (en) Error recovery method for printing device
JPH0390378A (en) Medium processing device
US7284919B2 (en) Printing apparatus and control method
JP2912723B2 (en) Label printer
JP2894146B2 (en) Printer
JPH04341882A (en) Apparatus for detecting left and right margin position of printing paper
JP3100135B2 (en) Recording device
JP3279422B2 (en) Image forming device
JPH0326664B2 (en)
JP2808688B2 (en) Printer
JPH04347670A (en) Label printer
JPH05131729A (en) Serial printer
JP2713683B2 (en) Printer control method
JPH10157232A (en) Printer
JPH0976603A (en) Printer
JPS6178676A (en) Printer
JPH10250050A (en) Ink jet printer
JPH01168468A (en) Control system for paper processor
JPS61246084A (en) Ink ribbon feed controlling system for printer