JPH0613225B2 - Printing method of serial dot printer - Google Patents

Printing method of serial dot printer

Info

Publication number
JPH0613225B2
JPH0613225B2 JP59118284A JP11828484A JPH0613225B2 JP H0613225 B2 JPH0613225 B2 JP H0613225B2 JP 59118284 A JP59118284 A JP 59118284A JP 11828484 A JP11828484 A JP 11828484A JP H0613225 B2 JPH0613225 B2 JP H0613225B2
Authority
JP
Japan
Prior art keywords
timing
pulse motor
print head
character
cpi
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
JP59118284A
Other languages
Japanese (ja)
Other versions
JPS60262665A (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 JP59118284A priority Critical patent/JPH0613225B2/en
Publication of JPS60262665A publication Critical patent/JPS60262665A/en
Publication of JPH0613225B2 publication Critical patent/JPH0613225B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は印字ヘッドのスペーシングにパルスモータを使
用したドットプリンタの印字制御方式に関するものであ
る。
TECHNICAL FIELD The present invention relates to a print control system for a dot printer that uses a pulse motor for spacing the print head.

(従来の技術) 従来のスペーシングにパルスモータを採用したドットプ
リンタの印字制御は次の様になっていた。第2図に示す
様に1文字の横方向を12ピッチとし、そのうち文字マ
トリックスを9(横)×7(縦)として印字する。標準
の文字ピッチは10文字/インチ(10CPI)であるため
パルスモータの1ステップの駆動で1/120インチ印字ヘ
ッドが歩進する様にすれば1文字が12ステップで1/10
インチ印字ヘッドが歩進し、印字ヘッドとパルスモータ
の駆動タイミングが1致して制御が容易になっていた。
(Prior Art) The print control of a dot printer that employs a pulse motor for conventional spacing is as follows. As shown in FIG. 2, one character has 12 pitches in the horizontal direction, and the character matrix is printed as 9 (horizontal) × 7 (vertical). Since the standard character pitch is 10 characters / inch (10 CPI), if the 1/120 inch print head is stepped by driving the pulse motor in one step, one character is 1/10 in 12 steps.
The inch print head stepped forward, and the drive timing of the print head and the pulse motor was set to 1 to facilitate control.

ここで、印字制御についてみると、プリンタの文字ピッ
チには10CPIの他に12文字/インチ(12CPI),1
7文字/インチ(17CPI)等があり、スペースパルス
モータの1文字当りの駆動パルス数は10CPIで12パ
ルス,12CPIで10パルス,17CPIで7パルスとな
る。この時のスペースパルスモータと印字ヘッドの駆動
タイミングは第3図に示す如きものとなり、図示するよ
うにその駆動タイミングはずれて制御される。このため
スペースパルスモータと印字ヘッドの駆動タイミングを
作るため2個のタイマを使用し各各のタイミングを発生
していた。
Looking at the print control, the character pitch of the printer is 12 C / inch (12 CPI) in addition to 10 CPI.
There are 7 characters / inch (17 CPI) or the like, and the number of drive pulses per character of the space pulse motor is 12 pulses at 10 CPI, 10 pulses at 12 CPI, and 7 pulses at 17 CPI. The drive timings of the space pulse motor and the print head at this time are as shown in FIG. 3, and the drive timings are deviated and controlled as shown. For this reason, two timers are used to generate the respective timings in order to make the drive timings of the space pulse motor and the print head.

(発明が解決しようとする問題) しかしながら、上記従来のプリンタでの印字制御は2個
のタイマを使用するため回路の部品数が増え高価になる
問題点があった。
(Problems to be Solved by the Invention) However, the above-described conventional printer has a problem in that the number of circuit components increases and the cost increases because two timers are used for printing control.

本発明は上述の点を考慮してなされたもので、スペース
パルスモータと印字ヘッドの駆動タイミングを1個のタ
イマで生成し部品点数の少ない安価なドットプリンタの
印字方式を提供するものである。
The present invention has been made in consideration of the above points, and provides a printing method for an inexpensive dot printer having a small number of parts by generating the drive timing of the space pulse motor and the print head with one timer.

(問題点を解決するための手段) 本発明はこの種の印字制御方式において、スペーシング
用パルスモータと印字ヘッドの駆動タイミング周期の公
約数より算出したタイミングを設定し、この設定したタ
イミングによって1個のタイマを繰返し駆動し、その出
力を必要数カウントするようにしたものである。
(Means for Solving the Problems) In the print control method of this type, the present invention sets a timing calculated from the common divisor of the driving timing cycle of the spacing pulse motor and the print head, and 1 is set according to the set timing. It is configured such that each timer is repeatedly driven and the required number of outputs are counted.

(作用) 以上の構成としたことにより、プリンタの文字ピッチの
変化に応じてスペーシング用パルスモータと印字ヘッド
の駆動タイミング周期の公約数より算出したタイミング
をセットし、該セットしたタイマの出力を検知するとと
もにカウントし、そのカウント値がスペーシング用パル
スモータあるいは印字ヘッドの駆動タイミング周期に相
当する値に到達すると、該当部分を駆動することになる
のである。
(Operation) With the above configuration, the timing calculated from the common divisor of the driving timing cycle of the spacing pulse motor and the print head is set according to the change in the character pitch of the printer, and the output of the set timer is set. The detection and counting are performed, and when the count value reaches a value corresponding to the driving timing cycle of the spacing pulse motor or the print head, the corresponding portion is driven.

(実施例) 第1図は本発明の実施例を示すブロック図であり、プリ
ンタを制御するマイクロプロセサ(CPU)1と、プログラ
ム及び文字記号等のパターンデータが格納されているリ
ードオンリーメモリ(ROM)2と、外部からの受信データ
等を一時記憶するランダムアクセスメモリ(RAM)3と、
タイミング発生用のタイマ(TM)4とCPU1からの指令に
より駆動されるI/Oドライバ5と、前記CPU1,ROM
2,RAM3,TM4,I/Oドライバ5を接続するバスラ
イン6とによって構成される。又、前記I/Oドライバ
5には図示されない外部装置とのインタフェース回路、
印字ヘッド、改行用モータ、印字ヘッドを印字方向に移
動させるスペーシング用パルスモータが接続される。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention, in which a microprocessor (CPU) 1 for controlling a printer and a read-only memory (ROM) in which pattern data such as programs and character symbols are stored. ) 2, and a random access memory (RAM) 3 for temporarily storing data received from the outside,
A timer (TM) 4 for timing generation, an I / O driver 5 driven by a command from the CPU 1, the CPU 1 and the ROM
2, a RAM 3, a TM 4, and a bus line 6 connecting the I / O driver 5. Further, the I / O driver 5 has an interface circuit with an external device (not shown),
A print head, a line feed motor, and a spacing pulse motor that moves the print head in the printing direction are connected.

