JPH0533909B2 - - Google Patents

Info

Publication number
JPH0533909B2
JPH0533909B2 JP63047823A JP4782388A JPH0533909B2 JP H0533909 B2 JPH0533909 B2 JP H0533909B2 JP 63047823 A JP63047823 A JP 63047823A JP 4782388 A JP4782388 A JP 4782388A JP H0533909 B2 JPH0533909 B2 JP H0533909B2
Authority
JP
Japan
Prior art keywords
character code
buffer
line feed
character
dot pattern
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
JP63047823A
Other languages
Japanese (ja)
Other versions
JPH01221256A (en
Inventor
Akihiko Inamoto
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP4782388A priority Critical patent/JPH01221256A/en
Publication of JPH01221256A publication Critical patent/JPH01221256A/en
Publication of JPH0533909B2 publication Critical patent/JPH0533909B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 シリアル・プリンタの改良に関し、 シリアル・プリンタを用いて左綴用紙等に横方
向(用紙より見て)の印刷を行い得るようにする
ことを目的とし、 文字コードを印刷ポジシヨンに対応させてキヤ
ラクタ・コード・ポジシヨン・バツフアに書き込
むと共に、改行ピツチを改行ピツチ・メモリに書
き込み、 キヤラクタ・コード・ポジシヨン・バツフアを
列方向にスキヤンし、スキヤンして得られら文字
コードと改行ピツチ・メモリの内容に基づいて、
ドツト・パターンをドツト・パターン・バツフア
に展開し、ドツト・パターン・バツフアの内容を
印字ヘツドに送るようにしたものである。
[Detailed Description of the Invention] [Summary] Regarding the improvement of serial printers, the purpose of this invention is to enable printing in the horizontal direction (as viewed from the paper) on left-bound paper, etc. using the serial printer. Write the code to the character code position buffer in correspondence with the print position, write the line feed pitch to the line feed pitch memory, scan the character code position buffer in the column direction, and write the characters obtained by scanning. Based on the code and the contents of the newline pitch memory,
The dot pattern is developed into a dot pattern buffer, and the contents of the dot pattern buffer are sent to the print head.

〔産業上の利用分野〕[Industrial application field]

本発明は、シリアル・プリンタの改良に関する
ものである。
The present invention relates to improvements in serial printers.

〔従来の技術〕[Conventional technology]

シリアル・プリンタにおいては、機構上の制約
により用紙の吸入方向が限定される媒体(左綴用
紙、複写単票など)に対しては、その印字処理方
向も必然的に制限されてしまうことが一般的であ
る。
In serial printers, it is common for media whose paper suction direction is limited due to mechanical constraints (left-handed binding paper, copy sheets, etc.) to be inevitably limited in their print processing direction as well. It is true.

この制限をなくすため、従来方式ではプリンタ
内に1ページ分のドツト・データ・バツフアを設
け、所謂ランドスケープ/ポートレート変換を行
うことが条件であつた。
In order to overcome this limitation, the conventional method requires that a dot data buffer for one page be provided in the printer to perform so-called landscape/portrait conversion.

例えば、第7図に示すように、シリアル・プリ
ンタを用いて左綴用紙に横方向(用紙を基準とし
て)の文字列を印刷する場合、先ず1ページ分の
文字パターンをドツト・データ・バツフアに展開
し、その後、ドツト・データ・バツフアの内容を
1列ずつ印字ヘツドに供給して印字を行う。
For example, as shown in Figure 7, when printing a character string in the horizontal direction (with respect to the paper) on left-bound paper using a serial printer, first transfer the character pattern for one page to the dot data buffer. The contents of the dot data buffer are then supplied to the print head column by column for printing.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の方式では1ページ分のドツト・データ・
バツフアを必要とするため、大量のメモリを消費
すると言う欠点がある。
In the conventional method, one page of dot data
It has the disadvantage of consuming a large amount of memory because it requires a buffer.

本発明は、この点に鑑みて創作されたものであ
つて、プリンタ内に小容量のメモリを追加するだ
けで、1ページ分のドツト・データ・バツフアを
持つ従来のプリンタと同等の機能を持つシルア
ル・プリンタを提供することを目的とする。
The present invention was created in view of this point, and by simply adding a small amount of memory inside the printer, it has the same functionality as a conventional printer that has a dot data buffer for one page. The purpose is to provide serial printers.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理図である。本発明のシリ
アル・プリンタは、本体装置から送られてきた印
字情報を格納するデータ受信バツフア・メモリ3
01と、文字ドツト・パターン・データを格納す
るCGメモリ302と、各文字サイズの最大公約
数に相当するドツト・エリアに対応する領域を1
印字エリア単位とし文字コードを印字ポジシヨン
に対応する1個または複数個の印字エリア単位に
格納するためのキヤラクタ・コード・ポジシヨ
ン・バツフア303と、各行間の改行ピツチを格
納するための改行ピツチ・メモリ304と、ドツ
ト・パターンを格納するドツト・パターン・バツ
フア204と、プリンタ制御部200と、プリン
タ機構部100とを具備している。プリンタ制御
部200は、データ解析手段220、文字コード
書込手段230、改行ピツチ書込手段240およ
び印字実行手段250を有している。
FIG. 1 is a diagram showing the principle of the present invention. The serial printer of the present invention has a data receiving buffer memory 3 that stores print information sent from the main unit.
01, the CG memory 302 that stores character dot pattern data, and the area corresponding to the dot area corresponding to the greatest common divisor of each character size.
A character code position buffer 303 for storing character codes in one or more print areas corresponding to print positions, and a line feed pitch memory for storing the line feed pitch between each line. 304, a dot pattern buffer 204 for storing dot patterns, a printer control section 200, and a printer mechanism section 100. The printer control section 200 has a data analysis means 220, a character code writing means 230, a line feed pitch writing means 240, and a printing execution means 250.

データ解析手段220は、データ受信バツフ
ア・メモリ301からデータを取り出して解析
し、取り出したデータが文字コードである場合に
は当該文字コードを文字コード書込手段230に
渡して書込みを指示し、取り出したデータが改行
コマンドである場合には改行ピツチ書込手段24
0に改行ピツチを渡して書込みを指示し、取り出
したコマンドが印字実行を指示するコマンドであ
る場合には印字実行手段250に印字実行を指示
する。
The data analysis means 220 retrieves data from the data reception buffer memory 301, analyzes it, and when the retrieved data is a character code, passes the character code to the character code writing means 230 to instruct writing, and retrieves the data. If the data entered is a line feed command, the line feed pitch writing means 24
A line feed pitch is passed to 0 to instruct writing, and if the retrieved command is a command instructing execution of printing, it instructs printing execution means 250 to execute printing.

文字コード書込手段230は、文字コードの書
込みが指示されると、渡された文字コードを印字
ポジシヨンに対応する1個または複数個の印字エ
リア単位に書き込む。
When instructed to write a character code, the character code writing means 230 writes the passed character code into one or more print areas corresponding to the print position.

改行ピツチ書込手段240は、改行ピツチの書
込みが指示されると、改行ピツチを改行ピツチ・
メモリ304に書き込む。
When the line feed pitch writing means 240 is instructed to write the line feed pitch, the line feed pitch writing means 240 changes the line feed pitch to the line feed pitch.
Write to memory 304.

印字実行手段250は、印字実行が指示される
と、 キヤラクタ・コード・ポジシヨン・バツフア
303を列方向にスキヤンし、 スキヤンして得られた印字エリア単位毎の文
字コード及び改良ピツチ・メモリ304の内容
を参照してドツト・パターン・バツフア204
にドツト・パターンを90°変換しながら展開し、 ドツト・パターン・バツフア204のドツ
ト・パターンをプリンタ機構部100に渡して
印字させる と言う操作を行う。
When instructed to perform printing, the printing execution means 250 scans the character code position buffer 303 in the column direction, and stores the character code for each printing area unit obtained by scanning and the contents of the improved pitch memory 304. Dot pattern buffer 204 with reference to
The dot pattern is developed while being converted by 90 degrees, and the dot pattern in the dot pattern buffer 204 is passed to the printer mechanism section 100 for printing.

〔実施例〕〔Example〕

第2図は本発明の電気回路の構成例を示す図で
ある。同図において、100はプリンタ機構部、
101はドツト・マトリツクス方式の印字ヘツ
ド、102はプラテン、103は用紙送りロー
ラ、201はハンマ・ドライバ、202はモー
タ、203はモータ・ドライバ、204は1行分
のドツト・パターン・バツフア、205はプログ
ラム格納ROM、206はデータ格納RAM、2
07はインターフエース、208は本体装置、2
09はCPU、210はデータ・バス、211は
アドレス・バスを示している。
FIG. 2 is a diagram showing an example of the configuration of an electric circuit according to the present invention. In the figure, 100 is a printer mechanism section;
101 is a dot matrix print head, 102 is a platen, 103 is a paper feed roller, 201 is a hammer driver, 202 is a motor, 203 is a motor driver, 204 is a dot pattern buffer for one line, and 205 is a program. Storage ROM, 206 is data storage RAM, 2
07 is the interface, 208 is the main unit, 2
09 is a CPU, 210 is a data bus, and 211 is an address bus.

ハンマ・ドライバ201は印字ヘツド101の
ソレノイドを駆動するものである。モータ202
は1個しか示されていないが、モータ202は用
紙送りモータやキヤリア移動モータ等を表現して
いる。モータ・ドライバ203はこれらのモータ
を駆動するためのものである。モータ・ドライバ
203も一個しか示されていないが、モータ・ド
ライバもモータ毎に存在する。ドツト・パター
ン・バツフア204には一行分のドツト文字パタ
ーンが格納される。90°変換モード印字(例えば
横綴用紙)の場合には、文字を90°変換してドツ
ト・パターン・バツフア204に展開し、通常モ
ードの印字(例えば上綴用紙)の場合には、文字
を正方向に一行分ドツト・パターン・バツフア2
04に展開する。プログラム格納ROM205に
は印字文字パターンが格納されたCGメモリや各
種のプログラムが収納されている。データ格納
RAM206の中には各種のバツフアや作業領域
などが存在する。インターフエース207は本体
装置208との間のデータ転送を制御するもので
ある。CPU209はプログラム格納ROM205
のプログラムを実行する。
Hammer driver 201 drives the solenoid of print head 101. motor 202
Although only one motor 202 is shown, it represents a paper feed motor, a carrier movement motor, etc. A motor driver 203 is for driving these motors. Although only one motor driver 203 is shown, there is also a motor driver for each motor. The dot pattern buffer 204 stores one line of dot character patterns. In the case of 90° conversion mode printing (for example, horizontal binding paper), the characters are converted by 90° and developed in the dot pattern buffer 204, and in the case of normal mode printing (for example, top binding paper), the characters are Dot pattern buffer 2 for one line in the positive direction
Expanded on 04. A program storage ROM 205 stores a CG memory storing printed character patterns and various programs. data storage
There are various buffers, work areas, etc. in the RAM 206. The interface 207 controls data transfer with the main device 208. The CPU 209 is the program storage ROM 205
Run the program.

第3図は本発明で使用されるバツフア及びメモ
リを示す図である。同図において、301はデー
タ受信バツフア・メモリ、302はCGメモリ、
303はキヤラクタ・コード・ポジシヨン・バツ
フア、304は改行ピツチ・メモリをそれぞれ示
している。
FIG. 3 is a diagram showing the buffer and memory used in the present invention. In the figure, 301 is a data reception buffer memory, 302 is a CG memory,
303 indicates a character code position buffer, and 304 indicates a line feed pitch memory.

データ受信バツフア・メモリ301には、本体
装置から送られて来た印字データ(文字コードや
コマンド)が格納される。CGメモリ302は、
文字のドツト・パターンが格納される。ドツト・
パターン・バツフア204には、1行分の文字ド
ツト・パターンが格納される。キヤラクタ・コー
ド・ポジシヨン・バツフア303は1ページ分の
ものである。キヤラクタ・コード・ポジシヨン・
バツフア303は90°変換モードの時に使用され
るものであつて、この中には文字コードが格納さ
れる。改行ピツチ・メモリ304の中には改行ピ
ツチが格納される。
The data reception buffer memory 301 stores print data (character codes and commands) sent from the main unit. The CG memory 302 is
Stores the dot pattern of characters. Dot
The pattern buffer 204 stores one line of character dot patterns. The character code position buffer 303 is for one page. Character code position
The buffer 303 is used in the 90° conversion mode, and stores character codes. A line feed pitch is stored in the line feed pitch memory 304.

通常モードの場合には、データ受信バツフア・
メモリ301から取り出された文字コードに対応
する文字ドツト・パターンがCGメモリ302か
ら取り出され、ドツト・パターン・バツフア20
4に書き込まれる。
In normal mode, the data reception buffer
A character dot pattern corresponding to the character code taken out from the memory 301 is taken out from the CG memory 302 and stored in the dot pattern buffer 20.
Written to 4.

90°変換モードの状態の下では、データ受信バ
ツフア・メモリ301から取り出されたデータが
文字コードの場合には、当該文字コードが印字ポ
ジシヨンに対応付けてキヤラクタ・コード・ポジ
シヨン・バツフア303に書き込まれる。また、
データ受信バツフア・メモリ301から取り出さ
れたデータが改行コマンドである場合には、当該
改行コマンドで指示された改行ピツチが改行ピツ
チ・メモリ304に書き込まれる。印字が指示さ
れると、キヤラクタ・コード・ポジシヨン・バツ
フア303が縦(列)方向にスキヤンされ、スキ
ヤン結果に含まれる文字コードに対応する文字ド
ツト・パターンがCGメモリ302から取り出さ
れ、取り出された文字ドツト・パターンが90°変
換されてドツト・パターン・バツフア204に書
き込まれ、改行ピツチ・メモリ304の改行ピツ
チによつて定まる空白部分が書き込まれ、その後
にスキヤン結果に含まれる次の文字コードに対応
する文字ドツト・パターンがCGメモリ302か
ら取り出され、取り出された文字ドツト・パター
ンが90°変換されてドツト・パターン・バツフア
204に書き込まれる。以下、同様な処理が繰り
返される。
Under the 90° conversion mode, if the data retrieved from the data reception buffer memory 301 is a character code, the character code is written to the character code position buffer 303 in association with the print position. . Also,
If the data retrieved from the data reception buffer memory 301 is a line feed command, the line feed pitch specified by the line feed command is written to the line feed pitch memory 304. When printing is instructed, the character code position buffer 303 is scanned in the vertical (column) direction, and the character dot pattern corresponding to the character code included in the scan result is retrieved from the CG memory 302. The character dot pattern is converted by 90 degrees and written to the dot pattern buffer 204, the blank part determined by the line feed pitch in the line feed pitch memory 304 is written, and then the next character code included in the scan result is written. A corresponding character dot pattern is retrieved from the CG memory 302, and the retrieved character dot pattern is converted by 90° and written into the dot pattern buffer 204. Thereafter, similar processing is repeated.

第4図はキヤラクタ・コード・ポジシヨン・バ
ツフアのデータの例を示す図である。90°変換モ
ードの時に、第1行目の印字データとして「AB
…」と言う文字コード列が本体装置から送られて
来ると、キヤラクタ・コード・ポジシヨン・バツ
フア303の第1行の第1桁及び第2桁に「A」
の文字コードが書き込まれ、第3桁および第4桁
に「B」の文字コードが書き込まれる。90°変換
モードの時に、第2行目の印字データとして「12
…」と言う文字コード列が本体装置から送られて
来ると、キヤラクタ・コード・ポジシヨン・バツ
フア303の第2行の第1桁及び第2桁に「1」
の文字コードが書き込まれ、第3桁およびび第4
桁に「2」の文字コードが書き込まれる。90°変
換モードの時に、第3行目の印字データとして
「品名…」と言う文字コード列が本体装置から送
られて来ると、キヤラクター・コード・ポジシヨ
ン・バツフア303の第3行の第1桁ないし第3
桁の各々に「品」の文字コードが書き込まれ、第
4桁ないし第6桁の各々に「名」の文字コードが
書き込まれる。90°変換モードの時に、第4行目
の印字データとして「氏名…」と言う文字コード
列が本体装置から送られて来ると、キヤラクタ・
コード・ポジシヨン・バツフア303の第4行の
第1桁ないし第3桁の各々に「氏」の文字コード
が書き込まれ、第4桁ないし第6桁の各々に
「名」の文字コードが書き込まれる。
FIG. 4 is a diagram showing an example of character code position buffer data. When in 90° conversion mode, “AB” is used as the first line print data.
When the character code string “…” is sent from the main unit, “A” is placed in the first and second digits of the first line of the character code position buffer 303.
The character code "B" is written in the third and fourth digits. When in 90° conversion mode, “12
When the character code string “…” is sent from the main unit, “1” is placed in the first and second digits of the second line of the character code position buffer 303.
The character code for the 3rd and 4th digits is written.
The character code “2” is written in the digit. When in 90° conversion mode, when a character code string "Product name..." is sent from the main unit as print data on the third line, the first digit of the third line of the character code position buffer 303 is or third
A character code for "product" is written in each digit, and a character code for "name" is written in each of the fourth to sixth digits. When in 90° conversion mode, when the character code string "Name..." is sent from the main unit as the print data on the 4th line, the character
The character code for "Mr." is written in each of the 1st to 3rd digits of the 4th line of the code position buffer 303, and the character code for "First Name" is written in each of the 4th to 6th digits. .

キヤラクタ・コード・ポジシヨン・バツフア3
03に同一の文字コードが行方向に2個連続して
存在することは印字された場合にその文字が2単
位の領域を占めることを表し、同一の文字コード
が行方向に3個連続して存在することは印字され
た場合にその文字が3単位の領域を占めることを
表している。1単位は、例えば24ドツトのプリン
タの場合には12ドツト分の大きさを持つ。英数仮
名文字は2単位の領域を占め、漢字は3単位の領
域を占める。
Character code position buffer 3
03, two consecutive identical character codes in the line direction means that the character occupies two units of area when printed, and three identical character codes in the line direction means that the character occupies 2 units of area when printed. Its existence indicates that the character occupies an area of 3 units when printed. For example, in the case of a 24-dot printer, one unit has the size of 12 dots. Alphanumeric and kana characters occupy two units of space, and kanji characters occupy three units of space.

第5図は改行ピツチ・メモリのデータの例を示
す図である。本体装置は第1行の文字コード列を
送つた後に改行コマンドを送つて来るが、その改
行コマンドが1/6インチを指示するものであれば、
改行ピツチ・メモリ304の第1行に1/6インチ
が書き込まれる。第2行の文字コード列の後の改
行コマンドが2/6インチを指示するものであれば、
改行ピツチ・メモリ304の第2行に2/6インチ
が書き込まれる。第3行の文字コード列の後の改
行コマンドが3/6インチを指示するものであれば、
改行ピツチ・メモリ304の第3行に3/6インチ
が書き込まれる。以下、同様である。
FIG. 5 is a diagram showing an example of data in the line feed pitch memory. The main unit sends a line feed command after sending the character code string for the first line, but if the line feed command specifies 1/6 inch,
1/6 inch is written to the first line of line feed pitch memory 304. If the line feed command after the character code string on the second line indicates 2/6 inch,
2/6 inch is written to the second line of line feed pitch memory 304. If the line feed command after the character code string on the third line indicates 3/6 inch, then
3/6 inch is written to the third line of line feed pitch memory 304. The same applies hereafter.

本体装置から所定のコマンドが送られて来る
と、キヤラクター・コード・ポジシヨン・バツフ
ア303の第1桁および第2桁が列方向にスキヤ
ンされる。第1桁および第2桁のスキヤンにおい
て、最初に「A」の文字コードが表れるので、
「A」の文字パターンがCGメモリ302から読み
出され、90°変換されてドツト・パターン・バツ
フア204に書き込まれる。次に、改行ピツチ・
メモリ304の第1行の改行ピツチで定まる空白
部分がドツト・パターン・バツフア204に書き
込まれる。列方向スキヤンにおいて、「A」の文
字コードの次には「1」の文字コードが表れるの
で、「1」の文字パターンがCGメモリ302から
読み出され、90°変換されてドツト・パターン・
バツフア204に書き込まれる。次に、改行ピツ
チ・メモリ304の第2行の改行ピツチで定まる
空白部分がドツト・パターン・バツフア204に
書き込まれる。列方向スキヤンにおいて、「1」
の文字コードの次に「品」の文字コードが表れ
る。漢字は3単位を占めるので、CGメモリ30
2から「品」の文字パターンの左(先頭)から2/
3の部分が読み出され、90°変換されてドツト・パ
ターン・バツフア204に書き込まれる。次に、
改行ピツチ・メモリ304の第3行の改行ピツチ
で定まる空白部分がドツト・パターン・バツフア
204に書き込まれる。列方向スキヤンにおい
て、「品」の文字コードの次に「氏」の文字コー
ドが表れる。漢字は3単位を占めるので、CGメ
モリ302から「氏」の文字パターンの左から2/
3の部分が読み出され、90°変換されてドツト・パ
ターン・バツフア204に書き込まれる。キヤラ
クター・コード・ポジシヨン・バツフア303の
第1桁および第2桁に存在する文字コードによつ
て定まる文字パターンがドツト・パターン・バツ
フア204に展開された後、ドツト・パターン・
バアフア204のドツト・パターンが印字され
た、印字が終了した後、用紙は24ドツト分だけ送
られる。
When a predetermined command is sent from the main unit, the first and second digits of the character code position buffer 303 are scanned in the column direction. In the scan of the first and second digits, the character code "A" appears first, so
The character pattern "A" is read from the CG memory 302, converted by 90 degrees, and written into the dot pattern buffer 204. Next, line break pitch
A blank area determined by the line feed pitch of the first line of memory 304 is written into dot pattern buffer 204. In the column direction scan, the character code "1" appears next to the character code "A", so the character pattern "1" is read from the CG memory 302, converted by 90 degrees, and converted into a dot pattern.
The data is written to the buffer 204. Next, a blank portion determined by the line feed pitch of the second line of the line feed pitch memory 304 is written into the dot pattern buffer 204. "1" in column direction scan
The character code for "product" appears next to the character code for "product". Kanji occupies 3 units, so CG memory is 30
2 to 2/ from the left (start) of the character pattern for "product"
3 is read out, converted by 90° and written into dot pattern buffer 204. next,
A blank portion determined by the line feed pitch of the third line of the line feed pitch memory 304 is written into the dot pattern buffer 204. In the column direction scan, the character code for ``Mr.'' appears next to the character code for ``品''. Since a kanji character occupies 3 units, from the left of the character pattern "Mr." from the CG memory 302, 2/
3 is read out, converted by 90° and written into dot pattern buffer 204. After the character pattern determined by the character code existing in the first and second digits of the character code position buffer 303 is expanded into the dot pattern buffer 204, the dot pattern buffer 303 is expanded.
After the dot pattern of the buffer 204 is printed, the paper is advanced by 24 dots.

24ドツト分の用紙送りが終了した後、キヤラク
タ・コード・ポジシヨン・バツフア303の第3
桁および第4桁が列方向にスキヤンされる。第3
桁および第4桁のスキヤンにおいて、最初に
「B」の文字コードが表れるので、「B」の文字パ
ターンがCGメモリ302から読み出され、90°変
換されてドツト・パターン・バツフア204に書
き込まれる。次に、改行ピツチ・メモリ304の
第1行の該行ピツチで定まる空白部分がドツト・
パターン・バツフア204に書き込まれる。列方
向スキヤンにおいて、「B」の文字コードの次に
は「2」の文字コードが表れるので、「2」の文
字パターンがCGメモリ302から読み出され、
90°変換されてドツト・パターン・バツフア20
4に書き込まれる。次に、改行ピツチ・メモリ3
04の第2行の改行ピツチで定まる空白部分がド
ヅト・パターン・バツフア204に書き込まれ
る。縦方向スキヤンにおいて、「2」の文字コー
ドの次に「品」の文字コードと「名」の文字コー
ドが表れる。漢字は3単位を占めるので、CGメ
モリ302から「品」の文字パターンの残り1/3
の部分が読み出されると共に「名」の文字パター
ンの先頭から1/3の部分が読み出され、これらを
併せたものが90°変換されてドツト・パターン・
バツフア204に書き込まれる。次に、改行ピツ
チ・メモリ304の第3行の改行ピツチで定まる
空白部分がドツト・パターン・バツフア204に
書き込まれる。列方向スキヤンにおいて、「品」、
「名」の文字コードの次に「氏」、「名」の文字コ
ードが表れる。漢字は3単位を占めるので、CG
メモリ302から「氏」の文字パターン残り1/3
の部分が読み出されると共に「名」の文字パター
ンの先頭から1/3の部分が読み出され、これらを
併せたものが90°変換されてドツト・パターン・
バツフア204に書き込まれる。キヤラクタ・コ
ード・ポジシヨン・バツフア303の第3桁およ
び第4桁に存在する文字コードによつて定まる文
字パターンがドツト・パターン・バツフア204
に展開された後、ドツト・パターン・バツフア2
04のドツト・パターンが印字され、印字が終了
した後、用紙は24ドツト分だけ送られる。以下、
同様な処理が行われる。
After the paper has been fed for 24 dots, the third character code position buffer 303
The digit and fourth digit are scanned in the column direction. Third
In the scan of the digit and the fourth digit, the character code of "B" appears first, so the character pattern of "B" is read from the CG memory 302, converted by 90 degrees, and written to the dot pattern buffer 204. . Next, the blank area determined by the line pitch of the first line of the line feed pitch memory 304 is filled with dots.
written to pattern buffer 204. In the column direction scan, the character code "2" appears next to the character code "B", so the character pattern "2" is read out from the CG memory 302,
90° converted dot pattern buffer 20
Written to 4. Next, line break pitch memory 3
The blank area determined by the line feed pitch of the second line of 04 is written into the dot pattern buffer 204. In the vertical scan, the character code for "product" and the character code for "name" appear next to the character code for "2". Since a kanji character occupies 3 units, the remaining 1/3 of the character pattern for ``品'' is extracted from the CG memory 302.
At the same time, the 1/3 part from the beginning of the character pattern of "first name" is read out, and the combination of these is converted by 90 degrees and becomes a dot pattern.
The data is written to the buffer 204. Next, a blank portion determined by the line feed pitch of the third line of the line feed pitch memory 304 is written into the dot pattern buffer 204. In column direction scan, "product",
After the character code for "first name", the character codes for "surname" and "first name" appear. Kanji occupies 3 units, so CG
1/3 remaining character pattern of “Mr.” from memory 302
At the same time, the 1/3 part from the beginning of the character pattern of "first name" is read out, and the combination of these is converted by 90 degrees and becomes a dot pattern.
The data is written to the buffer 204. The character pattern determined by the character code present in the third and fourth digits of the character code position buffer 303 is stored in the dot pattern buffer 204.
Dot pattern buffer 2
04 dot pattern is printed, and after printing is completed, the paper is advanced by 24 dots. below,
Similar processing is performed.

第6図は90°変換モードの印字処理の流れを示
す図である。
FIG. 6 is a diagram showing the flow of printing processing in the 90° conversion mode.

データ受信か否かを調べ、YESの場合には
の処理を行い、NOの場合にはに戻る。
Check whether data has been received or not. If YES, perform the process; if NO, return to .

受信データの解析を行う。 Analyze received data.

受信データが文字コードの場合には、文字コ
ードをキヤラクタ・コード・ポジシヨン・バツ
フアに書込む。次にの処理を行う。
If the received data is a character code, the character code is written to the character code position buffer. Perform the following processing.

受信データが改行コマンドの場合には改行ピ
ツチを改行ピツチ・メモリに書込む。次にの
処理に戻る。
If the received data is a line feed command, the line feed pitch is written to the line feed pitch memory. Return to next process.

ロウ方向のポインタを更新する処理を行い、
に戻る。
Performs processing to update the pointer in the row direction,
Return to

受信データが用紙排出コマンドの場合にはキ
ヤラクタ・コード・ポジシヨン・バツフアをカ
ラム方向にスキヤンする処理を行う。
If the received data is a paper ejection command, processing is performed to scan the character code, position, and buffer in the column direction.

改行ピツチ・メモリを参照しながら1行分の
ドツト・パターン・バツフアを作成する。
A dot pattern buffer for one line is created while referring to the line feed pitch memory.

1行分の印字を実行する。 Executes printing of one line.

全行印字終了か否かを調べ、YESの場合に
はの処理を行い、NOの場合にはに戻る。
Check whether all lines have been printed, and if YES, perform the process; if NO, return to .

用紙を排出し、に戻る。 Eject the paper and return to.

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

以上の説明から明らかなように、本発明によれ
ば、受信データが文字コードのときには当該文字
を印字する際のポジシヨンが明らかになるような
形で文字コードをキヤラクタ・コード・ポジシヨ
ン・バツフアに書き込み、受信データが改行コマ
ンドのときには改行ピツチを改行ピツチ・メモリ
に書込み、印字動作開始時にキヤラクタ・コー
ド・ポジシヨン・バツフアを列方向にスキヤン
し、スキヤンして得られる文字コードと改行ピツ
チ・メモリとを参照して1行分のドツト・パター
ンをドツト・パターン・バツフアに展開している
ので、1ページ分のドツト・データ・バツフアを
有する従来方式と同等の機能を持つプリンタ装置
を小容量のメモリを追加するだけで実現でいると
言う顕著な効果を奏することが出来る。
As is clear from the above description, according to the present invention, when the received data is a character code, the character code is written in the character code position buffer in such a way that the position when printing the character becomes clear. , when the received data is a line feed command, writes the line feed pitch to the line feed pitch memory, scans the character code position buffer in the column direction at the start of printing operation, and stores the character code obtained by scanning and the line feed pitch memory. Since the dot pattern for one line is expanded into the dot pattern buffer with reference, it is possible to use a printer device with the same function as the conventional method, which has a dot data buffer for one page, with a small memory capacity. It is possible to achieve remarkable effects by simply adding them.

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

第1図は本発明の原理図、第2図は本発明の電
気回路の構成例を示す図、第3図は本発明で使用
されるバツフア及びメモリを示す図、第4図はキ
ヤラクタ・コード・ポジシヨン・バツフアのデー
タの例を示す図、第5図は改行ピツチ・メモリの
データの例を示す図、第6図は90°変換モード時
の印字処理の流れを示す図、第7図はシリアル・
プリンタを用いて左綴用紙に横方向の文字列を印
刷する状態を示す図である。 100……プリンタ機構部、101……印字ヘ
ツド、102……プラテン、103……用紙送り
ローラ、200……プリンタ制御部、201……
ハンマ・ドライバ、202……モータ、203…
…モータ・ドライバ、204……ライン・バツフ
ア、205……プログラム格納ROM、206…
…データ格納RAM、207……インターフエー
ス、208……本体装置、209……CPU、2
10……データ・バス、211……アドレス・バ
ス、301……データ受信バツフア・メモリ、3
02……CGメモリ、303……キヤラクタ・コ
ード・ポジシヨン・バツフア、304……改行ピ
ツチ・メモリ。
Fig. 1 is a diagram showing the principle of the present invention, Fig. 2 is a diagram showing an example of the configuration of an electric circuit of the invention, Fig. 3 is a diagram showing a buffer and memory used in the invention, and Fig. 4 is a character code. - Figure 5 shows an example of position buffer data, Figure 5 shows an example of line feed pitch memory data, Figure 6 shows the flow of printing processing in 90° conversion mode, Figure 7 shows the flow of printing processing in 90° conversion mode. serial·
FIG. 7 is a diagram showing a state in which a character string in the horizontal direction is printed on left-bound paper using a printer. 100... Printer mechanism section, 101... Print head, 102... Platen, 103... Paper feed roller, 200... Printer control section, 201...
Hammer driver, 202...Motor, 203...
...Motor driver, 204...Line buffer, 205...Program storage ROM, 206...
...Data storage RAM, 207...Interface, 208...Main device, 209...CPU, 2
10...Data bus, 211...Address bus, 301...Data reception buffer memory, 3
02...CG memory, 303...Character code position buffer, 304...Line feed pitch memory.

Claims (1)

【特許請求の範囲】 1 本体装置から送られて来た印字情報を格納す
るデータ受信バツフア・メモリ301と、 文字ドツト・パターン・データを格納するCG
メモリ302と、 各文字サイズの最大公約数に相当するドツト・
エリアに対応する領域を1印字エリア単位とし、
文字コードを印字ポジシヨンに対応する1個また
は複数個の印字エリア単位に格納するためのキヤ
ラクタ・コード・ポジシヨン・バツフア303
と、 各行間の改行ピツチを格納するための改行ピツ
チ・メモリ304と、 ドツト・パターンを格納するドツト・パター
ン・バツフア204と、 データ解析手段220、文字コード書込手段2
30、改行ピツチ書込手段240および印字実行
手段250を有するプリンタ制御部200と、 プリンタ機構部100と を具備するシリアル・プリンタであつて、 データ解析手段220は、データ受信バツフ
ア・メモリ301からデータを取り出して解析
し、取り出したデータが文字コードである場合に
は当該文字コードを文字コード書込手段230に
渡して書込みを指示し、取り出したデータが改行
コマンドである場合には改行ピツチ書込手段24
0に改行ピツチを渡して書込みを指示し、取り出
したコマンドが印字実行を指示するコマンドであ
る場合には印字実行手段250に印字実行を指示
するように構成され、 文字コード書込手段230は、文字コードの書
込みを指示されると、渡された文字コードを印字
ポジシヨンに対応する1個または複数個の印字エ
リア単位に書き込むように構成され、 改行ピツチ書込手段240は、改行ピツチの書
込みが指示されると、改行ピツチを改行ピツチ・
メモリ304に書き込むように構成され、 印字実行手段250は、印字実行が指示される
と、 キヤラクタ・コード・ポジシヨン・バツフア
303を列方向にスキヤンし、 スキヤンして得られた印字エリア単位毎の文
字コード及び改行ピツチ・メモリ304の内容
を参照してドツト・パターン・バツフア204
にドツト・パターンを90°変換しながら展開し、 ドツト・パターン・バツフア204のドツ
ト・パターンをプリンタ機構部100に渡して
印字させる。 と言う操作を行うように構成されている ことを特徴とするシリアル・プリンタ。
[Claims] 1. A data reception buffer memory 301 that stores print information sent from the main device, and a CG that stores character dot pattern data.
Memory 302 and dots corresponding to the greatest common divisor of each character size.
The area corresponding to the area is one printing area unit,
Character code position buffer 303 for storing character codes in units of one or more print areas corresponding to print positions
, a line feed pitch memory 304 for storing the line feed pitch between each line, a dot pattern buffer 204 for storing a dot pattern, a data analysis means 220, and a character code writing means 2.
30, a serial printer comprising a printer control section 200 having a line feed pitch writing means 240 and a printing execution means 250, and a printer mechanism section 100, wherein the data analysis means 220 reads data from the data reception buffer memory 301; is extracted and analyzed, and if the extracted data is a character code, the character code is passed to the character code writing means 230 to instruct writing, and if the extracted data is a line feed command, line feed pitch writing is performed. Means 24
The character code writing means 230 is configured to pass a line feed pitch to 0 to instruct writing, and if the retrieved command is a command instructing printing execution, to instruct the printing execution means 250 to execute printing, and the character code writing means 230 When instructed to write a character code, the passed character code is configured to be written in one or more print areas corresponding to the print position, and the line feed pitch writing means 240 is configured to write the passed character code in units of one or more print areas corresponding to the print position. When prompted, change the line break pitch to
When instructed to perform printing, the printing execution means 250 scans the character code position buffer 303 in the column direction, and prints the characters for each printing area unit obtained by scanning. The dot pattern buffer 204 refers to the code and the contents of the line feed pitch memory 304.
The dot pattern is developed while being converted by 90 degrees, and the dot pattern in the dot pattern buffer 204 is passed to the printer mechanism section 100 to be printed. A serial printer configured to perform the following operations.
JP4782388A 1988-02-29 1988-02-29 Control system of serial printer Granted JPH01221256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4782388A JPH01221256A (en) 1988-02-29 1988-02-29 Control system of serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4782388A JPH01221256A (en) 1988-02-29 1988-02-29 Control system of serial printer

Publications (2)

Publication Number Publication Date
JPH01221256A JPH01221256A (en) 1989-09-04
JPH0533909B2 true JPH0533909B2 (en) 1993-05-20

Family

ID=12786073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4782388A Granted JPH01221256A (en) 1988-02-29 1988-02-29 Control system of serial printer

Country Status (1)

Country Link
JP (1) JPH01221256A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5760373A (en) * 1980-09-29 1982-04-12 Canon Kk Character pattern generator
JPS58120038U (en) * 1982-02-08 1983-08-16 ソニー株式会社 printer device
JPS60107374A (en) * 1983-11-16 1985-06-12 Fuji Xerox Co Ltd Printer

Also Published As

Publication number Publication date
JPH01221256A (en) 1989-09-04

Similar Documents

Publication Publication Date Title
JPS5936778B2 (en) data printing device
KR940010883B1 (en) Label printer
KR100227056B1 (en) Serial printer
JPH0533909B2 (en)
JPH0356549B2 (en)
JPH0330977A (en) Page printer control system
JP3165346B2 (en) Serial printer
JPH0616764Y2 (en) Dot matrix printer
JP2984156B2 (en) Recording method and apparatus
JPH06115169A (en) Method and apparatus for printing dot matrix pattern
JP3110879B2 (en) Printing method and apparatus
JPS5924392A (en) Printing system of dot printer
JPH07101113A (en) Printer
JPS63251239A (en) Black face printing method and device
JPH02188823A (en) Print processing method for magnified character
JPH085216B2 (en) Dot printer
JPS61239952A (en) Dot printer
JPH03112669A (en) Shuttle printer
JPH079700A (en) Serial printer
JPS61233557A (en) multifunction printer
JPH0419167A (en) printing device
JPH0356670B2 (en)
JPH01296335A (en) Forms overlay table preparing system
JPS60201960A (en) Printer
JPH04140158A (en) Dot matrix printer