JPS625876A - Printing position controller - Google Patents

Printing position controller

Info

Publication number
JPS625876A
JPS625876A JP14452185A JP14452185A JPS625876A JP S625876 A JPS625876 A JP S625876A JP 14452185 A JP14452185 A JP 14452185A JP 14452185 A JP14452185 A JP 14452185A JP S625876 A JPS625876 A JP S625876A
Authority
JP
Japan
Prior art keywords
paper
external device
print
width
printing
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.)
Granted
Application number
JP14452185A
Other languages
Japanese (ja)
Other versions
JP2553036B2 (en
Inventor
Katsuyoshi Murase
村瀬 克良
Motonobu Hatakeyama
元延 畠山
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 JP60144521A priority Critical patent/JP2553036B2/en
Publication of JPS625876A publication Critical patent/JPS625876A/en
Application granted granted Critical
Publication of JP2553036B2 publication Critical patent/JP2553036B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To avoid wasting of a paper and save time, by providing a means for detecting and storing the distance from an original point position to a paper left end position, a means for storing the width of a paper, and a means for outputting alarm information an external device. CONSTITUTION:When a paper sensor 9 is turned from OFF to ON, the count on a step counter 13 at that time is read, and is stored into a step count memory circuit 14 as the paper left end position a'. Whereby detection of the left end of the paper is completed. When the sensor 9 is turned from ON to OFF, the count on the counter 13 is read, and is stored as the paper width (b) into a storage area other than that for the paper left end position a' in the memory circuit 14. When the maximum printing range exceeds the paper width, alarm information 9 (e) is outputted to the external device 15.

Description

【発明の詳細な説明】 (嵜葉I−、y−f11田、GLII 1本発明はシリ
アルプリンタにおける印字位置制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a print position control device for a serial printer.

〔従来の技術〕[Conventional technology]

゛  シリアルプリンタの構成例を第3図に従って説明
する。図面は平面図であシ、図において、1はキャリッ
ジ、2はこのキャリッジ1に固着された印字ヘッドであ
シ、スペースベルト3およびプーリ4を介してステップ
モータ5の回転に応じて左右方向に移動しながら文字お
よび図形を印字用紙6上に印字する。
゛ An example of the configuration of a serial printer will be explained with reference to FIG. The drawing is a plan view, and in the drawing, 1 is a carriage, 2 is a print head fixed to this carriage 1, and is moved in the left and right direction via a space belt 3 and a pulley 4 according to the rotation of a step motor 5. Characters and figures are printed on printing paper 6 while moving.

7はプラテンであシ、図示しないモータにより回転して
印字用紙を繰出す。8はホームセンサ、9は用紙センサ
である。
Reference numeral 7 indicates a platen, which is rotated by a motor (not shown) and feeds out printing paper. 8 is a home sensor, and 9 is a paper sensor.

電源が投入されると、ステップモータ5が回転して印字
ヘッド2は図において左方向に移動し、ホームセンサ8
の出力が論理“Onから論理11′に変化した点を原点
位置として印字ヘッド2は停止する。
When the power is turned on, the step motor 5 rotates, the print head 2 moves to the left in the figure, and the home sensor 8
The print head 2 stops with the point at which the output changes from logic "On" to logic 11' as the origin position.

外部装置から印字データが送信されると、ステップモー
タ5が逆回転をして印字ヘッド2は図において右方向に
移動し、原点位置から所定距離の個所の第1生卵字位置
から順に印字を行なう。
When print data is sent from an external device, the step motor 5 rotates in reverse, the print head 2 moves rightward in the figure, and prints sequentially from the first raw egg position at a predetermined distance from the origin position. Let's do it.

このとき、印字ヘッド2上に設けられた用紙センサ9の
出力は印字用紙6がない位置では論理“0#であシ、印
字用紙6がある位置では論理“1#である。印字ヘッド
2が図において右方向に移動しながら印字を行ない、用
紙センサ9の出力が論理@1”から論理″0″に変化し
たとき、現在位置よりスにおいて右側に印字すべきデー
タがある場合には印字を禁止して印字動作を停止させて
いた。
At this time, the output of the paper sensor 9 provided on the print head 2 is a logic "0#" at a position where there is no printing paper 6, and is a logic "1#" at a position where the printing paper 6 is present. When the print head 2 prints while moving rightward in the figure, and the output of the paper sensor 9 changes from logic @1" to logic "0", there is data to be printed on the right side of the current position. Printing was prohibited and the printing operation was stopped.

このように印字領域を規制する機構としては例えば実開
昭58−187449号等がある。
As a mechanism for regulating the print area in this way, there is, for example, Utility Model Application No. 58-187449.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の如く説明した従来の技術によると、印字用紙の図
において右端の規制位置を越える位置に印字しようとし
ても自動的に印字を停止してしまうために、それまでの
印字用紙を廃棄してそれより幅の広い印字用紙に交換し
て最初から再び印字しなおさなければならない問題があ
る。
According to the conventional technology explained above, even if an attempt is made to print at a position beyond the rightmost regulation position in the drawing of the printing paper, printing automatically stops, so the previous printing paper is discarded and the There is a problem in that it is necessary to replace the paper with a wider one and print again from the beginning.

また、印字用紙を図において左側に寄せてセットした場
合には第1生卵字位置が固定であるため、印字範囲が印
字用紙幅より狭い場合でも印字用紙の右端を越える位置
に印字しようとして印字を停止してしまう問題もある。
In addition, if the printing paper is set to the left in the figure, the position of the first raw egg character is fixed, so even if the printing range is narrower than the printing paper width, printing may occur at a position beyond the right edge of the printing paper. There is also the problem of stopping.

〔問題点を解決しようとする手段〕[Means to try to solve problems]

本発明は、印字ヘッドの原点位置を検出する手段と、用
紙幅を検出する手段とを有するシリアルプリンタにおい
て、原点位置から用紙左端位置までの距離を検出して記
憶する手段と、用紙幅を記憶する手段と、外部装置にア
ラーム情報を送出する手段とを設けたことを特徴とする
The present invention provides a serial printer having a means for detecting the origin position of a print head and a means for detecting paper width. The present invention is characterized in that it includes means for transmitting alarm information and means for transmitting alarm information to an external device.

〔作 用〕[For production]

以上の構成によると、外部装置から送信される最大印字
領域情報と印字用紙幅を比較し、印字用紙幅より最犬印
字領域の方が大きい場合には外部装置にアラーム情報を
送出し、印字用紙幅より最犬印字領域の方が小さい場合
には印字領域が印字用紙内に配置されることになる。
According to the above configuration, the maximum printing area information sent from the external device and the printing paper width are compared, and if the maximum printing area is larger than the printing paper width, alarm information is sent to the external device, and the printing paper width is If the maximum printing area is smaller than the width, the printing area will be placed within the printing paper.

〔実施例〕〔Example〕

以下に本発明の実施例を図面に従って説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図はブロック図であシ、10は制御部であり、この
制御部10から相切替えパルスと回転方向指令が出力さ
れる毎に相切替回路11.モータ駆動回路12によりス
テップモータ5が正・逆いずれかの方向に1ステツプ回
転する。13はステップ数カウンタであシ、相切替パル
スの数をカウントし、そのカウント値を制御部10が読
出してステップ数記憶回路14に格納する。15は外部
装置である。
FIG. 1 is a block diagram. Reference numeral 10 denotes a control section, and each time a phase switching pulse and a rotation direction command are output from the control section 10, a phase switching circuit 11. The motor drive circuit 12 rotates the step motor 5 one step in either the forward or reverse direction. A step number counter 13 counts the number of phase switching pulses, and the control section 10 reads out the count value and stores it in the step number storage circuit 14. 15 is an external device.

以下に上記構成の動作を第2図のフローチャートによっ
て説明する。
The operation of the above configuration will be explained below with reference to the flowchart of FIG.

Sl 電源を投入する。SL Turn on the power.

S2 ステップモータ5が1ステツプずつ正回転してプ
リンタは印字ヘッド2の原点出し動作を行なう。
S2: The step motor 5 rotates forward one step at a time, and the printer performs an operation to locate the print head 2 to its origin.

S3 ホームセンサ8の出力信号がOFF (論理“0
#)からON(論理″″1”)になると停止する。これ
で原点出しが完了する。
S3 The output signal of the home sensor 8 is OFF (logic “0”
It stops when it changes from #) to ON (logic ``1''). This completes the origin search.

S4 ステップ数カウンタ13をクリヤにする。S4 Clear the step number counter 13.

S5 ステップモータ5を1ステツプずつ逆回転させて
用紙センサ9の状態を監視する。
S5: The step motor 5 is reversely rotated one step at a time and the state of the paper sensor 9 is monitored.

S6 用紙センサ9がOFFからONになる。S6 The paper sensor 9 turns from OFF to ON.

S7 そのときのステップ数カウンタ13の値を読出し
、用紙左端位置fta’としてステップ数記憶回路14
に格納する。これによって用紙左端の検出が完了する。
S7 Read the value of the step number counter 13 at that time and store it in the step number storage circuit 14 as the sheet left edge position fta'.
Store in. This completes the detection of the left edge of the paper.

S8 再びステップ数カウンタ13をクリヤにする。S8 Clear the step number counter 13 again.

S9 ステップモータ5全1ステツプずつ逆回転させる
S9 Rotate the step motor 5 in the reverse direction one step at a time.

SIO用紙センサ9がONからOF’Fになる。The SIO paper sensor 9 changes from ON to OFF'F.

Sll  ステップ数カウンタ13の値を読出し、用紙
幅すとしてステップ数記憶回路14の用紙左端位置a′
の記憶エリアとは別の記憶エリアに格納する。以上で用
紙幅の検出が完了する。
Sll Read the value of the step number counter 13 and set the paper width to the paper left end position a' of the step number storage circuit 14.
The data is stored in a separate storage area from the storage area of . This completes the paper width detection.

S12  外部装置15から最大印字領域を指定する情
報Cを受信。
S12 Receive information C specifying the maximum print area from the external device 15.

S13  最大印字領域と用紙幅を比較。S13 Compare the maximum print area and paper width.

S14  最大印字領域が用紙幅を超えている場合には
外部装置15にアラーム情報を送出する。この比較は最
大印字領域としてn文字が指定され、1文字当シのステ
ップモータ5のステップ数がdであるとき次式によって
行なわれる。
S14: If the maximum print area exceeds the paper width, alarm information is sent to the external device 15. This comparison is performed using the following equation when n characters are specified as the maximum printing area and the number of steps of the step motor 5 per character is d.

b’)nXd S15  最大印字領域が用紙幅より狭い場合には第1
生卵字位置を決定する。それは、原点位fからのステッ
プ数keとすると次式で計算される。
b')nXd S15 If the maximum printing area is narrower than the paper width, the first
Determine the raw egg position. It is calculated by the following equation, assuming that the number of steps from the origin f is ke.

または、 このとき、第1生卵字位置の原点位置からの距離は、ス
テップモータ5の1ステツプ当シの印字ヘッド移動距離
tfとするとeXfである。
Or, at this time, the distance from the origin position to the first raw egg position is eXf, assuming that the print head movement distance per one step of the step motor 5 is tf.

また、用紙左側の余白部分は(e−a’)Xf。Also, the margin on the left side of the paper is (e-a')Xf.

用紙左側の余白部分は((a’+b’)−(e+c))
Xf= (e−a’)Xfとなシ、印字領域は用紙中央
に配置されることになる。
The left margin of the paper is ((a'+b')-(e+c))
If Xf=(e-a')Xf, the printing area will be placed at the center of the paper.

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

以上詳細に説明した本発明によると、印字ヘッドの原点
位置から用紙左端位置までの距離を検出し記憶する手段
と、用紙幅を記憶する手段と、外部装置にアラーム情報
を送出する手段とを設けたことにより、印字領域が用紙
幅を超える場合には外部装置に印字できないことを知ら
せることができることになシ、その結実用紙の無駄を無
くし、しかも時間も節約できる効果がある。
According to the present invention described in detail above, there are provided means for detecting and storing the distance from the origin position of the print head to the left edge position of the paper, means for storing the paper width, and means for sending alarm information to an external device. By doing so, it is possible to notify an external device that printing is not possible when the printing area exceeds the width of the paper, which has the effect of eliminating wasted paper and saving time.

また、印字領域が用紙の中央に配置されることにより印
字結果が見やすい効果も有する。
Furthermore, since the print area is placed in the center of the paper, the print result is easy to see.

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

第1図は本発明の実施例を示すブロック図、第2図は実
施例の主要動作を示すブロック図、第3図はシリアルプ
リンタの平面図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing the main operations of the embodiment, and FIG. 3 is a plan view of a serial printer.

Claims (1)

【特許請求の範囲】 1、印字ヘッドの原点位置を検出する手段と、用紙幅を
検出する手段とを有するプリンタの印字制御装置におい
て、 原点位置から用紙左端位置までの距離を検出し記憶する
手段と、 用紙幅を記憶する手段と、 最大印字領域を指定する外部装置にアラーム情報を送出
する手段とを設け、 外部装置から送信される最大印字領域情報と用紙幅を比
較し、用紙幅より最大印字領域の方が大きい場合には外
部装置にアラーム情報を送出し、用紙幅より最大印字領
域の方が小さい場合には印字領域が印字用紙内に納まる
ようにしたことを特徴とする印字位置制御装置。
[Claims] 1. In a print control device for a printer having means for detecting the origin position of a print head and means for detecting paper width, means for detecting and storing the distance from the origin position to the left edge position of the paper. and a means for storing the paper width, and a means for sending alarm information to an external device that specifies the maximum print area, and compares the maximum print area information sent from the external device with the paper width, and determines the maximum print area from the paper width. Print position control characterized by sending alarm information to an external device when the print area is larger, and adjusting the print area to fit within the print paper when the maximum print area is smaller than the paper width. Device.
JP60144521A 1985-07-03 1985-07-03 Print position controller Expired - Lifetime JP2553036B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60144521A JP2553036B2 (en) 1985-07-03 1985-07-03 Print position controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60144521A JP2553036B2 (en) 1985-07-03 1985-07-03 Print position controller

Publications (2)

Publication Number Publication Date
JPS625876A true JPS625876A (en) 1987-01-12
JP2553036B2 JP2553036B2 (en) 1996-11-13

Family

ID=15364270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60144521A Expired - Lifetime JP2553036B2 (en) 1985-07-03 1985-07-03 Print position controller

Country Status (1)

Country Link
JP (1) JP2553036B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05209393A (en) * 1990-02-27 1993-08-20 Beloit Corp Single line drying part for drying web and method for drying of web

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5711077A (en) * 1980-06-24 1982-01-20 Canon Inc Typeprinter
JPS6017348U (en) * 1983-07-13 1985-02-05 日本電気株式会社 pattern printing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5711077A (en) * 1980-06-24 1982-01-20 Canon Inc Typeprinter
JPS6017348U (en) * 1983-07-13 1985-02-05 日本電気株式会社 pattern printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05209393A (en) * 1990-02-27 1993-08-20 Beloit Corp Single line drying part for drying web and method for drying of web

Also Published As

Publication number Publication date
JP2553036B2 (en) 1996-11-13

Similar Documents

Publication Publication Date Title
JPS625876A (en) Printing position controller
JPS63128972A (en) Recorder
JPH0578428B2 (en)
JPS6227169A (en) Printing position determining system for serial printer
JPH0144511B2 (en)
JPS5938070A (en) Printer
JPH0156916B2 (en)
JPS6169468A (en) Printer
JP3284553B2 (en) Serial printer
JPS60180871A (en) Thermal printer
JPS63153153A (en) Shuttle drive device
JP2536344B2 (en) Printer
JPS60225776A (en) Printer
JPH01218879A (en) Printer device
JPS62202752A (en) Printing control system
JPS6027578B2 (en) printing device
JPH0732703A (en) Printer
JP2522232B2 (en) Printer
JPH04365113A (en) System for cooling heating part
JP2002192787A (en) Serial printer
JPS59215883A (en) Space-controlling system
JPH02305680A (en) Ribbon drive control circuit of transfer-type color printer
JPH05116412A (en) Serial printer
JPH02111558A (en) Printing density regulation system
JPH05338218A (en) Controlling printing of dot impact printer