JP2001325146A - Method for storing information table and storage structure - Google Patents

Method for storing information table and storage structure

Info

Publication number
JP2001325146A
JP2001325146A JP2000144556A JP2000144556A JP2001325146A JP 2001325146 A JP2001325146 A JP 2001325146A JP 2000144556 A JP2000144556 A JP 2000144556A JP 2000144556 A JP2000144556 A JP 2000144556A JP 2001325146 A JP2001325146 A JP 2001325146A
Authority
JP
Japan
Prior art keywords
information table
information
memory
storage
tables
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000144556A
Other languages
Japanese (ja)
Other versions
JP3782639B2 (en
Inventor
Satoshi Tsukihara
智 月原
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP2000144556A priority Critical patent/JP3782639B2/en
Publication of JP2001325146A publication Critical patent/JP2001325146A/en
Application granted granted Critical
Publication of JP3782639B2 publication Critical patent/JP3782639B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an information table storing method and storage structure capable of storing positional information in one byte, optionally setting up the arrangement and size of an information table and shortening processing time. SOLUTION: Plural information tables T are arranged on storing positions MP of a memory M successively from the head in every other positions in the order of usage without generating space and positional information P consisting of a relative address to the storage position MP of an information table T to be used next is also stored in each information table T stored in each storage position MP.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、情報テーブルの記
憶方法および記憶構造に係り、特に印刷装置などの動作
制御に好適な情報テーブルの記憶方法および記憶構造に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and a structure for storing an information table, and more particularly to a method and a structure for storing an information table suitable for controlling the operation of a printing apparatus or the like.

【0002】[0002]

【従来の技術】一般に、コンピュータなどに、表示装
置、印刷装置、キーボード、マウスなどの入出力機器を
接続し、コンピュータで入出力機器の動作を制御するこ
とが知られている。そして、出力機器においては、上位
装置としてのコンピュータなどから出力されるデータを
プログラムに基づいて解析することで複数の情報テーブ
ルを形成してメモリに記憶し、これらの情報テーブルを
使用順にメモリから呼び出して情報テーブルに記述され
た動作を実行するように構成されている。
2. Description of the Related Art It is generally known that input / output devices such as a display device, a printing device, a keyboard, and a mouse are connected to a computer or the like, and the operation of the input / output devices is controlled by the computer. In the output device, a plurality of information tables are formed by analyzing data output from a computer or the like as a higher-level device based on a program and stored in the memory, and these information tables are retrieved from the memory in the order of use. To execute the operation described in the information table.

【0003】この情報テーブルは、例えば、図3に示す
ように、情報テーブルTの数を使用順に情報テーブルT
1,T2,T3,T4の4つとした場合、各情報テーブ
ルT1,T2,T3,T4は、メモリMの記憶位置MP
の図3において最も上方に示す先頭側から使用順に情報
テーブルT1,T2,T3,T4の順序で配置(記憶)
される。そして、情報テーブルTを使用する場合には、
図3に矢印にて示すように、情報テーブルT1,T2,
T3,T4,T1…の順序で使用順にメモリMから呼び
出して使用している。
[0003] For example, as shown in FIG. 3, the number of information tables T is determined in the order of use as shown in FIG.
1, T2, T3, and T4, the information tables T1, T2, T3, and T4 are stored in the storage locations MP of the memory M.
In FIG. 3, the information tables T1, T2, T3, and T4 are arranged (stored) in the order of use from the top, which is the uppermost side in FIG.
Is done. Then, when using the information table T,
As shown by arrows in FIG. 3, the information tables T1, T2,
Are used in the order of T3, T4, T1,.

【0004】このような従来の情報テーブルTを使用順
にメモリMに記憶する記憶構造においては、情報テーブ
ルT4の次は情報テーブルT1を使用するが、情報テー
ブルTの使用時に、次の情報テーブルTに移動する(次
の情報テーブルTを呼び出す)毎に、情報テーブルT1
に戻るか否かの判断を実行しなければならず、処理時間
が長くなる。また、各情報テーブルTを記憶するメモリ
Mの記憶位置MP、詳しくはメモリMのアドレスが固定
されてしまい、プログラム作成時の自由度が低下し、メ
モリMの使い勝手がよくない。
In such a conventional storage structure in which the information tables T are stored in the memory M in the order of use, the information table T1 is used after the information table T4, but when the information table T is used, the next information table T is used. (To call the next information table T), the information table T1
Must be determined, and the processing time becomes longer. Further, the storage position MP of the memory M for storing each information table T, specifically, the address of the memory M is fixed, so that the degree of freedom in creating a program is reduced, and the usability of the memory M is not good.

【0005】このような問題点に対処するため、図4に
示すように、メモリMの記憶位置MPに使用順に配置さ
れる情報テーブルT1,T2,T3,T4のそれぞれ
に、次に使用する情報テーブルTの位置情報P、詳しく
は、情報テーブルT1に対して次に使用する情報テーブ
ルT2の記憶位置MP2をあらわす位置情報P2、情報
テーブルT2に対して次に使用する情報テーブルT3の
記憶位置MP3をあらわす位置情報P3、情報テーブル
T3に対して次に使用する情報テーブルT4の記憶位置
MP4をあらわす位置情報P4、情報テーブルT4に対
して次に使用する情報テーブルT1の記憶位置MP1を
あらわす位置情報P1を付加する構成が容易に考えられ
る。この時の位置情報MPとしては、情報テーブルTを
記憶するメモリMの記憶位置MPの絶対アドレスあるい
は相対アドレスを用いることができる。
In order to deal with such a problem, as shown in FIG. 4, information tables T1, T2, T3, and T4 arranged in the order of use in the storage location MP of the memory M respectively include information to be used next. The position information P of the table T, specifically, the position information P2 representing the storage position MP2 of the information table T2 to be used next to the information table T1, and the storage position MP3 of the information table T3 to be used next to the information table T2 , The position information P4 indicating the storage position MP4 of the information table T4 to be used next to the information table T3, and the position information indicating the storage position MP1 of the information table T1 to be used next to the information table T4. A configuration in which P1 is added can be easily considered. As the position information MP at this time, an absolute address or a relative address of the storage position MP of the memory M that stores the information table T can be used.

【0006】ここでいう情報テーブルTを記憶するメモ
リMの記憶位置MPの絶対アドレスとは、情報テーブル
Tを記憶したメモリMの記憶領域の先頭アドレスのこと
である。また、情報テーブルTを記憶するメモリMの記
憶位置MPの相対アドレスとは、情報テーブルTを記憶
したメモリMの記憶領域の先頭アドレスと、次に使用す
る情報テーブルTを記憶したメモリMの記憶領域の先頭
アドレスとの両アドレスの差分のことである。
The absolute address of the storage position MP of the memory M that stores the information table T is the head address of the storage area of the memory M that stores the information table T. The relative address of the storage position MP of the memory M that stores the information table T is the head address of the storage area of the memory M that stores the information table T, and the storage address of the memory M that stores the information table T to be used next. This is the difference between the start address of the area and both addresses.

【0007】また、位置情報Pを付加した各情報テーブ
ルTを記憶するメモリMの各記憶領域の容量は、例えば
16バイトとされている。
The capacity of each storage area of the memory M for storing each information table T to which the position information P is added is, for example, 16 bytes.

【0008】このような位置情報Pを付加した構成の情
報テーブルTの記憶構造を用いることにより、情報テー
ブルTを移動する毎にメモリMの先頭に配置された情報
テーブルT1に戻るか否かの判断を実行する必要がない
ので、その分処理時間を短くすることができる。
By using the storage structure of the information table T to which the position information P is added, it is determined whether or not to return to the information table T1 arranged at the head of the memory M every time the information table T is moved. Since it is not necessary to execute the determination, the processing time can be shortened accordingly.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、前述し
た従来の情報テーブルTに位置情報Pを単に付加した構
成の情報テーブルの記憶構造においては、情報テーブル
Tを移動する毎に情報テーブル1に戻るか否かの判断を
実行する必要がないので、その分処理時間を短くするこ
とができるものの、情報テーブルTを記憶するメモリM
の記憶位置MPが固定されているので、情報テーブルT
の配置、大きさを自由に設定することができず、プログ
ラム作成時の自由度が低下し、メモリMの使い勝手がよ
くないという問題点に対しては何ら対処することができ
ない。
However, in the above-described conventional information table storage structure in which the position information P is simply added to the information table T, it is necessary to return to the information table 1 every time the information table T is moved. Since it is not necessary to execute the determination as to whether or not the memory M can store the information table T, the processing time can be shortened accordingly.
Is fixed, the information table T
The arrangement and size of the memory M cannot be freely set, the degree of freedom in creating a program is reduced, and the problem that the memory M is not easy to use cannot be dealt with at all.

【0010】また、複数の情報テーブルTにより構成さ
れたテーブル全体の大きさが大きくなると、位置情報T
が1バイトに収まらなくなる。例えば、位置情報P4を
構成する情報テーブルT4から情報テーブルT1への相
対アドレスが最も大きくなり、この値が256を越える
と1バイトに収まらなくなる。
When the size of the entire table composed of a plurality of information tables T increases, the position information T
Will not fit in one byte. For example, the relative address from the information table T4 constituting the position information P4 to the information table T1 becomes the largest, and if this value exceeds 256, it will not fit in one byte.

【0011】さらに、情報テーブルTの数が多くなる
と、情報テーブルT4から情報テーブルT1へ移動する
場合の移動距離が大きくなり、複数の情報テーブルTを
ループ状に繰り返して使用する場合、全体としての処理
時間が長くなるという問題点もあった。
Further, as the number of information tables T increases, the moving distance when moving from the information table T4 to the information table T1 increases, and when a plurality of information tables T are used repeatedly in a loop, the overall There is also a problem that the processing time becomes long.

【0012】そこで、位置情報を1バイトに収めること
ができ、しかも、情報テーブルの配置、大きさを自由に
設定することができ、かつ、処理時間の短縮を図ること
のできる情報テーブルの記憶方法および記憶構造が求め
られている。
Therefore, a storage method of an information table which can store position information in one byte, can freely set the arrangement and size of the information table, and can shorten the processing time And a memory structure is required.

【0013】本発明はこれらの点に鑑みてなされたもの
であり、位置情報を1バイトに収めることができ、しか
も、情報テーブルの配置、大きさを自由に設定すること
ができ、かつ、処理時間を短縮することのできる情報テ
ーブルの記憶方法および記憶構造を提供することを目的
とする。
The present invention has been made in view of these points, and can store position information in one byte, and can freely set the layout and size of an information table. It is an object of the present invention to provide an information table storage method and storage structure that can reduce the time.

【0014】[0014]

【課題を解決するための手段】前述した目的を達成する
ため本発明に係る情報テーブルの記憶方法の特徴は、複
数の情報テーブルをメモリの記憶位置の先頭側から一つ
おきにして使用順に隙間なく配置するとともに、各情報
テーブルのそれぞれに、次に使用する情報テーブルの記
憶位置との相対アドレスにより形成した位置情報を付加
する点にある。そして、このような構成を採用したこと
により、複数の情報テーブルのうちの使用順序が相互に
隣位する情報テーブルを、メモリの記憶位置が最も接近
するように配置することができるので、位置情報を1バ
イトに収めることができ、しかも、情報テーブルの配
置、大きさを自由に設定することができ、かつ、処理時
間を短縮することができる。
In order to achieve the above-described object, a feature of the information table storage method according to the present invention is that a plurality of information tables are arranged at every other position from the head of the storage position of the memory, and a gap is formed in the use order. And the position information formed by the relative address to the storage position of the information table to be used next is added to each information table. By adopting such a configuration, the information tables in which the use order of the plurality of information tables is adjacent to each other can be arranged so that the storage position of the memory is closest to the other. Can be stored in one byte, the arrangement and size of the information table can be freely set, and the processing time can be shortened.

【0015】また、本発明に係る情報テーブルの記憶構
造の特徴は、複数の情報テーブルがメモリの記憶位置に
先頭側から一つおきにして使用順に隙間なく配置して記
憶されているとともに、各記憶位置に記憶される情報テ
ーブルにはそれぞれ次に使用する情報テーブルの記憶位
置との相対アドレスからなる位置情報が合わせて記憶さ
れている点にある。そして、このような構成を採用した
ことにより、複数の情報テーブルのうちの使用順序が相
互に隣位する情報テーブルを、メモリの記憶位置が最も
接近するように配置することができるので、位置情報を
1バイトに収めることができ、しかも、情報テーブルの
配置、大きさを自由に設定することができ、かつ、処理
時間を短縮することができる。
Further, the feature of the storage structure of the information table according to the present invention is that a plurality of information tables are stored in the storage position of the memory at every other position from the head side and are arranged in the order of use without any gaps. The information tables stored in the storage locations are each stored with location information including a relative address to the storage location of the information table to be used next. By adopting such a configuration, the information tables in which the use order of the plurality of information tables is adjacent to each other can be arranged so that the storage position of the memory is closest to the other. Can be stored in one byte, the arrangement and size of the information table can be freely set, and the processing time can be shortened.

【0016】[0016]

【発明の実施の形態】以下、本発明を図面に示す実施形
態により説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to embodiments shown in the drawings.

【0017】図1は本発明に係る情報テーブルの記憶方
法を用いた情報テーブルの記憶構造を適用するメモリの
実施形態の構造を示す説明図である。
FIG. 1 is an explanatory diagram showing the structure of an embodiment of a memory to which a storage structure of an information table is applied using a method of storing an information table according to the present invention.

【0018】本実施形態は、本発明に係る情報テーブル
の記憶方法を用いた情報テーブルTの記憶構造を、情報
テーブルTの数を、使用順に情報テーブルT1,T2,
T3,T4,T5,T6の6つとしたものである。
In the present embodiment, the storage structure of the information table T using the information table storage method according to the present invention is described in the following manner.
T3, T4, T5, and T6.

【0019】図1に示すように、本実施形態の情報テー
ブルの記憶構造を適用するメモリMにおいて、6つの情
報テーブルT1,T2,T3,T4,T5,T6は、図
1において最も上方に示す先頭側から一つおきにして使
用順に情報テーブルT1,T2,T3,T4,T5,T
6の順序で隙間なく配置(記憶)されている。
As shown in FIG. 1, in the memory M to which the information table storage structure of the present embodiment is applied, six information tables T1, T2, T3, T4, T5, and T6 are shown at the top in FIG. Information tables T1, T2, T3, T4, T5, T
6 are arranged (stored) without gaps in the order of 6.

【0020】さらに詳しく説明すると、複数の情報テー
ブルTをメモリMの先頭側から隙間なく配置するように
記憶するため、メモリMには、情報テーブルTの数と同
一、本実施形態においては情報テーブルTの数が6つな
ので、6つの情報テーブルTの記憶位置MPが設定され
ている。これらの各記憶位置MPの記憶領域の容量は、
例えば全て同一の16バイトに形成されている。
More specifically, in order to store a plurality of information tables T so as to be arranged without a gap from the top of the memory M, the memory M has the same number as the number of information tables T. Since the number of T is six, six storage locations MP of the information table T are set. The capacity of the storage area at each of these storage locations MP is:
For example, they are all formed in the same 16 bytes.

【0021】そして、図1に示すように、メモリMの6
つの記憶位置MPを図1において最も上方に示す先頭側
から順にMP1,MP2,MP3,MP4,MP5,M
P6とした場合、使用順序が1番目となる情報テーブル
T1は、メモリMの記憶位置MPの図1において最も上
方に示す先頭側に位置する記憶位置MP1に配置され
る。
Then, as shown in FIG.
One of the storage locations MP is MP1, MP2, MP3, MP4, MP5, M in order from the top shown in FIG.
In the case of P6, the information table T1 having the first use order is arranged at the storage position MP1 located at the top of the storage position MP of the memory M shown in FIG.

【0022】つぎに、使用順序が2番目となる情報テー
ブルT2は、情報テーブルT1が配置される記憶位置M
P1の下流側に隣位する図1において上から2番目に位
置する記憶位置MP2を越えて、図1において上から3
番目に位置する記憶位置MP3に配置される。
Next, the information table T2 having the second use order is a storage location M where the information table T1 is located.
The storage location MP2 adjacent to the downstream side of P1 in FIG. 1 and located from the top in FIG.
It is located at the storage location MP3 located at the second position.

【0023】つぎに、使用順序が3番目となる情報テー
ブルT3は、情報テーブルT2が配置される記憶位置M
P3の下流側に隣位する図1において上から4番目に位
置する記憶位置MP4を越えて、図1において上から5
番目に位置する記憶位置MP5に配置される。
Next, the information table T3 having the third use order is a storage location M where the information table T2 is arranged.
The storage location MP4, which is located on the downstream side of P3 in FIG. 1 and located fourth from the top in FIG.
It is located at the storage location MP5 located at the second position.

【0024】つぎに、使用順序が4番目となる情報テー
ブルT4は、情報テーブルT3が配置される記憶位置M
P5の下流側に位置する記憶位置が記憶位置MP4のみ
の一つだけなので、情報テーブルT3が配置される記憶
位置MP5の下流側に隣位する図1において最も下方に
示すから記憶位置MP6に配置される。
Next, the information table T4 having the fourth use order is a storage location M where the information table T3 is arranged.
Since only one storage location MP4 is located downstream of P5, it is located at storage location MP6 since it is the lowest location in FIG. 1 adjacent to the location downstream of storage location MP5 where information table T3 is located. Is done.

【0025】つぎに、使用順序が5番目となる情報テー
ブルT5は、情報テーブルT4が配置される記憶位置M
P6の下流側には空の記憶位置MPがないので上流側に
戻って、使用されている記憶位置MP5を越えて、図1
において上から4番目に位置する空いている記憶位置M
P4に配置される。
Next, the information table T5 having the fifth use order is a storage location M where the information table T4 is arranged.
Since there is no empty storage location MP on the downstream side of P6, the process returns to the upstream side to exceed the used storage location MP5, and FIG.
Vacant storage location M located fourth from above
It is located at P4.

【0026】つぎに、使用順序が6番目となる情報テー
ブルT6は、情報テーブルT5が配置される記憶位置M
P4の上流側に隣位する使用されている図1において上
から3番目に位置する記憶位置MP3を越えて、図1に
おいて上から2番目に位置する記憶位置MP2に配置さ
れる。
Next, the information table T6 whose use order is the sixth is the storage location M where the information table T5 is located.
It is located at the storage location MP2, which is adjacent to the upstream side of P4 and is located second from the top in FIG. 1, beyond the storage location MP3 located at the third location from the top in FIG.

【0027】すなわち、本実施形態における複数の情報
テーブルTをメモリMの記憶位置MPの先頭側から一つ
おきにして使用順に隙間なく配置するとは、メモリMの
先頭の記憶位置MPに使用順序が1番目の情報テーブル
Tを配置し、以降、メモリMの末尾に位置する記憶位置
MPに向かって一つおきの記憶位置MPに情報テーブル
Tを使用順に配置し、末尾に位置する記憶位置MPを使
用したうえで、メモリMの末尾から先頭に向かって一つ
おきの記憶位置MPに情報テーブルTを使用順に配置す
ることで、すべての記憶位置MPに情報テーブルTを配
置する構成とされている。
That is, in the present embodiment, a plurality of information tables T are arranged from the beginning of the storage position MP of the memory M at every other position and are arranged without gaps in the order of use. The first information table T is arranged, and thereafter, the information tables T are arranged in the order of use at every other storage location MP toward the storage location MP located at the end of the memory M, and the storage location MP located at the end is located. After use, the information tables T are arranged at every other storage location MP in the order of use from the end to the beginning of the memory M, so that the information tables T are arranged at all the storage locations MP. .

【0028】なお、使用順序の1番目の情報テーブルT
をメモリMの記憶位置MPの先頭側から2番目のメモリ
の記憶位置MPに記憶してもよい。
The first information table T in the use order
May be stored in the storage location MP of the second memory from the top of the storage location MP of the memory M.

【0029】また、情報テーブルTの数、情報テーブル
Tを配置するメモリMの記憶位置MPの数などは、情報
テーブルTを使用する装置の仕様、設計コンセプトなど
の必要に応じて零を除く任意の正の整数を用いればよ
く、特に、本実施形態の情報テーブルTの数、情報テー
ブルTを配置するメモリMの記憶位置MPの数に限定さ
れるものではない。さらに、情報テーブルTを記憶する
記憶領域の容量も、情報テーブルTを使用する装置の仕
様、設計コンセプトなどの必要に応じて設定すればよ
い。
The number of information tables T, the number of storage locations MP of the memory M in which the information tables T are arranged, and the like are optional except for zero according to the specifications of the apparatus using the information tables T and the design concept. In particular, the present invention is not limited to the number of information tables T and the number of storage locations MP of the memory M where the information tables T are arranged in the present embodiment. Furthermore, the capacity of the storage area for storing the information table T may be set as required according to the specifications of the apparatus using the information table T, design concept, and the like.

【0030】このように、複数の情報テーブルTをメモ
リMの記憶位置MPの先頭側から一つおきにして使用順
に隙間なく配置することにより、複数の情報テーブルT
のうちの使用順序が相互に隣位する情報テーブルTを、
メモリMの記憶位置MPが最も接近するように配置する
ことができる。
As described above, by arranging a plurality of information tables T every other one from the head of the storage position MP of the memory M and arranging them without any gap in the order of use, the plurality of information tables T
Of the information tables T whose use order is adjacent to each other,
The memory M can be arranged so that the storage position MP of the memory M is closest.

【0031】すなわち、複数の情報テーブルTをメモリ
MPの記憶位置MPの先頭側から一つおきにして使用順
に隙間なく配置するとは、複数の情報テーブルTのうち
の使用順序が相互に隣位する情報テーブルTを、メモリ
Mの記憶位置MPが最も接近するように配置することで
あり、これにより情報テーブルTを使用する際の記憶位
置MP間の移動距離を最も短くして処理時間を短縮して
処理速度を高速化することができるようになっている。
That is, to arrange a plurality of information tables T one after another from the head of the storage position MP of the memory MP and to arrange them without a gap in the order of use, the order of use among the plurality of information tables T is adjacent to each other. This is to arrange the information table T so that the storage position MP of the memory M is closest to each other, thereby shortening the moving distance between the storage positions MP when using the information table T and shortening the processing time. To increase the processing speed.

【0032】また、本実施形態の情報テーブルTのそれ
ぞれには、次に使用する情報テーブルTの記憶位置MP
との相対アドレスにより形成した位置情報Pが付加され
ている。
Each of the information tables T of the present embodiment has a storage location MP of the information table T to be used next.
And the position information P formed by the relative address with respect to the above.

【0033】すなわち、図1に示すように、情報テーブ
ルT1,T2,T3,T4,T5,T6のそれぞれに、
次に使用する情報テーブルの位置情報P、詳しくは、情
報テーブルT1に対して次に使用する情報テーブルT2
を記憶する記憶位置MP3のとの相対アドレスにより形
成した位置情報P2(P2=MP3−MP1=32(P
2=20H:Hは16進数を示す、以下同様))、情報
テーブルT2に対して次に使用する情報テーブルT3の
記憶位置MP5との相対アドレスにより形成した位置情
報P3(P3=MP5−MP3=32(P3=20
H))、情報テーブルT3に対して次に使用する情報テ
ーブルT4の記憶位置MP6との相対アドレスにより形
成した位置情報P4(P4=MP6−MP5=16(P
4=10H))、情報テーブルT4に対して次に使用す
る情報テーブルT5の記憶位置MP4との相対アドレス
により形成した位置情報P5(P5=MP4−MP6=
−32(P5=E0H))、情報テーブルT5に対して
次に使用する情報テーブルT6の記憶位置MP2との相
対アドレスにより形成した位置情報P6(P6=MP2
−MP4=−32(P6=E0H))、情報テーブルT
6に対して次に使用する情報テーブルT1の記憶位置M
P1との相対アドレスにより形成した位置情報P1(P
1=MP1−MP2=−16(P1=F0H)が付加さ
れている。
That is, as shown in FIG. 1, each of the information tables T1, T2, T3, T4, T5, T6 includes:
The position information P of the information table to be used next, more specifically, the information table T2 to be used next to the information table T1
Is stored as position information P2 (P2 = MP3-MP1 = 32 (P
2 = 20H: H indicates a hexadecimal number, the same shall apply hereinafter)), position information P3 (P3 = MP5-MP3 = 32 (P3 = 20
H)), position information P4 (P4 = MP6−MP5 = 16 (P4) formed by the relative address of the information table T3 and the storage position MP6 of the information table T4 to be used next.
4 = 10H)), and position information P5 (P5 = MP4−MP6 =
-32 (P5 = E0H)), and position information P6 (P6 = MP2) formed by the relative address of the information table T5 to the storage position MP2 of the information table T6 to be used next.
−MP4 = −32 (P6 = E0H)), information table T
6, the storage location M of the information table T1 to be used next
Position information P1 (P
1 = MP1-MP2 = −16 (P1 = F0H) is added.

【0034】つまり、情報テーブルTを記憶するメモリ
Mの記憶位置MPの相対アドレスとは、情報テーブルT
を記憶したメモリMの記憶領域の先頭アドレスと、次に
使用する情報テーブルTを記憶したメモリMの記憶領域
の先頭アドレスとの両アドレスの差分のことである。
That is, the relative address of the storage position MP of the memory M for storing the information table T
Is the difference between the start address of the storage area of the memory M storing the information table and the start address of the storage area of the memory M storing the information table T to be used next.

【0035】ここで、情報テーブルTの位置情報Pの算
出について説明する。
Here, the calculation of the position information P of the information table T will be described.

【0036】情報テーブルTの位置情報Pの算出動作
は、メモリMに記憶した情報テーブルTの記憶位置Pの
アドレスと、次に使用する情報テーブルTの記憶位置M
Pのアドレスとの差分値を算出することにより開始す
る。なお、メモリMにおける記憶位置Pのアドレスの差
分値の算出には16進数が用いられる。
The calculation operation of the position information P of the information table T is performed by calculating the address of the storage position P of the information table T stored in the memory M and the storage position M of the information table T to be used next.
It starts by calculating the difference value with the address of P. A hexadecimal number is used to calculate the difference value of the address of the storage position P in the memory M.

【0037】つぎに、16進数で表示される差分値のビ
ット長を、符号をそのままで拡張する。
Next, the bit length of the difference value represented by a hexadecimal number is extended without changing the code.

【0038】ここでの差分値は、8ビットで表現されて
いるので、最上位のビット7が符号ビットとなる、つぎ
に、使用する情報テーブルTのアドレスを算出するため
に16ビットの演算をする必要がある場合、前記差分値
を16ビットで表現するために上位8ビットを符号ビッ
トで満たす。これにより前記8ビットで表現されている
差分値を16ビットで表現した差分値に変換することが
できる。さらに、32ビットで演算する必要がある場合
は、16ビットに変換するときと同様にして、上位24
ビットを符号ビットで満たすことにより、32ビットで
演算できるように符号拡張することができる。
Since the difference value is represented by 8 bits, the most significant bit 7 becomes a sign bit. Next, a 16-bit operation is performed to calculate the address of the information table T to be used. If necessary, the upper 8 bits are filled with sign bits in order to express the difference value with 16 bits. Thus, the difference value represented by the 8 bits can be converted into a difference value represented by 16 bits. Further, when it is necessary to perform an operation with 32 bits, the upper 24 bits are converted in the same manner as when converting to 16 bits.
By filling bits with sign bits, sign extension can be performed so that the operation can be performed with 32 bits.

【0039】つぎに、メモリMに記憶した情報テーブル
Tの記憶位置MPのアドレスに、符号拡張した差分値を
加算することにより次に使用する情報テーブルTの記憶
位置MPの相対アドレスを得る。
Next, by adding the sign-extended difference value to the address of the storage position MP of the information table T stored in the memory M, the relative address of the storage position MP of the information table T to be used next is obtained.

【0040】なお、算出した相対アドレスは、位置情報
Pとして情報テーブルTに付加するとともに、戻り値を
次に使用する情報テーブルTのアドレスする。
The calculated relative address is added to the information table T as position information P, and the return value is used as the address of the information table T to be used next.

【0041】そして、メモリMに記憶された情報テーブ
ルTを使用する際には、各情報テーブルTに付加された
位置情報Pに基づいて、図1に矢印にて示す情報テーブ
ルTの使用順、すなわち、情報テーブルT1,T2,T
3,T4,T5,T6,T1…の順序でメモリMから呼
び出して使用するようになっている。
When the information tables T stored in the memory M are used, the order of use of the information tables T indicated by arrows in FIG. That is, the information tables T1, T2, T
., T4, T5, T6, T1,...

【0042】なお、情報テーブルTを記憶する記憶位置
MPは、他のデータあるいはプログラムなどを記憶可能
な共用のメモリの空の領域に設けてもよい。この場合、
各記憶位置の絶対アドレスは、メモリの使用状態に応じ
て設定されるが、相対アドレスは変わらない。
The storage location MP for storing the information table T may be provided in an empty area of a shared memory capable of storing other data or programs. in this case,
The absolute address of each storage location is set according to the state of use of the memory, but the relative address does not change.

【0043】つぎに、前述した構成からなる本実施形態
の作用について説明する。
Next, the operation of the present embodiment having the above-described configuration will be described.

【0044】本実施形態の情報テーブルの記憶方法を用
いた情報テーブルの記憶構造によれば、複数の情報テー
ブルTのうちの使用順序が相互に隣位する情報テーブル
Tを、メモリMの記憶位置MPが最も接近するように配
置することができるので、位置情報Pを1バイトに収め
ることができ、しかも、情報テーブルTの配置、大きさ
を自由に設定することができ、かつ、処理時間を短縮す
ることができる。
According to the information table storage structure using the information table storage method of the present embodiment, the information table T whose use order is mutually adjacent among the plurality of information tables T is stored in the memory M storage location. Since the MPs can be arranged so as to be closest to each other, the position information P can be stored in one byte, and the arrangement and size of the information table T can be freely set, and the processing time can be reduced. Can be shortened.

【0045】なお、本実施形態においては、複数の情報
テーブルTをメモリMの記憶位置MPの先頭側から一つ
おきにして使用順に隙間なく配置する構成としたが、複
数の情報テーブルTをメモリMの記憶位置MPの先頭側
から二つあるいは三つなどの複数おきにして使用順に隙
間なく配置する構成としてもよいが、この場合には、情
報テーブルTを使用する際の記憶位置MP間の移動距離
が長くなり、処理時間を短縮して処理速度の高速化を図
る効果が少し低下する。
In the present embodiment, the plurality of information tables T are arranged from the head of the storage position MP of the memory M at every other position and are arranged without any gap in the order of use. A configuration may be adopted in which every two or three, for example, from the top of the storage location MP of M are arranged in the order in which they are used without any gap. The moving distance becomes longer, and the effect of shortening the processing time and increasing the processing speed is slightly reduced.

【0046】ここで、本発明に係る情報テーブルの記憶
方法を用いた情報テーブルの記憶構造を適用する装置に
ついて、コンピュータなどの出力装置として用いられて
いる印刷装置を例示して説明する。
Here, an apparatus to which the information table storage structure using the information table storage method according to the present invention is applied will be described by exemplifying a printing apparatus used as an output device such as a computer.

【0047】図2は本発明に係る情報テーブルの記憶方
法を用いた情報テーブルの記憶構造を適用する印刷装置
の要部の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a main part of a printing apparatus to which an information table storage structure using the information table storage method according to the present invention is applied.

【0048】図2に示すように、本実施形態の印刷装置
1は、少なくとも処置装置であるCPU2と、情報テー
ブルTを記憶するための適宜な容量のROM、RAMな
どにより形成されたメモリMとを有している。
As shown in FIG. 2, the printing apparatus 1 according to the present embodiment includes at least a CPU 2 as a treatment device, and a memory M formed of a ROM, a RAM, or the like having an appropriate capacity for storing an information table T. have.

【0049】そして、印刷装置1のCPU2は、図2に
おいて破線にて示すコンピュータなどの上位装置3から
出力される印刷情報を受信し、この受信した印刷情報を
図示しないメモリに記憶されたプログラムに基づいて解
析して実際の印刷に用いる印刷データに変換するメイン
処理と、このメイン処理により形成した印刷データに基
づいてメカニズムを駆動するメカ処理などの各種の処理
を実行することで用紙に対する文字や図形などの画像の
印刷を行っている。
Then, the CPU 2 of the printing apparatus 1 receives the print information output from the host device 3 such as a computer indicated by a broken line in FIG. 2, and converts the received print information into a program stored in a memory (not shown). By performing various processes such as a main process of analyzing based on the print data to be converted into print data to be used for actual printing, and a mechanical process of driving a mechanism based on the print data formed by the main process, characters and the like on a sheet can be obtained. Printing of images such as figures.

【0050】前記CPU2は、アキュムレータ、演算論
理ユニット、デコーダ、命令レジスタ、汎用レジスタ、
制御回路、プログラムカウンタなどにより構成されてお
り、メイン処理のルーチンにおいてメカニズム4、例え
ば、給紙機構、排紙機構および印刷制御機構などの各種
の機構の動作に必要な動作命令の情報が記述された情報
テーブルTを複数形成してメモリMに記憶し、メカ処理
のルーチンでメモリMに記憶した複数の情報テーブルT
を使用順にメモリMから呼び出して情報テーブルTに記
述された動作をメカニズム4で実行するように構成され
ている。
The CPU 2 includes an accumulator, an arithmetic and logic unit, a decoder, an instruction register, a general-purpose register,
It is composed of a control circuit, a program counter, and the like. In the main processing routine, information of operation commands necessary for operation of the mechanism 4, for example, various mechanisms such as a paper feed mechanism, a paper discharge mechanism, and a print control mechanism, is described. A plurality of information tables T are formed and stored in the memory M, and a plurality of information tables T stored in the memory M in a mechanical processing routine.
Are called from the memory M in the order of use, and the operation described in the information table T is executed by the mechanism 4.

【0051】なお、情報テーブルTとしては、モータ相
初期化、モータホーミング、モータ移動命令(給紙位
置)、カム位置変更命令(給紙位置)、給紙命令、指定
位置間印刷(使用バッファ)、用紙送り命令(長さ指
定)、指定位置へモータ駆動命令、指定行数印刷命令、
排紙命令などの各種のパラメータが記述される。そし
て、これらのパラメータの値の異なるものが複数形成さ
れて、複数の情報テーブルTとしてメモリMに記憶され
る。
The information table T includes motor phase initialization, motor homing, motor movement command (feed position), cam position change command (feed position), feed command, printing between designated positions (use buffer). , Paper feed command (specify length), motor drive command to specified position, print command for specified number of lines,
Various parameters such as a paper ejection command are described. Then, a plurality of parameters having different values of these parameters are formed and stored in the memory M as a plurality of information tables T.

【0052】また、印刷装置1の図示しない他のメモリ
には、少なくとも上位装置4から出力される印刷情報を
受信し、この受信した印刷情報を解析して実際の印刷に
用いる印刷データに変換するメイン処理と、このメイン
処理により形成した印刷データに基づいてメカニズムを
駆動するメカ処理などの処理を実行するプログラムが記
憶されている。
The other memory (not shown) of the printing apparatus 1 receives at least print information output from the host apparatus 4, analyzes the received print information, and converts it into print data used for actual printing. A program for executing processes such as a main process and a mechanical process for driving a mechanism based on print data formed by the main process is stored.

【0053】さらに、CPU2は、予め記憶されたプロ
グラムに基づいて、メイン処理のルーチンにおいてメカ
ニズムに対する動作、例えば、イニシャライズ動作、給
紙動作、排紙動作、印刷動作などを指定(命令)する情
報を記述した情報テーブルTを前述したようにして複数
形成してメモリMに記憶し、メカ処理のルーチンでメモ
リMに記憶した複数の情報テーブルTを使用順にメモリ
Mから呼び出して情報テーブルTに記述された動作を印
刷装置1の各部で実行するように構成されている。
Further, the CPU 2 specifies (instructs) information for designating an operation for a mechanism in the main processing routine, for example, an initialization operation, a paper feeding operation, a paper discharging operation, a printing operation, etc., based on a program stored in advance. A plurality of the described information tables T are formed as described above and stored in the memory M, and the plurality of information tables T stored in the memory M are called from the memory M in the order of use and described in the information table T in a mechanical processing routine. The above operation is executed by each unit of the printing apparatus 1.

【0054】このような構成からなる本実施形態の印刷
装置1によれば、複数の情報テーブルTのうちの使用順
序が相互に隣位する情報テーブルTを、メモリMの記憶
位置MPが最も接近するように配置することができるの
で、位置情報Pを1バイトに収めることができ、しか
も、情報テーブルTの配置、大きさを自由に設定するこ
とができ、かつ、処理時間を短縮することができる。し
たがって、印刷速度の高速化を容易に図ることができ
る。
According to the printing apparatus 1 of the present embodiment having such a configuration, the information table T in which the use order of the plurality of information tables T is adjacent to each other is stored at the storage location MP of the memory M which is closest to the other. Therefore, the position information P can be stored in one byte, the arrangement and size of the information table T can be freely set, and the processing time can be reduced. it can. Therefore, it is possible to easily increase the printing speed.

【0055】なお、本発明の情報テーブルの記憶方法を
用いた情報テーブルの記憶構造は、印刷装置1に限ら
ず、コンピュータに接続される各種の入出力機器、例え
ば、スキャナ、ハードディスク装置、モデム、LANア
ダプタ、プロッタなどに用いることができる。
The storage structure of the information table using the storage method of the information table of the present invention is not limited to the printing apparatus 1, and various input / output devices connected to the computer, such as a scanner, a hard disk device, a modem, It can be used for LAN adapters, plotters and the like.

【0056】また、本発明は、前記実施形態に限定され
るものではなく、必要に応じて種々変更することができ
る。
The present invention is not limited to the above-described embodiment, but can be variously modified as needed.

【0057】[0057]

【発明の効果】以上説明したように本発明に係る情報テ
ーブルの記憶方法によれば、複数の情報テーブルのうち
の使用順序が相互に隣位する情報テーブルを、メモリの
記憶位置が最も接近するように配置することが容易かつ
確実にできるので、位置情報を1バイトに収めることが
でき、しかも、情報テーブルの配置、大きさを自由に設
定することが容易にでき、かつ、処理時間を確実に短縮
することができるなどの極めて優れた効果を奏する。
As described above, according to the information table storage method according to the present invention, the information table whose use order is mutually adjacent among a plurality of information tables has the closest memory storage position. The position information can be stored in one byte, and the arrangement and size of the information table can be freely set, and the processing time can be ensured. An extremely excellent effect such as being able to be shortened.

【0058】また、本発明に係る情報テーブルの記憶構
造によれば、複数の情報テーブルのうちの使用順序が相
互に隣位する情報テーブルを、メモリの記憶位置が最も
接近するように配置することが容易かつ確実にできるの
で、位置情報を1バイトに収めることが容易にでき、し
かも、情報テーブルの配置、大きさを自由に設定するこ
とができ、かつ、処理時間を確実に短縮することができ
るなどの極めて優れた効果を奏する。
According to the information table storage structure of the present invention, the information tables of a plurality of information tables, whose use order is adjacent to each other, are arranged such that the storage position of the memory is closest. Can be easily and reliably performed, the position information can be easily stored in one byte, and the arrangement and size of the information table can be freely set, and the processing time can be reliably reduced. It produces extremely excellent effects such as being able to do.

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

【図1】 本発明に係る情報テーブルの記憶方法を用い
た情報テーブルの記憶構造を適用するメモリの実施形態
の構造を示す説明図
FIG. 1 is an explanatory diagram showing a structure of an embodiment of a memory to which a storage structure of an information table is applied by using an information table storage method according to the present invention;

【図2】 本発明に係る情報テーブルの記憶方法を用い
た情報テーブルの記憶構造を適用する印刷装置の要部の
構成を示すブロック図
FIG. 2 is a block diagram illustrating a configuration of a main part of a printing apparatus to which an information table storage structure using an information table storage method according to the present invention is applied;

【図3】 従来の情報テーブルを使用順にメモリに記憶
する記憶構造を示す説明図
FIG. 3 is an explanatory diagram showing a storage structure for storing a conventional information table in a memory in the order of use;

【図4】 従来の情報テーブルに位置情報を単に付加し
てメモリに記憶する記憶構造を示す説明図
FIG. 4 is an explanatory diagram showing a storage structure in which position information is simply added to a conventional information table and stored in a memory.

【符号の説明】[Explanation of symbols]

1 印刷装置 2 CPU 3 上位装置 4 メカニズム M メモリ T、T1、T2、T3、T4、T5、T6 情報テーブ
ル MP、MP1、MP2、MP3、MP4、MP5、MP
6 記憶位置 P、P1、P2、P3、P4、P5、P6 位置情報
Reference Signs List 1 printing device 2 CPU 3 host device 4 mechanism M memory T, T1, T2, T3, T4, T5, T6 information table MP, MP1, MP2, MP3, MP4, MP5, MP
6 Storage location P, P1, P2, P3, P4, P5, P6 Location information

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 動作命令の情報が記述された複数の情報
テーブルを関連づけてメモリに記憶する情報テーブルの
記憶方法であって、 前記複数の情報テーブルをメモリの記憶位置の先頭側か
ら一つおきにして使用順に隙間なく配置するとともに、
前記各情報テーブルのそれぞれに、次に使用する情報テ
ーブルの記憶位置との相対アドレスにより形成した位置
情報を付加することを特徴とする情報テーブルの記憶方
法。
1. A method of storing an information table in which a plurality of information tables in which information of operation instructions is described is stored in a memory in association with each other, wherein the plurality of information tables are placed every other one from the head of a storage position of the memory. And place them without gaps in the order of use,
A method of storing information tables, wherein position information formed by a relative address to a storage position of an information table to be used next is added to each of the information tables.
【請求項2】 動作命令の情報が記述された複数の情報
テーブルを関連づけてメモリに記憶させた情報テーブル
の記憶構造であって、 前記複数の情報テーブルが前記メモリの記憶位置に先頭
側から一つおきにして使用順に隙間なく配置して記憶さ
れているとともに、前記各記憶位置に記憶される情報テ
ーブルにはそれぞれ次に使用する情報テーブルの記憶位
置との相対アドレスからなる位置情報が合わせて記憶さ
れていることを特徴とする情報テーブルの記憶構造。
2. A storage structure of an information table in which a plurality of information tables in which information of operation commands is described are stored in a memory in association with each other, wherein the plurality of information tables are stored in a storage position of the memory from a head side. The information tables stored in each of the storage locations are combined with location information including a relative address to a storage location of an information table to be used next. A storage structure of an information table, which is stored.
JP2000144556A 2000-05-17 2000-05-17 Information table storage method and storage structure Expired - Fee Related JP3782639B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000144556A JP3782639B2 (en) 2000-05-17 2000-05-17 Information table storage method and storage structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000144556A JP3782639B2 (en) 2000-05-17 2000-05-17 Information table storage method and storage structure

Publications (2)

Publication Number Publication Date
JP2001325146A true JP2001325146A (en) 2001-11-22
JP3782639B2 JP3782639B2 (en) 2006-06-07

Family

ID=18651199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000144556A Expired - Fee Related JP3782639B2 (en) 2000-05-17 2000-05-17 Information table storage method and storage structure

Country Status (1)

Country Link
JP (1) JP3782639B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100719117B1 (en) * 2005-07-27 2007-05-17 삼성전자주식회사 Broadcast receiving device connecting plural antennas and broadcast receiving method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100719117B1 (en) * 2005-07-27 2007-05-17 삼성전자주식회사 Broadcast receiving device connecting plural antennas and broadcast receiving method thereof

Also Published As

Publication number Publication date
JP3782639B2 (en) 2006-06-07

Similar Documents

Publication Publication Date Title
EP0179206B1 (en) Table driven print formatting
CA1162318A (en) Character set expansion
JP2000158724A (en) Image-processing apparatus, image processing method and recording medium
US20020121209A1 (en) Method and apparatus for printing computer generated images
JP2661224B2 (en) Memory expansion method
JP2001325146A (en) Method for storing information table and storage structure
JPH07168681A (en) Pdl data processor and its control method, and pattern expanding device
JPH03114856A (en) Printer data management system
JP2001100957A (en) Printer and print engine control method
JPH05274095A (en) Printer controller
JPH01255923A (en) Data processor
JP2737880B2 (en) Character processing apparatus and method
JP2603833B2 (en) Printer control device
JP2803560B2 (en) Printer control device
JPH06110888A (en) Method and device for document output
JPH02178826A (en) Page printer
JPH04284272A (en) Printing controller
JP2002297340A (en) Printing controller and printing data processing method
JPH03128262A (en) Character generation device
JPH02136256A (en) Font mode setting system of data processing apparatus
JPH01173094A (en) Image output device having character indicator
JPH0596784A (en) Printer device
JPH09188023A (en) Printer apparatus
JPH0546331A (en) Printer
JPH03114857A (en) Printer data management system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060307

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060310

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees