JPH0813561B2 - Ticket printer - Google Patents

Ticket printer

Info

Publication number
JPH0813561B2
JPH0813561B2 JP63106517A JP10651788A JPH0813561B2 JP H0813561 B2 JPH0813561 B2 JP H0813561B2 JP 63106517 A JP63106517 A JP 63106517A JP 10651788 A JP10651788 A JP 10651788A JP H0813561 B2 JPH0813561 B2 JP H0813561B2
Authority
JP
Japan
Prior art keywords
print
data
ticket
start position
item number
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.)
Expired - Fee Related
Application number
JP63106517A
Other languages
Japanese (ja)
Other versions
JPH01275153A (en
Inventor
洋 小田切
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 JP63106517A priority Critical patent/JPH0813561B2/en
Publication of JPH01275153A publication Critical patent/JPH01275153A/en
Publication of JPH0813561B2 publication Critical patent/JPH0813561B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、航空券等の券の所定領域に外部より入力さ
れた印字データに対応する文字を印字出力する券印字装
置に関する。
Description: TECHNICAL FIELD The present invention relates to a ticket printing apparatus that prints out a character corresponding to print data externally input to a predetermined area of a ticket such as an airline ticket.

[従来の技術] 例えば旅行代理店や空港で購入する航空券1は一般に
矩形形状を有しており、この航空券1の表面には第2A図
に示すように航空会社名,搭乗月日,搭乗区間,便番号
等の項目が表記されている。また、裏面には第2B図に示
すように磁気ストライプ部2が形成されており、前記各
項目がコード化されて磁気記録されている。
[Prior Art] For example, an airline ticket 1 purchased at a travel agency or an airport generally has a rectangular shape, and the surface of the airline ticket 1 has an airline name, a boarding date, and a boarding date as shown in FIG. 2A. Items such as boarding section and flight number are shown. Further, as shown in FIG. 2B, a magnetic stripe portion 2 is formed on the back surface, and each of the above items is coded and magnetically recorded.

このような航空券に各項目の印字を行なう券印字装置
はホストコンピュータにオンラインで接続されており、
ホストコンピュータから送信される各項目のデータを印
字ヘッド,磁気ヘッドを用いて矩形形状の用紙に記録
し、航空券1として発行するものとなっている。
A ticket printing device that prints each item on such an airline ticket is connected to the host computer online.
The data of each item transmitted from the host computer is recorded on rectangular paper using a print head and a magnetic head, and is issued as an airline ticket 1.

ところで、航空券1への印字項目は各航空会社でそれ
ほど違わないが、印字フォーマットは各会社毎にそれぞ
れ工夫を凝らしている。そこで、各航空会社がそれぞれ
券印字装置を所有して予め自社の印字フォーマットをセ
ットしておき、航空券を発行する場合には搭乗空間,便
番号,座席番号等の各項目のデータのみをホストコンピ
ュータから送信するようにすれば送信データ量が少なく
なり好ましい。ところが、各航空会社の券印字装置をそ
れぞれ各空港や旅行代理店で設置しようとした場合、大
きなスペースを必要とする上コスト的にも問題があり、
実際には1台の券印字装置を数社の航空会社が共用して
いた。このため、ホストコンピュータにおいては各項目
のデータが入力されると該当する印字フォーマットに組
込み、この印字フォーマットデータとともに各項目のデ
ータを券印字装置に送信し、券印字装置においては受信
データをドットイメージのビットデータに変換してプリ
ンタ部により所定の用紙に記録していた。
By the way, the print items on the airline ticket 1 are not so different among airlines, but the print format is devised for each company. Therefore, each airline has its own ticket printing device and sets its own printing format in advance, and when issuing an airline ticket, only the data of each item such as boarding space, flight number, seat number, etc. is hosted. Transmission from a computer is preferable because the amount of data to be transmitted is reduced. However, if you try to install ticket printing devices of each airline at each airport or travel agency, there is a problem in terms of cost because it requires a large space.
In fact, several airlines shared one ticket printer. Therefore, in the host computer, when the data of each item is input, it is incorporated into the corresponding print format, the data of each item is sent to the ticket printing device together with this print format data, and the received data is dot imaged in the ticket printing device. The data is converted into bit data of and is recorded on a predetermined paper by the printer unit.

[発明が解決しようとする課題] 上述したように、従来はホストコンピュータにて各項
目のデータを所定の印字フォーマットに組込んだ後に券
印字装置へ送信していたので送信データ量が多かった。
このため、券印字装置においては受信データの処理量が
膨大で負担となっていた上、印字完了までの処理速度が
遅かった。また、送信データ量が多いためにデータ通信
に対する信頼性も悪化するおそれがあった。
[Problems to be Solved by the Invention] As described above, conventionally, data of each item was incorporated into a predetermined print format by a host computer and then transmitted to a ticket printing apparatus, so that the amount of transmitted data was large.
Therefore, in the ticket printing apparatus, the processing amount of received data is enormous and burdened, and the processing speed until completion of printing is slow. Moreover, since the amount of transmitted data is large, the reliability of data communication may be deteriorated.

そこで本発明は、印字フォーマットデータの送信を不
要にするとともに、重複する印字データの送信も極力少
なくして、受信データ量の削減を図った券印字装置を提
供しようとするものである。
Therefore, the present invention is intended to provide a ticket printing apparatus which does not require transmission of print format data and minimizes transmission of duplicate print data to reduce the amount of received data.

[課題を解決するための手段] 本発明の券印字装置は、各印字データの項目を示す各
項目番号に対応して少なくとも印字データの印字開始位
置情報を記憶するフォーマットテーブルと、券1枚分の
印字データをその印字フォーマットにしたがって記憶す
るテキストバッファと、このテキストバッファ内の印字
データをビットデータに変換して記憶するイメージバッ
ファと、このイメージバッファ内のビットデータにより
券の所定領域に印字を行なうプリンタ部と、外部より券
への印字データとその項目を指定する項目番号とからな
るデータを入力するデータ入力手段と、この手段により
入力されたデータでフォーマットテーブルの検索を行な
い、該当項目番号に対応する印字開始位置情報に基いて
入力印字データをテキストバッファに格納処理する印字
データ処理手段と、このテキストバッファに券1枚分の
データが格納されたことを検知してそのデータに対応す
るビットデータをイメージバッファに展開し、プリンタ
部を駆動制御して券への印字を行なわせる印字制御手段
とを備え、印字データ処理手段は、該当項目番号に対応
する印字開始位置情報が1つのときには入力印字データ
をテキストバッファのこの印字開始位置情報に対応する
領域より格納処理し、該当項目番号に対応する印字開始
位置情報が複数のときには入力印字データをテキストバ
ッファのこれら印字開始位置情報にそれぞれ対応する各
領域より格納処理するようにしたものである。
[Means for Solving the Problems] A ticket printing device according to the present invention includes a format table for storing at least print start position information of print data corresponding to each item number indicating an item of each print data, and one ticket. A text buffer that stores the print data in accordance with the print format, an image buffer that converts the print data in this text buffer into bit data and stores the data, and the bit data in this image buffer prints a specified area of the ticket. The printer section to perform, the data input means for inputting data consisting of the print data on the ticket and the item number designating the item from the outside, and the format table is searched by the data input by this means, and the corresponding item number The input print data is stored in the text buffer based on the print start position information corresponding to The print data processing means for processing and the fact that the data for one ticket is stored in this text buffer is developed, bit data corresponding to the data is developed in the image buffer, and the printer unit is drive-controlled to the ticket. The print data processing means stores the input print data from the area corresponding to the print start position information of the text buffer when the print start position information corresponding to the corresponding item number is one. When the print start position information corresponding to the corresponding item number is plural, the input print data is stored in the areas corresponding to the print start position information of the text buffer.

また、テキストバッファとイメージバッファとを複数
個とし、各項目番号に対応して少なくとも1つの印字フ
ォーマットを指定する属性コードを記憶する属性コード
テーブルを設け、データ入力手段により入力されたデー
タでフォーマットテーブルと属性コードテーブルとの検
索を行ない、該当項目番号に対応する印字開始位置情報
が1つで該当項目番号に対応する属性コードが指定する
印字フォーマットが1つのときには入力印字データをこ
の印字フォーマットのテキストバッファのこの印字開始
位置情報に対応する領域より格納処理し、該当項目番号
に対応する印字開始位置情報が1つで該当項目番号に対
応する属性コードが指定する印字フォーマットが複数の
ときには入力印字データをこれら印字フォーマットの各
テキストバッファのこの印字開始位置情報に対応する各
領域よりそれぞれ格納処理し、該当項目番号に対応する
印字開始位置情報が複数で該当項目番号に対応する属性
コードが指定する印字フォーマットが1つのときには入
力印字データをこの印字フォーマットのテキストバッフ
ァのこれら印字開始位置情報にそれぞれ対応する各領域
より格納処理し、該当項目番号に対応する印字開始位置
情報が複数で該当項目番号に対応する属性コードが指定
する印字フォーマットが複数のときには入力印字データ
をこれら印字フォーマットの各テキストバッファのこれ
ら印字開始位置情報にそれぞれ対応する各領域より格納
処理するようにしたものである。
Further, a plurality of text buffers and image buffers are provided, and an attribute code table for storing at least one attribute code for designating at least one print format corresponding to each item number is provided, and the format table is formed by the data input by the data input means. And the attribute code table are searched, and when the print start position information corresponding to the applicable item number is 1 and the print format specified by the attribute code corresponding to the applicable item number is 1, the input print data is the text of this print format. Stored from the area corresponding to this print start position information in the buffer, and when there is one print start position information corresponding to the corresponding item number and there are multiple print formats specified by the attribute code corresponding to the corresponding item number, the input print data For each text buffer in these print formats The storage processing is performed from each area corresponding to the print start position information of, and when the print start position information corresponding to the corresponding item number is plural and the print format specified by the attribute code corresponding to the corresponding item number is 1, the input print data is Storing processing is performed from each area corresponding to these print start position information of the text buffer of this print format, and the print format specified by the attribute code corresponding to the corresponding item number when there are multiple print start position information corresponding to the corresponding item number When there are a plurality of input print data, the input print data is stored in each area corresponding to the print start position information of each text buffer of these print formats.

[作用] 前者の手段を講じた券印字装置であれば、外部より券
への印字データとその項目を指定する項目番号とからな
るデータが入力されると、この入力データでフォーマッ
トテーブルで検索され、該当項目番号に対応する印字開
始位置情報に基いて入力印字データがテキストバッファ
に格納処理される。この場合において、該当項目番号に
対応する印字開始位置情報が複数のときには入力印字デ
ータはテキストバッファのこれら印字開始位置情報にそ
れぞれ対応する各領域より格納処理される。そして、こ
のテキストバッファに券1枚分のデータが格納される
と、そのデータに対応するビットデータがイメージバッ
ファに展開され、プリンタ部により券への印字が行なわ
れる。したがって、外部より送信されるデータは各項目
の印字データとその項目を示す項目番号とからなるデー
タであり、印字フォーマットデータを送信する必要がな
くなる上、重複する印字データは該当項目番号に対応す
る印字開始位置情報を複数設定することにより1回の送
信でよいので、送信データ量を削減できる。
[Operation] In the case of the ticket printer adopting the former method, when data consisting of the print data on the ticket and the item number designating the item is inputted from the outside, the format table is searched with this input data. The input print data is stored in the text buffer based on the print start position information corresponding to the corresponding item number. In this case, when the print start position information corresponding to the corresponding item number is plural, the input print data is stored in the areas of the text buffer respectively corresponding to the print start position information. Then, when data for one ticket is stored in this text buffer, bit data corresponding to the data is expanded in the image buffer, and the printer unit prints on the ticket. Therefore, the data transmitted from the outside is the data consisting of the print data of each item and the item number indicating the item, and it becomes unnecessary to transmit the print format data, and the duplicate print data corresponds to the corresponding item number. Since a single transmission is required by setting a plurality of pieces of print start position information, the amount of transmission data can be reduced.

そして、後者の手段を講じることにより、入力印字デ
ータは該当項目番号に対応する属性コードにより指定さ
れた少なくとも1つの印字フォーマットのテキストバッ
ファに該当項目番号に対応する印字開始位置情報に基い
て格納処理される。したがって、送信データ数が削減さ
れるのは勿論のこと、印字フォーマットの異なる複数枚
の券を並行して印字処理できる。
Then, by taking the latter means, the input print data is stored in the text buffer of at least one print format designated by the attribute code corresponding to the corresponding item number based on the print start position information corresponding to the corresponding item number. To be done. Therefore, the number of transmitted data can be reduced, and a plurality of tickets having different print formats can be printed in parallel.

[実施例] 以下、本発明の券印字装置を航空券発行装置に適用し
た一実施例について説明する。
[Embodiment] An embodiment in which the ticket printing device of the present invention is applied to an airline ticket issuing device will be described below.

第1図は航空券発行装置のブロック構成図であって、
この装置は、制御部本体としてのCPU11、プログラムデ
ータやCG(キャラクタジェネレータ)データなどを記憶
するROM12、受信バッファ,イメージバッファなどのメ
モリを有するRAM13、矩形形状の券1の印字領域に印字
を行なうプリンタ部14、上記券1の磁気ストライプ部2
に磁気記録を行なうエンコード部15、上位のホストコン
ピュータ16との間でオンラインで行なわれるデータ通信
を制御する通信コントローラ17、カードリーダ,FFD(フ
ロッピーディスクドライブ装置)などの入出力装置18な
どから構成されている。
FIG. 1 is a block diagram of an air ticket issuing device,
This apparatus prints on a CPU 11 as a control unit main body, a ROM 12 for storing program data and CG (character generator) data, a RAM 13 having a memory such as a receiving buffer and an image buffer, and a printing area of a rectangular ticket 1. Printer section 14, magnetic stripe section 2 of ticket 1
An encoder 15 for magnetic recording, a communication controller 17 for controlling online data communication with a host computer 16, a card reader, an input / output device 18 such as an FFD (floppy disk drive) Has been done.

上記券1は、その表面に第2A図に示す如く航空会社
名,搭乗月日,搭乗区間,便番号,座席番号等の各必要
項目が印字される印字領域を形成しており、その裏面に
第2B図に示す如く各必要項目が磁気記録される磁気スト
ライプ部2を形成している。
As shown in FIG. 2A, the ticket 1 has a printing area on which the necessary information such as airline name, boarding date, boarding section, flight number, seat number, etc. is printed, and on the back surface thereof. As shown in FIG. 2B, a magnetic stripe portion 2 in which each necessary item is magnetically recorded is formed.

前記RAM13には、第3図に示す如く、ホストコンピュ
ータ16からの受信データを取込む受信バッファ31のほか
に、フォーマットテーブル32、第1,第2のテキストバッ
ファ331,332、第1,第2のエンコードバッファ341,342
第1,第2のイメージバッファ351,352などが形成されて
いる。
As shown in FIG. 3, in the RAM 13, in addition to the reception buffer 31 for receiving the reception data from the host computer 16, the format table 32, the first and second text buffers 33 1 , 33 2 , 1, 2 , The second encode buffers 34 1 , 34 2 ,
First and second image buffers 35 1 and 35 2 are formed.

上記第1,第2のテキストバッファ331,332は、1枚の
券1の印字領域への印字データを任意の印字フォーマッ
トにより定められた配列にしたがって記憶するためのメ
モリエリアであり、第4図に示すように行方向A〜G,列
方向01〜40のマトリクスを構成している。なお、印字デ
ータはアスキーコードあるいは内部コードなどの文字コ
ードで記憶される。
The first and second text buffers 33 1 and 33 2 are memory areas for storing print data to the print area of one ticket 1 according to an array determined by an arbitrary print format. As shown in FIG. 4, a matrix of row directions A to G and column directions 01 to 40 is formed. The print data is stored as a character code such as an ASCII code or an internal code.

上記第1,第2のエンコードバッファ341,342は、1枚
の券1の磁気ストライプ部2への磁気記録データを任意
の磁気記録フォーマットにより定められた配列にしたが
って記憶するためのメモリエリアであり、第5図に示す
ように行方向1〜3,列方向01〜25のマトリクスを構成し
ている。そして、このエンコードバッファ341,342内の
データにしたがってエンコード部14により磁気ストライ
プ部2への磁気記録が行なわれる。
The first and second encode buffers 34 1 and 34 2 are memory areas for storing magnetic recording data on the magnetic stripe portion 2 of one ticket 1 according to an array determined by an arbitrary magnetic recording format. Thus, as shown in FIG. 5, a matrix of row directions 1 to 3 and column directions 01 to 25 is formed. Then, according to the data in the encode buffers 34 1 and 34 2 , the encode unit 14 magnetically records the magnetic stripe unit 2.

上記第1,第2のイメージバッファ351,352は、対応す
るテキストバッファ331,332に記憶された文字コードを
ドットイメージのビットデータに変換して記憶するため
のメモリエリアであり、このイメージバッファ351,352
内のビットデータにしたがってプリンタ部14により券1
への印字出力が行なわれる。
The first and second image buffers 35 1 and 35 2 are memory areas for converting the character codes stored in the corresponding text buffers 33 1 and 33 2 into bit data of dot images and storing the bit data. This image buffer 35 1 , 35 2
Ticket 1 by printer unit 14 according to the bit data in
Is printed out.

上記フォーマットテーブル32には、第6図に示すよう
に、航空券に印字される航空会社名,搭乗区間,便番
号,座席番号等の各項目を示す各項目番号に対応して、
その項目の文字の大きさ,印字領域に対する印字開始位
置,磁気ストライプ部2に対する磁気記録開始位置およ
び少なくとも1つの印字フォーマットを指定する属性コ
ード(A,B,C,…)がそれぞれ設定される。
In the format table 32, as shown in FIG. 6, in correspondence with each item number indicating each item such as the airline name, boarding section, flight number, seat number, etc. printed on the airline ticket,
The character size of the item, the print start position for the print area, the magnetic recording start position for the magnetic stripe portion 2, and at least one attribute code (A, B, C, ...) Designating the print format are set.

なお、印字開始位置及び磁気記録開始位置の各データ
はそれぞれテキストバッファ33及びエンコードバッファ
34上の1マスを指定するデータであり、複数個設定でき
る。
The data at the print start position and the magnetic recording start position are stored in the text buffer 33 and the encode buffer, respectively.
It is the data that designates one cell on 34, and you can set more than one.

しかして、前記CPU11は電源が投入されて所定の初期
処理を終了した後、第7図に示すプログラム処理を実行
するように構成されている。すなわち、P1としてホスト
コンピュータ16からのデータを受信すると一旦受信バッ
ファ31に格納し、必要に応じて受信バッファ31から取出
してそのデータの種類を調べる。そして、P2として受信
データがフォーマットテーブル32に関するデータであれ
ば、この受信データに基いてフォーマットテーブル32の
変更あるいは作成処理を実行する。
Then, the CPU 11 is configured to execute the program processing shown in FIG. 7 after the power is turned on and the predetermined initial processing is completed. That is, when the data from the host computer 16 is received as P1, it is once stored in the reception buffer 31, and if necessary, taken out from the reception buffer 31 and the type of the data is checked. Then, if the received data as P2 is the data related to the format table 32, the process of changing or creating the format table 32 is executed based on this received data.

一方、P3として受信データが券1への印字データとそ
のデータの項目を示す項目番号とからなるデータ(以下
チケットデータと称する)であれば、フォーマットテー
ブル32の検索を行ない、該当項目番号に対応する大き
さ,印字開始位置,磁気記録開始位置の各データ及び属
性コードを読出す。そして、属性コードにより指定され
たフォーマットに対応するテキストバッファ33に対し、
受信印字データを印字開始位置から順に指定された大き
さで格納処理する。同様に、属性コードにより指定され
たフォーマットに対応するエンコードバッファ34に対
し、受信印字データを磁気記録開始位置から順に格納処
理する。こうして、当該テキストバッファ33及びエンコ
ードバッファ34にそれぞれ航空券1枚分の全印字データ
が格納されたならば、テキストバッファ33内の文字コー
ドをROM12内のCGデータを参照してドットイメージのビ
ットデータに変換し、このビットデータを対応するイメ
ージバッファ35に展開する。そして、プリンタ部14を駆
動制御して当該イメージバッファ35内のビットデータに
より券1の印字領域に印字を行なわせる。また、エンコ
ード部15を駆動制御して当該エンコードバッファ34内の
エンコードデータにより券1の磁気ストライプ部2に磁
気記録を行なわせる。かくして、航空券1の発券業務が
終了する。
On the other hand, if the received data as P3 is the data consisting of the print data on the ticket 1 and the item number indicating the item of the data (hereinafter referred to as ticket data), the format table 32 is searched to find the corresponding item number. Size, print start position, magnetic recording start position data, and attribute code. Then, for the text buffer 33 corresponding to the format specified by the attribute code,
The received print data is stored in the designated size in order from the print start position. Similarly, the received print data is sequentially stored in the encode buffer 34 corresponding to the format designated by the attribute code from the magnetic recording start position. In this way, if all the print data for one airline ticket is stored in the text buffer 33 and the encode buffer 34, the character code in the text buffer 33 is referred to the CG data in the ROM 12, and the dot data of the dot image is referred to. And converts this bit data into the corresponding image buffer 35. Then, the printer unit 14 is drive-controlled to print on the printing area of the ticket 1 by the bit data in the image buffer 35. Further, the encoder section 15 is drive-controlled to cause the magnetic stripe section 2 of the ticket 1 to perform magnetic recording by the encoded data in the encode buffer 34. In this way, the ticketing operation of the airline ticket 1 is completed.

なお、受信データに基くその他の処理としては、エン
コード部18を駆動制御して磁気ストライプ部2の記録内
容を読出し、正確に磁気記録が行なわれたことを確認す
る処理等がある。
Other processes based on the received data include a process of driving the encoder 18 to read the recorded contents of the magnetic stripe unit 2 and confirming that the magnetic recording was performed correctly.

このような構成の本実施例においては、予めRAM13内
をフォーマットテーブル32を作成しておく。そして、発
券業務を行なう場合には、ホストコンピュータ16を操作
して搭乗区間,便番号等の必要項目を入力する。そうす
ると、ホストコンピュータ16から各項目の印字データ
(文字コード)にその項目番号を付加したチケットデー
タが順次オンラインで航空券発行装置へ送信される。
In the present embodiment having such a configuration, the format table 32 is created in the RAM 13 in advance. Then, when performing a ticket issuing business, the host computer 16 is operated to input necessary items such as a boarding section and a flight number. Then, the ticket data in which the item number is added to the print data (character code) of each item is sequentially transmitted from the host computer 16 to the airline ticket issuing device online.

今、第6図に示すフォーマットテーブルが作成されて
いるものとする。この状態で、例えば第8A図に示すデー
タテーブル上のチケットデータがホストコンピュータ16
より入力されると、先ず項目番号「001」にしたがって
フォーマットテーブル32が検索され、例えば第1テキス
トバッファ331の印字開始位置「B02」に対応する位置か
ら大きさ「12」の印字データ「××航空」が格納される
とともに、例えば第1エンコードバッファ341の磁気記
録開始位置「101」に対応する位置から磁気記録データ
「××航空」が格納される。次いで、項目番号「002」
により第1テキストバッファ331の印字開始位置「C03」
と「C25」とに対応する位置からそれぞれ大きさ「13」
の印字データ「東京→大阪」が格納されるとともに、第
1エンコードバッファ341の磁気記録開始位置「303」に
対応する位置から磁気記録データ「東京→大阪」が格納
される。次に、項目番号「004」により第1テキストバ
ッファ331の印字開始位置「E20」と「E25」とに対応す
る位置からそれぞれ大きさ「3」の印字データ「0001
便」が格納されるとともに、第1エンコードバッファ34
1の磁気記録開始位置「205」に対応する位置から磁気記
録データ「0001便」が格納される。最後に、項目番号
「005」により第1テキストバッファ331の印字開始位置
「F20」と「F25」とに対応する位置からそれぞれ大きさ
「3」の印字データ「1A席」が格納されるとともに、第
1エンコードバッファ341の磁気記録開始位置「209」に
対応する位置から磁気記録データ「1A席」が格納され
る。
Now, it is assumed that the format table shown in FIG. 6 has been created. In this state, for example, the ticket data on the data table shown in FIG.
More inputted, firstly retrieved format table 32 in accordance with item number "001", for example, the print data "× size" 12 "from a position corresponding to the first print start position of the text buffer 33 1" B02 " In addition to storing “X aviation”, magnetic recording data “XX aviation” is stored from the position corresponding to the magnetic recording start position “101” of the first encode buffer 34 1 , for example. Then, item number "002"
Print start position "C03" of the first text buffer 33 1.
From the position corresponding to "C25" and "C25", size "13" respectively
The print data “Tokyo → Osaka” is stored, and the magnetic recording data “Tokyo → Osaka” is stored from the position corresponding to the magnetic recording start position “303” of the first encode buffer 34 1 . Then, the print data for each size from a position corresponding to the print start position of 1 first text buffer 33 by item number "004" and "E20" and "E25", "3", "0001
"Stool" is stored and the first encoding buffer 34
The magnetic recording data “0001 flight” is stored from the position corresponding to the magnetic recording start position “205” of 1 . Finally, with each size from a position corresponding to the print start position of 1 first text buffer 33 by item number "005" and "F20" and "F25", "3", the print data "1A seat" of it is stored The magnetic recording data "1A seat" is stored from the position corresponding to the magnetic recording start position "209" of the first encode buffer 34 1 .

こうして、券1枚分のデータが第1テキストバッファ
331及び第1エンコードバッファ341に格納されると、テ
キストバッファ331内のデータがビットデータとして該
当する第1イメージバッファ351に展開され、プリンタ
部14及びエンコード部15が駆動制御されてイメージバッ
ファ351内のデータにより券1の印字領域に印字が行な
われるとともにエンコードバッファ341内のデータによ
り磁気ストライプ部2に磁気記録が行なわれ、航空券と
して発行される。このとき発行される航空券のフォーマ
ット(I)を第9A図に示す。
In this way, the data for one ticket is stored in the first text buffer.
33 1 and when it is stored in the first encoding buffer 34 1, is expanded in the first image buffer 35 1 data in the text buffer 33 1 corresponds as bit data, the printer unit 14 and the encoding unit 15 is controlled drive Data is printed in the print area of the ticket 1 by the data in the image buffer 35 1 , and magnetic recording is performed in the magnetic stripe portion 2 by the data in the encode buffer 34 1 , and the ticket is issued as an airline ticket. The format (I) of the air ticket issued at this time is shown in FIG. 9A.

また、第8B図に示すデータテーブル上のチケットデー
タがホストコンピュータ16から送信されてきた場合も同
様に処理されて、第9B図に示すフォーマット(II)で印
字が行なわれた航空券が発行される。
Also, when the ticket data on the data table shown in FIG. 8B is transmitted from the host computer 16, the same processing is performed, and the air ticket printed in the format (II) shown in FIG. 9B is issued. It

一方、第8C図に示すデータテーブル上のチケットデー
タがホストコンピュータ16より送信された場合も同様に
処理される。ただしこの場合、属性コードAがフォーマ
ット(I)に対応し、属性コードBがフォーマット(I
I)に対応し、属性コードCが両方のフォーマット
(I),(II)に対応すると定義されているものとする
と、項目番号「006」の属性コードはAであり、この項
目番号の印字データを例えば第1テキストバッファ331
にセットしたとすると、次の項目番号「007」の属性コ
ードはBなので、この項目の印字データは他方のテキス
トバッファ332にセットする。また、項目番号「008」の
属性コードはAとBとCなので、先ず属性コードAに対
応する印字開始位置データ「C03」により第1のテキス
トバッファ331に印字データ「東京→大阪」をセット
し、次に属性コードBに対応する印字開始位置データ
「E02」により第2のテキストバッファ332に印字データ
「東京→大阪」をセットし、最後に属性コードCに対応
する印字開始位置データ「C25」により第1および第2
のテキストバッファ331,332に印字データ「東京→大
阪」をそれぞれセットする。その結果、第1のテキスト
バッファ331内のデータにより第9A図に示すフォーマッ
ト(I)の航空券が発券されると同時に、第2のテキス
トバッファ332内のデータにより第9B図に示すフォーマ
ット(II)の航空券が発券される。
On the other hand, when ticket data on the data table shown in FIG. 8C is transmitted from the host computer 16, the same processing is performed. However, in this case, the attribute code A corresponds to the format (I), and the attribute code B corresponds to the format (I).
Assuming that the attribute code C corresponds to I) and the format is defined to correspond to both formats (I) and (II), the attribute code of the item number "006" is A, and the print data of this item number is For example, the first text buffer 33 1
If you were to set in, the attribute code of the next item number "007", so B, print data of this item is set to 2 other text buffer 33. Further, since the attribute codes of the item number “008” are A, B and C, first the print data “Tokyo → Osaka” is set in the first text buffer 33 1 by the print start position data “C03” corresponding to the attribute code A. and, and then set the print data "Tokyo → Osaka" in Paragraph 2 of the text buffer 33 by the print start position data "E02" corresponding to the attribute code B, the print start position data corresponding to the last to attribute code C " 1st and 2nd by C25 "
To set the text buffer 33 1, 33 2 to the print data "Tokyo → Osaka", respectively. As a result, the data in the first text buffer 33 1 issues an airline ticket in the format (I) shown in FIG. 9A, and at the same time, the data in the second text buffer 33 2 causes the format shown in FIG. 9B. The ticket of (II) is issued.

このように、本実施例の航空券発行装置であれば、予
めRAM内にフォーマットテーブル32を作成しておくこと
により、航空券の発券時にはホストコンピュータ16から
必要項目のデータとその項目を示す項目番号とからなる
チケットデータのみを送信するだけでよく、フォーマッ
トデータをも送信しなければならなかった従来に比べて
送信データ量を削減できる。また、1枚の航空券の複数
箇所に同一の印字データを印字する場合には、フォーマ
ットデータ32に該当印字データの項目番号に対応して複
数の印字開始位置情報を予め設定することにより、当該
印字データは1回だけ送信すればよく、この点からも送
信データ量の削減を図ることができる。この結果、航空
発行装置においては印字データのみを処理すればよく、
フォーマットデータの処理が不要となるので、データ処
理に対する負担を大幅に軽減できる。また、送信データ
量が削減されるので、データ送信に要する時間が短縮さ
れる上、データ処理速度も短縮される。よって、短時間
で発券業務を行なうことができ、客へのサービス性も良
くなる。さらに、送信データ量が削減されるので、デー
タ通信に対する信頼性も向上しうる。
As described above, in the case of the air ticket issuing device of the present embodiment, by creating the format table 32 in the RAM in advance, the data of the necessary items from the host computer 16 at the time of issuing the air ticket and the items indicating the items. Only the ticket data including the number and the format data need be transmitted, and the amount of transmission data can be reduced as compared with the conventional case in which the format data must also be transmitted. Further, when printing the same print data at a plurality of locations on one airline ticket, by setting a plurality of print start position information in advance in the format data 32 corresponding to the item number of the corresponding print data, The print data need only be transmitted once, and from this point as well, the amount of transmission data can be reduced. As a result, the aviation issuing device only needs to process print data,
Since the processing of format data is unnecessary, the burden on data processing can be greatly reduced. Further, since the amount of transmission data is reduced, the time required for data transmission is shortened and the data processing speed is also shortened. Therefore, the ticketing business can be performed in a short time, and the serviceability to the customer is improved. Furthermore, since the amount of transmitted data is reduced, the reliability of data communication can be improved.

また、フォーマットテーブル32の作成時に各項目毎に
印字フォーマットを指定する属性コードを設定すること
により、印字フォーマットの異なる複数種の航空券を同
時に発券できる。しかも、この場合、属性コードが複数
の印字フォーマットを指定するように定義することによ
り、各航空券に重複する印字データは1回だけ送信する
だけでよくなる。この結果、送信データ量をさらに削減
でき、処理の高速化,データ通信の信頼性をより向上で
きる。
Further, by setting the attribute code designating the print format for each item when the format table 32 is created, a plurality of types of airline tickets having different print formats can be issued at the same time. Moreover, in this case, by defining the attribute code so as to specify a plurality of print formats, the print data duplicated in each airline ticket need only be transmitted once. As a result, the amount of transmission data can be further reduced, the processing speed can be increased, and the reliability of data communication can be further improved.

なお、前記実施例ではテキストバッファ,エンコード
バッファおよびイメージバッファを2個ずつ設けた場合
を例示したが、RAM13の記憶内容内で各バッファを複数
個ずつ設けてもよい。この場合、属性コードを適宜設定
することによりバッファ数に対応するフォーマットの航
空券を同時に発券することが可能となる。また、逆に航
空券のフォーマットが1種で賄える場合には各バッファ
は1個のみでよく、この場合は属性コードが不要とな
る。
In the above embodiment, the case where two text buffers, two encode buffers and two image buffers are provided has been described, but a plurality of each buffer may be provided within the storage contents of the RAM 13. In this case, by properly setting the attribute code, it becomes possible to issue airline tickets in a format corresponding to the number of buffers at the same time. On the contrary, if only one type of air ticket format can be used, only one buffer is required, and in this case, the attribute code is unnecessary.

