JPH064346B2 - Printer - Google Patents
PrinterInfo
- Publication number
- JPH064346B2 JPH064346B2 JP59252472A JP25247284A JPH064346B2 JP H064346 B2 JPH064346 B2 JP H064346B2 JP 59252472 A JP59252472 A JP 59252472A JP 25247284 A JP25247284 A JP 25247284A JP H064346 B2 JPH064346 B2 JP H064346B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- register
- written
- 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.)
- Expired - Lifetime
Links
- 230000015654 memory Effects 0.000 claims description 80
- 238000003860 storage Methods 0.000 claims description 22
- 238000000034 method Methods 0.000 description 24
- 238000012545 processing Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 13
- 239000013256 coordination polymer Substances 0.000 description 6
- 240000000220 Panda oleosa Species 0.000 description 3
- 235000016496 Panda oleosa Nutrition 0.000 description 3
- 102100022441 Sperm surface protein Sp17 Human genes 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 101000737052 Homo sapiens Coiled-coil domain-containing protein 54 Proteins 0.000 description 1
- 101000824971 Homo sapiens Sperm surface protein Sp17 Proteins 0.000 description 1
- 101001067830 Mus musculus Peptidyl-prolyl cis-trans isomerase A Proteins 0.000 description 1
- 206010034719 Personality change Diseases 0.000 description 1
- 101100438139 Vulpes vulpes CABYR gene Proteins 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004040 coloring Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J5/00—Devices or arrangements for controlling character selection
- B41J5/30—Character or syllable selection controlled by recorded information
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は商品に貼付する値札(ラベル)やあるいはレ
シートに品名、値段等の各種データを印刷する際に用い
て好適なプリンタに関する。The present invention relates to a printer suitable for printing various data such as a product name and price on a price tag (label) attached to a product or a receipt.
商品に貼付するラベルに印刷を行うラベルプリンタや、
購入客に対して発行するレシートに印字を行うレシート
プリンタは、商店やマーケット等において使用され、販
売処理の効率化に貢献している。この場合、ラベルプリ
ンタやレシートプリンタにおける印字フォーマットは、
印字する内容、ラベル(あるいはレシート)の大きさ、
およびユーザの指定するレイアウト等によって異なる。
そこで、従来はユーザ毎に異なる印字制御プログラムを
作成し、この固有のプログラムに基づいて、定められた
印字フォーマットに適合する印刷を行っていた。Label printers that print on the labels attached to products,
Receipt printers that print on receipts issued to purchasers are used in shops and markets, and contribute to the efficiency of sales processing. In this case, the print format for label printers and receipt printers is
Content to print, size of label (or receipt),
And the layout specified by the user.
Therefore, conventionally, a different print control program is created for each user, and printing conforming to a predetermined print format is performed based on this unique program.
しかしながら、ユーザ毎に異なる印字プログラムを作成
するのは極めて能率が悪い。また、ラベル用紙やレシー
ト用紙には種々の形状や大きさがあるから、これらのも
のを切り換えて使用することができれば、極めて便利で
あるが、固定の印字プログラムによる従来のプリンタに
おいては、予め定められた用紙にしか印刷を行うことが
できず、不便であった。However, it is extremely inefficient to create a different printing program for each user. Further, since label paper and receipt paper have various shapes and sizes, it is extremely convenient if these papers can be switched and used, but in a conventional printer with a fixed printing program, it is predetermined. It was inconvenient because it was possible to print only on the specified paper.
この発明は上述した事情に鑑みてなされたもので、ユー
ザ毎に異なる印字プログラムを作成する必要がなく、ま
た、用紙等が変更になった場合でも即座に対応すること
ができるプリンタを提供することを目的としている。The present invention has been made in view of the above circumstances, and provides a printer that does not need to create a different printing program for each user and can immediately respond even when a paper or the like is changed. It is an object.
上記問題点を解決するために、本発明は、品名、値段等
の各印字項目のデータを印字用紙へ印字するプリンタに
おいて、印字データや各種指令を入力する操作手段と、
印字すべき前記各印字項目のデータが記憶されるデータ
レジスタと、前記各印字項目のデータについて、少なく
とも、印字用紙のどの位置を印字の基準とすべきかをX
座標およびY座標で指示する基準位置指定パラメータ
と、この基準位置を中心に0°,90°,180°,2
70°のいずれの回転方向へ印字するのかを指示する印
字方向指定パラメータとが記憶されるリード/ライト可
能なメモリから構成されたフォーマットレジスタと、こ
のフォーマットレジスタ内の各パラメータの設定/変更
を前記操作手段から入力された印字仕様データに基づい
て行うデータ設定/変更手段と、文字パターンが予め記
憶されているキャラクタジェネレータと、前記用紙上の
印字領域に対応する記憶エリアを有し、該記憶エリアが
pビット(pは正の整数)毎に区分されてそれぞれ順番
にアドレスが付されたスクリーンメモリと、前記各印字
項目のデータに対応する文字パターンを前記キャラクタ
ジェネレータから前記印字方向指定パラメータに対応し
た順番でpビット単位で読み出してpビット単位の読み
出し用レジスタに書き込んだ後、該読み出し用レジスタ
に書き込まれたデータを、前記基準位置指定パラメータ
およびビット数pに基づいて演算されたビット数だけY
座標でシフトしてpビット単位の書き込み用レジスタに
書き込み、前記基準位置指定パラメータ、前記印字方向
指定パラメータおよび文字の順番に基づいて、前記書き
込み用レジスタに書き込まれたデータを書き込むべき、
前記スクリーンメモリのアドレスを演算し、前記書き込
み用レジスタに書き込まれたデータを、前記スクリーン
メモリの当該アドレスに書き込む書込制御部と、前記ス
クリーンメモリ内のデータに基づいて印字を行う印字部
とを具備している。In order to solve the above problems, the present invention is a printer that prints data of each print item such as a product name and a price on a print sheet, and an operation unit that inputs print data and various commands,
With respect to the data register in which the data of each print item to be printed is stored and at least which position on the printing paper should be used as the printing reference for the data of each print item, X
Reference position designation parameter designated by coordinates and Y coordinate, and 0 °, 90 °, 180 °, 2 around this reference position
The format register composed of a readable / writable memory that stores a print direction designation parameter for instructing which rotation direction of 70 ° is to be printed, and the setting / changing of each parameter in the format register are described above. Data setting / changing means for carrying out based on the print specification data input from the operating means, a character generator in which character patterns are stored in advance, and a storage area corresponding to the print area on the paper are provided. Is divided into p-bits (p is a positive integer) and sequentially addressed, and a character pattern corresponding to the data of each print item is associated with the print direction specifying parameter from the character generator. Read in p-bit units in the order After elaborate come, the data written to the read register, by the number of bits is calculated based on the reference positional parameters and the number of bits p Y
The data written in the writing register should be written based on the reference position designating parameter, the printing direction designating parameter, and the order of characters by shifting by coordinates and writing to the writing register in units of p bits.
A write control unit that calculates the address of the screen memory and writes the data written in the write register to the address of the screen memory, and a printing unit that performs printing based on the data in the screen memory. It has.
操作手段から入力されたデータに基づいてデータ設定/
変更手段によってフォーマットレジスタ内の各パラメー
タが自由に設定/変更され、かつ、書込制御部が各印字
項目のデータに対応する文字パターンをキャラクタジェ
ネレータから印字方向指定パラメータに対応した順番で
pビット単位で読み出して読み出し用レジスタに書き込
んだ後、この読み出し用レジスタに書き込まれたデータ
を、基準位置指定パラメータおよびビット数pに基づい
て演算されたビット数だけY座標でシフトして書き込み
用レジスタに書き込み、基準位置指定パラメータ、印字
方向指定パラメータおよび文字の順番に基づいて、書き
込み用レジスタに書き込まれたデータを書き込むべき、
スクリーンメモリのアドレスを演算し、書き込み用レジ
スタに書き込まれたデータを、スクリーンメモリの当該
アドレスに書き込み、さらに、印字部が前記スクリーン
メモリ内のデータに基づいて印字を行う。したがって、
印字フォーマットの設定/変更が任意に行なわれる。Data setting / based on the data input from the operating means
Each parameter in the format register is freely set / changed by the changing means, and the writing control unit outputs the character pattern corresponding to the data of each print item from the character generator in the order corresponding to the print direction designation parameter in p-bit units. After reading with and writing to the reading register, the data written in the reading register is shifted in the Y coordinate by the number of bits calculated based on the reference position designation parameter and the number of bits p, and written in the writing register. , The data written in the writing register should be written based on the reference position designation parameter, the print direction designation parameter, and the order of the characters.
The address of the screen memory is calculated, the data written in the write register is written to the address of the screen memory, and the printing unit prints based on the data in the screen memory. Therefore,
The print format can be set / changed arbitrarily.
以下、図面を参照してこの発明の実施例について説明す
る。Embodiments of the present invention will be described below with reference to the drawings.
まず、この発明の一実施例であるプリンタ付電子秤(第
7図参照)における印字処理動作の概要について説明す
る。First, an outline of the print processing operation in the electronic scale with printer (see FIG. 7) which is an embodiment of the present invention will be described.
第2図(イ)、(ロ)に示す1は、この実施例における印字可
能領域を示す図であり、ラベル用紙またはレシート用紙
の所定印字欄に対応するものである。(後述するように
上記プリンタ付電子秤はカセットを交換することでラベ
ル用紙にも、レシート用紙にも印字が行なえるように構
成されている。)すなわち、ラベル用紙の場合は第3図
(イ)に示すエリアE1に対応し、レシート用紙の場合は
同図(ロ)に示すエリアE2(ただし、商品アイテム数は
1とされている)に対応する。この場合、印字可能領域
1の大きさは、エリアE1,E2以上の大きさに設定さ
れている。Reference numeral 1 shown in FIGS. 2 (a) and 2 (b) is a view showing a printable area in this embodiment, and corresponds to a predetermined print column of a label sheet or a receipt sheet. (As will be described later, the electronic scale with printer is configured to print on label paper and receipt paper by replacing the cassette.) That is, in the case of label paper, FIG.
It corresponds to the area E 1 shown in (a), and in the case of receipt paper, it corresponds to the area E 2 shown in (b) of the figure (however, the number of merchandise items is 1). In this case, the size of the printable area 1 is set to be larger than the areas E 1 and E 2 .
そして、この実施例における印字処理は、品名や単価な
どの印字ブロックの位置や向きを、予め所定のパラメー
タによって設定し、以後は設定されたフォーマットに従
って各種印字を行うようにしている。この点について以
下に説明する。第2図(イ)に示すB1は品名印字ブロッ
クであり、左下の点Pがブロックの基準位置となってい
る。そして、この実施例においては、同図に示すよう
に、基準位置Pの座標を任意に指定できるようになって
いる。この場合、座標の原点は印字可能領域1の左下の
点に設定されており、原点座標P0は(1,1)となっ
ている。また、この実施例においては、同図(ロ)に示す
ように、品名印字ブロックの向きを変えられるようにな
っており、基準位置Pを中心に左回りに0°,90°,
180°,270°の各向きが設定し得るようになって
いる。そして、上述した基準位置Pの設定およびブロッ
ク向きの設定は、後述する各種の印字ブロック、すなわ
ち、値段印字ブロック、重量印字ブロック、バーコード
印字ブロック等においても同様になされるようになって
いる。Then, in the printing process in this embodiment, the position and orientation of the print block such as the product name and unit price are set in advance by predetermined parameters, and thereafter various printing is performed according to the set format. This point will be described below. B 1 shown in FIG. 2A is a product name printing block, and the point P at the lower left is the reference position of the block. Further, in this embodiment, as shown in the figure, the coordinates of the reference position P can be arbitrarily designated. In this case, the origin of the coordinates is set at the lower left point of the printable area 1, and the origin coordinate P 0 is (1, 1). Further, in this embodiment, as shown in FIG. 6B, the direction of the product name printing block can be changed, and 0 °, 90 ° counterclockwise around the reference position P,
Each direction of 180 ° and 270 ° can be set. The setting of the reference position P and the setting of the block direction described above are similarly performed in various printing blocks described later, that is, a price printing block, a weight printing block, a bar code printing block and the like.
ただし、レシートの場合には、客が購入したアイテム数
によって印字する商品アイテムデータ数が増減する。こ
のため印字可能領域1上では商品アイテムデータ印字ブ
ロックとして1アイテム分のブロック(例えば第3図
(ロ)におけるエリアE′2)を指定するだけであるが、
実際には、客が購入した商品に対応した数の商品アイテ
ムデータの印字が連続して行なわれる(エリアE′2が
アイテム数に応じて増大する)。このためにレシートの
場合には、印字フォーマットの設定の範囲はラベルに比
べ多少限定される。以上が、印字処理動作の概略であ
る。However, in the case of a receipt, the number of product item data to be printed increases or decreases depending on the number of items purchased by the customer. Therefore, in the printable area 1, a block for one item (for example, FIG.
Although only specifies the area E '2) in (b),
Actually, the product item data of the number corresponding to the product purchased by the customer is continuously printed (the area E ′ 2 increases according to the number of items). For this reason, in the case of a receipt, the setting range of the print format is somewhat limited as compared with the label. The above is the outline of the print processing operation.
次に、この実施例の構成について説明する。Next, the configuration of this embodiment will be described.
第1図はこの実施例の電気的構成を示すブロック図であ
り、図に示す3は装置各部を制御する16ビットのCP
U(中央処理装置)である。4はCPU3で用いられる
プログラムが記憶されたROM、5は各種処理データ等
が一時記憶されるRAM、6は漢字、カナ、数値などの
キャラクタパターンが記憶されているキャラクタジェネ
レータ(以下CGという)である。7はフォーマットレ
ジスタであり、各印字ブロックの基準位置PのX、Y座
標や、印字ブロックの向きを示すパラメータが記憶され
るレジスタである。第4図はフォーマットレジスタ7の
構成を示す概念図であり、図示のように各項目毎に別個
の記憶エリアFe1〜Fenを有している。そして、各
エリアFe1〜Fenの欄X,Y,M,Aには、各各X
座標、Y座標、文字の大きさ、および印字ブロックの向
きの各データが記憶されるようになっている。この場
合、文字の大きさを指示するM欄には“0”または
“1”のデータが書き込まれ、“0”の場合はCG6内
のキャラクタパターンと同一のドット数の印字が行なわ
れ、“1”の場合はCG6内のキャラクタパターンのド
ット数を縦横ともに2倍にしたパターンの印字が行なわ
れる。また、印字ブロックの向きを指示するA欄には
「0」,「1」,「2」,「3」のいずれかの値が書き
込まれ、各々0°,90°,180°,270°の向き
を指示する。次に、第1図に示す8はスクリーンメモリ
であり、このスクリーンメモリ8の記憶エリアが前述し
た印字可能領域1に対応している。第5図は、スクリー
ンメモリ8の構成を示す概念図である。第5図(a)はス
クリーンメモリ8をアドレス空間によって表現した図で
あり、スクリーンメモリ8の記憶エリアは、1バイト
(=8ビット)毎に区分され、1番地から8192番地
までアドレスが付されている。また、第5図(b)はスク
リーンメモリ8を印字可能領域1に1対1に対応させて
表現した図であり、このように表現した場合、スクリー
ンメモリ8はX方向のビット数が128ビット、Y方向
のビット数が512ビットの合計65536ビット(=81
92バイト)の記憶エリアから構成されることになる。
したがって、X座標の指定は「1」〜「128」の範囲
で可能でありY座標の指定は「1」〜「512」の範囲
で可能となっている。なお、この8192バイトの記憶
エリアは第5図に示されるように1バイト(=8ビッ
ト)毎に区分されそれぞれ図の順番にアドレスが付さ
れ、このアドレスにより、CPU3によってアクセスさ
れるようになっている。FIG. 1 is a block diagram showing an electrical configuration of this embodiment, and reference numeral 3 shown in the drawing is a 16-bit CP for controlling each part of the apparatus.
U (central processing unit). Reference numeral 4 is a ROM in which programs used in the CPU 3 are stored, 5 is a RAM in which various kinds of processing data are temporarily stored, 6 is a character generator (hereinafter referred to as CG) in which character patterns such as kanji, kana, and numerical values are stored. is there. A format register 7 is a register that stores X and Y coordinates of the reference position P of each print block and parameters indicating the orientation of the print block. FIG. 4 is a conceptual diagram showing the structure of the format register 7, and as shown in the figure, each item has separate storage areas Fe1 to Fen. Then, in each of the columns X, Y, M, and A of each area Fe1 to Fen, each X
Each data of the coordinate, the Y coordinate, the size of the character, and the direction of the print block is stored. In this case, the data of "0" or "1" is written in the M column for instructing the size of the character, and in the case of "0", the same number of dots as the character pattern in the CG6 is printed, In the case of 1 ", the number of dots of the character pattern in the CG 6 is doubled in both the vertical and horizontal directions to print the pattern. Further, any value of “0”, “1”, “2”, and “3” is written in the A column for instructing the direction of the print block, and the values of 0 °, 90 °, 180 °, and 270 ° are written respectively. Indicate the direction. Next, 8 shown in FIG. 1 is a screen memory, and the storage area of this screen memory 8 corresponds to the printable area 1 described above. FIG. 5 is a conceptual diagram showing the configuration of the screen memory 8. FIG. 5 (a) is a diagram in which the screen memory 8 is represented by an address space. The storage area of the screen memory 8 is divided into 1-byte (= 8 bits) and addresses are assigned from 1 to 8192. ing. Further, FIG. 5 (b) is a diagram in which the screen memory 8 is expressed in a one-to-one correspondence with the printable area 1, and when expressed in this way, the screen memory 8 has a bit number in the X direction of 128 bits. , The total number of bits in the Y direction is 512, totaling 65536 bits (= 81
(92 bytes) storage area.
Therefore, the X coordinate can be specified in the range of "1" to "128", and the Y coordinate can be specified in the range of "1" to "512". The 8192-byte storage area is divided into 1-byte (= 8 bits) areas as shown in FIG. 5, and addresses are assigned in the order shown in the figure, and the address is accessed by the CPU 3. ing.
次に、9はデータレジスタであり、第6図に示すように
値段データ、値段単位、重量データ等の各項目毎の記憶
エリアDe1〜Denから成っており、各記憶エリアに
値段や重量や単位を示すコード等が記憶される。次に、
第1図に示す10はプリンタ部であり、用紙を駆動する
パルスモータ12,128ドット分(スクリーンメモリ
8のX方向に対応)の発熱抵抗体r1〜rnから成るサ
ーマルヘッド11、サーマルヘッド11を駆動する駆動
回路13、印字データをシフト記憶するシフトレジスタ
14およびCPU3とデータの授受を行うプリンタイン
ターフェイス15からなっている。この場合、プリンタ
インターフェイス15は、CPU3の制御データに基づ
き、パルスモータ12駆動用の駆動パルスMCP、駆動
回路13への印字パルスDP、シフトレジスタ14への
クロックパルスCPおよび印字データDATAを出力す
る。次に、17は操作部であり、第7図に示すように、
多数のキー(テンキーやファンクションキー等)から成
っており、CPU3に対し各種のデータ入力を行うよう
になっている。18は表示部であり、値段、値段単位、
重量等を種々表示する表示器18a〜18dから成って
いる。第1図に示す19は、ロードセル(図示略)や計
量皿19a(第7図参照)から成っている計量部であ
り、CPU3に対し、重量データを供給する。また、第
7図に示す20は、給紙部であり、第1図に示すプリン
タ部10に対し、用紙を供給するものである。この給紙
部20は、着脱自在なカセットタイプになっており、レ
シート用紙を収納しているものと、ラベル用紙を収納し
ているものの2種が用意されており、いずれか一方が適
宜セットされるようになっている。そして、ラベル用の
カセットの所定位置には、用紙種類自動判別用の透孔が
設けられており、この透孔があるか否かによって、上記
プリンタの印字制御モードがラベル用あるいはレシート
用に自動的に切換えられるように構成されている。Next, reference numeral 9 is a data register, which is composed of storage areas De1 to Den for each item such as price data, price unit, weight data, etc., as shown in FIG. A code or the like indicating is stored. next,
First 10 shown in FIG denotes a printer unit, a pulse motor 12,128 dots heating resistor r 1 thermal head 11 consisting ~r n (corresponding to the X direction of the screen memory 8) for driving the paper, the thermal head A drive circuit 13 for driving 11, a shift register 14 for shifting and storing print data, and a printer interface 15 for exchanging data with the CPU 3. In this case, the printer interface 15 outputs the drive pulse MCP for driving the pulse motor 12, the print pulse DP to the drive circuit 13, the clock pulse CP to the shift register 14, and the print data DATA based on the control data of the CPU 3. Next, 17 is an operation part, and as shown in FIG.
It is composed of a large number of keys (numerical keys, function keys, etc.) and is used to input various data to the CPU 3. 18 is a display unit, which is a price, a price unit,
It is composed of indicators 18a to 18d for displaying various weights and the like. Reference numeral 19 shown in FIG. 1 is a weighing unit including a load cell (not shown) and a weighing pan 19a (see FIG. 7), and supplies weight data to the CPU 3. Further, reference numeral 20 shown in FIG. 7 denotes a paper feeding unit, which supplies paper to the printer unit 10 shown in FIG. The paper feeding unit 20 is of a detachable cassette type, and two types are prepared, one for storing receipt paper and the other for storing label paper, and either one is appropriately set. It is like this. Further, at a predetermined position of the label cassette, a through hole for automatic paper type determination is provided. Depending on whether or not there is this through hole, the print control mode of the printer is automatically set for the label or the receipt. It is configured to be selectively switched.
次に、上述した構成によるこの実施例の動作を説明す
る。Next, the operation of this embodiment having the above configuration will be described.
まず、上記プリンタは、使用する前に、ユーザの希望す
る印字仕様に合せて、フォーマットレジスタ7へ各パラ
メータの書き込みが行なわれる。この書き込みは、通常
は製品の出荷前の調整時にメーカ側の人間によって操作
部17を操作することによって行なわれるが、印字フォ
ーマットの一部変更などの場合には、ユーザ側の操作者
によって行なうことも可能である。この場合の操作は、
まず、所定のキースイッチ等をONにし、フォーマット
データの書き込みルーチンを起動させる。これにより、
フォーマットレジスタ7内の値段データ用記憶エリアF
e1がアクセスされ、この記憶エリアFe1の書き込み
待機状態となる。そして、例えば、記憶エリアFe1の
X,Y,M,A欄に各々(64),(256),(0),
(1)なるデータの入力を行おうとする場合は、操作部1
7のテンキーに対し以下に述べる操作を行う。すなわ
ち、 なる順で、キーを押してゆく。この操作が終ると、設定
した事項が表示部18に表示され、次いで、入力終了を
指示する所定のファンクションキーが押されると、表示
部18の表示が消えるとともに、値段単位用の記憶エリ
アFe2がアクセスされ、同エリアの書き込み待機状態
となる。以下、順次同様の操作を行い、フォーマットレ
ジスタ7の書き込みを行う。First, before using the printer, each parameter is written in the format register 7 in accordance with the printing specifications desired by the user. This writing is usually performed by manipulating the operation unit 17 by a person on the maker side during adjustment before shipment of the product, but in the case of a partial change in the print format, it is performed by the operator on the user side. Is also possible. The operation in this case is
First, a predetermined key switch or the like is turned on to start a format data write routine. This allows
Price data storage area F in the format register 7
e1 is accessed, and a write standby state for this storage area Fe1 is set. Then, for example, in the X, Y, M, and A columns of the storage area Fe1, (64), (256), (0),
If you want to input the data (1),
The following operation is performed on the ten-key pad. That is, Press the keys in the order shown. When this operation ends, the set items are displayed on the display unit 18, and when a predetermined function key for instructing the end of input is pressed, the display on the display unit 18 disappears and the storage area Fe2 for the price unit is displayed. Access is made, and a write standby state for the same area is set. Thereafter, the same operation is sequentially performed to write the format register 7.
この場合、X座標データとして「0」を設定した時には
このデータの印字は行なわれない。なお、イニシャライ
ズされた時には各フォーマットレジスタ7の各エリアF
e1〜Fenにはそれぞれ「0」が格納された状態にな
っており、したがって書き込みを行なわないフォーマッ
トレジスタエリアに対応するデータについては、印字が
行なわれない。そして、このフォーマットレジスタ7は
不揮発性のRAMで構成されており、一旦書き込まれた
データは、変更されるかあるいはイニシャライズされる
までは電源が切断された場合でもその内容を保持する構
成になっている。In this case, when "0" is set as the X coordinate data, this data is not printed. When initialized, each area F of each format register 7
Since "0" is stored in each of e1 to Fen, the data corresponding to the format register area in which writing is not performed is not printed. The format register 7 is composed of a non-volatile RAM, and once written data is configured to retain its contents even when the power is turned off until it is changed or initialized. There is.
以上のようにしてフォーマットレジスタ7のそれぞれの
エリアFe1〜Fenの各欄に所定のパラメータが書き
込まれる。そして、この状態で、印字操作(通常は操作
部17の印字キーの押下により行なわれる)がなされる
と、CPU3はROM4に設定された印字制御プログラ
ムに従い、まずフォーマットレジスタ7のX座標データ
が「0」か否か、すなわち印字するか否かを判断する。
そしてX座標データが「0」でない場合には、このフォ
ーマットレジスタ7に対応するデータレジスタ9の内容
(例えばフォーマットレジスタ7がエリアFe1の場合
にはデータレジスタ9のエリアDe1の内容)を読み出
し、この内容に対応するパターンデータをキャラクジェ
ネレータ6より読み出して、フォーマットレジスタ7の
各パラメータデータX,Y,M,Aの指示に従い、スク
リーンメモリ8上に上記パターンデータの書き込みを順
次行なっていく。この動作は、フォーマットレジスタ7
のすべてのエリアFe1〜Fenについて行なわれ、エ
リアFenに対応するデータレジスタ9のエリアDen
の内容に対応するパターンデータのスクリーンメモリ8
への書き込みが終了すると、CPU3はスクリーンメモ
リ8よりサーマルヘッド11の1ライン分のデータ、す
なわち、スクリーンメモリ8のX方向の128ビット分
のデータをプリンタインターフェイス15を介してシフ
トレジスタ14へ供給する。そして、シフトレジスタ1
4への1ライン分のデータのセットが終了後、サーマル
ヘッド11を駆動して1ライン分のデータの印字を行な
わせた後、パルスモータ12を駆動して用紙を所定量フ
ィードさせる。この動作を順次繰り返すことにより、ス
クリーンメモリ8の内容をサーマルヘッド11により感
熱紙上に印字する。As described above, the predetermined parameters are written in the respective columns of the areas Fe1 to Fen of the format register 7. When a printing operation (usually performed by pressing the print key of the operation unit 17) is performed in this state, the CPU 3 first sets the X coordinate data of the format register 7 to "in accordance with the print control program set in the ROM 4. It is determined whether it is "0", that is, whether or not to print.
If the X coordinate data is not "0", the contents of the data register 9 corresponding to the format register 7 (for example, the contents of the area De1 of the data register 9 when the format register 7 is the area Fe1) are read, The pattern data corresponding to the contents is read from the character generator 6, and the pattern data is sequentially written on the screen memory 8 in accordance with the instruction of each parameter data X, Y, M, A of the format register 7. This operation is performed by the format register 7
Of all areas Fe1 to Fen of the data register 9 and the area Den of the data register 9 corresponding to the area Fen.
Screen memory 8 of pattern data corresponding to the contents of
When the writing to the memory is completed, the CPU 3 supplies the data for one line of the thermal head 11 from the screen memory 8, that is, the data for 128 bits in the X direction of the screen memory 8 to the shift register 14 via the printer interface 15. . And the shift register 1
After the setting of the data for one line to 4 is completed, the thermal head 11 is driven to print the data for one line, and then the pulse motor 12 is driven to feed the paper by a predetermined amount. By repeating this operation in sequence, the contents of the screen memory 8 are printed on the thermal paper by the thermal head 11.
ただし、レシートの場合には客が購入した商品アイテム
数により、印字するアイテムデータ数が異なるので、こ
のアイテムデータの印字部分の処理は、上記処理と若干
異なる。However, in the case of a receipt, the number of item data items to be printed differs depending on the number of product items purchased by the customer, so the process of the item data printing portion is slightly different from the above process.
以上が実施例装置における印字制御の概略であるが、以
下にパターンデータのスクリーンメモリ8への書き込み
処理についてより詳細に説明する。The above is the outline of the print control in the apparatus of the embodiment, but the process of writing the pattern data into the screen memory 8 will be described in more detail below.
なお、この実施例においては、品名や単価などの印字ブ
ロックの基準位置Pの座標を操作者が任意にビット単位
で指定できるように構成されている。但し、CG6およ
びスクリーンメモリ8には、上述したように、1バイト
(=8ビット)毎に区分され、順番にアドレスが付され
ており、CPU3は、このアドレスによってしかCG6
やスクリーンメモリ8に記憶されているデータをアクセ
スできない。したがって、スクリーンメモリ8の任意の
位置にしかも文字を回転させてデータを書き込むには、
後述するビット操作が必要となる。In this embodiment, the operator can arbitrarily specify the coordinates of the reference position P of the print block such as the product name and unit price in bit units. However, as described above, the CG 6 and the screen memory 8 are divided into 1-byte (= 8 bits) and are sequentially assigned addresses, and the CPU 3 uses the CG 6 and the screen memory 8 only with these addresses.
And the data stored in the screen memory 8 cannot be accessed. Therefore, in order to write data at any position of the screen memory 8 and by rotating the character,
Bit manipulation described later is required.
ところで、パターンデータのスクリーンメモリ8への書
き込み処理は、CG6内のキャラクタパターンを拡大す
る場合(M=1のとき)と、拡大しない場合(M=0の
とき)とがあり、CPU3はフォーマットレジスタ7の
記憶エリアFe1〜Fen(第4図参照)のMの値によ
っていずれの処理を行うかを決定する。By the way, the writing process of the pattern data to the screen memory 8 may be performed when the character pattern in the CG 6 is enlarged (when M = 1) or not (when M = 0). Which processing is to be performed is determined by the value of M in the storage areas Fe1 to Fen (see FIG. 4) of No. 7.
始めに、拡大しない場合、すなわちM=0の場合につい
て第8図(イ)に示すフローチャートを参照して説明す
る。まず、書き込みを行う項目に対応する記憶フォーマ
ットレジスタ7の記憶エリアFe1〜Fenをアクセス
し、アクセスした記憶エリアのX,Yデータの値を読み
取り、この値からスクリーンメモリ8上の書き込み開始
アドレスを決定する(ステップSP1)。なお、以下の
説明においては、書き込みを行う項目が「品名」である
と仮定する。次に、ステップSP2に移ると、データレ
ジスタ9内の品名用記憶エリアDenをアクセスし、同
エリア内の品名を指示するデータ(カナコードあるいは
漢字コード等)を読み取る。そして、ステップSP3に
移ると、読み取った品名データに対応するキャラクタパ
ターンをCG6から読み出す。なお、CG6から1つの
キャラクタパターンを一旦読み出した後、後述する処理
を経てスクリーンメモリ8の任意の位置に書き込む段階
においては、第5図(b)に示すスクリーンメモリ8の任
意の座標を書込開始座標(基準位置Pではない)とした
場合、キャラクタパターンの回転の如何に関わらず、ま
ず、その書込開始座標から上方へ16ビット書き込み、
次に、書込開始座標の1ビット右隣の座標から上方へ1
6ビット書き込み、・・・、最後に、書込開始座標の1
5ビット右隣の座標から上方へ16ビット書き込んでい
く。したがって、CG6から1つのキャラクタパターン
を読み出す読み出し処理は、印字ブロックの向きを指定
するAの値によって異り、以下に各向き毎の処理動作を
説明する。First, the case of not enlarging, that is, the case of M = 0 will be described with reference to the flowchart shown in FIG. First, the storage areas Fe1 to Fen of the storage format register 7 corresponding to the item to be written are accessed, the X and Y data values of the accessed storage area are read, and the write start address on the screen memory 8 is determined from these values. Yes (step SP1). In the following description, it is assumed that the item to be written is the “product name”. Next, in step SP2, the product name storage area Den in the data register 9 is accessed to read the data (Kana code or Kanji code) indicating the product name in the area. Then, in step SP3, the character pattern corresponding to the read product name data is read from the CG 6. After reading one character pattern from the CG 6 once and then writing it at an arbitrary position in the screen memory 8 through the processing described later, the arbitrary coordinates in the screen memory 8 shown in FIG. 5 (b) are written. If the start coordinate (not the reference position P) is set, 16 bits are written upward from the write start coordinate regardless of the rotation of the character pattern.
Next, 1 bit upward from the coordinate to the right of the write start coordinate by 1 bit.
6-bit writing, ..., Finally, write start coordinate is 1
16 bits are written upward from the coordinate on the right side of 5 bits. Therefore, the reading process for reading out one character pattern from the CG 6 differs depending on the value of A that specifies the direction of the print block, and the processing operation for each direction will be described below.
A=0(0°)の場合。When A = 0 (0 °).
まず、CG6内のキャラクタパターンの一例を示すと第
9図(イ)、(ロ)に示すようになっており、CG6のアドレ
スとキャラクタパターンのドット(P00〜P317)
との関係は、同図(ハ)に示すようになっている。そし
て、A=0の場合は、第10図(イ)に示すような読み出
しを行なう。最初の処理で、読み出し用レジスタRA
(8ビット)に、第9図(ハ)のビット番号P00,・・
・,P04,・・・,P07の計8ビット(1バイト)
のドットデータを書き込み、読み出し用レジスタRB
(8ビット)に、ビット番号P10,・・・,P14,
・・・,P17の計8ビットのドットデータを書き込
み、後述するステップSP7の処理でアドレスが更新さ
れた次の処理で、読み出し用レジスタRAに、ビット番
号P20,・・・,P24,・・・,P27の計8ビッ
トのドットデータを書き込み、読み出し用レジスタRB
に、ビット番号P30,・・・,P34,・・・,P
37の計8ビットのドットデータを書き込み、というよ
うに、スクリーンメモリ8への書き込み順と同じ順番で
書き込んでいく(第10図(イ)参照)。なお、読み出し
用レジスタRA,RBが各々8ビットであるのは、CP
U3が16ビットのCPUであり、1回に1ワード(=
2バイト)同時にデータを処理できるからである。First, an example of the character pattern in the CG 6 is shown in FIGS. 9A and 9B, and the address of the CG 6 and the dot of the character pattern (P 00 to P 317 ).
The relationship with is as shown in FIG. Then, when A = 0, the reading is performed as shown in FIG. In the first process, the read register RA
(8 bits), the bit number P 00 of FIG.
., P 04 , ..., P 07 , 8 bits in total (1 byte)
Register RB for writing and reading the dot data of
(8 bits), the bit numbers P 10 , ..., P 14 ,
... writes the eight-bit dot data P 17, at the next processing address is updated in the processing in step SP7 described below, to the read register RA, bit number P 20, ..., P 24 , ..., P 27, a total of 8 bits of dot data is written and read register RB
, Bit numbers P 30 , ..., P 34 , ..., P
A total of 37 8-bit dot data is written, and so on, in the same order as the writing order to the screen memory 8 (see FIG. 10 (a)). It is to be noted that the read registers RA and RB each have 8 bits because the CP
U3 is a 16-bit CPU, one word at a time (=
This is because data can be processed simultaneously (2 bytes).
A=1(90°)の場合 最初の処理で、読み出し用レジスタRAに、第9図(ハ)
のビット番号P17,P37,・・・,P157の計8
ビットのドットデータを書き込み、読み出し用レジスタ
RBに、ビット番号P177,P197,・・・,P
317の計8ビットのドットデータを書き込み、後述す
るステップSP7の処理でアドレスが更新された次の処
理で、読み出し用レジスタRAに、ビット番号P16,
P26,・・・,P156の計8ビットのドットデータ
を書き込み、読み出し用レジスタRBに、ビット番号P
116,P196,・・・,P316の計8ビットのド
ットデータを書き込み、というように、スクリーンメモ
リ8への書き込み順と右向きに直交(90°)する順番
で書き込んでいく(第10図(ロ)参照)。In the case of A = 1 (90 °) In the first process, the reading register RA is set in FIG.
Bit numbers P 17 , P 37 , ..., P 157 in total of 8
Bit dot data is written, and bit numbers P 177 , P 197 , ..., P are written in the read register RB.
In the next process in which a total of 8 bits of dot data of 317 are written and the address is updated in the process of step SP7 described later, the bit number P 16 ,
A total of 8-bit dot data of P 26 , ..., P 156 is written, and the bit number P is written in the read register RB.
116 , P 196 , ..., P 316 , in total, 8 bits of dot data are written, and so on, in the order of writing to the screen memory 8 and rightward (90 °). (See (b)).
A=2(180°)の場合 最初の処理で、読み出し用レジスタRAに、第9図(ハ)
のビット番号P317,P316,・・・,P310の
計8ビットのドットデータを書き込み、読み出し用レジ
スタRBに、ビット番号P307,P306,・・・,
P300の計8ビットのドットデータを書き込み、後述
するステップSP7の処理でアドレスが更新された次の
処理で、読み出し用レジスタRAに、ビット番号P
297,P296,・・・,P290の計8ビットのド
ットデータを書き込み、読み出し用レジスタRBに、ビ
ット番号P287,P286,・・・,P280の計8
ビットのドットデータを書き込み、というように、スク
リーンメモリ8への書き込み順と点対称(180°)と
なる順番で書き込んでいく(第10図(ハ)参照)。In the case of A = 2 (180 °) In the first process, the reading register RA is set in FIG.
Bit number P 317, P 316, ···, write a total of 8 bits of the dot data of P 310, the read register RB, bit number P 307, P 306, ···,
Writing a total of 8 bits of the dot data of P 300, in the next process the address is updated in the processing in step SP7 described below, to the read register RA, bit number P
297, P 296, ···, writing the dot data of a total of 8 bits of P 290, to the read register RB, bit number P 287, P 286, ···, a total of eight of the P 280
The bit dot data is written, and so on, which is point symmetrical (180 °) with the order of writing to the screen memory 8 (see FIG. 10C).
A=3(270°)の場合 最初の処理で、読み出し用レジスタRAに、第9図(ハ)
のビット番号P300,P280,・・・,P160の
計8ビットのドットデータを書き込み、読み出し用レジ
スタRBに、ビット番号P140,P120,・・・,
P00の計8ビットのドットデータを書き込み、後述す
るステップSP7の処理でアドレスが更新された次の処
理で、読み出し用レジスタRAに、ビット番号
P301,P281,・・・,P161の計8ビットの
ドットデータを書き込み、読み出し用レジスタRBに、
ビット番号P141,P121,・・・,P01の計8
ビットのドットデータを書き込み、というように、スク
リーンメモリ8への書き込み順と左向きに直交(270
°)する順番で書き込んでいく(第10図(ニ)参照)。When A = 3 (270 °) In the first process, the reading register RA is set in FIG.
Bit number P 300, P 280, ···, writing dot data of eight bits in total P 160, the read register RB, bit number P 140, P 120, ···,
Writing a total of 8 bits of the dot data of the P 00, at the next processing address is updated in the processing in step SP7 described below, to the read register RA, bit number P 301, P 281, · · ·, the P 161 Write a total of 8 bits of dot data to the read register RB,
A total of 8 bit numbers P 141 , P 121 , ..., P 01
Bit dot data is written, and the writing order to the screen memory 8 is orthogonal to the left (270
Write in the order of () (see Fig. 10 (d)).
ところで、既に説明したように、CG6からのキャラク
タパターンの読み出しは、1バイト単位で行なわれるた
め、上記以外は、1回の読み出しおよび書き込みの処
理で、上述した第10図(ロ)〜(ニ)の右側に示すような読
み出し用レジスタRA,RBへのドットデータの書き込
みが行えない。By the way, as already described, the reading of the character pattern from the CG 6 is performed in 1-byte units. Therefore, except for the above, one reading and writing process is performed, and the above-described FIG. Dot data cannot be written to the read registers RA and RB as shown on the right side of FIG.
そこで、この実施例においては、読み出し用レジスタR
A,RB以外に8ビットのレジスタを用い、このレジス
タにCG6の1つのアドレスから読み出された8ビット
のドットデータを一旦書き込んだ後、以下に示すビット
操作を経て第10図(ロ)〜(ニ)の右側に示すように読み出
し用レジスタRA,RBへドットデータを書き込んでい
る。Therefore, in this embodiment, the read register R
In addition to A and RB, an 8-bit register is used, and 8-bit dot data read from one address of CG6 is once written to this register, and then the bit operation shown below is performed through the following bit operation. As shown on the right side of (d), dot data is written in the read registers RA and RB.
例えば、第9図(ハ)のビット番号P17のドットデータ
を、第10図(ロ)に示すように、読み出し用レジスタR
Aの左端(LSB)に書き込むには、まず、第9図(ハ)
のアドレスA1の8ビット分のドットデータを読み出し
て第16図(イ)に示すように、上記レジスタに一旦書き
込む。この場合、ビット番号P17のドットデータは、
レジスタの右端(MSB)にあるから、その他の部分を
マスク(0を書き込む)した後(第16図(ロ)参照)、
レジスタ内部のデータを6ビット分LSB方向にシフト
する(第16図(ハ)参照)。そして、読み出し用レジス
タRAの記憶内容とレジスタの記憶内容との論理和をと
ったものを読み出し用レジスタRAに書き込む。For example, the dot data of bit number P 17 in FIG.
To write to the left end (LSB) of A, first, see FIG.
The 8-bit dot data of the address A1 is read and once written in the register as shown in FIG. In this case, the dot data of bit number P 17 is
Since it is at the right end (MSB) of the register, after masking (writing 0) the other parts (see Fig. 16 (b)),
The data in the register is shifted by 6 bits in the LSB direction (see FIG. 16C). Then, the logical sum of the storage content of the read register RA and the storage content of the register is written to the read register RA.
以上説明したビット操作を繰り返すことにより、第10
図(ロ)〜(ニ)の左側に示すように、読み出し用レジスタR
A,RBにデータが書き込まれるのである。By repeating the bit operation described above,
As shown on the left side of (b) to (d), the read register R
Data is written in A and RB.
ただし、第10図はキャラクタパターンが16×16ビ
ットで構成される漢字の場合を示しており、キャラクタ
パターンが8×16ビットで構成されるカナやアルファ
ベットの場合はビット番号が多少異なる。後述する第1
3図の場合も同様である。However, FIG. 10 shows the case of a Chinese character whose character pattern is composed of 16 × 16 bits, and the bit numbers are slightly different when the character pattern is a kana or an alphabet composed of 8 × 16 bits. First described later
The same applies to the case of FIG.
次に、ステップSP4の処理について説明する。Next, the processing of step SP4 will be described.
このステップSP4においては、読みだし用レジスタR
A,RBに書き込まれたデータを、操作者によって指定
された基準位置PのY座標データによって決定される所
定のビット数だけ右方向にシフトして書き込み用レジス
タR1,R2,R3に書き込む。これは、上述したステ
ップSP3の処理においては、キャラクタパターンの回
転のみを考慮し、基準位置Pの座標については一切考慮
していないということと、基準位置Pの座標の指定はビ
ット単位で行われるが、スクリーンメモリ8へのパター
ンデータの書き込みはバイト単位で行われることによ
る。なお、X座標データについては、後述するステップ
SP5の処理において考慮される。In this step SP4, the read register R
The data written in A and RB are shifted rightward by a predetermined number of bits determined by the Y coordinate data of the reference position P designated by the operator, and written in the write registers R1, R2 and R3. This is because, in the above-described processing of step SP3, only the rotation of the character pattern is considered and the coordinates of the reference position P are not considered at all, and the coordinates of the reference position P are specified in bit units. However, the writing of the pattern data to the screen memory 8 is performed in byte units. The X coordinate data is considered in the process of step SP5 described later.
まず、Y座標データをY0としたとき、(Y0−1)を
8で割って商Sと余りを求める。被除数を(Y0−1)
としたのは、原点座標P0を(1,1)としたからであ
り、除数を「8」としたのは、スクリーンメモリ8の記
憶エリアのY方向が1バイト(=8ビット)毎に区分さ
れてアドレスが付されているからである。商Sは、スク
リーンメモリ8のY方向に64個並んでいるメモリの下
から数えて何番目のメモリに書き込むかを表し、余り
は、そのメモリの下から数えて何ビット目までデータを
シフトして書き込むかを表している。First, when the Y coordinate data is Y 0 , (Y 0 -1) is divided by 8 to obtain the quotient S and the remainder. The dividend is (Y 0 -1)
The reason is that the origin coordinate P 0 is set to (1, 1), and the divisor is set to “8” for each byte (= 8 bits) in the Y direction of the storage area of the screen memory 8. This is because the addresses are divided and assigned. The quotient S represents the number of the memory counted from the bottom of the 64 memories arranged in the Y direction of the screen memory 8, and the remainder shifts the data up to the number of bits counted from the bottom of the memory. Or write it.
次に、求めた余りに基づいて、読み出し用レジスタR
A,RBに書き込まれたデータを右方向にシフトして書
き込み用レジスタR1,R2,R3に書き込む。例え
ば、X0=32、Y0=61、M=0、A=0とする
と、(Y0−1)を「8」で割った場合の商Sは「7」
で余りは「4」である。したがって、読み出し用レジス
タRA,RBに書き込まれたデータとして第10図(イ)
の左側に示したデータを用いた場合には、第11図(イ)
に示すように読み出し用レジスタRA,RBの内容を書
き込み用レジスタR1,R2,R3に4ビットシフトし
て書きこむ。この時、レジスタR1の下位4ビットとレ
ジスタR3の上位4ビットには、それぞれ「0」が設定
される。また、X0=15、Y0=24、M=0、A=
1とすると、(Y0−1)を「8」で割った場合の商S
は「2」で余りは「7」である。したがって、読み出し
用レジスタRA,RBに書き込まれたデータとして第1
0図(ロ)の左側に示したデータを用いた場合には、第1
1図(ロ)に示すように読み出し用レジスタRA,RBの
内容を書き込み用レジスタR1,R2,R3に7ビット
シフトして書き込む。この時、レジスタR1の下位7ビ
ットとレジスタR3の上位1ビットには、それぞれ
「0」が設定される。なお、余りが「0」である場合に
はシフト処理は行なわれず、レジスタRA,RBの内容
はそのままレジスタR1,R2に書き込まれる。そし
て、ステップSP4におけるデータシフト処理が終了す
ると、ステップSP5に移って、操作者によって指定さ
れた基準位置PのX座標データおよび上記ステップSP
4の処理で求めた商Sを、以下に示す(1)式に代入して
求めたスクリーンメモリ8のアドレスのメモリに、書き
込み用レジスタR1,R2,R3に書き込まれたデータ
をそれぞれ書き込む。Next, based on the calculated remainder, the read register R
The data written in A and RB are shifted rightward and written in the write registers R1, R2 and R3. For example, if X 0 = 32, Y 0 = 61, M = 0, A = 0, the quotient S when (Y 0 −1) is divided by “8” is “7”.
And the remainder is "4". Therefore, the data written in the read registers RA and RB is shown in FIG.
If you use the data shown on the left side of Fig.
The contents of the read registers RA and RB are written in the write registers R1, R2 and R3 by shifting by 4 bits as shown in FIG. At this time, "0" is set to the lower 4 bits of the register R1 and the upper 4 bits of the register R3. Also, X 0 = 15, Y 0 = 24, M = 0, A =
If it is 1, the quotient S when (Y 0 -1) is divided by "8"
Is "2" and the remainder is "7". Therefore, the first data is written in the read registers RA and RB.
When the data shown on the left side of Fig. 0 (b) is used,
As shown in FIG. 1B, the contents of the read registers RA and RB are written in the write registers R1, R2, and R3 by shifting by 7 bits. At this time, "0" is set to the lower 7 bits of the register R1 and the upper 1 bit of the register R3. When the remainder is "0", the shift process is not performed and the contents of the registers RA and RB are written in the registers R1 and R2 as they are. Then, when the data shift process in step SP4 is completed, the process proceeds to step SP5, and the X coordinate data of the reference position P designated by the operator and the above step SP.
The data written in the write registers R1, R2, and R3 are written in the memory of the address of the screen memory 8 obtained by substituting the quotient S obtained in the process of No. 4 into the equation (1) shown below.
AS+X0+128×(S+n)・・・(1) (1)式において、ASはスクリーンメモリ8の先頭アド
レスの1つ手前のアドレス(すなわち、「AS+1」が
スクリーンメモリ8の先頭アドレス)であり、このよう
にするのは、スクリーンメモリ8の原点座標P0を
(1,1)としたからである。また、(1)式において、
nには、書き込み用レジスタR1のデータをスクリーン
メモリ8に書き込む場合に「0」、書き込み用レジスタ
R2のデータをスクリーンメモリ8に書き込む場合に
「1」、書き込み用レジスタR3のデータをスクリーン
メモリ8に書き込む場合に「2」が設定される。A S + X 0 + 128 × (S + n) (1) In the formula (1), A S is the address immediately before the start address of the screen memory 8 (that is, “A S +1” is the start address of the screen memory 8). This is because the origin coordinate P 0 of the screen memory 8 is (1, 1). Also, in equation (1),
n is “0” when writing the data of the writing register R1 to the screen memory 8, “1” when writing the data of the writing register R2 to the screen memory 8, and the data of the writing register R3. "2" is set when writing to.
A=0(0°)の場合 例えば、フォーマットレジスタ7に記憶された各パラメ
ータデータがX0=32、Y0=61、M=0、A=0
であるとすると、商Sは「7」であるので、書き込み用
レジスタR1のデータを書き込む場合は、式「AS+X
0+128×(S+n)」に、X0=「32」、S=
「7」、n=「0」を代入する。式の演算結果は、「A
S+928」であるので、書き込み用レジスタR1のデ
ータは、第12図(イ)に示されるように、スクリーンメ
モリ8の先頭アドレスから数えて928番目のメモリに
書き込まれる。以下同様に、書き込み用レジスタR2の
データは、上記式に、X0=「32」、S=「7」、n
=「1」を代入して得られた演算結果「AS+105
6」に基づいて、スクリーンメモリ8の先頭アドレスか
ら数えて1056番目のメモリに書き込まれ、書き込み
用レジスタR3のデータは、上記式に、X0=「3
2」、S=「7」、n=「2」を代入して得られた演算
結果「AS+1184」に基づいて、スクリーンメモリ
8の先頭アドレスから数えて1184番目のメモリに書
き込まれる。なお、上記アドレスは説明の都合上、10
進で表示してある。なお、書き込みアドレスの算出方法
はスクリーンメモリ8の構成によって異ってくる。In the case of A = 0 (0 °) For example, each parameter data stored in the format register 7 has X 0 = 32, Y 0 = 61, M = 0, A = 0.
Since the quotient S is “7”, when writing the data of the write register R1, the expression “A S + X
0 + 128 × (S + n) ”, X 0 =“ 32 ”, S =
Substitute “7” and n = “0”. The operation result of the expression is "A
S +928 ", the data in the write register R1 is written in the 928th memory counted from the start address of the screen memory 8 as shown in FIG. Similarly, the data of the register R2 for writing is expressed by the following formula in the following formula: X 0 = “32”, S = “7”, n
= “1” is substituted for the calculation result “A S +105
6 ”is written in the 1056th memory counted from the start address of the screen memory 8 and the data of the write register R3 is expressed by the above formula in the equation X 0 =“ 3
Based on the calculation result “A S +1184” obtained by substituting 2 ”, S =“ 7 ”, and n =“ 2 ”, it is written in the 1184th memory counted from the start address of the screen memory 8. For convenience of explanation, the above address is 10
It is displayed in hex. The method of calculating the write address differs depending on the configuration of the screen memory 8.
A=1,2,3(90°,180°,270°)の場
合 ところで、この実施例においては、キャラクタパターン
は、第2図(ロ)に示すように、0°回転におけるキャラ
クタパターンの左下端に基準位置Pを設定し、その基準
位置Pの回りを左回りに、90°、180°、270°
それぞれ回転させると定義している。In the case of A = 1, 2, 3 (90 °, 180 °, 270 °) By the way, in this embodiment, as shown in FIG. 2B, the character pattern is the lower left corner of the character pattern at 0 ° rotation. The reference position P is set at the end, and 90 °, 180 °, 270 ° counterclockwise around the reference position P.
Each is defined as rotating.
また、この実施例においては、第10図に示すように、
CG6からキャラクタパターンを読み出して読み出し用
レジスタRA,RBに書き込む際にキャラクタパターン
を回転させている。Further, in this embodiment, as shown in FIG.
The character pattern is rotated when it is read from the CG 6 and written in the read registers RA and RB.
さらに、この実施例においては、書き込み用レジスタR
1,R2,R3から読み出されたデータを、スクリーン
メモリ8の任意の位置に書き込む際には、第5図に示す
スクリーンメモリ8の任意の座標を書込開始座標とした
場合、キャラクタパターンの回転の如何に関わらず、ま
ず、その書込開始座標から上方へ16ビット書き込み、
次に、書込開始座標の1ビット右隣の座標から上方へ1
6ビット書き込み、・・・、最後に、書込開始座標の1
5ビット右隣の座標から上方へ16ビット書き込んでい
く。なお、ここでいうデータとは、書き込み用レジスタ
R1,R2,R3に書き込まれた3×8ビットすべての
データではなく、文字パターンの実質的なデータ、すな
わち、ドットデータを指している。Further, in this embodiment, the write register R
When writing the data read from R1, R2, and R3 to an arbitrary position of the screen memory 8, when the arbitrary coordinates of the screen memory 8 shown in FIG. Regardless of rotation, first write 16 bits upward from the write start coordinate,
Next, 1 bit upward from the coordinate to the right of the write start coordinate by 1 bit.
6-bit writing, ..., Finally, write start coordinate is 1
16 bits are written upward from the coordinate on the right side of 5 bits. It should be noted that the data referred to here is not the data of all 3 × 8 bits written in the write registers R1, R2, R3, but the actual data of the character pattern, that is, the dot data.
したがって、A=0(0°)の場合は、基準位置Pとス
クリーンメモリ8への書込開始座標とを一致させていて
も問題ないが、A=1(90°)、A=2(180
°)、A=3(270°)の場合は、基準位置Pとスク
リーンメモリ8への書込開始座標とを一致させたままで
は、第17図に示すように、先頭の1文字が重なる回転
となってしまい、上記定義からはずれることになる。Therefore, in the case of A = 0 (0 °), there is no problem even if the reference position P and the writing start coordinate to the screen memory 8 are matched, but A = 1 (90 °) and A = 2 (180
°) and A = 3 (270 °), if the reference position P and the writing start coordinate to the screen memory 8 remain the same, as shown in FIG. Therefore, the above definition is deviated.
そこで、A=1(90°)の場合は、書込開始座標を基
準位置PのX座標データより16ビット左へシフトさ
せ、A=2(180°)の場合は、書込開始座標を基準
位置PのX座標データより16ビット左へシフトさせる
とともに、Y座標データより16ビット下へシフトさ
せ、A=3(270°)の場合は、書込開始座標を基準
位置PのY座標データより16ビット下へシフトさせな
ければならない。Therefore, when A = 1 (90 °), the writing start coordinate is shifted left 16 bits from the X coordinate data of the reference position P, and when A = 2 (180 °), the writing start coordinate is set as the reference. It is shifted 16 bits to the left of the X coordinate data of the position P and is shifted 16 bits below the Y coordinate data. When A = 3 (270 °), the write start coordinate is determined from the Y coordinate data of the reference position P. Must be shifted down 16 bits.
これ以降の処理は、上述したA=0(0°)の場合と同
様である。The subsequent processing is the same as in the case of A = 0 (0 °) described above.
なお、なお、上記レジスタR1,R2,R3の内容のス
クリーンメモリ8への書き込みは、それぞれレジスタR
1,R2,R3の内容と所定のスクリーンメモリ8(前
述の場合はそれぞれ928番目、1056番目、118
4番目のアドレスのメモリ)の内容との論理和をとりこ
の演算後のデータを所定のスクリーンメモリに格納する
ことで行なう。これは、これ以前に書き込まれたパター
ンデータを新たな書き込みにより消去させないためであ
る。The contents of the registers R1, R2 and R3 are written to the screen memory 8 respectively.
1, R2, R3 contents and a predetermined screen memory 8 (in the above case, 928th, 1056th, 118th, respectively)
This is performed by taking the logical sum of the contents of the memory at the fourth address) and storing the data after this operation in a predetermined screen memory. This is because the pattern data written before this is not erased by new writing.
次に、ステップSP6へ移り、書き込み処理が終了した
か否かが判断され、終了していない場合は、CG6のア
ドレスとスクリーンメモリ8のアドレスを更新し(ステ
ップSP7,SP8)、その後に再びステップSP3〜
SP6の処理をくり返す。この場合、第2図(ロ)に示す
ように、横書きの文字に対応したキャラクタデータをス
クリーンメモリ8に書き込む場合には、2番目以降のキ
ャラクタデータのスクリーンメモリ8への書込開始座標
は、その回転方向によって以下に示すようになる。Next, the process proceeds to step SP6, it is determined whether or not the writing process is completed, and if it is not completed, the address of the CG6 and the address of the screen memory 8 are updated (steps SP7 and SP8), and then the step is executed again. SP3 ~
Repeat the processing of SP6. In this case, as shown in FIG. 2B, when the character data corresponding to the horizontally written characters is written in the screen memory 8, the writing start coordinates of the second and subsequent character data to the screen memory 8 are: It becomes as follows depending on the rotation direction.
A=0(0°)の場合 (X+16×(m−1),Y) A=1(90°)の場合 (X−16,Y+16×(m−1)) A=2(180°)の場合 (X−16−16×(m−1),Y−16) A=3(270°)の場合 (X,Y−16−16×(m−1)) すなわち、第18図に示すようになる。ここで、mは文
字の先頭からの数を表している。A = 0 (0 °) (X + 16 × (m-1), Y) A = 1 (90 °) (X-16, Y + 16 × (m-1)) A = 2 (180 °) Case (X-16-16 × (m-1), Y-16) A = 3 (270 °) (X, Y-16-16 × (m-1)) That is, as shown in FIG. become. Here, m represents the number from the beginning of the character.
これ以後は、ステップSP6における判定が「YES」
となるまで上記SP3〜SP8から成るルーブを循環す
る。なお、第10図に示す円弧状の矢印は、CG6のア
ドレス更新の状態を示している。After that, the determination in step SP6 is "YES".
The loop consisting of SP3 to SP8 is circulated until The arc-shaped arrow shown in FIG. 10 indicates the state of address update of CG6.
次に、キャラクタパターンを拡大する場合、すなわち、
M=1の場合の処理について第8図(ロ)に示すフローチ
ャートを参照して説明する。この場合の処理は、基本的
には前述したM=0の場合と同様であるが、キャラクタ
パターンを2倍に拡大する関係上、同図(イ)のステップ
SP3,SP5,SP7,SP8に代えて、各々ステッ
プSP13,SP15,SP17,SP18の処理を行
う。以下、これらのステップにおける処理を説明する。Next, when enlarging the character pattern, that is,
The process when M = 1 will be described with reference to the flowchart shown in FIG. The processing in this case is basically the same as in the case of M = 0 described above, but in order to double the character pattern, steps SP3, SP5, SP7, SP8 in FIG. Then, the processing of steps SP13, SP15, SP17 and SP18 is performed. The processing in these steps will be described below.
まず、ステップSP13の処理は、第13図に示すよう
に、レジスタRA,RBへキャラクタパターンCPを構
成する各ビットを各々2重に格納してゆく。このよう
に、2重の格納を行うことにより、キャラクタパターン
CPが縦(あるいは横)方向に2倍に拡大される。First, in the processing of step SP13, as shown in FIG. 13, each bit constituting the character pattern CP is doubly stored in the registers RA and RB. In this way, the double storage causes the character pattern CP to be doubled in the vertical (or horizontal) direction.
次に、ステップSP15では、第12図(ロ)に示すよう
に、レジスタR1〜R3を並列に縦つなぎにして、スク
リーンメモリ8の該当するエリアへ書き込む。このよう
に、レジスタR1〜R3を並列にすることにより、キャ
ラクタパターンCPが横(あるいは縦)方向に2倍に拡
大される。なお、図は、A=0の場合を示しており、A
=1,2,3の場合は、基準位置Pのとり方などが、適
宜変化する。Next, in step SP15, as shown in FIG. 12B, the registers R1 to R3 are vertically connected in parallel and written in the corresponding area of the screen memory 8. In this way, by arranging the registers R1 to R3 in parallel, the character pattern CP is doubled in the horizontal (or vertical) direction. The figure shows the case where A = 0.
In the case of = 1, 2, 3, the way of taking the reference position P and the like are changed appropriately.
また、ステップSP17におけるアドレスの更新は、第
13図に矢印で示すような順で行なわれ、ステップSP
18におけるアドレスの更新は、レジスタR1〜R3を
並列にする関係上、1アドレスおきの更新となる。Further, the update of the address in step SP17 is performed in the order shown by the arrow in FIG.
The address update at 18 is every other address due to the parallel arrangement of the registers R1 to R3.
このように、この実施例においては、フォーマットレジ
スタ7内に、予め各印字ブロックの基準位置座標、向
き、文字の大きさを各々示すパラメータを書き込んでお
き、その後は、フォーマットレジスタ7内のデータに基
づいて、自動的に、印字のパターンがレイアウトされる
ようになっている。As described above, in this embodiment, parameters indicating the reference position coordinates, the orientation, and the character size of each print block are written in advance in the format register 7, and thereafter, the data in the format register 7 is written in the data. Based on this, the print pattern is automatically laid out.
なお、サーマルヘッド11を構成する熱抵抗素子間隔と
パルスモータによるフィード間隔とが同じでない場合に
は、文字の印字向きによっては第14図に示すように、
文字全体の縦横比が多少変化する。When the distance between the thermal resistance elements that constitute the thermal head 11 and the distance between the feeds by the pulse motor are not the same, as shown in FIG. 14, depending on the printing direction of the characters,
The aspect ratio of the entire character changes slightly.
また、この発明は、上記実施例の構成、印字手段および
処理方法等に限定されるものではなく、以下に述べるよ
うな種々の変形例に対しても適用することができる。Further, the present invention is not limited to the configuration, the printing means, the processing method and the like of the above-mentioned embodiment, and can be applied to various modified examples as described below.
プリンタにカラープリンタを使用した場合は、フォー
マットレジスタ内に、色を指定するパラメータも記憶さ
せる。例えば、カラーパラメータをCとして、C=0で
黒、C=1で赤、C=2で青、C=3で黄等の指定を行
う。なお、カラープリンタの種類としては、インクジェ
ットタイプのものでも、サーマルタイプ(多重発色層方
式あるいは複数回熱転写方式)のものでもどちらでもよ
い。この場合、スクリーンメモリ8は色の数だけ用意す
るか、あるいは、指定色を記憶するメモリを併用するよ
うにする。When a color printer is used as the printer, a parameter designating a color is also stored in the format register. For example, when the color parameter is C, black is designated when C = 0, red is designated when C = 1, blue is designated when C = 2, and yellow is designated when C = 3. The type of color printer may be either an inkjet type or a thermal type (multiple coloring layer system or multiple thermal transfer system). In this case, as many screen memories 8 as the number of colors are prepared, or a memory for storing a designated color is also used.
文字の配列方向を示すパラメータや文字間隔を指定す
るパラメータの付加。例えば、第15図に示すような、
ラベルに対して縦書の配列を指定するパラメータを設け
てもよい。このように、パラメータの種類、数は必要に
応じて適宜採用することが考えられ、文字の大きさある
いは角度なも実施例に限定されるものではない。Addition of parameters that indicate the direction of character arrangement and parameters that specify the character spacing. For example, as shown in FIG.
A parameter for designating the vertical writing arrangement may be provided for the label. As described above, it is conceivable that the type and number of parameters may be appropriately adopted as needed, and the size or angle of characters is not limited to the embodiment.
印字フォーマットのデザインをモニタするためのCR
T表示器や液晶表示パネルを設けてもよい。この場合、
上記に対応させて、カラーモニタとしてもよい。CR for monitoring print format design
A T-display or a liquid crystal display panel may be provided. in this case,
Corresponding to the above, a color monitor may be used.
よく使用される印字フォーマットや、標準的な印字フ
ォーマットは、予め各パラメータをプリセットしてお
き、各フォーマットを識別するコード等を入力するのみ
で、瞬時に印字フォーマットの設定を行い得るよう構成
してもよい。Frequently used print formats and standard print formats are configured so that each parameter can be preset and the print format can be set instantly by simply entering a code that identifies each format. Good.
前述した実施例のように、給紙部がカセットタイプの
ものについては、売上げデータや在庫データ等のレポー
トを出力させるよう構成してもよい。As in the above-described embodiment, if the paper feed unit is of the cassette type, it may be configured to output a report such as sales data or inventory data.
以上説明したように、この発明によれば、品名、値段等
の各印字項目のデータを印字用紙へ印字するプリンタに
おいて、印字データや各種指令を入力する操作手段と、
印字すべき前記各印字項目のデータが記憶されるデータ
レジスタと、前記各印字項目のデータについて、少なく
とも、印字用紙のどの位置を印字の基準とすべきかをX
座標およびY座標で指示する基準位置指定パラメータ
と、この基準位置を中心に0°,90°,180°,2
70°のいずれの回転方向へ印字するのかを指示する印
字方向指定パラメータとが記憶されるリード/ライト可
能なメモリから構成されたフォーマットレジスタと、こ
のフォーマットレジスタ内の各パラメータの設定/変更
を前記操作手段から入力された印字仕様データに基づい
て行うデータ設定/変更手段と、文字パターンが予め記
憶されているキャラクタジェネレータと、前記用紙上の
印字領域に対応する記憶エリアを有し、該記憶エリアが
pビット(pは正の整数)毎に区分されてそれぞれ順番
にアドレスが付されたスクリーンメモリと、前記各印字
項目のデータに対応する文字パターンを前記キャラクタ
ジェネレータから前記印字方向指定パラメータに対応し
た順番でpビット単位で読み出してpビット単位の読み
出し用レジスタに書き込んだ後、該読み出し用レジスタ
に書き込まれたデータを、前記基準位置指定パラメータ
およびビット数pに基づいて演算されたビット数だけY
座標でシフトしてpビット単位の書き込み用レジスタに
書き込み、前記基準位置指定パラメータ、前記印字方向
指定パラメータおよび文字の順番に基づいて、前記書き
込み用レジスタに書き込まれたデータを書き込むべき、
前記スクリーンメモリのアドレスを演算し、前記書き込
み用レジスタに書き込まれたデータを、前記スクリーン
メモリの当該アドレスに書き込む書込制御部と、前記ス
クリーンメモリ内のデータに基づいて印字を行う印字部
とを具備したので、各ユーザの希望する印字仕様を満足
するために、予め各ユーザが希望すると予測されるすべ
ての印字プログラム(印字フォーマット)を作成し、記
憶しておく必要がないので、その分メモリが節約でき
る。As described above, according to the present invention, in the printer for printing the data of each printing item such as the product name and the price on the printing paper, the operating means for inputting the printing data and various commands,
With respect to the data register in which the data of each print item to be printed is stored and at least which position on the printing paper should be used as the printing reference for the data of each print item, X
Reference position designation parameter designated by coordinates and Y coordinate, and 0 °, 90 °, 180 °, 2 around this reference position
The format register composed of a readable / writable memory that stores a print direction designation parameter for instructing which rotation direction of 70 ° is to be printed, and the setting / changing of each parameter in the format register are described above. Data setting / changing means for carrying out based on the print specification data input from the operating means, a character generator in which character patterns are stored in advance, and a storage area corresponding to the print area on the paper are provided. Is divided into p-bits (p is a positive integer) and sequentially addressed, and a character pattern corresponding to the data of each print item is associated with the print direction specifying parameter from the character generator. Read in p-bit units in the order After elaborate come, the data written to the read register, by the number of bits is calculated based on the reference positional parameters and the number of bits p Y
The data written in the writing register should be written based on the reference position designating parameter, the printing direction designating parameter, and the order of characters by shifting by coordinates and writing to the writing register in units of p bits.
A write control unit that calculates the address of the screen memory and writes the data written in the write register to the address of the screen memory, and a printing unit that performs printing based on the data in the screen memory. Since all the printing programs (printing formats) expected to be desired by each user do not have to be created and stored in advance in order to satisfy the printing specifications desired by each user, memory is provided accordingly. Can be saved.
また、ユーザ側からみても不要のフォーマットが多く、
印字フォーマットの選択操作が面倒であるという不都合
は生じない。Also, many formats are unnecessary from the user's perspective,
There is no inconvenience that the print format selection operation is troublesome.
さらに、標準の印字フォーマットではない特別の印字フ
ォーマットを希望するユーザであっても、装置の製造時
にそのユーザ用の特別な印字プログラム(印字フォーマ
ット)を作成し、ROMに記憶させる作業を必要とせ
ず、完成している装置の操作部を操作して印字フォーマ
ットを設定するだけでよいので、ユーザの要求に極めて
容易かつ迅速に対応することができる。Further, even a user who desires a special print format other than the standard print format does not need to create a special print program (print format) for the user at the time of manufacturing the device and store it in the ROM. Since it is only necessary to operate the operation unit of the completed device to set the print format, it is possible to respond to the user's request extremely easily and quickly.
第1図はこの発明の一実施例の電気的構成を示すブロッ
ク図、第2図は同実施例の印字処理を説明するための説
明図、第3図は用紙上の印字領域を示す図、第4図〜第
6図は各々フォーマットレジスタ7、スクリーンメモリ
8およびデータレジスタ9の構成を示す概念図、第7図
は同実施例の外観を示す斜視図、第8図は同実施例の動
作を示すフローチャート、第9図はキャラクタジェネレ
ータ6内のキャラクタパターンの一例を示すパターン
図、第10図〜第13図は各々同実施例の処理動作を説
明するための説明図、第14図は用紙上の印字例を示す
図、第15図は文字配列の他の例を示す図、第16図〜
第18図は各々同実施例の処理動作を説明するための説
明図である。 3……CPU(データ設定/変更手段,書込制御部)、
6……キャラクタジェネレータ、7……フォーマットレ
ジスタ、8……スクリーンメモリ、9……データレジス
タ、10……プリンタ部(印字部)、17……操作部
(操作手段)。FIG. 1 is a block diagram showing an electrical configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram for explaining a printing process of the embodiment, and FIG. 3 is a diagram showing a printing area on a sheet, 4 to 6 are conceptual views showing the configurations of the format register 7, the screen memory 8 and the data register 9, respectively, FIG. 7 is a perspective view showing the appearance of the embodiment, and FIG. 8 is an operation of the embodiment. 9 is a pattern diagram showing an example of a character pattern in the character generator 6, FIGS. 10 to 13 are explanatory diagrams for explaining the processing operation of the same embodiment, and FIG. 14 is a paper sheet. FIG. 16 is a diagram showing the above printing example, FIG. 15 is a diagram showing another example of the character arrangement, and FIG.
FIG. 18 is an explanatory diagram for explaining the processing operation of the same embodiment. 3 ... CPU (data setting / changing means, writing control section),
6 ... Character generator, 7 ... Format register, 8 ... Screen memory, 9 ... Data register, 10 ... Printer section (printing section), 17 ... Operation section (operating means).
Claims (1)
用紙へ印字するプリンタにおいて、 印字データや各種指令を入力する操作手段と、 印字すべき前記各印字項目のデータが記憶されるデータ
レジスタと、 前記各印字項目のデータについて、少なくとも、印字用
紙のどの位置を印字の基準とすべきかをX座標およびY
座標で指示する基準位置指定パラメータと、この基準位
置を中心に0°,90°,180°,270°のいずれ
の回転方向へ印字するのかを指示する印字方向指定パラ
メータとが記憶されるリード/ライト可能なメモリから
構成されたフォーマットレジスタと、 このフォーマットレジスタ内の各パラメータの設定/変
更を前記操作手段から入力された印字仕様データに基づ
いて行うデータ設定/変更手段と、 文字パターンが予め記憶されているキャラクタジェネレ
ータと、 前記用紙上の印字領域に対応する記憶エリアを有し、該
記憶エリアがpビット(pは正の整数)毎に区分されて
それぞれ順番にアドレスが付されたスクリーンメモリ
と、 前記各印字項目のデータに対応する文字パターンを前記
キャラクタジェネレータから前記印字方向指定パラメー
タに対応した順番でpビット単位で読み出してpビット
単位の読み出し用レジスタに書き込んだ後、該読み出し
用レジスタに書き込まれたデータを、前記基準位置指定
パラメータおよびビット数pに基づいて演算されたビッ
ト数だけY座標でシフトしてpビット単位の書き込み用
レジスタに書き込み、前記基準位置指定パラメータ、前
記印字方向指定パラメータおよび文字の順番に基づい
て、前記書き込み用レジスタに書き込まれたデータを書
き込むべき、前記スクリーンメモリのアドレスを演算
し、前記書き込み用レジスタに書き込まれたデータを、
前記スクリーンメモリの当該アドレスに書き込む書込制
御部と、 前記スクリーンメモリ内のデータに基づいて印字を行う
印字部と を具備することを特徴とするプリンタ。1. A printer for printing data of each print item such as a product name and a price on a printing paper, and operating means for inputting print data and various commands, and data in which data of each print item to be printed is stored. With respect to the register and the data of each print item, at least which position on the printing paper should be used as the printing reference is the X coordinate and the Y coordinate.
Read / store a reference position designating parameter designated by coordinates and a print direction designating parameter designating which of 0 °, 90 °, 180 ° and 270 ° the printing direction is to be printed centered on this reference position. A format register composed of a writable memory, a data setting / changing means for setting / changing each parameter in the format register based on the print specification data inputted from the operating means, and a character pattern are stored in advance. And a screen memory having a storage area corresponding to the printing area on the paper, the storage area being divided by p bits (p is a positive integer) and sequentially addressed. And a character pattern corresponding to the data of each print item from the character generator to the print direction finger. After reading in p-bit units in the order corresponding to the parameters and writing in the p-bit reading register, the data written in the reading register is calculated based on the reference position designation parameter and the bit number p. It should be shifted in the Y coordinate by the number of bits and written in the writing register in units of p bits, and the data written in the writing register should be written based on the reference position designation parameter, the printing direction designation parameter, and the order of characters. , Calculating the address of the screen memory, the data written in the write register,
A printer comprising: a writing control unit that writes to the address of the screen memory; and a printing unit that performs printing based on the data in the screen memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59252472A JPH064346B2 (en) | 1984-11-29 | 1984-11-29 | Printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59252472A JPH064346B2 (en) | 1984-11-29 | 1984-11-29 | Printer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61130069A JPS61130069A (en) | 1986-06-17 |
| JPH064346B2 true JPH064346B2 (en) | 1994-01-19 |
Family
ID=17237854
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59252472A Expired - Lifetime JPH064346B2 (en) | 1984-11-29 | 1984-11-29 | Printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH064346B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6372574A (en) * | 1986-09-16 | 1988-04-02 | Fujitsu Ltd | Price tag layout setting control system |
| JP2546194B2 (en) * | 1994-10-28 | 1996-10-23 | ブラザー工業株式会社 | Tape printer capable of printing multiple lines of data |
| JP6060543B2 (en) * | 2012-07-17 | 2017-01-18 | セイコーエプソン株式会社 | Printing apparatus and printing apparatus control method |
| JP2014213462A (en) * | 2013-04-22 | 2014-11-17 | 株式会社寺岡精工 | Printer |
| JP2014213605A (en) * | 2013-04-30 | 2014-11-17 | 株式会社寺岡精工 | Label edition device |
| JP2017209997A (en) * | 2017-06-14 | 2017-11-30 | 株式会社寺岡精工 | Label issuing device |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5892077A (en) * | 1981-11-25 | 1983-06-01 | オムロン株式会社 | Ticket printing system |
| JPS58211284A (en) * | 1982-06-01 | 1983-12-08 | Nec Corp | Printer connecting device having editing function |
| JPS59101379A (en) * | 1982-12-01 | 1984-06-11 | Ishida Scales Mfg Co Ltd | Label printer |
| JPS5994139A (en) * | 1982-11-19 | 1984-05-30 | Japanese National Railways<Jnr> | Format control method |
-
1984
- 1984-11-29 JP JP59252472A patent/JPH064346B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61130069A (en) | 1986-06-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0577247A1 (en) | Tape print device | |
| JP2580967B2 (en) | Label printer | |
| JP2002522996A (en) | Design text and graphic images on sticky or tab media | |
| JPH064346B2 (en) | Printer | |
| US5047956A (en) | Information processing device having a function of designating a printing-start position | |
| JP2558242B2 (en) | Printer print format setting device | |
| JPS60134839A (en) | Label printer | |
| JPH1067145A (en) | Label printer | |
| EP0221747B1 (en) | Document processor | |
| US4680707A (en) | Electronic cash register and method for defining print characters | |
| JPH0458395B2 (en) | ||
| JP3106905B2 (en) | Label printers and labels | |
| JP3614072B2 (en) | Label printer | |
| JP2000318225A (en) | Label issuing device | |
| EP0395090B1 (en) | Character pattern data generating device | |
| JPS63294340A (en) | Label printer | |
| JP2956599B2 (en) | Label printer | |
| JPH0582826B2 (en) | ||
| JP2617190B2 (en) | String output device | |
| JPS6063665A (en) | External character input method | |
| JP2673047B2 (en) | Label printer | |
| JPS6225370A (en) | Layout display system | |
| JPH07314802A (en) | Printer | |
| JP3029729B2 (en) | Label printer | |
| JPH08118742A (en) | Label printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |