JPH09248954A - Printer - Google Patents

Printer

Info

Publication number
JPH09248954A
JPH09248954A JP17480196A JP17480196A JPH09248954A JP H09248954 A JPH09248954 A JP H09248954A JP 17480196 A JP17480196 A JP 17480196A JP 17480196 A JP17480196 A JP 17480196A JP H09248954 A JPH09248954 A JP H09248954A
Authority
JP
Japan
Prior art keywords
printing
print
line
roll paper
printed
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
JP17480196A
Other languages
Japanese (ja)
Inventor
Takahide Takahashi
隆英 高橋
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.)
TEC CORP
Original Assignee
TEC CORP
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TEC CORP filed Critical TEC CORP
Priority to JP17480196A priority Critical patent/JPH09248954A/en
Publication of JPH09248954A publication Critical patent/JPH09248954A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent very short slips from developing and collecting within a device by a method wherein a printing process is inevitably executed by the predetermined several number of dot lines even when a printing halt switch is depressed during the printing process and then the printing is stopped so as to cut off printed portion. SOLUTION: Even when a printing halt switch is depressed during a printing process, during the conveying of a machine glazed paper to a printing position after the receipt of a printing starting command, during the printout from a line head 10 by the predetermined dot lines or during the feeding of the machine glazed paper, the printing process does not be stopped until the predetermined length is attained. After the depression, printing is performed by every one dot line. At every one dot line printing, a CPU 21 judges whether a printing halt flag is set or not. When the switch 11 is depressed during the setting of the printing halt flag, the printing is stopped, the printed portion is cut off the machine glazed paper and discharged outside. Accordingly, no very short slip develops even when the switch 11 is depressed just after the start of printing.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ロール紙に1ライ
ン又は複数ラインごとに印刷してその印刷部分を切離す
プリンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for printing one line or a plurality of lines on roll paper and separating the printed portion.

【0002】[0002]

【従来の技術】従来、この種のプリンタとしては、例え
ば図3ないし図5に示すような券発行装置に適用される
ラインプリンタがある。この券発行装置には、その筐体
1内に印刷ユニット2が前方から引出可能に設けられて
いる。具体的には、筐体内の底部に前後に渡って2本の
案内レール3を設け、これら案内レール3上に印刷ユニ
ット2を摺動自在に取付けて構成される。
2. Description of the Related Art Conventionally, as this type of printer, there is a line printer applied to a ticket issuing device as shown in FIGS. In this ticket issuing device, a printing unit 2 is provided in the housing 1 so as to be drawn out from the front. Specifically, two guide rails 3 are provided in the bottom of the housing in the front and rear direction, and the printing unit 2 is slidably mounted on these guide rails 3.

【0003】この印刷ユニット2には、その後方に例え
ば郵便局の受領書データを出力するためのロール紙4a
を収納する用紙収納部41 と、例えば郵便局の証紙デー
タを出力するためのロール紙4bを収納する用紙収納部
42 とが並設されている。
A roll paper 4a for outputting receipt data of a post office, for example, is provided behind the printing unit 2.
A paper storage unit 41 for storing the paper and a paper storage unit 42 for storing the roll paper 4b for outputting the certificate data of the post office are arranged in parallel.

【0004】また、印刷ユニット2は、この用紙収納部
41 ,42 から引出された用紙を搬送し、これらのロー
ル紙に印刷を行う印刷部5、この印刷部5で印刷された
用紙を切断するカッタを備えた切断部6、この切断部6
から前方に離間して設けられ切断したロール紙4a,4
bの紙片を裏面の孔部(図示しない)から挿入し、装置
前面側に設けた開口部へ券として発行するための券発行
部7を備える。
Further, the printing unit 2 conveys the paper drawn out from the paper storage units 41 and 42 and cuts the paper printed by the printing unit 5 for printing on these roll papers. Cutting part 6 equipped with a cutter, this cutting part 6
Roll papers 4a, 4 which are cut apart from the front of the roll paper 4a, 4
A ticket issuing unit 7 is provided for inserting the paper piece b from a hole (not shown) on the back surface and issuing it as a ticket to an opening provided on the front side of the apparatus.

【0005】上記印刷部5には、蓋体8がその側部一端
が図4に示す矢印方向に開放自在に印刷部本体の一側上
縁部に枢支されている。この蓋体8の内側には、印刷素
子を一列に配列してなるラインヘッド10が1つ取付け
られている。図5に示すように上記ロール紙4a,4b
は、このラインヘッド10の長手方向に沿って並んでい
る。
In the printing section 5, a lid 8 is pivotally supported at one side edge of the lid 8 so as to be openable in the direction of the arrow shown in FIG. Inside the lid body 8, one line head 10 having print elements arranged in a line is attached. As shown in FIG. 5, the roll papers 4a, 4b
Are arranged along the longitudinal direction of the line head 10.

【0006】なお、この蓋体8の開放端にはその側方に
突出した突起部8aが設けられ、この突起部8aは印刷
部本体の側面に取付けられたフック部9に掛止されてい
る。このフック部9には蓋体8の突起部8aの掛止状態
を解除するためのレバー9aが形成されている。
A protruding portion 8a protruding laterally is provided at the open end of the lid body 8, and the protruding portion 8a is hooked on a hook portion 9 attached to a side surface of the printing portion main body. . The hook 9 is formed with a lever 9a for releasing the hooked state of the protrusion 8a of the lid 8.

【0007】また、印刷ユニット2には図5に示すよう
に印刷中止スイッチ11が設けられている。この印刷中
止スイッチ11は、例えばロール紙への印刷が開始して
から、印刷情報として入力した発行枚数や金額の間違い
等に気付く場合があり、この場合に印刷を途中で停止さ
せるために押すものである。すなわち、証紙等は金銭と
同様であるため誤って発行させてはならないことから、
金額の間違い等に気付いた場合は、印刷中止スイッチ1
1を押して直ちに印刷を中止してその証紙等の生成を防
止する必要がある。なお、この印刷中止スイッチ11
は、図1に示す筐体1に設けてもよい。このように構成
することにより、印刷中止スイッチ11が操作し易くな
る。
Further, the print unit 2 is provided with a print stop switch 11 as shown in FIG. The print stop switch 11 may be pressed to stop printing in the middle, for example, after printing on roll paper starts, it may be possible to notice an error in the number of issued sheets or the amount of money input as print information. Is. In other words, certificate stamps are the same as money and must not be issued by mistake.
If you notice an error in the amount of money, etc., the print cancel switch 1
It is necessary to press 1 immediately to stop printing and prevent the generation of such a stamp. The print stop switch 11
May be provided in the housing 1 shown in FIG. With this configuration, the print cancel switch 11 can be easily operated.

【0008】このような装置においては、券を発行する
場合には、装置内の制御部の本体を構成する図示しない
CPU(中央処理装置)が図6に示すような券発行制御
を行うようになっている。図6に示す流れ図のうち、
(a)に示すものはメインルーチンであり、(b)に示
すものはCPUの処理中に割込みとして処理される割込
みルーチンである。
In such a device, when a ticket is issued, a CPU (central processing unit) (not shown) constituting the main body of the control unit in the device performs ticket issuing control as shown in FIG. Has become. Of the flow chart shown in FIG. 6,
What is shown in (a) is a main routine, and what is shown in (b) is an interrupt routine that is processed as an interrupt during processing of the CPU.

【0009】この図6(b)に示す割込ルーチンは、上
記印刷中止スイッチ11が押されると、印刷処理を中止
するか否かを判断するための印刷中止フラグをセットす
るものであり、同図(a)に示す印刷処理を実行してい
る間であっても優先的に処理される。
The interrupt routine shown in FIG. 6 (b) sets a print stop flag for determining whether or not to stop the print process when the print stop switch 11 is pressed. Even while the print process shown in FIG. 9A is being executed, the process is preferentially performed.

【0010】また、図6(a)に示すメインルーチン
は、例えば本装置に接続されたホストコンピュータから
券発行に必要な情報を入力して券発行を開始すると実行
する。すなわち、先ずホストコンピュータから受信した
データに基づいてラインヘッド10に沿った1行分を1
ドットラインずつ印刷する。具体的には、用紙収納部4
1 ,42 にセットされたロール紙の端部をラインヘッド
10の対向部へ搬送して印刷する。すると、印刷処理
中、ロール紙は図5に示すようにその端部が切断部6か
ら延出していき、所定長さだけ搬送されると、券発行部
7の裏面の孔部(図示しない)に挿入するようになる。
The main routine shown in FIG. 6 (a) is executed when the ticket issuing is started by inputting the information necessary for issuing the ticket from the host computer connected to this apparatus. That is, first, based on the data received from the host computer, one line for one line along the line head 10
Print dot lines one by one. Specifically, the paper storage unit 4
The end portions of the roll papers set at 1 and 42 are conveyed to the opposite portion of the line head 10 for printing. Then, during the printing process, as shown in FIG. 5, the roll paper has its end portion extending from the cutting portion 6 and is conveyed by a predetermined length, and a hole portion (not shown) on the back surface of the ticket issuing portion 7 is conveyed. Will be inserted into.

【0011】そして、このような1行分の印刷が終了す
るごとに、印刷終了及び印刷中止フラグがセットされた
か否かを判断する。そして、印刷が終了すると、印刷し
た部分を切離す。これにより、切離された部分は、券発
行部7の開口部から券として発行される。
Then, every time such one line of printing is finished, it is judged whether or not the print end and print stop flags are set. Then, when printing is completed, the printed portion is separated. As a result, the separated portion is issued as a ticket from the opening of the ticket issuing unit 7.

【0012】これに対し、印刷が終了する前に印刷中止
フラグがセットされると、直ちに印刷処理を中止すると
ともに、印刷中止フラグのセットを解除し、ロール紙を
切離す。これにより、途中まで印刷されたロール紙の端
部がロール紙から切離され、1枚分に満たない長さの券
片が生成される。これは次に券を正しく発行するためで
ある。すなわち、この中途半波な部分を切離さなけれ
ば、その部分が次の券に繋がったまま発行されてしまう
のでこれを防止するためである。
On the other hand, if the print stop flag is set before printing is finished, the print process is stopped immediately, the print stop flag is unset, and the roll paper is cut off. As a result, the end of the half-printed roll paper is separated from the roll paper, and a ticket piece having a length less than one sheet is generated. This is to issue the ticket correctly next time. In other words, if this half-wave portion is not cut off, that portion will be issued while being connected to the next ticket, so this is prevented.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、このよ
うな装置においては、金銭の誤り等に気付いた場合は直
ちに印刷を中止する必要があることから1行分の印刷が
終了するごとに印刷中止フラグがセットされたか否かを
判断するようにしていたため、例えば印刷開始後すぐに
印刷中止スイッチ11が押された場合には、数行分しか
印刷されていないのにロール紙が切離されてしまい、き
わめて短い券片が生成されてしまうことがある。
However, in such an apparatus, it is necessary to immediately stop printing when an error in money is noticed. Therefore, the printing stop flag is set every time printing of one line is completed. Therefore, if the print stop switch 11 is pressed immediately after the start of printing, the roll paper is cut off even though only a few lines have been printed. , Very short bills may be generated.

【0014】このように印刷開始後すぐに印刷中止スイ
ッチ11が押された場合には、印刷ユニット2の切断部
6から延出したロール紙の端部が券発行部7の裏面の孔
部まで到達しないまま切離されてしまうこともあり、こ
うしてできた短い券片は切断部6と券発行部7との狭い
隙間に潜り込んでしまう。従って、このような短い券片
が切断部6と券発行部7との隙間に溜まるため、定期的
にこの短い券片を除去しなければならなず煩わしいとい
う問題があった。
In this way, when the print stop switch 11 is pressed immediately after the start of printing, the end of the roll paper extending from the cutting section 6 of the printing unit 2 reaches the hole on the back surface of the ticket issuing section 7. It may be cut off without reaching it, and the short ticket piece thus created sneaks into the narrow gap between the cutting section 6 and the ticket issuing section 7. Therefore, since such short ticket pieces are accumulated in the gap between the cutting section 6 and the ticket issuing section 7, there is a problem in that the short ticket pieces must be removed periodically, which is troublesome.

【0015】また、切断部6に上述した短い券片が引掛
かってしまうと、次の券の発行の際、ロール紙の端部が
挿入したとき、重なって切断されたり、紙詰まりを起こ
しやすくなったりという具合に、次の券の発行処理に影
響を及ぼすという問題も考えられる。
Further, if the above-mentioned short bill piece is caught on the cutting portion 6, when the end portion of the roll paper is inserted at the time of issuance of the next bill, it is likely to be overlapped and cut or jammed. There is also a problem in that it will affect the issuing process of the next ticket.

【0016】さらに、切断部6にはロール紙の有無を検
出する光センサが設けられている場合があり、この光セ
ンサの部分に上述した短い券片が引掛かってしまった場
合には、光センサが遮られ、ロール紙がないのにロール
紙ありとの誤動作をしてしまうという問題も考えられ
る。
Further, the cutting section 6 may be provided with an optical sensor for detecting the presence or absence of roll paper, and when the above-mentioned short ticket is caught on the optical sensor, the optical sensor is provided. There is also a problem in that the paper is blocked, and there is no roll paper, but there is a malfunction that there is roll paper.

【0017】そこで、きわめて長さが短い券片の生成を
防止して、装置内部に溜まった短い券片の除去や清掃等
を不要とすることができ、また印刷中止後の処理に影響
を及ぼすことを防止できるプリンタを提供しようとする
ものである。
Therefore, it is possible to prevent the generation of bills having an extremely short length, eliminating the need to remove or clean the bills accumulated in the apparatus, and to affect the processing after the printing is stopped. The present invention aims to provide a printer that can prevent this.

【0018】[0018]

【課題を解決するための手段】請求項1の本発明は、印
刷ヘッドによりロール紙に1ライン又は複数ラインごと
に印刷し、印刷が終了すると印刷した部分を切離して外
部に排出するプリンタにおいて、印刷を中断するための
印刷中止スイッチを設け、印刷処理中にこの印刷中止ス
イッチが押されても所定ドットライン数分は必ず印刷処
理しその後に印刷を中止してロール紙から印刷した部分
を切離すものである。
According to a first aspect of the present invention, there is provided a printer in which a print head prints on a roll paper line by line or a plurality of lines, and when printing is completed, the printed portion is separated and discharged to the outside. A print stop switch for interrupting printing is provided, and even if this print stop switch is pressed during the printing process, printing is always performed for the specified number of dot lines, then printing is stopped and the portion printed from the roll paper is cut off. To release.

【0019】請求項2の本発明は、印刷ヘッドによりロ
ール紙に1ライン又は複数ラインごとに印刷し、印刷が
終了すると印刷した部分を切離して外部に排出するプリ
ンタにおいて、印刷を中断するための印刷中止スイッチ
と、印刷処理中にこの印刷中止スイッチが押されるとそ
の状態を記憶する状態記憶手段とを設け、印刷出力開始
後所定ドットライン数分を連続印刷処理した後に1ドッ
トライン又は複数ドットラインの印刷ごとに状態記憶手
段を監視し、状態記憶手段が印刷中止スイッチが押下さ
れた状態を記憶していないと判断した場合は印刷を続行
し、状態記憶手段が印刷中止スイッチが押下された状態
を記憶していると判断した場合は印刷を中止してロール
紙から印刷した部分を切離すものである。
According to a second aspect of the present invention, in a printer that prints on a roll paper by one line or a plurality of lines by a print head, and when the printing is completed, the printed portion is cut off and discharged to the outside. A print stop switch and a state storage means for storing the state when the print stop switch is pressed during the printing process are provided, and one dot line or a plurality of dots after a predetermined number of dot lines are continuously printed after the start of print output. The state storage means is monitored every time a line is printed, and if it is determined that the state storage means does not store the state where the print stop switch is pressed, printing is continued, and the state storage means presses the print stop switch. When it is determined that the state is stored, the printing is stopped and the printed portion is separated from the roll paper.

【0020】請求項3の本発明は、印刷ヘッドによりロ
ール紙に1ライン又は複数ラインごとに印刷し、印刷が
終了すると印刷した部分を切離して外部に排出するプリ
ンタにおいて、印刷処理中に外部から印刷中止コマンド
を受信しても、所定ドットライン数分は必ず印刷処理
し、その後に印刷を中止してロール紙から印刷した部分
を切離すものである。
According to a third aspect of the present invention, in a printer for printing one line or a plurality of lines on a roll paper by a print head, separating the printed portion and discharging the printed paper to the outside from the outside during the printing process. Even when the print stop command is received, the print processing is always performed for the predetermined number of dot lines, and then the print is stopped and the printed portion is separated from the roll paper.

