JP2790387B2 - Serial printer space control method - Google Patents

Serial printer space control method

Info

Publication number
JP2790387B2
JP2790387B2 JP3342139A JP34213991A JP2790387B2 JP 2790387 B2 JP2790387 B2 JP 2790387B2 JP 3342139 A JP3342139 A JP 3342139A JP 34213991 A JP34213991 A JP 34213991A JP 2790387 B2 JP2790387 B2 JP 2790387B2
Authority
JP
Japan
Prior art keywords
printing
print head
cover
print
space
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
JP3342139A
Other languages
Japanese (ja)
Other versions
JPH05147322A (en
Inventor
学 井口
恭一 藤岡
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3342139A priority Critical patent/JP2790387B2/en
Publication of JPH05147322A publication Critical patent/JPH05147322A/en
Application granted granted Critical
Publication of JP2790387B2 publication Critical patent/JP2790387B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、シリアルプリンタにお
ける制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method for a serial printer.

【0002】[0002]

【従来の技術】シリアルプリンタにおける従来のスペー
ス制御方法では、スペーシング動作開始前にのみ、カバ
ーオープンセンサの状態がセンスされ、印刷部のカバー
が開いているか否かの検出が行われていた。そして、ス
ペーシング動作開始前における検出時に、もしカバーが
オープン状態であったならば、カバーが閉じられるまで
センスが繰り返され、スペーシング動作を保留し、もし
カバーがクローズ状態であれば、スペーシング動作が行
われていた。
2. Description of the Related Art In a conventional space control method for a serial printer, a state of a cover open sensor is sensed only before a spacing operation is started, and it is detected whether or not a cover of a printing unit is open. At the time of detection before the start of the spacing operation, if the cover is open, sensing is repeated until the cover is closed, the spacing operation is suspended, and if the cover is closed, the spacing is set. The operation was being performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来のスペース制御方法では、スペーシング動作開始
前にのみ、カバーが開いているか否かをチェックしてい
るため、スペーシング動作が開始された後、仮にカバー
が開かれても、現在行っている行が終了するまでスペー
シング動作が続行されていた。そのため、使用者が開放
された印刷部に手を入れた際には、移動中の印字ヘッド
に挟まれる虞れがあり、危険性を有するものであること
はもとより、特に近年では、印字速度の向上に対するユ
ーザの要望から、印字ヘッドのスペーシング動作を高速
移動化させているため、その危険度が更に高いものとな
っていた。
However, in the above-described conventional space control method, it is checked whether or not the cover is opened only before the spacing operation is started. Even if the cover is opened, the spacing operation is continued until the current line is completed. Therefore, when the user puts his hand in the open printing section, there is a possibility that the user will be caught by the moving print head, and in addition to having a danger, especially in recent years, the printing speed has been reduced. Due to the user's request for improvement, the spacing operation of the print head is moved at a high speed, so that the risk is further increased.

【0004】本発明は上記状況に鑑みてなされたもの
で、カバーが開放された際には即座にスペーシング動作
が停止されるとともに、カバーの開放が印字途中であっ
た場合には、カバーを閉じることで停止前の続きから印
字を続行することができるシリアルプリンタのスペース
制御方法を提供し、もって、安全性、及び操作性の向上
を図ることを目的とする。
The present invention has been made in view of the above circumstances, and when the cover is opened, the spacing operation is immediately stopped, and when the cover is opened during printing, the cover is closed. An object of the present invention is to provide a space control method for a serial printer that can continue printing from the position before stopping by closing the space, thereby improving safety and operability.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明に係るシリアルプリンタのスペース制御方法
は、印字を行う印字ヘッドと、前記印字ヘッドを行方向
に沿って第1・第2の方向に往復移動させるスペーシン
グ手段と、前記印字ヘッドの現在位置を検出する現在位
置検出回路と、前記印字ヘッドを覆うカバーの開閉状態
を検出するカバー・オープン検出手段とを備え、前記印
字ヘッドを行方向に往復移動させながら印字を行うシリ
アルプリンタにて用いられるスペース制御方法であっ
て、前記印字ヘッドが印字開始位置から印字終了位置ま
で第1の方向にスペーシングしながら印字動作をしてい
る際に、前記カバーが開けられたことを前記カバー・オ
ープン検出手段が検出すると、前記印字ヘッドによる印
字を停止するとともに、印字を停止したときのその印字
ヘッドの位置を印字中断位置として記憶し、次いで、速
やかに前記スペーシング手段による前記印字ヘッドのス
ペーシングを停止し、その後、前記カバーが閉められた
ことを前記カバー・オープン検出手段が検出すると、前
記印字ヘッドの現在停止位置を前記位置検出手段により
検出し、検出した現在停止位置が前記印字終了位置より
も前記第1の方向の進行方向側に位置していると、前記
印字ヘッドを前記第2の方向にスペーシングしながらそ
の印字終了位置から前記印字中断位置までの印字動作を
行うことを特徴とする。
In order to achieve the above object, a space control method for a serial printer according to the present invention comprises a print head for performing printing, and first and second print heads arranged along a line direction. A spacing means for reciprocating in a direction, a current position detection circuit for detecting a current position of the print head, and a cover open detection means for detecting an open / close state of a cover covering the print head. A space control method used in a serial printer that performs printing while reciprocating in a line direction, wherein the printing head performs a printing operation while spacing in a first direction from a printing start position to a printing end position. When the cover open detection means detects that the cover has been opened, the printing by the print head is stopped and The position of the print head when printing is stopped is stored as a print interruption position, and then the spacing of the print head by the spacing means is immediately stopped, and then the cover is closed. When the open detection means detects the current stop position of the print head, the position detection means detects the current stop position, and the detected current stop position is located closer to the traveling direction in the first direction than the printing end position. And performing a printing operation from the print end position to the print interruption position while spacing the print head in the second direction.

【0006】[0006]

【作用】第1の方向にスペーシングしながら印字動作を
している最中にカバーが開けられると、カバー・オープ
ン検出手段によってカバー開状態が検出され、印字ヘッ
ドによる印字およびスペーシング手段による印字ヘッド
のスペーシングが停止されるとともに、そのときの印字
中断位置が記憶される。その後、開状態のカバーが閉じ
られると、カバー・オープン検出手段によってカバー閉
状態が検出され、中断していた印字が再開される。この
とき、位置検出手段が検出した印字ヘッドの現在停止位
置が、中断前の印字を終了すべき位置である印字終了位
置よりも第1の方向の進行方向側に位置していると、第
2の方向にスペーシングしながら印字したほうが印字ヘ
ッドの移動距離が小さいと判断し、印字終了位置から印
字中断位置まで第2の方向に向けて印字を再開する。つ
まり、印字中断位置、印字終了位置および印字ヘッドの
現在停止位置の間の関係に基づいて、第1の方向と第2
の方向とのどちらで印字したほうが印字ヘッドの移動距
離が小さいかを判断するので、その判断結果(移動方
向)に従って印字を再開すれば、カバーが開かれたこと
によって中断された印字が最短時間で再開されるように
なる。
When the cover is opened during the printing operation while spacing in the first direction, the cover open state is detected by the cover open detecting means, and the printing by the print head and the printing by the spacing means are performed. The head spacing is stopped, and the print interruption position at that time is stored. Thereafter, when the cover in the open state is closed, the cover open state is detected by the cover open detecting means, and the interrupted printing is resumed. At this time, if the current stop position of the print head detected by the position detecting means is located on the advancing direction in the first direction from the print end position at which printing before the interruption should be ended, the second It is determined that the printing head moving distance is shorter when printing while spacing in the direction of, and printing is restarted in the second direction from the printing end position to the printing interruption position. That is, the first direction and the second direction are determined based on the relationship between the print interruption position, the print end position, and the current stop position of the print head.
It is determined which direction the printing head moves is smaller in the direction of printing. If printing is resumed according to the result of the determination (moving direction), printing interrupted by opening the cover will be the shortest time. Will be restarted.

【0007】[0007]

【実施例】以下、本発明に係るシリアルプリンタのスペ
ース制御方法の好適な実施例を図面を参照して詳細に説
明する。図1は本発明に係るシリアルプリンタのスペー
ス制御方法を行うための装置の構成を表すブロック図で
ある。受信回路1はホスト側から送信されるデータを受
信する回路で、受信されたデータはマイクロプロセッサ
3により読み込まれる。マイクロプロセッサ3はプログ
ラムROM5内に記憶されたプログラムを読み込み、そ
のプログラムの内容に従い装置全体を制御する。また、
CG・ROM7にはビット・マップ・データが蓄えら
れ、ビット・マップ・データは受信データ(文字コー
ド)を対応したビット・マップ・イメージへ展開する。
RAM9は、マイクロプロセッサ3が装置を制御する上
で必要な情報を記憶するワーク・エリアや、受信データ
(文字コード)から展開されたビット・マップ・イメー
ジを一行分記憶するイメージ・バッファ等よりなる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the serial printer space control method according to the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an apparatus for performing the serial printer space control method according to the present invention. The receiving circuit 1 is a circuit for receiving data transmitted from the host, and the received data is read by the microprocessor 3. The microprocessor 3 reads a program stored in the program ROM 5 and controls the entire apparatus according to the contents of the program. Also,
The CG ROM 7 stores bit map data, and the bit map data expands the received data (character code) into a corresponding bit map image.
The RAM 9 includes a work area for storing information necessary for the microprocessor 3 to control the apparatus, an image buffer for storing one line of a bit map image developed from received data (character code), and the like. .

【0008】I/O制御回路11はマイクロプロセッサ
3、スペース・モータ13、印字ヘッド15等との入出
力を制御する回路であり、I/O制御回路11を介する
ことでマイクロプロセッサ3がスペース・モータ13、
印字ヘッド15を制御するようになっている。また、印
字ヘッド15は、RAM9上のイメージ・バッファに展
開された一行分のビット・マップ・イメージからマイク
ロプロセッサ3により送られてくる一カラムごとのビッ
ト・マップ・データに従い、一カラムごとに印字を行
う。
The I / O control circuit 11 is a circuit for controlling input / output with the microprocessor 3, the space motor 13, the print head 15, and the like. Motor 13,
The print head 15 is controlled. The print head 15 prints one column at a time in accordance with the bit map data for one column sent from the microprocessor 3 from the bit map image for one line developed in the image buffer on the RAM 9. I do.

【0009】スペース・モータ13は印字ヘッド15が
装着されたDCモータであり、スペース・モータ13を
左右に回転させることにより印字ヘッド15も左右に移
動する。スペース・モータ13にはスリット・センサ1
7が装着され、スリット・センサ17は現在位置検出回
路19によってスペース・モータ13の回転を変位量に
変換し、印字ヘッド15の現在位置を検出する。そし
て、この印字ヘッド15の現在位置は、マイクロプロセ
ッサ3により読み込まれる。また、スリット・センサ1
7の出力はマイクロプロセッサ3に割り込みを起こさ
せ、印字ヘッド15へ一カラム分のデータを送る。即
ち、一カラム印字するタイミングをつくりだすのであ
る。カバー・オープン検出センサ(カバー・オープン検
出手段)21はカバーの開閉状態を検出するセンサであ
り、その状態はマイクロプロセッサ3により読み込まれ
る。LFモータ23は用紙送りを行うためのモータであ
り、回転させることにより改行動作を行うようになって
いる。
The space motor 13 is a DC motor on which the print head 15 is mounted. By rotating the space motor 13 left and right, the print head 15 also moves left and right. Slit sensor 1 for space motor 13
7, the slit sensor 17 converts the rotation of the space motor 13 into a displacement amount by the current position detection circuit 19, and detects the current position of the print head 15. Then, the current position of the print head 15 is read by the microprocessor 3. In addition, slit sensor 1
The output of 7 causes the microprocessor 3 to interrupt and send one column of data to the print head 15. That is, the timing for printing one column is created. The cover open detection sensor (cover open detection means) 21 is a sensor for detecting the open / closed state of the cover, and the state is read by the microprocessor 3. The LF motor 23 is a motor for feeding a sheet, and performs a line feed operation by rotating the LF motor 23.

【0010】次に、図1、図2に基づいて本発明の実施
例に係るスペース制御方法の処理の概略を説明する。図
2は本発明の実施例に係るスペース制御方法を説明する
概略フローチャートである。初期処理(図2中、a部)
では、電源投入後に必要なRAM9(図1参照)上のワ
ーク・エリアに初期設定などを行う。受信処理(図2
中、b部)では、受信回路1(図1参照)により受信し
たデータをマイクロプロセッサ3(図1参照)が読み込
む。展開処理(図2中、c部)では、その読み込んだデ
ータ(文字コード)に対応したビット・マップ・データ
をCG・ROM7(図1参照)により読み込み、RAM
9上のイメージ・バッファへ書き出す。そして、これら
受信処理、及び展開処理は一行分のイメージ・データが
出来上がるまで繰り返される(図2中、d部)。
Next, an outline of the processing of the space control method according to the embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a schematic flowchart illustrating a space control method according to an embodiment of the present invention. Initial processing (part a in FIG. 2)
Then, initialization is performed in a work area on the RAM 9 (see FIG. 1) necessary after the power is turned on. Reception processing (Fig. 2
In part (b), the microprocessor 3 (see FIG. 1) reads the data received by the receiving circuit 1 (see FIG. 1). In the expansion processing (part c in FIG. 2), bit map data corresponding to the read data (character code) is read by the CG ROM 7 (see FIG. 1),
9 to the image buffer above. Then, the receiving process and the developing process are repeated until one line of image data is completed (d part in FIG. 2).

【0011】一行のイメージ・データが出来上がったら
RAM9上のワーク・エリアの一部である後述するカバ
ー・オープン・フラグをOFFする(図2中、e部)。
カバー・オープン・フラグは、スペース処理中(図2
中、f部)にカバーが開けられ、処理を中断したことを
示すフラグである。そして、もし、スペース処理後カバ
ー・オープン・フラグがONならばスペース処理を繰り
返す(図2中、g部)。また、カバー・オープン・フラ
グがOFFならば一行印字が終了したと判断し、改行処
理(図2中、h部)で必要な改行動作を行い、受信処理
から再び上述の処理を繰り返す。
When one line of image data is completed, a cover open flag which will be described later, which is a part of the work area on the RAM 9, is turned off (e in FIG. 2).
The cover open flag indicates that the space is being processed (see FIG. 2).
This flag indicates that the cover has been opened in the middle part (f) and the processing has been interrupted. Then, if the cover open flag is ON after the space processing, the space processing is repeated (g in FIG. 2). If the cover open flag is OFF, it is determined that one-line printing is completed, a necessary line feed operation is performed in a line feed process (h section in FIG. 2), and the above-described process is repeated from the reception process.

【0012】ここで、図3に基づいて、RAM上のワー
ク・エリアについて説明する。図3はRAM上のワーク
・エリアのメモリ使用状態を表す説明図である。カバー
・オープン・フラグ31はスペース処理中にカバー・オ
ープンを検出し、スペース処理を中断したことを示すフ
ラグである。停止フラグ33はスリット割り込み処理よ
り、スペース処理へスペース・モータ13(図1参照)
を停止させることを知らせるためのフラグである。移動
モード・フラグ35は、スペーシング動作が印字開始前
のヘッド移動のためであるか、又は印字のためであるか
を示すフラグである。印字中フラグ37は現在印字中で
あることを示すフラグである。左右フラグ39は印字ヘ
ッド15(図1参照)を左に動かすか、又は右に動かす
かを示すフラグである。また、印字開始位置41は印字
ヘッド15が印字を開始する位置、印字終了位置43は
印字の終了する位置、停止位置45は印字ヘッド15を
停止するためにスペース・モータ13へ印加する電流を
0にする位置、印字左端47はイメージ・バッファ中の
最左データの位置、印字右端49はイメージ・バッファ
中の最右データの位置をそれぞれ保持しておくためのエ
リアである。
Here, the work area on the RAM will be described with reference to FIG. FIG. 3 is an explanatory diagram showing a memory use state of a work area on the RAM. The cover open flag 31 is a flag indicating that the cover open was detected during the space processing and the space processing was interrupted. The stop flag 33 is set to the space motor 13 from the slit interrupt processing to the space processing (see FIG. 1).
This is a flag for notifying that is stopped. The movement mode flag 35 is a flag indicating whether the spacing operation is for moving the head before the start of printing or for printing. The printing flag 37 is a flag indicating that printing is currently being performed. The left and right flags 39 are flags indicating whether to move the print head 15 (see FIG. 1) to the left or right. A print start position 41 is a position at which the print head 15 starts printing, a print end position 43 is a position at which printing ends, and a stop position 45 is a value at which a current applied to the space motor 13 for stopping the print head 15 is zero. The print left end 47 is an area for holding the leftmost data position in the image buffer, and the print right end 49 is an area for holding the rightmost data position in the image buffer.

【0013】このような装置構成、及び概略処理を行う
本実施例に係るスペース制御方法について、図4〜図7
に基づいて更に詳しく説明する。図4は印字領域とヘッ
ド位置の関係を表す説明図、図5はスペース処理フロー
チャート、図6はスペース初期処理フローチャートで、
図7は図6のA、B、C、Dに接続する同フローチャー
ト、図8はスリット割り込み処理フローチャートであ
る。図4に示すように、イメージ・バッファ中で印字デ
ータの最左カラム位置を印字左端、印字データの最右カ
ラム位置を印字右端とする。また、スペース・モータ1
3(図1参照)が加速し、一定速度になるのに必要な距
離をαとする。ヘッド現在位置が図4中、s部にあると
きは、印字方向が右方向で、印字開始位置(印字左端)
より印字を開始し、印字終了位置(印字右端)で印字を
終了し、停止位置(印字右端)で停止のための動作(ス
ペース・モータ13の電流OFF)をする。ヘッド現在
位置が図4中、t部にある時は、印字方向が左方向で、
印字開始位置(印字右端)より印字を開始し、印字終了
位置(印字左端)で印字を終了し、停止位置(印字左
端)で上述同様停止のための動作を行う。
FIGS. 4 to 7 show a space control method according to the present embodiment for performing such a device configuration and a schematic process.
This will be described in more detail based on FIG. 4 is an explanatory diagram showing the relationship between the print area and the head position, FIG. 5 is a space process flowchart, and FIG. 6 is a space initial process flowchart.
FIG. 7 is a flowchart for connection to A, B, C, and D in FIG. 6, and FIG. 8 is a flowchart for slit interrupt processing. As shown in FIG. 4, the leftmost column position of the print data in the image buffer is the print left end, and the rightmost column position of the print data is the right print end. Space motor 1
3 (see FIG. 1) is assumed to be a distance required for acceleration and constant speed. When the current head position is in the s section in FIG. 4, the printing direction is rightward, and the printing start position (printing left end)
Then, printing is started, printing is ended at the printing end position (printing right end), and an operation for stopping (current OFF of the space motor 13) is performed at the stop position (printing right end). When the current position of the head is at the portion t in FIG. 4, the printing direction is the left direction,
Printing starts from the print start position (print right end), ends at the print end position (print left end), and stops at the stop position (print left end) as described above.

【0014】ヘッド現在位置が図4中、u−1部にある
ときは、図4中、s部まで一旦印字ヘッド15(図1参
照)を移動する。そのために、左方向に動かし、停止位
置(印字左端−α)で停止のための動作を行う。その後
は図4中、s部の場合と同様となる。ヘッド現在位置が
図4中、u−2部にあるときは、図4中、t部まで一旦
印字ヘッド15を移動する。そのために、右方向に動か
し、停止位置(印字右端+α)で停止のための動作を行
う。その後は図4中、t部の場合と同様となる。
When the current position of the head is in the u-1 section in FIG. 4, the print head 15 (see FIG. 1) is temporarily moved to the s section in FIG. For that purpose, it is moved to the left to perform an operation for stopping at a stop position (left end of printing-α). After that, it is the same as the case of the s part in FIG. When the current position of the head is in the u-2 section in FIG. 4, the print head 15 is temporarily moved to the t section in FIG. For this purpose, it is moved rightward to perform an operation for stopping at a stop position (right end of printing + α). After that, it is the same as the case of the t section in FIG.

【0015】このような現在ヘッド位置と、印字領域の
関係から初期値をセットするのが、スペース初期処理
(図5中、a部)であり、これを更に詳細に示したもの
が図6、図7のスペース初期処理フローチャートであ
る。図6中のa部では、先ず、スペース動作中にカバー
がオープンされ、途中で処理を中断されたかどうかを判
断し、もし、中断されていない場合、図6中のb部でイ
メージ・バッファの内容を調べ、印字左端、印字右端を
保持しておく。中断された場合、即ち、再スペース動作
の時は、印字方向、及び移動モードを調べ直すので図6
中のcで印字開始位置41、及び印字終了位置43を印
字左端47、及び印字右端49へ保持する。図6中のd
部で現在ヘッド位置と、印字左端、印字右端の関係から
図4中のs、t、u−1、u−2の場合に分け、それぞ
れ値をセットする。図7中のe部が図4中のs領域、図
7中のf部が図4中のt領域、図7中のg部が図4中の
u−1領域、図7中のh部が図4中のu−2領域の場合
である。図7中のi部では、各領域で共通なフラグ類の
OFFを行う。
The initial value is set based on the relationship between the current head position and the print area in the space initial process (a in FIG. 5), which is shown in more detail in FIG. It is a space initial processing flowchart of FIG. In the part a in FIG. 6, first, it is determined whether the cover is opened during the space operation and the processing is interrupted in the middle. If the processing is not interrupted, the image buffer in the part b in FIG. Examine the contents and keep the left and right edges of the print. When the operation is interrupted, that is, at the time of the re-space operation, the printing direction and the movement mode are checked again.
The print start position 41 and the print end position 43 are held at the print left end 47 and print right end 49 by c in FIG. D in FIG.
4, the values are set for each of s, t, u-1, and u-2 in FIG. 4 based on the relationship between the current head position and the left and right printing edges. The e portion in FIG. 7 is the s region in FIG. 4, the f portion in FIG. 7 is the t region in FIG. 4, the g portion in FIG. 7 is the u-1 region in FIG. 4, and the h portion in FIG. Is the case of the u-2 region in FIG. In the part i in FIG. 7, the common flags are turned off in each area.

【0016】図5中のb部では、印字を行うに当たり、
印字ヘッド15を移動する必要があるか、即ち、図4中
のu領域の場合かを調べ、もし、必要ない場合は図5中
のc、d、e、f、g部をとばす。もし、必要な場合
は、図5中のc部でカバー・オープン検出センサ21
(図1参照)の状態を調べ、もし、カバー・オープン状
態の時は、閉じられるまで検出を繰り返す。図5中のd
部では、左右フラグ39(図3参照)の値に従いI/O
制御回路11(図1参照)を介してスペース・モータ1
3を回転させ、印字ヘッド15を動かす。スペース・モ
ータ13を回転させるとスリット・センサ17(図1参
照)の出力によりマイクロプロセッサ3に割り込みがか
かり、図8のスリット割り込み処理へ制御が移る。図5
中、e部で停止フラグ33(図3参照)がONになるま
で、図8中のスリット割り込み処理を繰り返す。ONに
なると図5中のf部でスペース・モータ13に流れる電
流を0にし、スペース・モータ13を停止させる。その
後、図5中のg部で左右フラグ39(図3参照)を反転
し、印字にそなえる。
In the part b in FIG. 5, when printing is performed,
It is checked whether the print head 15 needs to be moved, that is, it is the case of the u region in FIG. 4. If not, the portions c, d, e, f, and g in FIG. 5 are skipped. If necessary, the cover / open detection sensor 21 is set in the part c in FIG.
The state of FIG. 1 is checked, and if the cover is open, the detection is repeated until the cover is closed. D in FIG.
The I / O unit according to the value of the left / right flag 39 (see FIG. 3)
Space motor 1 via control circuit 11 (see FIG. 1)
3 is rotated, and the print head 15 is moved. When the space motor 13 is rotated, the microprocessor 3 is interrupted by the output of the slit sensor 17 (see FIG. 1), and the control shifts to the slit interrupt processing of FIG. FIG.
The slit interrupt processing in FIG. 8 is repeated until the stop flag 33 (see FIG. 3) is turned ON in the middle part e. When it is turned on, the current flowing to the space motor 13 is set to 0 at a portion f in FIG. 5, and the space motor 13 is stopped. Thereafter, the left and right flags 39 (see FIG. 3) are inverted at the g portion in FIG. 5 to prepare for printing.

【0017】図5中のh部でヘッド移動中にカバー・オ
ープンがあり、ヘッド移動を中断したかどうかをカバー
・オープン・フラグ31(図3参照)により判断し、も
し、中断していた時は、図5中、i、j、k、l、m部
をとばす。中断していない場合は、図5中のi部で新た
に停止位置45(図3参照)に印字終了位置43の値を
セットし、停止フラグ33をOFFする。図5中、j、
k、l、m部の処理は、上述の図5中のc、d、e、f
部の処理と同様である。図5中のスペース処理を抜けた
時、カバー・オープン・フラグ31がONであればスペ
ース動作中にカバー・オープンが発生したものとしてス
ペース処理は繰り返される。
The cover open flag 31 (see FIG. 3) determines whether or not the head movement has been interrupted during the head movement in the section h in FIG. 5 if the head movement has been interrupted. Skips the i, j, k, l, and m parts in FIG. If not interrupted, the value of the print end position 43 is newly set to the stop position 45 (see FIG. 3) in the i section in FIG. 5, and the stop flag 33 is turned off. In FIG. 5, j,
The processing of the k, l, and m parts is performed in the above-described c, d, e, and f in FIG.
This is the same as the processing of the section. If the cover open flag 31 is ON when exiting the space processing in FIG. 5, the space processing is repeated assuming that the cover open occurred during the space operation.

【0018】図8はスペース動作により発生するスリッ
ト割り込み処理である。図8中のa部で印字前のヘッド
移動モードか、或いは 印字モードかを移動モードフラ
グ35(図3参照)で判断する。移動モードの時は図8
中のb、c、d、e、f、g部はとばす。印字モードの
時は図8中のb部で現在位置検出回路19(図1参照)
で検出した現在位置が印字開始位置41(図3参照)に
なったならば図8中のc部で印字中フラグ37をONす
る。図8中のd部で印字中フラグ37がONで、なおか
つ、カバー・オープン・フラグがOFFなら、図8中の
e部でRAM9(図1参照)上のイメージ・バッファか
ら現在位置に対応したカラム・データを読み取り、I/
O制御回路11を介して印字ヘッド15へ送り、一カラ
ム印字を行う。図8中のf部で現在位置が印字終了位置
43になったら、図8中のg部で印字中フラグ37をO
FFする。図8中のh部で現在位置が停止位置45(図
3参照)になったら、図8中のi部で停止フラグ33を
ONし、停止する要求を出す。
FIG. 8 shows a slit interrupt process generated by the space operation. In the part a in FIG. 8, it is determined whether the mode is the head movement mode before printing or the printing mode by the movement mode flag 35 (see FIG. 3). Figure 8 when in move mode
The parts b, c, d, e, f and g in the figure are skipped. In the print mode, the current position detection circuit 19 (see FIG. 1) is provided in a portion b in FIG.
When the current position detected in step (4) becomes the printing start position 41 (see FIG. 3), the printing flag 37 is turned on in the portion c in FIG. If the printing flag 37 is ON at d in FIG. 8 and the cover open flag is OFF, the current position from the image buffer on the RAM 9 (see FIG. 1) at e at FIG. Read column data, I /
The data is sent to the print head 15 via the O control circuit 11, and one-column printing is performed. When the current position becomes the print end position 43 in the f section in FIG. 8, the printing flag 37 is set to O in the g section in FIG.
FF. When the current position becomes the stop position 45 (see FIG. 3) in the h section in FIG. 8, the stop flag 33 is turned on in the i section in FIG. 8, and a request to stop is issued.

【0019】図8中のj部で停止フラグ33がOFF
で、現在カバーがオープン中なら、図8中のk部で停止
フラグ33をONし、停止する要求を出し、なおかつ、
スペーシング中にカバー・オープンを検出したときを示
すカバー・オープン・フラグ31(図3参照)をセット
する。また、図8中のl部で印字中であることを示す、
印字中フラグ37がONなら、印字開始位置41(図3
参照)に現在位置、即ち、既に印字の終了した位置を保
持し(図8中、m部)、スリット割り込み処理を抜け
る。
The stop flag 33 is turned off at the j part in FIG.
Then, if the cover is currently open, the stop flag 33 is turned on at the k part in FIG. 8, a request to stop is issued, and
A cover open flag 31 (see FIG. 3), which indicates when a cover open is detected during spacing, is set. Also, it indicates that printing is being performed in the l section in FIG. 8,
If the printing flag 37 is ON, the printing start position 41 (FIG. 3)
), The current position, that is, the position where printing has already been completed is held (m in FIG. 8), and the process exits from the slit interrupt process.

【0020】以上、詳細に説明したように、図8中のス
リット割り込み中でカバー・オープンを検出したなら、
そのことを示すカバー・オープン・フラグ31をセット
するとともに、停止要求である停止フラグ33をセット
し、なおかつ印字途中ならばすでに印字の終了した位置
を、再スペース処理にそなえ、印字開始位置41に保持
する。図5中のスペース処理では、停止フラグ33がO
Nなのでスペース・モータ13を停止し、処理を抜け
る。図2に示したように、カバー・オープン・フラグ3
1がONの時は、スペース処理が繰り返される。再スペ
ース処理では、図5中のa部のスペース初期処理、即
ち、図6中のa部でカバー・オープン・フラグ31がO
Nなので図6中のc部で印字開始位置41に保持した未
だ印字されていない領域を印字端として処理を繰り返
す。このような処理を行うことで、スペーシング動作
中、カバー・オープンを検出したならば、即座に印字ヘ
ッド15が停止され、なおかつ、カバーが閉じられた
ら、既に印字された続きから印字を続行させることが可
能となるのである。
As described in detail above, if cover open is detected during the slit interruption in FIG.
In addition to setting the cover open flag 31 indicating that, the stop flag 33 which is a stop request is set, and if printing is in progress, the position where printing has already been completed is prepared for the re-space processing, and the print start position 41 is set. Hold. In the space processing shown in FIG.
Since it is N, the space motor 13 is stopped, and the process is exited. As shown in FIG. 2, the cover open flag 3
When 1 is ON, the space processing is repeated. In the re-space processing, the space initial processing of the part a in FIG. 5, that is, the cover open flag 31
Since it is N, the process is repeated with the unprinted area held at the print start position 41 in the portion c in FIG. 6 as the print end. By performing such processing, if a cover open is detected during the spacing operation, the print head 15 is immediately stopped, and if the cover is closed, printing is continued from the point where printing has already been performed. It becomes possible.

【0021】[0021]

【発明の効果】以上詳細に説明したように、本発明に係
るシリアルプリンタのスペース制御方法は、カバー・オ
ープン検出手段によりカバー開閉状態を検出し、カバー
・オープン時には印字ヘッドの移動を停止するととも
に、この停止によって中断された印字を再開する場合に
おける印字開始位置を記憶しておき、カバーが閉じられ
た際には記憶している印字開始位置およびこれに対応す
る印字終了位置と印字ヘッドの現在位置との関係を基に
印字方向を判断し、その判断結果である印字方向に従っ
て印字ヘッドを移動させて印字を再開するようになって
いる。したがって、カバーが開放された際には即座にス
ペーシング動作が停止されるとともに、カバーを閉じる
ことで停止前の続きから印字を続行することができる。
この結果、シリアルプリンタ印刷時における安全性を著
しく向上させることができるとともに、カバーを閉めれ
ば同時に印字が続行され、余計な操作を行う必要がな
く、操作性を著しく向上させることができる。
As described above in detail, according to the space control method of the serial printer according to the present invention, the cover open / closed state is detected by the cover open detecting means. The print start position when resuming the printing interrupted by this stop is stored, and when the cover is closed, the stored print start position, the corresponding print end position and the current print head position are stored. The printing direction is determined based on the relationship with the position, and the printing head is moved in accordance with the printing direction as a result of the determination to restart printing. Therefore, when the cover is opened, the spacing operation is immediately stopped, and by closing the cover, printing can be continued from the point before the stop.
As a result, the security at the time of printing on the serial printer can be remarkably improved, and printing can be continued at the same time when the cover is closed, so that there is no need to perform an extra operation, and the operability can be significantly improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係るスペース制御方法を行うための装
置構成を表すブロック図である。
FIG. 1 is a block diagram illustrating an apparatus configuration for performing a space control method according to the present invention.

【図2】本発明に係るスペース制御方法を説明する概略
フローチャートである。
FIG. 2 is a schematic flowchart illustrating a space control method according to the present invention.

【図3】RAM上のワーク・エリアのメモリ使用状態を
表す説明図である。
FIG. 3 is an explanatory diagram showing a memory use state of a work area on a RAM.

【図4】印字領域とヘッド位置の関係を表す説明図であ
る。
FIG. 4 is an explanatory diagram illustrating a relationship between a print area and a head position.

【図5】スペース処理フローチャートである。FIG. 5 is a space processing flowchart.

【図6】スペース初期処理フローチャートである。FIG. 6 is a flowchart of a space initial process.

【図7】図6に接続するスペース初期処理フローチャー
トである。
FIG. 7 is a flowchart of a space initial process connected to FIG. 6;

【図8】スリット割り込み処理フローチャートである。FIG. 8 is a flowchart of a slit interruption process.

【符号の説明】[Explanation of symbols]

15 印字ヘッド 19 現在位置検出回路 21 カバー・オープン検出センサ(手段) 15 Print head 19 Current position detection circuit 21 Cover open detection sensor (means)

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) B41J 29/13 B41J 19/18 B41J 29/38Continuation of front page (58) Field surveyed (Int. Cl. 6 , DB name) B41J 29/13 B41J 19/18 B41J 29/38

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 印字を行う印字ヘッドと、 前記印字ヘッドを行方向に沿って第1・第2の方向に往
復移動させるスペーシング手段と、 前記印字ヘッドの現在位置を検出する現在位置検出回路
と、 前記印字ヘッドを覆うカバーの開閉状態を検出するカバ
ー・オープン検出手段とを備え、 前記印字ヘッドを行方向に往復移動させながら印字を行
うシリアルプリンタにて用いられるスペース制御方法で
あって、 前記印字ヘッドが印字開始位置から印字終了位置まで第
1の方向にスペーシングしながら印字動作をしている際
に、前記カバーが開けられたことを前記カバー・オープ
ン検出手段が検出すると、前記印字ヘッドによる印字を
停止するとともに、印字を停止したときの該印字ヘッド
の位置を印字中断位置として記憶し、 次いで、速やかに前記スペーシング手段による前記印字
ヘッドのスペーシングを停止し、 その後、前記カバーが閉められたことを前記カバー・オ
ープン検出手段が検出すると、前記印字ヘッドの現在停
止位置を前記位置検出手段により検出し、 検出した現在停止位置が前記印字終了位置よりも前記第
1の方向の進行方向側に位置していると、前記印字ヘッ
ドを前記第2の方向にスペーシングしながら該印字終了
位置から前記印字中断位置までの印字動作を行うことを
特徴とするシリアルプリンタのスペース制御方法。
A print head for performing printing; a spacing means for reciprocating the print head in first and second directions along a row direction; and a current position detection circuit for detecting a current position of the print head. A space control method used in a serial printer that performs printing while reciprocating the print head in a row direction, comprising: a cover open detection unit that detects an open / close state of a cover that covers the print head. If the cover open detection unit detects that the cover has been opened while the print head is performing a printing operation while spacing in a first direction from a printing start position to a printing end position, the printing is performed. Stop printing by the head, and store the position of the print head when printing is stopped as a print interruption position. Stopping the spacing of the print head by the spacing means, and thereafter, when the cover open detection means detects that the cover is closed, the current stop position of the print head is detected by the position detection means. If the detected current stop position is located closer to the advancing direction in the first direction than the printing end position, the printing is performed from the printing end position while spacing the print head in the second direction. A space control method for a serial printer, which performs a printing operation up to an interruption position.
JP3342139A 1991-11-29 1991-11-29 Serial printer space control method Expired - Lifetime JP2790387B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3342139A JP2790387B2 (en) 1991-11-29 1991-11-29 Serial printer space control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3342139A JP2790387B2 (en) 1991-11-29 1991-11-29 Serial printer space control method

