JPH0586352B2 - - Google Patents

Info

Publication number
JPH0586352B2
JPH0586352B2 JP60154856A JP15485685A JPH0586352B2 JP H0586352 B2 JPH0586352 B2 JP H0586352B2 JP 60154856 A JP60154856 A JP 60154856A JP 15485685 A JP15485685 A JP 15485685A JP H0586352 B2 JPH0586352 B2 JP H0586352B2
Authority
JP
Japan
Prior art keywords
print
data
head
control
unit
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
Application number
JP60154856A
Other languages
Japanese (ja)
Other versions
JPS6216173A (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 JP60154856A priority Critical patent/JPS6216173A/en
Publication of JPS6216173A publication Critical patent/JPS6216173A/en
Priority to US07/185,314 priority patent/US4861175A/en
Publication of JPH0586352B2 publication Critical patent/JPH0586352B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

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 formation, 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 print formation completely freely.

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

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

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

本発明は、上記の欠点を改良するために成され
たものであり、用紙の所定位置におけるデータの
印字を容易にすることを目的とする。 特に、予め印刷された用紙の所定箇所に所定の
データのみを印字することを容易にする書式設定
装置を提供すると共に、設定された書式を容易に
確認できる装置を設ける事で装置の使用性を向上
させることを目的とする。
The present invention has been made to improve the above-mentioned drawbacks, and an object of the present invention is to facilitate printing of 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 preprinted paper, and also improve the usability of the device by providing a device that allows you to easily check the preset format. The purpose is to improve.

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

第1頭は本発明の構成を示したブロツクダイヤ
グラムである。 本発明は、各種のマニユアル操作を入力するた
めの操作盤10と、 プリンタの用紙を送る信号(S1)と印字ヘツ
ド92を水平方向に移動させる信号(S2)とを
出力して、前記印字ヘツド92を前記用紙に対し
て移動制御するヘツド位置制御部12と、 前記印字ヘツド92により前記用紙上に印字す
るための信号(S3)を出力する印字制御部18
と、 前記操作盤10のキー操作に基づいて前記ヘツ
ド位置制御部12を駆動して、前記用紙上の各印
字箇所に前記印字ヘツド92を順次移動させ、そ
のときの前記印字ヘツド92の位置の水平及び垂
直座標(S4)を順次記憶する印字フオーマツト
制御データ記憶部16と、 ホストコンピユータ50から前記各印字箇所に
印字すべき単位データの集合から成る印字データ
(S5)を入力して、前記単位データの印字開始時
に前記印字フオーマツト制御データ記憶部16に
記憶された制御データ(S6)を順次前記ヘツド
位置制御部12へ出力(S7)し該ヘツド位置制
御部12を駆動して前記印字ヘツド92を設定さ
れた印字箇所へ順次移動させ、前記単位データを
前記印字制御部18へ出力(S8)して該印字制
御部18を駆動して前記単位データを順次印字さ
せる入力制御部14と、 前記印字フオーマツト制御データ記憶部16に
記憶されている制御データ(S10)に設定された
印字位置を確認する場合には、前記操作盤のキー
操作により、前記印字フオーマツト制御データ記
憶部に記憶された制御データを前記ヘツド位置制
御部12へ出力(S11)し、前記印字ヘツド92
を前記用紙上の設定された位置に移動させ、その
位置で印字開始位置を示す所定の記号を印字する
ように前記印字制御部18を制御(S12)するデ
ータ確認制御部22と、から成る印字フオーマツ
ト制御装置である。 前記操作盤はプリンタ本体に設けられていて
も、プリンタ本体と別体に構成しても良い。ヘツ
ド位置制御部12は、操作盤10からの制御信号
(S9)、及び入力制御部14からの制御信号(S7)
を入力して、ドライバー74,78を駆動して印
字ヘツドを所定の位置に移動させるものである。 入力制御部14は、実際の印刷時にホストコン
ピユータ50から印字データを入力してヘツド位
置制御部を駆動して、印字ヘツドを印字フオーマ
ツト制御データ記憶部16に記憶された制御デー
タに基づいて予め設定された位置に移動させる機
能を有すると共に、印字制御部18を駆動して単
位印字データをその箇所から印字制御する機能を
有している。 印字フオーマツト制御データ記憶部16は、操
作盤10の操作によつて、印字ヘツドを単位デー
タの印字開始位置まで移動させてその時の印字ヘ
ツドの位置を記憶するものである。 ホストコンピユータ50は、単位データの集合
から成る印字データを入力制御部14へ出力する
機能を有しており、各単位データは例えば、デー
タの終端を示すターミネートコード、データ番
号、又は文字数等で特定されそれぞれが区別され
るように設定されている。又ホストコンピユータ
から出力される印字データは、印字されるべき単
位データの他、印刷時にそのデータの印字を無視
する注釈文字データが含まれていても良い。入力
制御部14はホストコンピユータから入力された
一連の印字データから特定箇所に印字する単位デ
ータを選別処理する。印字制御部18は入力制御
部14から単位データを受信しドライバー74,
78,82を駆動して、そのデータを印字処理す
る機能を有する。 印字フオーマツト制御データ記憶部16に記憶
されている制御データ(S10)に設定された印字
位置を確認する場合には、データ確認制御部22
は操作盤10からの操作信号(S13)により、印
字フオーマツト制御データ記憶部16から制御デ
ータ(S10)を入力してヘツド位置制御部12へ
制御信号(S11)を出力してそれを駆動して印字
ヘツド92を設定された位置まで移動させ、印字
制御部18に制御信号(S12)を出力してそれを
駆動して所定の記号を印字するものである。ここ
で所定の記号は任意のもので良い。例えば印字デ
ータの番号等である。このデータ確認制御部22
は、前記印字フオーマツト制御データが一用紙に
ついて全て決定された後、そのデータの確認のた
め設定された受信位置に順次印字ヘツドを移動さ
せつつ、所定の記号を印字する機能の他、一度設
定された印字フオーマツト制御データの修正時に
その修正制御データのみを呼び出し、その制御デ
ータに従つて、印字ヘツドの受信位置を実際に移
動させて、その修正データだけの確認をする機能
も有している。 又、第2発明は、第2図のブロツクダイヤグラ
ムに示すように、第1発明に加えて印字データの
印字ピツチを設定する印字ピツチ制御部20と、
印字フオーマツト制御データの確認時に、印字開
始位置及び印字ピツチを示す所定の記号を印字す
るように印字制御部を制御するデータ確認制御部
22aを含んでいることを特徴としている。 ここで、印字ピツチの情報の表示の形態として
は、例えば、文字間隔を含んだ1文字分を枡目で
示すとか、文字間隔を縦罫線で示すとかの形態が
ある。
The first part is a block diagram showing the structure of the present invention. The present invention includes an operation panel 10 for inputting various manual operations, a signal to send paper to the printer (S1), and a signal to move the print head 92 in the horizontal direction (S2). a head position control section 12 that controls the movement of the print head 92 relative to the paper, and a print control section 18 that outputs a signal (S3) for causing the print head 92 to print on the paper.
Then, the head position control unit 12 is driven based on key operations on the operation panel 10 to sequentially move the print head 92 to each printing location on the paper, and the position of the print head 92 at that time is adjusted. A print format control data storage unit 16 that sequentially stores horizontal and vertical coordinates (S4), and print data (S5) consisting of a set of unit data to be printed at each printing location are input from the host computer 50, and the units are At the start of data printing, the control data (S6) stored in the print format control data storage section 16 is sequentially output to the head position control section 12 (S7), and the head position control section 12 is driven to control the print head 92. an input control unit 14 that sequentially moves the unit data 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; When confirming the print position set in the control data (S10) stored in the print format control data storage section 16, use the key operation on the operation panel to confirm the print position set in the control data (S10) stored in the print format control data storage section 16. The data is output to the head position control section 12 (S11), and the data is output to the print head 92.
a data confirmation control unit 22 that controls the print control unit 18 to move the data to a set position on the paper and print a predetermined symbol indicating a print start position at that position (S12); This is a format control device. 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 receives a control signal (S9) from the operation panel 10 and a control signal (S7) from the input control section 14.
is input to drive the drivers 74 and 78 to move the print head to a predetermined position. 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 is used to move the print head to a printing start position of unit data by operating the operation panel 10 and store the position of the print head at that time. The host computer 50 has a function of outputting print data consisting of a set of unit data to the input control unit 14, and each unit data is identified by, for example, a termination code indicating the end of the data, a data number, or the number of characters. and are set to be distinct 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 unit 18 receives the unit data from the input control unit 14 and sends the unit data to the driver 74,
It has a function of driving 78 and 82 and printing the data. When confirming the print position set in the control data (S10) stored in the print format control data storage unit 16, the data confirmation control unit 22
In response to the operation signal (S13) from the operation panel 10, the control data (S10) is input from the print format control data storage section 16, and the control signal (S11) is output to the head position control section 12 to drive it. The print head 92 is moved to a set position, and a control signal (S12) is output to the print control section 18 to drive it and print a predetermined symbol. The predetermined symbol here may be any symbol. For example, it is a number of print data, etc. This data confirmation control section 22
In addition to the function of printing a predetermined symbol while sequentially moving the print head to the set receiving position to confirm the data after all the print format control data has been determined for one sheet of paper, It also has the function of calling only the corrected control data when correcting the print format control data that has been set, and actually moving the receiving position of the print head according to the control data to check only the corrected data. Further, as shown in the block diagram of FIG. 2, the second invention includes, in addition to the first invention, a printing pitch control section 20 that sets the printing pitch of printing data;
The present invention is characterized in that it includes a data confirmation control section 22a that controls the print control section so as to print predetermined symbols indicating the print start position and print pitch when confirming the print format control data. Here, the printing pitch information can be displayed in such a manner that, for example, one character including the character spacing is shown as a grid, or the character spacing is shown as vertical ruled lines.

【作用】[Effect]

印字フオーマツト制御データ記憶部16は、操
作盤10のキー操作に応じて、ヘツド位置制御部
12を駆動して実際に印字ヘツド92の受信位置
を移動させ、単位データを印字すべき箇所で、ヘ
ツドを停止させ、その受信位置を順次記憶して、
印字フオーマツト制御データを作成する。ホスト
コンピユータ50からは、印字データが入力制御
部14に送信され、入力制御部14は、単位デー
タを選別して印字フオーマツト制御データ記憶部
16に記憶されている制御データをヘツド位置制
御部12へ出力して予め設定された印字開始箇所
に印字ヘツド92を移動させ、印字制御部18へ
単位データを出力して、その箇所にそのデータを
印字する。 データ確認制御部22は、一度設定された印字
フオーマツト制御データが正しいことを確認する
ために、正式なデータの印刷の前に、設定された
印字フオーマツト制御データに基づいて、ヘツド
位置制御部12を駆動して印字ヘツドをその設定
された位置に移動させて、所定の記号を印字す
る。単位データ毎に設定されている印字フオーマ
ツト制御データの確認をすることもでき、制御デ
ータの修正が容易である。 又、本第2発明では印字ピツチ制御部20は印
字フオーマツト制御データの登録時、または修正
時に任意に印字される文字のピツチを指定する。
データ確認制御部22aは設定されている文字ピ
ツチの情報を表示することが出来る。従つて、本
第2発明では、印字データの印字ピツチを可変自
在に設定できると共に、その設定の確認をするこ
とが出来る。 この結果、予め印刷された文書用紙の所定の欄
にデータのみを印字処理する操作、及び印字フオ
ーマツト制御データの設定が極めて容易に行われ
る。
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. Print data is transmitted from the host computer 50 to the input control section 14, and the input control section 14 selects unit data and sends the control data stored in the print format control data storage section 16 to the head position control section 12. The print head 92 is moved to a preset printing start position, the unit data is output to the print control section 18, and the data is printed at that position. In order to confirm that the print format control data once set is correct, the data confirmation control section 22 controls the head position control section 12 based on the set print format control data before printing formal data. The printer is driven to move the print head to its set position and print a predetermined symbol. It is also possible to check the print format control data set for each unit of data, making it easy to modify the control data. Further, in the second invention, the print pitch control section 20 arbitrarily specifies the pitch of characters to be printed when registering or modifying print format control data.
The data confirmation control section 22a can display information on the set character pitch. Therefore, in the second aspect of the present invention, the print pitch of the print data can be variably set, and the setting can be confirmed. As a result, the operation of printing only data in a predetermined field of a preprinted document sheet and the setting of print format control data are extremely easily performed.

【実施例】【Example】

以下本発明を具体的な実施例に基づいて説明す
る。第3図は、実施例装置の構成を示したブロツ
クダイヤグラムである。本装置は、プリンタ本体
とは別体のハンデイーな操作装置30とプリンタ
本体に組み込まれた主にコンピユータシステムか
ら成る主装置とから成る。 操作装置30は各種の操作入力を行うキーボー
ド34と、印字フオーマツト制御データの作成処
理を行うCPU32と、印字フオーマツト制御デ
ータ等を記憶するRAM38と、その記憶内容を
プリンタ本体から給電されていない時にも保持す
るバツテリー40と、プリンタ本体側の主装置を
構成するCPU68とデータの送受信を行う入出
力インタフエース36とから成る。 プリンタは、ホストコンピユータ50から印字
データを入力するバツフアレジスタ62と、その
状態をホストコンピユータに知らせるステータス
レジスタ64と、印字処理を行うためのCPU6
8、この処理プログラム及び、各種のパラメータ
を記憶したRAM70と、印字フオーマツト制御
データ、印字データ等を記憶するためのRAM6
6とを有している。CPU68には、出力インタ
フエース72が接続され、それには紙送りのため
のモータ(LFモータ)を駆動するドライバー7
4が接続され、そのドライバーにはLFモータ7
6が接続されている。又、印字ヘツドを横方向に
移動させるためのドライバー78が出力インタフ
エース72に接続され、ドライバー78は印字ヘ
ツドを移動させるCRモータ80を駆動する。又、
出力インタフエース72には印字ソノレイド84
を駆動させるためのドライバー82が接続されて
いる。 第4図は、操作装置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等が配設されている。 第5図は操作装置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,
L7によつて接続されており、制御信号の送受
信、印字フオーマツト制御データの送信が行われ
る。マイクロコンピユータ45のCPU32は、
信号線L3,L4の論理レベルを判定して、登録
番号のインクリメントのためのカーソルキーSW
3(351)とデイクリメントのためのカーソル
キーSW1(352)のいづれが操作されたかを
判定することが出来る。 次に印字フオーマツト制御データの登録につい
て述べる。第7図は、操作装置30のCPU32
の処理のメインプログラムを示したフローチヤー
ト、第12図は、プリンタ本体の主装置のCPU
68の処理のメインプログラムを示したフローチ
ヤートである。操作装置30の電源スイツチが投
入されると、ステツプ100で、主装置とのインタ
フエースの調整中の表示を行う。ステツプ102で
カウンタCを0にセツトし、ステツプ104で、
SOH信号を主装置側に応答信号があるまで送信
し、ステツプ106,108で、主装置からのDCI信号
を受信し、ステツプ110でカウンタCを更新した
ステツプ112でDCI信号を5つ受信したと判定さ
れた時ACK信号を送信しステツプ116で残された
登録可能データ数を表示する。一方、主装置は、
その間第12図に於いてステツプ600〜610の処理
により、操作装置30からSOH信号を50コ受信
した後DCI信号を5バイト送信して、操作装置3
0とプリンタ本体の主装置との接続を完了する。
その後、操作装置30はステツプ118で登録番号
選択プログラムを実行する。 第8図は登録番号選択プログラムの処理手順を
示したフローチヤートである。ステツプ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の処理が行われる。その処理は既登録番
号のみを検索して、インクリメントキー、デイク
リメントキーの操作に応じて、昇順又は降順に登
録番号を表示し決定キーを操作してその表示され
た登録番号を選択することによつて行われる。 次に登録プログラムの処理について説明する。
第9図はその処理を説明したフローチヤートであ
る。ステツプ300で登録番号が表示され、ステツ
プ302でSOH信号を主装置に送信し、主装置はス
テツプ612,614,616(第12図)により、SOH
信号を受信するとDCI信号を送信する。操作装置
30はステツプ304でDCI信号が受信された場合
にはステツプ306でACK信号を出力してステツプ
308,310に移行して、データ番号を表示する。デ
ータ番号0は、印字ヘツドの用紙に対するセンタ
リングの制御に使用する。ステツプ314で、DCI
信号を送信して、主装置をカーソルによる受信位
置制御モードにする。次にステツプ316で、第1
5図に示す受信位置制御プログラムAが実行され
る。主装置はDCI信号を解読してステツプ622の
受信位置制御プログラムB(第16図)を実行す
る。 次に受信位置の制御手段を第15図、第16図
に示されているプログラムに従つて説明する。第
15図は操作位置の処理手順を第16図は主装置
の処理手順を示したものである。ステツプ800で
決定キーの判定が行われ、ステツプ802とステツ
プ804に於いてカーソルキーの操作の有無が判定
される。即ち、第5図の信号線L3又はL4のい
づれかが低レベルになるかを検出することによつ
て判定できる。カーソルキーの操作が検出された
時はステツプ806に移行して、信号線L5を低レ
ベルにしてその旨を主装置に知らせる。又、ステ
ツプ808,810で両信号線L3,L4が共に高レベ
ルになつた時はカーソルキーの打鍵が停止された
ことを意味しているのでステツプ812で信号線L
5を高レベルにして、その旨の情報を主装置に知
らせる。 一方、主装置ではステツプ850で決定キーの打
鍵によるヘツド位置の応答要求信号があるかが判
定され、ステツプ852で、信号線L5の信号レベ
ルを検出してそれが低レベルにあるとカーソルキ
ーの打鍵があると判定して、ステツプ854で信号
線L1とL2の論理レベルに応じて(第6図)
CRモータ80を駆動して印字ヘツドを1ドツト
移動するか又はLFモータ76を駆動して最小単
位量の紙送りを行う。ステツプ856で0.5秒待機し
た後ステツプ858で信号線L5が尚低レベルにあ
るとカーソルキーが打鍵され続けているので、ス
テツプ860とステツプ862とで信号線L5が高レベ
ルになるまでヘツド又は紙送りの制御を連続して
行う。このため、カーソルキーが打鍵され続けて
いる間、連続して印字ヘツドの受信位置が変化す
ることになる。 このようにして、カーソルキーを操作して、印
字ヘツドを所望の位置に移動させ、次に決定キー
345を打鍵すると、操作装置はステツプ814で
受信位置の応答要求信号ENQを送信する。主装
置はステツプ850でこの信号の受信を判定してス
テツプ864で印字ヘツドの受信位置を操作装置に
送信する。操作装置は、ステツプ816、818で受信
位置の座標データを受信してそれをRAM38に
格納する。 上記の操作を順次繰り返して実行し第17図に
示す用紙の全ての単位データの印字開始箇所〜
の座標を設定して、印字フオーマツト制御デー
タの登録が完成する。 上記の処理に於いてステツプ326(第9図)でス
ペースキー348が打鍵されると、ステツプ328
でカーソルキーの操作によつて印字ピツチの大き
さを表示盤にインクリメント又はデクリメント的
に表示しステツプ330で決定キー345の打鍵を
検出して、表示された値を選定しステツプ332で
印字ピツチをフオーマツト制御データの一部とし
て作成する。この印字ピツチの設定は、印字ヘツ
ドの受信位置の設定とは独立的に設定される。即
ち、印字ピツチの設定は任意の時に設定でき、印
字ピツチの一の設定から次に設定されるまでの間
に於ける受信位置の設定に対して、最初の印字ピ
ツチの設定が有効となる。 印字フオーマツト制御データの登録はステツプ
334で終了キー346の打鍵を検出し、ステツプ
336でSOH信号を送信することによつて終了す
る。この時主装置はSOH信号を受信してステツ
プ620でDCI信号を出力して、次の制御データの
受信待ち状態となる。 次に、一度登録されたフオーマツト制御データ
の修正の処理手順を第10図に示すフローチヤー
トに従つて説明する。第8図に示す手順により既
設定の登録番号が選択され、修正キーの打鍵によ
りステツプ248を経てステツプ250で第10図の修
正プログラムが起動される。ステツプ400〜ステ
ツプ408は、第9図のステツプ300〜ステツプ308
と同様の機能である。ステツプ410〜ステツプ414
はフオーマツト制御データのデータ番号を順次表
示するステツプである。 所定のデータ番号が選択された後、ステツプ
416で確認キー347が打鍵されるとステツプ418
で、そのデータ番号に対応した設定された受信位
置へ印字ヘツドを移動させる信号DC3とフオー
マツト制御データが送信され、主装置はステツプ
630〜634で、そのデータ番号のデータの印字開始
位置に印字ヘツドの受信位置を移動させる。この
動作により、既設定の印字フオーマツト制御デー
タがどのように設定されていたかを調べることが
出来る。この時、印字ピツチを含む所定の記号を
データの印字開始位置へ印字するようにしても良
い。そうすれば、さらに受信位置と印字ピツチが
どのように設定されているかを正確に確認するこ
とが出来る。ステツプ422で決定キーが打鍵され
るとそのデータ番号が選択されると共にステツプ
424〜426で、登録モードと同様にカーソルキーの
操作によつて直接印字ヘツドの受信位置を移動さ
せる受信位置制御プログラムA(第15図)が起
動される。この時主装置はステツプ618でDCI信
号を検出するので、登録モードになつている。決
定キーの打鍵があると、第16図ステツプ864に
より現在の受信位置が操作位置に送信され、印字
フオーマツト制御データの修正が完了する。次に
ステツプ428で次のデータ番号の表字パラメータ
が更新される。ステツプ430で終了キーの打鍵
を検出して修正プログラムを終了する。 次に、このようにして作成されたフオーマツト
制御データに基づくテスト印字と、ホストコンピ
ユータから印字データを受信してそのデータを印
字する処理手順について述べる。 印字データは第18図に示すようにデータ番号
順に下線の引かれた印字を行わない注釈文とそれ
に続く単位印字データと単位データを区切るコー
ドのCR,LFコードで構成している。但し本実施
例では、データ番号は印字データとしては入力し
ていない。テスト印字の場合には、第20図に示
すように登録された受信位置1〜14に順次移動し
て本実施例の所定の記号であるデータ番号1〜14
と印字ピツチを示す枡M1〜M14が印字される。
枡Mの横の長さは文字の幅と文字間隔を加えた長
さを、枡Mの縦の長さは文字の高さを示してい
る。 又、データの印刷の場合には、第17図に示す
ように登録された各受信位置1〜14に印字ヘツド
が自動的に移動してその箇所に対応したデータ番
号1〜14の単位データが印字される。 第8図に於ける処理により印字フオーマツト制
御データの登録番号が選択され、ステツプ248で
呼出キー344の打鍵が判定されるとステツプ
252で、第11図に示す呼出しプログラムが実行
される。ステツプ500〜506は第9図のステツプ
300〜306と同一である。ステツプ508で制御信号
DC2が送信されると主装置はステツプ628を介し
て第13図のプログラムを実行する。ステツプ
510でデータ数がステツプ512で印字フオーマツト
制御データが送信される。主装置はステツプ650
でデータ数を受信し、ステツプ652,654で印字フ
オーマツト制御データを受信する。この段階で指
定された登録番号の印字フオーマツト制御データ
が一括してRAM38からRAM66へ転送され
たことになる。 次にステツプ514で確認キーの打鍵が検出され
るとステツプ516でテスト印字のための制御信号
ENQが送信され、主装置はステツプ656でこの制
御信号を判読し、ステツプ658でテスト印字プロ
グラムを実行する。 第19図はテスト印字の処理を示したフローチ
ヤートである。ステツプ900でデータ番号のパラ
メータを0にセツトし、ステツプ902でデータ
番号0の受信位置の設定値にしたがつて、印字ヘ
ツドが用紙が給紙されたときのその中心位置に来
るようにそれを移動させる。次にステツプ904で
用紙の給紙を判定し、用紙が給紙されていない時
はステツプ906でその旨を表示してオペレータに
知らせオペレータは用紙を給紙する。この時、印
字ヘツドは用紙の中心位置に設定されているので
用紙の給紙が正確に行われる。次にステツプ908
へ移行してパラメータの値を更新してステツプ
912で印字フオーマツト制御データを読み込み、
ステツプ912,914でその設定された受信位置に印
字ヘツドを移動して、その位置で所定の記号(枡
とデータ番号)を印字する。ステツプ918でテス
ト印字の終了を判定して、最終デー数に達してい
ない場合にはステツプ908へ移行して上記の処理
を繰り返して次の受信位置へテスト印字を行う。
テスト印字が全て終了したときは、第20図に示
すようなテスト印字が得られる。この結果を見
て、正確にデータを印字する位置と文字ピツチが
正確に設定されているかを判定する事が出来る。
テスト印字が終了するとステツプ660でDCI信号
を出力して、テスト印字の終了を知らせる。 又、ステツプ520で終了キーの打鍵が検出され
ると、ステツプ522でデータ印字指令の制御信号
EOTが送信される。この時主装置はステツプ662
へ移行してホストコンピユータから送信される印
字データを印刷する印字プログラム(第14図)
が実行される。ステツプ700でステータスレジス
タ64のBUSYビツトをオフにして、ホストコ
ンピユータから印字データを入力出来る状態にす
る。ステツプ702,704は用紙の給紙に関する処理
である。ステツプ706はデータの受信の有無の判
定を、ステツプ708,710はコマンド処理を示す。
ステツプ740〜742は注釈文の場合のデータの読み
飛ばし処理を行うステツプである。ステツプ712
〜718はLFコードを検出したときは単位データの
区切りと見做して、印字フオーマツト制御データ
に基づいて所定の位置に印字処理するステツプで
ある。ステツプ706〜718の繰り返しにより全ての
印字箇所にデータが印字される。ステツプ720は
用紙の自動排出、ステツプ722は操作装置から
SOH信号を受信した時は第12図のステツプ612
へ復帰して、ホストコンピユータから操作装置3
0へと接続の切り換えを行うステツプである。ス
テツプ724〜734はプリンタ本体の操作卓によるキ
ー操作に基づく処理をするステツプである。 本実施例は以上の構成及び作用により予め印刷
された用紙の印字所定箇所に必要なデータのみを
印字することが出来、特にデータベースシステム
のデータの印字に効果を発揮する。又受信位置及
び印字ピツチのテスト表示ができるので、印字フ
オーマツト制御データの設定、修正が正確に行わ
れる。
The present invention will be explained below based on specific examples. FIG. 3 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. RAM 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. Also connected to output interface 72 is a driver 78 for laterally moving the print head, which drives a CR motor 80 for moving the print head. or,
The output interface 72 has a printing solenoid 84.
A driver 82 for driving is connected. FIG. 4 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. Furthermore, a CPU 32, a RAM 38, an input/output interface 36, a battery 40, etc. are arranged inside the frame. FIG. 5 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 either 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 also control the print head and paper feed using this signal. Further, the microcomputer 45 and the main device are connected to the data line L6,
It is connected by L7, and transmits and receives control signals and transmits print format control data. The CPU 32 of the microcomputer 45 is
Cursor key SW for determining the logic level of signal lines L3 and L4 and incrementing the registration number
It is possible to determine which of the cursor key SW1 (352) and the cursor key SW1 (352) for decrementing has been operated. Next, registration of print format control data will be described. FIG. 7 shows the CPU 32 of the operating device 30.
Figure 12 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,
SOH signals are transmitted until a response signal is received from the main device, DCI signals from the main device are received in steps 106 and 108, counter C is updated in step 110, and five DCI 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. On the other hand, the main device is
Meanwhile, in the process of steps 600 to 610 in FIG.
0 and the main device of the printer body is completed.
Thereafter, the operating device 30 executes the registration number selection program in step 118. FIG. 8 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. If it is determined in step 214 that the decrement key SW1 (352) has been operated, unregistered numbers are searched in descending order in step 216, and unregistered numbers are displayed on the display panel 300 in step 212 in descending order. indicate. 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 the subsequent steps
At 222, a program for registering print format control data of the group belonging to the 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. 9 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 12).
When it receives a signal, it sends a DCI signal. If the DCI signal is received in step 304, the operating device 30 outputs an ACK signal in step 306 and returns to step 306.
Move to 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, DCI
Send a signal to put the main device into cursor reception position control mode. Next, in step 316, the first
The receiving position control program A shown in FIG. 5 is executed. The main device decodes the DCI signal and executes the receiving position control program B (FIG. 16) in step 622. Next, the reception position control means will be explained according to the programs shown in FIGS. 15 and 16. FIG. 15 shows the processing procedure for the operating position, and FIG. 16 shows the processing procedure for 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. 5 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 the main device, it is determined in step 850 whether there is a response request signal for the head position caused by pressing 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 cursor key is pressed. It is determined that there is a keystroke, and in step 854, according to the logic level of signal lines L1 and L2 (Fig. 6).
The CR motor 80 is driven to move the print head one dot, or the LF motor 76 is driven to feed the paper by the minimum unit amount. After waiting for 0.5 seconds in step 856, in step 858, if the signal line L5 is still at a low level, the cursor key continues to be pressed, so in steps 860 and 862, the head or paper is pressed until the signal line L5 becomes high level. Feed control is performed continuously. Therefore, while the cursor key continues to be pressed, the receiving position of the print head changes continuously. 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 unit determines reception of this signal in step 850 and transmits the receiving position of the print head to the operating device in step 864. 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 17.
By setting the coordinates of , the registration of print format control data is completed. In the above process, when the space key 348 is pressed in step 326 (FIG. 9), the process proceeds to step 328.
The printing pitch size is displayed in increments or decrements on the display panel by operating the cursor keys at step 330, the pressing of the enter key 345 is detected, the displayed value is selected, and the printing pitch is set at step 332. Created as part of format control data. This print pitch setting is set independently of the print head receiving position setting. In other words, the print pitch can be set at any time, and the first print pitch setting is valid for the reception position settings between the first print pitch setting and the next print pitch setting. 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 DCI signal in step 620, and waits 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 previously set registration number is selected according to the procedure shown in FIG. 8, and the correction program shown in FIG. 10 is started in step 250 via step 248 by pressing the correction key. Steps 400 to 408 are steps 300 to 308 in FIG.
It has the same function as . Step 410~Step 414
is a step for sequentially displaying the data numbers of the 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. At this time, a predetermined symbol including the print pitch may be printed at the print start position of the data. By doing so, you can further accurately check how the reception position and print pitch are set. When the enter key is pressed in step 422, the data number is selected and the step
In steps 424 to 426, the receiving position control program A (FIG. 15) is started, which moves the receiving position of the print head directly by operating the cursor keys in the same way as in the registration mode. At this time, the main device detects the DCI signal in step 618, so it is in the registration mode. When the enter key is pressed, the current receiving position is transmitted to the operating position at step 864 in FIG. 16, and the correction of the print format control data is completed. Next, in step 428, the font parameters of the next data number are updated. At step 430, pressing of the end key is detected and the correction 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. 18, the print data consists of a comment text that is not printed and underlined in the order of the data number, followed by CR and LF codes that separate the unit print data and the 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, when printing data, the print head automatically moves to each registered receiving position 1 to 14 as shown in Figure 17, and the unit data of data numbers 1 to 14 corresponding to that position is printed. It will be printed. 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. 11 is executed. Steps 500 to 506 are the steps in Figure 9.
Same as 300-306. Control signal in step 508
When DC2 is transmitted, the main device executes the program shown in FIG. 13 via step 628. step
In step 512, print format control data is transmitted. The main device is step 650
The data number is received at steps 652 and 654, and print format control data is received at 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, and the main device reads this control signal in step 656 and executes a test print program in step 658. FIG. 19 is a flowchart showing the process of test printing. In step 900, the data number parameter is set to 0, and in step 902, the print head is moved to the center position when the paper is fed, according to the reception position setting value of data number 0. move it. Next, in step 904, it is determined whether paper is being fed, and if paper is not being fed, then in step 906, a message to that effect is displayed to inform the operator, and the operator feeds the paper. At this time, since the print head is set at the center position of the paper, the paper can be fed accurately. Next step 908
Go to and update the parameter values and step
Read the print format control data with 912,
In steps 912 and 914, the print head is moved to the set receiving position and a predetermined symbol (square and data number) is printed at that position. At step 918, it is determined whether the test printing has ended, and if the final number of data has not been reached, the process moves to step 908 and the above process is repeated to perform test printing at the next receiving position.
When all test printing is completed, test printing as shown in FIG. 20 is obtained. By looking at this result, it is possible to determine whether the data printing position and character pitch are set correctly.
When the test print is completed, a DCI signal is output in step 660 to notify the end of the test print. 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 14)
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 12
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 preprinted paper, and is particularly effective in printing data from a database system. Furthermore, since the reception position and print pitch can be tested and displayed, the print format control data can be set and corrected accurately.

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

本第1発明は、印字ヘツドの受信位置を実際に
移動させて単位データの印字開始位置を記憶して
印字フオーマツト制御データを作成する印字フオ
ーマツト制御データ記憶部とホストコンピユータ
から印字データを入力してフオーマツト制御デー
タに基づいて印字制御する入力制御部と、設定さ
れたフオマツト制御データの受信位置の確認を行
うデータ確認制御部を主に有している。 従つて、本発明によれば、実際に印字ヘツドの
受信位置を移動させているので、書式データの作
成が極めて容易となり、所望する印字箇所にデー
タを正確に印字することが出来る。特に、予め所
定の印刷のされた用紙の所定欄に、データを印字
する場合に特に有効であり、文書作成の作業効率
が向上する。印字フオーマツト制御データは所定
形式の用紙毎に記憶しておくことが出来るので一
度作成しておけば、実際の印刷時にそのデータを
再度利用出来、極めて便利である。 又その制御データの確認がテスト印字の形式で
行われるので、制御データ設定の正誤を容易に判
定出来、従つて、装置の操作性が向上する。 又本第2発明は印字文字ピツチを単位印字デー
タ毎に設定出来る印字ピツチ制御部とその設定さ
れた印字ピツチを表示するデータ確認制御部を有
しているので、更に書式の微細な制御と確認がで
き、装置の操作性が向上する。
The first aspect of the present invention is to input 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 printing start position of unit data to create print format control data. It mainly includes an input control section that controls printing based on format control data, and a data confirmation control section that confirms the reception position of the set format control 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 control data is confirmed in the form of test printing, it is easy to determine whether the control data settings are correct or incorrect, and the operability of the apparatus is therefore improved. Furthermore, the second invention has a print pitch control section that can set the print character pitch for each unit of print data, and a data confirmation control section that displays the set print pitch, allowing for more detailed format control and confirmation. This improves the operability of the device.

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

第1図は本第1発明装置の概念を示したブロツ
クダイヤグラム、第2図は本第2発明装置の概念
を示したブロツクダイヤグラム、第3図は本発明
の具体的な一実施例装置の構成を示したブロツク
ダイヤグラム、第4図は同実施例装置に於いて使
用された操作装置の外観を示した平面図、第5図
は操作装置とプリンタの主装置との電気的接続関
係を示した電気回路図、第6図はカーソルキーと
ヘツド移動信号との関係を示した説明図である。
第7図は操作装置に使用されたCPUの処理手順
のうちその主プログラムを示したフローチヤー
ト、第8図は登録番号選択プログラムを、第9図
はフオーマツト制御データの登録処理を行う登録
プログラムを、第10図はそのデータの修正を行
う修正プログラムを、第11図は作成された印字
フオーマツト制御データをプリンタの主装置へ転
送する呼出プログラムをそれぞれ示したフローチ
ヤートである。又、第12図及び第13図はプリ
ンタ本体に配設された主装置のCPUの処理手順
の主プログラムを、第14図はホストコンピユー
タから印字データを受信してそれを印字処理する
印字プログラムを示したフローチヤートである。
第15図は印字ヘツドの受信位置をカーソル制御
する為の操作装置の受信位置制御プログラムを、
第16図は同じく受信位置のカーソル制御をする
ための主装置の受信位置制御プログラムをそれぞ
れ示したフローチヤートである。第17図は単位
データの印字開始位置の設定を説明する為の予め
所定形式に印刷された用紙の平面図、第18図は
ホストコンピユータに印字データを設定する方法
を説明するための印字データの一例を示した説明
図である。第19図はテスト印字プログラムを示
したフローチヤート、第20図はテスト印字の結
果を示す図である。 300……表示盤、351〜354……カーソ
ルキー、351……インクリメントキー、352
……デイクリメントキー。
FIG. 1 is a block diagram showing the concept of the first invention device, FIG. 2 is a block diagram showing the concept of the second invention device, and FIG. 3 is the configuration of a specific embodiment of the device of the invention. 4 is a plan view showing the external appearance of the operating device used in the device of the same embodiment, and FIG. 5 is a diagram showing the electrical connection relationship between the operating device and the main device of the printer. The electrical circuit diagram, FIG. 6, is an explanatory diagram showing the relationship between the cursor keys and head movement signals.
Figure 7 is a flowchart showing the main program among the processing steps of the CPU used in the operating device, Figure 8 is a registration number selection program, and Figure 9 is a registration program that performs format control data registration processing. , FIG. 10 is a flowchart showing a correction program for correcting the data, and FIG. 11 is a flowchart showing a calling program for transferring the created print format control data to the main device of the printer. Also, Figures 12 and 13 show the main program for the processing procedure of the CPU of the main device installed in the printer body, and Figure 14 shows the print program that receives print data from the host computer and processes it. This is the flowchart shown.
FIG. 15 shows the reception position control program of the operating device for cursor control of the print head reception position.
FIG. 16 is a flowchart showing a reception position control program of the main device for similarly controlling the reception position with a cursor. Figure 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, and Figure 18 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. FIG. 19 is a flowchart showing the test printing program, and FIG. 20 is a diagram showing the results of the test printing. 300...Display panel, 351-354...Cursor key, 351...Increment key, 352
... Decrement key.

