JPS61209185A - Control of serial printer - Google Patents

Control of serial printer

Info

Publication number
JPS61209185A
JPS61209185A JP4818185A JP4818185A JPS61209185A JP S61209185 A JPS61209185 A JP S61209185A JP 4818185 A JP4818185 A JP 4818185A JP 4818185 A JP4818185 A JP 4818185A JP S61209185 A JPS61209185 A JP S61209185A
Authority
JP
Japan
Prior art keywords
printing
print head
printer
rom
digits
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
JP4818185A
Other languages
Japanese (ja)
Other versions
JPH0425873B2 (en
Inventor
Hirokuni Takano
高野 弘国
Tadao Shimizu
忠雄 清水
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 JP4818185A priority Critical patent/JPS61209185A/en
Publication of JPS61209185A publication Critical patent/JPS61209185A/en
Publication of JPH0425873B2 publication Critical patent/JPH0425873B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To reduce the control of the planning or manufacturing of ROM and to reduce cost when ROM is converted to mask ROM, by discriminating the number of printing figures with respect to one line to store the same in a memory element and controlling printer difference in the number of printing figures by the same control program. CONSTITUTION:A printing head 4 is moved from one end of a movable range to the other end thereof when the power source of a printer is closed and the sensor pulse generated from the sensor of a position detection means with the movement of said printing head 4 is counted by a counter to measure the moving distance of the printing head. The number of printing figures with respect to one line are discriminated on the basis of the measure result and the discriminated result is stored in a memory element to control two kinds of printers different in the number of printing figures by the same control program. By this method, in a stage before printing is performed, it is discriminated whether a printer is a narrow or wide type and printing processing is performed according to a control program corresponding to discrimination. Therefore, the same ROM can be used even in printers different in the number of printing figures.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プラテンに溢って往復移動する印字ヘッド及
び該印字ヘッドの位置を検出する手段を持つシリアルプ
リンタの制御方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of controlling a serial printer having a print head that reciprocates over a platen and means for detecting the position of the print head.

〔従来の技術〕[Conventional technology]

プラテンに沿って往復移動する印字ヘッドにより、プラ
テン上にセットされた用紙に所望の印字を行う従来のシ
リアルプリンタとしては、主としてパーソナルコンピュ
ータ等に用いられる個人向けの幅狭タイプのプリンタと
、帳票等の印刷に使用される業務用の幅広タイプのプリ
ンタが一般的である。
Conventional serial printers, which use a print head that moves back and forth along a platen to print desired characters on paper set on a platen, are mainly narrow type printers for individuals used in personal computers, etc., and printers for forms, etc. Wide type printers for business use are commonly used for printing.

この2種類のプリンタのうち、前者の幅狭タイプのプリ
ンタは10文字/インチ(パイヵピッチ)の大きさの文
字を1行につき80桁印字し、また後者の幅広タイプの
プリンタは1行につき13゜印字字する。
Of these two types of printers, the former narrow type printer prints 10 characters/inch (pica pitch) of 80 characters per line, and the latter wide type printer prints 13 degrees per line. Print.

このように従来の一般的な2種類のプリンタは、1行に
ついての印字桁数が異なるため、プリンタに内蔵される
マイクロプロセッサの制御プログラムも2種類となシ、
この2種類の制御プロ′グラムを格納するためのメモリ
として、幅狭タイプのプリンタ用のROMと、幅広タイ
プのプリンタ用のROMが必要であった。
In this way, the two general types of conventional printers differ in the number of digits printed per line, so there are also two types of control programs for the microprocessor built into the printers.
As memories for storing these two types of control programs, a ROM for the narrow type printer and a ROM for the wide type printer were required.

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

しかしながら、2種類のプリンタに応じて、制御プログ
ラムを格納する2種類のROMを用意する場合、各々の
設計や製造等の管理を別々に行うことが必要となシ、ま
たROMをマスクROMにする場合、マスク製造費が2
種類分必要となるために高価になるという問題があった
However, when preparing two types of ROM to store control programs for two types of printers, it is necessary to manage the design and manufacturing of each separately, and it is also necessary to change the ROM to a mask ROM. In this case, the mask manufacturing cost is 2
There is a problem in that it is expensive because it requires different types.

本発明はこのような問題を解決するためになされたもの
で、印字ヘッドの位置を検出する位置検出手段を利用し
て、1種類のROMにより幅挾タイプと幅広タイプの2
種類のプリンタを同一の制御プログラムにより制御でき
る制御プログラムを実現し、これによ、りROMの設計
や製造等の管理を減少し、併せてROMをマスクROM
とする場合の費用を削減することを目的とするものであ
る。
The present invention was made in order to solve such problems, and uses a position detection means to detect the position of the print head, and uses a single type of ROM to print two types, a wide type and a wide type.
We have realized a control program that can control different types of printers using the same control program, thereby reducing the management of ROM design and manufacturing, and also converting the ROM into a mask ROM.
The purpose is to reduce costs when

〔問題点を解決するための手段〕 上述した目的を達成するため、本発明はプリンタの電源
投入時に印字ヘッドをその移動可能範囲の一端から他端
まで移動させ、このときの移動に伴って位置検出手段の
センサから発生するセンサパルスをカウンタでカウント
して印字ヘッドの移動距離を測定する。
[Means for Solving the Problems] In order to achieve the above-mentioned object, the present invention moves the print head from one end of its movable range to the other end when the printer is powered on, and changes its position as it moves at this time. The moving distance of the print head is measured by counting sensor pulses generated from the sensor of the detection means with a counter.

そして、この測定結果にょ91行についての印字桁数を
判別し、判別結果を記憶素子に記憶させ、印字桁数の異
なる2種のプリンタを同一の制御プログラムで制御する
ようにしたものである。
Then, the number of printed digits for the 91 lines of this measurement result is determined, the determined result is stored in a storage element, and two types of printers having different numbers of printed digits are controlled by the same control program.

〔作用〕[Effect]

上述した手段によれば、印字を行う前の段階でプリンタ
が幅挟タイプのものが、幅広タイプのものかが判別され
、それに応じて印字のための処理が制御プログラムに従
って行われる。
According to the above-described means, before printing, it is determined whether the printer is a narrow type or a wide type, and the printing process is performed according to the control program accordingly.

そのため、これによれば印字桁数の異なるプリンタでも
、同一のROMを使用することが可能となる。
Therefore, according to this, it is possible to use the same ROM even in printers having different numbers of printing digits.

〔実施例〕〔Example〕

以下図面を参照して実施例を説明する。 Examples will be described below with reference to the drawings.

第1図は本発明によるシリアルプリンタの制御方法の一
実施例を説明するための印字桁数判別の制御プログラム
のフローチャート、第2図は本発明が適用されるシリア
ルプリンタの概略的な平面図である。
FIG. 1 is a flowchart of a control program for determining the number of printed digits to explain an embodiment of the method for controlling a serial printer according to the present invention, and FIG. 2 is a schematic plan view of a serial printer to which the present invention is applied. be.

まず、第2図に示すシリアルプリンタについて説明する
と、1はプラテンで、該プラテン1の中心軸の両端は左
右のサイドプレー)2a、2bに回転自在に支持されて
おシ、かっこの中心軸は図示しない改行用のステップモ
ータに連結されていて、このモータによりブラテン1が
回転することで、プラテン1に巻付けてセットされる図
示しない印字用紙をフィードするようになっている。
First, to explain the serial printer shown in Fig. 2, 1 is a platen, both ends of the central axis of the platen 1 are rotatably supported by left and right side plates 2a and 2b, and the central axis of the bracket is It is connected to a step motor (not shown) for line feed, and when the platen 1 is rotated by this motor, printing paper (not shown), which is set and wound around the platen 1, is fed.