Publications (2)

Publication Number Publication Date
JPH05147322A JPH05147322A (en) 1993-06-15
JP2790387B2 true JP2790387B2 (en) 1998-08-27

Family

ID=18351431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3342139A Expired - Lifetime JP2790387B2 (en) 1991-11-29 1991-11-29 Serial printer space control method

Country Status (1)

Country Link
JP (1) JP2790387B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1148536A (en) * 1997-08-01 1999-02-23 Copyer Co Ltd Printer
JP3161535B2 (en) 1998-09-16 2001-04-25 セイコーエプソン株式会社 Ink jet recording device
JP6160723B2 (en) * 2016-02-19 2017-07-12 セイコーエプソン株式会社 RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP7131263B2 (en) * 2018-09-28 2022-09-06 ブラザー工業株式会社 image forming system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5871185A (en) * 1981-10-26 1983-04-27 Ricoh Co Ltd Controller for printer
JPS62238779A (en) * 1986-04-10 1987-10-19 Matsushita Electric Ind Co Ltd Typewriter
JPS6351172A (en) * 1986-08-21 1988-03-04 Brother Ind Ltd Printer
JPS63299961A (en) * 1987-05-30 1988-12-07 Tokyo Electric Co Ltd Electronic typewriter

Also Published As

Publication number Publication date
JPH05147322A (en) 1993-06-15

