JPH04344925A - Printing controller - Google Patents

Printing controller

Info

Publication number
JPH04344925A
JPH04344925A JP3117720A JP11772091A JPH04344925A JP H04344925 A JPH04344925 A JP H04344925A JP 3117720 A JP3117720 A JP 3117720A JP 11772091 A JP11772091 A JP 11772091A JP H04344925 A JPH04344925 A JP H04344925A
Authority
JP
Japan
Prior art keywords
control code
printer
control
printing
print data
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
JP3117720A
Other languages
Japanese (ja)
Inventor
Atsushi Nakahata
中畑 敦
Satoshi Kuninaka
國仲 聡
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3117720A priority Critical patent/JPH04344925A/en
Publication of JPH04344925A publication Critical patent/JPH04344925A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a controller capable of controlling printing without imposing any special burden on a printer side. CONSTITUTION:The kind of the printer 38 of a connected destination designated from a keyboard, etc., is discriminated, and on the other hand, its own control code 34 for controlling the printing of the printer 38 is discriminated from among printing data to be processed by a prescribed unit like a record unit. Then, a printing data processing part 37 converts its own control code into the control code of a printer 38 side by using a control command correspondence table 35 to meet the kind of the printer 38 and the control code table 34 for conversion into the code of the printer side, and sends it to the printer 38. Thus, the control code need not be converted at the printer 38 side.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は例えばホストコンピュー
タのように印刷データをプリンタに対して送出する印刷
制御装置に係わり、詳細には各種のプリンタを接続可能
にした印刷制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print control device, such as a host computer, which sends print data to a printer, and more particularly to a print control device to which various printers can be connected.

【0002】0002

【従来の技術】日本語ワードプロセッサやワークステー
ションのような各種の情報処理装置が普及し、オフィス
にはこれらの装置によって作成された印刷データの印刷
を行うプリンタが各種設置されるようになっている。こ
れらの情報処理装置から出力される印字制御のための制
御コードは、その装置が印刷データを作成するときに作
成されたコード情報であり、このような制御コードはそ
の情報処理装置の想定した特定のプリンタに対応するも
のとなっていた。すなわち、同一メーカの情報処理装置
から出力される制御コードでもそのメーカのすべてのプ
リンタを制御することができない場合があり、異なった
メーカのプリンタに対しては印字制御を行うことができ
ないのは寧ろ当たり前であった。
[Background Art] Various information processing devices such as Japanese word processors and workstations have become widespread, and offices are now equipped with various printers that print print data created by these devices. . The control codes for printing control output from these information processing devices are code information created when the device creates print data, and such control codes are based on the specific information assumed by the information processing device. It was designed to be compatible with several printers. In other words, a control code output from an information processing device of the same manufacturer may not be able to control all printers of that manufacturer, and may even be unable to control printing for printers of different manufacturers. It was obvious.

【0003】0003

【発明の解決しようとする課題】[Problem to be solved by the invention]

【0004】そこで、従来からプリンタの制御コードを
統一する努力が行われており、一部の装置間では共通し
た制御コードが使用されるようになっている。しかしな
がら、このような共通化した装置以外の装置の間では、
従来と同様に専用の変換器あるいは制御コード変換用の
ソフトウェアを使用せざるを得ず、プリンタの構成や操
作が煩雑になったりプリンタを安価に製作することがで
きないといった問題があった。
[0004] Therefore, efforts have been made to unify the control codes of printers, and common control codes have come to be used among some devices. However, between devices other than such standardized devices,
As in the past, a dedicated converter or software for converting control codes must be used, which poses problems such as the configuration and operation of the printer becoming complicated and the printer not being able to be manufactured at a low cost.

【0005】一方、ある種のホストコンピュータでは、
制御コードの代わりに印字するデータそのものを使用し
て、改ページや改紙あるいは印字色や印刷用紙の変更等
の制御を行わせるようにしていた。すなわち、このよう
な装置では事前にプリンタ側に制御コードと通常の印字
データの識別の論理を通知しておき、該当するデータの
論理をとってそれがいずれに該当するかの判別を行わせ
、印字の際の制御を行わせるようにしていた。例えばプ
リンタ側で、ホストコンピュータから送られてきたある
データが数値A以上を表わしているかA未満を表わして
いるかの判別を行わせ、数値A以上を表わしていればそ
れを通常の印字データとして扱わせ、A未満であればこ
れを所定の制御コードと解釈させて改ページ処理等の制
御を行わせるようになっていた。
On the other hand, in some types of host computers,
Instead of the control code, the data itself to be printed was used to control page breaks, paper breaks, and changes in print color and printing paper. In other words, in such a device, the logic for identifying control codes and normal print data is notified to the printer in advance, and the logic of the corresponding data is determined to determine which one it corresponds to. It was designed to control the printing process. For example, the printer side determines whether certain data sent from the host computer represents a value greater than or equal to A or less than A, and if it represents a value greater than or equal to A, it is treated as normal print data. If the value is less than A, this is interpreted as a predetermined control code and control such as page break processing is performed.

【0006】ところが、この方法ではあるデータが制御
コードに相当するかどうかを判別させるための条件を予
めプリンタ側に伝送しておく必要があり、面倒であった
。そこで、ホストコンピュータ側で制御コードに変換す
る方法も提案されたが、これはすでに説明したようにそ
の制御コードがプリンタ側で解釈できなき場合に適用す
ることができないという問題があった。
However, this method requires that conditions for determining whether certain data corresponds to a control code be transmitted to the printer in advance, which is troublesome. Therefore, a method of converting the control code into a control code on the host computer side has been proposed, but as already explained, this method has the problem that it cannot be applied when the control code cannot be interpreted on the printer side.

【0007】そこで本発明の目的は、プリンタ側に特に
負担をかけることなく印刷の制御を行うことのできる印
刷制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a print control device that can control printing without placing any particular burden on the printer.

【0008】請求項1記載の発明では、接続先のプリン
タの種類を判別する種類判別手段と、印刷データの中か
らプリンタの印刷の制御を行うための自己の制御コード
を判別する制御コード判別手段と、自己の制御コードと
各種プリンタそれぞれ独自に用意された制御コードとの
対応関係を記した制御コード対応テーブルと、自己の制
御コードが接続先のプリンタの制御コードと一致しない
とき制御コード対応テーブルを基にしてこれらを接続先
のプリンタの制御コードに変換する制御コード変換手段
と、変換された制御コードを印刷データと共に接続先の
プリンタに送出する送出手段とを印刷制御装置に具備さ
せる。
[0008] In the invention as claimed in claim 1, there are provided a type determining means for determining the type of a connected printer, and a control code determining means for determining its own control code for controlling printing of the printer from print data. , a control code correspondence table that describes the correspondence between the own control code and the control code prepared independently for each printer, and a control code correspondence table when the own control code does not match the control code of the connected printer. The print control device is provided with a control code converting means for converting these into a control code of a connected printer based on the above information, and a sending means for sending the converted control code together with print data to the connected printer.

【0009】すなわち請求項1記載の発明では、印刷デ
ータの中から自己の制御コードを判別し、これをプリン
タ側の制御コードに変換してプリンタに送出することに
して、プリンタ側の負担を軽減し、前記した目的を達成
する。
In other words, in the invention as claimed in claim 1, the own control code is determined from the print data, and this is converted into the printer side control code and sent to the printer, thereby reducing the burden on the printer side. and achieve the above objectives.

【0010】請求項2記載の発明では、接続先のプリン
タの種類を判別する種類判別手段と、レコード単位の印
刷データの先頭位置から所定量だけ離れた位置に特定の
データが配置されているかどうかを判別することにより
、そのレコードがプリンタの印刷の制御を行うための制
御コードを記したレコードか否かを判別する判別手段と
、この判別手段が制御コードを記したレコードであると
判別したそのレコード中の制御コードを読み出す制御コ
ード読出手段と、自己の制御コードと各種プリンタそれ
ぞれ独自に用意された制御コードとの対応関係を記した
制御コード対応テーブルと、制御コード読出手段によっ
て読み出された制御コードが接続先のプリンタの制御コ
ードと一致しないとき制御コード対応テーブルを基にし
てこれらを接続先のプリンタの制御コードに変換する制
御コード変換手段と、変換された制御コードを接続先の
プリンタに送出する送出手段とを印刷制御装置に具備さ
せる。
In the invention as claimed in claim 2, there is provided a type determining means for determining the type of the connected printer, and a type determining means for determining the type of the connected printer, and a type determining means for determining whether specific data is located at a position a predetermined distance from the head position of print data in units of records. a determination means for determining whether or not the record is a record in which a control code for controlling printing of the printer is recorded by determining the record; A control code reading means for reading out control codes in a record, a control code correspondence table that describes the correspondence between own control codes and control codes prepared independently by each printer, and a control code reading means for reading control codes read by the control code reading means. A control code conversion means converts the control code to the control code of the destination printer based on a control code correspondence table when the control code does not match the control code of the destination printer, and a control code conversion means that converts the control code to the control code of the destination printer. The print control device is provided with a sending means for sending out the print data.

【0011】すなわち請求項2記載の発明では、レコー
ド単位で処理する印刷データのそれぞれ先頭位置から所
定量だけ離れた位置に特定のデータが配置されているか
どうかを判別することで、そのレコードがプリンタの印
刷の制御を行うための制御コードを記したレコードか否
かを判別する。そして、制御コードを記したレコードの
場合には、ここから自己の装置側の制御コードを抽出し
、これをプリンタ側の制御コードに変換してプリンタに
送出する。これにより、プリンタ側の負担を軽減して、
前記した目的を達成する。
In other words, in the invention as claimed in claim 2, by determining whether or not specific data is located at a position a predetermined amount away from the head position of each print data processed in record units, the record is processed by the printer. It is determined whether the record contains a control code for controlling the printing of the record. If the record includes a control code, the control code for the own device is extracted from this record, converted to a control code for the printer, and sent to the printer. This reduces the burden on the printer and
Achieve the above objectives.

