JPS6256172A - Print format control device for serial printers - Google Patents

Print format control device for serial printers

Info

Publication number
JPS6256172A
JPS6256172A JP60198162A JP19816285A JPS6256172A JP S6256172 A JPS6256172 A JP S6256172A JP 60198162 A JP60198162 A JP 60198162A JP 19816285 A JP19816285 A JP 19816285A JP S6256172 A JPS6256172 A JP S6256172A
Authority
JP
Japan
Prior art keywords
data
print
printing
control
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.)
Granted
Application number
JP60198162A
Other languages
Japanese (ja)
Other versions
JPH0586354B2 (en
Inventor
Masaaki Hori
雅明 堀
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP60198162A priority Critical patent/JPS6256172A/en
Publication of JPS6256172A publication Critical patent/JPS6256172A/en
Publication of JPH0586354B2 publication Critical patent/JPH0586354B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To easily perform the printing of arbitrary data at the predetermined position of paper, by inputting printing data to perform the control of printing on the basis of format control data and moving a printing head to a set printing start position for every unit data. CONSTITUTION:A printing format control data memory part 16 drives a head position control part 12 in response to the key operation of an operation panel 10 to actually move the receiving position of a printing head 92 and stops a printing head at a place where unit data must be printing and successively stores the receiving position to form printing format control data. A data confirming control part 22 selects one printing format control data to actually move the printing head 92 to the position of said control data. An input control part 14 selects unit data to output the control data stored in a printing format control data memory part 16 to the head position control part 12 and moves the printing head 92 to a preset printing start place.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は、シリアルプリンタを使用して、所定位置への
印字を容易にすることにより、文書作成を簡便、迅速化
した印字フォーマット制御装置に関する。
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.

【従来技術】[Prior art]

従来、シリアルプリンタをホストコンピュータで制御し
て印字する場合、所望の印字形式を得る為には、動作位
置指定コマンド等の印字ヘッドの位置(以下「受信位置
」ともいう)を変化させるコマンドを用いて複雑なプロ
グラムを組む必要があった。このため、使用者に於いて
特別形式の文書を印字するには、そのための専用プログ
ラムを開発する必要があり、極めて不便であった。また
、汎用の文書作成装置である所謂ワードブロセッヅーに
しても、一定範囲でのみ選択的に書式設定ができるに過
ぎず、印字形式を全く自由に設定、修正することは、困
難である。
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 document in a special format, it is necessary to develop a dedicated program for that purpose, which is extremely inconvenient. Furthermore, even with the so-called word blog, 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.

【発明が解決しようとする問題点】[Problems to be solved by the invention]

上記いづれの方法であっても、印刷用紙と印字位置との
関係を使用者の側で厳密に設計しなければ、用紙上の所
望の位置に印字することはできない。特に、予め印刷さ
れた所定の用紙の所定の印字箇所に所定のデータのみを
印字する場合には、何度も用紙をプリンタにセットして
、試行錯誤を繰り返して、所定の位置にデータが印字さ
れるように印字の書式を設定する必要があった。 本発明は、このような問題点を解決するものである。
In any of the above methods, printing cannot be performed 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 in a predetermined print position on pre-printed paper, it is necessary to set the paper in the printer many times and repeat trial and error until the data is printed in the predetermined position. It was necessary to set the printing format so that it would be displayed. The present invention solves these problems.

【発明の目的】[Purpose of the invention]

本発明は、上記の欠点を改良するために成されたもので
あり、任意のデータを用紙の所定位置において、容易に
印字することを特徴とする特に、予め印刷された用紙の
所定箇所に所定のデータのみを印字することを容易にす
る書式設定装置を提供すると共に、設定された書式デー
タを容易に確認出来、必要に応じてその設定書式データ
を容易に修正することを目的とする。
The present invention has been made to improve the above-mentioned drawbacks, and is characterized in that arbitrary data can be easily printed at a predetermined position on a sheet of paper. To provide a format setting device which facilitates printing only data of , and also allows the set format data to be easily confirmed and the set format data to be easily corrected if necessary.

【問題点を解決するための手段】[Means to solve the problem]

第1図は本発明の構成を示したブロックダイヤグラムで
り、その発明の構成は次の通りである。 本発明装置は、各種のマニュアル操作を入力するための
操作盤10と、 プリンタの用紙を送る信号(Sl)と印字ヘッド92を
水平方向に移動させる信号(S2)とを出力して、前記
印字ヘッド92を前記用紙に対して移動制御するヘッド
位置制御部12と、 入力制御部14から単位データを入力して(S8)前記
印字ヘッド92により前記用紙上に印字するための信号
(S3)を出力する印字制御部18と、前記操作盤10
のキー操作に基づいて前記ヘッド位置制御部12を駆動
して、前記用紙上の各印字箇所に前記印字ヘッド92を
順次移動させ、そのときの前記印字ヘッド92の位置の
水平及び垂直座標(S4)を順次記憶する印字フォーマ
ット制御データ記憶部16と、 前記操作盤のキー操作(Si3)に基づいて、前記印字
フォーマット制御データ記憶部16に記憶されたーの印
字フォーマット制御データを選択して(SIO) 、そ
の制御データを前記ヘッド位置制御部へ出力(Sll)
 して、前記印字ヘッド92を設定された位置に移動さ
せて設定された前記印字フォーマット制御データの正否
を確認するデータ確認制御部22と、 ホストコンピュータ50から前記各印字箇所に印字すべ
き単位データの集合から成る印字データ(S5)を入力
して、前記単位データの印字開始時に前記印字フォーマ
ット制御データ記憶部16に記憶された制御データ(S
6)を順次前記ヘッド位置制御部12へ出力(S7) 
L該ヘッド位置制御部12を駆動して前記印字ヘッド9
2を設定された印字箇所へ順次移動させ、前記単位デー
タを前記印字制御部18へ出力(S8)して該印字制御
部18を駆動して前記単位データを順次印字させる入力
制御部14と、 から戊る印字フォーマット制御装置である。 ここに於いて、前記操作盤はプリンタ本体に設けられて
いても、プリンタ本体と別体に構成しても良い。 ヘッド位置制御部12は、操作盤10からの制御信号(
S9)、及び入力制御部14からの制御信号(S7)を
入力して、ドライバー74.78を駆動して印字ヘッド
を所定の位置に移動させる機能を有する。 入力制御部14は、実際の印刷時にホストコンピュータ
50から印字データを入力してヘッド位置制御部を駆動
して、印字ヘッドを印字フォーマット制御データ記憶部
16に記憶された制御データに基づいて予め設定された
位置に移動させる機能を有すると共に、印字制御部18
を駆動して単位印字データをその箇所から印字制御する
機能を有している。 印字フォーマット制御データ記憶部16は、操作盤10
の操作によって、印字ヘッドを単位データの印字開始位
置まで移動させその時の印字ヘッドの位置を記憶する機
能を有する。 データ確認制御部22は、前記操作盤10のキー操作に
応じて、前記印字フォーマット制御データ記憶B16に
記憶されたーの印字フォーマット制御データを選択する
と共に、その制御データを前記ヘッド位置制御部へ出力
して、印字ヘッド92を設定された位置に移動させる機
能を有している。 ホストコンピュータ50は、単位データの集合から成る
印字データを入力制御部14へ出力する機能を有してい
る。各単位データは例えば、データの終端を示すターミ
ネートコード、データ番号、又は文字数等で特定されそ
れぞれが区別されるように設定されている。又ホストフ
ンピユータから出力される印字データは、印字されるべ
き単位データの他、印刷時にそのデータの印字を無視す
る注釈文字データが含まれていても良い。入力制御部1
4はホストコンピュータから入力された一連の印字デー
タから特定箇所に印字する単位データを選別処理する。 印字制御部18は入力制御部14から単位データを受信
し、ドライバー74.78.82を駆動して、そのデー
タを印字処理する機能を有する。 又、データ確認制御部には、操作盤のキー操作に基づい
て前記ヘッド位置制御部を駆動して、用紙上の正しい印
字箇所に前記印字ヘッドを移動させ、そのときの前記印
字ヘッドの位置の水平及び垂直座標を新たに記憶するデ
ータ再設定部を設けるのが望ましい。この機能により、
容易に制御データの訂正が行われる。
FIG. 1 is a block diagram showing the configuration of the present invention, and the configuration of the invention is as follows. The device of the present invention has an operation panel 10 for inputting various manual operations, and outputs a signal (Sl) for feeding the paper of the printer and a signal (S2) for moving the print head 92 in the horizontal direction, and performs the printing. A head position control section 12 controls the movement of the head 92 relative to the paper, and inputs unit data from the input control section 14 (S8) to generate a signal for printing on the paper by the print head 92 (S3). A printing control unit 18 that outputs and the operation panel 10
The head position control unit 12 is driven based on the key operation to sequentially move the print head 92 to each printing location on the paper, and determine the horizontal and vertical coordinates of the position of the print head 92 at that time (S4 ), and selects the print format control data of - stored in the print format control data storage unit 16 based on the key operation (Si3) on the operation panel. SIO), outputs the control data to the head position control unit (Sll)
a data confirmation control unit 22 that moves the print head 92 to a set position to confirm whether the set print format control data is correct; and unit data to be printed at each print location from the host computer 50. The control data (S5) that is stored in the print format control data storage section 16 at the time of starting printing of the unit data is inputted.
6) are sequentially output to the head position control section 12 (S7).
L Drives the head position control section 12 to control the print head 9.
2 to a set printing location, outputs the unit data to the print control unit 18 (S8), and drives the print control unit 18 to sequentially print the unit data; This is a print format control device. 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 unit 12 receives a control signal (
S9) and a control signal (S7) from the input control unit 14 are input to drive the drivers 74 and 78 to move the print head to a predetermined position. The input control unit 14 inputs print data from the host computer 50 during actual printing, drives the head position control unit, and presets the print head based on control data stored in the print format control data storage unit 16. The print control unit 18
It has a function to control printing of unit print data from that location by driving the unit print data. The print format control data storage section 16 is connected to the operation panel 10.
It has a function of moving the print head to the printing start position of unit data by the operation of , and storing the position of the print head at that time. The data confirmation control section 22 selects the print format control data stored in the print format control data storage B16 in response to key operations on the operation panel 10, and sends the control data to the head position control section. It has a function of outputting and moving the print head 92 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 at the time of printing. Input control section 1
4 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 to move the print head to the correct printing location on the paper, and determines 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 feature allows
Control data can be easily corrected.

