JPH0631984A - Control method of serial printer - Google Patents
Control method of serial printerInfo
- Publication number
- JPH0631984A JPH0631984A JP19442192A JP19442192A JPH0631984A JP H0631984 A JPH0631984 A JP H0631984A JP 19442192 A JP19442192 A JP 19442192A JP 19442192 A JP19442192 A JP 19442192A JP H0631984 A JPH0631984 A JP H0631984A
- Authority
- JP
- Japan
- Prior art keywords
- printing
- paper
- left end
- data
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims description 6
- 238000007639 printing Methods 0.000 claims abstract description 70
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 abstract description 7
- 238000010017 direct printing Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 3
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、印字ヘッドを搭載する
キャリアを左右に移動させながら1字ずつ印字を行うシ
リアリプリンタの印字動作の制御方法に関し、特に、印
字用紙を装着してない部分に対して印字を行ういわゆる
空打ちを防止するためのシリアリプリンタの制御方法に
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of controlling a printing operation of a serial printer which prints character by character while moving a carrier carrying a print head to the left and right, and particularly to a portion where a printing paper is not mounted. The present invention relates to a control method of a serial printer for preventing so-called blank printing for printing.
【0002】[0002]
【従来の技術】シリアリプリンタの従来の印字動作は、
シリアリプリンタに装着した印字用紙の幅や装着位置と
は無関係に、上位装置からの印字指令により、シリアリ
プリンタの内部で作成した印字開始位置および印字終了
位置に従った印字動作を行っている。2. Description of the Related Art The conventional printing operation of a serial printer is
The printing operation is performed in accordance with the print start position and the print end position created inside the serial printer by a print command from the host device regardless of the width and the mounting position of the print paper loaded in the serial printer.
【0003】[0003]
【発明が解決しようとする課題】上述したように、従来
のシリアリプリンタは、装着した印字用紙の幅や装着位
置とは無関係な印字開始位置および印字終了位置に従っ
て印字を行っているため、1行の印字データの左端また
は右端の部分を印字用紙の中に印字できない場合があ
り、この場合、プラテンに直接に印字を行って印字ヘッ
ドの印字ピンを痛めたり、印字用紙の縁に引掛けて印字
ピンを折ってしまうことがあるという欠点を有してい
る。As described above, the conventional serial printer performs printing according to the print start position and the print end position which are unrelated to the width and the mounting position of the mounted printing paper, and thus one line is printed. In some cases, the left edge or right edge of the print data cannot be printed on the print paper.In this case, you can print directly on the platen to damage the print pins of the print head, or hook it on the edge of the print paper to print. It has the drawback of breaking the pins.
【0004】[0004]
【課題を解決するための手段】本発明のシリアリプリン
タの制御方法は、シリアリプリンタの印字範囲の左端か
ら右端までキャリアを移動させて前記キャリア上に設け
てあるセンサによって前記シリアリプリンタに装着して
ある印字用紙の左端および右端を検出し、前記印字用紙
の位置と印字データの1行の長さと前記印字用紙に対す
る印字開始位置と前記印字用紙に対する印字終了位置と
前記印字用紙に対する左右のマージンの設定量とから決
定される印字位置が前記印字用紙内に収まるか否かを判
断し、前記印字位置が前記印字用紙内に収まらないと判
断したとき印字開始位置または印字終了位置を前記印字
用紙内に収まる位置に変更し、前記印字用紙内に収まら
ない印字データを切捨てて前記印字用紙内に収まる印字
データのみを印字させることを含んでいる。According to a method of controlling a serial printer of the present invention, a carrier is moved from a left end to a right end of a printing range of the serial printer and mounted on the serial printer by a sensor provided on the carrier. Detecting the left edge and right edge of a print sheet, setting the position of the print sheet, the length of one line of print data, the print start position for the print sheet, the print end position for the print sheet, and the left and right margins for the print sheet. When it is determined that the print position determined from the amount and the print position do not fit within the print paper, and the print position does not fit within the print paper, the print start position or the print end position is within the print paper. Change to a position that fits, cut off print data that does not fit in the print paper, and print only print data that fits in the print paper. It includes the making.
【0005】[0005]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0006】図1は本発明の一実施例によって印字を行
ったときの印字状態の一例を示す平面図で、左端部分を
削除して印字した例を示す図、図2は本発明の一実施例
によって印字を行ったときの印字状態の一例を示す平面
図で、右端部分を削除して印字した例を示す図、図3は
図1の実施例を適用するシリアリプリンタの一例を示す
ブロック図、図4は図3の例の印字ヘッドおよびその近
傍を示す斜視図である。FIG. 1 is a plan view showing an example of a printing state when printing is performed according to an embodiment of the present invention. FIG. 1 is a diagram showing an example in which a left end portion is deleted and printing is performed. FIG. 2 is an embodiment of the present invention. FIG. 3 is a plan view showing an example of a printing state when printing is performed according to an example, a diagram showing an example in which the right end portion is deleted and printed, and FIG. 3 is a block diagram showing an example of a serial printer to which the embodiment of FIG. 1 is applied. FIG. 4 is a perspective view showing the print head of the example of FIG. 3 and its vicinity.
【0007】図3において、ホスト装置1から送出され
た印字指令は、インタフェース制御部2を介してプリン
タ制御部6に送られる。プリンタ制御部6は、印字を行
うためのパラメータとして、印字左端位置および印字右
端位置および印字データ左端アドレスおよび印字データ
右端アドレスの4個のパラメータを作成する。印字左端
位置とは、シリアリプリンタの第一字印字位置から1行
の印字データの先頭の文字までの距離を指定したもので
あり、第一字印字位置とは、ホスト装置1がレフトマー
ジンを設定していない場合は、シリアリプリンタの物理
的な最左端の印字位置であり、ホスト装置1がレフトマ
ージンを設定している場合は、そのレフトマージンの位
置である。印字右端位置とは、同様に、シリアリプリン
タの第一字印字位置から1行の印字データの最後の文字
までの距離を指定したものである。印字データ左端アド
レスとは、上記の印字左端位置で指定された位置から始
まる文字列の最初の文字が、1行の印字データを格納し
ているワークランダムアクセスメモリ(ワークRAM)
4の印字データ格納エリア16内のどこに格納されてい
るかを、その先頭のアドレスで指定したものであり、印
字データ右端アドレスとは、同様に、上記の印字右端位
置で指定された位置で終る文字列の最後の文字が、ワー
クRAM4の印字データ格納エリア16内のどこに格納
されているかを、その最終のアドレスで指定したもので
ある。これらのパラメータは、ワークRAM4の印字パ
ラメータ格納エリア15に格納する。In FIG. 3, the print command sent from the host device 1 is sent to the printer control unit 6 via the interface control unit 2. The printer control unit 6 creates four parameters of a print left end position, a print right end position, a print data left end address, and a print data right end address as parameters for printing. The print left edge position is the distance from the first character print position of the serial printer to the first character of the print data of one line, and the host device 1 sets the left margin with the first character print position. If not, it is the physical leftmost printing position of the serial printer, and if the host device 1 sets a left margin, it is the position of the left margin. Similarly, the print right end position designates the distance from the first character print position of the serial printer to the last character of the print data of one line. The print data left edge address is a work random access memory (work RAM) in which the first character of the character string starting from the position specified by the print left edge position stores one line of print data.
4 where the print data storage area 16 is stored is designated by the leading address, and the print data right end address is a character that ends at the position designated by the above print right end position. The final address of the last character in the row specifies where the character is stored in the print data storage area 16 of the work RAM 4. These parameters are stored in the print parameter storage area 15 of the work RAM 4.
【0008】本実施例は、印字動作を開始するのに先立
ち、図4に示したキャリア54を、シリアリプリンタの
印字範囲の物理的左端位置26(図1および図2参照)
から物理的右端位置27(図1および図2参照)まで移
動させ、キャリア54に搭載しているセンサ51によっ
て印字用紙22の左端位置(用紙左端位置)30(図1
および図2参照)および印字用紙22の右端位置(用紙
右端位置)31(図1および図2参照)を検出する。ま
たこれらの用紙左端位置30および用紙右端位置31
を、ワークRAM4の印字パラメータ格納エリア15に
格納してある印字左端位置28(図1および図2参照)
および印字右端位置29(図1および図2参照)と比較
し、印字を用紙内に行うことができるか否か、すなわ
ち、印字左端位置28および印字右端位置29がそれぞ
れ用紙左端位置30と用紙右端位置31との間にあるか
否かを判断する。印字左端位置28および印字右端位置
29がこの条件を満足する場合は、従来と同様に、プリ
ンタ制御部6は、図3に示す入出力制御部8を呼び出し
て印字を実行する。In this embodiment, prior to starting the printing operation, the carrier 54 shown in FIG. 4 is moved to the physical left end position 26 of the printing range of the serial printer (see FIGS. 1 and 2).
From the physical right end position 27 (see FIGS. 1 and 2) to the left end position (paper left end position) 30 of the printing paper 22 by the sensor 51 mounted on the carrier 54 (FIG. 1).
And FIG. 2) and the right edge position (paper right edge position) 31 (see FIGS. 1 and 2) of the printing paper 22 are detected. Further, these paper left end position 30 and paper right end position 31
To the print left end position 28 stored in the print parameter storage area 15 of the work RAM 4 (see FIGS. 1 and 2).
Compared with the print right end position 29 (see FIGS. 1 and 2), whether printing can be performed in the paper, that is, the print left end position 28 and the print right end position 29 are the paper left end position 30 and the paper right end, respectively. It is determined whether or not it is between position 31. If the print left end position 28 and the print right end position 29 satisfy this condition, the printer control unit 6 calls the input / output control unit 8 shown in FIG.
【0009】印字左端位置28または印字右端位置29
が用紙左端位置30と用紙右端位置31との間にないと
きは、本実施例は、次のような動作を実行し、印字用紙
22の中に印字することができないデータを切捨てて、
印字ヘッド53(図4参照)が、プラテン21(図1お
よび図2および図4参照)を空打ちするのを回避する。Print left end position 28 or print right end position 29
Is not between the left edge position 30 and the right edge position 31 of the sheet, the present embodiment executes the following operation, discards data that cannot be printed in the print sheet 22,
The print head 53 (see FIG. 4) avoids hitting the platen 21 (see FIGS. 1 and 2 and 4) idle.
【0010】すなわち、印字左端位置28が用紙左端位
置30と用紙右端位置31との間にないときは、図1に
示すように、印字左端位置28を、用紙左端位置30と
用紙右端位置31との間にある文字列の最左端の文字の
位置(印字可能最左端位置)38に変更する。同様に、
印字右端位置29が用紙左端位置30と用紙右端位置3
1との間にないときは、図2に示すように、印字右端位
置29を、用紙左端位置30と用紙右端位置31との間
にある文字列の最右端の文字の位置(印字可能最右端位
置)39に変更する。更に、ワークRAM4の印字パラ
メータ格納エリア15内の上記の印字データ左端アドレ
スおよび印字データ右端アドレスも、これらの印字可能
最左端位置38および印字可能最右端位置39に対応す
るアドレス、すなわち、印字可能左端アドレスおよび印
字可能アドレスに変更する。That is, when the print left edge position 28 is not between the paper left edge position 30 and the paper right edge position 31, the print left edge position 28 is set to the paper left edge position 30 and the paper right edge position 31, as shown in FIG. The position of the character at the leftmost end of the character string between the two is changed to the position 38 of the leftmost end of printable character. Similarly,
The right end position 29 of printing is the left end position 30 of the paper and the right end position 3 of the paper.
2, the print right end position 29 is located at the rightmost end position of the character string between the paper left end position 30 and the paper right end position 31 (the rightmost printable end position). Position) 39. Further, the print data left end address and print data right end address in the print parameter storage area 15 of the work RAM 4 are also addresses corresponding to the printable leftmost position 38 and the printable rightmost position 39, that is, the printable left end. Change to address and printable address.
【0011】印字パラメータをこのように変更してから
印字を実行すると、印字用紙22の中に印字できない印
字データは削除されて印字されない。When printing is executed after changing the print parameters in this way, the print data that cannot be printed in the print paper 22 is deleted and not printed.
【0012】また、印字右端位置29が用紙左端位置3
0の左側にくる場合、および、印字左端位置28が用紙
右端位置31の右側にくる場合は、何れの場合も印字パ
ラメータが作成されないため、印字は実行されない。The right end position 29 of the print is the left end position 3 of the paper.
In the case where it is on the left side of 0 and when the print left end position 28 is on the right side of the paper right end position 31, the print parameter is not created in any case, and therefore the print is not executed.
【0013】図1において、印字列24の印字左端位置
28は、用紙左端位置30よりも左側にあるため、印字
左端位置を印字可能最左端位置38に変更し、これに対
応してワークRAM4の印字パラメータ格納エリア15
内の印字データ左端アドレスを、印字可能左端アドレス
に変更する。このようにして変更した後に印字を行った
印字結果25は、印字列24の左端の4文字が印字され
ず、5文字目から印字されたものとなる。In FIG. 1, since the print left end position 28 of the print row 24 is on the left side of the paper left end position 30, the print left end position is changed to the printable leftmost end position 38, and the work RAM 4 correspondingly is changed. Print parameter storage area 15
Change the left edge address of the print data inside to the left edge address that can be printed. The printing result 25 obtained by printing after changing in this way is that the four characters at the left end of the printing row 24 are not printed and the printing is started from the fifth character.
【0014】同様に、図2において、印字列32の印字
右端位置29は、用紙右端位置31よりも右側にあるた
め、印字右端位置を印字可能最右端位置39に変更し、
これに対応してワークRAM4の印字パラメータ格納エ
リア15内の印字データ右端アドレスを、印字可能右端
アドレスに変更する。このようにして変更した後に印字
を行った印字結果33は、印字列32の右端の3文字が
印字されず、4文字目まで印字されたものとなる。Similarly, in FIG. 2, since the print right end position 29 of the print row 32 is on the right side of the paper right end position 31, the print right end position is changed to the printable rightmost end position 39,
In response to this, the right end address of the print data in the print parameter storage area 15 of the work RAM 4 is changed to the printable right end address. The printing result 33 obtained by printing after changing in this way is that the rightmost three characters of the print row 32 are not printed, and up to the fourth character is printed.
【0015】[0015]
【発明の効果】以上説明したように、本発明のシリアリ
プリンタの制御方法は、シリアリプリンタの印字範囲の
左端から右端までキャリアを移動させてキャリア上に設
けてあるセンサによってシリアリプリンタに装着してあ
る印字用紙の左端および右端を検出し、印字用紙の位置
と印字データの1行の長さと印字用紙に対する印字開始
位置と印字用紙に対する印字終了位置と印字用紙に対す
る左右のマージンの設定量とから決定される印字位置が
印字用紙内に収まるか否かを判断し、印字位置が印字用
紙内に収まらないと判断したとき、印字開始位置または
印字終了位置を印字用紙内に収まる位置に変更し、印字
用紙内に収まらない印字データを切捨てて印字用紙内に
収まる印字データのみを印字させることにより、プラテ
ンに直接に印字を行って印字ヘッドの印字ピンを痛めた
り、印字用紙の縁に引掛けて印字ピンを折るのを防止で
きるという効果があり、従ってシリアリプリンタの信頼
性を向上させることができるという効果がある。As described above, according to the control method of the serial printer of the present invention, the carrier is moved from the left end to the right end of the printing range of the serial printer, and the serial printer is mounted on the serial printer by the sensor provided on the carrier. Detects the left and right edges of a print sheet, and determines from the print sheet position, the length of one line of print data, the print start position for the print sheet, the print end position for the print sheet, and the left and right margin settings for the print sheet. The print start position or print end position is changed to a position that fits in the print paper, and if the print position does not fit in the print paper Directly print on the platen by discarding print data that does not fit on the paper and printing only print data that fits on the print paper. Or hurt printing pins of the print head it, there is an effect that it prevents the fold printing pin hooked to the edge of the printing paper, thus there is an effect that it is possible to improve the reliability of Shiriari printer.
【図1】本発明の一実施例によって印字を行ったときの
印字状態の一例を示す平面図で、左端部分を削除して印
字した例を示す図である。FIG. 1 is a plan view showing an example of a printing state when printing is performed according to an embodiment of the present invention, and is a diagram showing an example of printing by deleting a left end portion.
【図2】本発明の一実施例によって印字を行ったときの
印字状態の一例を示す平面図で、右端部分を削除して印
字した例を示す図である。FIG. 2 is a plan view showing an example of a printing state when printing is performed according to an embodiment of the present invention, and is a diagram showing an example of printing by deleting the right end portion.
【図3】図1の実施例を適用するシリアリプリンタの一
例を示すブロック図である。FIG. 3 is a block diagram showing an example of a serial printer to which the embodiment of FIG. 1 is applied.
【図4】図3の例の印字ヘッドおよびその近傍を示す斜
視図である。FIG. 4 is a perspective view showing the print head of the example of FIG. 3 and its vicinity.
1 ホスト装置 2 インタフェース制御部 4 ワークランダムアクセスメモリ(ワークRAM) 6 プリンタ制御部 8 入出力制御部 15 印字パラメータ格納エリア 16 印字データ格納エリア 21 プラテン 22 印字用紙 24・32 印字列 25・33 印字結果 26 物理的左端位置 27 物理的右端位置 28 印字左端位置 29 印字右端位置 30 用紙左端位置 31 用紙右端位置 38 印字可能最左端位置 39 印字可能最右端位置 51 センサ 54 キャリア 1 host device 2 interface control unit 4 work random access memory (work RAM) 6 printer control unit 8 input / output control unit 15 print parameter storage area 16 print data storage area 21 platen 22 print paper 24/32 print string 25/33 print result 26 Physical Left Edge Position 27 Physical Right Edge Position 28 Printing Left Edge Position 29 Printing Right Edge Position 30 Paper Left Edge Position 31 Paper Right Edge Position 38 Printable Leftmost Edge Position 39 Printable Rightmost Edge Position 51 Sensor 54 Carrier
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 B41J 29/50 B 8804−2C ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location B41J 29/50 B 8804-2C
Claims (1)
右端までキャリアを移動させて前記キャリア上に設けて
あるセンサによって前記シリアリプリンタに装着してあ
る印字用紙の左端および右端を検出し、前記印字用紙の
位置と印字データの1行の長さと前記印字用紙に対する
印字開始位置と前記印字用紙に対する印字終了位置と前
記印字用紙に対する左右のマージンの設定量とから決定
される印字位置が前記印字用紙内に収まるか否かを判断
し、前記印字位置が前記印字用紙内に収まらないと判断
したとき印字開始位置または印字終了位置を前記印字用
紙内に収まる位置に変更し、前記印字用紙内に収まらな
い印字データを切捨てて前記印字用紙内に収まる印字デ
ータのみを印字させることを含むことを特徴とするシリ
アリプリンタの制御方法。1. A serial printer is configured to move a carrier from a left end to a right end of a printing range, and a sensor provided on the carrier detects a left end and a right end of a printing paper attached to the serial printer, and the printing paper. Position, the length of one line of print data, the print start position with respect to the print paper, the print end position with respect to the print paper, and the left and right margin setting amounts with respect to the print paper, the print position is within the print paper. If it is determined that the print position does not fit within the print paper, the print start position or print end position is changed to a position that fits within the print paper, and printing that does not fit within the print paper is performed. Control of serial printer including cutting off data and printing only print data that fits in the print paper Method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19442192A JPH0631984A (en) | 1992-07-22 | 1992-07-22 | Control method of serial printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19442192A JPH0631984A (en) | 1992-07-22 | 1992-07-22 | Control method of serial printer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0631984A true JPH0631984A (en) | 1994-02-08 |
Family
ID=16324329
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19442192A Withdrawn JPH0631984A (en) | 1992-07-22 | 1992-07-22 | Control method of serial printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0631984A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0924653A (en) * | 1995-07-13 | 1997-01-28 | Nec Niigata Ltd | Printing device having function of correcting printing position |
| JP2010030183A (en) * | 2008-07-30 | 2010-02-12 | Seiko Epson Corp | Paper width detection method of label printer, print control method of label printer, and label printer |
| US8714688B2 (en) | 2008-07-30 | 2014-05-06 | Seiko Epson Corporation | Paper width detection method for a label printer, printing control method for a label printer, and a label printer |
-
1992
- 1992-07-22 JP JP19442192A patent/JPH0631984A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0924653A (en) * | 1995-07-13 | 1997-01-28 | Nec Niigata Ltd | Printing device having function of correcting printing position |
| JP2010030183A (en) * | 2008-07-30 | 2010-02-12 | Seiko Epson Corp | Paper width detection method of label printer, print control method of label printer, and label printer |
| US8714688B2 (en) | 2008-07-30 | 2014-05-06 | Seiko Epson Corporation | Paper width detection method for a label printer, printing control method for a label printer, and a label printer |
| US9211734B2 (en) | 2008-07-30 | 2015-12-15 | Seiko Epson Corporation | Paper width detection method for a label printer, printing control method for a label printer, and a label printer |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01226374A (en) | Electronic type typewriter | |
| JPH05205084A (en) | Bar code printer | |
| JPH05201095A (en) | Impact printer | |
| JP4198025B2 (en) | Printing device | |
| JPH01118454A (en) | printing device | |
| JPS61286182A (en) | Printing-controlling system | |
| JPH02214684A (en) | printer | |
| JP2006035729A (en) | Printing device, printing method for fixed form printing, and POS terminal device | |
| JP2998915B2 (en) | Double-sided printing device | |
| JP3383062B2 (en) | Printing device and line feed method | |
| JPH04185467A (en) | printer device | |
| JP2006236033A (en) | Printing apparatus and printing system | |
| JPH0280266A (en) | printer | |
| JPH05318870A (en) | Printer | |
| JPH07266628A (en) | Tape printer | |
| JPH0357484Y2 (en) | ||
| JP3189835B2 (en) | Electronic printing apparatus, electronic printing method, and recording medium | |
| JP2697986B2 (en) | Printer | |
| EP0143995A2 (en) | Dot-matrix printer | |
| JPH05177909A (en) | Printer | |
| JP2973634B2 (en) | Serial printer | |
| JP2683468B2 (en) | Printer | |
| JP2526697B2 (en) | Printer with paper feed mechanism | |
| JP2009154298A (en) | Recording device and control method for recording device | |
| JPH0627156U (en) | Print head with perforated cutter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19991005 |