【0012】請求項3記載の発明では、接続先のプリン
タの種類を判別する種類判別手段と、印刷データのうち
の所定のデータを予め定めた値と比較する比較手段と、
この比較手段の比較結果をプリンタ側の制御内容と対比
させた比較結果対応テーブルと、各種制御内容とプリン
タそれぞれに独自に用意された制御コードとの対応関係
を記した制御コード対応テーブルと、比較結果対応テー
ブルによって対比された制御内容を接続先のプリンタに
対応する制御コードに変換する制御コード変換手段と、
変換された制御コードを接続先のプリンタに送出する送
出手段とを印刷制御装置に具備させる。
[0012] In the invention as set forth in claim 3, a type determining means for determining the type of a connected printer; a comparing means for comparing predetermined data of the print data with a predetermined value;
A comparison result correspondence table that compares the comparison results of this comparison means with the control contents on the printer side, and a control code correspondence table that describes the correspondence between various control contents and control codes uniquely prepared for each printer. a control code conversion means for converting the control contents compared by the result correspondence table into a control code corresponding to a connected printer;
The printing control device is equipped with a sending means for sending the converted control code to a connected printer.

【0013】すなわち請求項3記載の発明では、印刷デ
ータのうちの所定のデータを論理的に比較してその結果
によってこれを通常のデータとみるか制御内容を表わし
たデータと見るかの判別を行い、制御内容を表わしたデ
ータと見る場合には、これを対応するプリンタの制御コ
ードに変換してプリンタに送出することにし、プリンタ
側の負担を軽減して、前記した目的を達成する。
In other words, in the invention as claimed in claim 3, predetermined data of the print data is logically compared and based on the result, it is determined whether the data is regarded as normal data or as data representing control contents. If the data is viewed as data representing the control content, it is converted into a corresponding printer control code and sent to the printer, thereby reducing the burden on the printer side and achieving the above-mentioned purpose.

【0014】[0014]

【実施例】以下実施例につき本発明を詳細に説明する。EXAMPLES The present invention will be explained in detail with reference to Examples below.

【0015】図1は本発明の一実施例における印刷制御
装置の構成を表わしたものである。この印刷制御装置1
0はCPU(中央処理装置)11を備えている。CPU
11は、データバス等のバス12を通じて、作業用メモ
リ13、入力回路14、ディスク制御回路15、表示制
御回路16および通信制御回路17と接続されている。 ここで作業用メモリ13は、この装置の制御を行うため
のプログラムや各種データを一時的に格納するメモリで
ある。入力回路14はマウス21を接続したキーボード
22と接続されており、キー情報や座標データ等の入力
を行う回路である。ここで、キーボード22は接続した
プリンタの種類を入力することができる他、必要に応じ
て印字する文書の入力も行うことができるようになって
いる。マウス21はポインティング・デバイスの一種で
ある。ディスク制御回路15は、磁気ディスク23と接
続されており、これに対してデータの入出力を行うよう
になっている。ここで磁気ディスク23には、この装置
を制御するプログラムや、印刷のための保存データ等の
データが格納されるようになっている。表示制御回路1
6は、CRT24と接続されておりこの表示を制御する
ようになっている。通信制御回路17はケーブル25を
介して図示しないプリンタと接続されるようになってい
る。
FIG. 1 shows the configuration of a printing control device in one embodiment of the present invention. This printing control device 1
0 is equipped with a CPU (central processing unit) 11. CPU
11 is connected to a working memory 13, an input circuit 14, a disk control circuit 15, a display control circuit 16, and a communication control circuit 17 through a bus 12 such as a data bus. The working memory 13 is a memory that temporarily stores programs and various data for controlling this device. The input circuit 14 is connected to a keyboard 22 to which a mouse 21 is connected, and is a circuit for inputting key information, coordinate data, etc. Here, the keyboard 22 can be used to input the type of printer connected, and also input a document to be printed if necessary. The mouse 21 is a type of pointing device. The disk control circuit 15 is connected to the magnetic disk 23, and inputs and outputs data to and from the magnetic disk 23. Here, the magnetic disk 23 is configured to store data such as a program for controlling this apparatus and data to be saved for printing. Display control circuit 1
6 is connected to the CRT 24 to control this display. The communication control circuit 17 is connected to a printer (not shown) via a cable 25.

【0016】図2は、この印刷制御装置の構成を原理的
に表わしたものである。印刷制御装置10は図1に示し
た磁気ディスク23上に、(1)接続するプリンタのタ
イプを指定するプリンタ定義31と、(2)印刷データ
32と、(3)印刷制御レコードを定義する印刷制御レ
コード定義33と、(4)制御コード表34および(5
)制御コマンド対応表35のそれぞれを格納している。
FIG. 2 shows the principle of the configuration of this printing control device. The print control device 10 stores (1) a printer definition 31 that specifies the type of printer to be connected, (2) print data 32, and (3) a print control record that defines a print control record on the magnetic disk 23 shown in FIG. Control record definition 33, (4) control code table 34 and (5)
) Each of the control command correspondence tables 35 is stored.

【0017】ここで、印刷データ32は、印刷データ入
力部36に読み込まれ、ここに一時的に蓄えられた後、
印刷データ処理部37に供給されるようになっている。 印刷データ処理部37には、プリンタ定義31、印刷制
御レコード定義33、制御コード表34、制御コマンド
対応表35のそれぞれが供給され、印刷データ32の制
御コードの部分を、この印刷制御装置10に接続された
プリンタ38に合った制御コードに変換する処理を行う
。このようにして得られた印刷データは、印刷データ出
力部39に入力された後、ここからプリンタ38に出力
され、所望の印字が行われるようになっている。
Here, the print data 32 is read into the print data input section 36, and after being temporarily stored there,
The data is supplied to the print data processing section 37. The print data processing unit 37 is supplied with a printer definition 31, a print control record definition 33, a control code table 34, and a control command correspondence table 35, and inputs the control code portion of the print data 32 to the print control device 10. A process of converting the control code to a control code suitable for the connected printer 38 is performed. The print data obtained in this manner is input to the print data output unit 39 and then output from there to the printer 38, so that desired printing can be performed.

【0018】図3は、プリンタ定義のデータフォーマッ
トを表わしたものである。プリンタ定義31には、印刷
対象となるプリンタの種別としてのプリンタ・タイプが
図2に示したキーボードから入力されるようになってい
る。
FIG. 3 shows the printer definition data format. In the printer definition 31, a printer type as a type of printer to be printed is inputted from the keyboard shown in FIG.

【0019】図4は、印刷データのレコードのフォーマ
ットを表わしたものである。このように印刷データ32
はレコード41を単位として処理されるようになってい
る。
FIG. 4 shows the format of a print data record. In this way, print data 32
is processed in units of records 41.

【0020】図5は、印刷制御レコード定義のフォーマ
ットと、印刷データの比較方法を表わしたものである。 印刷制御レコード定義33は、印刷データのレコード4
1におけるその先頭からの開始位置と定義文字およびそ
の定義文字の長さを表わしたデータから構成されている
。この定義文字の後に、各種制御を指示するための制御
コマンドが格納されている。
FIG. 5 shows the format of the print control record definition and the method of comparing print data. The print control record definition 33 is the record 4 of print data.
It consists of data representing the starting position from the beginning of 1, a defined character, and the length of the defined character. After this definition character, control commands for instructing various controls are stored.

【0021】図6は、制御コマンド対応表のフォーマッ
トと、次に説明する制御コード表の対応関係を表わした
ものである。図5で示した制御コマンドは印刷制御装置
側の立場から作成されたものであり、これをプリンタ側
の制御コードに変換する必要がある。制御コマンド対応
表35には、それぞれのプリンタ・タイプごとに制御コ
マンドの一覧を表わした制御コマンド表名が記されてい
る。接続されたプリンタに対応する制御コマンド表名が
検索されたら、この表から制御コマンド名とプリンタ側
の制御コードに変換するための制御コード表が明らかに
なる。
FIG. 6 shows the correspondence between the format of the control command correspondence table and the control code table described below. The control commands shown in FIG. 5 are created from the standpoint of the printing control device, and must be converted into control codes for the printer. The control command correspondence table 35 includes control command table names representing a list of control commands for each printer type. When the control command table name corresponding to the connected printer is retrieved, a control code table for converting the control command name and printer-side control code is revealed from this table.

【0022】図7は、制御コード表のフォーマットを表
わしたものである。制御コード表34には、変換前の制
御コマンドごとに、変換後の制御コードの長さとその制
御コードの内容とが組となって記されている。制御コー
ドの長さは、それぞれのプリンタによって異なる場合が
あるので、その長さを表示するようになっている。
FIG. 7 shows the format of the control code table. In the control code table 34, for each control command before conversion, the length of the control code after conversion and the content of the control code are written as a set. Since the length of the control code may vary depending on each printer, the length is displayed.

【0023】図8は、この印刷制御装置の操作の概要を
表わしたものである。印刷制御装置の操作者は、この装
置に接続されるプリンタ38(図2)に印刷データを送
出する前にキーボード22から諸情報の入力を行う(ス
テップS101)。ここで諸情報とは、プリンタ定義3
1、印刷制御レコード定義33、制御コード表34およ
び制御コマンド対応表35をいう。
FIG. 8 shows an overview of the operation of this printing control device. The operator of the printing control device inputs various information from the keyboard 22 before sending print data to the printer 38 (FIG. 2) connected to this device (step S101). Here, various information refers to printer definition 3.
1, print control record definition 33, control code table 34, and control command correspondence table 35.

