JPH0410021A - keyboard device - Google Patents
keyboard deviceInfo
- Publication number
- JPH0410021A JPH0410021A JP2112761A JP11276190A JPH0410021A JP H0410021 A JPH0410021 A JP H0410021A JP 2112761 A JP2112761 A JP 2112761A JP 11276190 A JP11276190 A JP 11276190A JP H0410021 A JPH0410021 A JP H0410021A
- Authority
- JP
- Japan
- Prior art keywords
- key
- flag
- physical
- logical
- column
- 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.)
- Pending
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、液晶タッチキーボード等のようにマトリクス
状に微小区画の物理的キーが配設されてなり、各物理的
キーに対してそれぞれ任意に論理的キー番号を割り付け
ることにより各物理的キーのキー機能か決定されるキー
ボード装置に関わり、特に論理的キー番号の割付は作業
の効率化をはかったものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention is characterized in that physical keys are arranged in micro sections in a matrix, such as in a liquid crystal touch keyboard, and each physical key has an arbitrary function. This invention relates to a keyboard device in which the key function of each physical key is determined by assigning a logical key number to the keyboard, and in particular, the assignment of logical key numbers is intended to improve work efficiency.
[従来の技術]
従−来、例えば第15図に示すように、レジスタ本体1
に液晶タッチキーボード2を信号ケーブル3を介して電
気的に接続し、上記液晶タッチキーボード2を操作する
ことにより商品の販売登録を行うようにした電子式キャ
ッシュレジスタが知られている。[Prior Art] Conventionally, for example, as shown in FIG.
There is known an electronic cash register in which a liquid crystal touch keyboard 2 is electrically connected to a computer via a signal cable 3, and product sales are registered by operating the liquid crystal touch keyboard 2.
この液晶タッチキーボード2は、マトリクス状に微小区
画の物理的キーが配設された透明のパネルキー4と、そ
の下側に設けられた液晶表示板5から構成されている。The liquid crystal touch keyboard 2 is composed of a transparent panel key 4 in which physical keys are arranged in minute sections in a matrix, and a liquid crystal display board 5 provided below the transparent panel key 4.
そして、第15図に示すように、71・・リクス状に配
設された物理的キー(破線内の1区画か1個の物理的キ
ーを表している)のうち6)いくつかをまとめて1個の
論理的キー(実線内のハツチング部分が1個の論理的キ
ーを表している)として機能させるのか一般的である。Then, as shown in Fig. 15, some of the physical keys (representing one section or one physical key within the broken line) arranged in a 71... Generally, it functions as one logical key (the hatched part within the solid line represents one logical key).
そのためには、同一機能を果たす物理的キーに対l、て
同一の論理的キー番号を割り付ける必要かある。例えば
第16図に示す例では、(C,5)。To do this, it is necessary to allocate the same logical key number to physical keys that perform the same function. For example, in the example shown in FIG. 16, (C, 5).
(c、6)、 (c、7)、 (d、5)、(d、
6)、(d、7)、(e、5)、(e、6)。(c, 6), (c, 7), (d, 5), (d,
6), (d, 7), (e, 5), (e, 6).
(e、7)、(f、5)、(f、6)、(f、7)の1
2個の物理的キーに対して同一の論理的キー番号を割付
けることになる。1 of (e, 7), (f, 5), (f, 6), (f, 7)
The same logical key number will be assigned to the two physical keys.
このような論理的キー番号の割付は作業は、従来、レジ
スタ本体1側のキーボードから任意の論理的キー番号と
、その論理的キー番号に属する全ての物理的キーのキー
番号とをキー人力することによって行われていた。Conventionally, the assignment of such logical key numbers is done by manually inputting an arbitrary logical key number and the key numbers of all physical keys belonging to that logical key number from the keyboard on the side of the register body 1. It was done by
[発明が解決しようとする課題]
上述したようにマトリクス状に配設された物理的キーに
対[、て論理的キー番号を割り付ける場合、従来は特定
された論理的キー番号に属すZ、全ての物理的キーを指
定操作しなければならなかった。[Problems to be Solved by the Invention] As described above, when assigning logical key numbers to physical keys arranged in a matrix, conventionally all had to perform specific physical key operations.
このため、物理的キーに対する論理的キーの相対的な大
きさか大きくなればなるほど同一論理的キー番号が割り
付けられる物理的キーの数か増加し、割付は作業の効率
か悪かった。Therefore, as the relative size of the logical key to the physical key increases, the number of physical keys to which the same logical key number is assigned increases, making the assignment inefficient.
そこで本発明は、同一論理的キー番号が割り付けられる
物理的キーの数が増加しても実際に割付は作業を行う物
理的キーの数を低減でき、割付は作業の効率化をはかり
得るキーボード装置を提供しようとするものである。Therefore, the present invention provides a keyboard device in which even if the number of physical keys to which the same logical key number is assigned increases, the number of physical keys that are actually used for assignment can be reduced, and the assignment can improve work efficiency. This is what we are trying to provide.
[課題を解決するための手段]
本発明は、マトリクス状に微小区画の物理的キーが配設
されてなり、各物理的キーに対してそれぞれ任意に論理
的キー番号を割り付けることにより各物理的キーのキー
機能が決定されるキーボード装置において、論理的キー
番号の割付は設定時、選択された物理的キーに対して所
定の論理的キー番号を設定する選択キー設定手段と、こ
の設定手段により同一論理的キー番号か設定された選択
物理的キー群によって閉ループか完成しているか否かを
判定するループ判定手段と、この判定手段により閉ルー
プの完成が判定されると、そのループ内に位置する未選
択の物理的キーに対して同一論理的キー番号を自動設定
する未選択キー設定手段とを備えたものである。[Means for Solving the Problems] In the present invention, physical keys of minute sections are arranged in a matrix, and each physical key is arbitrarily assigned a logical key number. In a keyboard device in which the key function of a key is determined, logical key number assignment is performed by a selection key setting means that sets a predetermined logical key number for a selected physical key at the time of setting, and by this setting means. Loop determining means for determining whether a closed loop is completed based on the same logical key number or a set selected physical key group, and when the closed loop is determined to be completed by this determining means, the loop is located within the loop. and unselected key setting means for automatically setting the same logical key number to unselected physical keys.
[作 用]
このような構成の本発明装置であれば、例えば第1図(
B)の実線内ハツチング部分に位置する12個の物理的
キーで1個の論理的キーを形成する場合、第1図(A)
に示すように当該論理的キーの枠となる10個の物理的
キー(c、5)。[Function] If the device of the present invention has such a configuration, for example, as shown in FIG.
In the case where one logical key is formed by 12 physical keys located in the hatched part within the solid line in Fig. 1 (A)
As shown in , there are 10 physical keys (c, 5) that form the frame of the logical key.
(c、6)、(C,7)、(d、7)、(e7)、(f
、7)、(f、6)、(f、5)。(c, 6), (C, 7), (d, 7), (e7), (f
,7),(f,6),(f,5).
(e、5)、(d、5)を順番に選定して該当する論理
的キー番号を設定する。そうすると、同一論理的キー番
号か設定された選択物理的キー群によって閉ループが完
成するので、第1図(B)に示すようにその閉ループ内
に位置する2個の物理的キー(d、6)、(e、6)に
対しても同一の論理的キー番号か自動的に設定される。(e, 5) and (d, 5) are selected in order and a corresponding logical key number is set. Then, a closed loop is completed by a group of selected physical keys set with the same logical key number, so the two physical keys (d, 6) located within the closed loop are , (e, 6), the same logical key number is automatically set.
従って、同一論理的キー番号が割り付けられる物理的キ
ーの数が12個であるのに対して実際に割付は作業する
物理的キーは10個で済み、閉ループ内の2個分か省略
されるので、作業効率が向上される。Therefore, although the number of physical keys to which the same logical key number is assigned is 12, the number of physical keys to be actually assigned is only 10, and two in the closed loop are omitted. , work efficiency is improved.
[実施例コ
以下、本発明を第15図に示す電子式キャッシュレジス
タの液晶タッチキーボード2に適用した一実施例につい
て、図面を参照しながら説明する。[Example 1] Hereinafter, an example in which the present invention is applied to a liquid crystal touch keyboard 2 of an electronic cash register shown in FIG. 15 will be described with reference to the drawings.
第2図はレジスタ本体1の制御ブロック図であって、制
御部本体を構成するCPU (中央処理装置t)10に
、パスライン11を介して、プログラムデータなどが記
憶されるROMI 2と、商品販売データを登録処理す
るための各種メモリなどが形成されるRAM1Bとが接
続されている。また、前記液晶タッチキーボード2との
間でデータの送受信を行う通信インタフェース14、本
体側キーボード15および表示器16を制御する表示器
・キーボードコントローラ17、「登録」 「精算」「
設定」等の各種業務モードを選択するためのモートスイ
ッチ18から信号か入力されるとともに、ドロワ19及
びプリンタ20に駆動信号を出力するI10ポート21
、等か前記パスライン11を介してCPUI○に接続さ
れている。FIG. 2 is a control block diagram of the register main body 1, in which a CPU (central processing unit) 10 constituting the control unit main body is connected to a ROMI 2 in which program data and the like are stored via a path line 11, and a product. A RAM 1B in which various memories for registering sales data and the like are formed is connected. Also, a communication interface 14 that sends and receives data to and from the liquid crystal touch keyboard 2, a display/keyboard controller 17 that controls the main body side keyboard 15 and display 16, "Registration", "Payment", "
I10 port 21 receives a signal from the remote switch 18 for selecting various business modes such as "Setting", and outputs a drive signal to the drawer 19 and printer 20.
, etc. are connected to the CPUI ○ via the path line 11.
そして前記RA Ml 3には、第3図に示す論理的キ
ー対応メモリ30か形成されている。このメモリ30は
、液晶タッチキーボード2のパネルキー4にマトリクス
状に微小区画で形成された物理的キーに対してそれぞれ
設定される論理的キー番号を記憶するためのもので、1
個の物理的キーを区画(i、j)とし、(1,1)〜(
m、n)までmXn個の物理的キーか配設されている場
合を示している。A logical key correspondence memory 30 shown in FIG. 3 is formed in the RAM 3. This memory 30 is for storing logical key numbers respectively set for physical keys formed in micro sections in a matrix on the panel keys 4 of the liquid crystal touch keyboard 2.
Let the physical keys of (1, 1) to (
A case is shown in which mXn physical keys are provided up to (m, n).
また前記RAFv工13には、論理的キー番号の割付は
設定用として、第4図に示す論理的キー番号メモリ31
および選択キーテーブル32と、第5図に示すアウトサ
イドテーブル33およびインサイドテーブル34とが形
成されている。The RAFv unit 13 also has a logical key number memory 31 shown in FIG. 4 for setting logical key numbers.
A selection key table 32, and an outside table 33 and an inside table 34 shown in FIG. 5 are formed.
上記論理的キー番号メモリ31には、割付対象の論理的
キー番号が記憶される。The logical key number memory 31 stores logical key numbers to be assigned.
上記各テーブル32乃至34には、それぞれ液晶タッチ
キーホード2の物理的キーに対応してマトリクス状にフ
ラグが設定されており、必要に応してセット(1)/リ
セット(0)される。ここで、選択キーテーブル32に
おける1区画のフラグをA(i、j)で示し、アウトサ
イドテーブル33における1区画のフラグをB(i、j
)で示し、インサイドテーブル34における1区画のフ
ラグをC(i、j)で示すことにする。In each of the tables 32 to 34, flags are set in a matrix in correspondence with the physical keys of the liquid crystal touch keychain 2, and are set (1)/reset (0) as necessary. Here, the flag of one section in the selection key table 32 is indicated by A (i, j), and the flag of one section in the outside table 33 is indicated by B (i, j
), and the flag of one section in the inside table 34 is shown as C(i,j).
しかして、CPUI○は、モードスイッチ18により「
設定」モートか選択されている状態で、本体側キーボー
ド15より液晶タッチキーボード2に対する論理的キー
割付は処理が指示入力されると、第6図に示す処理を実
行するようにプログラム設定されている。すなわち、所
定の初期化処理を行った後、ST(ステップ)1として
本体側キーボード15からのキー人力、またはST2と
して液晶タッチキーボード2からのキー人力を待つ。Therefore, the mode switch 18 causes the CPU ○ to
The logical key assignment for the LCD touch keyboard 2 from the keyboard 15 on the main body side is programmed to execute the process shown in FIG. 6 when a process instruction is input while "Set" mode is selected. . That is, after performing a predetermined initialization process, it waits for key input from the main body keyboard 15 in ST (step) 1 or key input from the liquid crystal touch keyboard 2 in ST2.
ここで、STIにて本体側キーボード15がらのキー人
力かあり、それか論理的キー番号のキー人力であるとす
ると、その論理的キー番号をメモリ31にセットすると
もに表示器16に表示させる。また、制御フラグFをセ
ット(1)して、STIに戻る。Here, in the STI, if there is a manual keystroke from the keyboard 15 on the main body side, or if it is a logical key number keystroke, the logical key number is set in the memory 31 and displayed on the display 16. Also, the control flag F is set (1) and the process returns to STI.
これに対し、STIにて本体側キーホード15からのキ
ー人力かあり、それが論理的キー番号の設定を指示する
キー人力であるとすると、選択キーテーブル32からセ
ットされているフラグA(i、j)を全て抽出し、論理
的キー対応テーブル30の抽出フラグに対応するエリア
に論理的キー番号メモリ31内の論理的キー番号を設定
する。On the other hand, if there is a key input from the main body side key fob 15 in STI, and it is a key input that instructs the setting of a logical key number, flag A(i, j) are all extracted, and the logical key number in the logical key number memory 31 is set in the area corresponding to the extraction flag of the logical key correspondence table 30.
そして、制御フラグFをリセット(o)して、ST1に
戻る。Then, the control flag F is reset (o) and the process returns to ST1.
また、STIにて本体側キーボード15からのキー人力
があり、それが論理的キー割付は処理の終了を指示する
キー人力であるとすると、この処理ルーチンを抜ける。Further, if there is a key input from the main body keyboard 15 in the STI, and the logical key assignment is a key input to instruct the end of the process, this processing routine is exited.
一方、STIにて本体側キーボード]5がらのキー人力
がなく、ST2にて液晶タッチキーボード2から任意の
物理的キーのキー人力があると、ST3として制御フラ
グFを調べる。そして、この制御フラグFがリセットさ
れていたならば、論理的キー番号が特定されていないの
で、液晶タッチキーボード2からのキー人力を無視して
、ST1に戻る。On the other hand, if there is no key force on the main body keyboard 5 in the STI and there is key force on any physical key from the liquid crystal touch keyboard 2 in ST2, the control flag F is checked in ST3. If this control flag F has been reset, the logical key number has not been specified, so the key input from the liquid crystal touch keyboard 2 is ignored and the process returns to ST1.
これに対し、ST3にて制御フラグFがセットされてい
ることか判断されると、ST4として選択キーテーブル
32に対し、キー人力された物理的キーに対応するフラ
グA(i、j)がセットされているか否かを判断する。On the other hand, if it is determined in ST3 that the control flag F is set, a flag A(i, j) corresponding to the manually input physical key is set in the selection key table 32 in ST4. Determine whether or not.
そして、リセットされている場合にはセットし、かつ液
晶タッチキーボード2の液晶表示板3を制御して該当物
理的キーを点灯させる(選択キー設定手段)。一方、セ
ットされている場合にはリセットし、かつ液晶タッチキ
ーボード2の液晶表示板3を制御して該当物理的キーを
消灯させる。If it has been reset, it is set, and the liquid crystal display panel 3 of the liquid crystal touch keyboard 2 is controlled to light up the corresponding physical key (selection key setting means). On the other hand, if it is set, it is reset, and the liquid crystal display panel 3 of the liquid crystal touch keyboard 2 is controlled to turn off the corresponding physical key.
その後、第7図に示すループチエツク処理を実行する。Thereafter, the loop check process shown in FIG. 7 is executed.
すなわち、アウトサイドテーブル33及びインサイドテ
ーブル34の初期化(フラグ−全リセット)を行った後
、第1チエツク処理、論理和否定処理、第2チエツク処
理および判定処理を順次行って、STIに戻る。That is, after initializing the outside table 33 and the inside table 34 (flag-all reset), the first check process, the OR negation process, the second check process, and the determination process are performed in sequence, and the process returns to STI.
ここで、第1チエツク処理は、既にキー人力された物理
的キーより明らかに外側にあり、閉ループによって囲ま
れる可能性のない他の物理的キーを調べ、そのキー情報
をアウトサイドテーブル33に記憶する処理である。す
なわち、第8図に示すように、先ず行カウンタi及び列
カウンタjを「1」に初期設定する。そして、選択キー
テーブル32のフラグA(i、j)を調べる。ここで、
フラグA(i、j)かりセットされていた場合には、そ
のフラグに対応する物理的キーは既にキー人力された物
理的キーより先頭列方向に対して外側にあるので、アウ
トサイドテーブル33の対応するフラグB(i、j)を
セットする。次いで、列カウンタjを「1」だけ加算し
て、再度、選択キーテーブル32のフラグA(i、j)
を調べる。Here, the first check process is to check other physical keys that are obviously outside the physical key that has already been entered manually and that are not likely to be surrounded by a closed loop, and store the key information in the outside table 33. This is the process of That is, as shown in FIG. 8, first, a row counter i and a column counter j are initialized to "1". Then, the flag A(i, j) of the selection key table 32 is checked. here,
If the flag A (i, j) is set, the physical key corresponding to that flag is located outside the physical key that has already been manually pressed in the direction of the first column. Set the corresponding flag B(i,j). Next, the column counter j is incremented by "1" and the flag A(i, j) of the selection key table 32 is set again.
Find out.
こうして、i行目のフラグA(i、j)を1列目から順
に調べる。そして、1行目のフラグA(i、j)が全て
リセットされていた場合には、列カウンタjが最終列n
を越えるので次ステツプに進む。すなわち、行カウンタ
iを「1」たけ加算しかつ列カウンタJを「1」に初期
設定して、1+1行目のフラグA(i、j)を1列目か
ら順に調べる。In this way, the flag A(i, j) in the i-th row is checked in order from the first column. Then, if the flags A(i, j) in the first row have all been reset, the column counter j will be the last column n.
, so proceed to the next step. That is, the row counter i is incremented by "1", the column counter J is initialized to "1", and the flag A(i, j) in the 1+1st row is checked in order from the 1st column.
これに対し、1行目のフラグA(i、j)のなかでセッ
トされているフラグを検出すると、そのフラグに対応す
る物理的キーは既にキー人力されているので、列カウン
タjを最終列rnJに設定して選択キーテーブル32の
フラグA(i、j)を調べる。ここで、フラグA(i、
j)かりセットされていた場合には、そのフラグに対応
する物理的キーは既にキー人力された物理的キーより最
終列方向に対して外側にあるので、アウトサイドテーブ
ル33の対応するフラグB(i、j)をセットする。次
いで、列カウンタJを「1」たけ減算して、再度、選択
キーテーブル32のフラグA(i、j)を調べる。On the other hand, when a flag set in flag A(i, j) in the first row is detected, the physical key corresponding to that flag has already been keyed, so column counter j is set to the last column. rnJ and check the flag A(i, j) of the selection key table 32. Here, flag A(i,
j) If the flag has been set, the physical key corresponding to that flag is located outside of the physical key that has already been manually pressed in the direction of the final column, so the corresponding flag B( i, j). Next, the column counter J is decremented by "1" and the flag A(i, j) of the selection key table 32 is checked again.
こうして、i行目のフラグA’(i、j)を今度はn列
目から順に調べる。そして、1行目のフラグA(i、j
)のなかでセットされているフラグを検出すると、その
フラグに対応する物理的キーは既にキー人力されている
ので次ステツプに進む。In this way, the flag A'(i, j) in the i-th row is checked in order from the n-th column. Then, the flag A(i, j
), the physical key corresponding to that flag has already been pressed manually, so the process proceeds to the next step.
すなわち、行カウンタiを「1」だけ加算しかつ列カウ
ンタjを「1」に初期設定して、i+1行目のフラグA
(i、j)を1列目から順に調べる。That is, the row counter i is incremented by "1", the column counter j is initialized to "1", and the flag A of the i+1st row is set.
Examine (i, j) in order from the first column.
こうして、1行目から順にm行目まで同様のフラグチエ
ツクを繰り返す。そして、行カウンタiが最終行rmJ
を越えたならば次ステツプに進む。In this way, the same flag check is repeated sequentially from the first line to the mth line. Then, the row counter i is the last row rmJ
If the limit is exceeded, proceed to the next step.
すなわち、再度行カウンタi及び列カウンタjを「1」
に初期設定して選択キーテーブル32のフラグA(i、
j)を調べる。ここで、フラグA(i、j)がリセット
されていた場合には、そのフラグに対応する物理的キー
は既にキー人力された物理的キーより先頭行方向に対し
て外側にあるので、アウトサイドテーブル33の対応す
るフラグB(i、j)をセットする。次いて、行カウン
タ1を「1」たけ加算して、再度、選択キーテーブル3
2のフラグA(i、j)を調べる。That is, the row counter i and column counter j are set to "1" again.
flag A(i,
Check j). Here, if flag A (i, j) has been reset, the physical key corresponding to that flag is already outside the physical key that has been manually pressed in the first row direction, so it is outside Set the corresponding flag B(i,j) in table 33. Next, add "1" to the row counter 1, and select the selection key table 3 again.
Check the flag A(i, j) of No.2.
こうして、J列目のフラグA、(i、j)を1行目から
順に調べる。そして、J夕り目のフラグA(i、j)が
全てリセットされていた場合には、行カウンタiか最終
行rmJを越えるので次ステツプに進む。すなわち、列
カウンタjを「1」たけ加算しかつ行カウンタiを「]
」に初期設定して、j+1夕り目のフラグA(i、j)
を1行目から順に調べる。In this way, the flags A, (i, j) in the J column are checked in order from the first row. If the flags A(i, j) for the J evening have all been reset, the row counter i exceeds the final row rmJ, and the process advances to the next step. In other words, add "1" to the column counter j and add "]" to the row counter i.
”, and j+1 dusk flag A(i, j)
Check sequentially starting from the first line.
これに対し、」列目のフラグA(i、j)のなかでセッ
トされているフラグを検出すると、そのフラグに対応す
る物理的キーは既にキー人力されているので、行カウン
タlを最終行rmJに設定して選択キーテーブル32の
フラグA(i、j)を調べる。ここで、フラグA(i、
j)がリセットされていた場合には、そのフラグに対応
する物理的キーは既にキー人力された物理的キーより最
終行方向に対して外側にあるので、アウトサイドテーブ
ル33の対応するフラグB(i、j)をセツトする。次
いて、行カウンタ1を「1」たけ減算して、再度、選択
キーテーブル32のフラグA(i、j)を調べる。On the other hand, when a flag set in column A (i, j) is detected, the physical key corresponding to that flag has already been pressed manually, so the row counter l is set to the last row. rmJ and check the flag A(i, j) in the selection key table 32. Here, flag A(i,
j) has been reset, the physical key corresponding to that flag is located outside of the physical key that has already been manually pressed in the direction of the last row, so the corresponding flag B( i, j). Next, the row counter 1 is decremented by "1" and the flag A(i, j) of the selection key table 32 is checked again.
こうして、j列目のフラグA(i、j)を今度はm行目
から順に調べる。そして、j列目のフラグA(i、j)
のなかてセットされているフラグを検出すると、そのフ
ラグに対応する物理的キーは既にキー人力されているの
で次ステツプに進む。In this way, the flag A(i, j) in the jth column is checked in order from the mth row. And the flag A(i, j) in the jth column
If a flag is detected that is set in the flag, the physical key corresponding to that flag has already been pressed manually, so the process proceeds to the next step.
すなわち、列カウンタjを「1」だけ加算しかつ行カウ
ンタiを「1」に初期設定して、j+1列目のフラグA
(i、j)を1行目から順に調べる。That is, add "1" to column counter j, initialize row counter i to "1", and set flag A of column j+1.
Examine (i, j) in order from the first row.
こうして、1列目から順にn列目まで同様のフラグチエ
ツクを繰り返す。そして、列カウンタjが最終列rnJ
を越えたならば次の論理和否定処理に移行する。In this way, the same flag check is repeated sequentially from the first column to the nth column. Then, column counter j is the last column rnJ
If the value exceeds 0, the process moves to the next logical sum negation process.
論理和否定処理は、選択キーテーブル32の各フラグA
(i、j)とアウトサイドテーブル33の各フラグB(
i、j)との論理和否定を演算し、その演算結果から閉
ループによって囲まれる可能性のある物理的キーのキー
情報をインサイドテーブル34に記憶する処理である。The logical sum negation process is performed using each flag A of the selection key table 32.
(i, j) and each flag B(
This is a process of calculating the logical OR negation with i, j) and storing key information of physical keys that may be surrounded by a closed loop in the inside table 34 based on the result of the calculation.
すなわち、第9図に示すように、先す行カウンタ1及び
列カウンタjを「1」に初期設定する。そして、選択キ
ーテーブル32のフラグA(i、j)を調べる。ここで
、フラグA(i、j)がリセットされていた場合には、
アウトサイトテーブル33のフラグB(i、j)を調べ
る。そして、フラグB(i、j)もリセットされていた
場合には、そのフラグに対応する物理的キーは閉ループ
によって囲まれる可能性かあるので、インサイドテーブ
ル34の対応するフラグC(i、j)をセットする。こ
れに対し、選択キーテーブル32のフラグA(i、j)
及びアウトサイドテーブル33のフラグB(i。That is, as shown in FIG. 9, the preceding row counter 1 and column counter j are initialized to "1". Then, the flag A(i, j) of the selection key table 32 is checked. Here, if flag A(i, j) is reset,
The flag B(i, j) of the outsite table 33 is checked. If the flag B(i,j) is also reset, there is a possibility that the physical key corresponding to that flag is surrounded by a closed loop, so the corresponding flag C(i,j) of the inside table 34 Set. On the other hand, the flag A(i, j) of the selection key table 32
and flag B(i.
j)の少なくとも一方がセットされていた場合には、そ
のフラグに対応する物理的キーは閉ループによって囲ま
れる可能性かないので、インサイドテーブル34の対応
するフラグC(i、j)をリセットする。If at least one of j) is set, the corresponding flag C(i, j) in the inside table 34 is reset because there is no possibility that the physical key corresponding to that flag is surrounded by a closed loop.
しかる後、列カウンタjを「1」たけ加算して、再度、
選択キーテーブル32のフラグA(i、j)、およびア
ウトサイドテーブル33のフラグB(i、j)を調べる
。After that, add "1" to the column counter j and again,
The flag A (i, j) of the selection key table 32 and the flag B (i, j) of the outside table 33 are checked.
こうして、1行目のフラグA(i、j)及びフラグB(
i、j)について1列目から順にn列目まで同様のフラ
グチエツクを行う。そして、列カウンタjか最終列rn
Jを越えたならば、行カウンタlを「1」たけ加算し、
かつ列カウンタjを「1」に初期設定して、i+1行目
のフラグA(i、j)及びフラグB(i、j)について
1列目から順にn列目まで同様のフラグチエツクを繰り
返す。しかして、行カウンタiが最終行rmJを越えた
ならば、次の第2チエツク処理に移行する。In this way, flag A(i, j) and flag B(
A similar flag check is performed for columns i, j) sequentially from the first column to the nth column. Then column counter j or last column rn
If it exceeds J, add "1" to the row counter l,
Then, the column counter j is initialized to ``1'', and the same flag check is repeated from the 1st column to the nth column for the flag A (i, j) and the flag B (i, j) in the i+1th row. If the row counter i exceeds the last row rmJ, the process moves to the next second check process.
第2チエツク処理は、インサイドテーブル34に情報記
憶されている物理的キー、すなわち閉ループによって囲
まれる可能性のある物理的キーについて、その4方向に
隣接する物理的キーを調べる。そして、これら隣接する
物理的キーでアウトサイドテーブル33に情報記憶され
ているキーすなわち閉ループによって囲まれる可能性の
ない物理的キーか1つでも存在したならば、当該物理的
キーは閉ループによって囲まれる可能性がなくなるので
、アウトサイドテーブル33及びインサイドテーブル3
4の内容を変更する。しがして、この変更作業が行われ
なくなるまで当該処理を繰り返すものである。すなわち
、第10図に示すように、先ずリターンフラグfをリセ
ットする。また、行カウンタi及び列カウンタノを「1
」に初期設定する。そして、インサイドテーブル34の
フラグC(i、j)を調べる。ここで、フラグC(↓、
j)かりセットされていた場合には、そのフラグに対応
する物理的キーは閉ループによって囲まれる可能性がな
いので、列カウンタJを「1」たけ加算して、再度イン
サイドテーブル34のフラグC(i、j)を調べる。In the second check process, for a physical key whose information is stored in the inside table 34, that is, a physical key that may be surrounded by a closed loop, physical keys adjacent in four directions are checked. If there is even one of these adjacent physical keys whose information is stored in the outside table 33, that is, a physical key that cannot be surrounded by a closed loop, the physical key is surrounded by a closed loop. Since the possibility disappears, outside table 33 and inside table 3
Change the contents of 4. However, the process is repeated until this change operation is no longer performed. That is, as shown in FIG. 10, first the return flag f is reset. Also, set the row counter i and column counter no to "1".
”. Then, the flag C(i, j) of the inside table 34 is checked. Here, flag C (↓,
j) If the flag C( i, j).
これに対し、フラグC(i、j)がセットされていた場
合には、そのフラグに対応する物理的キーは閉ループに
よって囲まれる可能性があるので、4方向に隣接する物
理的キーに対するアウトサイドテーブル33のフラグB
(i、j+1)、B(i、 j−1)、 B (i
+1. j)、 B (i−1゜j)を順次調べる。On the other hand, if the flag C(i, j) is set, the physical key corresponding to that flag may be surrounded by a closed loop, so the outside Flag B of table 33
(i, j+1), B(i, j-1), B(i
+1. j), B (i-1゜j) are examined sequentially.
そして、少なくとも1つのフラグがセットされていた場
合には、フラグC(lJ)に対応する物理的キーは閉ル
ープによって囲まれる可能性がなくなるので、アウトサ
イドテーブル33のフラグB(i、j)をセットし、か
つインサイドテーブル34のフラグC(i、j)をリセ
ットする。また、リターンフラグf−をセットして、当
該処理の繰り返しを宣言する。その後、列カウンタjを
「1」たけ加算して、再度インサイドテーブル34のフ
ラグC(i、j)を調べる。If at least one flag is set, there is no possibility that the physical key corresponding to flag C(lJ) will be surrounded by a closed loop, so flag B(i,j) of outside table 33 is set. and reset the flag C(i,j) of the inside table 34. Also, a return flag f- is set to declare repetition of the process. Thereafter, the column counter j is incremented by "1" and the flag C(i, j) of the inside table 34 is checked again.
こうして、i行目のフラグC(i、j)について1列目
から順にn列目まで同様のフラグチエツクを行う。そし
て、列カウンタjが最終列rnJを越えたならば、行カ
ウンタiを「1」だけ加算し、かつ列カウンタjを「1
」に初期設定して、i+1行目のフラグC(i、j)に
ついて1列目から順にn列目まで同様のフラグチエツク
を繰り返す。そして、行カウンタiが最終行rm」を越
えたならば、リターンフラグfを調べる。ここで、同フ
ラグfかセットされていたならば再度当該第2チユソク
処理を実行し、リセットされていたならば次の判定処理
に移行する。In this way, a similar flag check is performed for the flag C(i, j) in the i-th row from the first column to the n-th column. If the column counter j exceeds the last column rnJ, the row counter i is incremented by 1, and the column counter j is set to 1.
'' and repeats the same flag check for the flag C(i, j) in the i+1st row from the 1st column to the nth column. If the row counter i exceeds the last row rm, the return flag f is checked. Here, if the same flag f has been set, the second check process is executed again, and if it has been reset, the process moves to the next determination process.
かくして、インサイドテーブル34に情報記憶されてい
る物理的キーは、同一論理的キー番号か設定された物理
的キー群によって形成された閉ループの内部に位置する
キーとなる。すなわち、前記第1チエツク処理、論理和
否定処理及び第2チエツク処理によって同一論理的キー
番号が設定された選択物理的キー群によって閉ループが
完成しているか否かを判定するループ判定手段が構成さ
れている。Thus, the physical keys whose information is stored in the inside table 34 are keys located inside a closed loop formed by a group of physical keys having the same logical key number or set. That is, a loop determining means is configured to determine whether a closed loop is completed by a group of selected physical keys to which the same logical key number is set by the first check process, the logical sum negation process, and the second check process. ing.
判定処理は、インサイドテーブル34に情報記憶されて
いる物理的キーが存在するか否かを判定し、その判定結
果に基づいて選択キーテーブル32の内容を変更する処
理である。すなわち、第11図に示すように、先ず行カ
ウンタi及び列カウンタjを「1」に初期設定する。そ
して、インサイドテーブル34のフラグC(i、j)を
調べる。ここで、フラグC(i、j)がリセットされて
いた場合には、そのフラグに対応する物理的キーは閉ル
ープによって囲まれていないので、列カウンタjを「1
」たけ加算して、再度インサイドテーブル34のフラグ
C(i、j)を調べる。The determination process is a process of determining whether a physical key whose information is stored in the inside table 34 exists or not, and changing the contents of the selection key table 32 based on the determination result. That is, as shown in FIG. 11, first, a row counter i and a column counter j are initialized to "1". Then, the flag C(i, j) of the inside table 34 is checked. Here, if the flag C(i,j) has been reset, the physical key corresponding to that flag is not surrounded by a closed loop, so the column counter j is set to "1".
'' and check the flag C(i, j) of the inside table 34 again.
これに対し、フラグC(i、j)がセットされていた場
合には、そのフラグに対応する物理的キーは閉ループに
よって囲まれているので、選択キーテーブル32の該当
フラグA(i、j)をセット(1)する。また、液晶タ
ッチキーボード2の液晶表示板3を制御して該当フラグ
A(i、j)に対応する物理的キーを点灯させる。(未
選択キー設定手段)
次いで、列カウンタ」を「1」たけ加算して、再度イン
サイドテーブル34のフラグC(i、j)を調べる。こ
うして、i行目のフラグC(i、j)について1列目か
ら順にn列目まで同様のフラグチエツクを行う。そして
、列カウンタjか最終列rnJを越えたならば、行カウ
ンタiを「1」だけ加算し、かつ列カウンタjを「1」
に初期設定して、i+1行目のフラグC(i、j)につ
いて1列目から順にn列目まで同様のフラグチエツクを
繰り返す。そして、行カウンタiか最終行「m」を越え
たならば、この処理を終了する。On the other hand, if the flag C(i,j) is set, the physical key corresponding to that flag is surrounded by a closed loop, so the corresponding flag A(i,j) in the selection key table 32 Set (1). Moreover, the liquid crystal display panel 3 of the liquid crystal touch keyboard 2 is controlled to light up the physical key corresponding to the corresponding flag A(i, j). (Unselected key setting means) Next, the column counter is incremented by 1, and the flag C(i, j) of the inside table 34 is checked again. In this way, a similar flag check is performed for the flag C(i, j) in the i-th row from the first column to the n-th column. If the column counter j exceeds the last column rnJ, the row counter i is incremented by "1" and the column counter j is set to "1".
The same flag check is repeated for the flag C(i, j) in the i+1 row from the first column to the nth column. Then, when the line counter i exceeds the final line "m", this process ends.
このように構成された本実施例においては、液晶タッチ
キーボード2に対してマトリクス状に配設された微小区
画の物理的キーのいくつかをまとめて1つの論理的キー
を設定する場合、先ずモードスイッチ18により「設定
」モードを選択してから本体側キーボード15をキー操
作してキー割付処理を指定する。次いで、論理的キーの
キー機能に該当する論理的キー番号を本体側キーボード
15からキー人力す−る。そうすると、論理的キー番号
メモリ31にはキー人力された論理的キー番号が記憶さ
れる。この状態で、液晶タッチキーボード2の該当する
物理的キーを選択して順次押下するが、この場合におい
て、論理的キーの枠となる物理的キーから順番に選択す
ればよい。In this embodiment configured in this manner, when setting one logical key by grouping several physical keys arranged in a matrix on the LCD touch keyboard 2, first the mode is set. After selecting the "setting" mode with the switch 18, the key assignment process is designated by operating keys on the main body keyboard 15. Next, a logical key number corresponding to the key function of the logical key is entered manually from the keyboard 15 on the main body side. Then, the logical key number memory 31 stores the logical key number entered manually. In this state, the corresponding physical keys on the liquid crystal touch keyboard 2 are selected and pressed one after another. In this case, the physical keys forming the frame of the logical keys may be selected in order.
例えば第1図に示す例において、同図(B)の実線内ハ
ツチング部分に位置する12個の物理的キーで1個の論
理的キーを形成する場合、同図(A)に示すように当該
論理的キーの枠となる10個の物理的キー(−c、5)
、(c、6)。For example, in the example shown in Fig. 1, when one logical key is formed by 12 physical keys located in the hatched part in the solid line in Fig. 1(B), the corresponding 10 physical keys (-c, 5) that form the logical key frame
, (c, 6).
(c 7) (d、7)、(e、7)、(f7)
、(f、6)、(f、5)、(e、5)。(c 7) (d, 7), (e, 7), (f7)
, (f,6), (f,5), (e,5).
(d 5)を順番に選定して押下する。そうすると、こ
れらのキーか点灯するとともに、選択キーテーブル32
には、押下された物理的キーに対応するフラグA (c
、5)、A (c、6)。Select and press (d5) in order. Then, these keys light up and the selection key table 32
, the flag A (c
, 5), A (c, 6).
A ((:、7)、A (d、7)、A (e、7)。A ((:, 7), A (d, 7), A (e, 7).
A I、7)、A (f、6)、A (f、5)。A I, 7), A (f, 6), A (f, 5).
A (e、5)、−A (d、5)がセットされる。ま
た、最後のキー(d、5)を押下した時点て同一論理的
キー番号が設定される選択物理的キー群によって閉ルー
プが完成するので、ループチエツク処理によりその閉ル
ープ内に位置する2個の物理的キー(d、6)、(e、
6)が点灯するとともに、対応するフラグA (d、6
)、A (e、6)がセットされる。A (e, 5) and -A (d, 5) are set. Furthermore, since a closed loop is completed by a group of selected physical keys to which the same logical key number is set when the last key (d, 5) is pressed, the loop check process will check the two physical keys located within the closed loop. Target key (d, 6), (e,
6) lights up, and the corresponding flag A (d, 6
), A (e, 6) are set.
その結果、本体側キーボード15から論理的キー番号の
設定を指示するキー人力を行うと、選択キーテーブル3
2のセットされているフラグA (c、5)、A (c
、6)、A (c、7)A (d、5)、A (d、6
)、A (d、7)。As a result, when you input a key manually to instruct the setting of a logical key number from the keyboard 15 on the main body side, the selection key table 3
Flags A (c, 5) and A (c
, 6), A (c, 7) A (d, 5), A (d, 6
), A (d, 7).
A (e、5)、A (e、6)、A (e、7)。A (e, 5), A (e, 6), A (e, 7).
A (f、5)、A (f、6)、A (f、7)が抽
出され、論理的キー対応テーブル30の上記抽出フラグ
に対応するエリアに論理的キー番号メモリ31内の論理
的キー番号が設定される。かくして、同図(B)の実線
内ハツチング部分に位置する12個の物理的キーで1個
の論理的キーが形成されることになる。A (f, 5), A (f, 6), and A (f, 7) are extracted, and the logical key in the logical key number memory 31 is placed in the area corresponding to the extraction flag of the logical key correspondence table 30. The number is set. Thus, one logical key is formed by the 12 physical keys located in the hatched area within the solid line in FIG.
従って、同一論理的キー番号が割り付けられる物理的キ
ーの数が12個であるのに対して実際に割付は作業する
物理的キーは10個で済み、閉ループ内の2個分が省略
されるので、作業効率が向上される。Therefore, although the number of physical keys to which the same logical key number is assigned is 12, only 10 physical keys are actually assigned, and two keys in the closed loop are omitted. , work efficiency is improved.
なお、本発明において閉ループとは第1図(A)に示す
口状のものに限定されるものではなく、例えば第12図
(a)のように変形していたり、第12図(b)のよう
に2個のループが同一に完成する場合も含むものとする
。Note that in the present invention, the closed loop is not limited to the mouth-shaped one shown in FIG. 1(A), but may be deformed as shown in FIG. This also includes cases where two loops are completed in the same way.
そこで、次に本発明の応用例について説明する。Therefore, next, an application example of the present invention will be explained.
第13図はパネルキー4上に論理的キーのキー機能に対
応する商品の図形を描いたシート40を貼付したキーボ
ードである。この場合、シート40は販売方針や季節な
どによって比較的頻繁に交換されるので、論理的キー割
付作業の容易性は大変重要となる。このようなものにお
いて本発明を適用することにより、第14図に示す如く
図形の輪郭をなぞるだけで必要な物理的キーに対して該
当する論理的キー番号を設定できるので、設定作業を大
幅に簡略化できるようになる。FIG. 13 shows a keyboard in which a sheet 40 is pasted on the panel keys 4, on which the figures of products corresponding to the key functions of the logical keys are drawn. In this case, since the sheet 40 is replaced relatively frequently depending on sales policy, season, etc., ease of logical key assignment is very important. By applying the present invention to such things, the corresponding logical key number can be set for the necessary physical key by simply tracing the outline of the figure as shown in Fig. 14, which greatly reduces the setting work. It can be simplified.
なお、本発明は液晶タッチキーボードに限定されるもの
ではなく、例えばマトリクス配列された複数のドツトキ
ーを有するキーボード装置等にも適用できるものである
。Note that the present invention is not limited to liquid crystal touch keyboards, but can also be applied to, for example, keyboard devices having a plurality of dot keys arranged in a matrix.
[発明の効果]
以上詳述したように、本発明によれば、同一論理的キー
番号か割り付けられる物理的キーの数が増加しても実際
に割付は作業を行う物理的キーの数を低減でき、割付は
作業の効率化をはかり得るキーボード装置を提供できる
。[Effects of the Invention] As detailed above, according to the present invention, even if the number of physical keys to which the same logical key number is assigned increases, the actual assignment reduces the number of physical keys on which work is performed. It is possible to provide a keyboard device that can improve work efficiency.
【図面の簡単な説明】
第1図は本発明の作用を示す図、第2図は本発明の一実
施例の電子式キャッシュレジスタを示すブロック図、第
3図乃至第5図は上記電子式キャッシュレジスタにおけ
るR A Mの主要なメモリ構成図、第6図乃至第11
図は上記電子式キャッシュレジスタにおけるCPUのキ
ー割付処理を示す流れ図、第12図は閉ループの変形例
を示す図、第13図及び第14図は本発明の応用例を示
す図、第15図及び第16図は従来例を示す図である。
2・・・液晶タッチキーボード、
10・・・CPU。
15・・・本体側キーボード、
30・・・論理的キー対応テーブル、
31・・・論理的キー番号メモリ、
32・・・選択キーテーブル、
33・・・アウトサイドテーブル、
34・・・インサイドテーブル。
第
図
第
図
第
図
第
図
第
図
第
図
第
図
第10図
第
図(a)
第
図(b)
第
図
第
図
第
図
第
図[Brief Description of the Drawings] Fig. 1 is a diagram showing the operation of the present invention, Fig. 2 is a block diagram showing an electronic cash register according to an embodiment of the present invention, and Figs. 3 to 5 are diagrams showing the above-mentioned electronic cash register. Main memory configuration diagrams of RAM in the cash register, Figures 6 to 11
12 is a flowchart showing the key assignment process of the CPU in the electronic cash register, FIG. 12 is a diagram showing a modified example of the closed loop, FIGS. 13 and 14 are diagrams showing an application example of the present invention, and FIGS. FIG. 16 is a diagram showing a conventional example. 2...LCD touch keyboard, 10...CPU. 15... Main body side keyboard, 30... Logical key correspondence table, 31... Logical key number memory, 32... Selection key table, 33... Outside table, 34... Inside table . (a) (b) (a) (b) (b)
Claims (1)
、各物理的キーに対してそれぞれ任意に論理的キー番号
を割り付けることにより各物理的キーのキー機能が決定
されるキーボード装置において、 前記論理的キー番号の割付け設定時、選択された物理的
キーに対して所定の論理的キー番号を設定する選択キー
設定手段と、この設定手段により同一論理的キー番号が
設定された選択物理的キー群によって閉ループが完成し
ているか否かを判定するループ判定手段と、この判定手
段により閉ループの完成が判定されると、そのループ内
に位置する未選択の物理的キーに対して同一論理的キー
番号を自動設定する未選択キー設定手段とを具備したこ
とを特徴とするキーボード装置。[Claims] Physical keys are arranged in minute sections in a matrix, and the key function of each physical key is determined by arbitrarily assigning a logical key number to each physical key. In the keyboard device, the selection key setting means sets a predetermined logical key number to the selected physical key when setting the logical key number assignment, and the setting means sets the same logical key number. a loop determining means for determining whether a closed loop is completed based on the group of selected physical keys; 1. A keyboard device comprising unselected key setting means for automatically setting the same logical key number for each key.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2112761A JPH0410021A (en) | 1990-04-27 | 1990-04-27 | keyboard device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2112761A JPH0410021A (en) | 1990-04-27 | 1990-04-27 | keyboard device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0410021A true JPH0410021A (en) | 1992-01-14 |
Family
ID=14594873
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2112761A Pending JPH0410021A (en) | 1990-04-27 | 1990-04-27 | keyboard device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0410021A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09269857A (en) * | 1996-03-29 | 1997-10-14 | Asta- Seiki Kk | Terminal device |
-
1990
- 1990-04-27 JP JP2112761A patent/JPH0410021A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09269857A (en) * | 1996-03-29 | 1997-10-14 | Asta- Seiki Kk | Terminal device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6243226B2 (en) | ||
| JPH0410021A (en) | keyboard device | |
| US6377254B1 (en) | Information input/output apparatus | |
| US7403189B2 (en) | Graphical calculator | |
| US5260886A (en) | Default denominator for fraction entry and display | |
| US5218675A (en) | Information display system suitable for compact electronic appliances having different display sizes | |
| JPH07295748A (en) | Touch panel type input device | |
| JP3162095B2 (en) | Image display control device | |
| JPH0445875B2 (en) | ||
| JPS5949659A (en) | Returned article registration controlling method of electronic cash register | |
| JPS5839347B2 (en) | Program control method for electronic cash register | |
| JPH02105215A (en) | Keyboard device | |
| JPH0523455B2 (en) | ||
| JPS6315287A (en) | pattern generator | |
| JPS6145837B2 (en) | ||
| JPH04105112A (en) | Information processor with key setting function | |
| JPH0731477B2 (en) | Data display method | |
| JPH07182563A (en) | Commodity data processor | |
| JPH04264611A (en) | Keyboard | |
| JPS6049925B2 (en) | character input device | |
| JPH0621972B2 (en) | Page selection method for electronic item / keyboard device | |
| JPH01173290A (en) | electronic cash register | |
| JPS63103359A (en) | Desk-top electronic calculator | |
| JPS63269248A (en) | Small electronic computer | |
| JPS63310070A (en) | Computer with tabulating function |