JPH04215115A - Information processor - Google Patents

Information processor

Info

Publication number
JPH04215115A
JPH04215115A JP2401950A JP40195090A JPH04215115A JP H04215115 A JPH04215115 A JP H04215115A JP 2401950 A JP2401950 A JP 2401950A JP 40195090 A JP40195090 A JP 40195090A JP H04215115 A JPH04215115 A JP H04215115A
Authority
JP
Japan
Prior art keywords
key code
code signal
key
information
input
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
Application number
JP2401950A
Other languages
Japanese (ja)
Inventor
Nobuaki Mochizuki
伸昭 望月
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2401950A priority Critical patent/JPH04215115A/en
Publication of JPH04215115A publication Critical patent/JPH04215115A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To quicken the start time of information processing for input information. CONSTITUTION:The same key code signal continuously generated in an information input means is stored in a storage means, and the frequency of the key code signal is counted by a counting means. It is sufficient if the analysis processing of classification contents is executed once for the same key code signal, and it is unnecessary to repeatedly perform the analysis processing at each time of generation of the key code signal as conventional, and the execution timing of information processing is quickened by the reduction of the frequency of analysis processing.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、キーボード入力装置か
らキー入力されたコード情報を情報処理する情報処理装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus for processing code information entered through a keyboard input device.

【0002】0002

【従来の技術】従来、プログラミング装置はプログラマ
ブルコントローラにおいて実行するシーケンスプログラ
ムを作成する情報処理装置として知られている。
2. Description of the Related Art Conventionally, programming devices are known as information processing devices that create sequence programs to be executed in programmable controllers.

【0003】プログラミング装置でシーケンスプログラ
ムを作成する場合、ユーザはシーケンス命令毎に割当て
たキーを押下する。キーの押下により発生されたキーコ
ード信号はキーコードバッファに順次に貯えられる。
When creating a sequence program using a programming device, the user presses a key assigned to each sequence command. Key code signals generated by key presses are sequentially stored in a key code buffer.

【0004】このキードード信号は入力順に読出され、
キーコード信号の示す入力情報内容が解析され、情報内
容に応じた情報処理、たとえば、入力のシーケンス命令
を表示装置に表示する処理が実行される。
[0004] The keyed signals are read out in the order of input,
The input information content indicated by the key code signal is analyzed, and information processing according to the information content, for example, processing for displaying input sequence commands on a display device, is executed.

【0005】また、カーソル移動キーが連続的に押下さ
れた場合も上述と同様その押下回数分だけキーコードが
キーコードバッファに格納され、キーコードの解析→実
行処理をキーコードの押下回数だけ繰返し実行すること
になる。
[0005] Also, when the cursor movement key is pressed continuously, the same number of key codes as the number of presses are stored in the key code buffer as described above, and the process of analyzing and executing the key code is repeated for the number of presses of the key code. will be executed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、キーコ
ードの解析処理では予め種類内容の判明している第1〜
第n個のキーコードと、入力のキーコードを順次に個別
に比較し、一致しているキーコードを検出することによ
り入力のキーコードの種類内容を判別する。
[Problem to be Solved by the Invention] However, in the key code analysis process, the first to
The n-th key code and the input key code are sequentially and individually compared, and by detecting matching key codes, the type and content of the input key code is determined.

【0007】このため、キーの種類が多い程、解析にも
時間がかかるので、そのキーに対応した入力情報が実際
に情報処理(たとえば表示)されるまで、その待期時間
も長くなるという不具合があった。
[0007] For this reason, the more types of keys there are, the longer it takes to analyze them, resulting in a problem that the waiting time until the input information corresponding to that key is actually processed (for example, displayed) becomes longer. was there.

【0008】そこで、本発明の目的は、キーボード入力
装置からキーにより情報の入力を行ったときに、キーの
種類がたとえ多くても、情報処理を迅速に開始すること
の可能な情報処理装置を提供することにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an information processing device that can quickly start information processing even if there are many types of keys when information is input using keys from a keyboard input device. It is about providing.

【0009】[0009]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、キーの操作により当該キーの種類
に対応のキーコード信号を発生する情報入力手段と、該
情報入力手段において発生のキーコード信号をその発生
順に記憶しておく記憶手段と、該情報手段の中の連続し
て一致するキーコード信号を検出し、その個数を計数す
る計数手段とを具えたことを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides an information input means for generating a key code signal corresponding to the type of key by operating a key, and an information input means for generating a key code signal corresponding to the type of the key. It is characterized by comprising a storage means for storing the generated key code signals in the order of their occurrence, and a counting means for detecting consecutively matching key code signals in the information means and counting the number thereof. do.