また、前記実施例ではフォーマットテーブル32をホス
トコンピュータ16からのデータ送信により作成する場合
を示したが、メモリカードやフロッピーディスクに組込
み、入出力装置18を介して供給するようにしてもよい。
こうすることにより、フォーマットテーブル32内のデー
タを容易に変更できる。
Further, in the above-described embodiment, the case where the format table 32 is created by data transmission from the host computer 16 has been shown, but it may be built in a memory card or a floppy disk and supplied via the input / output device 18.
By doing so, the data in the format table 32 can be easily changed.

このほか、本発明の要旨を逸脱しない範囲で種々変形
実施可能であるのは勿論である。
In addition, it goes without saying that various modifications can be made without departing from the scope of the present invention.

[発明の効果] 以上詳述したように、本発明によれば、次のような効
果を奏する。
[Effects of the Invention] As described in detail above, the present invention has the following effects.

すなわち、請求項1によれば、印字フォーマットデー
タの送信が不要になるとともに、1枚の券で重複する印
字データは外部より1回だけ送信すればよく、外部から
の送信データ量を削減して負担軽減をはかるとともに、
処理速度の高速化をはかり得、かつデータ通信に対する
信頼性を高め得る券印字装置を提供できる。
That is, according to claim 1, the transmission of the print format data is not necessary, and the print data duplicated in one ticket needs to be transmitted only once from the outside, thereby reducing the amount of transmission data from the outside. While reducing the burden,
It is possible to provide a ticket printing device capable of increasing the processing speed and improving the reliability of data communication.