この様に構成された回路でCPU1はROM2に格納されてい
るプログラムにより図示されないインタフェース部より
印字データ(文字コード)や制御データ(文字ピッチ指
定や文字の修飾指定等で通常コントロールコードと言わ
れる)を受信する。上記印字データが1行分受信された
ことによりプリンタは印字を開始するがスペーシング用
パルスモータはCPU1の制御によりTM4から次の方法に
より得られたタイミングにより相の切換えが行なわれス
ペーシング動作を行う。
In the circuit configured in this way, the CPU 1 uses a program stored in the ROM 2 to print data (character code) and control data (usually called a control code for character pitch designation and character modification designation) from an interface unit (not shown). To receive. The printer starts printing when the above print data for one line is received, but the spacing pulse motor switches the phase according to the timing obtained from TM4 by the following method under the control of CPU1 to perform the spacing operation. To do.

第4図はスペーシングパルスモータの速度制御の1列を
図示したもので加速、定速、減速の部分で構成され印字
は定速の部分で行なわれる。
FIG. 4 shows one row of speed control of the spacing pulse motor, which is composed of acceleration, constant speed, and deceleration portions, and printing is performed at the constant speed portion.

TM4はCPU1の制御によりバスライン6を通してスペー
スタイミングデータ(Sn)がセットされるとタイマクロッ
ク4a(クロック周期はtCLK)によりカウントを開始し
Sn×tCLKの時間経過後にタイマ出力4bを発生しCPU1
に知らせる。
TM4 starts counting by timer clock 4a (clock cycle is t CLK ) when space timing data (S n ) is set through bus line 6 under the control of CPU 1.
The timer output 4b occur after a time lapse of S n × t CLK CPU1
Let us know.

CPU1は、内蔵するプログラムの1部にスペースタイミ
ングデータのテーブルを保有することにより第4図に示
す如き加速、定速、減速の速度モードに応じて前記テー
ブルから逐次スペースタイミングデータ(Sn)をTM4にセ
ットし、タイマ出力4bを得ることによりスペースパル
スモータの相切換を行い速度を制御する。ここで加速が
終了し定速(印字)になった場合の制御を印字速度が毎
秒100字(100CPS)のプリンタの例をとって説明する。
The CPU 1 retains a table of space timing data in a part of the built-in program, and sequentially stores space timing data (S n ) from the table according to the speed modes of acceleration, constant speed and deceleration as shown in FIG. Set to TM4 and obtain the timer output 4b to switch the phase of the space pulse motor and control the speed. Here, the control when the acceleration is completed and the speed is constant (printing) will be described by taking an example of a printer having a printing speed of 100 characters per second (100 CPS).

100CPSの印字速度では1文字10msで処理されることにな
り、したがって、10,12,17CPIの文字ピッチにおけるス
ペースパルスモータと印字ヘッドの駆動タイミングは表
‐1に示す如きものとなる。
At a printing speed of 100 CPS, one character is processed in 10 ms. Therefore, the drive timings of the space pulse motor and the print head at the character pitch of 10, 12, 17 CPI are as shown in Table-1.

以下、各々の場合について説明する。 Hereinafter, each case will be described.

先ず、10CPIの文字ピッチについてみると、スペース
パルスモータと印字ヘッドの駆動タイミングは同じであ
り、CPU1はTM4に0.833msのタイマ出力4bを得るべく
タイミングデータ(Sn)をセットし、該TM4からのタイマ
出力4bの検知によりスペースパルスモータと印字ヘッ
ドの駆動を同時に行う。
First, regarding the character pitch of 10 CPI, the drive timing of the space pulse motor and the print head is the same, and the CPU 1 sets the timing data (S n ) in TM4 to obtain the timer output 4b of 0.833 ms, and from this TM4. The space pulse motor and the print head are driven simultaneously by detecting the timer output 4b.

又、12CPIの場合は表‐1に示されるスペースパルス
モータタイミング周期1.0msと印字タイミング周期0.833
ms,1文字当りスペースパルスモータステップ数10,
1文字当り分割数12から2つのタイミング周期の公約
数をとると0.167msとなる。したがって、スペースパル
スモータタイミング周期は0.167×6=1.002ms,印字タ
イミング周期は0.167×5=0.835msの様に1つのタイミ
ング(この場合0.167ms)の整数倍でスペースパルスモ
ータと印字のタイミングを得ることが出来る。つまりCP
U1は、TM4に0.167msのタイマ出力4bを得るタイミン
グデータ(Sn)を毎回セットし、タイマ出力4bを検知す
る毎にスペースパルスモータについては6回につき1
回、印字ヘッドについては5回に1回の割合で各々駆動
すれば良い。第5図はこのタイミング関係を図示し明確
にしたものである。第6図はプログラムにより制御する
フローチャートを図示したもので全てCPU1により制御
される。
In the case of 12 CPI, the space pulse motor timing cycle 1.0 ms and the print timing cycle 0.833 shown in Table-1.
ms, Space pulse motor step number per character 10,
Taking the common divisor of two timing cycles from the number of divisions per character of 12 gives 0.167 ms. Therefore, the space pulse motor timing cycle is 0.167 x 6 = 1.002 ms, and the print timing cycle is 0.167 x 5 = 0.835 ms. The space pulse motor and print timing are obtained by an integral multiple of one timing (0.167 ms in this case). You can That is CP
U1 sets the timing data (S n ) that obtains the timer output 4b of 0.167 ms to TM4 every time, and every time the space pulse motor is detected every time the timer output 4b is detected
The print head may be driven once every five times. FIG. 5 illustrates and clarifies this timing relationship. FIG. 6 shows a flowchart controlled by a program, which is all controlled by the CPU 1.

更に、17CPIの場合は前出の表‐1からタイミング周
期の公約数は0.119msとなりスペースパルスモータタイ
ミング周期は0.119×12=1.428ms,印字タイミング周期
は0.119ms×7=0.833msとなる。したがって、0.119ms
のタイマ出力4bの12回につき1回と7回につき1回
の割合でスペースパルスモータと印字ヘッドの駆動タイ
ミングが得られる。
Further, in the case of 17 CPI, from Table 1 above, the common divisor of the timing cycle is 0.119 ms, the space pulse motor timing cycle is 0.119 × 12 = 1.428 ms, and the printing timing cycle is 0.119 ms × 7 = 0.833 ms. Therefore, 0.119ms
The drive timing of the space pulse motor and the print head can be obtained once every 12 times and once every 7 times of the timer output 4b.

又、印字ヘッドのドライブ時間を制御する場合には、タ
イマの追加をすることなく12CPIの場合は0.167ms,1
7CPIの場合は0.119msの間隔で任意にドライブ時間が得
られる。これは印字タイミングで印字ヘッドを駆動しタ
イマ出力4bをカウントし所望の回数のとき印字ヘッド
の駆動をオフすればよい。又、10CPIの場合も0.833ms
を例えば8分増し0.104msとすれば容易に実現できる。
In addition, when controlling the drive time of the print head, 0.167 ms, 1 for 12 CPI without adding a timer.
In the case of 7 CPI, drive time can be obtained at intervals of 0.119 ms. This can be achieved by driving the print head at the print timing, counting the timer output 4b, and turning off the drive of the print head when the desired number of times is reached. Also, 0.833ms for 10 CPI
Can be easily realized by increasing, for example, 8 minutes to 0.104 ms.

以上、本実施例では1文字が12分割の場合で説明した
が18分割、24分割の場合も同じ方式で制御可能であ
り本発明は文字の分割数により制限を受けるものではな
い。
As described above, the case where one character is divided into 12 has been described in the present embodiment, but the same method can be applied to the case of dividing into 18 and 24, and the present invention is not limited by the number of divided characters.

(発明の効果) 以上の説明により本発明によればドットプリンタのスペ
ースパルスモータ、印字ヘッドの駆動タイミング及び印
字ヘッドの駆動時間を1個のタイマで制御することがで
きるため大巾な回路部品数の削減により安価なプリンタ
が提供できる。
(Effect of the Invention) As described above, according to the present invention, the space pulse motor of the dot printer, the drive timing of the print head, and the drive time of the print head can be controlled by one timer, so that a large number of circuit parts can be provided. It is possible to provide an inexpensive printer by reducing

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

第1図は本発明の一実施例を示すブロック図、第2図は
ドットプリンタの印字例の図、第3図は各種文字ピッチ
におけるスペースパルスモータと印字ヘッドの駆動タイ
ミング図、第4図はプリンタの速度制御図、第5図は本
発明による12CPIの文字ピッチのタイムチャート、第
6図は本発明により制御されるプログラムのフローチャ
ートである。 1はCPU、2はROM、3はRAM、4はタイマ、4aはタイ
マクロック、4bはタイマ出力、5はI/Oドライバ、
6はバスラインである。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram of a dot printer printing example, FIG. 3 is a drive pulse diagram of a space pulse motor and a print head at various character pitches, and FIG. FIG. 5 is a speed control diagram of the printer, FIG. 5 is a time chart of a character pitch of 12 CPI according to the present invention, and FIG. 6 is a flow chart of a program controlled by the present invention. 1 is CPU, 2 is ROM, 3 is RAM, 4 is timer, 4a is timer clock, 4b is timer output, 5 is I / O driver,
6 is a bus line.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ドットの集合で文字,記号等を印字し、印
字ヘッドのスペーシングにパルスモータを使用するシリ
アルドットプリンタの印字方式において、 スペーシング用パルスモータと印字ヘッドの駆動タイミ
ング周期の公約数により1つのタイミングを設定し、該
設定したタイミングにより1個のタイマを操返し動作
し、その出力をカウントし、そのカウント数に応じてス
ペーシング用パルスモータと印字ヘッドの駆動タイミン
グを得ることを特徴とするシリアルドットプリンタの印
字方式。
1. A printing method for a serial dot printer in which characters, symbols, etc. are printed by a set of dots, and a pulse motor is used for spacing the print head. One timing is set according to the number, one timer is repeatedly operated at the set timing, the output is counted, and the driving timing of the spacing pulse motor and the print head is obtained according to the count number. A printing method for serial dot printers.
JP59118284A 1984-06-11 1984-06-11 Printing method of serial dot printer Expired - Lifetime JPH0613225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59118284A JPH0613225B2 (en) 1984-06-11 1984-06-11 Printing method of serial dot printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59118284A JPH0613225B2 (en) 1984-06-11 1984-06-11 Printing method of serial dot printer

Publications (2)

Publication Number Publication Date
JPS60262665A JPS60262665A (en) 1985-12-26
JPH0613225B2 true JPH0613225B2 (en) 1994-02-23

Family

ID=14732860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59118284A Expired - Lifetime JPH0613225B2 (en) 1984-06-11 1984-06-11 Printing method of serial dot printer

Country Status (1)

Country Link
JP (1) JPH0613225B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54126116A (en) * 1978-03-20 1979-10-01 Fujitsu Ltd Printing pitch changing system for printer
JPS57212084A (en) * 1981-06-24 1982-12-27 Toshiba Corp Controlling system for printing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54126116A (en) * 1978-03-20 1979-10-01 Fujitsu Ltd Printing pitch changing system for printer
JPS57212084A (en) * 1981-06-24 1982-12-27 Toshiba Corp Controlling system for printing

Also Published As

Publication number Publication date
JPS60262665A (en) 1985-12-26

Similar Documents

Publication Publication Date Title
EP0263688A1 (en) Method for correcting printing alignment of a serial dot matrix printer
EP0094763B1 (en) Pulse motor control device
JPH0613225B2 (en) Printing method of serial dot printer
JPS6133711B2 (en)
JPS58102779A (en) Control system of printing of emphatic character
JPS6142632B2 (en)
EP0121882A2 (en) High quality printing method
JP2796763B2 (en) Print head control method
GB2233175A (en) Printer and stepping motor control
JPH0632953B2 (en) Dot printer printing method
US5037221A (en) Emphasized character dot-matrix printer having two groups of dot-forming elements
JPH0156673B2 (en)
JPS587368A (en) Dot matrix printer
JP2944340B2 (en) Control device for dot impact printer
JPS6220035B2 (en)
JPH02289361A (en) Printing controller in serial printer
JP2511258B2 (en) Thermal printer
JPS6137117B2 (en)
JPH0588675B2 (en)
JP2537394B2 (en) Print control method of serial dot printer
JPH0755566B2 (en) Serial printer with bar code printing function
EP0230896B1 (en) Microprocessor control unit for serial dot matrix printer
JPH04163166A (en) Printing method for printer
JPS6241113B2 (en)
JPH027092B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term