Claims (1)

【特許請求の範囲】 1 各種のマニユアル操作を入力するための操作
盤と、 プリンタの用紙を送る信号と印字ヘツドを水平
方向に移動させる信号とを出力して、前記印字ヘ
ツドを前記用紙に対して移動制御するヘツド位置
制御部と、 前記印字ヘツドにより前記用紙上に印字するた
めの信号を出力する印字制御部と、 前記操作盤のキー操作に基づいて前記ヘツド位
置制御部を駆動して、前記用紙上の各印字箇所に
前記印字ヘツドを順次移動させ、そのときの前記
印字ヘツドの位置の水平及び垂直座標を順次記憶
する印字フオーマツト制御データ記憶部と、 ホストコンピユータから前記各印字箇所に印字
すべき単位データの集合から成る印字データを入
力して、前記単位データの印字開始時に前記印字
フオーマツト制御データ記憶部に記憶された制御
データを順次前記ヘツド位置制御部へ出力し該ヘ
ツド位置制御部を駆動して前記印字ヘツドを設定
された印字箇所へ順次移動させ、前記単位データ
を前記印字制御部へ出力して該印字制御部を駆動
して前記単位データを順次印字させる入力制御部
と、 前記印字フオーマツト制御データ記憶部に記憶
されている制御データに設定された印字位置を確
認する場合には、前記操作盤のキー操作により、
前記印字フオーマツト制御データ記憶部に記憶さ
れた制御データを前記ヘツド位置制御部へ出力
し、前記印字ヘツドを前記用紙上の設定された位
置に移動させ、その位置で印字開始位置を示す所
定の記号を印字するように前記印字制御部を制御
するデータ確認制御部と、 から成る印字フオーマツト制御装置。 2 各種のマニユアル操作を入力するための操作
盤と、 プリンタの用紙を送る信号と印字ヘツドを水平
方向に移動させる信号とを出力して、前記印字ヘ
ツドを前記用紙に対して移動制御するヘツド位置
制御部と、 前記印字ヘツドにより前記用紙上に印字するた
めの信号を出力する印字制御部と、 前記操作盤のキー操作に基づいて前記ヘツド位
置制御部を駆動して、前記用紙上の各印字箇所に
前記印字ヘツドを順次移動させ、そのときの前記
印字ヘツドの位置の水平及び垂直座標を順次記憶
する印字フオーマツト制御データ記憶部と、 前記操作盤のキー操作に基づいて、印字すべき
文字データの印字ピツチを指定する印字ピツチ制
御部と、 ホストコンピユータから前記各印字箇所に印字
すべき単位データの集合から成る印字データを入
力して、前記単位データの印字開始時に前記印字
フオーマツト制御データ記憶部に記憶された制御
データを順次前記ヘツド位置制御部へ出力し該ヘ
ツド位置制御部を駆動して前記印字ヘツドを設定
された印字箇所へ順次移動させ、前記単位データ
を前記印字制御部へ出力して該印字制御部を駆動
して前記単位データを順次印字させる入力制御部
と、 前記印字フオーマツト制御データ記憶部に記憶
されている制御データに設定された印字位置を確
認する場合には、前記操作盤のキー操作により、
前記印字フオーマツト制御データ記憶部に記憶さ
れた制御データを前記ヘツド位置制御部へ出力
し、前記印字ヘツドを前記用紙上の設定された位
置に移動させ、その位置で印字開始位置及び印字
ピツチを示す所定の記号を印字するように前記印
字制御部を制御するデータ確認制御部と、 から成る印字フオーマツト制御装置。
[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 section that controls the movement of the print head; a print control section that outputs a signal for printing on the paper by the print head; and a print control section that drives the head position control section based on key operations on the operation panel. a print format control data storage unit that sequentially moves 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; and a print format control data storage unit that sequentially stores horizontal and vertical coordinates of the print head position at that time; Print data consisting of a set of unit data to be printed is input, and when printing of the unit data starts, the control data stored in the print format control data storage section is sequentially outputted to the head position control section. an input control unit that drives the print head to sequentially move the print head to a set printing location, outputs the unit data to the print control unit, and drives the print control unit to sequentially print the unit data; When confirming the print position set in the control data stored in the print format control data storage section, by operating the keys on the operation panel,
Outputting the control data stored in the print format control data storage section to the head position control section, moving the print head to a set position on the paper, and setting a predetermined symbol indicating a print start position at that position. A print format control device comprising: a data confirmation control section that controls the print control section so as to print . 2. An operation panel for inputting various manual operations, and a head position for controlling the movement of the print head relative to the paper by outputting a signal to send the printer's paper and a signal to move the print head in the horizontal direction. a control unit; a print control unit that outputs a signal for printing on the paper by the print head; and a print control unit that drives the head position control unit based on key operations on the operation panel to print each print on the paper. a print format control data storage unit for sequentially storing the horizontal and vertical coordinates of the position of the print head at each location; and character data to be printed based on key operations on the operation panel. a print pitch control unit that specifies the print pitch of the print pitch; and a print format control data storage unit that inputs print data consisting of a set of unit data to be printed at each print location from the host computer and selects the print format control data storage unit when printing of the unit data starts. sequentially outputs the control data stored in the head position controller to the head position controller, drives the head position controller to sequentially move the print head to the set printing location, and outputs the unit data to the print controller. an input control unit that drives the print control unit to sequentially print the unit data; and when confirming the print position set in the control data stored in the print format control data storage unit, the operation By operating the keys on the panel,
Outputting the control data stored in the print format control data storage section to the head position control section, moving the print head to a set position on the paper, and indicating a print start position and print pitch at that position. A print format control device comprising: a data confirmation control section that controls the print control section so as to print a predetermined symbol.
JP60154856A 1985-07-13 1985-07-13 Printing format controller for serial printer Granted JPS6216173A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP60154856A JPS6216173A (en) 1985-07-13 1985-07-13 Printing format controller for serial printer
US07/185,314 US4861175A (en) 1985-07-13 1988-04-20 Serial printer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60154856A JPS6216173A (en) 1985-07-13 1985-07-13 Printing format controller for serial printer

Publications (2)

Publication Number Publication Date
JPS6216173A JPS6216173A (en) 1987-01-24
JPH0586352B2 true JPH0586352B2 (en) 1993-12-10

Family

ID=15593401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60154856A Granted JPS6216173A (en) 1985-07-13 1985-07-13 Printing format controller for serial printer

Country Status (1)

Country Link
JP (1) JPS6216173A (en)

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 processor
JPS6172571A (en) * 1984-09-19 1986-04-14 Ricoh Co Ltd Document processing apparatus

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 processor
JPS6172571A (en) * 1984-09-19 1986-04-14 Ricoh Co Ltd Document processing apparatus

Also Published As

Publication number Publication date
JPS6216173A (en) 1987-01-24

Similar Documents

Publication Publication Date Title
JPH07125374A (en) Layout indication 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
JPH0411901B2 (en)
JPH0586353B2 (en)
JPH0586352B2 (en)
JPH0586354B2 (en)
JPH0425872B2 (en)
JPS6241073A (en) Receiving position setting device for serial printer
JPS59135540A (en) Printer control system for sentence processor
JPS6167125A (en) Word processor
JPH063574B2 (en) Data setting device
JPS6256175A (en) Serial printer
JPH0546935Y2 (en)
JP2882793B2 (en) Document editing device
JPS61279924A (en) Word processor
JP2721969B2 (en) Printer device
JPH06270473A (en) Control method of serial printer
JPS62131322A (en) Word processor
JPS6297877A (en) Operation control data setting device for serial printer
JPH05131708A (en) Forming method of printing format of printing device in text processing device
JPS6265078A (en) Print pattern generation setter for printer
JPH0747350B2 (en) Document editing device
JPS63153152A (en) Electronic typewriter
JPS62218166A (en) Printer capable of correcting word