【0021】請求項4の本発明は、印刷ヘッドによりロ
ール紙に1ラインごと又は複数ラインごとに印刷し、印
刷が終了すると印刷した部分を切離して外部に排出する
プリンタにおいて、印刷処理中に外部から印刷中止コマ
ンドを受信すると、その状態を記憶する状態記憶手段を
設け、印刷出力開始後所定ドットライン数分を連続印刷
処理した後に1ドットライン又は複数ドットラインの印
刷ごとに状態記憶手段を監視し、状態記憶手段が印刷中
止コマンドを受信した状態を記憶していないと判断した
場合は印刷を続行し、状態記憶手段が印刷中止コマンド
を受信した状態を記憶していると判断した場合は印刷を
中止してロール紙から印刷した部分を切離すものであ
る。
According to a fourth aspect of the present invention, in a printer that prints on a roll paper line by line or a plurality of lines by a print head, and when printing is completed, the printed portion is separated and discharged to the outside. When a print stop command is received from the printer, a state storage unit for storing the state is provided, and after the start of print output, a predetermined number of dot lines are continuously printed and then the state storage unit is monitored every time one dot line or a plurality of dot lines are printed. Then, if it is determined that the state storage unit does not store the state of receiving the print stop command, printing is continued, and if it is determined that the state storage unit stores the state of receiving the print stop command, print. Then, the printed portion is cut off from the roll paper.

【0022】このような本発明においては、印刷が開始
されると、印刷中止スイッチが押されたか否かにかかわ
らず、又は印刷中止コマンドを受信したか否かにかかわ
らず、所定ドットライン数分が連続印刷処理され、その
後は印刷中止スイッチが押下又は印刷中止コマンドを受
信していれば、1ドットライン又は複数ドットラインの
単位で印刷が中止され、ロール紙から印刷した部分を切
離す。これにより、印刷が途中で中止されてもロール紙
から切離された部分は必ず所定長さ以上のものとなるた
め、切離し部分がきわめて短いものの生成が防止され
る。
In the present invention as described above, when printing is started, a predetermined number of dot lines are printed regardless of whether the print cancel switch is pressed or whether the print cancel command is received. If the print cancel switch is pressed or a print cancel command is received after that, printing is stopped in units of one dot line or plural dot lines, and the printed portion is cut off from the roll paper. As a result, even if printing is stopped midway, the portion cut off from the roll paper will always have a length equal to or greater than the predetermined length, so that the generation of an extremely short cut-off portion is prevented.

【0023】[0023]

【発明の実施の形態】以下、本発明を発券装置に適用し
た場合の実施の形態を図面を参照して説明する。本実施
の形態における装置の外観構成は図3ないし図5に示す
ものと同様であり、またこれらに示す部分と同一部分に
は同一符号を付して詳細な説明を省略する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments in which the present invention is applied to a ticket issuing apparatus will be described below with reference to the drawings. The external configuration of the device according to the present embodiment is similar to that shown in FIGS. 3 to 5, and the same parts as those shown in these drawings are designated by the same reference numerals and detailed description thereof will be omitted.

【0024】図1は、本実施の形態にかかる発券装置の
構成を示す制御ブロック図で、21は制御部本体を構成
するCPU(中央処理装置)、22はこのCPU21が
各部を制御するためのプログラムデータを格納したRO
M(リード・オンリー・メモリ)、23はCPU21が
データ処理を行うために使用するイメージバッファ等を
設けたRAM(ランダム・アクセス・メモリ)、24は
I/Oポート、25は通信回線で接続したホストコンピ
ュータ26からデータを受信するインタフェース(I/
F)である。上記CPU21とROM22、RAM2
3、I/Oポート24、インタフェース25とは、バス
ライン27により電気的に接続している。
FIG. 1 is a control block diagram showing the configuration of the ticket issuing device according to the present embodiment. Reference numeral 21 is a CPU (central processing unit) that constitutes the main body of the control unit, and 22 is the CPU 21 for controlling each unit. RO storing program data
M (read only memory), 23 is a RAM (random access memory) provided with an image buffer used by the CPU 21 for data processing, 24 is an I / O port, and 25 is a communication line. An interface (I / I that receives data from the host computer 26
F). CPU21, ROM22, RAM2
3, the I / O port 24, and the interface 25 are electrically connected by a bus line 27.

【0025】上記I/Oポート24にはRAM23のイ
メージバッファからのイメージデータに基づいて印刷ヘ
ッドとしてのラインヘッド10を駆動するヘッドドライ
バ31、上記切断部6のカッタを駆動するカッタモータ
32を駆動制御するモータドライバ33、各ローラ紙4
a、4bを所定タイミングで上記ラインヘッド10の対
向位置から下流側へ搬送するための紙送りモータ34を
駆動するモータドライバ35、印刷中止スイッチ11が
接続している。
A head driver 31 for driving the line head 10 as a print head and a cutter motor 32 for driving the cutter of the cutting section 6 are driven to the I / O port 24 based on the image data from the image buffer of the RAM 23. Motor driver 33 to control, each roller paper 4
A motor driver 35 for driving a paper feed motor 34 for transporting a and 4b from the facing position of the line head 10 to the downstream side at a predetermined timing and the print stop switch 11 are connected.

