JPH05197854A - Print controller for ticket printer - Google Patents

Print controller for ticket printer

Info

Publication number
JPH05197854A
JPH05197854A JP3138792A JP3138792A JPH05197854A JP H05197854 A JPH05197854 A JP H05197854A JP 3138792 A JP3138792 A JP 3138792A JP 3138792 A JP3138792 A JP 3138792A JP H05197854 A JPH05197854 A JP H05197854A
Authority
JP
Japan
Prior art keywords
medium
size
ticket
print
type code
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
JP3138792A
Other languages
Japanese (ja)
Inventor
Masaru Shimakata
勝 嶋方
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3138792A priority Critical patent/JPH05197854A/en
Publication of JPH05197854A publication Critical patent/JPH05197854A/en
Pending legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To ensure the accurate print to a proper medium. CONSTITUTION:A ticket type code detecting means 11 detects the type code of a ticket instructed by a host device 20. Meanwhile, a medium size detecting means 12 detects the size of a print medium 23 set to a printer. Then, a comparing means 13 compares the medium size shown by the ticket type code with the medium size detected by the means 12. When no coincidence is obtained between both sizes, a warning means 14 gives a warning to an operator. Thus the operator never prints the necessary information to a wrong medium.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、数種類の媒体を任意に
印字する発券プリンタの印字制御装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control device for a ticket issuing printer which prints several kinds of media.

【0002】[0002]

【従来の技術】発券プリンタは、例えば、乗車券、航空
券等の切符や、宿泊券等のクーポン券の予約発券システ
ムにおいて広く用いられているプリンタである。このよ
うな発券プリンタは、切符やクーポン券等の金銭的な価
値を有する有価証券を発行するものであるので、オペレ
ータの印字作業における操作の確実性が要求される。
2. Description of the Related Art Ticket issuing printers are widely used, for example, in ticket reservation systems for tickets such as boarding tickets and airline tickets, and coupon tickets such as accommodation tickets. Since such a ticket issuing printer issues securities having monetary value such as tickets and coupons, certainty of operation in the printing work by the operator is required.

【0003】図2は、従来の発券プリンタの印字制御手
順の一例を示すフローチャートである。予約発券システ
ムにおいて、予約及び発券業務の最終段階で切符等が発
券される。この場合、まず、発券プリンタが上位装置よ
り印字データを受信後(ステップS21)、媒体の有無
のみを確認する(ステップS22)。そして、媒体が無
ければ、オペレータに媒体のセットを促し、これにより
オペレータが媒体をセットし(ステップS23)、媒体
が有ることが確認されれば(ステップS22)、印字を
開始する(ステップS24)。
FIG. 2 is a flowchart showing an example of a print control procedure of a conventional ticket issuing printer. In the reservation ticketing system, tickets are issued at the final stage of reservation and ticketing operations. In this case, first, after the ticket-issuing printer receives print data from the higher-level device (step S21), only the presence / absence of the medium is confirmed (step S22). If there is no medium, the operator is prompted to set the medium, whereby the operator sets the medium (step S23), and if it is confirmed that there is the medium (step S22), printing is started (step S24). ..

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような問題があった。即ち、従
来の発券プリンタでは、上位装置から送られてくる印字
データの印字に際し、媒体有無の判断のみで印字動作を
開始していたため、印字データと媒体サイズが異なった
場合は図3に示すような不具合を生じた。図3は、従来
の印字制御による誤印字の一例の説明図である。発券プ
リンタに媒体1の印字データが送られてきたとする。と
ころが、セットされた媒体が媒体1よりも幅の狭い媒体
2だとする。すると、ライトマージンオーバ機能により
改行して印字してしまう。このため、図示のように、印
字がバラバラになってしまうという問題があった。
However, the above-mentioned conventional techniques have the following problems. That is, in the conventional ticket issuing printer, when printing the print data sent from the host device, the printing operation is started only by judging the presence or absence of the medium. Therefore, when the print data and the medium size are different, as shown in FIG. It caused some trouble. FIG. 3 is an explanatory diagram of an example of erroneous printing by conventional print control. It is assumed that the print data of the medium 1 is sent to the ticket issuing printer. However, it is assumed that the set medium is the medium 2 having a narrower width than the medium 1. Then, a line break is printed by the write margin over function. For this reason, there is a problem in that the printing is uneven as illustrated.

