JPH01229319A - Output device - Google Patents

Output device

Info

Publication number
JPH01229319A
JPH01229319A JP63054827A JP5482788A JPH01229319A JP H01229319 A JPH01229319 A JP H01229319A JP 63054827 A JP63054827 A JP 63054827A JP 5482788 A JP5482788 A JP 5482788A JP H01229319 A JPH01229319 A JP H01229319A
Authority
JP
Japan
Prior art keywords
output
item
data
printing position
command
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
JP63054827A
Other languages
Japanese (ja)
Inventor
Noboru Matoba
的場 暢
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63054827A priority Critical patent/JPH01229319A/en
Publication of JPH01229319A publication Critical patent/JPH01229319A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain efficient data output by calling an output position concerned from a storage area at the time of receiving output data in respective items so as to attain a moving processing. CONSTITUTION:A term printing position mobile equipment 7 sequentially calls printing position information in a term printing position storage area 6, which is previously stored in accordance with a received term section/printing position moving command which is received from a CPU 4, and a printing position command 7a is generated so that data are moved to the printing positions concerned. An output page buffer 9 temporarily stores a term character pattern received from a character generator 8 so that it is printed in the printing position corresponding to the command 7a received from the moving equipment 7. A stored dot image 9a is transmitted to a printer interface part 10. Since the printing positions of respective terms are already and collectively stored, it is unnecessary to execute a printing position moving processing for respective terms.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、1または複数の所定の項目を有する書式であ
って、その各項目によって情報出力を行うべき位置が決
定されているような書式を有する記録媒体に対し、情報
出力を行う出力装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a format having one or more predetermined items, each of which determines the position at which information should be output. The present invention relates to an output device that outputs information to a recording medium having a recording medium.