【0026】上記CPU21は、券を発行する場合に
は、図2に示すような券発行制御を行うようになってい
る。図2に示す流れ図のうち、(a)に示すものはメイ
ンルーチンであり、(b)に示すものはCPU21の処
理中に割込みとして処理される割込みルーチンである。
When issuing a ticket, the CPU 21 performs ticket issuing control as shown in FIG. In the flow chart shown in FIG. 2, (a) shows a main routine, and (b) shows an interrupt routine which is processed as an interrupt during the processing of the CPU 21.

【0027】この図2(b)に示す割込ルーチンは、上
記印刷中止スイッチ11が押されると、印刷処理を中止
するか否かを判断するための印刷中止フラグをセットす
るものであり、同図(a)に示すST3以降の印刷処理
を実行している間であっても優先的に処理される。
The interrupt routine shown in FIG. 2 (b) sets a print stop flag for determining whether or not to stop the print process when the print stop switch 11 is pressed. Even during the execution of the printing process after ST3 shown in FIG. 9A, the printing process is preferentially performed.

【0028】また、図2(a)に示すメインルーチン
は、例えばホストコンピュータ26から券発行に必要な
情報を入力して券発行を開始すると実行する。すなわ
ち、上記CPU21は先ずST(ステップ)1にてホス
トコンピュータ26から受信したデータに基づいてライ
ンヘッド10に沿った1ドットラインを印刷する。
The main routine shown in FIG. 2A is executed when the ticket issuing is started by inputting the information necessary for issuing the ticket from the host computer 26, for example. That is, the CPU 21 first prints one dot line along the line head 10 based on the data received from the host computer 26 in ST (step) 1.

【0029】続いて、ST2にて所定ドットライン数分
の印刷が終了したか否かを判断する。この所定ドットラ
イン数は、印刷中止により1枚分に満たない券片が生成
されても、その券片が切断部6と券発行部7との狭い隙
間に潜り込まない程度の長さになる程度の印刷量に設定
する。
Subsequently, in ST2, it is determined whether or not printing for a predetermined number of dot lines has been completed. This predetermined number of dot lines is such that even if less than one ticket piece is generated due to printing cancellation, the ticket piece does not go into the narrow gap between the cutting section 6 and the ticket issuing section 7. Set the print amount.

【0030】具体的には、本発明の適用の対象となる装
置によるが、少なくとも1インチ以上の長さがあれば短
い券片が切断部6と券発行部7との隙間に溜まらなくな
るという実験結果が得られている。すなわち、この1イ
ンチ程度の長さに相当する印刷量は、例えばラインヘッ
ド10と切断部6までの距離が0.6インチであるとす
ればこれを1インチから引いた量、すなわち300dp
iの印刷密度を持つ装置では120ドットライン程度で
十分である。但し、これに限られることはなく、それ以
上、例えば300ドットライン程度でもよい。
Specifically, depending on the apparatus to which the present invention is applied, an experiment in which short ticket pieces do not accumulate in the gap between the cutting section 6 and the ticket issuing section 7 if the length is at least 1 inch or more. Results have been obtained. That is, if the distance between the line head 10 and the cutting portion 6 is 0.6 inch, the printing amount corresponding to the length of about 1 inch is an amount obtained by subtracting this from 1 inch, that is, 300 dp.
For a device having a print density of i, about 120 dot lines is sufficient. However, the number is not limited to this, and may be more, for example, about 300 dot lines.

【0031】ここで、1ドットラインとは、ラインヘッ
ド10の印刷素子が並ぶライン方向の1ドット列を意味
し、例えば、文字の大きさや行間によって異なるが印刷
密度300dpiのときにおける文字列1行分は40ド
ットライン程度で構成される。
Here, one dot line means one dot line in the line direction in which the print elements of the line head 10 are lined up. For example, one line of a character string at a printing density of 300 dpi varies depending on the size of the character and the line spacing. A minute is composed of about 40 dot lines.

【0032】上記ST2にて所定ドットライン数分、例
えば上述した例をとると120ドットライン分や300
ドットライン分の印刷が終了したと判断した場合には、
ST3にて次の1ドットラインの印刷を行う。続いて、
ST4にて印刷が終了したか否かを判断する。
In ST2, a predetermined number of dot lines, for example, 120 dot lines or 300 in the above example.
If it is determined that printing for dot lines has finished,
In ST3, the next 1-dot line is printed. continue,
In ST4, it is determined whether printing is completed.

【0033】このとき、印刷が終了したと判断した場合
は、ST7にてロール紙をラインヘッド10と切断部6
との間隔に相当する所定搬送量例えば0.6インチだけ
搬送した後にカッタモータ32を駆動してロール紙を切
離してこのメインルーチンを終了する。これにより、1
枚分の券(例えば本発明にかかる券発行装置を郵便局の
業務処理装置として使用すれば、証紙や受領書に相当す
る)が発行される。
At this time, if it is determined that the printing is completed, the roll paper is fed to the line head 10 and the cutting unit 6 in ST7.
After carrying by a predetermined carrying amount corresponding to the interval between, for example, 0.6 inch, the cutter motor 32 is driven to separate the roll paper, and this main routine is ended. This gives 1
A number of tickets (e.g., a certificate or a receipt if the ticket issuing device according to the present invention is used as a business processing device of a post office) is issued.

【0034】これに対して、印刷が終了していないと判
断した場合はST5にて印刷中止フラグがセットされて
いるか否かを判断する。そして、印刷中止フラグがセッ
トされていないと判断した場合は、ST3の処理に戻
る。
On the other hand, when it is determined that the printing is not completed, it is determined in ST5 whether the print stop flag is set. When it is determined that the print cancel flag is not set, the process returns to ST3.