【0010】0010

【作用】本発明は、情報入力手段において連続して発生
した同一のキーコード信号を記憶手段に記憶しておき、
キーコード信号の個数を計数手段により計数する。同一
のキーコード信号に対しては種類内容の解析処理を1回
実行すればよく、従来のようにキーコード信号の発生毎
に繰り返し解析処理を行う必要はなく、解析処理回数の
減少分情報処理の実行タイミングが早まる。
[Operation] The present invention stores identical key code signals successively generated in the information input means in the storage means,
The number of key code signals is counted by a counting means. It is only necessary to perform type content analysis processing once for the same key code signal, and there is no need to repeatedly perform analysis processing every time a key code signal occurs as in the past, and information processing is reduced by the reduction in the number of analysis processing times. The execution timing is accelerated.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0012】図1は本発明実施例の基本構成を示す。FIG. 1 shows the basic configuration of an embodiment of the present invention.

【0013】図1において、1000はキーの操作によ
り当該キーの種類に対応のキーコード信号を発生する情
報入力手段である。
In FIG. 1, reference numeral 1000 is information input means for generating a key code signal corresponding to the type of key in response to key operation.

【0014】1100は該情報入力手段において発生の
キーコード信号をその発生順に記憶しておく記憶手段で
ある。
Reference numeral 1100 denotes a storage means for storing the key code signals generated in the information input means in the order in which they were generated.

【0015】1200は該記憶手段の中の連続して一致
するキーコード信号を検出し、その個数を計数する計数
手段である。
Reference numeral 1200 denotes a counting means for detecting consecutively matching key code signals in the storage means and counting the number thereof.

【0016】本発明を適用したプログラマブルコントロ
ーラシステムの外観を図2に示す。
FIG. 2 shows an external appearance of a programmable controller system to which the present invention is applied.

【0017】プログラミング装置100とプログラマブ
ルコントローラ200とは伝送ライン150により接続
されている。
Programming device 100 and programmable controller 200 are connected by transmission line 150.

【0018】プログラミング装置100はキーボード入
力装置20からシーケンス命令を順次に入力し、表示装
置30の表示画面上で編集することによりシーケンスプ
ログラムを作成する。このシーケンスプログラムは、プ
ログラマブルコントローラ200に転送され、プログラ
マブルコントローラ200において演算実行することに
より電子機器を自動制御する。
The programming device 100 creates a sequence program by sequentially inputting sequence commands from the keyboard input device 20 and editing them on the display screen of the display device 30. This sequence program is transferred to the programmable controller 200, and the programmable controller 200 executes calculations to automatically control the electronic equipment.

【0019】図2のプログラミング装置100の回路構
成を図3に示す。
FIG. 3 shows a circuit configuration of the programming device 100 of FIG. 2.

【0020】中央演算処理装置(CPU)10,キーボ
ード入力装置20,表示装置30,システムプログラム
メモリ40,システムデータメモリ50,ユーザプログ
ラムメモリ60,入出力インタフェース(I/O)70
が共通バスに接続されている。
Central processing unit (CPU) 10, keyboard input device 20, display device 30, system program memory 40, system data memory 50, user program memory 60, input/output interface (I/O) 70
are connected to a common bus.

【0021】CPU10はシステムプログラムメモリ4
0に格納された制御手順を実行することにより、シーケ
ンスプログラムの作成,プログラマブルコントローラ2
00へのシーケンスプログラムの転送処理を行う。
[0021] The CPU 10 is a system program memory 4.
Creating a sequence program by executing the control procedure stored in Programmable Controller 2
Transfer processing of the sequence program to 00 is performed.

【0022】システムデータメモリ50はCPU10に
おいて使用される演算データの一時記憶用に用いられる
。ユーザプログラムメモリ60は作成対象のシーケンス
プログラムを一時格納し、このメモリ上でシーケンスプ
ログラムの作成の編集処理が行なわれる。
The system data memory 50 is used for temporary storage of calculation data used by the CPU 10. The user program memory 60 temporarily stores a sequence program to be created, and editing processing for creating the sequence program is performed on this memory.

【0023】キーボード入力装置20は主にキーマトリ
クス21およびバッファメモリ22から構成されている
The keyboard input device 20 mainly consists of a key matrix 21 and a buffer memory 22.

【0024】キーマトリクス21は複数のキーの中のい
ずれかのキーがユーザにより押下されたとき、そのキー
に割当てた識別コード信号(以下、キーコード信号と称
す)を発生する。
When one of the plurality of keys is pressed by the user, the key matrix 21 generates an identification code signal (hereinafter referred to as a key code signal) assigned to that key.

【0025】このキーコード信号は発生順にキーマトリ
クス21によりバッファメモリ22に書き込まれる。
The key code signals are written into the buffer memory 22 by the key matrix 21 in the order of occurrence.

【0026】バッファメモリ22は、たとえば、表示装
置30の表示画面における一行分のキーコード信号を記
憶可能なメモリを用いており、キーマトリクス21から
のキーコード信号を、その入力毎に先頭アドレスから順
次に記憶して行く周知のメモリを用いることができる。 バッファメモリ22は又CPU10により一定周期でそ
の格納内容が読出され、バッファメモリ22の記憶内容
が記憶可能容量に達したとき、記憶開始信号がメモリの
先頭位置に初期化される。
The buffer memory 22 uses, for example, a memory capable of storing a key code signal for one line on the display screen of the display device 30, and stores the key code signal from the key matrix 21 from the first address each time it is input. A well-known memory that stores data sequentially can be used. The stored contents of the buffer memory 22 are also read out at regular intervals by the CPU 10, and when the stored contents of the buffer memory 22 reach the storable capacity, the storage start signal is initialized to the beginning position of the memory.

【0027】キーマトリクス21が本発明の情報入力手
段として動作し、バッファメモリ22が本発明の記憶手
段として動作する。
The key matrix 21 operates as the information input means of the present invention, and the buffer memory 22 operates as the storage means of the present invention.

【0028】I/O70はプログラマブルコントローラ
200とCPU10との間で情報転送を行う。
The I/O 70 transfers information between the programmable controller 200 and the CPU 10.

【0029】このような回路構成において実行される本
発明の入力処理を図4のフローチャートを参照して説明
する。なお、図4はCPU10の実行する制御手順を示
し、予めシステムプログラムメモリ40に格納されてい
る。
The input processing of the present invention executed in such a circuit configuration will be explained with reference to the flowchart of FIG. Note that FIG. 4 shows a control procedure executed by the CPU 10, which is stored in the system program memory 40 in advance.

【0030】また、バッファメモリ22には既に図5に
示すようなカーソルキーコードが格納されているものと
する。
It is also assumed that the buffer memory 22 has already stored a cursor key code as shown in FIG.

【0031】CPU10はバッファメモリ22に対する
読出しタイミングになると、図4の制御手順を開始する
。すなわち、バッファメモリ22へのキーマトリクス2
1の書き込みを禁止した後、バッファメモリの読出しア
ドレスをバッファメモリ22の先頭アドレスに初期化す
る(ステップS5→S10)。
When the timing for reading data from the buffer memory 22 comes, the CPU 10 starts the control procedure shown in FIG. That is, key matrix 2 to buffer memory 22
After prohibiting the writing of 1, the read address of the buffer memory is initialized to the start address of the buffer memory 22 (steps S5→S10).

【0032】次にバッファメモリ22の先頭アドレスの
キーコード信号を読出し、CPU10内に第1レジスタ
に格納する(ステップS20)。また、バッファメモリ
22からの読出し回数Iを初期値“1”に設定する。
Next, the key code signal at the first address of the buffer memory 22 is read out and stored in the first register in the CPU 10 (step S20). Further, the number of times I of reading from the buffer memory 22 is set to an initial value "1".

【0033】次に、バッファメモリ22に対する読出し
アドレスを次アドレスに更新し、第2番目に入力のキー
コード信号をバッファメモリ22から読出し、CPU1
0内の第2レジスタに格納する(ステップS40→S5
0)。CPU10により読出し回数Iについても更新す
る(ステップS60)。
Next, the read address for the buffer memory 22 is updated to the next address, the second input key code signal is read from the buffer memory 22, and the CPU 1
0 in the second register (step S40→S5
0). The CPU 10 also updates the read count I (step S60).

【0034】CPU10は第1レジスタに格納の第1番
目のキーコード信号と第2レジスタに格納の第2番目の
キーコード信号の一致比較を行う(ステップS70)。
The CPU 10 compares the first key code signal stored in the first register with the second key code signal stored in the second register (step S70).

【0035】図5の例のように第1番目のキーコード信
号と第2番目のキーコード信号とが同じ場合は、一致判
定が得られるので、CPU10は手順をステップS40
に戻し、第3番目のキーコード信号をバッファメモリ2
2から読出し、第2レジスタに格納する。続いて、読出
し回数の更新、次に、第1番目のキーコード信号と第3
番目のキーコード信号の一致比較を行う(ステップS6
0→S70)。
If the first key code signal and the second key code signal are the same as in the example of FIG.
and send the third key code signal to buffer memory 2.
2 and stores it in the second register. Next, the number of readings is updated, and then the first key code signal and the third key code signal are updated.
A match comparison is made for the th key code signal (step S6
0→S70).