【0024】これらの情報の入力が行われたら、このプ
リンタに送出する印刷データが1レコード分だけ入力さ
れる(ステップS102)。この入力レコードに対して
は、図5に示したようにそのレコードの所定位置に定義
文字が存在するかどうかの判別が行われる(ステップS
103)。この結果として定義文字が存在しなかった場
合には(N)、このレコードは印刷内容としての印字デ
ータそのものか、この印刷制御装置の想定していない制
御コードから構成されたものなので、これをなんら変換
することなくプリンタ38側に送出する(ステップS1
04)。後者の場合、プリンタ38は制御コードをその
まま印字することになるので、エラーによってこのよう
な結果が生じた可能性がある場合には、この印字内容を
基にしてこれを確認することができる。
Once these pieces of information have been input, print data for one record to be sent to this printer is input (step S102). For this input record, it is determined whether a defining character exists at a predetermined position in the record as shown in FIG.
103). If the result is that the defined character does not exist (N), this record is composed of print data itself as print content or a control code that is not expected by this printing control device, so please do not change it in any way. Send to the printer 38 side without conversion (step S1
04). In the latter case, the printer 38 will print the control code as is, so if there is a possibility that such a result has occurred due to an error, it can be confirmed based on the printed content.

【0025】プリンタに1レコード分の印刷データを送
出したら、CPU11は後続の印刷データが存在するか
どうかの判別を行う(ステップS105)。印刷データ
が存在すれば(Y)、ステップS102に戻って次の1
レコード分の印刷データを処理のために入力する。
After sending one record worth of print data to the printer, the CPU 11 determines whether or not subsequent print data exists (step S105). If print data exists (Y), return to step S102 and print the next one.
Input print data for records for processing.

【0026】一方、ステップS103でそのレコードの
所定位置に定義文字が存在した場合には(Y)、図5に
示したようにそのレコードの定義文字に続いて配置され
た制御コマンドが読み出される(ステップS106)。 そして、この制御コマンドを基にしてプリンタ・タイプ
の一致する制御コード表34を作業用メモリ13(図1
)に入力する(ステップS107)。そして、この制御
コード表34における対応する制御コードをそのコード
長分だけプリンタ38に転送する(ステップS108)
。この後、後続の印刷データが存在するかどうかの判別
が行われ(ステップS105)、存在すれば(Y)、ス
テップS102に戻って次の1レコード分の印刷データ
が入力される。存在しなければ(N)、印刷データの送
出を終了する(エンド)。このようにして、プリンタ3
8の解釈することのできる制御コードを使用した印刷デ
ータがプリンタ38に送られることになる。
On the other hand, if the definition character exists at the predetermined position of the record in step S103 (Y), the control command placed following the definition character of the record is read out as shown in FIG. Step S106). Based on this control command, the control code table 34 that matches the printer type is stored in the working memory 13 (Fig.
) (step S107). Then, the corresponding control code in this control code table 34 is transferred to the printer 38 by the code length (step S108).
. Thereafter, it is determined whether or not subsequent print data exists (step S105), and if so (Y), the process returns to step S102 and print data for the next record is input. If it does not exist (N), sending out the print data ends (end). In this way, printer 3
Print data using a control code that can be interpreted as 8 will be sent to the printer 38.

【0027】以上説明した実施例ではプリンタ38に対
応する制御コードを検索してこれを送出することにした
が、この制御コードにパラメータ等の付加情報が必要な
場合がある。このような場合には、プリンタ単位にパラ
メータの変換を行う処理を行う必要がある。このときに
は、図8に示したステップS108の処理において、変
換後のパラメータに制御コードに付加する処理を追加す
ればよい。
In the embodiment described above, a control code corresponding to the printer 38 is searched and sent, but this control code may require additional information such as parameters. In such a case, it is necessary to perform parameter conversion processing for each printer. In this case, in the process of step S108 shown in FIG. 8, a process of adding the converted parameters to the control code may be added.

【0028】(変形例)(Modified example)

【0029】図9は本発明の変形例における印刷制御レ
コード定義のフォーマットと、印刷データの比較方法を
表わしたものであり、先の実施例の図5に対応するもの
である。この変形例における印刷制御レコード定義51
は、印刷データのレコード41(図4参照)におけるそ
の先頭からの開始位置と定義文字およびその定義文字の
長さを表わしたデータに加えて、比較方法と実行コマン
ドから構成されている。ここで比較方法とは、例えばそ
の定義文字が通常の場合数値Aに到達しないような値を
とるものとすると、数値Aを閾値とする方法が一例とし
て挙げられる。この場合には、数値Aよりも小さいとき
にその定義文字自体を印字データと見てこれについても
通常の印字を行う。数値A以上の場合にはこれを制御コ
ードと見て、所定の制御を行うことになる。この制御の
種類を表わしたものが実行コマンドである。
FIG. 9 shows a format of a print control record definition and a method of comparing print data in a modified example of the present invention, and corresponds to FIG. 5 of the previous embodiment. Print control record definition 51 in this modification
consists of a comparison method and an execution command in addition to data representing the starting position from the beginning of the print data record 41 (see FIG. 4), a defining character, and the length of the defining character. Here, an example of the comparison method is a method of using the numerical value A as a threshold value, assuming that the defined character normally takes a value that does not reach the numerical value A. In this case, when the value is smaller than the numerical value A, the defined character itself is regarded as printing data and normal printing is performed for this character as well. If the value is greater than or equal to the value A, this is regarded as a control code and predetermined control is performed. An execution command represents this type of control.

【0030】ただし、この実行コマンドは、この変形例
の印刷制御装置自体に通用するコマンドなので、これを
プリンタに合わせて変換する必要がある。そこでこの変
形例の印刷制御装置では、先の実施例と同様にプリンタ
定義(図3参照)、印刷データ・レコード(図4参照)
および制御コマンド対応表(図6参照)を用意している
However, since this execution command is a command that can be used by the printing control device itself of this modification, it is necessary to convert it to suit the printer. Therefore, in the print control device of this modified example, printer definition (see FIG. 3), print data record (see FIG. 4)
and a control command correspondence table (see FIG. 6).

【0031】図10は、この変形例の印刷制御装置の操
作の概要を表わしたものである。印刷制御装置の操作者
は、この装置に接続されるプリンタ38(図2参照)に
印刷データを送出する前にキーボード22から諸情報の
入力を行う(ステップS201)。ここで諸情報とは、
プリンタ定義31、印刷制御レコード定義51、制御コ
ード表34および制御コマンド対応表35をいう。
FIG. 10 shows an overview of the operation of this modified example of the printing control device. The operator of the print control device inputs various information from the keyboard 22 before sending print data to the printer 38 (see FIG. 2) connected to this device (step S201). Here, the various information is
It refers to a printer definition 31, a print control record definition 51, a control code table 34, and a control command correspondence table 35.

【0032】これらの情報の入力が行われたら、このプ
リンタに送出する印刷データが1レコード分だけ入力さ
れる(ステップS202)。この入力レコードに対して
は、図9に示したようにそのレコードの所定位置に定義
文字が存在するかどうかの判別が行われる(ステップS
203)。この結果として定義文字が存在しなかった場
合には(N)、入力レコードをプリンタ38側に送出す
る(ステップS204)。そして、CPU11は後続の
印刷データが存在するかどうかの判別を行う(ステップ
S205)。印刷データが存在すれば(Y)、ステップ
S202に戻って次の1レコード分の印刷データを処理
のために入力する。
Once these pieces of information have been input, print data for one record to be sent to this printer is input (step S202). For this input record, as shown in FIG. 9, it is determined whether a defining character exists at a predetermined position in the record (step S
203). If the result is that the defined character does not exist (N), the input record is sent to the printer 38 (step S204). Then, the CPU 11 determines whether or not subsequent print data exists (step S205). If print data exists (Y), the process returns to step S202 and print data for the next record is input for processing.

【0033】一方、ステップS203でそのレコードの
所定位置に定義文字が存在した場合には(Y)、図9で
説明した比較方法で論理的な比較を行いそれが制御内容
を表わしているかどうかのチェックが行われる(ステッ
プS206)。制御内容を表していない場合には、前と
同様にステップS204に進んで入力レコードをプリン
タ38側に送出する。
On the other hand, if a definition character exists in the predetermined position of the record in step S203 (Y), a logical comparison is performed using the comparison method explained in FIG. 9 to determine whether or not it represents the control content. A check is performed (step S206). If the control content is not represented, the process advances to step S204 and the input record is sent to the printer 38 as before.

【0034】これに対して、ステップS206でその定
義文字が制御内容に相当すると判別された場合には(Y
)、印刷制御レコード定義51における実行コマンドが
読み出され、作業用メモリ13(図1参照)に格納され
る(ステップS207)。次に、この実行コマンドが対
応するプリンタ38の制御コマンドに変換される(ステ
ップS208)。この制御コードはプリンタ38側に転
送される(ステップS209)。プリンタ38では、例
えばこの制御コードが改行を意味するものであれば印刷
用紙を改行する。また、例えば赤色の印刷用紙に切り換
えることを意味するものであれば、図示しない供給トレ
イの制御を行って、次の印字から赤色の印刷用紙に印字
が行われるような制御を行う。
On the other hand, if it is determined in step S206 that the definition character corresponds to the control content, (Y
), the execution command in the print control record definition 51 is read out and stored in the working memory 13 (see FIG. 1) (step S207). Next, this execution command is converted into a corresponding control command for the printer 38 (step S208). This control code is transferred to the printer 38 (step S209). In the printer 38, for example, if this control code means a line feed, the printing paper is line fed. Furthermore, if it means switching to red printing paper, for example, a supply tray (not shown) is controlled so that printing is performed on red printing paper from the next printing.

【0035】このように印刷制御装置では該当する制御
コードをプリンタ38に転送した後、現在処理中の1レ
コード全体をプリンタ38に転送する(ステップS20
4)。したがって、先の例のように印刷用紙の切り換え
を行った場合には、定義文字がこの段階で役割を終了さ
せたのではなく、更に印字データとして印字に利用され
ることになる。以上の制御が印刷データの1レコードご
とに行われ、印刷データがなくなった段階でこの制御が
終了する。
In this manner, the print control device transfers the corresponding control code to the printer 38, and then transfers the entire record currently being processed to the printer 38 (step S20).
4). Therefore, when the printing paper is switched as in the previous example, the definition character does not end its role at this stage, but is further used for printing as print data. The above control is performed for each record of print data, and ends when there is no more print data.

