JPS61211051A - Printer - Google Patents

Printer

Info

Publication number
JPS61211051A
JPS61211051A JP5179385A JP5179385A JPS61211051A JP S61211051 A JPS61211051 A JP S61211051A JP 5179385 A JP5179385 A JP 5179385A JP 5179385 A JP5179385 A JP 5179385A JP S61211051 A JPS61211051 A JP S61211051A
Authority
JP
Japan
Prior art keywords
pointer
memory
data
print buffer
carriage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5179385A
Other languages
Japanese (ja)
Inventor
Masato Takashima
高島 正人
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP5179385A priority Critical patent/JPS61211051A/en
Publication of JPS61211051A publication Critical patent/JPS61211051A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J5/00Devices or arrangements for controlling character selection
    • B41J5/30Character or syllable selection controlled by recorded information
    • B41J5/31Character or syllable selection controlled by recorded information characterised by form of recorded information
    • B41J5/36Character or syllable selection controlled by recorded information characterised by form of recorded information by punched records, e.g. cards, sheets

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To enable unprinted data to be printed without fail by allowing the content of one pointer memory to be set in the other pointer memory when a digit shift error has occurred on a carriage. CONSTITUTION:CPU 1 enables one line amount of printing data to be stored into a print buffer 31, and then sets a head data position in a pointer 1 memory 32 and a pointer 2 memory 33. Next, CPU 1 shunts the content of the pointer 1 memory 32 and outputs the head data of the print buffer 31 to a printer drive circuit 8. Then if data is not yet terminated, CPU 1 adds 1 to the content of the pointer 2 memory 33 and advances it stepwise. In addition, if CPU 1 detects a digit shift error on the carriage by a sensor, it stores the content of the shunted pointer 1 memory 32 into the printer 2 memory 33. If data is input by a select switch, printing data of the print buffer 31 is printed starting with its beginning according to a pointer of the pointer 2 memory 33.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は印字ヘッドをキャリッジに搭載し、キャリッ
ジを移動制御して印字動作を行なうプリンタに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer in which a print head is mounted on a carriage and the carriage is controlled to perform a printing operation.

[従来の技術〕 この種のプリンタはプリントバッファを備え、そのプリ
ントバッファに一行分のデータをセットして順次印字動
作を行なうようにしている。従来、このプリンタにおい
てキャリッジの桁ずれエラーが発生した場合、その時点
でキャリッジの動作を停止させてプリントバッフ?の内
容をすべてり1ノアするもの、あるいはその時点でキャ
リッジの動作を停止させ、エラー解除後にその場からキ
ヤ1ノッジを動作して未印字データのみを印字させるも
のが知られている。
[Prior Art] This type of printer is equipped with a print buffer, and one line of data is set in the print buffer to sequentially perform a printing operation. Conventionally, when a carriage misalignment error occurred in this printer, the carriage movement was stopped at that point and the print buffer was opened. There are known methods in which the entire contents of the printer are deleted, or the carriage operation is stopped at that point, and after the error is cleared, the carriage is operated from that point to print only the unprinted data.

[発明が解決しようとする問題点] しかしながら、前者のものではプリントバツフアのデー
タをすべてクリアしてしまうので未印字データは印字さ
れずに消失してしまう問題があり、また後者のものでは
未印字データを印字するがキャリッジが一旦停止してか
ら再度動作して印字動作を開始するためすでに印字され
ているデータと未印字データとの接続がうまく行かない
場合が生じ、このような場合印字されたデータが見ずら
くなる問題があった。
[Problems to be solved by the invention] However, the former method clears all the data in the print buffer, so there is a problem that unprinted data is lost without being printed, and the latter method Although the print data is printed, the carriage stops once and then moves again to start the printing operation, so there may be cases where the connection between the already printed data and the unprinted data does not go well, and in such cases, the carriage will not be printed. There was a problem with the data being difficult to view.

この発明はこのような問題を解決するために考えられた
もので、印字中にキャリッジの桁ずれエラーが発生して
も未印字データを確実に印字することができ、しかもそ
の行の印字データに接続ずれが生じる虞れがなく常に見
易くできるプリンタを提供することを目的とする。
This invention was devised to solve such problems, and even if a carriage misalignment error occurs during printing, unprinted data can be reliably printed, and the printed data of that line can be To provide a printer that can always be easily viewed without the risk of connection misalignment.

[W4題点を解決するための手段] この発明はプリントバッフ?に一行分のデータをセット
し、そのプリントバッファに設定した印字データ位置を
指定するポインタを先頭データ位置から順次移動させて
プリントバッファのデータを順次1文字ずつ出力すると
ともに印字ヘッドを搭載したキャリッジを移動制御して
印字動作を行なうプリンタにおいて、プリントバッファ
のポインタを格納する2つのポインタメモリと、その一
方のポインタメモリの内容を先頭データ位置指定状態で
退避させる手段と、他方のポインタメモリの内容を印字
動作の進行とともに順次歩進させる手段と、キャリッジ
の桁ずれエラーが発生したとき一方のポインタメモリの
内容を他方のポインタメモリにセットさせる手段とを設
け、エラーの解除時他方のポインタメモリの内容に基い
てプリントバッファの先頭データ位置から順次データ印
字を行なうものである。
[Means for solving W4 problem] Is this invention a print buffer? Set one line of data in the print buffer, move the pointer that specifies the print data position set in the print buffer sequentially from the first data position, output the data in the print buffer one character at a time, and move the carriage equipped with the print head. In a printer that performs printing operations by controlling movement, there are two pointer memories that store print buffer pointers, a means for saving the contents of one of the pointer memories in a state where the leading data position is specified, and a means for saving the contents of the other pointer memory. A means for sequentially incrementing as the printing operation progresses, and a means for setting the contents of one pointer memory to the other pointer memory when a carriage misalignment error occurs, and when the error is cleared, the contents of the other pointer memory are set. Based on this, data is printed sequentially from the first data position of the print buffer.

[作用] このような構成の本発明においてはプリントバッファに
一行分のデータをセットすると2つのポインタメモリに
そのプリントバッファの先頭データ位置をポインタとし
てそれぞれセットし、その一方のポインタメモリの内容
を退避させるとともにその他方のポインタメモリの内容
を印字動作の進行とともに歩進させ、印字動作の途中で
キャリッジの桁ずれエラーが発生したときには一方のポ
インタメモリの内容、すなわち先頭データ位置を示すポ
インタを他方のポインタメモリにセットし、エラー解除
時その他方のポインタメモリの内容に従ってプリントバ
ッファのデータの最初から順次印字動作を行なう。
[Operation] In the present invention having such a configuration, when one line of data is set in the print buffer, the start data position of the print buffer is set as a pointer in two pointer memories, and the contents of one of the pointer memories are saved. At the same time, the contents of the other pointer memory are incremented as the printing operation progresses, and if a carriage misalignment error occurs during the printing operation, the contents of one pointer memory, that is, the pointer indicating the first data position, are transferred to the other pointer memory. It is set in the pointer memory, and when the error is cleared, printing is performed sequentially from the beginning of the data in the print buffer according to the contents of the other pointer memory.

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

第1図において1はCPU(中央処理装置)、2はRO
M(リード・オンリー・メモリ)、3はRAM (ラン
ダム・アクセス・メモリ)である。
In Figure 1, 1 is the CPU (central processing unit), 2 is the RO
M (read-only memory), 3 is RAM (random access memory).

前記CPLJ1とROM2及びRAM3とはアドレスバ
スライン4、データバスライン5及びコントロールライ
ン6を介して接続されている。
The CPLJ1, ROM2, and RAM3 are connected via an address bus line 4, a data bus line 5, and a control line 6.

7はインターフェース、8はプリンタドライブ回路、9
はI10ボートである。前記CPU1とインターフェー
ス7、プリンタドライブ回路8、I10ポート9とは前
記データバスライン5及びコントロールライン6を介し
て接続されている。
7 is an interface, 8 is a printer drive circuit, 9
is an I10 boat. The CPU 1 and the interface 7, printer drive circuit 8, and I10 port 9 are connected via the data bus line 5 and control line 6.

前記インターフェース7はホストコンピュータなどに接
続され、印字データなどを入力処理する。
The interface 7 is connected to a host computer, etc., and inputs and processes print data and the like.

前記プリンタドライブ回路8にはキャリッジを移動動作
するためのキャリッジモータ10.キャリッジに搭載さ
れデータのドツト印字動作を行なう印字ヘッド11及び
プラテンにセットされた用紙をフィード制御するフィー
ドモータ12が接続されている。前記I10ボート9に
は動作状態などを知らせる各種ランプ13、エラー解除
及び再スタートさせるためのセレクトスイッチなどの各
種スイッチ14及びホームポジションセンサー、ライト
ポジションセンサー、キャリッジ桁ずれセンサーなどの
各種センサー15が接続されている。
The printer drive circuit 8 includes a carriage motor 10 for moving the carriage. A print head 11 mounted on a carriage performs dot printing of data, and a feed motor 12 controls feeding of paper set on a platen. Connected to the I10 boat 9 are various lamps 13 that inform the operating status, various switches 14 such as a select switch for canceling an error and restarting, and various sensors 15 such as a home position sensor, a light position sensor, and a carriage digit shift sensor. has been done.

前記RAM3には第2図に示すように一行分の印字デー
タを格納するプリントバッファ31、ポインタ1メモリ
32、ポインタ2メモリ33などが設けられている。
As shown in FIG. 2, the RAM 3 is provided with a print buffer 31 for storing one line of print data, a pointer 1 memory 32, a pointer 2 memory 33, and the like.

前記cpuiは前記ROM2とともに各種手段を構成す
るもので、そのROM2のブOグラムデータに基いて前
記RAM3、インターフェース7、プリンタドライブ回
路8及びI10ポート9をそれぞれ制御している。
The CPU constitutes various means together with the ROM 2, and controls the RAM 3, interface 7, printer drive circuit 8, and I10 port 9 based on the program data in the ROM 2.

前記CPU1は前記プリントバッファ31に一行分の印
字データを格納させた後、第3図に示す制御を行なう。
After the CPU 1 stores one line of print data in the print buffer 31, it performs the control shown in FIG.

この制御はプリントバッフ?31に格納されている印字
データの先頭データ位置をポインタ1メモリ32及びポ
インタ2メモリ33にセットする。次にポインタ1メモ
リ32の内容を退避させる。この状態でプリントバッフ
?31の先頭データをプリンタドライブ回路8に出力す
る。そしてデータが終了していなければポインタ2メモ
リ33の内容を+1して歩進させる。以降このようにし
てデータが終了するまでポインタ2メモリ33の内容を
順次歩進させながら1文字ずつプリントバッファ31の
データを出力制御する。
Is this control a print buffer? The first data position of the print data stored in 31 is set in pointer 1 memory 32 and pointer 2 memory 33. Next, the contents of pointer 1 memory 32 are saved. Print buffer in this state? The first data of No. 31 is output to the printer drive circuit 8. If the data is not completed, the contents of the pointer 2 memory 33 are incremented by 1. Thereafter, in this manner, the data in the print buffer 31 is controlled to be output character by character while sequentially incrementing the contents of the pointer 2 memory 33 until the data is completed.

また、前記CPU1はセンサーによってキャリッジの桁
ずれエラーを検出すると第4図に示す制御を行なう。こ
の制御は退避していたポインタ1メモリ32の内容をポ
インタ2メモリ33に格納する。そしてセレクトスイッ
チの入力に待機する。
Further, when the CPU 1 detects a digit shift error of the carriage by a sensor, it performs the control shown in FIG. 4. This control stores the saved contents of the pointer 1 memory 32 into the pointer 2 memory 33. Then, it waits for input of the select switch.

この状態でセレクトスイッチ入力があると前述した第3
図のrAJにルーチンをジャンプさせ、ポインタ2メモ
リ33のポインタに従ってプリントバッファ31の印字
データを最初から印字させる。
If there is a select switch input in this state, the third
The routine jumps to rAJ in the figure, and the print data in the print buffer 31 is printed from the beginning according to the pointer in the pointer 2 memory 33.

このような構成の本発明実施例においてはある行を印字
するときその一行のデータがプリントバッファ31にセ
ットされ、ポインタ1メモリ32及びポインタ2メモリ
33には第5図の(a)に示すように先頭データ位置を
指定するポインタがセットされる。この場合各メモリ3
2.33にはいずれにも「1」がセットされる。そして
プリントバッファ31のデータ印字が進行するに従って
ポインタ2メモリ33の内容は順次歩進される。
In the embodiment of the present invention having such a configuration, when printing a certain line, the data for that line is set in the print buffer 31, and the data in the pointer 1 memory 32 and pointer 2 memory 33 are stored as shown in FIG. 5(a). A pointer that specifies the first data position is set in . In this case each memory 3
2.33 are both set to "1". As data printing in the print buffer 31 progresses, the contents of the pointer 2 memory 33 are sequentially incremented.

そして今ポインタ2メモリ33の内容が第5図の(b)
に示すように「5」を指定しているときにキャリッジが
桁ずれエラーを起こすと、そのエラーがセンサーによっ
て検出され、キャリッジがその場に停止される。続いて
ポインタ1メモリ32の内容、すなわち「1」がポイン
タ2メモリ33に格納される。この状態でセレクトスイ
ッチの操−があるとエラー解除が行われ、かつキャリッ
ジが先頭データ位1に戻され、印字ヘッド11はすでに
印字されているデータに重ねて再度プリントバッファ3
1のデータを最初から印字するようになる。従って未印
字データの印字を開始するまでは重ね印字となり、それ
以降は未印字データの印字となる。
The contents of the pointer 2 memory 33 are now shown in FIG. 5(b).
If the carriage makes a digit shift error while specifying "5" as shown in the figure, the error is detected by the sensor and the carriage is stopped on the spot. Subsequently, the contents of pointer 1 memory 32, ie, "1", are stored in pointer 2 memory 33. If the select switch is operated in this state, the error will be canceled, the carriage will be returned to the first data position 1, and the print head 11 will overlay the data that has already been printed and re-enter the print buffer 3.
1 data will be printed from the beginning. Therefore, until printing of unprinted data starts, overprinting is performed, and after that, unprinted data is printed.

このように途中でキャリッジの桁ずれエラーが発生した
ときにはその行の最初から再度印字動作を行なうので、
すでに印字されている部分は重ね印字されることになる
が、その印字部と未印字部が同一の印字動作において印
字されることになりその接続部にずれが生じる虞れはな
い。勿論未印字データも確実に印字されることになる。
In this way, when a carriage misalignment error occurs midway through, printing is performed again from the beginning of that line, so
Although the already printed portion will be overprinted, the printed portion and the unprinted portion will be printed in the same printing operation, so there is no risk of misalignment of the connection portion. Of course, unprinted data will also be reliably printed.

なお、前記実施例ではキャリッジの桁ずれエラーがあっ
たときその行の最初からすでに印字しであるデータに重
ね印字するものについて述べたが必ずしもこれに限定さ
れるものではなく、例えば再印字のときに用紙を10行
自動フィードさせて行を変え、この状態でエラー発生行
を最初から印字するようにしてもよく、このようにすれ
ば重ね印字がないのでデータはより見易くなる。
In the above embodiment, when there is a column misalignment error in the carriage, the data is already printed from the beginning of that line and is overprinted, but this is not necessarily the case; for example, when reprinting The paper may be automatically fed for 10 lines to change the line, and in this state, the line where the error has occurred may be printed from the beginning. In this way, there will be no overprinting, making the data easier to see.

[発明の効果] 以上詳述したようにこの発明によれば、印字中にキャリ
ッジの桁ずれエラーが発生しても未印字データを確実に
印字することができ、しかもその行の印字データに接続
ずれが生じる虞れがなく常に見易くできるプリンタを提
供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, even if a carriage misalignment error occurs during printing, unprinted data can be reliably printed, and moreover, it can be connected to the print data of that line. It is possible to provide a printer that can always be easily viewed without the risk of misalignment.

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

図はこの発明の実施例を示すもので、第1図はブロック
図、第2図はRAMの主なメモリ構成を示す図、第31
!lはCPUによる印字制御を示す流れ図、第4図はC
PUによるキャリッジの桁ずれエラー発生時の制御を示
す流れ図、第5図はポインタの動きを示す図である。 1・・・cpu <中央処理装置)、2・・・ROM(
リード・オンリー・メモリ)、8・・・プリンタドライ
ブ回路、10・・・キャリッジモータ、11・・・印字
へ   。 ラド、31・・・プリントバッフ?、32・・・ポイン
タ1メモリ、33・・・ポインタ2メモリ。 第1図 第3図    第4図 第5 図
The figures show an embodiment of the present invention, in which Figure 1 is a block diagram, Figure 2 is a diagram showing the main memory configuration of RAM, and Figure 31 is a diagram showing the main memory configuration of RAM.
! l is a flowchart showing print control by the CPU, and Figure 4 is C.
FIG. 5 is a flowchart showing the control performed by the PU when a carriage misalignment error occurs, and FIG. 5 is a diagram showing the movement of the pointer. 1...cpu <central processing unit), 2...ROM(
Read-only memory), 8... Printer drive circuit, 10... Carriage motor, 11... To print. Rad, 31...Print buffer? , 32... Pointer 1 memory, 33... Pointer 2 memory. Figure 1 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] プリントバッファに一行分のデータをセットし、そのプ
リントバッファに設定した印字データ位置を指定するポ
インタを先頭データ位置から順次移動させて前記プリン
トバッファのデータを順次1文字ずつ出力するとともに
印字ヘッドを搭載したキャリッジを移動制御して印字動
作を行なうプリンタにおいて、前記プリントバッファの
ポインタを格納する2つのポインタメモリと、その一方
のポインタメモリの内容を先頭データ位置指定状態で退
避させる手段と、他方のポインタメモリの内容を印字動
作の進行とともに順次歩進させる手段と、前記キャリッ
ジの桁ずれエラーが発生したとき前記一方のポインタメ
モリの内容を前記他方のポインタメモリにセットさせる
手段とを設け、エラーの解除時前記他方のポインタメモ
リの内容に基いて前記プリントバッファの先頭データ位
置から順次データ印字を行なうことを特徴とするプリン
タ。
One line of data is set in the print buffer, and a pointer that specifies the print data position set in the print buffer is sequentially moved from the first data position to sequentially output the data in the print buffer one character at a time, and a print head is installed. In a printer that performs printing operations by controlling the movement of a carriage, the printer includes two pointer memories for storing pointers of the print buffer, a means for saving the contents of one of the pointer memories in a state in which a leading data position is specified, and a means for saving the contents of one of the pointer memories in a state where a leading data position is specified, and a pointer for the other pointer memory. Means for sequentially incrementing the contents of the memory as the printing operation progresses, and means for setting the contents of the one pointer memory in the other pointer memory when the carriage misalignment error occurs, and the error is canceled. The printer is characterized in that data is printed sequentially from the first data position of the print buffer based on the contents of the other pointer memory.
JP5179385A 1985-03-15 1985-03-15 Printer Pending JPS61211051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5179385A JPS61211051A (en) 1985-03-15 1985-03-15 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5179385A JPS61211051A (en) 1985-03-15 1985-03-15 Printer