[従来の技術1 出力装置、例えばレーザビームプリンタで扱うデータの
中には、領収書や伝票等のように、各項目に関して情報
出力を行うべき位置が予め決定されているような書式を
有するものがある。
[Prior art 1] Some of the data handled by an output device, such as a laser beam printer, has a format in which the position at which information should be output for each item is determined in advance, such as receipts and slips. There is.

第4図を例にとれば、図中41〜46にそれぞれ対応し
た「名称」、「所在地」、「氏名」、「生年月日」、「
職業」、「住所または居所j等といった項目に係る情報
は、それぞれ、常に固定の出力位置を有している。
Taking Figure 4 as an example, "Name", "Location", "Name", "Date of Birth", "
Information related to items such as "occupation" and "address or residence j" always has a fixed output position.

従来、これらの項目を順次出力していく場合、この出力
装置を用いるホストコンピュータは次のような一連の命
令を繰り返し送出するようにしていた。
Conventionally, when sequentially outputting these items, a host computer using this output device repeatedly sends out the following series of commands.

第5図は出力時の動作例を示す。すなわち出力装置は、
ホストコンピュータの命令に応じて、■該当する出力位
置へ、データを設定(わ動)する。
FIG. 5 shows an example of the operation at the time of output. In other words, the output device is
According to the host computer's instructions, ■ Set (move) data to the corresponding output position.

■該当する項目の内容を出力する。■Output the contents of the applicable item.

という手順を含む処理を、出力する項目の数(図示の例
では4回)だけ繰り返すことにより、1ペ一ジ分のデー
タを該当する書式の記録位置に出力していた。
By repeating this process for the number of items to be output (four times in the illustrated example), data for one page is output to the recording position of the corresponding format.

上記■の出力位置へ移動するための命令は、例えばペー
ジプリンタのように2次元平面を扱う出力装置では、画
面に対する水平座標、垂直座標で指示するのが一般的で
ある。これにより、所望する出力位置が確定する。
In an output device that handles a two-dimensional plane, such as a page printer, the command to move to the output position (2) above is generally specified using horizontal and vertical coordinates with respect to the screen. This establishes the desired output position.

また、■の出力する内容は、そのデータの終了を示すべ
く、例えばCR(キャリッジ・リターン)コードをデー
タ末尾に付加しておくのが一般的であり、これにより出
力するデータが確定する。
Furthermore, for the output contents of (2), it is common to add, for example, a CR (carriage return) code to the end of the data to indicate the end of the data, thereby determining the data to be output.

従来は、このような2種類の情報を項目分繰り返し、該
当する書式の出力を行っていた。
Conventionally, these two types of information were repeated for each item and the corresponding format was output.

[発明が解決しようとする課題] ところが、出力位置へ移動させる命令■は、装置を制御
する命令(制御コマンド)であるために多少複雑である
。また、近年の出力装置の高解像度化に従い、座標を表
現するデータのバイト数が増えてきている。
[Problems to be Solved by the Invention] However, the command (2) to move to the output position is a command (control command) for controlling the device, and is therefore somewhat complicated. Furthermore, as the resolution of output devices has increased in recent years, the number of bytes of data expressing coordinates has increased.

例えは、ページプリンタにおいて、記録媒体左上の位置
を(0,0)として、右へ30mm、下へ25mmの位
置(すなわち(30,25))に移動を行わせる場合に
は、単位をt/lo00mmとすると、例えば次のよう
な制御コマンドが送出される。
For example, in a page printer, if the top left position of the recording medium is (0,0) and the recording medium is moved 30mm to the right and 25mm downward (that is, (30,25)), the unit is t/ When lo00mm is set, for example, the following control command is sent.

QD25000 ; :+oooot すなわち、これだけの命令で13バイトが使用されるこ
とになる。仮に、各項目が10文字(byte)の出力
内容だとすれば、送るデータの半分以上が位置決めのた
めのデータとなる。
QD25000; :+oooot In other words, 13 bytes are used for this many instructions. If each item is output content of 10 characters (bytes), more than half of the data to be sent will be data for positioning.

ある項目に係る情報出力位置が各ページ毎に全く不定で
あるならば、上記のような位置決めデータの送出は致し
方ないが、上側のようにある項目に関して同じ出力位置
をとる情報がある場合には、各ページ毎に全く同じ値の
位置移動コマンドをその都度発行することになる。
If the information output position for a certain item is completely undefined for each page, it is unavoidable to send positioning data like the one above, but if there is information that takes the same output position for a certain item as shown above, , a position movement command with exactly the same value will be issued for each page.

また、例えば伝票の書式が変更され、出力位置を修正す
る要が生じた場合、従来のデータ形式では各ページの各
項目毎に出力位置が記述されているわけであるから、そ
れらすべてに対して同様の修正を施さなければならない
ことになり、この過程で誤りが生じることも考えられる
Also, for example, if the format of a slip is changed and the output position needs to be corrected, the output position is described for each item on each page in the conventional data format, so it is necessary to correct the output position for all of them. Similar corrections will have to be made, and errors may occur during this process.

その上に、そもそも「印字データ」と「制御命令」とが
並記されていること自体が、出力装置側でのそれらの分
離識別の点等からみて望ましいものとは言い難いもので
ある。
Furthermore, the very fact that "print data" and "control commands" are written side by side is hardly desirable from the standpoint of separate identification on the output device side.

本発明は、上記の問題点を解消するためになされたもの
で、各項目に対して固定された出力位置を予め一括記憶
しておき、各項目の出力データを受は取った時点でその
該当する出力位置を記憶域より呼出し、8iIJ処理を
行うようにすることにより、従来のように繰り返しが多
く、冗長で、かつ煩雑なデータ入力を不要とする出力装
置を提供することを目的とするものである。
The present invention has been made in order to solve the above-mentioned problems, and the fixed output position for each item is stored all at once, and when the output data of each item is received, the corresponding output position is stored. The object of the present invention is to provide an output device that eliminates the need for conventional, repetitive, redundant, and complicated data input by reading the output location from a storage area and performing 8iIJ processing. It is.

[課題を解決するための手段] そのために、本発明では、1または複数の項目に係るデ
ータを、各項目について所定の位置に出力する出力装置
において、項目に係るデータの出力位置を一括記憶する
手段と、入力されたデータを項目毎に区分する手段と、
データ出力に際し、区分を検出して既に記憶されていた
出力位置を呼出して位置設定を行う手段とを具えたこと
を特徴とする。
[Means for Solving the Problem] To this end, in the present invention, in an output device that outputs data related to one or more items to a predetermined position for each item, output positions of data related to the items are stored in bulk. a means, a means for classifying input data by item,
The present invention is characterized in that it includes means for detecting the classification and calling up an already stored output position to set the position when outputting data.

[作 用] 本発明によれば、出力位置記憶手段が前もって各出力項
目に対する固定の出力位置を記憶し、出力データ項目区
分手段が入力されてきたデータを各項目毎に分離し、出
力に際してはデータ区分を検出してそのデータに該当す
る印字位置を記憶手段から呼出して位置設定を行う。
[Function] According to the present invention, the output position storage means stores a fixed output position for each output item in advance, and the output data item classification means separates input data for each item, and upon output. The data classification is detected and the print position corresponding to the data is retrieved from the storage means to set the position.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例として、ページプリンタ形態
の出力装置の一構成例を示すブロック図である。ここで
、lはホストコンピュータであり、文字、数字、記号等
のデータ(以下単に文字データという)および各種制御
命令を発生する他、各項目に対する固定の出力(以下印
字という)位置を指定する項目印字位置命令9項目を区
分する項目区分命令等を発生し、本例に係る出力装置の
主要部をなす文字発生制御部2に入力する。
FIG. 1 is a block diagram showing an example of the configuration of an output device in the form of a page printer, as an embodiment of the present invention. Here, l is a host computer that generates data such as letters, numbers, and symbols (hereinafter simply referred to as character data) and various control commands, as well as items that specify fixed output (hereinafter referred to as print) positions for each item. An item classification command for classifying the nine printing position commands is generated and inputted to the character generation control section 2, which constitutes the main part of the output device according to this example.

文字発生制御部2において、3は入力バッファであり、
ホストコンピュータ1より入力される項目文字データ、
各種制御データ、項目印字位置命令1項目区分命令等を
一時的に蓄える。4は例えば汎用マイクロプロセッサ等
で構成されるCPt1であり、110M4−1に格納さ
れた第3図につき後述する処理手順に対応したプログラ
ム等に従い、入力バッファ3に蓄えられた入力データを
分析し、該当する処理を行う。このCPU4は、入力デ
ータが項目文字データならば項目文字コード4aを発生
する。項目印字位置命令が入力されたならば項目印字位
置記憶指令4bを、項目区分命令が入力されたならば項
目区分/印字位置移動指令4Cを発生する。
In the character generation control unit 2, 3 is an input buffer;
Item character data input from host computer 1,
Temporarily stores various control data, item print position commands, single item classification commands, etc. 4 is a CPt1 composed of, for example, a general-purpose microprocessor, which analyzes the input data stored in the input buffer 3 according to a program stored in the 110M4-1 that corresponds to the processing procedure described later with reference to FIG. Perform the appropriate processing. This CPU 4 generates an item character code 4a if the input data is item character data. If an item print position command is input, an item print position storage command 4b is generated, and if an item classification command is input, an item classification/print position movement command 4C is generated.

5は本例に係る項目印字位置記憶器であり、CPII4
から受は取った項目印字位置記憶指令4bに従い、各項
目の固定の印字位置を、例えばRAM等により構成され
ている項目印字位置記憶域6に順次記憶する。
5 is an item printing position storage device according to this example, and CPII4
In accordance with the received item print position storage command 4b, the receiver sequentially stores the fixed print position of each item in the item print position storage area 6 constituted by, for example, a RAM or the like.

8は文字発生器であり、CPU4から受は取った項目文
字コード4aを受け、そのコードに該当する項目文字パ
ターン8aを発生する。
8 is a character generator which receives the received item character code 4a from the CPU 4 and generates an item character pattern 8a corresponding to the code.

7は本例に係る項目印字位置移動器であり、CPU4よ
り受は取った項目区分/印字位置移動指令40に従い、
既に記憶されている項目印字位置記憶域6の印字位置情
報6aを順次呼出し、その該当する印字位置へ移動がな
されるように印字位置指令7aを発生する。
7 is an item printing position mover according to the present example, and according to the item classification/printing position movement command 40 received from the CPU 4,
The print position information 6a of the item print position storage area 6 that has already been stored is sequentially called up, and a print position command 7a is generated so as to move to the corresponding print position.

9は出力用ページバッファであり、文字発生器7から受
は取った項目文字パターン8aを、項目印字値ff1f
J勅器7から受は取った印字位置指令73に従った印字
位置に印字させるべく、−時的に格納する。そして格納
されたドツトイメージ9aを、プリンタインタフェース
部10に送出する。プリンタインタフェース部lOは、
出力用ページバッファ9に格納されたドツトイメージに
対応するビデオ信号10aを、例えばレーザビームプリ
ンタで構成される記録部11に送出する。
9 is an output page buffer, in which the item character pattern 8a received from the character generator 7 is transferred to the item print value ff1f.
The receiver is temporarily stored in order to print at the print position according to the print position command 73 received from the J-choki 7. The stored dot image 9a is then sent to the printer interface section 10. The printer interface section lO is
A video signal 10a corresponding to the dot image stored in the output page buffer 9 is sent to a recording section 11 comprising, for example, a laser beam printer.

第2図は本例に係るデータ出力の一態様を示す。図中2
1は項目印字位置記憶命令であり、従来は逐一項目印字
前に印字位置移動命令を繰り返し発行していたものを、
本例では一括してデータ出力に先立って行っている。こ
のとき、各項目の印字位置は項目印字位置記憶域6に記
憶される。
FIG. 2 shows one mode of data output according to this example. 2 in the diagram
1 is an item print position storage command, which previously issued a print position movement command repeatedly before printing each item.
In this example, this is performed all at once prior to data output. At this time, the printing position of each item is stored in the item printing position storage area 6.

そしてその後で各項目の出力データを符号22で示すよ
うに項目の順に発行していく。1つの項目データの終わ
りには、各項目データを区切る項目区分命令23が発行
されていく。これは、例えばCR(キャリッジ・リター
ン)コード等の一般にデータを区切るために用いられる
簡単なデータとすることができる。この項目区分命令を
受は取ると、最初に一括して記憶した項目印字位置を順
次に参照してゆき、各項目の該当する印字位置へ移動を
行う。
Thereafter, output data for each item is issued in the order of the items as shown by reference numeral 22. At the end of one item of data, an item classification command 23 for separating each item of data is issued. This can be, for example, simple data commonly used to delimit data, such as a CR (carriage return) code. When this item classification command is received, the item printing positions that were initially stored collectively are sequentially referred to, and movement is made to the corresponding printing position for each item.

本例によれば、既に各項目の印字位置が一括記憶されて
いるので、各項目毎に印字位置)3動処理を行う必要が
ない。
According to this example, since the printing positions of each item are already stored in bulk, there is no need to perform the printing position processing for each item.

第3図は以上の実施例に係る項目印字位置−括記憶およ
び出力処理手順の一例を示す。なお、(Sl)〜(S9
)は各ステップ番号を示す。
FIG. 3 shows an example of the item printing position-batch storage and output processing procedure according to the above embodiment. In addition, (Sl) to (S9
) indicates each step number.

出力が開始されると、ホストコンピュータ1よりデータ
コードの送信が開始され、まず入力データを1単位ずつ
読み込む(Sl)。次いで、入力データの印字が全て終
了したか否かを判断しくS2)、肯定判定であれば処理
を終了する。
When the output starts, the host computer 1 starts transmitting the data code, and first reads input data one unit at a time (Sl). Next, it is determined whether or not all input data has been printed (S2), and if the determination is affirmative, the process is terminated.

否定判定であれは送られてきたデータが項目印字位置記
憶命令か否かをチエツクする(S3)。肯定判定であれ
ばそれに従って各項目の持つ固定の印字位置を記憶する
(S4)。否定判定であれは印字データか否かを判定し
くS5)、肯定判定がなされればその項目データの出力
処理(S6)を実行する。
If the determination is negative, it is checked whether the sent data is an item print position storage command (S3). If the determination is affirmative, the fixed printing position of each item is stored accordingly (S4). If the determination is negative, it is determined whether or not the data is to be printed (S5), and if the determination is affirmative, output processing of the item data (S6) is executed.

ステップ(S5)にて否定判定された場合には、送られ
てきたデータが項目区分命令か否かを判定する(S7)
。肯定判定であればステップ(S4)で−括記憶した項
目印字位置を、項目印字位置記憶域6より呼出し、該当
する項目印字位置へ移動する(Sa)、そして否定判定
であればその他の印字/制御処理を行う(S9)。
If a negative determination is made in step (S5), it is determined whether the sent data is an item classification command (S7).
. If the judgment is affirmative, the item printing position stored in bulk in step (S4) is called from the item printing position storage area 6 and moved to the corresponding item printing position (Sa), and if the judgment is negative, other printing / Control processing is performed (S9).

以上の処理によって、操作者は各項目において固定の印
字位置を持つような書式の記録媒体に対する印字に際し
、その項目を印字する前に、逐−印字位置穆勅させるよ
うな命令を入力することなく、整理されたデータによる
出力を効率よく行えることになる。
With the above processing, when printing on a recording medium with a format in which each item has a fixed print position, the operator does not have to input a command to adjust the print position one by one before printing that item. , it is possible to efficiently output organized data.

なお、上記実施例では、ページプリンタに対し本発明を
適用した場合について説明したが、本発明はこれに限定
されるものではなく、他の方式のプリンタに関しても容
易に適用できるのは勿論である。
In addition, although the above embodiment describes the case where the present invention is applied to a page printer, the present invention is not limited to this, and it goes without saying that the present invention can be easily applied to printers of other types. .

[発明の効果〕 以上説明したように、本発明によれば、所定の書式を有
するものに対する記録のように、項目1つ1つが固有の
印字位置を持つような出力に際して、この個々の印字位
置を最初に一括して記憶させ、項目の区切りに基づいて
次の項目位置へ移動させることにより、各項目毎に逐−
印字位置8勅命令を付加する必要がなく、効率的で、整
理されたデータ出力が行えるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, when outputting where each item has a unique printing position, such as recording for something with a predetermined format, this individual printing position can be adjusted. By first memorizing all of
There is no need to add print position 8 commands, and there is an effect that efficient and organized data output can be performed.

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

第1図は本発明の一実施例としてページプリンタに設け
た出力装置の一構成例を示すブロック図、 第2図は本実施例によるデータ出力の一態様を示す説明
図、 第3図は本実施例による制御手順の一例を示すフローチ
ャート、 第4図は各項目について固定の印字位置を持つ書式の一
例を示す説明図、 第5図は従来装置によるデータ出力の態様を示す説明図
である。 1・・・ホストコンピュータ、 2・・・文字発生制御部、 3・・・入力バッファ、 4・・・cpu 。 5・・・項目印字位置記憶器、 6・・・項目印字位置記憶域、 7・・・項目印字位置移動器、 8・・・文字発生器、 9・・・出力用ページバッファ、 10・・・プリンタインタフェース部、it・・・記録
部。 第3図
FIG. 1 is a block diagram showing an example of the configuration of an output device installed in a page printer as an embodiment of the present invention. FIG. 2 is an explanatory diagram showing one mode of data output according to this embodiment. FIG. 4 is an explanatory diagram showing an example of a format in which each item has a fixed printing position; FIG. 5 is an explanatory diagram showing an aspect of data output by a conventional device. DESCRIPTION OF SYMBOLS 1...Host computer, 2...Character generation control part, 3...Input buffer, 4...CPU. 5... Item print position storage area, 6... Item print position storage area, 7... Item print position mover, 8... Character generator, 9... Output page buffer, 10... -Printer interface section, IT...recording section. Figure 3

Claims (1)

【特許請求の範囲】 1)1または複数の項目に係るデータを、各項目につい
て所定の位置に出力する出力装置において、 前記項目に係るデータの出力位置を一括記憶する手段と
、 入力されたデータを前記項目毎に区分する手段と、 データ出力に際し、前記区分を検出して既に記憶されて
いた出力位置を呼出して位置設定を行う手段と を具えたことを特徴とする出力装置。
[Claims] 1) An output device that outputs data relating to one or more items to a predetermined position for each item, comprising means for collectively storing output positions of data relating to the item, and input data. An output device comprising: means for classifying the data according to the item; and means for detecting the classification and calling an already stored output position to set the position when outputting the data.
JP63054827A 1988-03-10 1988-03-10 Output device Pending JPH01229319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63054827A JPH01229319A (en) 1988-03-10 1988-03-10 Output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63054827A JPH01229319A (en) 1988-03-10 1988-03-10 Output device

Publications (1)

Publication Number Publication Date
JPH01229319A true JPH01229319A (en) 1989-09-13

Family

ID=12981503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63054827A Pending JPH01229319A (en) 1988-03-10 1988-03-10 Output device

Country Status (1)

Country Link
JP (1) JPH01229319A (en)

Similar Documents

Publication Publication Date Title
US5025325A (en) Graphics scaling method for high resolution printers
US5100248A (en) Text scale method
JPH01229319A (en) Output device
JPS6321158A (en) Printer output device
JP2711860B2 (en) Output control method and device
JPH01150568A (en) Printer device
JPS63272145A (en) Dump output device
JP2555557B2 (en) Character processor
JPH0939312A (en) Printer, printing method and printing mechanism
JPS61249133A (en) Printing controller
JPH08132684A (en) Braille block copy output system and braille block copy outputting method
JP2595086B2 (en) Output control device and ruled line generation method
JPH0213631B2 (en)
JP3070122B2 (en) Printing control device
JPH0834142A (en) Pie character printing apparatus
JPS63242561A (en) Font reducing system
JPS62250768A (en) Printing device
JPS63137856A (en) Processing system for printing ruled line
JPS63272144A (en) Dump output device
JPS62251884A (en) Recorder
JPH03210597A (en) Character output system
JPH11259246A (en) Printing device capable of reducing data transmitting amount from host
JPH0196724A (en) Picture output device
JPH02106366A (en) Printer
JPH01238940A (en) Printer