【作用】 印字フォーマット制御データ記憶部16は、操作盤10
のキー操作に応じて、ヘッド位置制御部12を駆動して
実際に印字ヘッド92の受信位置を移動させ、単位デー
タを印字すべき箇所で、ヘッドを停止させ、その受信位
置を順次記憶して、印字フォーマット制御データを作成
する。又データ確認制御部22は、−の印字フォーマッ
ト制御データを選択して、その制御データの位置まで印
字ヘッドを実際に移動させる。このことにより、設定さ
れた印字フォーマット制御データの正否を1データごと
に確認することが出来る。 ホストコンピュータ50からは、印字データが入力側御
部14に送信される。入力制御部14は、単位データを
選別して印字フォーマット制御データ記憶部工6に記憶
されている制御データをヘッド位置制御部12へ出力し
て予め設定された印字開始箇所に印字ヘッド92を移動
させ、印字制御部18へ単位データを出力する。印字制
御部18は、この単位データを受信して、そのデータを
その箇所から印字する。 この結果、予め印刷された文書用紙の所定の欄にデータ
のみを印字処理する操作が極めて容易に行われ、その印
字開始箇所の設定の正否を容易に確認する事が出来る。
[Operation] The print format control data storage section 16 is connected to the operation panel 10.
In response to the key operation, the head position control unit 12 is driven to actually move the receiving position of the print head 92, the head is stopped at the location where unit data is to be printed, and the receiving positions are sequentially memorized. , create print format control data. Further, the data confirmation control section 22 selects the negative print format control data and actually moves the print head to the position of the control data. This makes it 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 side control section 14 . The input control unit 14 selects unit data and outputs the control data stored in the print format control data storage unit 6 to the head position control unit 12 to move the print head 92 to a preset printing start position. unit data is output to the print control section 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.

【実施例】【Example】

以下本発明を具体的な実施例に基づいて説明する。第2
図は、実施例装置の構成を示したプロックダイヤグラム
である。本装置は、プリンタ本体とは別体のハンディ−
な操作装置30とプリンタ本体に組み込まれた主にコン
ピュータシステムから成る主装置とから成る。 操作装置30は各種の操作入力を行うキーボード34と
、印字フォーマット制御データの作成処理を行うCPU
32と、印字フォーマット制御データ等を記憶するRA
M38と、その記憶内容をプリンタ本体から給電されて
いない時にも保持するバッテリー40と、プリンタ本体
側の主装置を構成するCPLJ 68とデータの送受信
を行う入出力インタフェース36とから成る。 プリンタは、ホストコンビニ−タ50から印字データを
入力するバッファレジスタ62と、その状態をホストコ
ンビ二一夕に知らせるステータスレジスタ64と、印字
処理を行うためのCPU68、この処理プログラム及び
、各種のパラメータを記憶したROM70と、印字フォ
ーマット制御データ、印字データ等を記憶するためのR
AM66とを有している。CPU68には、出力インク
フェース72が接続され、それには紙送りのためのモー
タ(LFモータ)を駆動するドライバー74が接続され
、そのドライバーにはLFモモ−76が接続されている
。印字ヘッドを横方向に移動させるためのドライバー7
8は出力インタフェース72に接続され、ドライバー7
8は印字ヘッドを移動させるCRモータ80を駆動する
。又、出力インタフェース72には印字ソレノイド84
を駆動させるためのドライバー82が接続されている。 第3図は、操作装置30の外形を示した平面図である。 キーボード34は、モード1キーとモード2キーとカー
ソルキーとを有している。モード1キーは、印字フォー
マット制御データを作成登録する登録キー341、登録
されている印字フォーマット制御データを修正又は、削
除するための修正キー342と削除キー343、印字フ
ォーマット制御データを主装置のRAM66へ転送し印
字制御するための呼出キー344とから成る。モード2
キーは、登録番号、印字ヘッドの受信位置の設定を行う
決定キー345、モード2の状態を終了させる終了キー
346、登録された印字フォーマット制御データの受信
位置、印字ピッチ等を正式印刷の前に印字して確認する
確認キー347、印字ピッチを設定するスペースキー3
48、印字フォーマット制御データの挿入、削除等を行
うデータ挿入キー349、データ削除キー350から成
る。 操作装置30は、その他、印字フォーマット制御データ
群の番号を表す登録番号、1登録群中の印字データの印
字箇所の番号を表すデータ番号、その他エラー等のメツ
セージを表示する液晶表示盤300を有している。さら
に、その枠体の内部に、CPU32、RAM38、入出
力インタフェース36、バッテリ40等が配設されてい
る。 第4図は操作装置30とプリンタ本体側との接続関係を
示した電気回路図であり、第6図はその信号の論理を示
した説明図である。スイッチSWO,SWI、SW2.
SW3はそれぞれカーソルキー353.352.354
.351に対応している。ゲート回路361.362の
出力信号線L1、L2はプリンタ側の主装置に接続され
ている。 又信号!IL1、L2は、ゲート回路363に入力しそ
の出力線L3はマイクロコンピュータ45に接続されて
いる。さらに、スイッチSW3の出力信号線L4がマイ
クロコンビュー夕45に接続されている。信号線L3と
L4のうちいづれかが低レベルの間は、カーソルキーの
いづれかが操作されたことを示しているので、CPtJ
32は信号線L5を介して主装置に低レベル信号を出力
して、主装置は、その信号!L5が低レベルの間、信号
線LX、L2の論理レベルを解析して、どのカーソルキ
ーが操作されたかを判定することが出来る。 主装置は、この信号によって、印字ヘッドと紙送りの制
御をすることが出来る。又、マイクロコンピュータ45
と主装置はデータ線L6、L7によって接続されており
、側御信号の送受信、印字フォーマット制御データの送
信が行われる。マイクロコンピュータ45のCPU32
は、信号線L3、L4の論理レベルを判定して、登録番
号のインクリメントのためのカーソルキーS W 3 
(351)とディクリメントのためのカーソルキーS 
W 1 (352)のいづれが操作されたかを判定する
ことが出来る。 次に印字フォーマット制御データの登録について述べる
。第6図は、操作装置30のCPU32の処理のメイン
プログラムを示したフローチャート、第11図は、プリ
ンタ本体の主装置のCPU68の処理のメインプログラ
ムを示したフローチャートである。操作装置30の電源
スィッチが投入されると、ステップ100で、主装置と
のインタフェースの調整中の表示を行う。ステップ10
2でカウンタCをOにセットし、ステップ104で、S
OH信号を主装置側に応答信号があるまで送信し、ステ
ップ106.108で、主装置からのDCI信号を受信
し、ステップ110でカウンタCを更新しステップ11
2でDCI信号を5つ受信したと判定された時ACK信
号を送信しステップ116で残された登録可能データ数
を表示する。 一方、主装置は、その間第11図に於いてステップ60
0〜610の処理により、操作袋ml!30からSOH
信号を50コ受信した後DCI信号を5バイト送信して
、操作装置30とプリンタ本体の主装置との接続を完了
する。その後、操作装置30はステップ118で登録番
号選択プログラムを実行する。 第7図は登録番号選択プログラムの処理手順を示したフ
ローチャートである。ステップ200でキーボード34
からキー人力があった時は、ステップ202でモード1
のモード選択キーが打鍵されたかを判定し、ステップ2
04で登録キーが打鍵された場合にはステップ206で
次のキー人力を待ちステップ208でインクリメントキ
ーSW3 (351)が操作された場合にはRAM38
に登録されている登録番号を除いて、昇順にデータを検
索して、ステップ212で未設定の登録番号を表示!!
300に表示する。又、ステップ214でディクリメン
トキーS W 1 (352)が操作されたと判定され
た場合には、ステップ216で未登録番号を降順に検索
して、ステップ212で表示盤300に、未登録番号を
降順に表示する。希望する登録番号が上記のキー操作に
よって表示された場合には、決定キー345を打鍵すれ
ば、ステップ218でそのキー人力が判定されて、ステ
ップ220で表示された登録番号がRAM38へ設定さ
れ、以降ステップ222でその登録番号に属するグルー
プの印字フォーマット制御データの登録プログラムが実
行される。 一度RAM38に登録された印字フォーマット制御デー
タの修正、削除、及びプリンタ本体の主装置のRAM6
6への印字フォーマット制御データの転送のための呼出
を行うため、その登録番号を表示するには、ステップ2
30〜ステツプ246のブロックBの処理が行われる。 その処理は既登録番号のみを検索して、インクリメント
キー、ディクリメントキーの操作に応じて、昇順又は降
順に登録番号を表示し決定キーを操作してその表示され
た登録番号を選択することによって行われる。 次に登録プログラムの処理について説明する。 348図はその処理を説明したフローチャートである。 ステップ300で登録番号が表示され、ステップ302
でSOH信号を主装置に送信し、主装置はステップ61
2.614.616(第11図)により、SOH信号を
受信するとDCI信号を送信する。操作装置30はステ
ップ304でDC1信号が受信された場合にはステップ
306でACK信号を出力してステップ308.310
に移行して、データ番号を表示する。データ番号0は、
印字ヘッドの用紙に対するセンタリングの制御に使用す
る。ステップ314で、DCI信号を送信して、主装置
をカーソルによる受信位置制御モードにする。次にステ
ップ316で、第14図に示す受信位置制御プログラム
Aが実行される。 主装置はDCI信号を解読してステップ622の受信位
置制御プログラムB(第15図)を実行する。 次に受信位置の制御手段を第14図、第15図に示され
ているプログラムに従って説明する。第14図は操作装
置の処理手順を第15図は主装置の処理手順を示したも
のである。ステップ800で決定キーの判定が行われ、
ステップ802とステップ804に於いてカーソルキー
の操作の有無が判定される。即ち、第4図の信号線L3
又はL4のいづれかが低レベルになるかを検出すること
によって判定できる。カーソルキーの操作が検出された
時はステップ806に移行して、信号線L5を低レベル
にしてその旨を主装置に知らせる。 又、ステップ808.810で両信号!1IL3、L4
が共に高レベルになった時はカーソルキーの打鍵が停止
されたことを意味しているのでステップ812で信号線
L5を高レベルにして、その旨の情報を主装置に知らせ
る。 一方、主装置ではステップ848で、印字ヘッドの受信
位置の水平座標を記憶するカウンタAとその垂直座標を
記憶するカウンタBの初期値を設定する。次に、ステッ
プ850で決定キーの打鍵によるヘッド位置の応答要求
信号があるかが判定され、ステップ852で、信号線L
5の信号レベルを検出してそれが低レベルにあるとカー
ソルキーの打鍵があると判定して、ステップ854で信
号線L1とL2の論理レベルに応じて(第5図)CRモ
ータ80を駆動して印字ヘッドを1ドツト移動するか又
はLFモモ−76を駆動して最小単位量の紙送りを行う
受信位置移動プログラムを実行する。 第18図は、この受信位置移動プログラムを示したフロ
ーチャートである。ステップ900で、信号線L1が高
レベルにあると判定されるとステップ902へ移行して
信号線L2の論理レベルが判定される。この信号線L2
が低レベルにあるとステップ904へ移行して印字ヘッ
ドを1ドツト右方向へ移動させる為にCRモータを単位
角だけ正回転させる。次にステップ90GでカウンタA
を1増加させてその時の印字ヘッドの受信位置の水平座
標を記憶する。ステップ902で、信号線L2が高レベ
ルにあると判定されると、用紙を逆方向に送るためにL
Fモータを単位角だけ負回転させる。そして、ステップ
932でカウンタBを1減少させてその時の印字ヘッド
の受信位置の垂直座標を記憶する。以下同様にして、ス
テップ900で信号線L1が低レベルにあると判定され
るとステップ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図に示す用紙
の全ての単位データの印字開始箇所■〜0の座標を設定
して、印字フォーマット制御データの登録が完成する。 次に印字ピッチデータの設定について述べる。 上記の受信位置の設定の処理に於いてステップ326(
第8図)でスペースキー348が打鍵されると、ステッ
プ328へ移行する。ステップ328でカーソルキーの
操作によって印字ピッチの大きさを数値として表示盤に
インクリメント又はデクリメント的に表示する。所定の
設定すべき印字ピッチが表示盤に表示されると、決定キ
ーを打鍵することによってその表示された値を印字ピッ
チとして記憶することが出来る。即ち、CPU68は、
ステップ330で決定キー345の打鍵を検出して、表
示された値を選定し、ステップ332で、対応するデー
タ番号Iによって特定して印字ピッチデータをB(I)
として印字ピッチ制御部に、記憶する。 この印字ピッチの設定は、印字ヘッドの受信位置の設定
とは独立的に設定される。即ち、印字ピッチの設定は任
意の時に設定できる。ある−の単位印字データの受信位
置の設定に対して、その設定時に、最も近い過去に設定
された印字ピッチがその単位印字データの印字ピッチと
して処理される。従って、印字ピッチの設定は最も緻密
には、各単位印字データ毎に設定することが出来、最も
簡単には、全ての印字データに対して共通の−の印字ピ
ッチを一回で設定することが出来る。 印字フォーマット制御データの登録はステップ334で
終了キー346の打鍵を検出し、ステップ336でSO
H信号を送信することによって終了する。この時主装置
はSOH信号を受信してステップ620でDCI信号を
出力して、次の制御データの受信待ち状態となる。 次に、一度登録されたフォーマット制御データの修正の
処理手順を第9図に示すフローチャートに従って説明す
る。第7図に示す手順により既設定の登録番号が選択さ
れ、修正キーの打鍵によりステップ248を経てステッ
プ250で第9図の修正プログラムが起動される。ステ
ップ400〜ステツプ408は、第8図のステップ30
0〜308と同様の機能である。ステップ410〜ステ
ツプ414はフォーマット制御データのデータ番号を順
次表示するステップである。 所定のデータ番号が選択された後、ステップ416で確
認キー347が打鍵されるとステップ418で、そのデ
ータ番号に対応した設定された受信位置へ印字ヘッドを
移動させる信号DC3とフォーマット制御データが送信
され、主装置はステップ630〜634で、そのデータ
番号のデータの印字開始位置に印字ヘッドの受信位置を
移動させる。この動作により、既設定の印字フォーマッ
ト制御データがどのように設定されていたかを調べるこ
とが出来る。 このように、ステップ410〜ステツプ420のルーチ
ンを繰り返すことにより、即ち、データ番号を順次選択
して、IJキーを打鍵することによって印字ヘッドを実
際に設定された受信位置まで順次移動させて、印字フォ
ーマット制御データの正否の確認をすることが出来る。 又、受信位置の設定の誤りを発見した時は、次のステッ
プにより、そのデータ番号の印字フォーマット制御デー
タの修正をすることが出来る。 ステップ422で決定キーが打鍵されるとそのデータ番
号が選択される。次にステップ424〜426で、登録
モードと同様にカーソルの操作によって直接印字ヘッド
の受信位置を移動させる受信位置制御プログラムA(第
14図)が起動される。この時主装置はステップ618
でDCI信号を検出するので、登録モードになっている
。受信位置制御プログラムA、Bが起動されると、カー
ソルキー351〜354の操作によって、印字ヘッドを
正しい受信位置まで移動させることが出来る。印字ヘッ
ドを移動して、決定キーの打鍵を行うと、第15図ステ
ップ864により現在の受信位置が操作装置に送信され
、印字フォーマット制御データの修正が完了する。 次にステップ428で次のデータ番号の表示パラメータ
Iが更新され、ステップ410に復帰して次のデータ番
号の選択が行われ、上記したデータ番号の選択、設定さ
れている受信位置の確認、印字ヘッドの移動、受信位置
の再設定、を操り返して実行することが出来る。 この修正モードを終了するには、終了キーを打鍵すれば
良い。ステップ430で終了キーの打鍵が検出されると
、ステップ432でSOH信号を送信して本修正プログ
ラムを終了する。 次に、このようにして作成されたフォーマット制御デー
タに基づくテスト印字と、ホストコンピュータから印字
データを受信してそのデータを印字する処理手順につい
て述べる。 印字データは第17図に示すようにデータ番号順に下線
の引かれた印字を行わない注釈文とそれに続く単位印字
データと単位データを区切るコードのCR,LFコード
で構成している。但し本実施例では、データ番号は印字
データとしては入力していない。テスト印字の場合には
、第19図に示すように登録された受信位置■〜■に順
次移動して本実施例の所定の記号であるデータ番号■〜
■と印字ピッチを示す枡M1〜M14が印字される。枡
Mの横の長さは文字の幅と文字間隔を加えた長さを、枡
Mの縦の長さは文字の高さを示している。 又、データの印刷の場合には、第16図に示すように登
録された客受(ゴ位U■〜■に印字ヘッドが自動的に移
動してその箇所に対応したデータ番号■〜■の単位デー
タが印字される。 第7図に於ける処理により印字フォーマット制御データ
の登録番号が選択され、ステップ248で呼出キー34
4の打鍵が判定されるとステップ252で、第10図に
示す呼出プログラムが実行される。ステップ500〜5
06は第8図のステップ300〜306と同一である。 ステップ508で制御信号DC2が送信されると主装置
はステップ618を介して第12図のプログラムを実行
する。ステップ510でデータ数がステップ512で印
字フォーマット制御データが送信される。 1装ばはステップ650でデータ数を受信し、ステップ
652.654で印字フォーマット制御データを受信す
る。この段階で指定された登録番号の印字フォーマット
制御データが一括してRAM38からRAM66へ転送
されたことになる。 次にステップ514で確認キーの打鍵が検出されるとス
テップ516でテスト印字のための制御信号ENQが送
信され、主装置はステップ656でこの制御信号を判読
し、ステップ658でテスト印字プログラムが実行され
る。印字フォーマット制御データに基づき、設定された
受信位置に印字ヘッドを移動する。次に印字ピッチデー
タに基づき文字の横幅と文字間隔との和を横の長さとし
、文字の高さを縦の長さとする枡と枡の中にデータ番号
を印字する。上記の処理を繰り返して全ての受信位置へ
テスト印字を行う。この結果を見て、データを印字する
位置と文字ピッチが正確に設定されているかを判定する
事が出来る。テスト印字が終了するとステップ660で
DCI信号を出力して、テスト印字の終了を知らせる。 又、ステップ520で終了キーの打鍵が検出されると、
ステップ522でデータ印字指令の制御信号EOTが送
信される。この時主装置はステップ662へ移行してホ
ストコンピュータから送信される印字データを印刷する
印字プログラム(第13図)が実行される。ステップ7
00でステータスレジスタ64のBUSYビットをオフ
にして、ホストコンピュータから印字データを入力出来
る状態にする。ステップ702.704は用紙の給紙に
関する処理である。ステップ706はデータの受信の有
無の判定を、ステップ708.710はコマンド処理を
示す。ステップ740〜742は注釈文の場合のデータ
の読み飛ばし処理を行うステップである。ステップ71
2〜718はLFコードを検出したときは単位データの
区切りと見做して、印字フォーマット制御データに基づ
いて所定の位置に印字処理するステップである。ステッ
プ706〜718の繰り返しにより全ての印字箇所にデ
ータが印字される。ステップ720は用紙の自動排出、
ステップ722は操作装置からSOH信号を受信した時
は第11図のステップ612へ[1)して、ホストコン
ピュータから5操作装置30へと接続の切り換えを行う
ステップである。 ステップ724〜734はプリンタ本体の操作卓による
キー操作に基づく処理をするステップである。 本実施例は以上の構成及び作用により予め印刷された用
紙の印字所定箇所に必要なデータのみを印字することが
出来る。特にデータベースシステムのデータの印字に効
果を発揮する。又設定された各データの印字開始位置に
印字ヘッドが移動して設定された受信位置を容易に確認
することが出来ると共にその受信位置の再設定を行うこ
とが出来る。
The present invention will be explained below based on specific examples. Second
The figure is a block diagram showing the configuration of the embodiment device. This device is a handy device separate from the printer itself.
It consists of an operating device 30 and a main device mainly consisting of a computer system built into the main body of the printer. The operating device 30 includes a keyboard 34 for inputting various operations, and a CPU for creating print format control data.
32, and RA that stores print format control data, etc.
M38, a battery 40 that retains its stored contents even when power is not being supplied from the printer main body, and an input/output interface 36 that sends and receives data to and from the CPLJ 68 that constitutes the main device of the printer main body. The printer includes a buffer register 62 for inputting print data from the host combiner 50, a status register 64 for informing the host combiner of its status, a CPU 68 for performing print processing, this processing program, and various parameters. ROM 70 for storing the data, and R for storing print format control data, print data, etc.
AM66. An output ink face 72 is connected to the CPU 68, and a driver 74 for driving a paper feeding motor (LF motor) is connected to the output ink face 72, and an LF motor 76 is connected to the driver. Driver 7 for moving the print head laterally
8 is connected to the output interface 72, and the driver 7
8 drives a CR motor 80 that moves the print head. In addition, the output interface 72 has a printing solenoid 84.
A driver 82 for driving is connected. 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. Mode 1 keys include 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 343 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. Mode 2
The keys are a confirmation key 345 for setting the registration number and print head reception position, an end key 346 for ending the mode 2 state, and a reception position and print pitch for the registered print format control data before formal printing. Confirmation key 347 to print and confirm, space key 3 to set print pitch
48, a data insertion key 349 for inserting or deleting print format control data, and a data deletion key 350. The operating device 30 also includes a liquid crystal display panel 300 that displays 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, and other messages such as errors. are doing. Furthermore, 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. Switches SWO, SWI, SW2.
SW3 is cursor key 353, 352, 354 respectively
.. 351 is supported. Output signal lines L1 and L2 of the gate circuits 361 and 362 are connected to the main device on the printer side. Another signal! IL1 and L2 are input to a gate circuit 363, and its output line L3 is connected to the microcomputer 45. Furthermore, the output signal line L4 of the switch SW3 is connected to the microcontroller 45. While either signal line L3 or L4 is at a low level, it indicates that one of the cursor keys has been operated, so CPtJ
32 outputs a low level signal to the main device via the signal line L5, and the main device receives the signal! While L5 is at a low level, it is possible to determine which cursor key has been operated by analyzing the logic levels of signal lines LX and L2. The main device can control the print head and paper feed based on this signal. Also, microcomputer 45
The main device is connected by data lines L6 and L7, and side control signals are transmitted and received, and print format control data is transmitted. CPU 32 of microcomputer 45
determines the logic level of signal lines L3 and L4, and presses the cursor key SW3 to increment the registration number.
(351) and cursor key S for decrement
It is possible to determine which of W 1 (352) has been operated. Next, registration of print format control data will be described. FIG. 6 is a flowchart showing a main program for processing by the CPU 32 of the operating device 30, and FIG. 11 is a flowchart showing a main program for processing by the CPU 68 of the main device of the printer body. 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. Step 10
2, the counter C is set to O, and in step 104, the counter C is set to O.
The OH signal is transmitted until there is a response signal on the main device side, the DCI signal from the main device is received in steps 106 and 108, the counter C is updated in step 110, and the process proceeds to step 11.
When it is determined in step 2 that five DCI signals have been received, an ACK signal is transmitted, and in step 116, the number of remaining registrable data is displayed. Meanwhile, the main device in step 60 in FIG.
By processing 0 to 610, the operation bag ml! From 30 to SOH
After receiving 50 signals, a 5-byte DCI signal is transmitted to complete 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. keyboard 34 in step 200
When there is key human power, mode 1 is selected in step 202.
Determine whether the mode selection key has been pressed, and proceed to step 2.
If the registration key is pressed in step 04, the next key input is waited for in step 206, and if the increment key SW3 (351) is operated in step 208, the RAM 38 is
Search the data in ascending order, excluding registration numbers registered in , and display unset registration numbers in step 212! !
300. If it is determined in step 214 that the decrement key SW 1 (352) has been operated, unregistered numbers are searched in descending order in step 216, and the unregistered numbers are displayed on the display panel 300 in step 212. Display in descending order. When the desired registration number is displayed by the above-mentioned key operation, if the enter key 345 is pressed, the key strength is determined in step 218, and the displayed registration number is set in the RAM 38 in step 220. Thereafter, in step 222, a program for registering print format control data of the group belonging to that registration number is executed. Modification and deletion of print format control data once registered in RAM38, and RAM6 of the main device of the printer main unit
To make a call for the transfer of print format control data to 6 and display its registration number, step 2
Processing of block B from step 30 to step 246 is performed. This process searches only for registered numbers, displays the registration numbers in ascending or descending order according to the operation of the increment key or decrement key, and selects the displayed registration number by operating the enter key. It will be done. Next, the processing of the registration program will be explained. FIG. 348 is a flowchart explaining the process. A registration number is displayed in step 300, and step 302
The SOH signal is sent to the main device at step 61, and the main device performs step 61.
2.614.616 (FIG. 11), when receiving the SOH signal, it transmits the DCI signal. If the DC1 signal is received in step 304, the operating device 30 outputs an ACK signal in step 306, and performs 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, a DCI signal is sent to put the main device into a 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 DCI signal and executes the reception position control program B (FIG. 15) in step 622. Next, the reception 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. In step 800, a decision key is determined,
In steps 802 and 804, it is determined whether or not a cursor key has been operated. That is, the signal line L3 in FIG.
Alternatively, the determination can be made by detecting whether any of L4 becomes 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, both signals at steps 808 and 810! 1IL3, L4
When both become high level, it means that the pressing of the cursor keys has been stopped, so in step 812, the signal line L5 is made high level, and information to that effect is notified to the main device. On the other hand, in step 848, the main device sets initial values for a counter A that stores the horizontal coordinates of the receiving position of the print head and a counter B that stores its vertical coordinates. Next, in step 850, it is determined whether there is a response request signal for the head position by pressing the enter key, and in step 852, the signal line L
5 is detected, and if it is at a low level, it is determined that a cursor key has been pressed, and in step 854, the CR motor 80 is driven according to the logic levels of signal lines L1 and L2 (FIG. 5). Then, a reception position movement program is executed to move the print head one dot or drive the LF momo 76 to feed the paper by the minimum unit amount. FIG. 18 is a flowchart showing this reception position movement program. If it is determined in step 900 that the signal line L1 is at a high level, the process moves to step 902 and the logic level of the signal line L2 is determined. This signal line L2
If it is at a low level, the process moves to step 904 and the CR motor is rotated forward by a unit angle in order to move the print head one dot to the right. Next, at step 90G, counter A
is incremented by 1, and the horizontal coordinate of the print head reception position at that time is stored. In step 902, if it is determined that the signal line L2 is at a high level, the signal line L2 is
Rotate the F motor negatively by a unit angle. 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, if it is determined in step 900 that the signal line L1 is at a low level, the process moves to step 910 and the logic level of the signal line L2 is determined. If the logic level is high, in step 912 the CR motor is rotated in the negative direction by a unit angle to move the print head to the left, and in step 914 counter A is decremented by 1 to move the print head to the receiving position. Remember horizontal coordinates. If the signal line L2 is at a low level in step 910, the process moves to step 920, where 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 incremented by 1 and the current value is Store the vertical coordinates of the receive position of the printhead. In this way, the coordinates of the receiving position of the print head on the paper can be stored while being moved. Returning to FIG. 15, after waiting for 0.5 seconds in step 856, in step 858, the signal line L5 is still at a low level because the cursor key continues to be pressed. Continuously control the head or paper feed until the level reaches a high level. 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 the counter A or B changes by the amount of movement in accordance with the movement of the print head and paper feeding, 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 the reception position response request signal ENQ in step 814. The main device determines reception of this signal in step 850 and sets the counters A and B in step 864.
The coordinates of the receiving position of the print head stored in are transmitted to the operating device. The operating device receives the coordinate data of the received position and stores it in the RAM 38 in steps 816 and 818. The above operations are sequentially repeated and executed to set the coordinates of print start points ① to 0 for all unit data of the sheet shown in FIG. 16, and the registration of print format control data is completed. Next, the setting of printing pitch data will be described. In the process of setting the reception position described above, step 326 (
When the space key 348 is pressed in 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
In step 330, the pressing of the enter key 345 is detected and the displayed value is selected, and in step 332, the printing pitch data is specified by the corresponding data number I and set to B(I).
It is stored in the print pitch control unit as . The setting of this printing pitch is set independently of the setting of the receiving position of the print head. That is, the printing pitch can be set at any time. With respect to the setting of the receiving position of a certain unit print data of -, the print pitch set in the nearest past at the time of setting is processed as the print pitch of that unit print data. Therefore, the most precise way to set the printing pitch is for each unit of print data, and the easiest way is to set a common - print pitch for all print data at once. I can do it. The printing format control data is registered by detecting the pressing of the end key 346 in step 334, and in step 336 by detecting the pressing of the end key 346.
The process ends by transmitting an H signal. At this time, the main device receives the SOH signal, outputs the DCI signal in step 620, and enters a state of waiting for reception of 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 preset 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. Steps 400 to 408 are steps 30 in FIG.
This is the same function as 0 to 308. Steps 410 to 414 are steps for sequentially displaying data numbers of format control data. After a predetermined data number is selected, when the confirmation key 347 is pressed in step 416, a signal DC3 for moving the print head to the set receiving position corresponding to the data number and format control data are transmitted in step 418. Then, in steps 630 to 634, the main device moves the receiving position of the print head to the printing 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 IJ key, the print head is sequentially moved to the actually set receiving position, and printing is performed. It is possible to check whether 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 next step. When the enter key is pressed in step 422, that data number is selected. Next, in steps 424 to 426, the receiving position control program A (FIG. 14) is started, which moves the receiving position of the print head directly by operating the cursor, as in the registration mode. At this time, the main device performs step 618.
Since it detects the DCI signal, it is in registration mode. When the reception position control programs A and B are activated, the print head can be moved to the correct reception position by operating the cursor keys 351 to 354. When the print head is moved and the enter key is pressed, the current reception position is transmitted to the operating device in step 864 in FIG. 15, 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. You can move the head and reset the reception position by controlling it. 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 and the present modification program is ended. 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 an underlined annotation text that is not printed 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.
3 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 printing data, the print head automatically moves to the registered customer reception area (go position U■~■) as shown in Fig. The unit data is printed. The registration number of the print format control data is selected by the process in FIG.
When it is determined that key 4 has been pressed, the calling program shown in FIG. 10 is executed in step 252. Step 500-5
06 is the same as steps 300 to 306 in FIG. When the control signal DC2 is transmitted in step 508, the main device executes the program shown in FIG. 12 via step 618. At step 510, the number of data is transmitted, and at step 512, print format control data is transmitted. One 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 designated registration number is transferred from the RAM 38 to the RAM 66 all at once. Next, when the pressing of the confirmation key is detected in step 514, a control signal ENQ for test printing is transmitted in step 516, the main device reads this control signal in step 656, and the test printing program is executed in step 658. be done. The print head is moved to the set receiving position based on the print format control data. Next, based on the printing pitch data, a data number is printed in a square and a square whose horizontal length is the sum of the character width and the character spacing, and the height of the character is the vertical length. 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 DCI signal is output in step 660 to notify the end of the test printing. Further, when the pressing of the end key is detected in step 520,
In step 522, a control signal EOT for a data print command is transmitted. At this time, the main device moves to step 662 and executes a print program (FIG. 13) for printing print data transmitted from the host computer. Step 7
00 turns off the BUSY bit of the status register 64, 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 71
2 to 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 automatically ejects paper;
Step 722 is a step in which when an SOH signal is received from the operating device, the process goes to step 612 in FIG. 11 (1) and the connection is switched from the host computer to the fifth operating device 30. 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. Further, 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.

【発明の効果】【Effect of the invention】

本発明は、印字ヘッドの受信位置を実際に移動させて単
位データの印字開始位置を記憶して印字フォーマット制
御データを作成する印字フォーマット制御データ記憶部
とホストコンピュータから印字データを入力してフォー
マット制御データに基づいて印字制御する入力制御部と
、各単位データ毎にその設定された印字開始位置に印字
ヘッドを実際に移動させるデータ確認制御部を主に有し
ている。 従って、本発明によれば、実際に印字ヘッドの受信位置
を移動させているので、書式データの作成が極めて容易
となり、所望する印字箇所にデータを正確に印字するこ
とが出来る。特に、予め所定の印刷のされた用紙の所定
欄に、データを印字する場合に特に有効であり、文書作
成の作業効率が向上する。印字フォーマット制御データ
は所定形式の用紙毎に記憶しておくことが出来るので一
度作成しておけば、実際の印刷時にそのデータを再度利
用出来、極めて便利である。更に、選択的に各データの
設定された印字開始位置に、実際に印字ヘッドを移動さ
せることができるので、設定された各データの印字開始
位置の正否を容易に確認する事が出来る。したがって、
印字フォーマット制御データの修正を容易に行う事が出
来る。
The present invention includes a print format control data storage section that actually moves the receiving position of the print head to store the printing start position of unit data and creates print format control data, and a print format control data storage section that inputs print data from a host computer to control the format. It mainly includes an input control section that controls printing based on data, and a data confirmation control section that actually moves the print head to a set printing start position for each unit of data. Therefore, according to the present invention, since the receiving position of the print head is actually moved, it is extremely easy to create format data, and the data can be accurately printed at the desired print 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 it is possible to actually move the print head selectively to the print start position set for each data, it is possible to easily confirm whether the print start position set for each data is correct. therefore,
Print format control data can be easily modified.

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

第1図は本発明装置の概念を示したブロックダイヤグラ
ム、第2図は本発明の具体的な一実施例装置の構成を示
したブロックダイヤグラム、第3図は同実施例装置に於
いて使用された操作装置の外観を示した平面図、第4図
は操作装置とプリンタの主装置との電気的接続関係を示
した電気回路図、第5図はカーソルキーとヘッド移動信
号との関係を示した説明図である。第6図は操作装置に
使用されたCPUの処理手順のうちその主プログラムを
示したフローチャート、第7図は登録番号選択プログラ
ムを、第8図はフォーマット制御データの登録処理を行
う登録プログラムを、第9図はそのデータの修正を行う
修正プログラムを、第10図は作成された印字フォーマ
ット制御データをプリンタの主装置へ転送する呼出プロ
グラムをそれぞれ示したフローチャートである。又、第
11図及び第12図はプリンタ本体に配設された主装置
のCPUの処理手順の主プログラムを、第13図はホス
トコンピュータから印字データを受信してそれを印字処
理する印字プログラムを示したフローチャートである。 @14図は印字ヘッドの受信位置をカーソル制御する為
の操作装置の受信位置制御プログラムを、第15図は同
じく受信位置のカーソル制御をするための主装置の受信
位置制御プログラムをそれぞれ示したフローチャートで
ある。第16図は単位データの印字開始位置の設定を説
明する為の予め所定形式に印刷された用紙の平面図、第
17図はホストコンピュータに印字データを設定する方
法を説明するための印字データの一例を示した説明図で
ある。第18図は印字ヘッドの受信位置を移動してその
受信位置の水平、垂直座標を記憶する為の受信位置移動
プログラムを示したフローチャート、第19図は、テス
ト印字の結果を示す図である。 300・・・・表示盤
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 invention, and Fig. 3 is a block diagram showing the configuration of the device of the embodiment. FIG. 4 is an electrical circuit diagram showing the electrical connection between the operating device and the main device of the printer, and FIG. 5 shows the relationship between the cursor keys and head movement signals. FIG. FIG. 6 is a flowchart showing the main program of the processing procedure of the CPU used in the operating device, FIG. 7 is a registration number selection program, and FIG. 8 is a registration program for registering format control data. FIG. 9 is a flowchart showing a modification program for modifying the data, and FIG. 10 is a flowchart showing a calling program for transferring created print format control data to the main device of the printer. 11 and 12 show the main program for the processing procedure of the CPU of the main device installed in the printer body, and FIG. 13 shows the print program that receives print data from the host computer and processes it. FIG. @Figure 14 is a flowchart showing a reception position control program of the operating device for cursor control of the reception position of the print head, and Figure 15 is a flowchart showing a reception position control program of the main device for controlling the reception position of the print head with a cursor. It is. Fig. 16 is a plan view of a sheet of paper printed in a predetermined format to explain how to set the printing start position of unit data, and Fig. 17 is a plan view of a sheet of paper printed in a predetermined format to explain how to set the printing start position of unit data. It is an explanatory diagram showing an example. FIG. 18 is a flowchart showing a receiving position moving program for moving the receiving position of the print head and storing the horizontal and vertical coordinates of the receiving position, and FIG. 19 is a diagram showing the results of test printing. 300... Display board

Claims (2)

【特許請求の範囲】[Claims] (1)各種のマニュアル操作を入力するための操作盤と
、 プリンタの用紙を送る信号と印字ヘッドを水平方向に移
動させる信号とを出力して、前記印字ヘッドを前記用紙
に対して移動制御するヘッド位置制御部と、 入力制御部から単位データを入力して前記印字ヘッドに
より前記用紙上に印字するための信号を出力する印字制
御部と、 前記操作盤のキー操作に基づいて前記ヘッド位置制御部
を駆動して、前記用紙上の各印字箇所に前記印字ヘッド
を順次移動させ、そのときの前記印字ヘッドの位置の水
平及び垂直座標を順次記憶する印字フォーマット制御デ
ータ記憶部と、前記操作盤のキー操作に基づいて、前記
印字フォーマット制御データ記憶部に記憶された一の印
字フォーマット制御データを選択して、その制御データ
を前記ヘッド位置制御部へ出力して、前記印字ヘッドを
設定された位置に移動させて設定された前記印字フォー
マット制御データの正否を確認するデータ確認制御部と
、 ホストコンピュータから前記各印字箇所に印字すべき単
位データの集合から成る印字データを入力して、前記単
位データの印字開始時に前記印字フォーマット制御デー
タ記憶部に記憶された制御データを順次前記ヘッド位置
制御部へ出力し該ヘッド位置制御部を駆動して前記印字
ヘッドを設定された印字箇所へ順次移動させ、前記単位
データを前記印字制御部へ出力して該印字制御部を駆動
して前記単位データを順次印字させる入力制御部と、 から成る印字フォーマット制御装置。
(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 control the movement of the print head relative to the paper. a head position control section; a print control section that inputs unit data from an input control section and outputs a signal for printing on the paper by the print head; and a print control section that controls the head position based on key operations on the operation panel. a print format control data storage section that sequentially moves the print head to each print location on the paper by driving the print format control data storage section, and sequentially stores the horizontal and vertical coordinates of the position of the print head at that time; and the operation panel. Based on the key operation, one print format control data stored in the print format control data storage section is selected, the control data is output to the head position control section, and the print head is set. a data confirmation control unit that confirms the correctness of the print format control data set by moving the print format control data to the specified position; At the start of data printing, 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 sequentially move the print head to the set printing location. , an input control unit that outputs the unit data to the print control unit and drives the print control unit to sequentially print the unit data.
(2)前記データ確認制御部は、前記印字ヘッドを設定
値へ移動させて、前記一の印字フォーマット制御データ
の正否を確認した後、その設定データに誤りのある時は
、前記操作盤のキー操作に基づいて前記ヘッド位置制御
部を駆動して、前記用紙上の正しい印字箇所に前記印字
ヘッドを移動させ、そのときの前記印字ヘッドの位置の
水平及び垂直座標を新たに記憶するデータ再設定部を有
することを特徴とする特許請求の範囲第1項記載の印字
フォーマット制御装置。
(2) The data confirmation control unit 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 unit data resetting for driving the head position control unit based on the operation to move the print head to the correct printing location on the paper, and newly storing horizontal and vertical coordinates of the print head position at that time; 2. The print format control device according to claim 1, further comprising a print format control device.
JP60198162A 1985-09-06 1985-09-06 Print format control device for serial printers Granted JPS6256172A (en)

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 true JPS6256172A (en) 1987-03-11
JPH0586354B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01184181A (en) * 1988-01-18 1989-07-21 Fujitsu Ltd Word processor equipped with printer

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01184181A (en) * 1988-01-18 1989-07-21 Fujitsu Ltd Word processor equipped with printer

Also Published As

Publication number Publication date
JPH0586354B2 (en) 1993-12-10

Similar Documents

Publication Publication Date Title
JP3706694B2 (en) Information processing apparatus, printer control method, and storage medium
JPH07125374A (en) Layout display device
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
JPH02289046A (en) document creation device
JPH0411901B2 (en)
JPS6256172A (en) Print format control device for serial printers
JPH0586353B2 (en)
JPS6241073A (en) Receiving position setting device for serial printer
JPS59135540A (en) Printer control system for sentence processor
JPH0425872B2 (en)
JPS6167125A (en) word processor
JPH0586352B2 (en)
JPH063574B2 (en) Data setting device
JPS6256175A (en) serial printer
JPS61279924A (en) Word processor
JP3234281B2 (en) Label printing device
JPH01308674A (en) Electronic typewriter
JPH05307626A (en) Bar code printer
JPS62131322A (en) word processor
JPH0422653A (en) printing device
JPH09171509A (en) Character processor
JPH06223053A (en) Word processor
JPS62218166A (en) Word-erasable printing device
JPH06348701A (en) Document processor