【0035】また、印刷中止フラグがセットされている
と判断した場合は、ST6にて印刷処理を中止するとと
もに、印刷中止フラグのセットを解除する。これによ
り、券1枚分の印刷が終了していない状態となるが、S
T1及びST2のループでは印刷中止フラグの確認を行
わないため、必ず所定ドットライン分より多く印刷され
ている。
If it is determined that the print stop flag is set, the print process is stopped and the print stop flag is unset in ST6. As a result, printing of one ticket has not been completed.
Since the print stop flag is not checked in the loop of T1 and ST2, the print amount is always larger than the predetermined dot line.

【0036】この状態で、ST7にて所定搬送量だけ搬
送した後にカッタモータ32を駆動してロール紙を切離
してこのメインルーチンを終了する。すると、少なくと
も1インチより長い券片が生成されて、券発行部7から
外部へ排出される。
In this state, in ST7, the cutter motor 32 is driven to carry the predetermined amount, and the roll paper is cut off to end this main routine. Then, a ticket longer than at least 1 inch is generated and discharged from the ticket issuing unit 7 to the outside.

【0037】このような構成の本発明の実施の形態にお
いては、ホストコンピュータ26から券発行に必要な情
報を入力して券発行を開始すると、ホストコンピュータ
26から受信したデータに基づいて例えば120ドット
ライン分の印刷が行われる。この印刷処理中、すなわち
印刷開始コマンドを受信してロール紙を印刷位置まで搬
送している間や印刷ヘッドから所定ドットライン分の印
刷出力をしている間、またロール紙をフィードしている
間に、印刷中止スイッチ11が押されても、所定長さに
達するまでは印刷処理は中止されることはない。
In the embodiment of the present invention having such a configuration, when the information necessary for issuing the ticket is input from the host computer 26 and the ticket issuing is started, for example, 120 dots are generated based on the data received from the host computer 26. Printing of lines is performed. During this printing process, that is, while receiving the print start command and transporting the roll paper to the print position, while printing output for a predetermined dot line from the print head, and while feeding the roll paper. Even if the print stop switch 11 is pressed, the print processing is not stopped until the predetermined length is reached.

【0038】その後は、1ドットラインごとに印刷を行
い、その都度、印刷中止フラグがセットされてたか否か
を判断する。従って、この間に印刷中止スイッチ11が
押されれば印刷が中止され、印刷した部分はロール紙か
ら切離され、券発行部7から外部へ排出される。
After that, printing is performed for each dot line, and each time, it is determined whether or not the print stop flag is set. Therefore, if the print stop switch 11 is pressed during this time, the printing is stopped, the printed portion is separated from the roll paper, and is discharged from the ticket issuing unit 7 to the outside.

【0039】このように、印刷中止スイッチ11が印刷
開始直後に押された場合であっても、所定ドットライン
数分の印刷は必ず行われてからロール紙が切離されるた
め、従来のようにきわめて短い券片が生成されることは
なく、1枚分の長さには満たなくても、必ず所定長さ以
上の券片が生成される。具体的には、例えば印刷密度3
00dpiのとき、従来の装置で1行印刷した後切離さ
れた場合、40ドットライン程度の印刷で切離されるた
め、これに相当する長さとして0.13インチ程度の長
さの券片が生成されてしまうことがあるが、本実施の形
態にかかる装置では少なくとも1インチより長い券片の
みが生成されるように所定ドットライン分の印刷が必ず
実行される。
As described above, even when the print stop switch 11 is pressed immediately after the start of printing, the roll paper is cut off after the printing of the predetermined number of dot lines is always performed. An extremely short ticket is not generated, and a ticket having a predetermined length or more is always generated even if the length is not one sheet. Specifically, for example, print density 3
At the time of 00 dpi, when one line is printed by the conventional apparatus and then cut off, it is cut off by the printing of about 40 dot lines, so that a ticket strip having a length of about 0.13 inch is equivalent to this. However, in the apparatus according to the present embodiment, printing for a predetermined dot line is always executed so that only a ticket longer than at least 1 inch is generated.

【0040】これにより、印刷中止により生成された券
片が切断部6と券発行部7との狭い隙間に潜り込んで溜
まることを防止でき、装置内部に溜まった短い券片の除
去や清掃等を不要とすることができる。
As a result, it is possible to prevent the bill pieces generated by the printing cancellation from digging into the narrow gap between the cutting section 6 and the ticket issuing section 7 and accumulating, and to remove or clean the short bill pieces accumulated inside the apparatus. It can be unnecessary.

【0041】また、きわめて短い券片の生成を防止でき
るため、切断部6の光センサの部分に引っ掛かって残留
した券片により光センサ等の誤動作を引起こしたり、切
断部6に残留した券片により、次の券を発行するために
挿入してきたロール紙と重ねて切離されて生じるカット
不良、紙づまり等を防止できる。これにより、印刷中止
により生成された券片が印刷中止後の処理に影響を及ぼ
すことを防止できる。
Further, since it is possible to prevent the generation of an extremely short ticket, the ticket remaining on the cutting portion 6 may cause a malfunction of the optical sensor or the like due to the ticket remaining on the optical sensor portion of the cutting portion 6. As a result, it is possible to prevent a cut defect, a paper jam, or the like that occurs when the roll paper that is inserted to issue the next ticket is overlapped and separated. As a result, it is possible to prevent the ticket generated by the print cancellation from affecting the processing after the print cancellation.

【0042】また、本実施の形態においては、1ライン
ドット単位で中止フラグをチェックしているので従来の
1行単位で中止フラグをチェックするのに比べ印刷中止
スイッチ11による印刷中止指令からロール紙の搬送処
理が始まるまでの時間を短くすることができる。
Further, in the present embodiment, since the stop flag is checked in the unit of one line dot, compared with the conventional check of the stop flag in the unit of one line, the roll paper is sent from the print stop command from the print stop switch 11. It is possible to shorten the time required to start the carrying process.

【0043】また、印刷中止後、ラインヘッド10と切
断部6の間隔分送った後に、切断するため、次の発券処
理で印刷したときに重印刷されることを防止できる。さ
らに、ラインヘッド10と切断部6の間隔が割込みルー
チンの無効の用紙搬送長よりも短い場合には特に有効で
ある。
Also, after the printing is stopped, the line head 10 and the cutting unit 6 are fed by the distance between them and then cut, so that it is possible to prevent double printing when printing is performed in the next ticketing process. Further, it is particularly effective when the distance between the line head 10 and the cutting unit 6 is shorter than the invalid paper transport length of the interrupt routine.

【0044】なお、本発明の実施の形態においては、蓋
体8にラインヘッド10を設けたものについて述べた
が、このラインヘッド10はサーマルヘッド、インクジ
ェットヘッド、インパクトヘッド等のいずれのもので構
成してもよい。
In the embodiment of the present invention, the lid 8 is provided with the line head 10, but the line head 10 is composed of any one of a thermal head, an ink jet head and an impact head. You may.

【0045】また、本発明の実施の形態においては、印
刷ヘッドとしてラインヘッド10を使用したものについ
て述べたが、必ずしもこれに限定されることはなく、シ
リアル型の印刷ヘッドを使用したものであってもよい。
この場合は、主走査方向に印刷ヘッドを移動させて複数
ラインの印刷を行うことができる。
Further, although the line head 10 is used as the print head in the embodiments of the present invention, the print head is not necessarily limited to this, and a serial type print head is used. May be.
In this case, the print head can be moved in the main scanning direction to print a plurality of lines.

【0046】また、本発明の実施の形態においては、印
刷ユニット2に印刷中止スイッチ11を設け、この印刷
中止スイッチ11が押下されているか否かを検出して、
図2に示すST5の処理のように印刷中止か否かを判断
するものについて述べたが、この印刷中止スイッチ11
の状態検出を行う代わりに、ホストコンピュータ26か
らの印刷中止コマンドを受信したか否かを監視し、印刷
中止コマンドを受信したと判断したときに、印刷中止で
あると判断してその後の処理を行うものであってもよ
い。これによっても、上記同様の効果を奏することがで
き、さらにこれに加えて印刷中止スイッチ11を不要と
することができるため、部品点数を減少することができ
る。
In the embodiment of the present invention, the print unit 2 is provided with the print stop switch 11, and it is detected whether or not the print stop switch 11 is pressed,
As described in the process of ST5 shown in FIG. 2, the process of determining whether or not to cancel the printing has been described.
Instead of detecting the status of the above, it is monitored whether or not a print cancel command is received from the host computer 26, and when it is determined that the print cancel command is received, it is determined that the print is canceled and the subsequent processing is performed. It may be performed. With this, the same effect as described above can be obtained, and in addition to this, since the print stop switch 11 can be eliminated, the number of parts can be reduced.

【0047】[0047]

【発明の効果】以上詳述したように本発明によれば、装
置内部に溜まった短い券片の除去や清掃等を不要とする
ことができ、また印刷中止後の処理に影響を及ぼすこと
を防止できるプリンタを提供できるものである。
As described above in detail, according to the present invention, it is possible to eliminate the need for removing and cleaning short bills accumulated inside the apparatus, and to affect the processing after the printing is stopped. It is possible to provide a preventable printer.

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

【図1】本発明の実施の形態の制御部の回路構成を示す
ブロック図。
FIG. 1 is a block diagram showing a circuit configuration of a control unit according to an embodiment of the present invention.

【図2】図1に示すCPUが行う券発行制御を示す流れ
図で、(a)はメインルーチン、(b)は割込ルーチン
である。
2 is a flowchart showing ticket issuing control performed by the CPU shown in FIG. 1, in which (a) is a main routine and (b) is an interrupt routine.

【図3】従来のプリンタを外観構成を示す全体斜視図。FIG. 3 is an overall perspective view showing an external configuration of a conventional printer.

【図4】図3に示すプリンタの内部構成を説明する図。FIG. 4 is a diagram illustrating an internal configuration of the printer shown in FIG.

【図5】図3に示すプリンタの内部構成を説明する図。5 is a diagram illustrating an internal configuration of the printer shown in FIG.

【図6】図3に示すプリンタの制御部が行う券発行制御
を示す流れ図で、(a)はメインルーチン、(b)は割
込ルーチンである。
6 is a flowchart showing ticket issuing control performed by a control unit of the printer shown in FIG. 3, (a) being a main routine and (b) being an interrupt routine.

【符号の説明】 4a,4b…ロール紙 6…切断部 10…ラインヘッド 11…印刷中止スイッチ 21…CPU[Explanation of reference numerals] 4a, 4b ... Roll paper 6 ... Cutting section 10 ... Line head 11 ... Printing stop switch 21 ... CPU

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 印刷ヘッドによりロール紙に1ライン又
は複数ラインごとに印刷し、印刷が終了すると印刷した
部分を切離して外部に排出するプリンタにおいて、印刷
を中断するための印刷中止スイッチを設け、印刷処理中
にこの印刷中止スイッチが押されても所定ドットライン
数分は必ず印刷処理しその後に印刷を中止して前記ロー
ル紙から印刷した部分を切離すことを特徴とするプリン
タ。
1. A printer for printing one line or a plurality of lines on a roll paper by a print head, separating the printed portion and discharging it to the outside when printing is completed, is provided with a print stop switch for interrupting printing, A printer characterized in that even if the print stop switch is pressed during the print processing, the print processing is always performed for a predetermined number of dot lines, and then the print is stopped and the printed portion is separated from the roll paper.
【請求項2】 印刷ヘッドによりロール紙に1ライン又
は複数ラインごとに印刷し、印刷が終了すると印刷した
部分を切離して外部に排出するプリンタにおいて、印刷
を中断するための印刷中止スイッチと、印刷処理中にこ
の印刷中止スイッチが押されるとその状態を記憶する状
態記憶手段とを設け、印刷出力開始後所定ドットライン
数分を連続印刷処理した後に1ドットライン又は複数ド
ットラインの印刷ごとに前記状態記憶手段を監視し、前
記状態記憶手段が前記印刷中止スイッチが押下された状
態を記憶していないと判断した場合は印刷を続行し、前
記状態記憶手段が前記印刷中止スイッチが押下された状
態を記憶していると判断した場合は印刷を中止して前記
ロール紙から印刷した部分を切離すことを特徴とするプ
リンタ。
2. A printer that prints on a roll paper one line or a plurality of lines by a print head, cuts off the printed portion and discharges the printed paper to the outside when the printing is completed, and a print cancel switch for interrupting the printing. When the print stop switch is pressed during processing, a state storage means for storing the state is provided, and after the start of print output, a predetermined number of dot lines are continuously printed, and then one dot line or a plurality of dot lines are printed. If the status storage means is monitored and it is determined that the status storage means does not store the state in which the print stop switch is pressed, the printing is continued, and the state storage means presses the print stop switch. A printer that stops printing and separates the printed portion from the roll paper when it is determined that the print data is stored.
【請求項3】 印刷ヘッドによりロール紙に1ライン又
は複数ラインごとに印刷し、印刷が終了すると印刷した
部分を切離して外部に排出するプリンタにおいて、印刷
処理中に外部から印刷中止コマンドを受信しても、所定
ドットライン数分は必ず印刷処理し、その後に印刷を中
止して前記ロール紙から印刷した部分を切離すことを特
徴とするプリンタ。
3. A printer for printing one line or a plurality of lines on a roll paper by a print head, separating the printed portion and discharging it to the outside when printing is completed, receives a print cancel command from the outside during printing processing. Even if a predetermined number of dot lines are printed, the printer is stopped and the printed portion is separated from the roll paper.
【請求項4】 印刷ヘッドによりロール紙に1ラインご
と又は複数ラインごとに印刷し、印刷が終了すると印刷
した部分を切離して外部に排出するプリンタにおいて、
印刷処理中に外部から印刷中止コマンドを受信すると、
その状態を記憶する状態記憶手段を設け、印刷出力開始
後所定ドットライン数分を連続印刷処理した後に1ドッ
トライン又は複数ドットラインの印刷ごとに前記状態記
憶手段を監視し、前記状態記憶手段が前記印刷中止コマ
ンドを受信した状態を記憶していないと判断した場合は
印刷を続行し、前記状態記憶手段が前記印刷中止コマン
ドを受信した状態を記憶していると判断した場合は印刷
を中止して前記ロール紙から印刷した部分を切離すこと
を特徴とするプリンタ。
4. A printer which prints on a roll paper line by line or a plurality of lines by a print head, and when the printing is completed, the printed portion is separated and discharged to the outside,
When a print cancel command is received from the outside during print processing,
State storage means for storing the state is provided, and after the start of print output, a predetermined number of dot lines are continuously printed, and then the state storage means is monitored every time one dot line or a plurality of dot lines are printed. If it is determined that the state where the print stop command is received is not stored, printing is continued, and if it is determined that the state storage unit stores the state where the print stop command is received, printing is stopped. A printer for separating a printed portion from the roll paper.
JP17480196A 1996-01-12 1996-07-04 Printer Pending JPH09248954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17480196A JPH09248954A (en) 1996-01-12 1996-07-04 Printer

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP374896 1996-01-12
JP8-3748 1996-01-12
JP17480196A JPH09248954A (en) 1996-01-12 1996-07-04 Printer

Publications (1)

Publication Number Publication Date
JPH09248954A true JPH09248954A (en) 1997-09-22

Family

ID=26337385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17480196A Pending JPH09248954A (en) 1996-01-12 1996-07-04 Printer

Country Status (1)

Country Link
JP (1) JPH09248954A (en)

Similar Documents

Publication Publication Date Title
JP5136659B2 (en) Printer, control method therefor, and information recording medium
KR100749382B1 (en) Printer and printer control method
US5921686A (en) Kiosk printer
AU2005267253A1 (en) Methods and apparatus for bursting perforated paper stock
JP2007038557A (en) Method of controlling printer, printer and program
JP5181909B2 (en) Printer reprint control method and printer
JP4478289B2 (en) Print processing device
JPH09248954A (en) Printer
US20040175221A1 (en) Printer
JP3855564B2 (en) Printer and control method thereof
EP1403082B1 (en) Apparatus having a printing function
TWI469879B (en) The recording paper transfer control method and the printer of the printer
JP3770002B2 (en) Printer and control method thereof
JP3224333B2 (en) Media handling equipment
US8928925B2 (en) Multifunction device and method for printing and reading data on a medium
JPH05201095A (en) Impact printer
JP4650154B2 (en) Printer and printer control method
JP2004243764A (en) Printing device
JP7236026B2 (en) printer
JP3243164B2 (en) Line printer
JP2005279983A (en) Receipt printer
JP2002036671A (en) Serial printer
JP2004243767A (en) Printing device and printing method
JPH11208078A (en) Print controller
JP2023014478A (en) Printing system and printing method