JPH0586354B2 - - Google Patents
Info
- Publication number
- JPH0586354B2 JPH0586354B2 JP60198162A JP19816285A JPH0586354B2 JP H0586354 B2 JPH0586354 B2 JP H0586354B2 JP 60198162 A JP60198162 A JP 60198162A JP 19816285 A JP19816285 A JP 19816285A JP H0586354 B2 JPH0586354 B2 JP H0586354B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- unit
- control
- print head
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Description
本発明は、シリアルプリンタを使用して、所定
位置への印字を容易にすることにより、文書作成
を簡便、迅速化した印字フオーマツト制御装置に
関する。
The present invention relates to a print format control device that uses a serial printer to facilitate printing in a predetermined position, thereby simplifying and speeding up document creation.
従来、シリアルプリンタをホストコンピユータ
で制御して印字する場合、所望の印字形式を得る
為には、動作位置指定コマンド等の印字ヘツドの
位置(以下「受信位置」ともいう)を変化させる
コマンドを用いて複雑なプログラムを組む必要が
あつた。このため、使用者に於いて特別形式の文
書を印字するには、そのための専用プログラムを
開発する必要があり、極めて不便であつた。ま
た、汎用の文書作成装置である所謂ワードプロセ
ツサーにしても、一定範囲でのみ選択的に書式設
定ができるに過ぎず、印字形式を全く自由に設
定、修正することは、困難である。
Conventionally, when printing by controlling a serial printer with a host computer, in order to obtain the desired print format, a command that changes the position of the print head (hereinafter also referred to as "receiving position"), such as an operation position specification command, is used. It was necessary to create a complex program. Therefore, in order for a user to print a special format document, it is necessary to develop a special program for that purpose, which is extremely inconvenient. Furthermore, even with a so-called word processor, which is a general-purpose document creation device, formatting can only be selectively set within a certain range, and it is difficult to set or modify the printing format completely freely.
上記いづれの方法であつても、印刷用紙と印字
位置との関係を使用者の側で厳密に設計しなけれ
ば、用紙上の所望の位置に印字することはできな
い。特に、予め印刷された所定の用紙の所定の印
字箇所に所定のデータのみを印字する場合には、
何度も用紙をプリンタにセツトして、試行錯誤を
繰り返して、所定の位置にデータが印字されるよ
うに印字の書式を設定する必要があつた。
本発明は、このような問題点を解決するもので
ある。
In any of the above methods, it is not possible to print at a desired position on the paper unless the user carefully designs the relationship between the printing paper and the printing position. In particular, when printing only predetermined data at a predetermined printing location on a pre-printed predetermined paper,
It was necessary to set the paper in the printer many times and through trial and error to set the printing format so that the data would be printed in the predetermined position. The present invention solves these problems.
本発明は、上記の欠点を改良するために成され
たものであり、任意のデータを用紙の所定位置に
おいて、容易に印字することを目的とする。
特に、予め印刷された用紙の所定箇所に所定の
データのみを印字することを容易にする書式設定
装置を提供すると共に、設定された書式データを
容易に確認出来、必要に応じてその設定書式デー
タを容易に修正することを目的とする。
The present invention was made in order to improve the above-mentioned drawbacks, and an object of the present invention is to easily print arbitrary data at a predetermined position on a sheet of paper. In particular, we provide a formatting device that makes it easy to print only predetermined data in predetermined locations on pre-printed paper, and also allows you to easily check the preset format data and change the preset format data as needed. The purpose is to easily modify.
第1図は本発明の構成を示したブロツクダイヤ
グラムでり、その発明の構成は次の通りである。
本発明装置は、各種のマニユアル操作を入力す
るための操作盤10と、
プリンタの用紙を送る信号S1と印字ヘツド9
2を水平方向に移動させる信号S2とを出力し
て、前記印字ヘツド92を前記用紙に対して移動
制御するヘツド位置制御部12と、
入力制御部14から単位データを入力してS8
前記印字ヘツド92により前記用紙上に印字する
ための信号S3を出力する印字制御部18と、
前記操作盤10のキー操作に基づいて前記ヘツ
ド位置制御部12を駆動して、前記用紙上の各印
字箇所に前記印字ヘツド92を順次移動させ、そ
のときの前記印字ヘツド92の位置の水平及び垂
直座標S4を順次記憶する印字フオーマツト制御
データ記憶部16と、
前記操作盤のキー操作S13に基づいて、前記
印字フオーマツト制御データ記憶部16に記憶さ
れた一の印字フオーマツト制御データを選択して
S10、その制御データを前記ヘツド位置制御部
へ出力S11して、前記印字ヘツド92を設定さ
れた位置に移動させて設定された前記印字フオー
マツト制御データの正否を確認するデータ確認制
御部22と、
ホストコンピユータ50から前記各印字箇所に
印字すべき単位データの集合から成る印字データ
S5を入力して、前記単位データの印字開始時に
前記印字フオーマツト制御データ記憶部16に記
憶された制御データS6を順次前記ヘツド位置制
御部12へ出力S7し該ヘツド位置制御部12を
駆動して前記印字ヘツド92を設定された印字箇
所へ順次移動させ、前記単位データを前記印字制
御部18へ出力S8して該印字制御部18を駆動
して前記単位データを順次印字させる入力制御部
14と、
から成る印字フオーマツト制御装置である。
ここに於いて、前記操作盤はプリンタ本体に設
けられていても、プリンタ本体と別体に構成して
も良い。
ヘツド位置制御部12は、操作盤10からの制
御信号S9、及び入力制御部14からの制御信号
S7を入力して、ドライバー74,78を駆動し
て印字ヘツドを所定の位置に移動させる機能を有
する。
入力制御部14は、実際の印刷時にホストコン
ピユータ50から印字データを入力してヘツド位
置制御部を駆動して、印字ヘツドを印字フオーマ
ツト制御データ記憶部16に記憶された制御デー
タに基づいて予め設定された位置に移動させる機
能を有すると共に、印字制御部18を駆動して単
位印字データをその箇所から印字制御する機能を
有している。
印字フオーマツト制御データ記憶部16は、操
作盤10の操作によつて、印字ヘツドを単位デー
タの印字開始位置まで移動させその時の印字ヘツ
ドの位置を記憶する機能を有する。
データ確認制御部22は、前記操作盤10のキ
ー操作に応じて、前記印字フオーマツト制御デー
タ記憶部16に記憶された一の印字フオーマツト
制御データを選択すると共に、その制御データを
前記ヘツド位置制御部へ出力して、印字ヘツド9
2を設定された位置に移動させる機能を有してい
る。
ホストコンピユータ50は、単位データの集合
から成る印字データを入力制御部14へ出力する
機能を有している。各単位データは例えば、デー
タの終端を示すターミネートコード、データ番
号、又は文字数等で特定されそれぞれが区別され
るように設定されている。又ホストコンピユータ
から出力される印字データは、印字されるべき単
位データの他、印刷時にそのデータの印字を無視
する注釈文字データが含まれていても良い。入力
制御部14はホストコンピユータから入力された
一連の印字データから特定箇所に印字する単位デ
ータを選別処理する。
印字制御部18は入力制御部14から単位デー
タを受信し、ドライバー74,78,82を駆動
して、そのデータを印字処理する機能を有する。
又、データ確認制御部には、操作盤のキー操作
に基づいて前記ヘツド位置制御部を駆動して、用
紙上の正しい印字箇所に前記印字ヘツドを移動さ
せ、そのときの前記印字ヘツドの位置の水平及び
垂直座標を新たに記憶するデータ再設定部を設け
るのが望ましい。この機能により、容易に制御デ
ータの訂正が行われる。
FIG. 1 is a block diagram showing the structure of the present invention, and the structure of the invention is as follows. The device of the present invention includes an operation panel 10 for inputting various manual operations, a signal S1 for sending paper to the printer, and a print head 9.
a head position control section 12 that outputs a signal S2 to move the printing head 92 in the horizontal direction to control the movement of the print head 92 relative to the paper; and a head position control section 12 that inputs unit data from the input control section 14,
a print control unit 18 that outputs a signal S3 for printing on the paper by the print head 92; and a print control unit 18 that drives the head position control unit 12 based on key operations on the operation panel 10 to print each print on the paper. a print format control data storage section 16 that sequentially moves the print head 92 to a printing location and sequentially stores the horizontal and vertical coordinates S4 of the position of the print head 92 at that time; , selects one print format control data stored in the print format control data storage section 16 and outputs the control data to the head position control section S11 to move the print head 92 to the set position. a data confirmation control unit 22 that confirms whether the print format control data that has been moved and set is correct; and print data S5 consisting of a set of unit data to be printed at each print location is input from the host computer 50, and the print data S5 is inputted from the host computer 50 to At the start of printing unit data, the control data S6 stored in the print format control data storage section 16 is sequentially output S7 to the head position control section 12, and the head position control section 12 is driven to set the print head 92. an input control section 14 that sequentially moves the unit data to the printed printing location, outputs the unit data to the print control section 18 (S8), and drives the print control section 18 to sequentially print the unit data. It is. Here, the operation panel may be provided in the printer main body or may be configured separately from the printer main body. The head position control section 12 has a function of inputting a control signal S9 from the operation panel 10 and a control signal S7 from the input control section 14 to drive the drivers 74 and 78 to move the print head to a predetermined position. have The input control section 14 inputs print data from the host computer 50 during actual printing, drives the head position control section, and presets the print head based on the control data stored in the print format control data storage section 16. It has the function of moving the unit print data to the specified position, and also has the function of driving the print control section 18 to control printing of the unit print data from that position. The print format control data storage section 16 has a function of moving the print head to a printing start position of unit data by operating the operation panel 10 and storing the position of the print head at that time. The data confirmation control section 22 selects one print format control data stored in the print format control data storage section 16 in response to key operations on the operation panel 10, and transfers the control data to the head position control section. output to print head 9.
2 to a set position. The host computer 50 has a function of outputting print data consisting of a set of unit data to the input control section 14. Each unit data is specified by, for example, a termination code indicating the end of the data, a data number, or the number of characters, and set to be distinguished from each other. In addition to the unit data to be printed, the print data output from the host computer may also include annotation character data that ignores printing of the data during printing. The input control unit 14 selects unit data to be printed at a specific location from a series of print data input from the host computer. The print control section 18 has a function of receiving unit data from the input control section 14, driving the drivers 74, 78, and 82, and printing the data. Further, the data confirmation control section drives the head position control section based on key operations on the operation panel, moves the print head to the correct printing location on the paper, and records the position of the print head at that time. It is desirable to provide a data resetting section for newly storing horizontal and vertical coordinates. This function allows for easy correction of control data.
印字フオーマツト制御データ記憶部16は、操
作盤10のキー操作に応じて、ヘツド位置制御部
12を駆動して実際に印字ヘツド92の受信位置
を移動させ、単位データを印字すべき箇所で、ヘ
ツドを停止させ、その受信位置を順次記憶して、
印字フオーマツト制御データを作成する。又デー
タ確認制御部22は、一の印字フオーマツト制御
データを選択して、その制御データの位置まで印
字ヘツドを実際に移動させる。このことにより、
設定された印字フオーマツト制御データの正否を
1データごとに確認することが出来る。
ホストコンピユータ50からは、印字データが
入力制御部14に送信される。入力制御部14
は、単位データを選別して印字フオーマツト制御
データ記憶部16に記憶されている制御データを
ヘツド位置制御部12へ出力して予め設定された
印字開始箇所に印字ヘツド92を移動させ、印字
制御部18へ単位データを出力する。印字制御部
18は、この単位データを受信して、そのデータ
をその箇所から印字する。
この結果、予め印刷された文書用紙の所定の欄
にデータのみを印字処理する操作が極めて容易に
行われ、その印字開始箇所の設定の正否を容易に
確認する事が出来る。
The print format control data storage unit 16 drives the head position control unit 12 in response to key operations on the operation panel 10 to actually move the reception position of the print head 92, and moves the head to the location where unit data is to be printed. , and sequentially memorize the receiving positions.
Create print format control data. Further, the data confirmation control section 22 selects one print format control data and actually moves the print head to the position of that control data. Due to this,
It is possible to check whether the set print format control data is correct or not for each piece of data. Print data is transmitted from the host computer 50 to the input control section 14 . Input control section 14
selects the unit data and outputs the control data stored in the print format control data storage section 16 to the head position control section 12, moves the print head 92 to a preset printing start position, and controls the print control section. Unit data is output to 18. The print control unit 18 receives this unit data and prints the data from that location. As a result, it is extremely easy to print only data in a predetermined field on a document sheet that has been printed in advance, and it is possible to easily check whether the setting of the printing start point is correct or not.
以下本発明を具体的な実施例に基づいて説明す
る。第2図は、実施例装置の構成を示したブロツ
クダイヤグラムである。本装置は、プリンタ本体
とは別体のハンデイーな操作装置30とプリンタ
本体に組み込まれた主にコンピユータシステムか
ら成る主装置とから成る。
操作装置30は各種の操作入力を行うキーボー
ド34と、印字フオーマツト制御データの作成処
理を行うCPU32と、印字フオーマツト制御デ
ータ等を記憶するRAM38と、その記憶内容を
プリンタ本体から給電されていない時にも保持す
るバツテリー40と、プリンタ本体側の主装置を
構成するCPU68とデータの送受信を行う入出
力インタフエース36とから成る。
プリンタは、ホストコンピユータ50から印字
データを入力するバツフアレジスタ62と、その
状態をホストコンピユータに知らせるステータス
レジスタ64と、印字処理を行うためのCPU6
8、この処理プログラム及び、各種のパラメータ
を記憶したROM70と、印字フオーマツト制御
データ、印字データ等を記憶するためのRAM6
6とを有している。CPU68には、出力インタ
フエース72が接続され、それには紙送りのため
のモータ(LFモータ)を駆動するドライバー7
4が接続され、そのドライバーにはLFモータ7
6が接続されている。印字ヘツドを横方向に移動
させるためのドライバー78は出力インタフエー
ス72に接続され、ドライバー78は印字ヘツド
を移動させるCRモータ80を駆動する。又、出
力インタフエース72には印字ソレノイド84を
駆動させるためのドライバー82が接続されてい
る。
第3図は、操作装置30の外形を示した平面図
である。キーボード34は、モード1キーとモー
ド2キーとカーソルキーとを有している。モード
1キーは、印字フオーマツト制御データを作成登
録する登録キー341、登録されている印字フオ
ーマツト制御データを修正又は、削除するための
修正キー342と削除キー343、印字フオーマ
ツト制御データを主装置のRAM66へ転送し印
字制御するための呼出キー344とから成る。モ
ード2キーは、登録番号、印字ヘツドの受信位置
の設定を行う決定キー345、モード2の状態を
終了させる終了キー346、登録された印字フオ
ーマツト制御データの受信位置、印字ピツチ等を
正式印刷の前に印字して確認する確認キー34
7、印字ピツチを設定するスペースキー348、
印字フオーマツト制御データの挿入、削除等を行
うデータ挿入キー349、データ削除キー350
から成る。
操作装置30は、その他、印字フオーマツト制
御データ群の番号を表す登録番号、1登録群中の
印字データの印字箇所の番号を表すデータ番号、
その他エラー等のメツセージを表示する液晶表示
盤300を有している。さらに、その枠体の内部
に、CPU32、RAM38、入出力インタフエー
ス36、バツテリ40等が配設されている。
第4図は操作装置30とプリンタ本体側との接
続関係を示した電気回路図であり、第6図はその
信号の論理を示した説明図である。スイツチSW
0,SW1,SW2,SW3はそれぞれカーソルキ
ー353,352,354,351に対応してい
る。ゲート回路361,362の出力信号線L
1,L2はプリンタ側の主装置に接続されてい
る。又信号線L1,L2は、ゲート回路363に
入力しその出力線L3はマイクロコンピユータ4
5に接続されている。さらに、スイツチSW3の
出力信号線L4がマイクロコンピユータ45に接
続されている。信号線L3とL4のうちいづれか
が低レベルの間は、カーソルキーのいづれかが操
作されたことを示しているので、CPU32は信
号線L5を介して主装置に低レベル信号を出力し
て、主装置は、その信号線L5が低レベルの間、
信号線L1,L2の論理レベルを解析して、どの
カーソルキーが操作されたかを判定することが出
来る。主装置は、この信号によつて、印字ヘツド
と紙送りの制御をすることが出来る。又、マイク
ロコンピユータ45と主装置はデータ線L6、L
7によつて接続されており、制御信号の送受信、
印字フオーマツト制御データの送信が行われる。
マイクロコンピユータ45のCPU32は、信号
線L3,L4の論理レベルを判定して、登録番号
のインクリメントのためのカーソルキーSW3,
351とデイクリメントのためのカーソルキー
SW1,352のいづれが操作されたかを判定す
ることが出来る。
次に印字フオーマツト制御データの登録につい
て述べる。第6図は、操作装置30のCPU32
の処理のメインプログラムを示したフローチヤー
ト、第11図は、プリンタ本体の主装置のCPU
68の処理のメインプログラムを示したフローチ
ヤートである。操作装置30の電源スイツチが投
入されると、ステツプ100で、主装置とのインタ
フエースの調整中の表示を行う。ステツプ102で
カウンタCを0にセツトし、ステツプ104で、
SOH信号を主装置側に応答信号があるまで送信
し、ステツプ106,108で、主装置からのDC1信
号を受信し、ステツプ110でカウンタCを更新し
ステツプ112でDC1信号を5つ受信したと判定さ
れた時ACK信号を送信しステツプ116で残された
登録可能データ数を表示する。
一方、主装置は、その間第11図に於いてステ
ツプ600〜610の処理により、操作装置30から
SOH信号を50コ受信した後DC1信号を5バイト
送信して、操作装置30とプリンタ本体の主装置
との接続を完了する。その後、操作装置30はス
テツプ118で登録番号選択プログラムを実行する。
第7図は登録番号選択プログラムの処理手順を
示したフローチヤートである。ステツプ200でキ
ーボード34からキー入力があつた時は、ステツ
プ202でモード1のモード選択キーが打鍵された
かを判定し、ステツプ204で登録キーが打鍵され
た場合にはステツプ206で次のキー入力を待ちス
テツプ208でインクリメントキーSW3,351
が操作された場合にはRAM38に登録されてい
る登録番号を除いて、昇順にデータを検索して、
ステツプ212で未設定の登録番号を表示盤300
に表示する。又、ステツプ214でデイクリメント
キーSW1,352が操作されたと判定された場
合には、ステツプ216で未登録番号に降順に検索
して、ステツプ212で表示盤300に、未登録番
号を降順に表示する。希望する登録番号が上記の
キー操作によつて表示された場合には、決定キー
345を打鍵すれば、ステツプ218でそのキー入
力が判定されて、ステツプ220で表示された登録
番号がRAM38へ設定され、以降ステツプ222
でその登録番号に属するグループの印字フオーマ
ツト制御データの登録プログラムが実行される。
一度RAM38に登録された印字フオーマツト
制御データの修正、削除、及びプリンタ本体の主
装置のRAM66への印字フオーマツト制御デー
タの転送のための呼出を行うため、その登録番号
を表示するには、ステツプ230〜ステツプ246のブ
ロツクBの処理が行われる。その処理は既登録番
号のみを検索して、インクリメントキー、デイク
リメントキーの操作に応じて、昇順又は降順に登
録番号を表示し決定キーを操作してその表示され
た登録番号を選択することによつて行われる。
次に登録プログラムの処理について説明する。
第8図はその処理を説明したフローチヤートであ
る。ステツプ300で登録番号が表示され、ステツ
プ302でSOH信号を主装置に送信し、主装置はス
テツプ612,614,616(第11図)により、SOH
信号を受信するとDC1信号を送信する。操作装
置30はステツプ304でDC1信号が受信された場
合にはステツプ306でACK信号を出力してステツ
プ308,310に移行して、データ番号を表示する。
データ番号0は、印字ヘツドの用紙に対するセン
タリングの制御に使用する。ステツプ314で、DC
1信号を送信して、主装置をカーソルによる受信
位置制御モードにする。次にステツプ316で、第
14図に示す受信位置制御プログラムAが実行さ
れる。主装置はDC1信号を解読してステツプ622
の受信位置制御プログラムB(第15図)を実行
する。
次に受信位置の制御手段を第14図、第15図
に示されているプログラムに従つて説明する。第
14図は操作装置の処理手順を第15図は主装置
の処理手順を示したものである。ステツプ800で
決定キーの判定が行われ、ステツプ802とステツ
プ804に於いてカーソルキーの操作の有無が判定
される。即ち、第4図の信号線L3又はL4のい
づれかが低レベルになるかを検出することによつ
て判定できる。カーソルキーの操作が検出された
時はステツプ806に移行して、信号線L5を低レ
ベルにしてその旨を主装置に知らせる。又、ステ
ツプ808,810で両信号線L3,L4が共に高レベ
ルになつた時はカーソルキーの打鍵が停止された
ことを意味しているのでステツプ812で信号線L
5を高レベルにして、その旨の情報を主装置に知
らせる。
一方、主装置ではステツプ848で、印字ヘツド
の受信位置の水平座標を記憶するカウンタAとそ
の垂直座標を記憶するカウンタBの初期値を設定
する。次に、ステツプ850で決定キーの打鍵によ
るヘツド位置の応答要求信号があるかが判定さ
れ、ステツプ852で、信号線L5の信号レベルを
検出してそれが低レベルにあるとカーソルキーの
打鍵があると判定して、ステツプ854で信号線L
1とL2の論理レベルに応じて(第5図)CRモ
ータ80を駆動して印字ヘツドを1ドツト移動す
るか又はLFモータ76を駆動して最小単位量の
紙送りを行う受信位置移動プログラムを実行す
る。
第18図は、この受信位置移動プログラムを示
したフローチヤートである。ステツプ900で、信
号線L1が高レベルにあると判定されるとステツ
プ902へ移行して信号線L2の論理レベルが判定
される。この信号線L2が低レベルにあるとステ
ツプ904へ移行して印字ヘツドを1ドツト右方向
へ移動させる為にCRモータを単位角だけ正回転
させる。次にステツプ906でカウンタAを1増加
させてその時の印字ヘツドの受信位置の水平座標
を記憶する。ステツプ902で、信号線L2が高レ
ベルにあると判定されると、用紙を逆方向に送る
ためにLFモータを単位角だけ負回転させる。そ
して、ステツプ932でカウンタBを1減少させて
その時の印字ヘツドの受信位置の垂直座標を記憶
する。以下同様にして、ステツプ900で信号線L
1が低レベルにあると判定されるとステツプ910
へ移行して信号線L2の論理レベルが判定され
る。その論理レベルが高レベルの時はステツプ
912で、印字ヘツドを左方向に移動させる為CRモ
ータを単位角だけ負方向に回転させ、ステツプ
914でカウンタAを1減少させて印字ヘツドの受
信位置の水平座標を記憶する。又、ステツプ910
で信号線L2が低レベルにあるとステツプ920へ
移行して用紙を順方向に送る為にLFモータを単
位角だけ正回転させ、ステツプ922でカウンタB
を1増加してその時の印字ヘツドの受信位置の垂
直座標を記憶する。このようにして、用紙上の印
字ヘツドの受信位置を移動しつつその座標を記憶
することが出来る。
第15図に戻り、ステツプ856で0.5秒待機した
後ステツプ858で信号線L5が尚低レベルにある
とカーソルキーが打鍵され続けているので、ステ
ツプ860とステツプ862とで信号線L5が高レベル
になるまでヘツド又は紙送りの制御を連続して行
う。このため、カーソルキーが打鍵され続けてい
る間、連続して印字ヘツドの受信位置が変化する
ことになる。この時も、印字ヘツドの移動と、紙
送りに応じて、カウンタA又はBの値が移動量だ
け変化してその時の印字ヘツドの受信位置の座標
が記憶される。
このようにして、カーソルキーを操作して、印
字ヘツドを所望の位置に移動させ、次に決定キー
345を打鍵すると、操作装置はステツプ814で
受信位置の応答要求信号ENQを送信する。主装
置はステツプ850でこの信号の受信を判定してス
テツプ864でカウンタA,Bに記憶された印字ヘ
ツドの受信位置の座標を操作装置に送信する。操
作装置は、ステツプ816,818で受信位置の座標デ
ータを受信してそれをRAM38に格納する。
上記の操作を順次繰り返して実行し第16図に
示す用紙の全ての単位データの印字開始箇所〜
の座標を設定して、印字フオーマツト制御デー
タの登録が完成する。
次に印字ピツチデータの設定について述べる。
上記の受信位置の設定の処理に於いてステツプ
326(第8図)でスペースキー348が打鍵される
と、ステツプ328へ移行する。ステツプ328でカー
ソルキーの操作によつて印字ピツチの大きさを数
値として表示盤にインクリメント又はデクリメン
ト的に表示する。所定の設定すべき印字ピツチが
表示盤に表示されると、決定キーを打鍵すること
によつてその表示された値を印字ピツチとして記
憶することが出来る。即ち、CPU68は、ステ
ツプ330で決定キー345の打鍵を検出して、表
示された値を選定し、ステツプ332で、対応する
データ番号Iによつて特定して印字ピツチデータ
をB(I)として印字ピツチ制御部に、記憶する。
この印字ピツチの設定は、印字ヘツドの受信位
置の設定とは独立的に設定される。即ち、印字ピ
ツチの設定は任意の時に設定できる。ある一の単
位印字データの受信位置の設定に対して、その設
定時に、最も近い過去に設定された印字ピツチが
その単位印字データの印字ピツチとして処理され
る。従つて、印字ピツチの設定は最も緻密には、
各単位印字データ毎に設定することが出来、最も
簡単には、全ての印字データに対して共通の一の
印字ピツチを一回で設定することが出来る。
印字フオーマツト制御データの登録はステツプ
334で終了キー346の打鍵を検出し、ステツプ
336でSOH信号を送信することによつて終了す
る。この時主装置はSOH信号を受信してステツ
プ620でDC1信号を出力して、次の制御データの
受信待ち状態となる。
次に、一度登録されたフオーマツト制御データ
の修正の処理手順を第9図に示すフローチヤート
に従つて説明する。第7図に示す手順により既設
定の登録番号が選択され、修正キーの打鍵により
ステツプ248を経てステツプ250で第9図の修正プ
ログラムが起動される。ステツプ400〜ステツプ
408は、第8図のステツプ300〜308と同様の機能
である。ステツプ410〜ステツプ414はフオーマツ
ト制御データのデータ番号を順次表示するステツ
プである。
所定のデータ番号が選択された後、ステツプ
416で確認キー347が打鍵されるとステツプ418
で、そのデータ番号に対応した設定された受信位
置へ印字ヘツドを移動させる信号DC3とフオー
マツト制御データが送信され、主装置はステツプ
630〜634で、そのデータ番号のデータの印字開始
位置に印字ヘツドの受信位置を移動させる。この
動作により、既設定の印字フオーマツト制御デー
タがどのように設定されていたかを調べることが
出来る。
このように、ステツプ410〜ステツプ420のルー
チンを繰り返すことにより、即ち、データ番号を
順次選択して、確認キーを打鍵することによつて
印字ヘツドを実際に設定された受信位置まで順次
移動させて、印字フオーマツト制御データの正否
の確認をすることが出来る。
又、受信位置の設定の誤りを発見した時は、次
のステツプにより、そのデータ番号の印字フオー
マツト制御データの修正をすることが出来る。
ステツプ422で決定キーが打鍵されるとそのデ
ータ番号が選択される。次にステツプ424〜426
で、登録モードと同様にカーソルの操作によつて
直接印字ヘツドの受信位置を移動させる受信位置
制御プログラムA(第14図)が起動される。こ
の時主装置はステツプ618でDC1信号を検出する
ので、登録モードになつている。受信位置制御プ
ログラムA,Bが起動されると、カーソルキー3
51〜354の操作によつて、印字ヘツドを正し
い受信位置まで移動させることが出来る。印字ヘ
ツドを移動して、決定キーの打鍵を行うと、第1
5図ステツプ864により現在の受信位置が操作装
置に送信され、印字フオーマツト制御データの修
正が完了する。
次にステツプ428で次のデータ番号の表示パラ
メータIが更新され、ステツプ410に復帰して次
のデータ番号の選択が行われ、上記したデータ番
号の選択、設定されている受信位置の確認、印字
ヘツドの移動、受信位置の再設定、を繰り返して
実行することが出来る。
この修正モードを終了するには、終了キーを打
鍵すれば良い。ステツプ430で終了キーの打鍵が
検出されると、ステツプ432でSOH信号を送信し
て本修正プログラムを終了する。
次に、このようにして作成されたフオーマツト
制御データに基づくテスト印字と、ホストコンピ
ユータから印字データを受信してそのデータを印
字する処理手順について述べる。
印字データは第17図に示すようにデータ番号
順に下線の引かれた印字を行わない注釈文とそれ
に続く単位印字データと単位データを区切るコー
ドのCR、LFコードで構成している。但し本実施
例では、データ番号は印字データとしては入力し
ていない。テスト印字の場合には、第19図に示
すように登録された受信位置〜に順次移動し
て本実施例の所定の記号であるデータ番号〜
と印字ピツチを示す枡M1〜M14が印字される。
枡Mの横の長さは文字の幅と文字間隔を加えた長
さを、枡Mの縦の長さは文字の高さを示してい
る。
又、データの印刷の場合には、第16図に示す
ように登録された各受信位置〜14に印字ヘツド
が自動的に移動してその箇所に対応したデータ番
号〜14の単位データが印字される。
第7図に於ける処理により印字フオーマツト制
御データの登録番号が選択され、ステツプ248で
呼出キー344の打鍵が判定されるとステツプ
252で、第10図に示す呼出プログラムが実行さ
れる。ステツプ500〜506は第8図のステツプ300
〜306と同一である。ステツプ508で制御信号DC
2が送信されると主装置はステツプ618を介して
第12図のプログラムを実行する。ステツプ510
でデータ数がステツプ512で印字フオーマツト制
御データが送信される。主装置はステツプ650で
データ数を受信し、ステツプ652,654で印字フオ
ーマツト制御データを受信する。この段階で指定
された登録番号の印字フオーマツト制御データが
一括してRAM38からRAM66へ転送された
ことになる。
次にステツプ514で確認キーの打鍵が検出され
るとステツプ516でテスト印字のための制御信号
ENQが送信され、主装置はステツプ656でこの制
御信号を判読し、ステツプ658でテスト印字プロ
グラムが実行される。印字フオーマツト制御デー
タに基づき、設定された受信位置に印字ヘツドを
移動する。次に印字ピツチデータに基づき文字の
横幅と文字間隔との和を横の長さとし、文字の高
さを縦の長さとする枡と枡の中にデータ番号を印
字する。上記の処理を繰り返して全ての受信位置
へテスト印字を行う。この結果を見て、データを
印字する位置と文字ピツチが正確に設定されてい
るかを判定する事が出来る。テスト印字が終了す
るとステツプ660でDC1信号を出力して、テスト
印字の終了を知らせる。
又、ステツプ520で終了キーの打鍵が検出され
ると、ステツプ522でデータ印字指令の制御信号
EOTが送信される。この時主装置はステツプ662
へ移行してホストコンピユータから送信される印
字データを印刷する印字プログラム(第13図)
が実行される。ステツプ700でステータスレジス
タ64のBUSYビツトをオフにして、ホストコ
ンピユータから印字データを入力出来る状態にす
る。ステツプ702,704は用紙の給紙に関する処理
である。ステツプ706はデータの受信の有無の判
定を、ステツプ708,710はコマンド処理を示す。
ステツプ740〜742は注釈文の場合のデータの読み
飛ばし処理を行うステツプである。ステツプ712
〜718はLFコードを検出したときは単位データの
区切りと見做して、印字フオーマツト制御データ
に基づいて所定の位置に印字処理するステツプで
ある。ステツプ706〜718の繰り返しにより全ての
印字箇所にデータが印字される。ステツプ720は
用紙の自動排出、ステツプ722は操作装置から
SOH信号を受信した時は第11図のステツプ612
へ復帰して、ホストコンピユータから操作装置3
0へと接続の切り換えを行うステツプである。ス
テツプ724〜734はプリンタ本体の操作卓によるキ
ー操作に基づく処理をするステツプである。
本実施例は以上の構成及び作用により予め印刷
された用紙の印字所定箇所に必要なデータのみを
印字することが出来る。特にデータベースシステ
ムのデータの印字に効果を発揮する。又設定され
た各データの印字開始位置に印字ヘツドが移動し
て設定された受信位置を容易に確認することが出
来ると共にその受信位置の再設定を行うことが出
来る。
The present invention will be explained below based on specific examples. FIG. 2 is a block diagram showing the configuration of the embodiment device. This device consists of a handy operating device 30 separate from the printer body and a main device mainly consisting of a computer system built into the printer body. The operating device 30 includes a keyboard 34 for inputting various operations, a CPU 32 for creating print format control data, a RAM 38 for storing print format control data, etc., and a RAM 38 for storing the stored contents even when power is not being supplied from the printer main body. It consists of a battery 40 for holding, and an input/output interface 36 for transmitting and receiving data with a CPU 68 constituting the main device on the printer main body side. The printer includes a buffer register 62 for inputting print data from the host computer 50, a status register 64 for informing the host computer of its status, and a CPU 6 for performing print processing.
8. ROM 70 that stores this processing program and various parameters, and RAM 6 that stores print format control data, print data, etc.
6. An output interface 72 is connected to the CPU 68, and includes a driver 7 that drives a paper feeding motor (LF motor).
4 is connected, and its driver has LF motor 7.
6 is connected. A driver 78 for laterally moving the print head is connected to output interface 72, and driver 78 drives a CR motor 80 for moving the print head. Further, a driver 82 for driving a printing solenoid 84 is connected to the output interface 72. FIG. 3 is a plan view showing the outer shape of the operating device 30. The keyboard 34 has a mode 1 key, a mode 2 key, and a cursor key. The mode 1 key is a registration key 341 for creating and registering print format control data, a modification key 342 and a deletion key 343 for modifying or deleting registered print format control data, and a key for storing print format control data in the RAM 66 of the main device. and a call key 344 for transferring data to and controlling printing. The mode 2 keys are the enter key 345 for setting the registration number and print head reception position, the end key 346 for ending the mode 2 state, and the reception position of registered print format control data, print pitch, etc. for formal printing. Confirmation key 34 to print and confirm beforehand
7. Space key 348 to set the print pitch;
Data insertion key 349 and data deletion key 350 for inserting and deleting print format control data, etc.
Consists of. In addition, the operating device 30 has a registration number representing the number of the print format control data group, a data number representing the number of the print position of the print data in one registration group,
It also has a liquid crystal display panel 300 for displaying messages such as errors. Further, a CPU 32, a RAM 38, an input/output interface 36, a battery 40, etc. are arranged inside the frame. FIG. 4 is an electric circuit diagram showing the connection relationship between the operating device 30 and the printer main body, and FIG. 6 is an explanatory diagram showing the logic of the signals. Switch SW
0, SW1, SW2, and SW3 correspond to cursor keys 353, 352, 354, and 351, respectively. Output signal line L of gate circuits 361 and 362
1 and L2 are connected to the main device on the printer side. Further, the signal lines L1 and L2 are input to the gate circuit 363, and the output line L3 is input to the microcomputer 4.
5. Furthermore, the output signal line L4 of the switch SW3 is connected to the microcomputer 45. When one of the signal lines L3 and L4 is at a low level, it indicates that one of the cursor keys has been operated, so the CPU 32 outputs a low level signal to the main unit via the signal line L5 to While the signal line L5 is at a low level, the device
By analyzing the logic levels of the signal lines L1 and L2, it is possible to determine which cursor key has been operated. The main device can control the print head and paper feed based on this signal. In addition, the microcomputer 45 and the main device are connected to data lines L6 and L.
7 for sending and receiving control signals,
Print format control data is transmitted.
The CPU 32 of the microcomputer 45 determines the logic levels of the signal lines L3 and L4 and presses the cursor key SW3 for incrementing the registration number.
351 and cursor keys for decrement
It is possible to determine which of SW1 and SW352 has been operated. Next, registration of print format control data will be described. FIG. 6 shows the CPU 32 of the operating device 30.
Figure 11 is a flowchart showing the main processing program of the main unit of the printer.
68 is a flowchart showing the main program of processing. When the power switch of the operating device 30 is turned on, in step 100, a message indicating that the interface with the main device is being adjusted is displayed. In step 102, counter C is set to 0, and in step 104,
The SOH signal is transmitted until a response signal is received from the main device, the DC1 signal from the main device is received in steps 106 and 108, the counter C is updated in step 110, and five DC1 signals are received in step 112. When it is determined, an ACK signal is transmitted and the number of remaining registrable data is displayed in step 116. Meanwhile, in the process of steps 600 to 610 in FIG.
After receiving 50 SOH signals, it transmits 5 bytes of DC1 signal, completing the connection between the operating device 30 and the main device of the printer body. Thereafter, the operating device 30 executes the registration number selection program in step 118. FIG. 7 is a flowchart showing the processing procedure of the registration number selection program. When a key input is received from the keyboard 34 in step 200, it is determined in step 202 whether the mode selection key for mode 1 has been pressed, and if the registration key has been pressed in step 204, the next key input is determined in step 206. Wait for step 208 and press increment key SW3, 351
is operated, search the data in ascending order excluding the registration number registered in RAM38,
In step 212, the unset registration number is displayed on the display panel 300.
to be displayed. Further, if it is determined in step 214 that the decrement key SW1, 352 has been operated, the unregistered numbers are searched in descending order in step 216, and the unregistered numbers are displayed in descending order on the display panel 300 in step 212. do. If the desired registration number is displayed by the above key operation, press the enter key 345, the key input is judged in step 218, and the displayed registration number is set in the RAM 38 in step 220. and then step 222
Then, a program for registering print format control data of the group belonging to that registration number is executed. To display the registration number for modifying or deleting the print format control data once registered in the RAM 38 and for calling to transfer the print format control data to the RAM 66 of the main unit of the printer, proceed to step 230. ~The processing of block B in step 246 is performed. The process is to search only for registered numbers, display the registration numbers in ascending or descending order according to the operation of the increment key or decrement key, and select the displayed registration number by operating the enter key. It is done by folding. Next, the processing of the registration program will be explained.
FIG. 8 is a flowchart explaining the process. The registration number is displayed in step 300, the SOH signal is sent to the main device in step 302, and the main device sends the SOH signal in steps 612, 614, and 616 (Figure 11).
When it receives a signal, it sends a DC1 signal. If the operating device 30 receives the DC1 signal in step 304, it outputs an ACK signal in step 306, and proceeds to steps 308 and 310 to display the data number.
Data number 0 is used to control the centering of the print head relative to the paper. In step 314, DC
1 signal to put the main device into cursor reception position control mode. Next, in step 316, reception position control program A shown in FIG. 14 is executed. The main device decodes the DC1 signal and goes to step 622.
The receiving position control program B (FIG. 15) is executed. Next, the receiving position control means will be explained according to the programs shown in FIGS. 14 and 15. FIG. 14 shows the processing procedure of the operating device, and FIG. 15 shows the processing procedure of the main device. At step 800, a decision key is determined, and at steps 802 and 804, it is determined whether or not a cursor key has been operated. That is, the determination can be made by detecting whether either the signal line L3 or L4 in FIG. 4 is at a low level. When the operation of the cursor key is detected, the process moves to step 806, and the signal line L5 is set to a low level to notify the main device of this fact. Also, when both signal lines L3 and L4 become high level in steps 808 and 810, it means that the cursor key presses have been stopped, so in step 812 the signal line L
5 to a high level and informs the main device of this information. On the other hand, in step 848, the main device sets initial values for counter A, which stores the horizontal coordinates of the receiving position of the print head, and counter B, which stores its vertical coordinates. Next, in step 850, it is determined whether there is a response request signal for the head position due to the pressing of the enter key, and in step 852, the signal level of the signal line L5 is detected, and if it is at a low level, the pressing of the cursor key is detected. It is determined that there is a signal line L in step 854.
Depending on the logic level of L1 and L2 (Fig. 5), a reception position movement program is executed to drive the CR motor 80 to move the print head one dot or to drive the LF motor 76 to feed the paper by the minimum unit amount. Execute. FIG. 18 is a flowchart showing this reception position movement program. If it is determined in step 900 that signal line L1 is at a high level, the process moves to step 902 and the logic level of signal line L2 is determined. If the signal line L2 is at a low level, the process moves to step 904, where the CR motor is rotated forward by a unit angle in order to move the print head one dot to the right. Next, in step 906, counter A is incremented by 1 and the horizontal coordinates of the print head reception position at that time are stored. In step 902, if it is determined that the signal line L2 is at a high level, the LF motor is rotated negatively by a unit angle to feed the paper in the reverse direction. Then, in step 932, counter B is decremented by 1 and the vertical coordinate of the print head reception position at that time is stored. Similarly, in step 900, connect the signal line L.
1 is determined to be at a low level, step 910
Then, the logic level of the signal line L2 is determined. When the logic level is high level, step
At step 912, the CR motor is rotated in the negative direction by a unit angle to move the print head to the left.
At 914, counter A is decremented by 1 and the horizontal coordinates of the receiving position of the print head are stored. Also, step 910
If the signal line L2 is at a low level, the process moves to step 920, in which the LF motor is rotated forward by a unit angle in order to feed the paper in the forward direction, and in step 922, the counter B is rotated.
is incremented by 1 and the vertical coordinate of the print head reception position at that time is stored. In this way, the coordinates of the receiving position of the print head on the paper can be stored as it is moved. Returning to FIG. 15, after waiting for 0.5 seconds at step 856, the cursor key continues to be pressed when the signal line L5 is still at a low level at step 858, so the signal line L5 is at a high level at steps 860 and 862. Continuously control the head or paper feed until the Therefore, while the cursor key continues to be pressed, the receiving position of the print head changes continuously. At this time as well, the value of counter A or B changes by the amount of movement in accordance with the movement of the print head and the paper feed, and the coordinates of the reception position of the print head at that time are stored. In this manner, when the print head is moved to a desired position by operating the cursor keys and the enter key 345 is then pressed, the operating device transmits a reception position response request signal ENQ in step 814. The main device determines reception of this signal in step 850, and in step 864 transmits the coordinates of the receiving position of the print head stored in counters A and B to the operating device. The operating device receives the coordinate data of the received position in steps 816 and 818 and stores it in the RAM 38. Repeat the above operations in order and start printing all the unit data on the paper shown in Figure 16.
By setting the coordinates of , the registration of print format control data is completed. Next, the setting of print pitch data will be described.
Steps in the process of setting the reception position above.
When the space key 348 is pressed at 326 (FIG. 8), the process moves to step 328. In step 328, the print pitch size is displayed as a numerical value on the display panel in increments or decrements by operating the cursor keys. When a predetermined print pitch to be set is displayed on the display panel, the displayed value can be stored as the print pitch by pressing the enter key. That is, the CPU 68 detects the pressing of the enter key 345 in step 330, selects the displayed value, and prints the print pitch data as B(I) by specifying it by the corresponding data number I in step 332. It is stored in the pitch control section. This print pitch setting is set independently of the print head receiving position setting. That is, the printing pitch can be set at any time. When setting the reception position of a certain unit print data, the print pitch set most recently in the past at the time of setting is processed as the print pitch of that unit print data. Therefore, the most precise printing pitch setting is
It can be set for each unit print data, and most simply, one print pitch common to all print data can be set at once. Steps to register print format control data
At 334, the pressing of the end key 346 is detected, and the step
336 by sending an SOH signal. At this time, the main device receives the SOH signal, outputs the DC1 signal in step 620, and enters a state in which it waits to receive the next control data. Next, the processing procedure for modifying the format control data once registered will be explained according to the flowchart shown in FIG. A previously set registration number is selected according to the procedure shown in FIG. 7, and the correction program shown in FIG. 9 is started in step 250 via step 248 by pressing the correction key. Step 400 ~ Step
408 is a function similar to steps 300 to 308 in FIG. Steps 410 to 414 are steps for sequentially displaying data numbers of format control data. After a given data number is selected, the step
When confirmation key 347 is pressed in step 416, step 418
Then, signal DC3 to move the print head to the set receiving position corresponding to that data number and format control data are transmitted, and the main device starts the step.
In steps 630 to 634, the receiving position of the print head is moved to the print start position of the data of that data number. Through this operation, it is possible to check how the previously set print format control data has been set. In this way, by repeating the routine from step 410 to step 420, that is, by sequentially selecting data numbers and pressing the confirmation key, the print head is sequentially moved to the actually set receiving position. , it is possible to check whether the print format control data is correct or not. Furthermore, when an error in the setting of the reception position is discovered, the print format control data for that data number can be corrected by the following steps. When the enter key is pressed in step 422, that data number is selected. Next steps 424-426
Then, similarly to the registration mode, the receiving position control program A (FIG. 14) is started, which directly moves the receiving position of the print head by operating the cursor. At this time, the main device detects the DC1 signal in step 618, so it is in the registration mode. When reception position control programs A and B are started, cursor key 3
By the operations 51 to 354, the print head can be moved to the correct receiving position. When you move the print head and press the OK key, the first
At step 864 in FIG. 5, the current reception position is transmitted to the operating device, and the correction of the print format control data is completed. Next, in step 428, the display parameter I of the next data number is updated, and the process returns to step 410 to select the next data number, select the data number, confirm the set receiving position, and print. Moving the head and resetting the receiving position can be repeated. To exit this modification mode, simply press the exit key. When the pressing of the end key is detected in step 430, an SOH signal is transmitted in step 432 to end this modification program. Next, a description will be given of test printing based on the format control data created in this manner and the processing procedure for receiving print data from the host computer and printing the data. As shown in FIG. 17, the print data consists of a comment text that is not printed and is underlined in order of data number, followed by CR and LF codes that separate unit print data and unit data. However, in this embodiment, the data number is not input as print data. In the case of test printing, as shown in FIG.
and squares M1 to M14 indicating the printing pitch are printed.
The horizontal length of the square M is the sum of the character width and the character spacing, and the vertical length of the square M is the height of the characters. In addition, in the case of data printing, the print head automatically moves to each registered receiving position ~14 as shown in Figure 16, and the unit data of data number ~14 corresponding to that location is printed. Ru. The registration number of the print format control data is selected through the process shown in FIG.
At 252, the calling program shown in FIG. 10 is executed. Steps 500 to 506 are step 300 in Figure 8.
~306 is the same. Control signal DC in step 508
2 is transmitted, the main device executes the program shown in FIG. 12 via step 618. step 510
In step 512, print format control data is transmitted. The main device receives the data number in step 650 and print format control data in steps 652 and 654. At this stage, the print format control data of the specified registration number has been transferred from RAM 38 to RAM 66 all at once. Next, when the pressing of the confirmation key is detected in step 514, a control signal for test printing is sent in step 516.
ENQ is sent, the main device reads this control signal in step 656, and a test print program is executed in step 658. The print head is moved to the set receiving position based on the print format control data. Next, based on the print pitch data, the sum of the width of the character and the character interval is set as the horizontal length, and the height of the character is set as the vertical length, and the data number is printed in the square. Repeat the above process to perform test printing at all receiving positions. By looking at this result, you can determine whether the data printing position and character pitch are set correctly. When the test printing is completed, a DC1 signal is output in step 660 to notify the end of the test printing. Furthermore, when the pressing of the end key is detected in step 520, a control signal for data printing command is output in step 522.
EOT is sent. At this time, the main device is in step 662.
A printing program that moves to and prints the print data sent from the host computer (Figure 13)
is executed. At step 700, the BUSY bit of the status register 64 is turned off, making it possible to input print data from the host computer. Steps 702 and 704 are processes related to paper feeding. Step 706 indicates whether or not data has been received, and steps 708 and 710 indicate command processing.
Steps 740 to 742 are steps for skipping data in the case of annotation sentences. step 712
-718 are steps in which when an LF code is detected, it is regarded as a delimiter of unit data and is printed at a predetermined position based on print format control data. By repeating steps 706 to 718, data is printed at all printing locations. Step 720 is automatic paper ejection, step 722 is from the operating device.
When the SOH signal is received, step 612 in Figure 11
and return to the operating device 3 from the host computer.
This is a step to switch the connection to 0. Steps 724 to 734 are steps for performing processing based on key operations on the console of the printer body. With the above-described configuration and operation, this embodiment can print only necessary data at predetermined printing locations on a sheet of paper that has been printed in advance. It is especially effective for printing data in database systems. Furthermore, the print head moves to the print start position of each set data, and the set reception position can be easily confirmed and the reception position can be reset.
本発明は、印字ヘツドの受信位置を実際に移動
させて単位データの印字開始位置を記憶して印字
フオーマツト制御データを作成する印字フオーマ
ツト制御データ記憶部とホストコンピユータから
印字データを入力してフオーマツト制御データに
基づいて印字制御する入力制御部と、各単位デー
タ毎にその設定された印字開始位置に印字ヘツド
を実際に移動させるデータ確認制御部を主に有し
ている。
従つて、本発明によれば、実際に印字ヘツドの
受信位置を移動させているので、書式データの作
成が極めて容易となり、所望する印字箇所にデー
タを正確に印字することが出来る。特に、予め所
定の印刷のされた用紙の所定欄に、データを印字
する場合に特に有効であり、文書作成の作業効率
が向上する。印字フオーマツト制御データは所定
形式の用紙毎に記憶しておくことが出来るので一
度作成しておけば、実際の印刷時にそのデータを
再度利用出来、極めて便利である。更に、選択的
に各データの設定された印字開始位置に、実際に
印字ヘツドを移動させることができるので、設定
された各データの印字開始位置の正否を容易に確
認することが出来る。したがつて、印字フオーマ
ツト制御データの修正を容易に行う事が出来る。
The present invention provides format control by inputting print data from a host computer and a print format control data storage section that actually moves the receiving position of the print head and stores the print start position of unit data to create print format control data. It mainly includes an input control section that controls printing based on data, and a data confirmation control section that actually moves the printing head to the set printing start position for each unit of data. Therefore, according to the present invention, since the receiving position of the printing head is actually moved, it is extremely easy to create format data, and the data can be printed accurately at the desired printing location. This is particularly effective when printing data in a predetermined column of a sheet of paper that has been printed in a predetermined manner, and improves the work efficiency of document creation. Since print format control data can be stored for each paper of a predetermined format, once created, the data can be used again during actual printing, which is extremely convenient. Furthermore, since the print head can be selectively moved to the print start position set for each data, it is possible to easily check whether the print start position set for each data is correct. Therefore, the print format control data can be easily modified.
第1図は本発明装置の概念を示したブロツクダ
イヤグラム、第2図は本発明の具体的な一実施例
装置の構成を示したブロツクダイヤグラム、第3
図は同実施例装置に於いて使用された操作装置の
外観を示した平面図、第4図は操作装置とプリン
タの主装置との電気的接続関係を示した電気回路
図、第5図はカーソルキーとヘツド移動信号との
関係を示した説明図である。第6図は操作装置に
使用されたCPUの処理手順のうちその主プログ
ラムを示したフローチヤート、第7図は登録番号
選択プログラムを、第8図はフオーマツト制御デ
ータの登録処理を行う登録プログラムを、第9図
はそのデータの修正を行う修正プログラムを、第
10図は作成された印字フオーマツト制御データ
をプリンタの主装置へ転送する呼出プログラムを
それぞれ示したフローチヤートである。又、第1
1図及び第12図はプリンタ本体に配設された主
装置のCPUの処理手順の主プログラムを、第1
3図はホストコンピユータから印字データを受信
してそれを印字処理する印字プログラムを示した
フローチヤートである。第14図は印字ヘツドの
受信位置をカーソル制御する為の操作装置の受信
位置制御プログラムを、第15図は同じく受信位
置のカーソル制御をするための主装置の受信位置
制御プログラムをそれぞれ示したフローチヤート
である。第16図は単位データの印字開始位置の
設定を説明する為の予め所定形式に印刷された用
紙の平面図、第17図はホストコンピユータに印
字データを設定する方法を説明するための印字デ
ータの一例を示した説明図である。第18図は印
字ヘツドの受信位置を移動してその受信位置の水
平、垂直座標を記憶する為の受信位置移動プログ
ラムを示したフローチヤート、第19図は、テス
ト印字の結果を示す図である。
300……表示盤、351〜354……カーソ
ルキー、351……インクリメントキー、352
……デイクリメントキー。
FIG. 1 is a block diagram showing the concept of the device of the present invention, FIG. 2 is a block diagram showing the configuration of a specific embodiment of the device of the present invention, and FIG.
The figure is a plan view showing the external appearance of the operating device used in the device of the same embodiment, FIG. 4 is an electric circuit diagram showing the electrical connection relationship between the operating device and the main device of the printer, and FIG. FIG. 3 is an explanatory diagram showing the relationship between cursor keys and head movement signals. Figure 6 is a flowchart showing the main program of the processing steps of the CPU used in the operating device, Figure 7 is a registration number selection program, and Figure 8 is a registration program for registering format control data. 9 is a flowchart showing a correction program for correcting the data, and FIG. 10 is a flowchart showing a calling program for transferring the created print format control data to the main device of the printer. Also, the first
Figures 1 and 12 show the main program of the processing procedure of the CPU of the main unit installed in the printer body.
FIG. 3 is a flowchart showing a print program that receives print data from a host computer and processes the print data. Fig. 14 shows a flowchart showing a receiving position control program for the operating device to control the receiving position of the print head with a cursor, and Fig. 15 shows a receiving position control program for the main device to similarly control the receiving position with a cursor. It's a chat. Figure 16 is a plan view of a sheet of paper printed in a predetermined format to explain how to set the print start position of unit data, and Figure 17 is a plan view of a sheet of paper printed in a predetermined format to explain how to set the print data to a host computer. It is an explanatory diagram showing an example. Figure 18 is a flowchart showing a reception position movement program for moving the reception position of the print head and storing the horizontal and vertical coordinates of the reception position, and Figure 19 is a diagram showing the results of test printing. . 300...Display panel, 351-354...Cursor key, 351...Increment key, 352
... Decrement key.
Claims (1)
盤と、 プリンタの用紙を送る信号と印字ヘツドを水平
方向に移動させる信号とを出力して、前記印字ヘ
ツドを前記用紙に対して移動制御するヘツド位置
制御部と、 入力制御部から単位データを入力して前記印字
ヘツドにより前記用紙上に印字するための信号を
出力する印字制御部と、 前記操作盤のキー操作に基づいて前記ヘツド位
置制御部を駆動して、前記用紙上の各印字箇所に
前記印字ヘツドを順次移動させ、そのときの前記
印字ヘツドの位置の水平及び垂直座標を順次記憶
する印字フオーマツト制御データ記憶部と、 前記操作盤のキー操作に基づいて、前記印字フ
オーマツト制御データ記憶部に記憶された一の印
字フオーマツト制御データを選択して、その制御
データを前記ヘツド位置制御部へ出力して、前記
印字ヘツドを設定された位置に移動させて設定さ
れた前記印字フオーマツト制御データの正否を確
認するデータ確認制御部と、 ホストコンピユータから前記各印字箇所に印字
すべき単位データの集合から成る印字データを入
力して、前記単位データの印字開始時に前記印字
フオーマツト制御データ記憶部に記憶された制御
データを順次前記ヘツド位置制御部へ出力し該ヘ
ツド位置制御部を駆動して前記印字ヘツドを設定
された印字箇所へ順次移動させ、前記単位データ
を前記印字制御部へ出力して該印字制御部を駆動
して前記単位データを順次印字させる入力制御部
と、 から成る印字フオーマツト制御装置。 2 前記データ確認制御部は、前記印字ヘツドを
設定値へ移動させて、前記一の印字フオーマツト
制御データの正否を確認した後、その設定データ
に誤りのある時は、前記操作盤のキー操作に基づ
いて前記ヘツド位置制御部を駆動して、前記用紙
上の正しい印字箇所に前記印字ヘツドを移動さ
せ、そのときの前記印字ヘツドの位置の水平及び
垂直座標を新たに記憶するデータ再設定部を有す
ることを特徴とする特許請求の範囲第1項記載の
印字フオーマツト制御装置。[Scope of Claims] 1. An operation panel for inputting various manual operations, and outputting a signal to send paper to the printer and a signal to move the print head in the horizontal direction to move the print head relative to the paper. a head position control unit that controls movement based on key operations on the operation panel; a print control unit that inputs unit data from an input control unit and outputs a signal for printing on the paper by the print head; a print format control data storage unit that drives the head position control unit to sequentially move the print head to each print location on the paper, and sequentially stores the horizontal and vertical coordinates of the print head position at that time; , Selecting one piece of print format control data stored in the print format control data storage section based on key operations on the operation panel, outputting the control data to the head position control section, and controlling the print head position. a data confirmation control unit that moves the print format control data to a set position to confirm whether the set print format control data is correct; At the time of starting printing of the unit data, the control data stored in the print format control data storage section is sequentially outputted to the head position control section, and the head position control section is driven to move the print head to the set printing location. an input control section that sequentially moves the unit data to the print control section, outputs the unit data to the print control section, and drives the print control section to sequentially print the unit data. 2. The data confirmation control section moves the print head to the setting value and confirms whether the first print format control data is correct or not, and if there is an error in the setting data, the data confirmation control section moves the print head to the setting value and, if there is an error in the setting data, controls the operation of the keys on the operation panel. a data resetting unit that drives the head position control unit based on the print head to move the print head to a correct printing position on the paper, and newly stores horizontal and vertical coordinates of the print head position at that time; 2. A print format control device according to claim 1, characterized in that:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60198162A JPS6256172A (en) | 1985-09-06 | 1985-09-06 | Print format control device for serial printers |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60198162A JPS6256172A (en) | 1985-09-06 | 1985-09-06 | Print format control device for serial printers |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6256172A JPS6256172A (en) | 1987-03-11 |
| JPH0586354B2 true JPH0586354B2 (en) | 1993-12-10 |
Family
ID=16386493
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60198162A Granted JPS6256172A (en) | 1985-09-06 | 1985-09-06 | Print format control device for serial printers |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6256172A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2953692B2 (en) * | 1988-01-18 | 1999-09-27 | 富士通株式会社 | Printing control device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6118033A (en) * | 1984-07-04 | 1986-01-25 | Ricoh Co Ltd | print processing device |
| JPS6172571A (en) * | 1984-09-19 | 1986-04-14 | Ricoh Co Ltd | document processing device |
-
1985
- 1985-09-06 JP JP60198162A patent/JPS6256172A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6256172A (en) | 1987-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4861175A (en) | Serial printer control system | |
| US4858171A (en) | Word processor with selective placement of printhead for printing of newly input print data after interruption of printing | |
| JPH0411901B2 (en) | ||
| JPH0586354B2 (en) | ||
| JPH0586353B2 (en) | ||
| JPS6241073A (en) | Receiving position setting device for serial printer | |
| JPH0425872B2 (en) | ||
| JPS6134398B2 (en) | ||
| JPH0586352B2 (en) | ||
| JPS6167125A (en) | word processor | |
| JPH0546935Y2 (en) | ||
| JPH063574B2 (en) | Data setting device | |
| JPS6256175A (en) | serial printer | |
| JP2882793B2 (en) | Document editing device | |
| JPH0226777A (en) | recording device | |
| JPS61279924A (en) | Word processor | |
| JP2721969B2 (en) | Printer device | |
| JPS62131322A (en) | word processor | |
| JPH06270473A (en) | Control method of serial printer | |
| JPH05131708A (en) | Method of creating print format of printing device in text processing device | |
| JPS6297877A (en) | Serial printer operation control data setting device | |
| JPS63131259A (en) | data processing equipment | |
| JPS591279A (en) | Electronic typewriter | |
| JPH09171509A (en) | Character processor | |
| JPS61184621A (en) | Keyboard input device |