[go: up one dir, main page]

JPS6312289B2 - - Google Patents

Info

Publication number
JPS6312289B2
JPS6312289B2 JP57234067A JP23406782A JPS6312289B2 JP S6312289 B2 JPS6312289 B2 JP S6312289B2 JP 57234067 A JP57234067 A JP 57234067A JP 23406782 A JP23406782 A JP 23406782A JP S6312289 B2 JPS6312289 B2 JP S6312289B2
Authority
JP
Japan
Prior art keywords
space
data
printer
flag
tab
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
Application number
JP57234067A
Other languages
Japanese (ja)
Other versions
JPS59125432A (en
Inventor
Takaharu Takai
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57234067A priority Critical patent/JPS59125432A/en
Publication of JPS59125432A publication Critical patent/JPS59125432A/en
Publication of JPS6312289B2 publication Critical patent/JPS6312289B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、インクリメンタリ方式プリンタにお
いて連続してスペース・データを印字する場合、
ホスト装置でスペース・データの数を計数し、計
数値が一定の値以上になるときにはホスト装置か
らタブ情報を送出するようにしたインクリメンタ
リ方式プリンタの印字制御方式に関するものであ
る。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention provides a method for continuously printing space data in an incremental printer.
The present invention relates to a print control method for an incremental printer in which a host device counts the number of space data, and when the counted value exceeds a certain value, tab information is sent from the host device.

〔従来技術と問題点〕[Conventional technology and problems]

第1図は従来の印字制御方式を示す図、第2図
は転送データ列の1例を示す図である。第1図に
おいて、1はホスト装置、2はプリンタを示す。
プリンタ2には、ドツト・プリンタなどのように
データ・バツフアを有するものと、インクリメン
タリ方式プリンタのようにデータ・バツフアを有
しないものとがある。プリンタ2がデータ・バツ
フアを有するものである場合には、ホスト装置1
から印字データが送られてくるとデータ・バツフ
アに蓄えてから、1ライン分まとめて印字を実行
している。一方、プリンタ2がデータ・バツフア
を有しないものである場合には、ホスト装置1か
ら印字データが送られてくる毎に1文字ずつ印字
を実行している。例えば第2図に示すように印字
範囲を1ないしNまでとすると、インクリメンタ
リ方式のプリンタでは、ヘツドは印字データのス
ペースの有無に関係なくインクリメンタリに移動
し、印字データとして何個かの連続したスペース
が含まれていても、従来は1文字ずつスペース印
字を実行している。その点データ・バツフアを有
するプリンタの場合には、プリンタ側でデータ・
バツフアの内容を印字前にサーチし、スペースの
数に応じてスペース印字、或いはタブ制御にて最
適印字が実行できる。
FIG. 1 is a diagram showing a conventional print control system, and FIG. 2 is a diagram showing an example of a transfer data string. In FIG. 1, 1 represents a host device, and 2 represents a printer.
The printer 2 includes one that has a data buffer, such as a dot printer, and one that does not have a data buffer, such as an incremental printer. If the printer 2 has a data buffer, the host device 1
When print data is sent from the machine, it is stored in a data buffer and then printed for one line at a time. On the other hand, if the printer 2 does not have a data buffer, it prints one character each time print data is sent from the host device 1. For example, if the printing range is from 1 to N as shown in Figure 2, in an incremental printer, the head moves incrementally regardless of the presence or absence of a space for print data, and prints several consecutive pieces of print data. Conventionally, spaces are printed one character at a time even if spaces are included. In the case of a printer that has a data buffer, the data buffer is stored on the printer side.
The contents of the buffer are searched before printing, and optimal printing can be performed using space printing or tab control depending on the number of spaces.

このようにデータ・バツフアを有しない従来の
インクリメンタリ方式のプリンタでは、先に述べ
たようなスペースの数に応じた印字制御を実行す
ることができず、例えば第2図に示すような印字
データ列であつても、スペース・コードの数lが
全てスペース印字となり、最適印字化が実現され
ていない。
Conventional incremental printers that do not have a data buffer cannot perform print control according to the number of spaces as described above, and for example, print data such as the one shown in Figure 2 cannot be executed. Even in columns, the number l of space codes all result in space printing, and optimal printing is not achieved.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであつて、
スペース・データの数に応じた最適印字が可能な
インクリメンタリ方式プリンタにおける印字制御
方式を提供することを目的とするものである。
The present invention is based on the above considerations, and includes:
The object of the present invention is to provide a print control method for an incremental printer that is capable of optimal printing according to the number of space data.

〔発明の構成〕[Structure of the invention]

そのために本発明のインクリメンタリ方式プリ
ンタの印字制御方式は、 ホスト装置と、データ・バツフアを持たないイ
ンクリメンタリ方式プリンタとを備え、上記ホス
ト装置から印字情報が供給される毎に上記インク
リメンタリ方式プリンタが印字動作を実行するよ
うになつたインクリメンタリ方式プリンタの印字
制御方式であつて、 ホスト装置は、 送出データをメモリから取り出す取出手段と、 取り出された送出データがスペース・データか
否かを判定する判定手段と、 上記判定手段によつてスペース・データと判定
された場合に起動されるスペース処理部と、 上記判定手段によつてスペース・データでない
と判定された場合に起動されるデータ送出処理部
と、 スペース・フラグと、 タブ・フラグと、 スペース・カウンタと を具備し、 上記スペース処理部は、起動されると、上記ス
ペース・フラグをセツトし、上記スペース・カウ
ンタを+1し、スペース・カウンタの値がMであ
るか否かを調べ、Mの場合には上記タブ・フラグ
をセツトするための処理を行い、 上記データ送出処理部は、起動されると、 上記スペース・フラグがオフの場合には、メ
モリから取り出された送出データを直ちにプリ
ンタに対して送出する処理を行い、 上記スペース・フラグがオンで上記タブ・フ
ラグがオフの場合には、上記スペース・カウン
タを参照し、その内容で示される数のスペー
ス・データをプリンタに対して送出し、続いて
メモリから取り出された送出データをプリンタ
に対して送出する処理を行い、 上記スペース・フラグがオンで且つ上記タ
ブ・フラグもオンの場合には、上記スペース・
カウンタを参照してタブ制御情報を作成し、当
該タブ制御情報をプリンタに対して送出し、続
いてメモリから取り出された送出データをプリ
ンタに対して送出する処理を行うよう構成され
ている ことを特徴とするものである。
To this end, the print control method of the incremental printer of the present invention includes a host device and an incremental printer that does not have a data buffer, and each time print information is supplied from the host device, the incremental printer This is a print control method for incremental printers that now perform printing operations, and the host device includes an extraction means for retrieving sent data from memory, and a device for determining whether or not the retrieved sent data is space data. a space processing unit that is activated when the determination means determines that the data is space data; and a data sending process that is activated when the determination means determines that the data is not space data. The space processing unit includes a space flag, a tab flag, and a space counter, and when activated, the space processing unit sets the space flag, increments the space counter by 1, and executes the space processing unit. It is checked whether the value of the counter is M or not, and if it is, it performs processing to set the above-mentioned tab flag. If the above space flag is on and the above tab flag is off, the send data retrieved from the memory is immediately sent to the printer, and the above space counter is referred to. Sends the number of space data indicated by the content to the printer, then sends the send data retrieved from memory to the printer, and if the above space flag is on and the above tab flag is also If it is on, the above space/
It is configured to create tab control information by referring to a counter, send the tab control information to the printer, and then send the sending data retrieved from memory to the printer. This is a characteristic feature.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面を参照しつつ説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

第3図は本発明の1実施例構成を示すブロツク
図、第4図は転送データ制御部による処理の流れ
を示すフロー・チヤートである。第3図におい
て、3はホスト装置、4は転送データ制御部、5
はインクリメンタリ方式プリンタを示す。
FIG. 3 is a block diagram showing the configuration of one embodiment of the present invention, and FIG. 4 is a flow chart showing the flow of processing by the transfer data control section. In FIG. 3, 3 is a host device, 4 is a transfer data control unit, and 5 is a host device.
indicates an incremental printer.

本発明は、スペース・データを印字する場合、
スペースの個数が一定の値M個(機械により異な
る)未満のときにはインクリメンタリ印字、M個
以上のときにはタブ制御にて印字すれば最も印字
のスピード・アツプになる点に着目し、スペース
の個数がM個以上であるときにはホスト装置から
スペース・コードではなくタブ制御情報を送出す
るようにしたものである。
In the present invention, when printing space data,
We focused on the fact that the printing speed is maximized by performing incremental printing when the number of spaces is less than a certain value M (varies depending on the machine), and by tab control when the number is more than M. When the number is M or more, the host device sends tab control information instead of a space code.

第3図において、ホスト装置3に転送データ制
御部4を設け、ホスト装置3よりインクリメンタ
リ方式プリンタ5に印字データを送出する場合、
転送データ制御部4で、連続するスペースの数を
カウントし、M個以上なら印字データとしてスペ
ース・コードを送出せず、タブ制御コードを送出
する処理を行なう。
In FIG. 3, when the host device 3 is provided with the transfer data control section 4 and print data is sent from the host device 3 to the incremental printer 5,
The transfer data control unit 4 counts the number of consecutive spaces, and if the number is M or more, a process is performed in which a space code is not sent as print data, but a tab control code is sent.

転送データ制御部4による処理の流れを第4図
を参照しつつ説明する。
The flow of processing by the transfer data control unit 4 will be explained with reference to FIG.

スペース・カウンタをクリアする。次にの
処理を行なう。
Clear space counter. Perform the following processing.

データ・アドレス・レジスタをクリアする。
次にの処理を行なう。
Clear the data address register.
Perform the following processing.

バイト・カウントをセツトする。次にの処
理を行なう。
Set byte count. Perform the following processing.

バイト・カウントを−1する。次にの処理
を行なう。
Decrement byte count by 1. Perform the following processing.

バイト・カウントが0か否かを調べる。Yes
の場合にはデータ転送終了とし、Nの場合に
はの処理を行なう。
Check whether the byte count is 0. Yes
In the case of , the data transfer is terminated, and in the case of N, the process of .

送出データがスペースか否かを調べる。Yes
の場合にはの処理を行ない、Nの場合には
の処理を行なう。
Check whether the sent data is a space. Yes
In the case of N, the process of is performed, and in the case of N, the process of is performed.

スペース・フラグがオンか否かを調べる。
Yesの場合にはの処理を行ない、Nの場合
にはの処理を行なう。
Check if the space flag is on.
If Yes, process is performed, and if N, process is performed.

スペース・フラグをクリアする。次にの処
理を行なう。
Clear the space flag. Perform the following processing.

タブ・フラグがオンか否かを調べる。Yesの
場合にはの処理を行ない、Nの場合には
の処理を行なう。
Checks whether the tab flag is on. If Yes, process is performed, and if N, process is performed.

タブ・フラグをクリアする。次にの処理を
行なう。
Clear tab flags. Perform the following processing.

スペース・カンウタの値を参照してタブ制御
情報を作成し、当該タブ制御情報を送出し、続
いてメモリから取り出された送出データを送出
し、スペース・カウンタをクリアする。次に
の処理を行なう。
Tab control information is created with reference to the value of the space counter, the tab control information is sent out, and then the send data retrieved from the memory is sent out to clear the space counter. Perform the following processing.

スペース・フラグをセツトする。次にの処
理を行なう。
Set the space flag. Perform the following processing.

スペース・カウンタを+1する。次にの処
理を行なう。
Increase the space counter by 1. Perform the following processing.

スペース・カウントがMか否かを調べる。
Yesの場合にはの処理を行ない、Nの場合
にはの処理を行なう。
Check whether the space count is M.
If Yes, process is performed, and if N, process is performed.

タブ・フラグをセツトする。次にの処理を
行なう。
Set tab flag. Perform the following processing.

印字データを送出する。次にの処理を行な
う。
Sends print data. Perform the following processing.

スペース・カウンタで示される数のスペー
ス・データを送出し、続いてメモリから取り出
された送出データを送出し、スペース・カウン
タをクリアする。
Send out the number of space data indicated by the space counter, then send out the outgoing data retrieved from memory, and clear the space counter.

データ・アドレス・レジスタを+1する。次
にの処理に戻る。
Add 1 to data address register. Return to next process.

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

以上の説明から明らかなように、本発明によれ
ば、スペースの数がM個以上である場合にはホス
ト装置側からタブ制御情報を送出してタブ制御を
行なうので、例えば第2図に示す印字データ列の
場合には、転送データ量は(N−l)+タブ制御
情報となり、転送データ量を大幅に減らすことが
できると共に、タブ制御によりデータ・バツフア
を有するプリンタと同じように最適印字化を計る
ことができる。
As is clear from the above description, according to the present invention, when the number of spaces is M or more, tab control information is sent from the host device side to perform tab control. In the case of a print data string, the amount of data to be transferred is (N-l) + tab control information, which can significantly reduce the amount of data to be transferred, and tab control allows for optimal printing, similar to printers with data buffers. It is possible to measure the

特にプリンタのスピード・アツプ化は重要な課
題であり、メカだけを改良して高速化を計ること
はいろいろ困難を伴う。しかし本発明によれば、
メカに関係なくインクリメンタリ方式のプリンタ
でもスペース印字とタブ制御をホスト装置側で実
行し、メカ自身の最高スピード印字を実現でき、
その効果は極めて顕著である。
Increasing the speed of printers is a particularly important issue, and increasing speed by improving only the mechanism involves various difficulties. However, according to the present invention,
Regardless of the mechanism, even incremental printers can perform space printing and tab control on the host device side, achieving the maximum speed printing of the mechanism itself.
The effect is extremely significant.

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

第1図は従来の印字制御方式を示す図、第2図
は転送データ列の1例を示す図、第3図は本発明
の1実施例構成を示す図、第4図は転送データ制
御部による処理の流れを示すフロー・チヤートで
ある。 1と3……ホスト装置、2……プリンタ、4…
…転送データ制御部、5……インクリメンタリ方
式プリンタ。
FIG. 1 is a diagram showing a conventional printing control system, FIG. 2 is a diagram showing an example of a transfer data string, FIG. 3 is a diagram showing the configuration of an embodiment of the present invention, and FIG. 4 is a transfer data control unit. This is a flow chart showing the flow of processing. 1 and 3...host device, 2...printer, 4...
. . . Transfer data control unit, 5 . . . Incremental printer.

Claims (1)

【特許請求の範囲】 1 ホスト装置と、データ・バツフアを持たない
インクリメンタリ方式プリンタとを備え、上記ホ
スト装置から印字情報が供給される毎に上記イン
クリメンタリ方式プリンタが印字動作を実行する
ようになつたインクリメンタリ方式プリンタの印
字制御方式であつて、 ホスト装置は、 送出データをメモリから取り出す取出手段と、 取り出された送出データがスペース・データか
否かを判定する判定手段と、 上記判定手段によつてスペース・データと判定
された場合に起動されるスペース処理部と、 上記判定手段によつてスペース・データでない
と判定された場合に起動されるデータ送出処理部
と、 スペース・フラグと、 タブ・フラグと、 スペース・カウンタと を具備し、 上記スペース処理部は、起動されると、上記ス
ペース・フラグをセツトし、上記スペース・カウ
ンタを+1し、スペース・カウンタの値がMであ
るか否かを調べ、Mの場合には上記タブ・フラグ
をセツトするための処理を行い、 上記データ送出処理部は、起動されると、 上記スペース・フラグがオフの場合には、メ
モリから取り出された送出データを直ちにプリ
ンタに対して送出する処理を行い、 上記スペース・フラグがオンで上記タブ・フ
ラグがオフの場合には、上記スペース・カウン
タを参照し、その内容で示される数のスペー
ス・データをプリンタに対して送出し、続いて
メモリから取り出された送出データをプリンタ
に対して送出する処理を行い、 上記スペース・フラグがオンで且つ上記タ
ブ・フラグもオンの場合には、上記スペース・
カウンタを参照してタブ制御情報を作成し、当
該タブ制御情報をプリンタに対して送出し、続
いてメモリから取り出された送出データをプリ
ンタに対して送出する処理を行うよう構成され
ている ことを特徴とするインクリメンタリ方式プリンタ
の印字制御方式。
[Claims] 1. A computer system comprising a host device and an incremental printer having no data buffer, such that the incremental printer executes a printing operation each time printing information is supplied from the host device. This is a printing control method for an old incremental printer, and the host device includes an extraction means for retrieving sent data from a memory, a determining means for determining whether or not the retrieved sent data is space data, and the above-mentioned determining means. a space processing unit that is activated when the data is determined to be space data by the determination means; a data transmission processing unit that is activated when the determination means determines that the data is not space data; a space flag; The space processing unit includes a tab flag and a space counter, and when activated, the space processing unit sets the space flag, increments the space counter by 1, and determines whether the value of the space counter is M or not. If it is M, it performs processing to set the above-mentioned tab flag, and when the above-mentioned data sending processing section is started, if the above-mentioned space flag is off, the data is taken out from memory. If the above space flag is on and the above tab flag is off, the above space counter is referred to and the number of spaces indicated by the contents is sent to the printer. The data is sent to the printer, and then the data retrieved from the memory is sent to the printer. If the space flag is on and the tab flag is also on, the space is・
It is configured to create tab control information by referring to a counter, send the tab control information to the printer, and then send the sending data retrieved from memory to the printer. Print control method for incremental printers.
JP57234067A 1982-12-30 1982-12-30 Print control method of incremental printer Granted JPS59125432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57234067A JPS59125432A (en) 1982-12-30 1982-12-30 Print control method of incremental printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57234067A JPS59125432A (en) 1982-12-30 1982-12-30 Print control method of incremental printer

Publications (2)

Publication Number Publication Date
JPS59125432A JPS59125432A (en) 1984-07-19
JPS6312289B2 true JPS6312289B2 (en) 1988-03-18

Family

ID=16965066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57234067A Granted JPS59125432A (en) 1982-12-30 1982-12-30 Print control method of incremental printer

Country Status (1)

Country Link
JP (1) JPS59125432A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0643142B2 (en) * 1983-09-29 1994-06-08 アルプス電気株式会社 Printer space processing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5470747A (en) * 1977-11-17 1979-06-06 Fujitsu Ltd Program control system
JPS5543631A (en) * 1978-09-22 1980-03-27 Toshiba Corp Printer
JPS6125235Y2 (en) * 1980-08-08 1986-07-29

Also Published As

Publication number Publication date
JPS59125432A (en) 1984-07-19

Similar Documents

Publication Publication Date Title
EP0052725A1 (en) Method of reducing the print element changes in a text processing system
CA1172384A (en) Method of controlling a printer in an interactive text processing system to print records from stored files of spatially related data
JPS647595B2 (en)
EP0077892B1 (en) Word processing system having a formatting bidirectional printer
US4354765A (en) Hyphen characterization apparatus for a typewriter
JPS6312289B2 (en)
EP0026302B1 (en) A method of defining tab stops for typewriters that store text
JPS6145325A (en) Printer
JPS59111861A (en) Print control method
GB1341526A (en)
JPS6253864A (en) electronic typewriter
JP2516810B2 (en) Printer data reception interface
JPS6134994B2 (en)
JPS5936314B2 (en) Display device control method
JPS6250152A (en) Printing control apparatus
JPS63138417A (en) Printer
JPS60179280A (en) Proportional spacing printing method
JPS6266980A (en) ribbon feeding device
JPH04250521A (en) printing device
JPH05116377A (en) Printer
JPH04173356A (en) Page printer
JPH01171955A (en) Dot printer
JPS5935966A (en) Printing speed control system
JPS6112364A (en) Data printing control system
JPH06187104A (en) Printer