3は前記サイドプレート2a、2bに両端を固定したシ
ャフトで、該シャフト3は前記プラテン1に対して平行
に配置されている。このシャフト3にはキャリッジが移
動自在に設けられていて、該キャリッジ上に印字ヘッド
4が搭載されている。
A shaft 3 has both ends fixed to the side plates 2a and 2b, and the shaft 3 is arranged parallel to the platen 1. A carriage is movably provided on this shaft 3, and a print head 4 is mounted on the carriage.

また、前記キャリッジには、図示しないスペースモータ
が、同じく図示しないワイヤ、ベルトあるいけギヤを介
1.て速枯六れイ卦h−?−のスペースモータの回転に
よりキャリッジと一体に印字ヘッド4がプラテン1に沿
ってシャフト3上を移動しつつ・プラテン1にセットさ
れている印字用紙に印字を行うようになっている。
Further, a space motor (not shown) is connected to the carriage via wires, belts, and gears (also not shown). Is it fast and dry? - The print head 4 is moved together with the carriage on the shaft 3 along the platen 1 by the rotation of the space motor 1, and prints on the print paper set on the platen 1.

また、図示しないが前記印字ヘッド4の位置を検出する
位置検出手段としては、スリットを有する円板をスペー
スモータの回転軸にギヤダウンして連結し、印字ヘッド
4の移動と共に回転する前記円板のスリットをフォトセ
ンサや磁気センサ等で検知することにより印字ヘッド4
の位置を検出するものや、前記円板をキャリッジに実装
して同様にスリットをセンサで検知することにょ力印字
ヘッド4の位置検出を行うもの等が用いられている。
Although not shown, as a position detecting means for detecting the position of the print head 4, a disk having a slit is connected to the rotating shaft of a space motor in a gear-down manner, and the disk rotates as the print head 4 moves. The print head 4 is detected by detecting the slit with a photo sensor, magnetic sensor, etc.
There have been used devices that detect the position of the print head 4, and devices that detect the position of the power print head 4 by mounting the disk on a carriage and similarly detecting the slit with a sensor.

次に上述した構成によるシリアルプリンタの制御方法を
第1図に基づいて説明する。
Next, a method of controlling the serial printer having the above-described configuration will be explained based on FIG.

まず、プリンタに電源が投入されると、初期設定プログ
ラムによりドライバ回路、インタフェース回路のリセッ
トや初期状態の設定が行われ、その後、印字ヘッド4を
搭載したキャリッジの原点位置出し動作(通常第1文字
目の印字開始位置へ印字ヘッド4を移動する)を行う際
、第1図の印字桁数判別の制御プログラムが実施される
First, when the power is turned on to the printer, the initial setting program resets the driver circuit and interface circuit and sets the initial state, and then the origin positioning operation of the carriage carrying the print head 4 (usually the first character When the print head 4 is moved to the printing start position of the second position, the control program for determining the number of printing digits shown in FIG. 1 is executed.

第1図のステップ1では、印字ヘッド4がスペースモー
タの回転により第2図右方向へ移動すると共に、前述し
た円板が回転してそのスリットがセンサにより検知され
、センサパルスが発生される。センサパルスが発生して
いる間は印字ヘッド4が右方向へ移動しておシ、印字ヘ
ッド4が移動可能範囲の一端に到達すると、つまり印字
ヘッド4右側のサイドグレー)2aに突当って止まると
、スペースモータは回転できなくなる。従って円板の回
転も停止され、センサパルスは発生されなくなる。
In step 1 of FIG. 1, the print head 4 is moved to the right in FIG. 2 by the rotation of the space motor, and the aforementioned disk rotates, its slit is detected by the sensor, and a sensor pulse is generated. While the sensor pulse is being generated, the print head 4 moves to the right, and when the print head 4 reaches one end of the movable range, that is, it hits the side gray (2a) on the right side of the print head 4 and stops. , the space motor will no longer be able to rotate. Therefore, the rotation of the disc is also stopped and no sensor pulses are generated.

ここで印字桁数判別の制御プログラムはステップ2へ進
む。
The control program for determining the number of printed digits then proceeds to step 2.

ステップ2では、スペースモータが前記と逆の方向に回
転して印字ヘッド4は左方向へ移動すると共に、前記と
同様に円板のスリットがセンサによル検知されて、セン
サパルスが発生する。このときのセンサパルスはカウン
タにより遂次カウントされ、印字ヘッド4が移動可能範
囲の他端に到達すると、つまり左側のサイドプレート2
bに突当って止まると、センサパルスは発生されなくな
って、印字桁数判別の制御プログラムは次のステップ3
へ進む。
In step 2, the space motor rotates in the opposite direction to move the print head 4 to the left, and the slit in the disk is detected by the sensor in the same manner as described above, and a sensor pulse is generated. The sensor pulses at this time are sequentially counted by a counter, and when the print head 4 reaches the other end of the movable range, that is, the left side plate 2
When it hits point b and stops, the sensor pulse is no longer generated and the control program for determining the number of printed digits moves to the next step 3.
Proceed to.

ステップ3では、前記ステップ2でカウントしたセンサ
パルス数から印字ヘッド4がその移動可能範囲の一端か
ら他端までの移動距離を算出し、その結果によりプリン
タの1行についての印字桁数の判別を行う。
In step 3, the distance traveled by the print head 4 from one end of its movable range to the other is calculated from the number of sensor pulses counted in step 2, and the number of digits printed per line of the printer is determined based on the result. conduct.

例えば、本実施例において、円板のスリットによるセン
サパルスが、印字ヘラ)”475E1/480インチ移
動すると1パルス発生するものとし、また左右のサイド
プレート2a、2b間の間隔つまシ印字ヘッド4の移動
可能範囲を、1行について80桁印字するプリンタは8
.5インチ、136桁印学才るプリンタは14.5イン
チとした場合、前者のプリンタでは8.5X480=4
080パルスのセンサパルスがカウントされ、後者プリ
ンタでは14,5X480=6960パルスのセンサパ
ルスがカウントされることになる。
For example, in this embodiment, it is assumed that the sensor pulse generated by the slit in the disk generates one pulse when the printing spatula) moves 475E1/480 inches, and that the distance between the left and right side plates 2a and 2b corresponds to the print head 4. There are 8 printers that print the movable range with 80 digits per line.
.. If a 5-inch, 136-digit printer is 14.5 inches, the former printer has 8.5 x 480 = 4
080 sensor pulses are counted, and in the latter printer, 14,5×480=6960 sensor pulses are counted.

印字桁数の判別は機構のバラツキ等を考慮して4200
パルス以下を80桁印字するプリンタ、それ以上を13
6桁印学才るプリンタとしている。
The number of printed digits is determined by 4200, taking into account variations in the mechanism, etc.
Printer that prints 80 digits less than pulse, 13 digits more
It is a 6-digit printer.

こうして判別した結果は、制御プログラムにより記憶素
子RAMに割シ当てられた印字桁数判別用ビットFLA
Gにセットされる。例えば80桁と判別された場合、前
記FLAGは論理10′をセットし、136桁の場合F
LAGは論理11′をセットする。
The result of this determination is the bit FLA for determining the number of printing digits assigned to the storage element RAM by the control program.
It is set to G. For example, if it is determined that it is 80 digits, the FLAG will set logic 10', and if it is 136 digits, F
LAG sets logic 11'.

この後、印字ヘッド4を第1字目の印字開始位置に移動
して印字桁数判別の制御プログラムを終了する。
Thereafter, the print head 4 is moved to the printing start position of the first character, and the control program for determining the number of printing digits is ended.

以後、プリンタの制御プログラムにおいて、印字桁管理
プログラムで前記FLAGの状態がチェックされ、80
桁と136桁の印字桁数の区別によ多処理が行われる。
Thereafter, in the printer control program, the status of the FLAG is checked by the print digit management program, and
A lot of processing is done depending on the distinction between the digits and the number of printed digits, 136 digits.

尚、本実施例では1行についての印字桁数が80桁と1
36桁の場合の判別について説明したが、本発明はこれ
に限られるものではなく、他の印字桁数の違いを判別す
ることも可能である。
In addition, in this embodiment, the number of printing digits per line is 80 digits and 1
Although the discrimination in the case of 36 digits has been described, the present invention is not limited to this, and it is also possible to discriminate other differences in the number of printed digits.

また、上述した印字桁数判別時における印字ヘッド4と
キャリッジの移動速度を、通常の印字速度よシも低く抑
えるように制御すれば、印字ヘッド4が左右のサイドグ
レー)2a、2bに突当る際の衝撃を殆んど無くすこと
ができる。
Furthermore, if the moving speed of the print head 4 and carriage when determining the number of printing digits mentioned above is controlled to be lower than the normal printing speed, the print head 4 will collide with the left and right side grays) 2a and 2b. This can virtually eliminate the impact of the accident.

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

以上説明したように本発明は、プリンタの電源投入時に
印字ヘッドをその移動可能範囲の一端から他端まで移動
させて、位置検出手段により印字ヘッドの移動距離を測
定し、これにより1行の印字桁数を判別すると共に判別
された結果を記憶素子に記憶して、印字桁数の異なる2
種類のプリンタを同一の制御プログラムで制御できるよ
うにしているため、従来それぞれ印字桁数の異なる2種
類のプリンタに対応して製造していた制御プログラムを
格納するROMを1種類にすることができる0 従ってROMの設計、製造、販売、及び保守等の管理を
従来に比べて半分に減少させることができ、更にROM
としてマスクROMを使用する場合もそのマスク製造費
用が半額で済むという効果が得られる。
As explained above, the present invention moves the print head from one end of its movable range to the other end when the power of the printer is turned on, and measures the moving distance of the print head using the position detection means, thereby printing one line. The number of digits to be printed is determined and the determined result is stored in a memory element to print two different numbers of digits.
Since different types of printers can be controlled by the same control program, the number of ROMs that store the control programs that were previously manufactured for two types of printers with different numbers of printing digits can now be reduced to one type. 0 Therefore, management of ROM design, manufacturing, sales, maintenance, etc. can be reduced by half compared to conventional methods, and ROM
Even when a mask ROM is used as a mask, the cost for manufacturing the mask can be reduced by half.

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

第1図は本発明によるプリンタの制御方法の一実施例を
説明するための印字桁数判別の制御プログラムを示すフ
ローチャート、第2図は本発明が適用されるシリアルプ
リンタの1例を示す概略的な平面図である。
FIG. 1 is a flowchart showing a control program for determining the number of printed digits to explain an embodiment of the printer control method according to the present invention, and FIG. 2 is a schematic diagram showing an example of a serial printer to which the present invention is applied. FIG.

Claims (1)

【特許請求の範囲】 1、プラテンに沿つて往復移動する印字ヘッド、及び該
印字ヘッドの位置を検出する位置検出手段を有するシリ
アルプリンタの制御方法であつて、 電源投入時に印字ヘッドをその移動可能範囲の一端から
他端まで移動させ、このときの印字ヘッドの移動距離を
前記位置検出手段により測定して、その測定結果により
1行についての印字桁数を判別し、 判別された印字桁数の結果を記憶素子に記憶させて、印
字桁数の異なるプリンタを同一の制御プログラムにより
制御することを特徴とするシリアルプリンタの制御方法
[Claims] 1. A method for controlling a serial printer having a print head that reciprocates along a platen, and a position detection means for detecting the position of the print head, wherein the print head can be moved when the power is turned on. Move the print head from one end of the range to the other end, measure the moving distance of the print head at this time with the position detection means, determine the number of printing digits for one line based on the measurement result, and calculate the determined number of printing digits. A method for controlling a serial printer, characterized in that the results are stored in a storage element and printers with different numbers of printing digits are controlled by the same control program.
JP4818185A 1985-03-13 1985-03-13 Control of serial printer Granted JPS61209185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4818185A JPS61209185A (en) 1985-03-13 1985-03-13 Control of serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4818185A JPS61209185A (en) 1985-03-13 1985-03-13 Control of serial printer

Publications (2)

Publication Number Publication Date
JPS61209185A true JPS61209185A (en) 1986-09-17
JPH0425873B2 JPH0425873B2 (en) 1992-05-01

Family

ID=12796212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4818185A Granted JPS61209185A (en) 1985-03-13 1985-03-13 Control of serial printer

Country Status (1)

Country Link
JP (1) JPS61209185A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4981375A (en) * 1988-03-17 1991-01-01 Brother Kogyo Kabushiki Kaisha Non-printing carriage movement to indicate margin size
JPH05229228A (en) * 1992-02-24 1993-09-07 Star Micronics Co Ltd Printer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60248380A (en) * 1984-05-24 1985-12-09 Nec Corp Change-over system for number of printing digit places in serial printer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60248380A (en) * 1984-05-24 1985-12-09 Nec Corp Change-over system for number of printing digit places in serial printer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4981375A (en) * 1988-03-17 1991-01-01 Brother Kogyo Kabushiki Kaisha Non-printing carriage movement to indicate margin size
JPH05229228A (en) * 1992-02-24 1993-09-07 Star Micronics Co Ltd Printer

Also Published As

Publication number Publication date
JPH0425873B2 (en) 1992-05-01

Similar Documents

Publication Publication Date Title
US4091913A (en) Printing apparatus with printing material non-motion detector
US4501224A (en) Continuous tag printing apparatus
US4655624A (en) Ink ribbon cassette
JPH0564599B2 (en)
JP2544795B2 (en) Printer
CA1110494A (en) Printhead compensation arrangement for printer
US3724631A (en) Printer with helically arranged type divided into axially offset group
JPS61209185A (en) Control of serial printer
US5445458A (en) Automatic platen gap adjusting apparatus
JPS642078B2 (en)
JPS6018548B2 (en) How to check the type wheel
JP2924021B2 (en) Platen gap adjustment device
JPS6179691A (en) Leftover detection of rolled recording paper
JP2001047717A (en) Residual quantity detector for ink ribbon
JPS5829236B2 (en) satsushiinjisouchi
JPS60171183A (en) Printer
US5230283A (en) Print hammer position control device
CN113022151B (en) Method for automatically identifying dpi of thermal printer core, printer and storage medium
JPS599902Y2 (en) printer device
JPS62234967A (en) Printer
JPS5887063A (en) Print position controlling system
US4177472A (en) Rotary electrical printer and method automatic blackness control for rotary electrical printer
JPH0427570A (en) Reference sheet position control device of multi-frequency recording device and its control system
JPS59135180A (en) Printer
JPH085815Y2 (en) Reference position detection circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term