【0036】この変形例の印刷制御装置でも、制御コー
ドにパラメータ等の付加情報の付加が必要な場合がある
。この場合には、印刷制御装置側でこのような付加情報
を付加してから目的のプリンタに送信すればよい。
[0036] Even in this modification of the printing control device, it may be necessary to add additional information such as parameters to the control code. In this case, it is sufficient to add such additional information on the print control device side and then send it to the target printer.

【0037】なお、変形例では定義文字を1つの制御コ
ードあるいは実行コマンドに対応させるものとして説明
したが、条件を複雑にして1つの定義文字に対して2以
上の制御コードあるいは実行コマンドを対応させてもよ
い。これにより、例えば赤色と青色の印刷用紙のいずれ
かへの切り換えといった印字制御が可能になる。
Note that in the modified example, the definition character was explained as corresponding to one control code or execution command, but the conditions may be complicated and two or more control codes or execution commands may be made to correspond to one definition character. You can. This enables printing control such as switching to either red or blue printing paper, for example.

【0038】[0038]

【発明の効果】以上説明したように本発明によればプリ
ンタ側に制御コードを変換するための手段を必要としな
いので、特別の変換装置を持たない比較的簡易なプリン
タでも印刷用の制御装置と接続した状態で所望の印字制
御を行うことができる。しかも、プリンタに応じた制御
コードの変換を印刷制御装置側で行うので、プリンタ側
で制御コードへの変換作業や変換された制御コードを印
字データの間に挿入するといった操作が不要であり、印
刷に要する時間を短縮することができるという利点があ
る。
Effects of the Invention As explained above, according to the present invention, there is no need for a means for converting control codes on the printer side, so even a relatively simple printer that does not have a special conversion device can use the printing control device. Desired printing control can be performed while connected to the printer. Moreover, since the printing control device converts the control code according to the printer, there is no need for the printer to convert the control code to a control code or insert the converted control code between print data. This has the advantage that the time required can be shortened.

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

【図1】  本発明の一実施例における印刷制御装置の
回路構成を表わしたブロック図である。
FIG. 1 is a block diagram showing the circuit configuration of a printing control device in an embodiment of the present invention.

【図2】  この印刷制御装置の構成を原理的に表わし
た原理図である。
FIG. 2 is a diagram showing the principle of the configuration of this printing control device.

【図3】  本実施例の装置におけるプリンタ定義のデ
ータフォーマットを表わした説明図である。
FIG. 3 is an explanatory diagram showing a printer-defined data format in the apparatus of this embodiment.

【図4】  本実施例の装置における印刷データのレコ
ードのフォーマットを表わした説明図である。
FIG. 4 is an explanatory diagram showing the format of a record of print data in the apparatus of this embodiment.

【図5】  本実施例の装置における印刷制御レコード
定義のフォーマットと、印刷データの比較方法を表わし
た説明図である。
FIG. 5 is an explanatory diagram showing a format of a print control record definition in the apparatus of this embodiment and a method of comparing print data.

【図6】  本実施例の装置における制御コマンド対応
表のフォーマットと、次に説明する制御コード表の対応
関係を表わした説明図である。
FIG. 6 is an explanatory diagram showing the format of a control command correspondence table in the apparatus of this embodiment and the correspondence relationship between a control code table to be described next.

【図7】  本実施例の装置における制御コード表のフ
ォーマットを表わした説明図である。
FIG. 7 is an explanatory diagram showing the format of a control code table in the apparatus of this embodiment.

【図8】  本実施例の装置の操作の概要を表わした流
れ図である。
FIG. 8 is a flowchart showing an overview of the operation of the apparatus of this embodiment.

【図9】  本発明の変形例における印刷制御レコード
定義のフォーマットと、印刷データの比較方法を表わし
た説明図である。
FIG. 9 is an explanatory diagram showing a format of a print control record definition and a method of comparing print data in a modified example of the present invention.