【0005】本発明は、以上の点に着目してなされたも
ので、印字データと媒体サイズが異なった場合でも発券
プリンタがこれを判断し、オペレータに表示し、適切な
媒体へ印字することができる発券プリンタの印字制御装
置を提供することを目的とするものである。
The present invention has been made by paying attention to the above points. Even if the print data and the medium size are different, the ticket issuing printer can judge this, display it to the operator, and print it on an appropriate medium. An object of the present invention is to provide a print control device for a ticket issuing printer.

【0006】[0006]

【課題を解決するための手段】本発明の発券プリンタの
印字制御装置は、上位装置から発券を指示された券の券
種コードを検出する券種コード検出手段と、当該発券プ
リンタにセットされた媒体のサイズを検出する媒体サイ
ズ検出手段と、前記券種コードに示された媒体サイズ
と、当該媒体サイズ検出手段により検出された媒体サイ
ズとを比較する比較手段と、当該比較手段による比較結
果により印字媒体のサイズが券種コードと一致しないと
き、警告を発する警告手段とを設けたことを特徴とする
ものである。
A print control device for a ticket issuing printer according to the present invention is set in a ticket type code detecting means for detecting a ticket type code of a ticket instructed to be issued by a higher-level device and the ticket issuing printer. A medium size detecting means for detecting the size of the medium, a comparing means for comparing the medium size indicated in the bill type code with the medium size detected by the medium size detecting means, and a comparison result by the comparing means. A warning means for issuing a warning when the size of the print medium does not match the bill type code is provided.

【0007】[0007]

【作用】本発明の発券プリンタの印字制御装置において
は、券種コード検出手段により上位装置から発券を指示
された券の券種コードを検出する。一方、媒体サイズ検
出手段により当該発券プリンタにセットされた媒体のサ
イズを検出する。そして、比較手段により前記券種コー
ドに示された媒体サイズと、当該媒体サイズ検出手段に
より検出された媒体サイズとを比較する。この比較手段
による比較結果により印字媒体のサイズが券種コードと
一致しないときは、警告手段がオペレータに対し、警告
を発する。これにより、オペレータが誤って他の種類の
媒体に印字することが防止される。
In the print control device of the ticket issuing printer of the present invention, the ticket type code detecting means detects the ticket type code of the ticket instructed to be issued by the higher-level device. On the other hand, the medium size detecting means detects the size of the medium set in the ticket issuing printer. Then, the medium size indicated by the bill type code is compared with the medium size detected by the medium size detecting unit by the comparing unit. When the size of the print medium does not match the bill type code as a result of the comparison by the comparison means, the warning means issues a warning to the operator. This prevents the operator from accidentally printing on other types of media.

【0008】[0008]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明の発券プリンタの印字制御
装置の実施例のブロック図である。図示の印字制御装置
10は、券種コード検出手段11と、媒体サイズ検出手
段12と、比較手段13と、警告手段14と、印字開始
位置制御手段15と、印字制御手段16とから成る。券
種コード検出手段11は、上位装置20から発券を指示
された券の券種コードを検出する。より具体的には、券
種コード検出手段11において、上位装置20から送ら
れた電文中に示された用紙のサイズを読み出すか、又は
券種コードに対応した用紙サイズを格納した対応テーブ
ルにより検出する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of a print control device for a ticket issuing printer according to the present invention. The illustrated print control device 10 includes a bill type code detection means 11, a medium size detection means 12, a comparison means 13, a warning means 14, a print start position control means 15, and a print control means 16. The ticket type code detecting means 11 detects the ticket type code of the ticket instructed to be issued by the higher-level device 20. More specifically, the ticket type code detecting means 11 reads out the size of the paper indicated in the electronic message sent from the higher-level device 20 or detects it by a correspondence table storing the paper size corresponding to the ticket type code. To do.