また、請求項2によれば、フォーマットの異なる複数
枚の券を同時に印字出力できるとともに、複数枚の券で
重複する印字データも外部より1回だけ送信すればよ
く、送信データ量をより削減できる券印字装置を提供で
きる。
Further, according to claim 2, a plurality of tickets having different formats can be printed out at the same time, and the print data duplicated in the plurality of tickets need only be transmitted from the outside only once, so that the transmission data amount can be further reduced. A ticket printing device can be provided.

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

図は本発明を航空券発行装置に適用した一実施例を示す
図であって、第1図は航空券発行装置のブロック図、第
2A図及び第2B図は航空券の表面及び裏面を示す図、第3
図はRAMの主要なメモリ構成を示す図、第4図はテキス
トバッファを示す図、第5図はエンコードバッファを示
す図、第6図はフォーマットテーブルを示す図、第7図
はCPUの発券業務に対するプログラム処理を示す流れ
図、第8A図,第8B図及び第8C図はそれぞれホストコンピ
ュータより送信されたチケットデータの例を示す図、第
9A図及び第9B図はそれぞれ航空券の発行例を示す図であ
る。 11……CPU、12……ROM、13……RAM、14……プリンタ
部、15……エンコード部、16……ホストコンピュータ、
17……通信コントローラ、31……受信バッファ、32……
フォーマットテーブル、331,332……第1,第2のテキス
トバッファ、341,342……第1,第2のエンコードバッフ
ァ、351,352……第1,第2のイメージバッファ。
FIG. 1 is a diagram showing an embodiment in which the present invention is applied to an airline ticket issuing device, and FIG. 1 is a block diagram of the airline ticket issuing device.
2A and 2B are views showing the front and back sides of an airline ticket, the third
Figure shows the main memory structure of RAM, Figure 4 shows the text buffer, Figure 5 shows the encode buffer, Figure 6 shows the format table, and Figure 7 shows the CPU ticketing business. FIG. 8A, FIG. 8B, and FIG. 8C are flow charts showing the program processing for, respectively, showing an example of ticket data transmitted from the host computer.
FIG. 9A and FIG. 9B are diagrams each showing an example of issuing an airline ticket. 11 …… CPU, 12 …… ROM, 13 …… RAM, 14 …… Printer section, 15 …… Encoding section, 16 …… Host computer,
17 …… Communication controller, 31 …… Reception buffer, 32 ……
Format table, 33 1 , 33 2 ...... First and second text buffers, 34 1 , 34 2 ...... First and second encode buffers, 35 1 , 35 2 ...... First and second image buffers .

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】各印字データの項目を示す各項目番号に対
応して少なくとも印字データの1乃至複数の印字開始位
置情報を記憶するフォーマットテーブルと、券1枚分の
印字データを所定の印字フォーマットで記憶するテキス
トバッファと、このテキストバッファ内の印字データを
ビットデータに変換して記憶するイメージバッファと、
このイメージバッファ内のビットデータにより券の所定
領域に印字を行なうプリンタ部と、外部より券への印字
データとその項目を指定する項目番号とからなるデータ
を入力するデータ入力手段と、この手段により入力され
たデータで前記フォーマットテーブルの検索を行ない、
該当項目番号に対応する印字開始位置情報に基いて入力
印字データを前記テキストバッファに格納処理する印字
データ処理手段と、このテキストバッファに券1枚分の
データが格納されたことを検知してそのデータに対応す
るビットデータをイメージバッファに展開し、前記プリ
ンタ部を駆動制御して券への印字を行なわせる印字制御
手段とを具備し、前記印字データ処理手段は、該当項目
番号に対応する印字開始位置情報が1つのときには入力
印字データを前記テキストバッファのこの印字開始位置
情報に対応する領域より格納処理し、該当項目番号に対
応する印字開始位置情報が複数のときには入力印字デー
タを前記テキストバッファのこれら印字開始位置情報に
それぞれ対応する各領域より格納処理することを特徴と
する券印字装置。
1. A format table storing at least one or more print start position information of print data corresponding to each item number indicating each print data item, and print data for one ticket in a predetermined print format. A text buffer to store in, and an image buffer to convert the print data in this text buffer into bit data and store it.
A printer section for printing on a predetermined area of a ticket by bit data in the image buffer, a data input means for inputting data consisting of print data on the ticket and an item number designating the item from outside, and by this means Search the above format table with the entered data,
Print data processing means for storing the input print data in the text buffer based on the print start position information corresponding to the corresponding item number, and detecting that the data for one ticket is stored in this text buffer, Print control means for developing bit data corresponding to the data in an image buffer and drivingly controlling the printer section to print on a ticket, wherein the print data processing means prints the print data corresponding to the corresponding item number. When the start position information is one, the input print data is stored from the area corresponding to the print start position information of the text buffer, and when the print start position information corresponding to the corresponding item number is plural, the input print data is stored in the text buffer. 2. A ticket printing apparatus, wherein storage processing is performed from each area corresponding to each of these print start position information.
【請求項2】各印字データの項目を示す各項目番号に対
応して少なくとも印字データの1乃至複数の印字開始位
置情報を記憶するフォーマットテーブルと、券1枚分の
印字データをそれぞれ異なる印字フォーマットで記憶す
るべく印字フォーマット別に設けられた複数のテキスト
バッファと、対応するテキストバッファ内の印字データ
をビットデータに変換して記憶する複数のイメージバッ
ファと、このイメージバッファ内のビットデータにより
券の所定領域に印字を行なうプリンタ部と、前記各項目
番号に対応して少なくとも1つの印字フォーマットを指
定する属性コードを記憶する属性コードテーブルと、外
部より券への印字データとその項目を指定する項目番号
とからなるデータを入力するデータ入力手段と、この手
段により入力されたデータで前記フォーマットテーブル
と前記属性コードテーブルとの検索を行ない、該当項目
番号に対応する印字開始位置情報に基いて入力印字デー
タを該当項目番号に対応する属性コードにより指定され
た印字フォーマットのテキストバッファに格納処理する
印字データ処理手段と、このテキストバッファに券1枚
分のデータが格納されたことを検知してそのデータに対
応するビットデータをイメージバッファに展開し、前記
プリンタ部を駆動制御して券への印字を行なわせる印字
制御手段とを具備し、前記印字データ処理手段は、該当
項目番号に対応する印字開始位置情報が1つで該当項目
番号に対応する属性コードが指定する印字フォーマット
が1つのときには入力印字データをこの印字フォーマッ
トのテキストバッファのこの印字開始位置情報に対応す
る領域より格納処理し、該当項目番号に対応する印字開
始位置情報が1つで該当項目番号に対応する属性コード
が指定する印字フォーマットが複数のときには入力印字
データをこれら印字フォーマットの各テキストバッファ
のこの印字開始位置情報に対応する各領域よりそれぞれ
格納処理し、該当項目番号に対応する印字開始位置情報
が複数で該当項目番号に対応する属性コードが指定する
印字フォーマットが1つのときには入力印字データをこ
の印字フォーマットのテキストバッファのこれら印字開
始位置情報にそれぞれ対応する各領域より格納処理し、
該当項目番号に対応する印字開始位置情報が複数で該当
項目番号に対応する属性コードが指定する印字フォーマ
ットが複数のときには入力印字データをこれら印字フォ
ーマットの各テキストバッファのこれら印字開始位置情
報にそれぞれ対応する各領域より格納処理することを特
徴とする券印字装置。
2. A format table storing at least one or more print start position information of print data corresponding to each item number indicating an item of each print data, and different print formats for print data of one ticket. A plurality of text buffers provided for each print format to be stored in, a plurality of image buffers for converting the print data in the corresponding text buffer into bit data and storing the bit data, and a predetermined ticket according to the bit data in the image buffer. A printer unit that prints on an area, an attribute code table that stores an attribute code that specifies at least one print format corresponding to each item number, print data on a ticket from the outside, and an item number that specifies the item Data input means for inputting data consisting of The format table and the attribute code table are searched by data, and the input print data is based on the print start position information corresponding to the corresponding item number, and the text buffer of the print format specified by the attribute code corresponding to the corresponding item number. And a print data processing means for storing the data, detecting that the data for one ticket is stored in the text buffer, developing bit data corresponding to the data in the image buffer, and controlling the driving of the printer section. And a print control means for performing printing on a ticket. The print data processing means has one print start position information corresponding to the corresponding item number and a print format designated by an attribute code corresponding to the corresponding item number. If there is one, the input print data is sent to this print format in the text buffer of this print format. If the print start position information corresponding to the corresponding item number is 1 and the print format specified by the attribute code corresponding to the corresponding item number is multiple, the input print data of these print formats is stored from the area corresponding to the position information. When the storage processing is performed from each area corresponding to the print start position information of each text buffer, and the print start position information corresponding to the corresponding item number is plural and the attribute code corresponding to the corresponding item number specifies one print format. Store the input print data from each area corresponding to these print start position information of the text buffer of this print format,
When there are multiple print start position information corresponding to the corresponding item number and multiple print formats specified by the attribute code corresponding to the corresponding item number, the input print data corresponds to these print start position information of each text buffer of these print formats respectively. A ticket printing device, wherein storage processing is performed from each area.
JP63106517A 1988-04-28 1988-04-28 Ticket printer Expired - Fee Related JPH0813561B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63106517A JPH0813561B2 (en) 1988-04-28 1988-04-28 Ticket printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63106517A JPH0813561B2 (en) 1988-04-28 1988-04-28 Ticket printer