【図10】  この変形例の印刷制御装置の操作の概要
を表わした流れ図である。
FIG. 10 is a flowchart showing an overview of the operation of the print control device of this modification.

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

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  接続先のプリンタの種類を判別する種
類判別手段と、印刷データの中からプリンタの印刷の制
御を行うための自己の制御コードを判別する制御コード
判別手段と、自己の制御コードと各種プリンタそれぞれ
独自に用意された制御コードとの対応関係を記した制御
コード対応テーブルと、自己の制御コードが接続先のプ
リンタの制御コードと一致しないとき前記制御コード対
応テーブルを基にしてこれらを接続先のプリンタの制御
コードに変換する制御コード変換手段と、変換された制
御コードを印刷データと共に接続先のプリンタに送出す
る送出手段とを具備することを特徴とする印刷制御装置
1. A type determining means for determining the type of a connected printer; a control code determining means for determining a self-control code for controlling printing of the printer from among print data; and a self-control code. and the control code correspondence table that describes the correspondence between the control code and the control code prepared independently for each printer, and when the own control code does not match the control code of the connected printer, these are based on the control code correspondence table. What is claimed is: 1. A printing control device comprising: a control code converting means for converting a control code into a control code for a connected printer; and a sending means for sending the converted control code together with print data to a connected printer.
【請求項2】  接続先のプリンタの種類を判別する種
類判別手段と、レコード単位の印刷データの先頭位置か
ら所定量だけ離れた位置に特定のデータが配置されてい
るかどうかを判別することにより、そのレコードがプリ
ンタの印刷の制御を行うための制御コードを記したレコ
ードか否かを判別する判別手段と、この判別手段が制御
コードを記したレコードであると判別したそのレコード
中の制御コードを読み出す制御コード読出手段と、自己
の制御コードと各種プリンタそれぞれ独自に用意された
制御コードとの対応関係を記した制御コード対応テーブ
ルと、前記制御コード読出手段によって読み出された制
御コードが接続先のプリンタの制御コードと一致しない
とき前記制御コード対応テーブルを基にしてこれらを接
続先のプリンタの制御コードに変換する制御コード変換
手段と、変換された制御コードを接続先のプリンタに送
出する送出手段とを具備することを特徴とする印刷制御
装置。
2. Type determining means for determining the type of printer to be connected, and determining whether specific data is placed at a position a predetermined amount away from the head position of print data in units of records, A determination means for determining whether or not the record records a control code for controlling printing by the printer; and a control code in the record determined by the determination means to be a record recording a control code. A control code reading means to read out, a control code correspondence table that describes the correspondence between own control codes and control codes uniquely prepared for each printer, and a control code read out by the control code reading means to the connected destination. control code converting means for converting the control code into a control code of a connected printer based on the control code correspondence table when the control code does not match the control code of the connected printer; and a sending unit that sends the converted control code to the connected printer. A printing control device comprising: means.
【請求項3】  接続先のプリンタの種類を判別する種
類判別手段と、印刷データのうちの所定のデータを予め
定めた値と比較する比較手段と、この比較手段の比較結
果をプリンタ側の制御内容と対比させた比較結果対応テ
ーブルと、各種制御内容とプリンタそれぞれに独自に用
意された制御コードとの対応関係を記した制御コード対
応テーブルと、前記比較結果対応テーブルによって対比
された制御内容を前記接続先のプリンタに対応する制御
コードに変換する制御コード変換手段と、変換された制
御コードを接続先のプリンタに送出する送出手段とを具
備することを特徴とする印刷制御装置。
3. Type determining means for determining the type of printer to which the printer is connected; comparing means for comparing predetermined data of the print data with a predetermined value; and controlling the comparison result of the comparing means on the printer side. A comparison result correspondence table that compares the contents, a control code correspondence table that describes the correspondence between various control contents and control codes uniquely prepared for each printer, and control contents that are compared by the comparison result correspondence table. A printing control device comprising: a control code converter that converts the control code into a control code corresponding to the destination printer; and a sending device that sends the converted control code to the destination printer.
JP3117720A 1991-05-22 1991-05-22 Printing controller Pending JPH04344925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3117720A JPH04344925A (en) 1991-05-22 1991-05-22 Printing controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3117720A JPH04344925A (en) 1991-05-22 1991-05-22 Printing controller

Publications (1)

Publication Number Publication Date
JPH04344925A true JPH04344925A (en) 1992-12-01

Family

ID=14718628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3117720A Pending JPH04344925A (en) 1991-05-22 1991-05-22 Printing controller

Country Status (1)

Country Link
JP (1) JPH04344925A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165374A (en) * 2006-12-27 2008-07-17 Dainippon Printing Co Ltd Variable printing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165374A (en) * 2006-12-27 2008-07-17 Dainippon Printing Co Ltd Variable printing method

Similar Documents

Publication Publication Date Title
US4441829A (en) Method for performing a multiple page get operation in a text processing system
US6476938B1 (en) Print control system and method
US6061142A (en) Method and apparatus for directly printing out image files for printer
KR100217995B1 (en) Printing device preformat feature and method thereof
JPH04344925A (en) Printing controller
US6724496B1 (en) Remote print job processing
JPH0528849B2 (en)
JPH0330977A (en) Page printer control system
WO1984001637A1 (en) Data input/output apparatus
US6804015B1 (en) Page printer and control method thereof
US4677543A (en) Transportable and detachable data input/output unit providing automatic character insertion or deletion
JP2574682B2 (en) Apparatus and method for selectively copying European numerals / graphic codes
JPH01145718A (en) Printer
JP2787093B2 (en) Printer device
JPH06234248A (en) Printer
KR100193794B1 (en) Emulation analysis method of image forming apparatus
JPH04294417A (en) Information processor and its control method
JPH10105447A (en) Data processor
JPH1124867A (en) On-line printing system
JPH054387A (en) Printer
EP0121574A1 (en) Data input/output apparatus
JPH0522504A (en) Reception data conversion system for printer
JPH05158635A (en) Printer
JPH0330974A (en) Page printer control system
WO1984001647A1 (en) Data input/output device