JPH03256773A - Printing position control system of printer - Google Patents

Printing position control system of printer

Info

Publication number
JPH03256773A
JPH03256773A JP2053789A JP5378990A JPH03256773A JP H03256773 A JPH03256773 A JP H03256773A JP 2053789 A JP2053789 A JP 2053789A JP 5378990 A JP5378990 A JP 5378990A JP H03256773 A JPH03256773 A JP H03256773A
Authority
JP
Japan
Prior art keywords
data
command
print
media data
print position
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
JP2053789A
Other languages
Japanese (ja)
Inventor
Hiroshi Okubo
弘 大久保
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2053789A priority Critical patent/JPH03256773A/en
Publication of JPH03256773A publication Critical patent/JPH03256773A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the efficiency of operating a printer by setting a printing start position for medium data based on information on a printing position for medium data stored in a storage device for printing start position. CONSTITUTION:If a command for indicating information on a printing position relative to a printing start position for medium data is sent from a host computer through an interface, a command interpretation device 1 interprets the command and stores information on a printing position in a storage device for information on a printing position 2. Next, if the medium data is sent from the host computer through the interface, a device for setting a printing start position 3 sets a printing start position for the medium data based on information relative to printing position stored in the device 2. After that, the medium data is, for example, is expanded into dot data in the bit map format, and then the dot data is stored in bit map memory with a printing start positions as a start point.

Description

【発明の詳細な説明】 〔概  要〕 上位システムからのコマンド人力により、水平印刷位置
を指定することが可能なプリンタの印刷位置制御方式に
関し、 メディアデータの印刷開始位置の指定をオペレータを介
することなく、ホストコンピュータからのコマンド人力
により行えるようにして、プリンタ装置の運用効率を向
上させると共に、高い信頼性の印刷位置設定が可能なプ
リンタの印刷位置制御方式を提供することを目的とし、 上位装置から送信されてくるメディアデータが、指示さ
れた印刷位置から印刷出力されるように制御するプリン
タ装置の印刷位置制御方式において、上位装置から送信
されてくる前記メディアデータの印刷開始位置に係わる
印刷位置情報を指示するコマンドを判別するコマンド判
別手段と、該コマンド判別手段により判別された前記メ
ディアデー夕の印刷位置情報を記憶する印刷位置情報記
憶手段と、該印刷開始位置記憶手段に記憶されている前
記メディアデータの印刷位置情報に基づいて、前記メデ
ィアデータの印刷開始位置を設定する印刷開始位置設定
手段とを具備するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a print position control method for a printer that allows the horizontal printing position to be specified by manual commands from a host system, the printing start position of media data can be specified via the operator. The purpose of the present invention is to provide a printer print position control method that enables highly reliable print position settings, as well as improves the operational efficiency of printer devices by enabling commands from a host computer to be performed manually. In a print position control method for a printer device that controls media data sent from a host device so that it is printed from a designated print position, a print position related to the print start position of the media data sent from a host device a command discriminating means for discriminating a command for instructing information; a print position information storage means for storing print position information of the media date determined by the command discriminating means; and a print start position setting means for setting a print start position of the media data based on the print position information of the media data.

〔産業上の利用分野〕[Industrial application field]

本発明は、プリンタの印刷位置制御方式に係り、更に詳
しくは上位システムからのコマンド人力により、水平印
刷位置を指定することが可能なプリンタの印刷位置制御
方式に関する。
The present invention relates to a print position control method for a printer, and more particularly to a print position control method for a printer that allows a horizontal print position to be designated by manual commands from a host system.

近来、ワークステーション、オフィスコンピュータ、及
びパーソナルコンピュータの機能は、年々高性能・高速
化されてきている。また、オフィス業務の生産性向上の
ために、オフィス情報システムを構築する企業が増加し
ており、このようなオフィス情報システムにおいては、
上記ワークステーション、オフィスコンピュータ、パー
ソナルコンピュータ等が印刷出力装置として用いられる
プリンタやファイル装置として用いられる磁気ディスク
、光ディスク等の外部記憶装置と共にローカル・エリア
・ネットワーク(LAN)によって結合されている。
In recent years, the functions of workstations, office computers, and personal computers have become more sophisticated and faster year by year. In addition, an increasing number of companies are building office information systems to improve productivity in office operations.
The workstations, office computers, personal computers, etc. mentioned above are connected by a local area network (LAN) with a printer used as a print output device and an external storage device such as a magnetic disk or optical disk used as a file device.

そして、上記オフィス情報システム等のローカル・エリ
ア・ネットワークにおいては、上記各コンピュータの高
性能化・高速化に伴い、上記各コンピュータが送信され
てくる文書データやグラフィック・データを印刷出力す
るプリンタにも、高速化及び効率的な運用が要求される
ようになってきている。
In local area networks such as the office information systems mentioned above, as the performance and speed of each of the above computers increases, printers that print out the document data and graphic data sent from the above computers also become more popular. , faster and more efficient operation is required.

〔従来の技術〕[Conventional technology]

上述のように、ワークステーション、オフィスコンピュ
ータ、及びパーソナルコンピュータ等のコンピュータを
、ホストコンピュータとして、プリンタから印刷出力を
する場合の従来の動作を第5図に示す。
As mentioned above, FIG. 5 shows the conventional operation when a computer such as a workstation, an office computer, or a personal computer is used as a host computer to print out from a printer.

ホストコンピュータ(Host Computer )
 20に、ネットワークまたは接続ケーブルで結合され
ているプリンタ30を用いて、文字データ及びグラフイ
ンク・データの印刷出力を行う場合、ユーザは、まずプ
リンタ30の操作パネル部31に設けられた水平印刷位
置指定スイッチを操作して、所定の水平印刷位置を指定
する。この指定された水平位置に対応する水平印刷位置
データは、特に図示していないRAM (ランダム・ア
クセス・メモリ)内に設けられた水平印刷位置格納域3
3に格納される。
Host Computer
When printing out character data and graphic ink data using the printer 30 connected to the printer 20 via a network or connection cable, the user first selects the horizontal printing position provided on the operation panel section 31 of the printer 30. Operate the designation switch to designate a predetermined horizontal printing position. Horizontal print position data corresponding to this specified horizontal position is stored in a horizontal print position storage area 3 provided in a RAM (random access memory) not particularly shown.
It is stored in 3.

続いて、ホストコンピュータ20から、特に図示してい
ないインターフェースを介して、印刷位置指定コマンド
31aをプリンタ30内のコマンド処理部33へ出力す
る。コマンド処理部33°は、上記印刷位置指定コマン
ド31aにより指定された印刷位置データを、上記RA
M内に設けられた印刷位置格納域34に格納する。
Subsequently, a print position designation command 31a is output from the host computer 20 to the command processing section 33 in the printer 30 via an interface not particularly shown. The command processing unit 33° transfers the print position data specified by the print position designation command 31a to the RA.
It is stored in the print position storage area 34 provided in M.

さらに、続いてホストコンピュータ20から上記インタ
ーフェースを介して印刷すべき文字1図形及びイメージ
データ等を指定するメディアデータ・コマンドが送信さ
れてくると、コマンド処理部33は、そのメディアデー
タ・コマンドにより指定されたメディアデータを展開処
理部35に出力する。
Furthermore, when the host computer 20 subsequently sends a media data command specifying a character, figure, image data, etc. to be printed via the above-mentioned interface, the command processing unit 33 processes the data specified by the media data command. The processed media data is output to the expansion processing section 35.

展開処理部35は、上記メディアデータをピントマツプ
形式のドツトデータに展開し、RAM(ランダム・アク
セス・メモリ)等から成るメディアデータ用ピント・マ
・ンフ″・メモリ(メディアデータ用BMM)36の所
定ページに格納する。
The development processing unit 35 develops the media data into dot data in a focus map format, and stores the media data in a predetermined location in a focus map memory (BMM for media data) 36 consisting of a RAM (random access memory) or the like. Store on page.

この場合、展開処理部35は、上記水平印刷位置格納域
32に格納されている水平印刷位置データと上記印刷位
置格納域34に格納されている印刷位置データを読み出
し、上記2つの位置データを加算した結果得られる位置
(加算値)を原点として、メディアデータ用ビット・マ
ツプ・メモリ36の所定ページにビットマツプ形式に展
開したメディアデータを格納する。
In this case, the expansion processing unit 35 reads the horizontal print position data stored in the horizontal print position storage area 32 and the print position data stored in the print position storage area 34, and adds the two position data. The media data developed in bitmap format is stored in a predetermined page of the bitmap memory 36 for media data, with the position (added value) obtained as a result of this as the origin.

さらに、ホストコンピュータ20から、前記インターフ
ェースを介して帳標出力用の外枠、内枠、及びその帳標
内に固定的に印刷される項目名等から威るオーバレイデ
ータ・コマンドが送信されてくると、コマンド処理部3
3は、そのオーバレイデータ・コマンドにより指定され
たオーバレイデータを展開処理部35に出力する。展開
処理部35は、その入力されるオーバレイデータをビッ
トマツプ形式のドツトデータに展開し、RAM (ラン
ダム・アクセス・メモリ)等から成るオーバレイデータ
用ビットマツプメモリ(オーバレイデータ用BMM)3
7に出力する。この場合、展開処理部35は、印刷位置
格納域34に格納されている印刷位置データを読み出し
、その印刷位置データを原点として展開したビット・マ
ツプ・イメージデータをオーバレイデータ用ビア)・マ
ツプ・メモリ37の所定ページに展開する。
Furthermore, overlay data commands are sent from the host computer 20 via the interface, including the outer frame, inner frame, and item names fixedly printed in the ledger for outputting the ledger. and command processing section 3
3 outputs the overlay data specified by the overlay data command to the expansion processing section 35. The expansion processing unit 35 expands the input overlay data into dot data in a bitmap format, and stores the overlay data bitmap memory (overlay data BMM) 3 consisting of a RAM (random access memory) or the like.
Output to 7. In this case, the expansion processing unit 35 reads the print position data stored in the print position storage area 34, and converts the bit map image data developed using the print position data as the origin into the overlay data via) map memory. 37 predetermined pages.

そして、メディア用ビット・マツプ・メモリ36に格納
されているビットマツプ形式のメディアデータとオーバ
レイデータ用ビット・マツプ・メモリ37に格納されて
いるビットマツプ形式のオーバレイデータは、特に図示
していないプリンタ本体出力用のインターフェースを介
して、プリンタ機構部に送信され、そのプリンタ機構部
により外部に印刷出力される。この印刷出力において、
メディアデータ用ビット・マツプ・メモリ36とオーバ
レイデータ用ビット・マツプ・メモリ37の同ページに
ビットマツプ形式のメディアデータとビットマツプ形式
のオーバレイデータとが格納されているときには、その
メディアデータとオーバレイデータの対応するドツトデ
ータ同士にORの論理演算が施され、その論理演算の結
果得られたビットイメージデータがプリンタ本体により
印刷出力される。
The bitmap format media data stored in the media bitmap memory 36 and the bitmap format overlay data stored in the overlay data bitmap memory 37 are output from the printer body (not shown). The information is sent to the printer mechanism through the interface, and is printed out externally by the printer mechanism. In this printout,
When bitmap format media data and bitmap format overlay data are stored in the same page of the media data bit map memory 36 and the overlay data bit map memory 37, the correspondence between the media data and the overlay data The logical operation of OR is performed on the dot data, and the bit image data obtained as a result of the logical operation is printed out by the printer body.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように、従来、メディアデータをピントマツプ
形式のドツトデータに展開する際の原点の算出に用いら
れる水平印刷位置データの指定は、オペレータのスイッ
チ操作により行われていた。
As described above, conventionally, the horizontal printing position data used to calculate the origin when developing media data into dot data in a focus map format has been specified by an operator's switch operation.

このように、上記水平印刷位置は、オペレータの操作を
必要とするため、運用上、時間的なロスが生じ、さらに
人手による操作のため、設定を間違う場合もあり、信頼
性が低いという欠点を有していた。
In this way, the above-mentioned horizontal printing position requires an operator's operation, which causes a time loss in operation.Furthermore, since the horizontal printing position is manually operated, the setting may be incorrectly set, which has the drawback of low reliability. had.

本発明は、上記メディアデータの印刷開始位置の指定を
オペレータを介することなく、ホストコンピュータから
のコマンド入力により行えるようにして、プリンタ装置
の運用効率を向上させると共に、高い信頼性の印刷位置
設定が可能なプリンタの印刷位置制御方式を提供するこ
とを目的とする。
The present invention makes it possible to specify the print start position of the media data by inputting a command from a host computer without involving an operator, thereby improving the operational efficiency of the printer device and ensuring highly reliable print position setting. The purpose of this invention is to provide a possible printing position control method for printers.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.

本発明は、上位装置から送信されてくる文字。The present invention deals with characters sent from a host device.

図形、またはイメージデータ等から成るメディアデータ
が、指示された印刷位置から印刷出力されるように制御
するプリンタ装置の印刷位置制御方式に適用される。
The present invention is applied to a print position control method of a printer device that controls media data such as graphics or image data to be printed out from a designated print position.

図中、1は、コマンド判別手段であり、ホストコンピュ
ータ等の上位装置から特に図示していないインターフェ
ースを介して、送信されてくる複数のコマンドの中から
、前記メディアデータの印刷開始位置に係わる印刷位置
情報を指示するコマンドを判別する。
In the figure, reference numeral 1 denotes a command discriminating means, which selects a command for printing related to the print start position of the media data from among a plurality of commands sent from a host computer or other host device via an interface (not particularly shown). Determine the command that indicates location information.

また、2は印刷位置情報記憶手段であり、コマンド判別
手段1により判別された前記メディアデータの印刷位置
情報を記憶する。この印刷位置情報記憶手段2は、例え
ばレジスタまたはRAM(ランダム・アクセス・メモリ
)等の半導体メモリから成る。
Further, 2 is a print position information storage means, which stores the print position information of the media data discriminated by the command discriminator 1. The print position information storage means 2 is comprised of, for example, a register or a semiconductor memory such as a RAM (random access memory).

さらに、3は印刷開始位置設定手段であり、印刷開始位
置記憶手段2に記憶されている前記メディアデータの印
刷位置情報に基づいて、前記メディアデータの印刷開始
位置を設定する。
Further, reference numeral 3 denotes a print start position setting means, which sets a print start position of the media data based on the print position information of the media data stored in the print start position storage means 2.

この印刷開始位置の設定は、例えば同しく上位装置から
送信されてくるコマンドにより指定される印刷基準位置
と上記印刷位置情報とを加算または減算することにより
行われる。
This setting of the print start position is performed, for example, by adding or subtracting the printing reference position specified by a command also sent from the host device and the print position information.

上記メディアデータは、例えば帳票印刷の場合には、帳
票の枠線や固定的な項目名等から戒るオーバレイデータ
と台底(OR演算)され、その台底された印刷データが
プリンタの印刷機構部により印刷出力される。
For example, in the case of form printing, the above media data is ORed with overlay data that is determined from form borders, fixed item names, etc., and the resulting print data is used by the printer's printing mechanism. Printed out depending on the copy.

〔作  用〕[For production]

本発明では、上位装置からインターフェースを介してメ
ディアデータの印刷開始位置に係る印刷位置情報を指示
するコマンドが送信されてくると、そのコマンドをコマ
ンド判別手段1が判別し、上記印刷位置情報を印刷位置
情報記憶手段2に格納する。
In the present invention, when a command instructing print position information related to the print start position of media data is transmitted from a host device via an interface, the command determining means 1 determines the command and prints the print position information. It is stored in the position information storage means 2.

そして、次に上記装置からインターフェースを介してメ
ディアデータが送信されてくると、印刷開始位置設定手
段3は、印刷位置情報記憶手段2に格納されている印刷
位置情報に基づいて、上記メディアデータの印刷開始位
置を設定する。
Then, when media data is transmitted from the above-mentioned device via the interface, the print start position setting means 3 determines the position of the above-mentioned media data based on the print position information stored in the print position information storage means 2. Set the print start position.

そして、上記メディアデータが、例えばビットマツプ形
式のドツトデータに展開され、上記印刷開始位置を始点
として、ビットマツプメモリに格納される。
Then, the media data is expanded into, for example, dot data in a bitmap format, and stored in a bitmap memory starting from the print start position.

このように、オペレータが操作パネル上のスイッチを操
作せずとも、ホストコンピュータ等の上位装置からコマ
ンドを送信することにより、メディアデータの印刷開始
位置を自由に設定できるようになる。
In this way, the print start position of media data can be freely set by transmitting a command from a higher-level device such as a host computer without the operator having to operate a switch on the operation panel.

〔実  施  例〕〔Example〕

以下、図面を参照しながら、本発明の一実施例について
説明する。
An embodiment of the present invention will be described below with reference to the drawings.

盪−一虞 第2図は、本発明に係る一実施例のシステム構成国であ
る。
(2) Figure 2 shows the countries in which the system is configured in one embodiment of the present invention.

同図において、前述した第4図に示されているブロック
と同一のブロックには、同一の符号を付記している。
In this figure, blocks that are the same as those shown in FIG. 4 described above are given the same reference numerals.

同図において、ホストコンピュータ120は特に図示し
ていないインターフェースを介して、同図に示すプリン
タ130に接続されている汎用コンピュータ、ワークス
テーシゴン、オフィスコンピュータ、またはパーソナル
コンピュータ等のコンピュータであり、ホストコンピュ
ータ120及びプリンタ130は、例えばネットワーク
又は専用のケーブル等により接続されている。
In the figure, a host computer 120 is a computer such as a general-purpose computer, a workstation, an office computer, or a personal computer, which is connected to a printer 130 shown in the figure through an interface not particularly shown. 120 and printer 130 are connected, for example, via a network or a dedicated cable.

尚、同図において、プリンタ130はコントローラ(制
御部)の回路構成のみを図示しており、実際の印刷出力
を行うプリンタ機構部の構成は特には図示していない。
In the figure, only the circuit configuration of the controller (control unit) of the printer 130 is illustrated, and the configuration of the printer mechanism unit that performs actual print output is not particularly illustrated.

プリンタ機構部は、例えば電子写真印刷方式により、1
ペ一ジ単位で印刷を行う。
For example, the printer mechanism section uses an electrophotographic printing method to print 1
Prints one page at a time.

次に、同図において一点鎖線で囲んで示すプリンタ制御
部130は、ホストコンピュータ20から特に図示して
いないインターフェースを介して、送信されてくるコマ
ンドに対応して、そのコマンドにより指定されるメディ
アデータまたはオーバレイデータを、ビットマツプ形式
のドツトデータに展開するプリンタの制御部であり、コ
マンド処理部133、展開処理部35、メディアデータ
用ビット・マツプ・メモリ(メディアデータ用BMM)
36、オーバレイデータ用ビットマツプメモリ(オーバ
レイデータ用BMM)37、及び水平印刷位置格納域3
2、印刷位置格納域34等を有するRAM (ランダム
・アクセス・メモリ)等から戒っている。
Next, in response to a command sent from the host computer 20 via an interface (not particularly shown), the printer control unit 130, which is shown surrounded by a dashed line in the figure, receives media data specified by the command. Alternatively, it is a printer control unit that develops overlay data into dot data in bitmap format, including a command processing unit 133, a development processing unit 35, and a bit map memory for media data (BMM for media data).
36, bitmap memory for overlay data (BMM for overlay data) 37, and horizontal print position storage area 3
2. The RAM (Random Access Memory), which has the print position storage area 34, etc., must be used.

コマンド処理部133は、上記インターフェースを介し
てホストコンピュータ120から送信されてくる印刷位
置指定コマンド133a、オーバレイデータ・コマンド
133 b、メディアデータ・コマンド133c、及び
印刷位置指定コマンド133d等の各コマンドを受信す
るブロックであり、その人力されるコマンドに応した処
理を行う。
The command processing unit 133 receives commands such as a print position designation command 133a, an overlay data command 133b, a media data command 133c, and a print position designation command 133d sent from the host computer 120 via the above interface. It is a block that performs processing according to the command input manually.

すなわち、印刷位置指定コマンド133aを受信すると
、その指定された印刷位置データを前記印刷位置格納域
34に格納する。また、オーバレイデータ・コマンド1
33bを受信した場合には、その指定されたオーバレイ
データを展開処理部35に出力し、さらにそのオーバレ
イデータをビットマツプ形式のドツトデータに変換する
旨を指示する展開指示信号を出力する。また、メディア
データ・コマンド133Cを受信した場合には、上記オ
ーバレイデータ・コマンド13bのときと同様に、指定
されたメディアデータ及びそのメディアデータをビット
マツプ形式のドツトデータに変換する旨を指示する展開
指示信号を出力する。
That is, upon receiving the print position designation command 133a, the designated print position data is stored in the print position storage area 34. Also, overlay data command 1
33b, it outputs the specified overlay data to the expansion processing section 35, and further outputs an expansion instruction signal instructing to convert the overlay data into dot data in bitmap format. Furthermore, when a media data command 133C is received, the specified media data and an expansion instruction to convert the media data into bitmap format dot data are provided, as in the case of the overlay data command 13b. Output a signal.

また、これは本発明の特徴であるが、ホストコンピュー
タ120から水平印刷位置指定コマンド133dを受信
した場合には、その指定された水平印刷位置データを水
平印刷位置格納域32に格納する。
Further, this is a feature of the present invention, when a horizontal print position designation command 133d is received from the host computer 120, the specified horizontal print position data is stored in the horizontal print position storage area 32.

すなわち、このようにホストコンピュータ120からイ
ンターフェースを介して、プリンタ制御部130内のコ
マンド処理部133に水平印刷位置指定コマンド133
dを送信することにより、ビットマツプ形式に展開され
たメディアデータをメディアデータ用BMM36に格納
する際の原点位置を設定するために必要な水平印刷位置
をオペレータの操作を介することなく、ホストコンピュ
ータ】20で設定できる。
That is, in this way, the horizontal print position designation command 133 is sent from the host computer 120 to the command processing unit 133 in the printer control unit 130 via the interface.
By transmitting d, the host computer can determine the horizontal printing position necessary to set the origin position when storing the media data developed in bitmap format in the media data BMM 36 without operator operation]20 It can be set with .

展開処理部35は、コマンド処理部133から送られて
くるメディアデータ及びオーバレイデータをビットマツ
プ形式のドツトデータに展開して、それぞれメディアデ
ータ用ビット・マツプ・メモリ36、及びオーバレイデ
ータ用ビット・マツプ・メモリ37に格納する。また、
展開処理部35は、上記ビットマツプ形式に展開された
メディアデータをメディアデータ用ビット・マツプ・メ
モリ36に格納する際には、そのメディアデータ用ビッ
ト・マツプ・メモリ36上の展開原点を水平印刷位置格
納域32に格納されている水平印刷位置データと印刷位
置格納域34に格納されている印刷位置データとを加算
することにより得る。また、上記ピントマツプ形式に展
開されたオーバレイデータをオーバレイデータ用BMM
37に格納する際には、印刷位置格納域34に格納され
ている印刷位置データに基づき展開原点を算出する。
The expansion processing unit 35 expands the media data and overlay data sent from the command processing unit 133 into bitmap format dot data, and stores the data in a bitmap memory 36 for media data and a bitmap memory 36 for overlay data, respectively. It is stored in the memory 37. Also,
When storing the media data developed in the bitmap format in the media data bit map memory 36, the development processing unit 35 sets the development origin on the media data bit map memory 36 to the horizontal printing position. It is obtained by adding the horizontal print position data stored in the storage area 32 and the print position data stored in the print position storage area 34. In addition, the overlay data developed in the above focus map format can be used as a BMM for overlay data.
37, the development origin is calculated based on the print position data stored in the print position storage area 34.

(動  作) 次に、上記構成の実施例の動作を説明する。(motion) Next, the operation of the embodiment having the above configuration will be explained.

第3図は、本実施例における印刷方式を示す図である。FIG. 3 is a diagram showing the printing method in this embodiment.

同図において、200は印刷用紙を示しており、黒塗り
の星印(★)で示された201が前記印刷指定コマンド
により指定される印刷位置である。
In the figure, 200 indicates printing paper, and 201 indicated by a black star (★) is the printing position specified by the print designation command.

この印刷位置は、印刷用紙の左上隅を原点(0゜0)と
する直行X−Yドツト座標で表される。また、黒丸で示
された202がオーバレイデータの展開原点を示してお
り、白ヌキの三角印(△)203がメディアデータの展
開原点を示している。
This printing position is represented by orthogonal X-Y dot coordinates with the origin (0°0) at the upper left corner of the printing paper. Further, a black circle 202 indicates the origin of overlay data development, and a white triangle mark (△) 203 indicates the origin of media data development.

同図に示すように、オーバレイデータの展開原点202
及びメディアデータ展開原点203は、印刷位置201
を基準として設定される。同図に示す例では、オーバレ
イデータの展開原点202は、そのY座標が印刷位置の
Y座標と同一であり、そのX座標が印刷位置201のX
座標から、αドツト、Xの負の方向に移動した位置とな
る。このαドツトは、例えば予め定められた既定値、ま
たはオペレータにより設定された値となる。また、メデ
ィアデータの展開原点203は、印刷位置の展開原点2
03に、水平印刷位置データを加算して得た値となる。
As shown in the figure, the expansion origin 202 of overlay data
And the media data development origin 203 is the print position 201
is set based on. In the example shown in the figure, the development origin 202 of overlay data has the same Y coordinate as the print position, and its X coordinate has the same X coordinate as the print position 201.
This is the position moved from the coordinates in the negative direction of α dot and X. This α dot is, for example, a predetermined default value or a value set by the operator. Furthermore, the development origin 203 of the media data is the development origin 2 of the printing position.
The value is obtained by adding horizontal printing position data to 03.

したがって、メディアデータの展開原点は指定される水
平印刷位置に対応して可変する。
Therefore, the development origin of media data varies depending on the designated horizontal printing position.

続いて、ホストコンピュータ120から送信されてくる
印刷出力に係わるコマンドに応じて、プリンタ制御部1
30が行う印刷出力制御の処理を、第4図のフローチャ
ートを参照しながら説明する。
Next, in response to a command related to print output transmitted from the host computer 120, the printer control unit 1
The print output control process performed by the printer 30 will be described with reference to the flowchart in FIG.

コマンド処理部133は、特に図示していないインター
フェースを介してコマンドを受信すると、まずそのコマ
ンドがメディアデータ・コマンド133cであるか否か
判別しくsl)、メディアデータ・コマンド)133c
でなければ、続いて展開処理部35が、現在メディアデ
ータ又はオーバレイデータをビットマツプ形式のドツト
データに展開している最中であるか否か判別しく未展開
データがあるか否か判別し)(S2)、展開している最
中でなければ、続いてメディアデータ用BMM36又は
オーバレイデータ用8MM37内に、印刷出力すべきペ
ージが残されているか否か判別する(未印刷ページがあ
るか否か判別する)  (S3)。
When the command processing unit 133 receives a command via an interface (not particularly shown), it first determines whether the command is a media data command 133c or not.
If not, then the expansion processing unit 35 determines whether or not the media data or overlay data is currently being expanded into bitmap format dot data, and determines whether there is undeveloped data. S2), if the expansion is not in progress, then it is determined whether there are any remaining pages to be printed out in the BMM 36 for media data or 8MM 37 for overlay data (whether there are any unprinted pages or not). (S3).

そして、いずれのBMM36,37内にも、印刷出力す
べきデータが残されていなければ、次に受信したコマン
ドが印刷位置指定コマンド133aであるか否か判別し
くS 4 ) 、印刷位置指定コマンド133aであれ
ば、そのコマンドにより指定された印刷位置データを印
刷位置格納域34に格納する(S5)。
If no data to be printed remains in either BMM 36, 37, it is determined whether the next received command is the print position designation command 133a (S4), and the print position designation command 133a If so, the print position data specified by the command is stored in the print position storage area 34 (S5).

一方、上記処理S4で印刷位置指定コマンド133aが
指定されていなければ、続いて水平印刷位置コマンド1
33dが送信されてきたか否か判別しく36)、水平印
刷位置指定コマンド133dであれば、そのコマンドに
より指定された水平印刷位置データを水平印刷位置格納
域34に格納する(S7)。
On the other hand, if the print position designation command 133a is not specified in the above process S4, then the horizontal print position command 1
33d is transmitted (36), and if it is the horizontal print position designation command 133d, the horizontal print position data designated by the command is stored in the horizontal print position storage area 34 (S7).

上記動作により、例えばシステムの立ち上げ時等のよう
に、印刷すべきメディアデータ又はオーバレイデータを
ビットマツプ形式のドツトデータに展開しておらず、ま
た印刷出力も行っていないときに、ホストコンピュータ
120からプリンタ制御部130に印刷位置指定コマン
ド133a又は水平印刷位置指定コマンド133dを送
信すると、印刷指定コマンド133aにより指定された
印刷位置データ又は水平印刷位置指定コマンド133d
により指定された水平印刷位置データが、それぞれ印刷
位置格納域32又は水平印刷位置格納域32に格納され
る。
With the above operation, when the media data or overlay data to be printed has not been developed into dot data in bitmap format, and the printout has not been performed, such as when starting up the system, the host computer 120 When a print position designation command 133a or horizontal print position designation command 133d is sent to the printer control unit 130, the print position data or horizontal print position designation command 133d specified by the print designation command 133a is sent.
The horizontal print position data specified by is stored in the print position storage area 32 or the horizontal print position storage area 32, respectively.

一方、上記処理S6で、水平印刷指定コマンド133d
でなくオーバレイデータ・コマンド133bであると判
別すれば、まず印刷位置格納域34に格納されている印
刷位置データのY座標から予め設定されているαの値を
減算し、ビットマツプ形式のドツトデータに展開された
ドツトデータをオーバレイデータ用BMM37に格納す
る際の展開原点のドツト座標を算出しくS8)、上記オ
ーバレイ用データのドツトデータをその展開原点を始点
として、オーバレイデータ用BMM37に作成(描画)
する(S9)。
On the other hand, in the above process S6, the horizontal print designation command 133d
If it is determined that it is not the overlay data command 133b, then the preset α value is subtracted from the Y coordinate of the print position data stored in the print position storage area 34, and the data is converted into dot data in bitmap format. Calculate the dot coordinates of the expansion origin when storing the expanded dot data in the overlay data BMM 37 (S8), and create (draw) the dot data of the overlay data in the overlay data BMM 37 with the expansion origin as the starting point.
(S9).

上記動作により、未展開データが無く、未印刷ページも
無いときに、ホストコンピュータ120から、プリンタ
制御部130にインターフェースを介してオーバレイデ
ータ・コマンド133bを送信すると、そのオーバレイ
データ・コマンド133bにより指定されたオーバレイ
データが展開処理部35により直ちに、ビットマツプ形
式のドツトデータに展開され、その展開されたドツトデ
ータがオーバレイデータ用デー58MM37内の当該ペ
ージの当該領域に作成(描画)される。
As a result of the above operation, when there is no undeveloped data and no unprinted pages, when the host computer 120 sends the overlay data command 133b to the printer control unit 130 via the interface, the overlay data command 133b specifies the The developed overlay data is immediately developed into dot data in a bitmap format by the development processing section 35, and the developed dot data is created (drawn) in the relevant area of the relevant page in the overlay data data 58MM37.

そして、このオーバレイデータ用8MM37内に作成さ
れたオーバレイデータは、ホストコンピュータ120か
ら送信される印刷指示のコマンド、又はオペレータが操
作パネル134の所定スイッチを操作することにより指
示される印刷指示命令に応じて、前記メディアデータ用
BMM36に格納されている対応するページのメディア
データとOR演算され、そのOR演算により得られたイ
メージデータが、ページ単位で印刷機構部により外部に
印刷出力される。
The overlay data created in the overlay data 8MM 37 is generated in response to a print instruction command transmitted from the host computer 120 or a print instruction command instructed by the operator operating a predetermined switch on the operation panel 134. Then, an OR operation is performed with the media data of the corresponding page stored in the media data BMM 36, and the image data obtained by the OR operation is printed out to the outside by the printing mechanism section page by page.

一方、上記処理S1でメディアデータ・コマンド133
cであれば、続いて、印刷位置格納域34に印刷位置デ
ータと水平印刷位置格納域32に格納されている水平印
刷位置データとの加算を行い、その加算結果を、上記メ
ディアデータ・コマンドにより指定されるメディアデー
タをメディアデータ用BMM36にビットマツプ形式の
ドツトデータに展開して格納する際の展開原点(上記ド
ツトデータの格納先頭位置)に設定しく310)、上記
指定されたメディアデータを各文字のドツトイメージデ
ータを記憶しているフォントメモリ等を用いて、ビット
マツプ形式のドツトデータに展開し、そのドツトデータ
を上記展開原点を始点として、メディアデータ用8MM
34内の当該ページに作成(描画)する(Sll)。
On the other hand, in the above process S1, the media data command 133
If c, then the print position data stored in the print position storage area 34 and the horizontal print position data stored in the horizontal print position storage area 32 are added, and the addition result is added using the above media data command. When the specified media data is expanded and stored in bitmap format dot data in the media data BMM 36, the expansion origin (the storage start position of the above dot data) should be set (310), and the specified media data is converted into each character. Using a font memory, etc. that stores the dot image data of
34 (Sll).

上記動作により、ホストコンピュータ120からプリン
タ制御部130にインターフェースを介しメディアデー
タ・コマンド133cを送信すると、そのメディアデー
タ・コマンドにより指定されたメディアデータのビット
マツプ形式に展開されたドツトデータが、上記処理S1
0で設定された展開原点を始点として、メディアデータ
用BMM36の当該ページの当該領域にイ乍威される。
As a result of the above operation, when the host computer 120 transmits the media data command 133c to the printer control unit 130 via the interface, the dot data expanded into a bitmap format of the media data specified by the media data command is transferred to the printer controller 130 in the above process S1.
Starting from the expansion origin set as 0, the data is loaded into the corresponding area of the corresponding page of the media data BMM 36.

一方、上記処理S2で、展開処理部35が印刷すべきメ
ディアデータを全て、ビットマツプ形式のドツトデータ
に展開して、メディアデータ用8MM36内に格納(措
N)していなければ、展開処理部35が、現在メディア
データをビットマツプ形式のドツトデータに展開して、
メディアデータ用BMM36に作成(描画)する展開動
作を行っているか否か判別しく512)、その展開動作
を行っていなければ、展開処理部35に対して、上記展
開動作を開始させる指示信号を出力し、展開処理部35
が上記展開動作を行うように起動させ(S13)、再び
上記処理S2に戻る。一方、上記処理312で展開処理
部35が上記展開動作を行っている最中であれば、再び
上記処理S2に戻る。
On the other hand, in the above process S2, if the expansion processing unit 35 has not expanded all the media data to be printed into bitmap format dot data and stored it in the media data 8MM 36 (No), the expansion processing unit 35 However, currently the media data is expanded to bitmap format dot data,
It is determined whether or not the expansion operation to create (draw) the media data BMM 36 is being performed (512), and if the expansion operation is not being performed, an instruction signal is output to the expansion processing unit 35 to start the expansion operation. The expansion processing unit 35
is activated to perform the above expansion operation (S13), and the process returns to the above process S2 again. On the other hand, if the expansion processing section 35 is in the process of performing the expansion operation in the process 312, the process returns to the process S2.

上記動作により、コマンド処理部133がホストコンピ
ュータ120から上記印刷位置指定コマンド133a、
上記水平印刷位置指定コマンド133d1又は上記オー
バレイデータ・コマンド133bを受信した場合には、
展開処理部35内の1又は複数のページ・バッファ内(
1ペ一ジ分のイメージデータを格納するバッファ)に格
納されているメディアデータが全てビットマツプ形式の
ドツトデータに展開され、メディアデータ用BMM36
の所定ページに格納(描画)される。
With the above operation, the command processing unit 133 receives the print position designation command 133a from the host computer 120,
When the horizontal print position designation command 133d1 or the overlay data command 133b is received,
In one or more page buffers in the expansion processing unit 35 (
All the media data stored in the buffer (which stores one page's worth of image data) is developed into bitmap format dot data, and the media data BMM36
is stored (drawn) on a predetermined page.

そして、上述のようにして、展開処理部35が、ページ
バッファに格納されている全てのメディアデータを、ビ
ットマツプ形式のドツトデータに展開してメディアデー
タ用BMM36に格納すると、続いて前記処理S3によ
り、印刷機構部がメディアデータ用BMM36に格納さ
れているビットマツプ形式のドツトデータに展開された
イメージデータを全て印刷出力しているか否か判別し、
まだ全ての上記イメージデータを印刷出力していなけれ
ば、続いて上記印刷機構部が、現在上記イメージデータ
と上記オーバレイデータとをOR演算することにより得
られる帳票データ等の印刷出力を行っているか否か判別
しく514)、その印刷出力を行っていなければ、印刷
機構部に上記印刷出力を行う旨を指示する信号を出力す
る(S15)。
Then, as described above, when the expansion processing unit 35 expands all the media data stored in the page buffer into bitmap format dot data and stores it in the media data BMM 36, the process S3 is performed. , determine whether the printing mechanism section prints out all the image data developed into bitmap format dot data stored in the media data BMM 36;
If all of the above image data has not been printed out yet, then it is determined whether the printing mechanism section is currently printing out form data etc. obtained by ORing the above image data and the above overlay data. If the print output is not being performed, a signal is output to the printing mechanism unit instructing the print output to be performed (S15).

そして、上記指示を行った後、再び前記処理S3に戻る
After giving the above instruction, the process returns to the process S3 again.

一方、上記処理S14で印刷機構部が上記印刷出力を行
っている最中であれば、直ちに前記処理S3に戻る。
On the other hand, if the printing mechanism section is in the process of performing the printout in the process S14, the process immediately returns to the process S3.

上記動作により、コマンド処理部133が印刷位置指定
コマンド133a、水平印刷位置指定コマンド133d
、、又はイメージデータ・コマンド133Cを受信した
場合には、展開処理部35がページバッファ内に格納し
ている全ての未展開メディアデータがビットマツプ形式
のドツトデータに展開されてメディアデータ用BMM3
6に格納(描画)され、さらにメディアデータ用BMM
36に格納されているドツトデータに展開したメディア
データを含む全てのメディアデータが、印刷機構部によ
り所定の印刷用紙に出力された後に、上記各コマンドに
対応した処理が行われる(S5゜37.38〜S9)。
By the above operation, the command processing unit 133 outputs the print position designation command 133a, horizontal print position designation command 133d,
, or when the image data command 133C is received, the expansion processing unit 35 expands all the unexpanded media data stored in the page buffer into bitmap format dot data and sends it to the media data BMM 3.
6 is stored (drawn) in BMM for media data.
After all the media data including the media data expanded into dot data stored in 36 is outputted by the printing mechanism section onto a predetermined printing paper, processing corresponding to each of the above commands is performed (S5.37. 38-S9).

これは、水平印刷位置指定コマンド133dを受信した
場合、そのコマンド受信後に受信する印刷データ(メデ
ィアデータとオーバレイデータとをORに演算すること
により得られるデータ)の印刷開始位置を上記水平印刷
位置指定コマンド133dにより新たに指定された水平
印刷位置に応じて、変更させるためである。
This means that when the horizontal print position designation command 133d is received, the print start position of print data (data obtained by ORing media data and overlay data) received after receiving the command is specified as the horizontal print position. This is to change the horizontal printing position according to the newly specified horizontal printing position by the command 133d.

また、印刷位置指定コマンド133aも、上記水平印刷
位置指定コマンド133dと同様、印刷データの印刷開
始位置を変更させるコマンドであるため、上記水平印刷
指定コマンド133dと同様、未展開の印刷データを全
て展開、印刷出力させた後、そのコマンドにより新たに
指定された印刷位置データを印刷位置格納域34に格納
する。
Further, the print position designation command 133a is also a command for changing the printing start position of print data, similar to the horizontal print position designation command 133d described above, and therefore, like the horizontal print designation command 133d described above, all undeveloped print data is , after printing, the print position data newly specified by the command is stored in the print position storage area 34.

さらに、オーバレイデータ・コマンド133bは、帳票
のフォーマットを決定する外枠や内枠等の枠線及び項目
名等から戒るオーバレイデータを指定するコマンドであ
るため、そのコマンドの受信前に受信されたメディアデ
ータは、その新たに受信されたオーバレイデータ・コマ
ンド133bにより指定される帳票形式ではなく、上記
メディアデータ・コマンド133aが受信される前に受
信されたオーバレイデータ・コマンド133bにより指
定される帳票形式で印刷出力するためである。
Furthermore, since the overlay data command 133b is a command that specifies overlay data that should be avoided based on the frame lines such as the outer frame and inner frame that determine the format of the form, and item names, the overlay data command 133b is The media data is not in the form specified by the newly received overlay data command 133b, but in the form specified by the overlay data command 133b received before the media data command 133a was received. This is for printing out.

尚、上記実施例では、メディアデータの展開原点を基準
となる印刷位置データ(基準原点)に対して、χ方向の
ドツト単位の変位情報である水平印刷位置指定により行
っているが、上記基準原点に対してX方向のみならずY
方向の変位情報を指定することにより、メディアデータ
の展開原点を設定することも可能である。
In the above embodiment, the origin of the development of media data is specified by horizontal printing position, which is displacement information in units of dots in the χ direction, with respect to the print position data (reference origin) that serves as a reference. Not only in the X direction but also in the Y direction
By specifying directional displacement information, it is also possible to set the development origin of media data.

また、上記メディアデータの展開原点の設定を、オペレ
ータの操作と併用して行えるようにしてもよい。
Further, the development origin of the media data may be set in conjunction with an operator's operation.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、従来のようにオペレータが操作パネル
上のスイッチ操作を行わずとも、ホストコンピュータ等
の上位装置からプリンタ装置に対しコマンドを送信する
ことにより、メディアデータの印刷開始位置を自由に設
定できるようにしたので、プリンタ装置の運用効率が向
上すると共に、人為的な操作ミスを防止することができ
、印刷位置指定の信頼性が向上する。
According to the present invention, the printing start position of media data can be freely determined by sending a command from a host computer or other host device to a printer device without the operator having to operate a switch on an operation panel as in the past. Since the settings can be made, the operational efficiency of the printer device is improved, human operational errors can be prevented, and the reliability of print position designation is improved.

第2図は、本発明に係る一実施例のシステム構成国、 第3図は、オーバレイデータ及びメディアデータの展開
原点(印刷開始位置)の設定方法を説明する図、 第4図は、プリンタ制御部により行われるメディアデー
タ及びオーバレイデータのビット・マツプ・メモリへの
展開処理を説明するフローチャート、 第5図は、従来のプリンタの印刷制御方式を説明する図
である。
Figure 2 shows the system configuration of an embodiment of the present invention; Figure 3 shows how to set the development origin (print start position) of overlay data and media data; Figure 4 shows printer control. FIG. 5 is a flowchart illustrating processing of expanding media data and overlay data into a bit map memory performed by the printer section. FIG. 5 is a diagram illustrating a print control system of a conventional printer.

工・・・コマンド判別手段、 2・・・印刷位置情報記憶手段、 3・・・印刷開始位置設定手段。Engineering...Command discrimination means, 2...Print position information storage means, 3...Printing start position setting means.

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

第1図は、本発明の原理説明図、 FIG. 1 is a diagram explaining the principle of the present invention,

Claims (1)

【特許請求の範囲】  上位装置から送信されてくるメディアデータが、指示
された印刷位置から印刷出力されるように制御するプリ
ンタ装置の印刷位置制御方式において、上位装置から送
信されてくる前記メディアデータの印刷開始位置に係わ
る印刷位置情報を指示するコマンドを判別するコマンド
判別手段(1)と、該コマンド判別手段により判別され
た前記メディアデータの印刷位置情報を記憶する印刷位
置情報記憶手段(2)と、 該印刷開始位置記憶手段に記憶されている前記メディア
データの印刷位置情報に基づいて、前記メディアデータ
の印刷開始位置を設定する印刷開始位置設定手段(3)
と、 を具備することを特徴とするプリンタ装置の印刷位置制
御方式。
[Scope of Claims] In a print position control method for a printer device that controls media data sent from a host device so that it is printed out from a designated print position, the media data sent from the host device a command discriminating means (1) for discriminating a command instructing print position information related to a print start position of the media; and a print position information storage means (2) for storing the print position information of the media data discriminated by the command discriminating means. and print start position setting means (3) for setting a print start position of the media data based on the print position information of the media data stored in the print start position storage means.
A printing position control method for a printer device, comprising:
JP2053789A 1990-03-07 1990-03-07 Printing position control system of printer Pending JPH03256773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2053789A JPH03256773A (en) 1990-03-07 1990-03-07 Printing position control system of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2053789A JPH03256773A (en) 1990-03-07 1990-03-07 Printing position control system of printer

Publications (1)

Publication Number Publication Date
JPH03256773A true JPH03256773A (en) 1991-11-15

Family

ID=12952585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2053789A Pending JPH03256773A (en) 1990-03-07 1990-03-07 Printing position control system of printer

Country Status (1)

Country Link
JP (1) JPH03256773A (en)

Similar Documents

Publication Publication Date Title
JP2755308B2 (en) Output method and device
EP0387005A2 (en) Output apparatus
EP0684546B1 (en) Printing apparatus, printing system, and a method for acquiring character resources of the printing system
US6317193B2 (en) Image forming apparatus
JPH03256773A (en) Printing position control system of printer
JP2716087B2 (en) Output device
JPH07105882B2 (en) output method
JP3184687B2 (en) Information processing method, information processing apparatus, output method, output apparatus, and printing system
JPH10173897A (en) Image processing unit, image processing system and image processing method
JP2004062431A (en) Information processing device and method, and print control program
JPH05270097A (en) Method and apparatus for printing
JP3129133B2 (en) Color printing equipment
JPH0691979A (en) Method of processing form data in image forming apparatus
JP3283744B2 (en) Output system and data processing method
JP2737883B2 (en) Output control device
JPH08335150A (en) Printing system
JP2001014130A (en) Display controller, display control method and storage medium
JPH09207414A (en) Information processing device and method
JP2922676B2 (en) Image forming device
JPH0615908A (en) Printing control apparatus
JPH04271474A (en) System for forming image
JPH11192761A (en) Printer and recording medium
JPH09295432A (en) Printer and print controlling method
JPH05212916A (en) Printer device
JP2784823B2 (en) Image editing printing method of printer