【0036】このようにして第1番目のキーコード信号
と、その後に入力されたキーコード信号とが一致する間
は、上述の処理を繰り返す(ステップS40〜S70の
ループ処理)。
As long as the first key code signal and the subsequently inputted key code signal match in this manner, the above-described process is repeated (loop process of steps S40 to S70).

【0037】このときのCPU10が本発明の計数手段
として動作する。
At this time, the CPU 10 operates as the counting means of the present invention.

【0038】図5の例では第6番目に入力のキーコード
信号と第1番目のキーコード信号の比較により不一致判
定が得られ、このとき、CPU10内の第1レジスタに
は右矢印コード,第2レジスタには左矢印コードが記憶
され、読出し回数I=6と設定されている。
In the example shown in FIG. 5, a mismatch determination is obtained by comparing the sixth input key code signal and the first key code signal, and at this time, the right arrow code and the right arrow code are stored in the first register in the CPU 10. The left arrow code is stored in the 2 register, and the number of reads is set to I=6.

【0039】CPU10は上記不一致判定により、連続
的に一致のキーコード信号の終了と判断し、バッファメ
モリ22のI(6)番目のキーコード信号が第1番目に
位置するようにキーコード信号のシフト記憶(又は読出
し開始位置の更新)を行う。
Based on the above mismatch determination, the CPU 10 determines that the successive matching key code signals have ended, and changes the key code signals so that the I(6)th key code signal in the buffer memory 22 is located at the first position. Performs shift storage (or update of read start position).

【0040】また、CPU10はバッファメモリ22に
対するキーマトリクス21の書き込みを許可する(ステ
ップS80)。CPU10は第1レジスタのキーコード
信号の種類内容を解析した後、解析の種類内容、本例で
は表示画面上のカーソルマークを右へ1回移動する処理
を続けてキーコード信号の一致回数(読出し回数I−1
)分繰り返し実行する(ステップS90〜S100)。
Further, the CPU 10 permits writing of the key matrix 21 into the buffer memory 22 (step S80). After analyzing the type content of the key code signal in the first register, the CPU 10 continues the process of moving the cursor mark on the display screen once to the right, and calculates the number of matches of the key code signal (readout). Number of times I-1
) is repeatedly executed (steps S90 to S100).

【0041】この後、CPU10は実行手順をステップ
S5に戻し、第6番目についてのキーコード信号と一致
する後の連続のキーコード信号の計数処理,およびキー
コード信号の示す指示の計数結果分の実行を行う。以下
上述の処理をバッファメモリ22に格納の全てのキーコ
ード信号に対して実行し、本制御手順を終了する(ステ
ップS110)。
After that, the CPU 10 returns the execution procedure to step S5, and counts successive key code signals that match the sixth key code signal, and counts the instructions indicated by the key code signal. carry out the execution. The above-described process is then executed for all key code signals stored in the buffer memory 22, and this control procedure is ended (step S110).

【0042】以上のような制御手順をCPU10により
実行すると、連続して入力された同一のキーコード信号
に対する識別処理は1回でよいことになる。従来はキー
コード信号の入力毎に解析を行っていたので、解析処理
の回数が少なくなった分キーコード信号についての実行
タイミングが迅速化される。
When the above-described control procedure is executed by the CPU 10, identification processing for the same key code signal that is input continuously only needs to be performed once. Conventionally, analysis was performed each time a key code signal was input, so the execution timing for the key code signal can be made faster as the number of analysis processes is reduced.

【0043】本実施例の他に次の例が挙げられる。In addition to this embodiment, the following examples can be given.

【0044】1)本実施例では連続入力のキーコード信
号に対する計数処理を全種類のキーコード信号に対して
施しているが、たとえば、カーソルキー,空白スペース
文字キー等のように、連続して使用する回数の多い特定
のキーを予め定め、これらキーの押下を検出したときに
、連続入力回数を計数するようにしてもよい。この場合
、図4のステップS20において第1レジスタにキーコ
ード信号を入力したときに解析処理を実行し、キーコー
ド信号が特定のキーコード信号であるか否かの判定を行
う。
1) In this embodiment, the counting process for continuously input key code signals is applied to all types of key code signals. It is also possible to predetermine specific keys that are frequently used, and count the number of consecutive inputs when the press of these keys is detected. In this case, when the key code signal is input to the first register in step S20 of FIG. 4, analysis processing is executed to determine whether the key code signal is a specific key code signal.

【0045】[0045]

【発明の効果】以上、説明したように、本発明によれば
、同一の情報を連続して入力する回数が多い程、解析に
要する時間が従来に比べて短縮されるので、情報入力を
開始してから情報処理を開始するまでの時間間隔は大幅
に短縮化される。
[Effects of the Invention] As explained above, according to the present invention, the more times the same information is input continuously, the time required for analysis is reduced compared to the conventional method. The time interval between when the information is processed and when information processing begins is significantly shortened.

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

【図1】本発明実施例の基本構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the basic configuration of an embodiment of the present invention.

【図2】本発明実施例の外観を示す斜視図である。FIG. 2 is a perspective view showing the appearance of an embodiment of the present invention.

【図3】本発明実施例の回路構成を示すブロック図であ
る。
FIG. 3 is a block diagram showing a circuit configuration of an embodiment of the present invention.

【図4】本発明実施例のCPUの実行処理手順を示すフ
ローチャートである。
FIG. 4 is a flowchart showing the execution processing procedure of the CPU according to the embodiment of the present invention.

【図5】本発明実施例のバッファメモリの格納内容を示
す説明図である。
FIG. 5 is an explanatory diagram showing the contents stored in the buffer memory according to the embodiment of the present invention.

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

10  CPU 20  キーボード入力装置 30  表示装置 40  システムプログラムメモリ 50  システムデータメモリ 60  ユーザプログラムメモリ 70  I/O 10 CPU 20 Keyboard input device 30 Display device 40 System program memory 50 System data memory 60 User program memory 70 I/O

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  キーの操作により当該キーの種類に対
応のキーコード信号を発生する情報入力手段と、該情報
入力手段において発生のキーコード信号をその発生順に
記憶しておく記憶手段と、該記憶手段の中の連続して一
致するキーコード信号を検出し、その個数を計数する計
数手段とを具えたことを特徴とする情報処理装置。
Claims: 1. Information input means for generating a key code signal corresponding to the type of key in response to a key operation; storage means for storing the key code signals generated in the information input means in the order of occurrence; An information processing apparatus comprising: a counting means for detecting consecutively matching key code signals in the storage means and counting the number thereof.
JP2401950A 1990-12-13 1990-12-13 Information processor Pending JPH04215115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2401950A JPH04215115A (en) 1990-12-13 1990-12-13 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2401950A JPH04215115A (en) 1990-12-13 1990-12-13 Information processor

Publications (1)

Publication Number Publication Date
JPH04215115A true JPH04215115A (en) 1992-08-05

Family

ID=18511767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2401950A Pending JPH04215115A (en) 1990-12-13 1990-12-13 Information processor

Country Status (1)

Country Link
JP (1) JPH04215115A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009517732A (en) * 2005-11-24 2009-04-30 ソフト−キャンプ カンパニー リミティッド Method and system for security of input data using USB keyboard

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145713A (en) * 1987-07-21 1989-06-07 Matsushita Electric Ind Co Ltd Keyboard device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145713A (en) * 1987-07-21 1989-06-07 Matsushita Electric Ind Co Ltd Keyboard device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009517732A (en) * 2005-11-24 2009-04-30 ソフト−キャンプ カンパニー リミティッド Method and system for security of input data using USB keyboard

Similar Documents

Publication Publication Date Title
US5619734A (en) Programmable controller and method of operation thereof
JPH04215115A (en) Information processor
EP0483368A1 (en) Method of searching sequence program
JPH0719311B2 (en) Data processing device
JPH051888B2 (en)
JPS6230112Y2 (en)
JP2995975B2 (en) Document processing device
JPS59149530A (en) Control system for repeating interval
JP2728534B2 (en) Byte position identification code setting processing method
JPH04215148A (en) Programmable controller
JPH0426891A (en) Data display device
JPS60258636A (en) Graphic processor
JP2564137Y2 (en) Graph creation device
JPH01103765A (en) Data outputting system
JPS61110255A (en) Program calculator
JPS58109932A (en) Comparison and arithmetic device for electronic computer
JPS5960636A (en) System for designing data entry picture
JPH01287723A (en) Key input information display device
JPH07230307A (en) Program developing device for sequencer
JPH04195513A (en) Keyboard
JPH03116223A (en) Screen control system for input of variable length data
JPS6218596A (en) Working area display system
JPS6334624A (en) Recursive input control system
JPH06259495A (en) Logic simulation system
JPS59146327A (en) Registering device