Similar Documents

Publication Publication Date Title
JP2790387B2 (en) Serial printer space control method
JP3149168B2 (en) Printing device
JPS6159920B2 (en)
JP3083251B2 (en) Page printer
JPS63162255A (en) Printer
JP3040420B2 (en) Recording device
JP2784858B2 (en) Serial printer
JP2971601B2 (en) How to detect incorrect mounting of printing plate
JP2503363B2 (en) Carry initial position setting method
JP2971602B2 (en) How to detect incorrect mounting of printing plate
JPH11198461A (en) Printer
JPH10250160A (en) Printer apparatus
JP2641332B2 (en) Printer device
JPH09131931A (en) Printer controller
JPH049157B2 (en)
JPH11292324A (en) Printer and printing system
JPH0786813B2 (en) Document editing printer
JPS62193868A (en) Printer
JPH04182167A (en) Printing control apparatus of printer
JPH0250850A (en) Printing control method of thermal printer
JPH06227076A (en) Head control device of printer and printing control device of document preparing device
JPS5881187A (en) Printer
JPH05270115A (en) Printer with automatic reduction function
JPH01118471A (en) Printing operation controller in serial printer
JPH07108718A (en) Printer with print omission preventing function

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090612

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090612

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100612

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100612

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110612

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110612

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 14

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 14