Publications (2)

Publication Number Publication Date
JPH01275153A JPH01275153A (en) 1989-11-02
JPH0813561B2 true JPH0813561B2 (en) 1996-02-14

Family

ID=14435601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63106517A Expired - Fee Related JPH0813561B2 (en) 1988-04-28 1988-04-28 Ticket printer

Country Status (1)

Country Link
JP (1) JPH0813561B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2915674B2 (en) * 1992-01-17 1999-07-05 蛇の目ミシン工業株式会社 Slip printer

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54119837A (en) * 1978-03-10 1979-09-18 Toshiba Corp Document formation unit
JPS6362758A (en) * 1986-09-04 1988-03-19 Alps Electric Co Ltd Printer

Also Published As

Publication number Publication date
JPH01275153A (en) 1989-11-02

Similar Documents

Publication Publication Date Title
CN100504752C (en) Computer of producing printing task and method
JP2942036B2 (en) Barcode printer
JPH01200475A (en) Air ticket issuing device
US6594405B1 (en) Method and apparatus for preprinted forms completion
JPH0747322B2 (en) Printer
JPH0813561B2 (en) Ticket printer
JPH06183110A (en) Printer
JPH06227078A (en) Printer for printing of regular form paper
JPS6145325A (en) Printer
JPH03113691A (en) Airline ticket issuing device
JPH0273488A (en) Ticket issuing machine
JPS6151365A (en) Printing apparatus
JPH04113871A (en) Printing terminal device
KR0125481B1 (en) The method of reprinting the final page data in image shaping apparatus
JP3118310B2 (en) Print processing method of page printer
JPS6235856A (en) Output apparatus
JPS6214286A (en) Portable type ticket vending apparatus
JPH0315231B2 (en)
JPH0640089A (en) Printer device
JPH0621978B2 (en) Print control device
JPS5869071A (en) Control system for impact type serial dot printer
JP2836092B2 (en) Image supply device
JP2000011100A (en) Ic card issuing device and its issuing method
JPH08282024A (en) Printing device
JPH06103432A (en) Device for printing and issuing commutation ticket

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees