JPH0430073B2 - - Google Patents

Info

Publication number
JPH0430073B2
JPH0430073B2 JP56189803A JP18980381A JPH0430073B2 JP H0430073 B2 JPH0430073 B2 JP H0430073B2 JP 56189803 A JP56189803 A JP 56189803A JP 18980381 A JP18980381 A JP 18980381A JP H0430073 B2 JPH0430073 B2 JP H0430073B2
Authority
JP
Japan
Prior art keywords
printing
character
ticket
printed
unit
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 - Lifetime
Application number
JP56189803A
Other languages
Japanese (ja)
Other versions
JPS5892076A (en
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 filed Critical
Priority to JP56189803A priority Critical patent/JPS5892076A/en
Publication of JPS5892076A publication Critical patent/JPS5892076A/en
Publication of JPH0430073B2 publication Critical patent/JPH0430073B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (a) 産業上の利用分野 この発明は、鉄道乗車券等、印刷フオマツトが
幾つかの種類に区分される(レイアウトが複数
の)券片の編集印刷方法に関し、特に印刷フオマ
ツトと印刷文字を自動編集して印刷する券片編集
印刷装置に関する。
[Detailed Description of the Invention] (a) Industrial Application Field The present invention relates to a method for editing and printing tickets such as railway tickets whose printing formats are divided into several types (having multiple layouts), and in particular, The present invention relates to a ticket editing and printing device that automatically edits and prints print formats and characters.

(b) 従来の技術 従来の券片印刷は、共通印刷文字を有する印板
と文字可変できるスタンプ版とを用い、両者の組
み合わせ使用によつて必要な印刷をおこなう方式
や、あるいは、すべての券種に対応する印板を揃
えておき、そのなかから必要な印板を選択して印
刷する方式でおこなわれていた。
(b) Conventional technology Conventional ticket printing uses a stamp plate with common printed characters and a stamp plate with variable characters, and a combination of the two is used to perform the necessary printing, or all tickets are Printing was done by preparing a set of printing plates corresponding to each type of printing, and then selecting the necessary printing plate from among them.

また、印刷文字を電子的に編集する方法も、例
えは特開昭51−69948号や特開昭52−55699号等に
提案されている。前者は、一つの固定した券片フ
オマツト内で(固定レイアウト)文字ドツトデー
タを縦倍/横倍して印刷文字の編集を行う。後者
は、可変レイアウトで、且つ固定文字と変動文字
に分け変動文字の部分のみ編集を行う。
Furthermore, methods for electronically editing printed characters have been proposed, for example, in Japanese Patent Application Laid-Open No. 51-69948 and Japanese Patent Application Laid-Open No. 52-55699. In the former method, printed characters are edited by multiplying character dot data vertically/horizontally within one fixed ticket format (fixed layout). The latter has a variable layout and is divided into fixed characters and variable characters, and only the variable characters are edited.

(c) 発明が解決しようとする課題 しかし、印版等を使用する方法は、印刷文字や
印刷フオマツトが多くなると印板の数がそれに応
じて増えていき、そのため印刷装置が大型化する
欠点があり、また、印刷文字、印刷フオマツトの
変更が複雑となり、それらの変更に迅速に且つ容
易に対応できない欠点があつた。さらに、印刷動
作に入る前に印板の選択作業が必要であるため、
印刷速度が遅くなりがちで、券片発行時間を長く
するという欠点があつた。
(c) Problems to be Solved by the Invention However, the method of using printing plates, etc. has the disadvantage that as the number of printed characters and printing formats increases, the number of printing plates increases accordingly, resulting in an increase in the size of the printing device. In addition, changes in printed characters and print formats are complicated, and these changes cannot be handled quickly and easily. Furthermore, since it is necessary to select the printing plate before starting the printing operation,
This had the disadvantage that the printing speed tended to be slow and it took a long time to issue the ticket.

また、印刷文字を電子的に編集して印刷する上
記の従来の方法は、特開昭51−69948号に示され
るものでは、基本文字フオント(例えば32×32ド
ツト)を縦倍〜横倍して印刷文字を編集すること
しかできないために印刷文字の編集内容が極めて
限定的である。また、特開昭52−55699号に示さ
れるものでは、変動文字の編集を行うことはでき
るが、複数の固定券片パターン(券片全体の固定
イメージパターン)を予め記憶しておき、選択し
たパターンに変動文字を追加し、最終的な券片パ
ターンを得る方式であるため、メモリを非常に多
く使う問題がある。つまり券片の全体パターンを
取り扱うことから、メモリ容量が増えることを避
けることができず、特に固定パターンの数が増え
ると相当容量のメモリを必要とする問題があつ
た。
In addition, the above-mentioned conventional method of electronically editing and printing printed characters, as shown in Japanese Patent Laid-Open No. 51-69948, involves doubling the basic character font (for example, 32 x 32 dots) in height to width. Since it is only possible to edit the printed characters by using the printer, the editing content of the printed characters is extremely limited. In addition, in the method shown in JP-A No. 52-55699, variable characters can be edited, but multiple fixed ticket patterns (fixed image patterns of the entire ticket) are stored in advance, and the selected Since the method involves adding variable characters to the pattern to obtain the final ticket pattern, there is a problem in that it uses a large amount of memory. In other words, since the entire pattern of the ticket is handled, an increase in memory capacity cannot be avoided, and particularly when the number of fixed patterns increases, a considerable amount of memory is required.

この発明の目的は、印刷文字や印刷フオマツト
が増大しても極めて簡単に対応でき、しかもメモ
リ容量が小さくてよく、さらに高速印刷を行うこ
との出来る券片編集印刷装置を提供することにあ
る。
An object of the present invention is to provide a ticket editing and printing device that can extremely easily cope with an increase in printed characters and printing formats, requires a small memory capacity, and can perform high-speed printing.

(d) 課題を解決するための手段 券片へ印刷可能な印刷文字ブロツク毎に、券片
上の印刷領域情報が設定され且つ印刷文字情報エ
リアを有する下記4種類の印刷ユニツトのいずれ
かを記憶する手段と、 日付、料金等の入力情報を記憶する手段と、 前記入力情報に基づいて前記印刷ユニツトから
印刷に使用すべきものを選択し、選択された印刷
ユニツトの内下記(B)または(C)の印刷ユニツトに対
して前記入力情報に基づいた印刷文字情報を前記
エリアに設定する手段と、前記選択された印刷ユ
ニツトが対応する文字ブロツクを順次印刷する手
段と、 を備え、 前記印刷する手段は、1ライン分の文字ドツト
データを印刷しているときに、次のライン分の文
字ドツトデータを印刷部のバツフアに転送する手
段を含んでいることを特徴とする。
(d) Means for solving the problem For each printed character block that can be printed on a ticket, print area information on the ticket is set and one of the following four types of printing units having a printed character information area is stored. means for storing input information such as dates and charges; and selecting one of the printing units to be used for printing based on the input information, and selecting (B) or (C) below among the selected printing units. means for setting printing character information in the area based on the input information for a printing unit; and means for sequentially printing character blocks corresponding to the selected printing unit, the printing means comprising: , is characterized in that it includes means for transferring character dot data for the next line to a buffer of the printing section when character dot data for one line is being printed.

(A)……券片の全種類に共通し、固定印刷文字情報
が予め設定されている共通印刷文字用の印刷ユ
ニツト (B)……入力情報によつて印刷文字情報が変化する
共通編集印刷文字用の印刷ユニツト (C)……入力情報によつて印刷文字情報が変化し、
且つ印刷したりしなかつたりする選択編集印刷
文字用の印刷ユニツト (D)……固定印刷文字情報が予め設定され、入力情
報によつて印刷したりしなかつたりする共通の
選択印刷文字用の印刷ユニツト (e) 作用 日付、料金等の入力情報が設定されると、その
入力情報に基づいて印刷に使用すべき印刷ユニツ
トが選択される。印刷ユニツトには次の4種類の
ものがあり、券片に印刷可能な全ての文字ブロツ
クの各々に一つの印刷ユニツトが対応づけてあ
る。
(A)...Printing unit for common printing characters that is common to all types of ticket types and in which fixed printing character information is set in advance (B)...Common editing printing in which printing character information changes depending on input information Printing unit for characters (C)...The printed character information changes depending on the input information,
Printing unit (D) for selective editing printing characters that are printed or not printed...Fixed printing character information is set in advance, and printing is used for common selected printing characters that are printed or not printed depending on the input information. Unit (e) Function When input information such as date and charge is set, a printing unit to be used for printing is selected based on the input information. There are four types of printing units, one printing unit being associated with each character block that can be printed on a ticket.

(A)……券片の全種類に共通し、固定印刷文字情報
が予め設定されている共通印刷文字用の印刷ユ
ニツト (B)……入力情報によつて印刷文字情報が変化する
共通編集印刷文字用の印刷ユニツト (C)……入力情報によつて印刷文字情報が変化し、
且つ印刷したりしなかつたりする選択編集印刷
文字用の印刷ユニツト (D)……固定印刷文字情報が予め設定され、入力情
報によつて印刷したりしなかつたりする共通の
選択印刷文字用の印刷ユニツト 選択された印刷ユニツトに対しては、入力情報
に基づいた印刷文字情報が設定(編集)される。
選択された各印刷ユニツトは、券片上の印刷領域
情報と、予め固定された、または設定(編集)さ
れた印刷文字情報とを含んでいる。したがつて、
この印刷ユニツトに従つて印刷を行うことによ
り、所望の印刷を行うことができる。
(A)...Printing unit for common printing characters that is common to all types of ticket types and in which fixed printing character information is set in advance (B)...Common editing printing in which printing character information changes depending on input information Printing unit for characters (C)...The printed character information changes depending on the input information,
Printing unit (D) for selective editing printing characters that are printed or not printed...Fixed printing character information is set in advance, and printing is used for common selected printing characters that are printed or not printed depending on the input information. Unit Print character information is set (edited) for the selected print unit based on the input information.
Each selected printing unit includes print area information on the ticket and prefixed or set (edited) print character information. Therefore,
By performing printing according to this printing unit, desired printing can be performed.

また、印刷する手段は、1ライン分の文字ドツ
トデータを印刷しているときに、次のライン分の
文字ドツトデータを印刷部のバツフアに転送する
手段を含んでいる。このため、印刷を高速化出来
る。
Further, the printing means includes means for transferring character dot data for the next line to the buffer of the printing section when character dot data for one line is being printed. Therefore, printing can be speeded up.

(f) 実施例 以下この発明の実施例を図面を参照して説明す
る。
(f) Embodiments Examples of the present invention will be described below with reference to the drawings.

図はこの発明の実施例を示す。 The figure shows an embodiment of the invention.

第1図は券片印刷装置のブロツク図である。同
図において、CPU1にバス接続するプログラム
メモリ2は制御マイクロプログラムを記憶する。
同様に、印刷文字メモリ3は、文字ドツトメモリ
領域で文字ドツトパターンを記憶し、券片フオマ
ツトメモリ領域で券片編集フオマツトテーブルを
記憶する。またRAM4はワークエリアとして使
用する。印刷ヘツド制御回路と印刷ヘツドからな
る印刷ヘツド部5は、1行単位のドツトデータを
印刷する。印刷機構制御回路と印刷搬送機構から
なる印刷機構部6は券片を印刷発行する。更に、
操作部制御回路と操作卓からなる入力部7は券片
情報を入力する部分である。
FIG. 1 is a block diagram of a ticket printing device. In the figure, a program memory 2 connected to a CPU 1 via a bus stores a control microprogram.
Similarly, the print character memory 3 stores character dot patterns in a character dot memory area and stores a ticket editing format table in a ticket format memory area. Also, RAM4 is used as a work area. The print head section 5, which consists of a print head control circuit and a print head, prints dot data on a line-by-line basis. The printing mechanism unit 6, which includes a printing mechanism control circuit and a printing conveyance mechanism, prints and issues tickets. Furthermore,
An input section 7 consisting of an operation section control circuit and an operation console is a section for inputting ticket information.

第2図はこの印刷装置で印刷発行される券片の
フオマツト例である。また、第3図は券片を行・
列方向にドツト分解したときのドツト配列を示
す。この実施例では、行(X)方向の1ドツトを
1行、列(Y)方向の8ドツトを1列として、
行・列番号で文字位置を決定する。また、第4図
は文字の最小ドツト構成図を示し、同図Aは横文
字、同図Bは縦文字を表す。それぞれは、16(2
列)×12(12行)のドツトマトリクスと、16(2列)
×16(16行)のドツトマトリクスで表される。
FIG. 2 shows an example of the format of a ticket printed and issued by this printing device. In addition, Figure 3 shows the ticket pieces in rows and
This shows the dot arrangement when the dots are decomposed in the column direction. In this example, one dot in the row (X) direction is one row, and eight dots in the column (Y) direction are one column.
Determine character position by row/column number. Further, FIG. 4 shows a diagram of the minimum dot structure of a character, in which A represents a horizontal character and B represents a vertical character. Each has 16 (2
Dot matrix of 12 (columns) x 12 (12 rows) and 16 (2 columns)
It is expressed as a dot matrix of ×16 (16 lines).

第5図は最小横文字の文字ドツトパターン構成
(同図A)と、その文字を記憶する文字ドツトメ
モリ(同図B)との対応関係を示す。1列、1行
の8ドツト分を1BYTEとして〜のBYTE分
が順に記憶される。印刷に使用する文字のすべて
は、このようにx1y1,x1y2〜xoynの順に1BYTE
ごとに分解して記憶される。すなわち文字ドツト
メモリ20のアドレス0からiまでの間に、使用
するすべての文字が1BYTEごとのドツトパター
ンで記憶されている。この1BYTE(1行1列)
の文字ドツトパターンは本実施例において基本文
字フオントとなる。
FIG. 5 shows the correspondence between the character dot pattern configuration of the minimum horizontal character (FIG. 5A) and the character dot memory that stores the character (FIG. 5B). Eight dots in one column and one row are set as 1 BYTE, and the ~ BYTEs are stored in order. All characters used for printing are 1BYTE in the order x 1 y 1 , x 1 y 2 ~ x o y n like this
Each item is broken down and stored. That is, all characters to be used are stored in the character dot memory 20 between addresses 0 and i in a dot pattern every 1 BYTE. This 1BYTE (1 row 1 column)
The character dot pattern becomes the basic character font in this embodiment.

第6図は第3図の券片を印刷発行するのに必要
な文字配置を示す図である。同図において、A、
B、C、D、{図ではA、B、C、Dをそれぞれ
○で囲んでいる}の各文字ブロツクには次の種類
の文字が印刷される。
FIG. 6 is a diagram showing the character arrangement necessary for printing and issuing the ticket shown in FIG. 3. In the same figure, A,
The following types of characters are printed in each character block: B, C, D, {A, B, C, D are each circled in the figure}.

A……券片の全種類に共通する共通印刷文字。A...Common printed characters common to all types of ticket pieces.

B……入力印刷情報、内部印刷情報によつて変化
する共通編集印刷文字。
B...Common editing print characters that change depending on input print information and internal print information.

C……入力印刷情報、内部印刷情報によつて変化
し、且つ券片の種類によつて印刷したりしなか
つたりする選択編集印刷文字。
C: Selective editing printing characters that change depending on input print information and internal print information, and are printed or not printed depending on the type of ticket piece.

D……券片の種類によつて印刷したりしなかつた
りする共通の選択印刷文字。
D...Common selective printing characters that are printed or not printed depending on the type of ticket piece.

このように4種類にブロツク分けすることで、
A、Dの各ブロツクの文字は漢字等の非数字とな
り、B、Cの各ブロツクの文字は数字となる。
By dividing the blocks into four types like this,
The characters in each block of A and D are non-numeric characters such as kanji characters, and the characters in each block of B and C are numbers.

なお、第6図、第7図において、Aブロツクの
xxはそのブロツクの印刷文字行数を表し、yyは
印刷文字列数を表す。また、xo,ynの・印は印
刷開始位置点である。前述のように、行(X)方
向の1ドツトを1行、列(Y)方向の8ドツトを
1列として扱つているため、(1×8ドツトを基
準文字フオントとしている)印刷文字行数xxは
X方向のドツト数を表し、印刷1文字列数yyは
Y方向の8倍のドツト数を表している。
In addition, in Figures 6 and 7, the A block
xx represents the number of printed character lines in that block, and yy represents the number of printed character strings. Also, the * mark in x o and y n is the printing start position point. As mentioned above, one dot in the row (X) direction is treated as one line, and eight dots in the column (Y) direction are treated as one column, so the number of printed character lines (1 x 8 dots is the standard character font) xx represents the number of dots in the X direction, and yy, the number of one character string printed, represents 8 times the number of dots in the Y direction.

第7,8図は、第6図の各文字ブロツクの印刷
フオマツト、つまり印刷開始位置と印刷文字種類
を指定する印刷ユニツトを示す。第7図の印刷
ユニツト21は第6図の各A、Dブロツクのいず
れかに対応し、第8図の印刷ユニツト22は
B,Cブロツクのいずれかに対応する。したがつ
て、第6図の文字ブロツクの総数は、第7図の印
刷ユニツト21の総数と第8図の印刷ユニツ
ト22の総数との和に等しい。
7 and 8 show the printing format of each character block in FIG. 6, that is, the printing unit for specifying the printing start position and the type of printed character. The printing unit 21 in FIG. 7 corresponds to either the A or D block in FIG. 6, and the printing unit 22 in FIG. 8 corresponds to either the B or C block. The total number of character blocks in FIG. 6 is therefore equal to the sum of the total number of printing units 21 in FIG. 7 and the total number of printing units 22 in FIG.

第7図において印刷文字ドツトデータアドレス
は、そのユニツト21が対応する文字ブロツク
の先頭文字アドレス(文字ドツトメモリ:第5図
B参照)を示す。また、第8図において編集文字
数lは、そのユニツト22が対応する第6図中
の文字ブロツクの印刷文字数を示す。また、印刷
文字コードエリアアドレス(An)は、入力部7
から入力された入力情報が記憶される入力印刷情
報記憶メモリ23(第10図に示す)において、
その文字ブロツクに対応する印刷情報記憶エリア
を示す。例えば当該ユニツト22が4桁の券番
号を表す文字ブロツク(第6図の一番右側のBブ
ロツク)に対応している場合、そのユニツト内の
印刷文字コードエリアアドレス(An)は、第1
0図のA6のエリアを示す。文字ドツトデータイ
ンデツクスアドレス(iX)は、文字ドツトデー
タインデツクステーブル24(第11図に示す)
の先頭アドレスを示している。また印刷ユニツ
ト22において、印刷位置情報もl個分順番に記
憶されている。
In FIG. 7, the print character dot data address indicates the first character address (character dot memory: see FIG. 5B) of the character block to which the unit 21 corresponds. Further, in FIG. 8, the number of edited characters l indicates the number of printed characters in the character block in FIG. 6 to which the unit 22 corresponds. In addition, the print character code area address (An) is input in input section 7.
In the input print information storage memory 23 (shown in FIG. 10) in which the input information input from the
It shows the print information storage area corresponding to the character block. For example, if the unit 22 corresponds to a character block representing a 4-digit ticket number (B block on the rightmost side in Figure 6), the printed character code area address (An) in that unit is the first
This shows area A6 in Figure 0. The character dot data index address (iX) is stored in the character dot data index table 24 (shown in FIG. 11).
It shows the start address of. In the printing unit 22, l pieces of printing position information are also stored in order.

第8図、第10図、第11図を参照して、印刷
ユニツト22での文字ドツトメモリ120内
(第5図B参照)の文字ドツトデータアドレスを
決める方法を要約して述べると次のようになる。
Referring to FIGS. 8, 10, and 11, the method for determining the character dot data address in the character dot memory 120 (see FIG. 5B) in the printing unit 22 can be summarized as follows. Become.

ある印刷ユニツト22のアドレス(An)の
印刷情報(数字)が仮に4桁であるとすると、こ
の情報の最初の数字がインデツクスアドレス
(iX)と直接加算される。前述のようにこのイン
デツクスアドレス(iX)には、第11図に示す
デーブル24の先頭アドレスが記憶されてる。文
字ドツトデータインデツクステーブル24は文字
コード=0(0の数字)から順に、1番地ごとに、
任意の値まで(通常は9の数字)、そのコードの
文字ドツトデータアドレス(文字ドツトメモリ
内)を記憶する構成にあるため、上記のようにし
て加算された結果は、印刷情報(数字)の最初の
数字に対応する文字ドツトデータアドレスを示
す。例えば、当該最初の数字が0の場合、0+
iX=iXであるから、テーブル24の先頭アドレ
スであるiXが当該最初の数字の文字ドツトデー
タアドレスとして求められる訳である。なお、こ
の文字ドツトデータアドレスは、第5図Bに示す
文字ドツトメモリ中の当該最初の数字を表すエリ
アの最初のアドレスである。このようにして以下
同様にアドレス(An)の印刷情報の各数字に対
応する文字ドツトデータアドレスを求めていく。
つまり、この印刷ユニツト22は、第10図の
入力印刷情報記憶メモリ中のアドレス(An)、そ
のアドレスに記憶されている印刷情報(例えば券
番号、券片コード、日付等)、およびインデツク
スアドレス(iX)で、実質的にそのユニツトが
対応する文字ブロツク(第6図中)の文字アドレ
スを決定することになる。
Assuming that the printing information (number) of the address (An) of a certain printing unit 22 is four digits, the first number of this information is directly added to the index address (iX). As mentioned above, this index address (iX) stores the start address of the table 24 shown in FIG. 11. The character dot data index table 24 is set for each address in order from character code = 0 (number 0).
Since the configuration is such that the character dot data address (in the character dot memory) of the code is memorized up to an arbitrary value (usually the number 9), the result added as above is the first of the print information (numbers). Indicates the character dot data address corresponding to the number. For example, if the first number is 0, 0+
Since iX=iX, iX, which is the leading address of the table 24, is determined as the character dot data address of the first number. Note that this character dot data address is the first address of the area representing the first number in the character dot memory shown in FIG. 5B. In this way, the character dot data address corresponding to each number of the print information of the address (An) is obtained in the same way.
In other words, this printing unit 22 stores the address (An) in the input print information storage memory shown in FIG. (iX), the unit essentially determines the character address of the corresponding character block (see FIG. 6).

第9図は、印刷ユニツト21と印刷ユニツ
ト22をブロツク種別ごとに編集した券片編集フ
オマツトテーブル25を示す。編集と印刷の実行
に必要な作業は、まずこのテーブル25にもとづ
いておこなわれる。
FIG. 9 shows a ticket editing format table 25 in which printing units 21 and printing units 22 are edited for each block type. The operations necessary for editing and printing are first performed based on this table 25.

次にこの装置の編集方式を具体的に説明する。 Next, the editing method of this device will be specifically explained.

第12図、第13図は編集制御手順を示す。 FIG. 12 and FIG. 13 show the editing control procedure.

編集制御は、入力部7の操作卓から、印刷情報
の入力があつたときにはじまる。入力された印刷
情報は第10図に示す入力印刷情報記憶メモリ2
3に記憶される。
Editing control begins when print information is input from the console of the input unit 7. The input print information is stored in the input print information storage memory 2 shown in FIG.
3 is stored.

この編集制御は、入力された印刷情報にもとづ
いて、券片編集フオマツトテーブル25から印刷
に必要なユニツトを全て選択し、次いでその選択
した全てのユニツトの各々をすべて第7図に示す
フオマツトになおしてから、第14図に示す券片
印刷フオマツトバツフア26に転送する作業を中
心とする。
This editing control involves selecting all the units necessary for printing from the ticket editing format table 25 based on the input printing information, and then converting all the selected units into the format shown in FIG. After this, the main task is to transfer the ticket to the ticket printing format buffer 26 shown in FIG.

まず最初の処理10では、券片印刷フオマツトバ
ツフア26へのAブロツクの転送をおこなう。A
ブロツクは各券片に共通している固定ブロツクで
るため、かつ、Aブロツクの印刷ユニツトは第7
図のフオマツトであるため、ここではブロツクユ
ニツト数iが全てそのまま順次転送されていく。
In the first process 10, the A block is transferred to the ticket print format buffer 26. A
The block is a fixed block that is common to each ticket, and the printing unit of block A is the seventh one.
Since this is the format shown in the figure, all block unit numbers i are sequentially transferred as they are.

次の処理11では、Bブロツクの転送がおこなわ
れる。ここでは、ユニツトが第8図に示すフオマ
ツトであるため、第7図に示すフオマツトに変換
しなければならない。このフオマツト変換の手順
を第13図に示す。同図において、処理12は、カ
ウンタC、バツフアA1,A2にそれぞれ、その
ユニツトの編集文字数l、印刷文字コードエリア
アドレス、文字ドツトデータインデツクスアドレ
スを転送して、フオマツト変換の準備をおこな
う。処理13では、印刷位置情報をフオマツトバツ
フア26に転送する。処理14では、バツフアA
1,A2を利用して印刷文字ドツトデータアドレ
スを作成してフオマツトバツフア26に転送す
る。この処理は、前述したように、バツフアA1
の間接指定アドレスの内容、つまり印刷情報にA
2のアドレスの内容、つまりインデツクスアドレ
スiX(第11図のテーブルの先頭アドレス)を加
算して印刷文字ドツトデータアドレスを求める作
業である。処理15,16は、そのユニツトの編集文
字数l分のフオマツト変換をすべておこなうため
のカウンタ処理である。したがつて、処理13では
l=1から順番に転送され、処理14では、印刷情
報(数値)が最初の数から順に転送されていく。
以上の処理をカウンタiを使用してBブロツクユ
ニツト全てについて行う。
In the next process 11, the B block is transferred. Here, since the unit has the format shown in FIG. 8, it must be converted to the format shown in FIG. 7. The procedure for this format conversion is shown in FIG. In the process 12, the number of edited characters l, print character code area address, and character dot data index address of the unit are transferred to counter C and buffers A1 and A2, respectively, to prepare for format conversion. In process 13, the print position information is transferred to the format buffer 26. In process 14, buffer A
1 and A2 to create a print character dot data address and transfer it to the format buffer 26. This process is performed on the buffer A1 as described above.
The content of the indirect specified address, that is, the print information is A.
This is a task of adding the contents of the address No. 2, that is, the index address iX (the first address of the table in FIG. 11) to obtain the print character dot data address. Processes 15 and 16 are counter processes for performing all format conversions for the number of edited characters l in that unit. Therefore, in process 13, the information is transferred in order from l=1, and in process 14, the print information (numeric value) is transferred in order from the first number.
The above processing is performed for all B block units using counter i.

処理17はCブロツクの転送をおこなう。この処
理ではCブロツク券片ユニツト選択テーブル(第
15図)27を利用する。Cブロツク券片ユニツ
ト選択テーブル27は、印刷情報にもとづいて得
られる券片(券種)コード(第10図参照)に対
応する印刷ユニツトを指定する。つまり印刷に必
要な、Cブロツクの印刷ユニツトを選ぶ役割を持
つている。例えば、入力された券片コードが
“0”のとき、第15図のテーブルより、券コー
ド=0の範囲の印刷ユニツトがCブロツクの印刷
ユニツトとして選ばれる。印刷ユニツトの選択
は、この処理17に入る前に、すでに券片コードが
決まつていることから、その券片コードに対応す
るエリアに記憶されているユニツト番号を読み出
すことでおこなわれる。この読みだしは印刷ユニ
ツトカウンタnを使つておこなう。処理17におい
て、Nは当該券片コードのCブロツクの印刷ユニ
ツトそれぞれのユニツト番号を表す(第15図参
照)。更に、カウンタiを使つてその読み出しを
Cブロツクユニツト数全部についておこなう。な
お、選択した印刷ユニツトは、第8図に示す印刷
ユニツト22のフオマツトであるため、処理11
と同様に第13図のサブルーチンによつて第7図
の印刷ユニツト21のフオマツトに変換されて
から、券片印刷フオマツトバツフア26へ転送さ
れることになる。
Process 17 transfers the C block. This process uses the C block ticket unit selection table 27 (FIG. 15). The C-block ticket unit selection table 27 specifies the printing unit corresponding to the ticket (ticket type) code (see FIG. 10) obtained based on the printing information. In other words, it has the role of selecting the printing unit of the C block necessary for printing. For example, when the input ticket code is "0", the printing units in the range of ticket code=0 are selected from the table of FIG. 15 as the printing units of the C block. Since the ticket code has already been determined before entering this process 17, the printing unit is selected by reading out the unit number stored in the area corresponding to the ticket code. This reading is performed using the print unit counter n. In process 17, N represents the unit number of each printing unit of block C of the ticket code (see FIG. 15). Further, counter i is used to read out all the C block units. Note that since the selected printing unit has the format of the printing unit 22 shown in FIG.
Similarly, it is converted into the format of the printing unit 21 of FIG. 7 by the subroutine of FIG. 13, and then transferred to the ticket printing format buffer 26.

処理17を終えると、最後に処理18を実行する。
この処理18は、Dブロツクの転送をおこなう。こ
の処理ではDブロツク券片ユニツト選択テーブル
(第16図)28を利用する。Dブロツク券片ユ
ニツト選択テーブル28は、印刷情報に基づいて
得られる券片(券種)コードに対応する印刷ユニ
ツトを指定する。つまり、印刷に必要なDブロツ
クの印刷ユニツトを選ぶ役割を持つている。した
がつて、この処理18での作業は処理17と同様に、
券片コードに対応するエリアに記憶されているユ
ニツト番号を読み出すことを内容とする。ただ
し、選択されたユニツトフオマツト変更を要しな
いので、そのまま券片印刷フオマツトバツフア2
6へ転送されることになる。
After completing process 17, process 18 is finally executed.
This process 18 transfers the D block. This process uses the D block ticket unit selection table 28 (FIG. 16). The D block ticket unit selection table 28 specifies the printing unit corresponding to the ticket (ticket type) code obtained based on the printing information. In other words, it has the role of selecting the printing unit of the D block necessary for printing. Therefore, the work in process 18 is similar to process 17,
Its purpose is to read out the unit number stored in the area corresponding to the ticket code. However, since it is not necessary to change the selected unit format, you can use the ticket printing format as is.
It will be transferred to 6.

以上の処理10〜18を終えると、最後にテーブル
終了コードを転送してフオマツト編集を完了す
る。
When the above processes 10 to 18 are completed, the table end code is finally transferred and format editing is completed.

次に、以上のようにして編集されたフオマツト
に従い文字を印刷していく制御手順につき説明す
る。第18図はこの装置の印刷サイクルのタイム
チヤート、第19図は印刷制御カウンタ群を示す
図、第20図は文字ゼネレート手順を示すフロー
チヤートである。
Next, a control procedure for printing characters according to the format edited as described above will be explained. FIG. 18 is a time chart of the print cycle of this apparatus, FIG. 19 is a diagram showing a group of print control counters, and FIG. 20 is a flow chart showing a character generation procedure.

制御手順を要約すれば次のようになる。 The control procedure can be summarized as follows.

まず編集作業が終了すると、1行分の文字デー
タ作成、つまり文字ゼネレートがおこなわれ、さ
らにそのゼネレートをおこなう行位置を表す編集
行カウンタLCNT(第19図参照)がリセツトす
る。続いて印刷ヘツドからデータ要求(RQD)
信号が発生し、これによつて文字ゼネレートされ
たデータが印刷ヘツド部に転送されて印刷が実行
されるとともに、カウンタLCNTが+1される。
この動作が繰り返されて連続的に印刷がおこなわ
れることになる。
First, when the editing work is completed, character data for one line is created, that is, character generation is performed, and an edit line counter LCNT (see FIG. 19) representing the line position where the generation is performed is reset. Then request data (RQD) from the print head.
A signal is generated, whereby the character generated data is transferred to the print head section and printing is executed, and the counter LCNT is incremented by 1.
This operation is repeated and printing is performed continuously.

第20図を参照して文字ゼネレートについて説
明する。
Character generation will be explained with reference to FIG.

まず、処理20では印刷行バツフア(第17図)
29(行方向は第5図Aに示すように縦方向であ
る)のクリアが行われる。続いて、券片印刷フオ
マツトバツフア(第14図)26の最初の印刷ユ
ニツトの先頭アドレスがレジスタiYに記憶され、
印刷行バツフア29の先頭アドレス(0行目のア
ドレス)がレジスタiXに記憶される。なお、印
刷行バツフアの0〜mの各行番号は、第3図の0
〜y−1の列番号に対応している。処理21は、カ
ウンタLCNTの内容に一致する印刷ユニツトを
フオマツトバツフア26から読み出すステツプで
ある。処理22では、その印刷ユニツトの印刷開始
行と印刷行数をそれぞれ+1と−1して次回の処
理のための準備をおこない、さらにその結果が印
刷行数=0であれば、開始行をクリアする。後者
の処理は、以後処理21によつてフオマツトバツフ
ア26が検索されるとき、開始行をクリアしたユ
ニツトがステツプされるようにするためのもので
ある。
First, in process 20, print line buffer (Figure 17)
29 (the row direction is the vertical direction as shown in FIG. 5A) is cleared. Subsequently, the head address of the first printing unit of the ticket printing format buffer (FIG. 14) 26 is stored in register iY.
The start address (0th line address) of the print line buffer 29 is stored in register iX. Note that each line number from 0 to m in the print line buffer is 0 in Figure 3.
It corresponds to the column number ~y-1. Process 21 is a step of reading out from the format buffer 26 a printing unit that matches the contents of the counter LCNT. In process 22, prepare for the next process by adding +1 and -1 to the print start line and print line count of the printing unit, respectively, and if the result is that the print line count = 0, clear the start line. do. The purpose of the latter process is to ensure that when the format buffer 26 is subsequently searched by process 21, the unit whose start line has been cleared is stepped through.

処理23では印刷行バツフア29の所定のアドレ
スから下方向(列方向)に文字ドツトデータが転
送される。最初、レジスタiXの記憶内容である
行バツフアアドレス(最初は0列目のアドレス)
にそのユニツトの開始列(iY+2で示される)
を加算したアドレス値が、今からゼネレートをお
こなう文字ドツトデータの転送開始アドレス(印
刷行バツフアの)を指すものとして、レジスタ
iX2に記憶される(このように加算するのは、
印刷行バツフア33の0〜m列が券片の列をその
まま表すものとしているからである。)。そして、
そのレジスタiX2で表されるアドレスから下方
向に(列方向に)、そのユニツトの文字ドツトデ
ータが文字列数分だ転送される。
In process 23, character dot data is transferred downward (column direction) from a predetermined address in the print line buffer 29. Initially, the row buffer address that is the memory contents of register iX (initially the address of column 0)
the starting column of that unit (indicated by iY+2)
Assuming that the address value obtained by adding the .
Stored in iX2 (adding in this way is
This is because columns 0 to m of the print row buffer 33 directly represent the columns of ticket pieces. ). and,
The character dot data of that unit is transferred downward (in the column direction) from the address represented by the register iX2 for the number of character strings.

以上の処理で、文字ゼネレートをおこなうユニ
ツトの1行分(最初は第1行目:第5図A参照)
の文字ドツトデータが、印刷行バツフア29へ転
送されることになる。
With the above processing, one line of the unit that performs character generation (first line: see Figure 5 A)
The character dot data will be transferred to the print line buffer 29.

処理24では、文字ゼネレートをおこなつたユニ
ツトの文字ドツトデータアドレスの更新と、その
ユニツトと同じ印刷文字開始行にある、他のユニ
ツトを検索するための準備がおこなわれる。前者
のアドレス更新の必要性は、第5図から明らかで
ある。すなわち、印刷行が更新するごとにその文
字の列数分だけ、文字ドツトメモリのアドレスを
増加していかなければならないからである。ま
た、後者の準備とは、ユニツトの更新、つまりレ
ジスタiYの内容(現在指定しているユニツトの
印刷文字開始行アドレス)を+5することであ
る。
In process 24, the character dot data address of the unit that performed the character generation is updated, and preparations are made to search for another unit in the same printing character start line as that unit. The necessity of updating the former address is clear from FIG. That is, each time a print line is updated, the address of the character dot memory must be increased by the number of character columns. The latter preparation means updating the unit, that is, adding 5 to the contents of register iY (print character start line address of the currently specified unit).

1行分の文字ゼネレートは、以上の処理をカウ
ンタLCNTの指定ユニツト(LCNTの編集行に
一致する開始行を持つユニツト)すべてに対して
おこなうことで終了する。そして、この文字ゼネ
レートは、以後、カウンタLCNTの更新がある
たびに上記と同様の処理によつておこなわれてい
く。
Character generation for one line is completed by performing the above processing on all units specified by the counter LCNT (units whose start line matches the edit line of LCNT). From then on, this character generation is performed by the same process as described above every time the counter LCNT is updated.

こうして、文字ゼネレートが1行ごとにおこな
われていくことになる。
In this way, character generation is performed line by line.

第18図において、以上の文字ゼネレートの実
行は、次の印刷のためのデータ要求信号である
RQD信号の出る前に終了することがわかる。つ
まり、1行分の文字ゼネレートが行われると、
RQD信号が発生し、文字ゼネレートされたデー
タが印刷ヘツド部に転送され、印刷される。そし
て、その印刷時には、同時に次の印刷のための文
字ゼネレートが実行されている。これによつて、
印刷スピードをより一層高めることが可能にな
る。
In FIG. 18, the execution of the above character generation is a data request signal for the next printing.
It can be seen that the process ends before the RQD signal is output. In other words, when character generation for one line is performed,
An RQD signal is generated, and the character generated data is transferred to the print head section and printed. At the time of printing, character generation for the next printing is being executed at the same time. By this,
It becomes possible to further increase printing speed.

なお、以上の実施例は1行ごとに連続的に印刷
をしていく印刷装置としたが、行と列を入れ換え
る制御をおこなうことによつて1行ごとに連続印
刷をおこなうこともできる。すなわち1行または
1列の1ライン分ごとに連続印刷をおこなうこと
ができる。
Although the above-described embodiment is a printing device that continuously prints one line at a time, it is also possible to perform continuous printing one line at a time by controlling the rows and columns to be interchanged. That is, continuous printing can be performed for each line of one row or one column.

(g) 発明の効果 以上詳述したように、この発明によれば、日
付、券片コード等の文字ブロツクに対応させた共
通印刷文字用、共通編集印刷文字用、選択編集印
刷文字用、共通選択印刷文字用の各印刷ユニツト
をテーブル(印刷ユニツト記憶手段)に記憶して
おき、この中から入力情報に基づいて印刷に必要
なものを選び、印刷文字情報の編集を入力情報に
基づいて行つた後、その印刷ユニツトが対応して
いる文字ブロツクの印刷を行うようにしている。
各印刷ユニツトはパターンデータではなく、印刷
領域情報(印刷開始行列や文字行列数で決まる)
と印刷文字情報で構成される。したがつて、1種
類の券片ごとにまたは券片固定パターンごとに印
刷フオマツト(パターン)を記憶する方法に比較
してメモリ容量を少なくできる。また、このテー
ブル(券片編集フオマツトテーブル)に記憶して
おく印刷ユニツトを変更、追加、削除すること
で、多くの券種に容易に対応することができ、こ
の場合もメモリ容量を増やすことがない。
(g) Effects of the Invention As detailed above, according to the present invention, common printing characters, common editing printing characters, selective editing printing characters, and common printing characters corresponding to character blocks such as dates and ticket codes can be used. Each printing unit for selected printing characters is stored in a table (printing unit storage means), the one necessary for printing is selected based on the input information, and the printing character information is edited based on the input information. After that, the printing unit prints the corresponding character block.
Each print unit is not pattern data, but print area information (determined by print start matrix and number of character columns)
and print character information. Therefore, the memory capacity can be reduced compared to a method in which a print format (pattern) is stored for each type of ticket or for each ticket fixed pattern. In addition, by changing, adding, or deleting the printing units stored in this table (ticket editing format table), it is possible to easily support many ticket types, and in this case, the memory capacity can also be increased. There is no.

さらに、1ライン分の印刷を行つているときに
次の1ライン分の文字ドツトデータを印刷部のバ
ツフアに転送するため、印刷速度が向上する利点
がある。
Furthermore, since character dot data for the next line is transferred to the buffer of the printing section when one line is being printed, there is an advantage that the printing speed is improved.

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

第1図はこの発明の実施例である券片印刷装置
のブロツク図、第2図はこの装置で印刷発行され
る券片のフオマツト例を示す図、第3図は券片の
ドツト配列図、第4図A、Bは横文字、縦文字の
最小文字ドツト構成図、第5図A、Bは最小文字
の文字ドツトパターン構成図とその文字を記憶す
る文字ドツトメモリを示す図、第6図は第3図の
券片を印刷発行するのに必要な文字配置を示す
図、第7図、第8図は、第6図の各文字ブロツク
の印刷開始位置と印刷文字種類を指定する印刷ユ
ニツトを示す図、第9図、第10図、第11図、
第14図、第15図、第16図、第17図、第1
9図はそれぞれ券片編集フオマツトテーブル、入
力印刷情報記憶メモリ、文字ドツトデータインテ
ツクステーブル、券片印刷フオマツトバツフア、
Cブロツク券片ユニツト選択テーブル、Dブロツ
ク券片ユニツト選択テーブル、印刷行バツフア、
印刷制御用カウンタ群を示す図、第12図、第1
3図、第20図はそれぞれ編集制御、そのサブル
ーチン、文字ゼネレート制御のフローチヤート、
第18図はタイムチヤートである。 3……印刷文字メモリ、5……印刷ヘツド部、
6……印刷機構部、7……入力部、20……文字
ドツトメモリ、21……印刷ユニツト、22…
…印刷ユニツト、24……文字ドツトデータイ
ンテツクステーブル、25……券片編集フオマツ
トテーブル、26……券片印刷フオマツトバツフ
ア、27……Cブロツク券片ユニツト選択テーブ
ル、28……Dブロツク券片ユニツト選択テーブ
ル、29……印刷行バツフア。
FIG. 1 is a block diagram of a ticket printing device according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of the format of a ticket printed and issued by this device, and FIG. 3 is a dot arrangement diagram of a ticket. Figures 4A and B are minimum character dot configuration diagrams for horizontal and vertical characters, Figures 5A and B are diagrams showing the minimum character dot pattern configuration and character dot memory that stores the characters, and Figure 6 is a diagram showing the minimum character dot pattern configuration for horizontal and vertical characters. Figure 3 shows the character arrangement necessary to print and issue the ticket, and Figures 7 and 8 show the printing unit that specifies the print start position and print character type for each character block in Figure 6. Figures, Figures 9, 10, 11,
Figure 14, Figure 15, Figure 16, Figure 17, Figure 1
Figure 9 shows a ticket editing format table, an input print information storage memory, a character dot data index table, a ticket printing format buffer, and a ticket editing format table, respectively.
C block ticket piece unit selection table, D block ticket piece unit selection table, print line buffer,
A diagram showing a group of counters for printing control, Fig. 12, Fig. 1
3 and 20 are flowcharts of editing control, its subroutine, and character generation control, respectively.
Figure 18 is a time chart. 3...Print character memory, 5...Print head section,
6... Printing mechanism section, 7... Input section, 20... Character dot memory, 21... Printing unit, 22...
...Print unit, 24...Character dot data index table, 25...Ticket piece editing format table, 26...Ticket print format buffer, 27...C block ticket piece unit selection table, 28...D Block ticket unit selection table, 29...Print line buffer.

Claims (1)

【特許請求の範囲】 1 券片へ印刷可能な印刷文字ブロツク毎に、券
片上の印刷領域情報が予め設定され且つ印刷文字
情報エリアを有する下記4種類の印刷ユニツトの
いずれかを記憶する手段と、 日付、料金等の入力情報を記憶する手段と、 前記入力情報に基づいて前記印刷ユニツトから
印刷に使用すべきものを選択し、選択された印刷
ユニツトの内下記(B)または(C)の印刷ユニツトに対
して前記入力情報に基づいた印刷文字情報を前記
エリアに設定する手段と、前記選択された印刷ユ
ニツトが対応する文字ブロツクを順次印刷する手
段と、 を備え、 前記印刷する手段は、1ライン分の文字ドツト
データを印刷しているときに、次のライン分の文
字ドツトデータを印刷部のバツフアに転送する手
段を含んでいることを特徴とする券片編集印刷装
置。 (A)……券片の全種類に共通し、固定印刷文字情報
が予め設定されている共通印刷文字用の印刷ユ
ニツト (B)……入力情報によつて印刷文字情報が変化する
共通編集印刷文字用の印刷ユニツト (C)……入力情報によつて印刷文字情報が変化し、
且つ印刷したりしなかつたりする選択編集印刷
文字用の印刷ユニツト (D)……固定印刷文字情報が予め設定され、入力情
報によつて印刷したりしなかつたりする共通の
選択印刷文字用の印刷ユニツト
[Scope of Claims] 1. Means for storing any of the following four types of printing units each having print area information on a ticket and having a print character information area for each printed character block that can be printed on a ticket. , a means for storing input information such as dates and charges, and a means for selecting one of the printing units to be used for printing based on the input information, and printing the following (B) or (C) among the selected printing units. means for setting printing character information in the area based on the input information for the unit; and means for sequentially printing character blocks corresponding to the selected printing unit, the printing means comprising: 1 A ticket editing and printing device characterized by comprising means for transferring character dot data for the next line to a buffer of a printing section when character dot data for a line is being printed. (A)...Printing unit for common printing characters that is common to all types of ticket types and in which fixed printing character information is set in advance (B)...Common editing printing in which printing character information changes depending on input information Printing unit for characters (C)...The printed character information changes depending on the input information,
Printing unit (D) for selective editing printing characters that are printed or not printed...Fixed printing character information is set in advance, and printing is used for common selected printing characters that are printed or not printed depending on the input information. unit
JP56189803A 1981-11-25 1981-11-25 Ticket printing system Granted JPS5892076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56189803A JPS5892076A (en) 1981-11-25 1981-11-25 Ticket printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56189803A JPS5892076A (en) 1981-11-25 1981-11-25 Ticket printing system

Publications (2)

Publication Number Publication Date
JPS5892076A JPS5892076A (en) 1983-06-01
JPH0430073B2 true JPH0430073B2 (en) 1992-05-20

Family

ID=16247464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56189803A Granted JPS5892076A (en) 1981-11-25 1981-11-25 Ticket printing system

Country Status (1)

Country Link
JP (1) JPS5892076A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6311379A (en) * 1986-07-02 1988-01-18 Ishida Scales Mfg Co Ltd Label printer
JPS6372574A (en) * 1986-09-16 1988-04-02 Fujitsu Ltd Price tag layout setting control system
JPH0749228B2 (en) * 1990-07-26 1995-05-31 カシオ計算機株式会社 Form output device
JPH0749229B2 (en) * 1990-07-26 1995-05-31 カシオ計算機株式会社 Form output device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5169948A (en) * 1974-12-14 1976-06-17 Nippon Signal Co Ltd
JPS5255699A (en) * 1975-10-31 1977-05-07 Toshiba Corp Ticket printing and issuing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5169948A (en) * 1974-12-14 1976-06-17 Nippon Signal Co Ltd
JPS5255699A (en) * 1975-10-31 1977-05-07 Toshiba Corp Ticket printing and issuing system

Also Published As

Publication number Publication date
JPS5892076A (en) 1983-06-01

Similar Documents

Publication Publication Date Title
US4435778A (en) Method for editing spatially related data in an interactive text processing system
JPH0430074B2 (en)
JP2855207B2 (en) Form output device
JPH0430073B2 (en)
JPH01271275A (en) Character-to-character pitch processing
CA1169570A (en) Method for confirming requested transactions between source and destination files of spatially related data stored in an interactive text processing system
JPS60222270A (en) Table data insertion printer
JPS5949584A (en) System of processing data in mixed various character sizes
JPH0438005B2 (en)
JPS648851B2 (en)
JP3451289B2 (en) Table output device
US5526019A (en) Character processing apparatus
JP2612277B2 (en) High-speed character printing method
JPH0425575B2 (en)
JPH0462551B2 (en)
JPH0445875B2 (en)
JP3033287B2 (en) Form output device
JPH0753466B2 (en) Output device
JPS581782B2 (en) Moji pattern hatsuseiki
JPH0596811A (en) Printing method
JPH06286231A (en) Printer
JPH0815801B2 (en) Label printer
JPS61175049A (en) Printing control device
JPS61173951A (en) Printing control apparatus
JPS60104373A (en) Character processor