Publications (1)

Publication Number Publication Date
JPS61211051A true JPS61211051A (en) 1986-09-19

Family

ID=12896817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5179385A Pending JPS61211051A (en) 1985-03-15 1985-03-15 Printer

Country Status (1)

Country Link
JP (1) JPS61211051A (en)

Similar Documents

Publication Publication Date Title
US4933875A (en) Bi-directional printer for efficient of stored data and real-time input data
JPS61211051A (en) Printer
JPS6159920B2 (en)
JP2851973B2 (en) Output method and device
JPS61286182A (en) Printing-controlling system
JPH05147322A (en) Control method of space of serial printer
JPS63249677A (en) Printing method for printer
JPH0546935Y2 (en)
JPS63312845A (en) Page managing system
JP3138392B2 (en) Printing device and method
JPS5926440Y2 (en) Print head movement control device
JPS62256674A (en) Serial printer
JPS6251473A (en) System for controlling driving of ribbon of printer
JPS63270172A (en) Printer device
JPS6238931A (en) Printing device
JPS6052384A (en) Printer
JPS61211072A (en) Printer
JPH01190472A (en) Printing device
JPH05221070A (en) Serial printer
JPH03231875A (en) Label printer
JPS62183369A (en) Serial printer
JPH03175070A (en) Page control apparatus at time of paper end in printer
JPS63224977A (en) Printer
JPH06328792A (en) Recording method and apparatus therefor
JPS63122588A (en) Printing apparatus