【0009】媒体サイズ検出手段12は、当該発券プリ
ンタにセットされた印字媒体23のサイズを検出する。
この媒体サイズ検出手段12は、縦方向検知センサ21
と横方向検知センサ22とから成る。これらの詳細につ
いては後述する。尚、印字媒体23の縦方向サイズと横
方向サイズの双方を検出して媒体サイズを決定してもよ
いし、例えば、同じ縦方向サイズで異なる横方向サイズ
がない場合、あるいはその逆の場合には、縦方向検知セ
ンサ21又は横方向検知センサ22のいずれか一方のみ
によっても、媒体サイズを検出することができる。
The medium size detecting means 12 detects the size of the print medium 23 set in the ticket issuing printer.
The medium size detecting means 12 includes a vertical direction detecting sensor 21.
And a lateral direction detection sensor 22. Details of these will be described later. The medium size may be determined by detecting both the vertical size and the horizontal size of the print medium 23. For example, when there is no different horizontal size with the same vertical size, or vice versa. Can detect the medium size by only one of the vertical direction detection sensor 21 and the horizontal direction detection sensor 22.

【0010】比較手段13は、券種コードに示された媒
体サイズと、媒体サイズ検出手段12により検出された
媒体サイズとを比較する。これにより、券種コードに対
応したサイズの印字媒体に印字が行なわれるかどうかを
判断する。警告手段14は、比較手段13による比較結
果により印字媒体のサイズが券種コードと一致しないと
き、オペレータに対し、警告を発する。この警告手段1
4、より具体的には、上位装置20にディスプレイへの
表示メッセージを送るものでもよいし、あるいは発券プ
リンタに備えられた警音器を鳴らすものでもよい。印字
開始位置制御手段15は、媒体サイズ検出手段12によ
り検出された媒体サイズあるいは券種コード検出手段1
1により検出された券種コードに対応した媒体サイズに
応じて、印字ヘッド24の初期位置を決める。印字制御
手段16は、印字ヘッド24を駆動制御することによ
り、上位装置20から送られた印字データを印字媒体2
3に印字する。
The comparing means 13 compares the medium size indicated by the bill type code with the medium size detected by the medium size detecting means 12. As a result, it is determined whether or not printing is performed on the print medium having the size corresponding to the bill type code. The warning unit 14 issues a warning to the operator when the size of the print medium does not match the bill type code as a result of the comparison by the comparison unit 13. This warning means 1
4. More specifically, it may be one that sends a display message to the display to the higher-level device 20, or one that sounds an audible alarm provided in the ticket issuing printer. The print start position control means 15 is a medium size or bill type code detection means 1 detected by the medium size detection means 12.
The initial position of the print head 24 is determined according to the medium size corresponding to the bill type code detected by 1. The print control unit 16 drives and controls the print head 24 so that the print data sent from the higher-level device 20 is transferred to the print medium 2.
Print on 3.

【0011】図4、図5及び図6は、縦方向検知センサ
の構成の詳細の説明図である。図4に示すセンサでは、
図5に示すような連続用紙から成る印字媒体の縦方向の
サイズを検出することができる。図示のセンサでは、図
6に示すように媒体の一角であるa点やb点を切り落と
した穴位置により連続する媒体の一券片の縦方向のサイ
ズを識別する。即ち、印字媒体は、ピントラクタ30に
より送り込まれつつ、LFパルスモータ31がドライブ
プーリ32及び減速ギア33を介してプラテン34を駆
動することにより送り出される。この間において、縦方
向検知センサ21は、図6に示すa点やb点でオンから
オフへの切り換えを連続的に繰り返す。従って、縦方向
センサ21のオン開始から次のオン開始までの時間を計
測して一券片のサイズを検知できる。
FIG. 4, FIG. 5 and FIG. 6 are detailed explanatory views of the configuration of the vertical direction detection sensor. In the sensor shown in FIG.
The size in the vertical direction of the print medium made of continuous paper as shown in FIG. 5 can be detected. In the sensor shown in the figure, as shown in FIG. 6, the size in the vertical direction of one continuous ticket of the medium is identified by the hole position obtained by cutting off the points a and b which are one corner of the medium. That is, the print medium is sent by the LF pulse motor 31 driving the platen 34 via the drive pulley 32 and the reduction gear 33 while being fed by the pin tractor 30. During this period, the vertical direction detection sensor 21 continuously repeats switching from ON to OFF at points a and b shown in FIG. Therefore, the size of one ticket can be detected by measuring the time from the start of turning on the vertical direction sensor 21 to the start of the next time.

【0012】図7及び図8は、横方向検知センサの構成
の詳細の説明図である。図7に示すように、横方向検知
センサ22は、例えば、センサD1〜D4の4つのセン
サから成る。これにより、横方向のサイズについては、
印字媒体をローディングしてセットした時に各センサの
出力により知ることができる。即ち、図8に示すよう
に、センサD1及びD2がオンでセンサD3及びD4が
オフである場合は、媒体1がセットされていると判断で
きる。また、センサD1〜D4のすべてがオンである場
合は、媒体2がセットされていると判断できる。その他
の場合には、媒体1、2以外の媒体がセットされている
か、媒体のセットが正しく行なわれていないと判断でき
る。
7 and 8 are detailed explanatory views of the configuration of the lateral direction detection sensor. As shown in FIG. 7, the lateral direction detection sensor 22 includes, for example, four sensors D1 to D4. Therefore, for the horizontal size,
It can be known from the output of each sensor when the print medium is loaded and set. That is, as shown in FIG. 8, when the sensors D1 and D2 are on and the sensors D3 and D4 are off, it can be determined that the medium 1 is set. When all the sensors D1 to D4 are on, it can be determined that the medium 2 is set. In other cases, it can be determined that a medium other than the mediums 1 and 2 has been set, or that the medium has not been set correctly.

【0013】図9は、本発明における媒体判断の処理手
順を説明するフローチャートである。まず、上位装置か
ら印字データを受信すると(ステップS1)、媒体有無
を判断する(ステップS2)。媒体無しの時はオンライ
ンからオフラインへプリンタ状態を変更し(ステップS
3)、用紙エンドアラームを通知する(ステップS
4)。例えば、プリンタの用紙エンドアラームランプを
点灯したり、上位装置にアラームIPTなどを上げる。
そして、媒体のセットされるのを待ち(ステップS
5)、セット完了となったら(ステップS6)、用紙エ
ンドアラームを解除する(ステップS7)。オフライン
状態からオンラインへ切換えられたら(ステップS8、
S9)、媒体サイズの検知を行なう(ステップS1
0)。媒体サイズの検知は、図4及び図7に示すように
媒体の縦方向と横方向をセンサで検知するものである。
FIG. 9 is a flow chart for explaining the processing procedure of medium judgment in the present invention. First, when print data is received from a host device (step S1), the presence or absence of a medium is determined (step S2). When there is no medium, change the printer status from online to offline (step S
3) Notify the paper end alarm (step S)
4). For example, the paper end alarm lamp of the printer is turned on, or an alarm IPT or the like is given to the host device.
Then, wait until the medium is set (step S
5) When the setting is completed (step S6), the paper end alarm is released (step S7). When the offline state is switched to the online state (step S8,
S9), the medium size is detected (step S1).
0). The detection of the medium size is performed by detecting the longitudinal direction and the lateral direction of the medium with a sensor as shown in FIGS. 4 and 7.

【0014】一方、券種コードを検出する(ステップS
11)。券種コードとは、印字データとともに送られて
くる媒体の種類を示す情報のことであり、プリンタは券
種コードから縦方向、横方向の印字可能領域をメモリ上
に用意されているテーブルから参照し、横方向のライト
マージン、行当たりの文字数、一券片当たりの行数など
を設定する。
On the other hand, the bill type code is detected (step S
11). The ticket type code is information indicating the type of medium sent together with the print data.The printer refers to the printable areas in the vertical and horizontal directions from the ticket type code from the table prepared in the memory. Then, set the horizontal write margin, the number of characters per line, the number of lines per ticket, and so on.

【0015】そして、媒体サイズ及び券種コードを比較
する(ステップS12)。媒体サイズと券種コードが異
なる時は、媒体の変更が必要であることを知らせるため
にオンラインからオフライン状態に切換えを行ない(ス
テップS13)、用紙アラームを通知する(ステップS
14)。例えば、用紙アラームランプの点灯や、上位装
置へのアラームIPTなどを立ち上げる。そして、媒体
の変換されるのを待ち(ステップS15)、交換完了と
なったら(ステップS16)、用紙アラームを解除する
(ステップS17)。次に、オペレータによりオフライ
ン状態からオンラインに切換えられるのを待ち(ステッ
プS18)、オンラインとなったら(ステップS1
9)、媒体有無を判断するステップS2へ戻る。こうし
て、媒体サイズと券種コードが一致するまで媒体判断処
理フローが繰り返され、一致したならば印字動作を行な
う(ステップS20)。
Then, the medium size and the bill type code are compared (step S12). When the medium size and the bill type code are different, the online mode is switched to the offline state to notify that the medium needs to be changed (step S13), and a paper alarm is notified (step S).
14). For example, the paper alarm lamp is turned on, and the alarm IPT to the host device is activated. Then, it waits until the medium is converted (step S15), and when the replacement is completed (step S16), the paper alarm is released (step S17). Next, it waits for the operator to switch from the offline state to the online state (step S18), and when it comes online (step S1).
9) Return to step S2 for determining the presence or absence of the medium. In this way, the medium determination processing flow is repeated until the medium size and the bill type code match, and if they match, the printing operation is performed (step S20).

【0016】[0016]

【発明の効果】以上説明したように、本発明の発券プリ
ンタの印字制御装置によれば、媒体サイズと印字データ
の照合をした後に印字動作を開始するようにしたので、
適切なサイズの媒体に確実に印字を行なうことができ、
誤印字、誤発券を防止することができる。この場合、媒
体が金券の場合は、誤印字等の後に印字をやり直すこと
ができないことがあるので、このような確実な印字の効
果が大きい。
As described above, according to the print control device of the ticket issuing printer of the present invention, the print operation is started after the medium size and the print data are collated.
It is possible to print reliably on a medium of an appropriate size,
It is possible to prevent erroneous printing and ticket issuance. In this case, when the medium is a cash voucher, it may not be possible to redo printing after erroneous printing, so such a reliable printing effect is great.

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

【図1】本発明の発券プリンタの印字制御装置の実施例
のブロック図である。
FIG. 1 is a block diagram of an embodiment of a print control device for a ticket issuing printer of the present invention.

【図2】従来の発券プリンタの印字制御手順の一例を説
明するフローチャートである。
FIG. 2 is a flowchart illustrating an example of a print control procedure of a conventional ticket issuing printer.

【図3】従来の印字制御による誤印字の一例の説明図で
ある。
FIG. 3 is an explanatory diagram of an example of erroneous printing by conventional print control.

【図4】縦方向検知センサの構成の詳細の説明図であ
る。
FIG. 4 is an explanatory diagram of details of a configuration of a vertical direction detection sensor.

【図5】連続用紙の構成の説明図である。FIG. 5 is an explanatory diagram of a configuration of continuous paper.

【図6】連続用紙の構成の詳細の説明図である。FIG. 6 is an explanatory diagram of details of a configuration of continuous paper.

【図7】横方向検知センサの構成の詳細の説明図であ
る。
FIG. 7 is an explanatory diagram of details of a configuration of a lateral direction detection sensor.

【図8】横方向検知に用いる参照テーブルの説明図であ
る。
FIG. 8 is an explanatory diagram of a reference table used for horizontal direction detection.

【図9】本発明における媒体判断の処理手順を説明する
フローチャートである。
FIG. 9 is a flowchart illustrating a medium determination processing procedure according to the present invention.

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

10 印字制御装置 11 券種コード検出手段 12 媒体サイズ検出手段 13 比較手段 14 警告手段 15 印字開始位置制御手段 16 印字制御手段 20 上位装置 21 縦方向検知センサ 22 横方向検知センサ 23 印字媒体 24 印字ヘッド 10 print control device 11 note type code detection means 12 medium size detection means 13 comparison means 14 warning means 15 print start position control means 16 print control means 20 host device 21 vertical direction detection sensor 22 horizontal direction detection sensor 23 print medium 24 print head

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 上位装置から発券を指示された券の券種
コードを検出する券種コード検出手段と、 当該発券プリンタにセットされた媒体のサイズを検出す
る媒体サイズ検出手段と、 前記券種コードに示された媒体サイズと、当該媒体サイ
ズ検出手段により検出された媒体サイズとを比較する比
較手段と、 当該比較手段による比較結果により印字媒体のサイズが
券種コードと一致しないとき、警告を発する警告手段と
を設けたことを特徴とする発券プリンタの印字制御装
置。
1. A ticket type code detecting means for detecting a ticket type code of a ticket instructed to be issued by a higher-level device, a medium size detecting means for detecting a size of a medium set in the ticket issuing printer, and the ticket type. A comparing means for comparing the medium size indicated by the code with the medium size detected by the medium size detecting means, and a warning when the size of the print medium does not match the bill type code according to the comparison result by the comparing means. A print control device for a ticket issuing printer, characterized in that a warning means for issuing is provided.
JP3138792A 1992-01-22 1992-01-22 Print controller for ticket printer Pending JPH05197854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3138792A JPH05197854A (en) 1992-01-22 1992-01-22 Print controller for ticket printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3138792A JPH05197854A (en) 1992-01-22 1992-01-22 Print controller for ticket printer

Publications (1)

Publication Number Publication Date
JPH05197854A true JPH05197854A (en) 1993-08-06

Family

ID=12329851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3138792A Pending JPH05197854A (en) 1992-01-22 1992-01-22 Print controller for ticket printer

Country Status (1)

Country Link
JP (1) JPH05197854A (en)

Similar Documents

Publication Publication Date Title
JP4799050B2 (en) Printing device
JPH09191731A (en) Printing system by automatic detection of paper length and its control
JPH05197854A (en) Print controller for ticket printer
JPH05201095A (en) Impact printer
JP2010188628A (en) Genuine label and label printer
JPH05116407A (en) Label printer
JPH07178985A (en) Printing processing apparatus
JPH04347670A (en) Label printer
JP2007090766A (en) Printer and printing control method
US20050243332A1 (en) Printing apparatus and control method
JPH10315589A (en) Method for controlling printer apparatus
WO2006109523A1 (en) Printer
JPH05116395A (en) Label printer
JP2997786B2 (en) Ticket issuing device
JPH05169708A (en) Broken character detecting system
JPH0129096Y2 (en)
JPH02150379A (en) Printer
JPH11208069A (en) Recorder and recording method
JP2922982B2 (en) Ticket issuing device
JP2001130071A (en) Residual quantity control method of continuous printing medium
JP2000280549A (en) Printer
JPH11314444A (en) Method and apparatus for controlling printer
JPS61249782A (en) System for detecting paper size of printer
JP2578920B2 (en) Printer print positioning mechanism
JPH10157232A (en) Printer