JP2981773B2 - Terminal device, and terminal device body and switch unit constituting the terminal device - Google Patents

Terminal device, and terminal device body and switch unit constituting the terminal device

Info

Publication number
JP2981773B2
JP2981773B2 JP3500272A JP50027291A JP2981773B2 JP 2981773 B2 JP2981773 B2 JP 2981773B2 JP 3500272 A JP3500272 A JP 3500272A JP 50027291 A JP50027291 A JP 50027291A JP 2981773 B2 JP2981773 B2 JP 2981773B2
Authority
JP
Japan
Prior art keywords
switch
signal
terminal device
terminal
switches
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3500272A
Other languages
Japanese (ja)
Inventor
俊行 辻
時夫 尾崎
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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP3500272A priority Critical patent/JP2981773B2/en
Priority claimed from PCT/JP1990/001542 external-priority patent/WO1991008533A1/en
Application granted granted Critical
Publication of JP2981773B2 publication Critical patent/JP2981773B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 技術分野 この発明は,端末装置,ならびに端末装置を構成する
端末装置本体およびそれにデータ(情報,コマンド等)
を与えるために着脱自在に接続されるスイッチ・ユニッ
ト(キーボードを含む)に関する。
Description: TECHNICAL FIELD The present invention relates to a terminal device, a terminal device main body constituting the terminal device, and data (information, commands, etc.) therefor.
And a switch unit (including a keyboard) which is detachably connected to provide a switch unit.

背景技術 端末装置やデータ処理装置には,操作者がこれらにデ
ータ(コマンドを含む)を与えるためのキーボードが設
けられている。キーボードはそれが設けられる端末装置
やデータ処理装置の機能,能力等に適したデータを入力
するものでなければならないので,通常は互換性が無
い。端末装置やデータ処理装置はそれに固有のキーボー
ドを備えている。
BACKGROUND ART Terminal devices and data processing devices are provided with a keyboard for an operator to give data (including commands) to them. Since the keyboard must input data suitable for the functions and capabilities of the terminal device and the data processing device provided with the keyboard, they are usually not compatible. Terminal devices and data processing devices have their own keyboards.

異なる種類の端末装置またはデータ処理装置に設けら
れるまたは接続されるキーボード相互では,まずキー・
スイッチの数が異なる。信号線の数が異なっている。操
作されたキー・スイッチから出力されるスイッチ信号を
表わすコードが異なっている着脱自在に接続されるキー
ボードではコネクタの形状(ピンの数,ピン配置等を含
む)が異なっている。
Keyboards provided or connected to different types of terminals or data processing devices must
The number of switches is different. The number of signal lines is different. Removably connected keyboards having different codes representing switch signals output from operated key switches have different connector shapes (including the number of pins, pin arrangement, etc.).

これらの事実によってメーカおよびユーザの双方が不
便を感じている。メーカは,複数種類の端末装置または
データ処理装置にそれぞれ対応してその種類数と同数の
種類のキーボードを作製しなければならない。キーボー
ドの種類によってその仕様が異なっているから多品種生
産が要求される。ユーザは,複数台の異なる種類の端末
装置またはデータ処理装置を設置したときにはそれらの
キーボードを相互に融通することができない。また,端
末装置またはデータ処理装置の制御プログラムをバージ
ョン・アップしてファンクション・キー等の数を増やす
ことが必要となったときには,それに合う新たなキーボ
ードを購入しなければならない。
These facts are inconvenient for both manufacturers and users. Manufacturers must produce the same number of types of keyboards corresponding to a plurality of types of terminal devices or data processing devices, respectively. Since the specifications differ depending on the type of keyboard, multi-product production is required. When a user installs a plurality of different types of terminal devices or data processing devices, the user cannot interchange their keyboards with each other. Further, when it is necessary to upgrade the control program of the terminal device or the data processing device to increase the number of function keys and the like, a new keyboard corresponding to that needs to be purchased.

この発明は,端末装置本体と,スイッチの数が異なる
複数種類のスイッチ・ユニット(キーボードを含む)に
共通のコネクタにより端末装置本体に接続されるスイッ
チ・ユニットとから構成される端末装置を提供すること
を目的とする。
The present invention provides a terminal device including a terminal device main body and a switch unit connected to the terminal device main body by a connector common to a plurality of types of switch units (including a keyboard) having different numbers of switches. The purpose is to:

この発明はまた,スイッチの数が異なる複数種類のス
イッチ・ユニット(キーボードを含む)の接続が可能な
端末装置本体を提供することを目的とする。
Another object of the present invention is to provide a terminal device main body to which a plurality of types of switch units (including a keyboard) having different numbers of switches can be connected.

この発明はさらに上記のような端末装置本体に適しか
つそれに接続可能なスイッチ・ユニットを提供すること
を目的とする。
Another object of the present invention is to provide a switch unit suitable for the above-mentioned terminal device main body and connectable thereto.

発明の開示 この発明による端末装置は,端末装置本体と,それぞ
れ異なる数のスイッチを備えた複数種類のスイッチ・ユ
ニットに共通のコネクタにより上記端末装置本体に着脱
自在に接続されるスイッチ・ユニットとから構成されて
いる。上記端末装置本体は,第1の所定数のスイッチ信
号用入力端子,第2の所定数のスイッチ数指定信号用入
力端子,および上記スイッチ数指定信号用入力端子に与
えられるスイッチ数指定信号に応じて上記スイッチ信号
用入力端子のうちの所定の入力端子に与えられるスイッ
チ入力信号を取込むスイッチ信号取込手段を備えてい
る。上記スイッチ・ユニットは,上記第1の所定数以下
の数のスイッチ,および上記スイッチ・ユニットに設け
られたスイッチの数を指定するスイッチ数指定信号を発
生するスイッチ数指定信号発生手段を備えている。上記
スイッチ・ユニットのスイッチの出力信号および上記ス
イッチ数指定信号発生手段から発生するスイッチ数指定
信号が上記コネクタを介して上記端末装置本体に与えら
れる。
DISCLOSURE OF THE INVENTION A terminal device according to the present invention comprises a terminal device main body and a switch unit detachably connected to the terminal device main body by a connector common to a plurality of types of switch units each having a different number of switches. It is configured. The terminal device main body responds to a first predetermined number of switch signal input terminals, a second predetermined number of switch number specification signal input terminals, and a switch number specification signal given to the switch number specification signal input terminals. Switch signal capturing means for capturing a switch input signal given to a predetermined input terminal of the switch signal input terminals. The switch unit includes a number of switches equal to or less than the first predetermined number and a switch number designating signal generating means for generating a switch number designating signal for designating the number of switches provided in the switch unit. . An output signal of a switch of the switch unit and a switch number designation signal generated by the switch number designation signal generating means are supplied to the terminal device main body via the connector.

この発明による端末装置は次のようにも規定される。
すなわち,この端末装置は,端末装置本体とこれにコネ
クタにより着脱自在に接続されるスイッチ・ユニットと
から構成され,上記スイッチ・ユニットは,所定数のス
イッチ,および上記スイッチ・ユニットに設けられたス
イッチの数を指定するスイッチ数指定信号を発生するス
イッチ数指定信号発生手段を備え,上記端末装置本体
は,上記所定数以上のスイッチ信号用入力端子,スイッ
チ数指定信号用入力端子,および上記スイッチ数指定信
号用入力端子に与えられるスイッチ数指定信号に応じて
上記スイッチ信号用入力端子のうちの所定の入力端子に
与えられるスイッチ入力信号を取込むスイッチ信号取込
手段を備えている。
The terminal device according to the present invention is also defined as follows.
That is, the terminal device comprises a terminal device main body and a switch unit detachably connected to the terminal device by a connector. The switch unit includes a predetermined number of switches and switches provided in the switch unit. And a switch number designation signal generating means for generating a switch number designation signal for designating the number of switches, wherein the terminal device main body includes at least the predetermined number of switch signal input terminals, the number of switch designation signal input terminals, and the number of switches. There is provided switch signal capturing means for capturing a switch input signal supplied to a predetermined input terminal of the switch signal input terminals in accordance with a switch number specifying signal supplied to the input terminal for specifying signal.

スイッチの数が異なるスイッチ・ユニットが複数種類
あり,これらのスイッチ・ユニットのどれが端末本体装
置に接続されたとしても,端末装置本体は接続されたス
イッチ・ユニットのスイッチからのスイッチ信号を確実
に取込むことができるようになる。
There are multiple types of switch units with different numbers of switches, and no matter which of these switch units is connected to the terminal unit, the terminal unit reliably outputs the switch signal from the switch of the connected switch unit. Be able to capture.

このようにして,この発明によると,メーカは複数種
類のスイッチ・ユニットが接続可能な一種類の端末装置
本体を提供すれば足り,ユーザはこの一種類の端末装置
本体に複数種類のスイッチ・ユニットの中から所望のも
のを選択して接続することにより利用することが可能と
なる。
Thus, according to the present invention, it is sufficient for the manufacturer to provide one type of terminal device main body to which a plurality of types of switch units can be connected, and the user needs to provide a plurality of types of switch units to this one type of terminal device main body. It can be used by selecting and connecting a desired one from among.

この発明による端末装置本体は上記の端末装置を構成
するものであり,第1の所定数のスイッチ信号用入力端
子,第2の所定数のスイッチ数指定信号用入力端子,お
よび上記スイッチ数指定信号用入力端子に与えられるス
イッチ数指定信号に応じて上記スイッチ信号用入力端子
のうちの所定の入力端子に与えられるスイッチ入力信号
を取込むスイッチ信号取込手段を備えている。
A terminal device main body according to the present invention constitutes the above terminal device, and includes a first predetermined number of switch signal input terminals, a second predetermined number of switch number designation signal input terminals, and the switch number designation signal. Switch signal capturing means for capturing a switch input signal supplied to a predetermined input terminal of the switch signal input terminals in response to a switch number designation signal supplied to the switch input terminal.

この発明による端末装置本体は複数種類のスイッチ・
ユニットのいずれかを接続して利用可能である。
The terminal device body according to the present invention has a plurality of types of switches.
Any of the units can be connected and used.

この発明によるスイッチ・ユニットは上記の端末装置
本体にコネクタを介して着脱自在に接続されるものであ
り,上記第1の所定数以下の数のスイッチ,および上記
スイッチ・ユニットに設けられたスイッチの数を指定す
るスイッチ数指定信号を発生するスイッチ数指定信号発
生手段を備えている。
The switch unit according to the present invention is detachably connected to the terminal device main body through a connector, and includes a switch having a number of switches equal to or less than the first predetermined number and a switch provided in the switch unit. A switch number designating signal generating means for generating a switch number designating signal for designating the number is provided.

この発明による端末装置本体は次のようにも規定され
る。すなわち,この端末装置本体は,設けられたスイッ
チの数を表わす信号を発生するスイッチ数信号発生手段
を備え,スイッチが操作されることにより発生するスイ
ッチ信号と上記スイッチ数信号発生手段が発生するスイ
ッチ数信号とを出力する,複数種類のスイッチ・ユニッ
トがそれらに共通のコネクタを介して着脱自在に接続可
能な端末装置本体であり,上記複数種類のスイッチ・ユ
ニットにそれぞれ設けられたスイッチの数以上のスイッ
チ信号用入力端子,スイッチ数信号用入力端子,および
上記スイッチ数信号用入力端子に与えられるスイッチ数
信号に応じて上記スイッチ信号用入力端子のうちの所定
の入力端子に与えられるスイッチ入力信号を取込むスイ
ッチ信号取込手段を備えている。
The terminal device main body according to the present invention is also defined as follows. That is, the terminal device main body includes switch number signal generating means for generating a signal representing the number of provided switches, and a switch signal generated by operating the switch and a switch generated by the switch number signal generating means. A plurality of types of switch units that output a number signal and are detachably connectable to the terminal units via a common connector to the terminal units, and the number of switches provided in each of the plurality of types of switch units is equal to or greater than Switch signal input terminal, a switch number signal input terminal, and a switch input signal provided to a predetermined one of the switch signal input terminals in response to the switch number signal provided to the switch number signal input terminal. Switch signal capturing means for capturing the data.

この端末装置本体においても一種類の端末装置本体
に,設けられたスイッチの数が異なる複数種類のスイッ
チ・ユニットのうちのいずれかを接続して使用すること
ができる。
Also in this terminal device main body, any one of a plurality of types of switch units provided with different numbers of switches can be connected to one type of terminal device main body and used.

以上のようして,この発明によると,スイッチ数の異
なる複数種類のスイッチ・ユニットを一種類の端末装置
本体に接続して使用することができるようになる。
As described above, according to the present invention, a plurality of types of switch units having different numbers of switches can be connected to one type of terminal device main body and used.

図面の簡単な説明 第1図から第3図はこの発明の実施例を示すものであ
る。
BRIEF DESCRIPTION OF THE DRAWINGS FIGS. 1 to 3 show an embodiment of the present invention.

第1図は端末装置の全体的な電気的構成を示すブロッ
ク図である 第2図は第1図に示す端末装置におけるスイッチ・ユ
ニットとキー入力回路の具体例を示す回路図である。
FIG. 1 is a block diagram showing an overall electrical configuration of the terminal device. FIG. 2 is a circuit diagram showing a specific example of a switch unit and a key input circuit in the terminal device shown in FIG.

第3図は端末装置のCPUがスイッチ・ユニットのスイ
ッチのオン,オフ状態を判別する処理手順の概要を示す
フロー・チャートである。
FIG. 3 is a flowchart showing an outline of a processing procedure in which the CPU of the terminal device determines whether the switch of the switch unit is on or off.

発明を実施するための最良の形態 第1図はこの発明の実施例を示すもので,端末装置の
電気的構成を示すブロック図である。
BEST MODE FOR CARRYING OUT THE INVENTION FIG. 1 shows an embodiment of the present invention and is a block diagram showing an electric configuration of a terminal device.

端末装置は端末装置本体2とスイッチ・ユニット3と
から構成されている。スイッチ・ユニット3は後述する
ように複数個(N個)の操作スイッチを含む。スイッチ
・ユニット3はたとえばキーボードであり,その場合に
は操作スイッチはキー・スイッチとなる。スイッチ・ユ
ニット3にはまたコネクタ4が設けられている。端末装
置本体2もまたコネクタ5を有している。これらのコネ
クタ4と5とにより,スイッチ・ユニット3は端末装置
本体2に着脱自在に接続される。
The terminal device includes a terminal device main body 2 and a switch unit 3. The switch unit 3 includes a plurality (N) of operation switches as described later. The switch unit 3 is, for example, a keyboard, in which case the operation switches are key switches. The switch unit 3 is also provided with a connector 4. The terminal device main body 2 also has a connector 5. The switch unit 3 is detachably connected to the terminal device main body 2 by these connectors 4 and 5.

端末装置本体2は,スイッチ・ユニット3からコネク
タ4および5を介して入力するスイッチ信号をそれに対
応するコードに変換するキー入力回路21,キー入力回路2
1によって変換されたコード信号を読取り,それに応じ
た処理,その他の端末装置全体を統括する処理を行なう
CPU22,透明タッチ・キーを含む表示パネル23,CPU22から
与えられるタッチ・キーの機能表示を含む表示データを
表示パネル23に表示させるための表示回路24,端末装置
本体2の前面パネルに設けられるシステム・スイッチ群
25,操作された透明タッチ・キーおよび操作されたシス
テム・スイッチに対応するコード信号をCPU22に与える
キー入力回路26,フォント・データを記憶するROM27,表
示パネル23に表示する画像を表わすデータを記憶する画
面データ用メモリ28,表示用LED群30,警報用ブザー31,こ
れらのLED群およびブザーを駆動するための駆動回路29,
外部に設けられた機器と交信するための外部機器制御用
通信回路32,この通信回路32の入出力ラインを外部機器
に接続するためのコネクタ33,CPU22のプログラムの設
定,デバック,バージョンアップ等を行なうプログラミ
ング装置と交信するためのツール通信回路34,ならびに
ツール通信回路34をプログラミング装置に接続するため
のコネクタ35を備えている。端末装置本体2において,
後に詳述するキー入力回路21およびCPU22を除く他のす
べての構成要素はそれぞれ公知のものであるから,それ
らについて詳述するのを避ける。
The terminal device body 2 includes a key input circuit 21 and a key input circuit 2 for converting a switch signal input from the switch unit 3 via the connectors 4 and 5 into a corresponding code.
Reads the code signal converted by 1 and performs the processing corresponding to it and the processing to control the entire terminal device.
CPU 22, display panel 23 including transparent touch keys, display circuit 24 for displaying display data including the function display of touch keys provided from CPU 22 on display panel 23, system provided on front panel of terminal device body 2・ Switch group
25, a key input circuit 26 for supplying a code signal corresponding to the operated transparent touch key and the operated system switch to the CPU 22, a ROM 27 for storing font data, and storing data representing an image to be displayed on the display panel 23. Screen data memory 28, display LED group 30, alarm buzzer 31, drive circuit 29 for driving these LED group and buzzer,
An external device control communication circuit 32 for communicating with externally provided devices, a connector 33 for connecting the input / output lines of the communication circuit 32 to external devices, and setting, debugging, and upgrading of the CPU22 program. A tool communication circuit 34 for communicating with a programming device to be performed, and a connector 35 for connecting the tool communication circuit 34 to the programming device are provided. In the terminal device body 2,
All the components other than the key input circuit 21 and the CPU 22, which will be described in detail later, are known in the art, and will not be described in detail.

第2図はスイッチ・ユニット3と端末装置本体2内の
キー入力回路21の具体的構成例を示している。
FIG. 2 shows a specific configuration example of the switch unit 3 and the key input circuit 21 in the terminal device main body 2.

スイッチ・ユニット3は上述したように所定数N個の
スイッチ11,12,…,1Nとスイッチ数指定信号発生部6と
を備えている。N個のスイッチ11〜1Nの一方の端子は共
通にグランド(ロウ・レベル,以下Lレベルという)に
接続されている。スイッチ数指定信号発生部6はスイッ
チ・ユニット3に設けられたスイッチの数を表わすコー
ド信号を発生するもので,たとえば適数個(この実施例
では3個)のディップ・スイッチによって構成される。
The switch unit 3 includes the predetermined number N of switches 11, 12,..., 1N and the switch number designation signal generator 6 as described above. One terminal of each of the N switches 11 to 1N is commonly connected to ground (low level, hereinafter referred to as L level). The switch number designation signal generator 6 generates a code signal indicating the number of switches provided in the switch unit 3, and is composed of, for example, an appropriate number (three in this embodiment) of dip switches.

キー入力回路21は入出力ポートIC21Aを含んでいる。
この入出力ポートIC21Aはスイッチ数指定信号入力用の
3個の入力端子40と,スイッチ信号入力用のn個の入力
端子41,42,…,4N,…,4nとを含んでいる。スイッチ信号
入力用入力端子の数nはスイッチ・ユニット3に設けら
れたスイッチ11〜1Nの数N以上である(n≧N)。
The key input circuit 21 includes an input / output port IC 21A.
The input / output port IC 21A includes three input terminals 40 for inputting a switch number designation signal and n input terminals 41, 42,..., 4N,. The number n of switch signal input input terminals is equal to or greater than the number N of switches 11 to 1N provided in the switch unit 3 (n ≧ N).

スイッチ・ユニット3がコネクタ4および5によって
端末装置本体2に接続されたときに,スイッチ・ユニッ
ト3のスイッチ数指定信号発生部6の出力ラインは入出
力ポートIC21Aの入力端子40に接続される。また,スイ
ッチ・ユニット3のスイッチ11〜1Nの他方の端子は入出
力ポートIC21Aの対応する入力端子41〜4Nにそれぞれ接
続される。キー入力回路21はさらにn個のプルアップ抵
抗Rを含み,入力端子41〜4nは対応する抵抗Rを介して
+5Vの電源(ハイ・レベル,以下Hレベルという)に接
続されている。
When the switch unit 3 is connected to the terminal device main body 2 by the connectors 4 and 5, the output line of the switch number designation signal generator 6 of the switch unit 3 is connected to the input terminal 40 of the input / output port IC 21A. The other terminals of the switches 11 to 1N of the switch unit 3 are connected to the corresponding input terminals 41 to 4N of the input / output port IC 21A, respectively. The key input circuit 21 further includes n pull-up resistors R, and the input terminals 41 to 4n are connected to a + 5V power supply (high level, hereinafter referred to as H level) via the corresponding resistors R.

したがって,スイッチ・ユニット3のスイッチ11〜1N
のすべてがオフのときには入出力ポートIC21Aの入力端
子41〜4NはHレベルとなっている。スイッチ11〜1Nのう
ちオンとされたスイッチに対応する入力端子がLレベル
となる。入出力ポートIC21Aの入力端子41〜4N以外の,
スイッチ・ユニット3に接続されていない入力端子[4
(N+1)〜4n]は常にHレベルに保持されている。
Therefore, switches 11 to 1N of switch unit 3
Are turned off, the input terminals 41 to 4N of the input / output port IC21A are at the H level. The input terminal corresponding to the switch turned on among the switches 11 to 1N is at the L level. Other than the input terminals 41 to 4N of the input / output port IC21A,
Input terminal [4] not connected to switch unit 3
(N + 1) to 4n] are always kept at the H level.

入力端子41〜4nの数nおよびスイッチ11〜1Nの数Nの
具体例を挙げると,たとえばn=64に選定される。この
場合にスイッチの数NはN=64または48または32等に選
定される。スイッチの数Nはスイッチ・ユニット3を製
造するメーカが定めることもできるし,スイッチ・ユニ
ット3を購入したユーザがスイッチの増減により任意に
設定することもできる。メーカが一種類のスイッチ・ユ
ニットしか製造しなくてもよいし,スイッチの数Nの異
なる複数種類のスイッチ・ユニットを製造してもよい。
As a specific example of the number n of the input terminals 41 to 4n and the number N of the switches 11 to 1N, for example, n = 64. In this case, the number N of switches is selected to be N = 64, 48, 32, or the like. The number N of switches can be determined by the manufacturer of the switch unit 3 or can be arbitrarily set by the user who purchased the switch unit 3 by increasing or decreasing the number of switches. The manufacturer may manufacture only one type of switch unit, or may manufacture a plurality of types of switch units having different numbers N of switches.

いずれにしてもスイッチ・ユニット3におけるスイッ
チの数Nが定まると,その数Nを表わすコードがスイッ
チ数指定信号発生部6に設定される。たとえば発生部6
の3個のディップ・スイッチを操作することにより,発
生部6から出力されるコード信号が,N=32の場合には00
0,N=64の場合には001を表わすようにスイッチ数指定コ
ードが設定される。
In any case, when the number N of switches in the switch unit 3 is determined, a code representing the number N is set in the switch number designation signal generator 6. For example, generator 6
By operating the three dip switches, the code signal output from the generator 6 becomes 00 when N = 32.
When 0, N = 64, the switch number designation code is set to represent 001.

スイッチ数指定コード信号は入出力ポートIC21Aの入
力端子40に入力し,CPU22はこのコード信号を読取る。そ
してCPU22は入力端子41〜4nのうちこのコードによって
指定される数の入力端子をスキャニングすることによ
り,スイッチ・ユニット3のスイッチ11〜1Nの状態がオ
ンかオフかを判断する。この実施例では簡単のために第
2図において入出力ポートIC21Aの左端のものからN個
の入力端子41〜4Nがスキャニングされるものとする。ス
キャニングによってLレベルの入力端子があればその入
力端子に対応するスイッチがオンであると判定される。
スキャニングされない(n−N)個の入力端子は常にH
レベルであるから,たとえ誤ってスキャニングされたと
しても対応するスイッチ(これは存在しないが)オンで
あると判断されることはない。
The switch number designation code signal is input to the input terminal 40 of the input / output port IC 21A, and the CPU 22 reads this code signal. Then, the CPU 22 scans the number of input terminals designated by this code among the input terminals 41 to 4n to determine whether the state of the switches 11 to 1N of the switch unit 3 is ON or OFF. In this embodiment, for simplicity, it is assumed that N input terminals 41 to 4N are scanned from the left end of the input / output port IC 21A in FIG. If there is an L-level input terminal by scanning, it is determined that the switch corresponding to the input terminal is on.
(N−N) input terminals that are not scanned are always H
Since it is a level, even if it is erroneously scanned, the corresponding switch (which does not exist) is not determined to be on.

スイッチ・ユニット3に設けられたスイッチに接続さ
れた入力端子がスキャニングされればよい。たとえばス
イッチ11〜1Nが入出力ポートIC21Aの右端のものからN
個までの入力端子に接続されていれば,これらの入力端
子がスキャニング処理の対象となる。スイッチ・ユニッ
ト3のスイッチが入出力ポートIC21Aの入力端子の1つ
おきに接続されていれば,これらの接続されている入力
端子がスキャニングされる。いずれにしてもスキャニン
グされる入力端子の数およびその配列パターンがスイッ
チ数指定コード信号によって特定される。
The input terminals connected to the switches provided in the switch unit 3 may be scanned. For example, when the switches 11 to 1N are N from the right end of the input / output port IC 21A.
If connected to up to input terminals, these input terminals are subjected to the scanning process. If the switch of the switch unit 3 is connected to every other input terminal of the input / output port IC21A, these connected input terminals are scanned. In any case, the number of input terminals to be scanned and the arrangement pattern thereof are specified by the switch number designation code signal.

スイッチ・ユニット3が,各スイッチ11〜1Nに対応し
て設けられた表示灯を含むことがある。スイッチ・ユニ
ットがこのような表示灯を備えたものであるかどうかを
示す1ビットのデータを上記のスイッチ数指定コードに
含ませるようにしてもよい。オンとされたスイッチに対
応する表示灯が点灯される。オンとされたスイッチの出
力によって作動するリレー回路をスイッチ・ユニット3
内に設け,このリレー回路によって表示灯を点灯させる
ようにしてもよい。または,上述したスキャニング処理
によってCPU22はオンとなっているスイッチを認識する
ことができるので,このスイッチを表わすコード信号を
入出力ポートIC21Aから発生させかつこのコード信号を
コネクタを介してスイッチ・ユニットに与えるようにし
てもよい。スイッチ・ユニットにはこのコード信号に応
答して対応する表示灯を点灯させる回路を設けておく。
The switch unit 3 may include an indicator light provided for each of the switches 11 to 1N. One-bit data indicating whether or not the switch unit has such an indicator light may be included in the switch number designation code. An indicator light corresponding to the switch that has been turned on is turned on. A switching circuit, which is activated by the output of the switch that has been turned on, is provided in the switching unit 3
And the indicator lamp may be turned on by this relay circuit. Alternatively, the CPU 22 can recognize the switch that is turned on by the above-described scanning process, so that a code signal representing this switch is generated from the input / output port IC 21A and the code signal is transmitted to the switch unit via the connector. You may give it. The switch unit is provided with a circuit for lighting a corresponding indicator light in response to the code signal.

第3図は,端末装置本体2内のCPU22がこれに接続さ
れたスイッチ・ユニット3のスイッチの状態を判別する
処理手順の概要を示すものである。
FIG. 3 shows an outline of a processing procedure in which the CPU 22 in the terminal device main body 2 determines the state of the switch of the switch unit 3 connected thereto.

まず,スイッチ・ユニット3のスイッチ数指定信号発
生部6に設定されコネクタ4および5を介して入出力ポ
ートIC21Aの入力端子40に与えられているスイッチ数指
定コードが読込まれる(ステップ101)。CPU22はこのコ
ードを解析してスイッチ・ユニット3におけるスイッチ
の数Nおよびこれらのスイッチに接続された入力端子
(41〜4nのうちのN個)の位置(入力端子番号)を判定
する(ステップ102)。これにより入力端子41〜4nのう
ちのスキャニングすべき入力端子の数および位置が定ま
る。
First, the switch number designation code set in the switch number designation signal generator 6 of the switch unit 3 and given to the input terminal 40 of the input / output port IC 21A via the connectors 4 and 5 is read (step 101). The CPU 22 analyzes this code to determine the number N of switches in the switch unit 3 and the position (input terminal number) of the input terminals (N out of 41 to 4n) connected to these switches (step 102). ). As a result, the number and positions of the input terminals to be scanned among the input terminals 41 to 4n are determined.

入出力ポートIC21Aには入力端子41〜4nのそれぞれに
対応して記憶素子(たとえばフリップフロップ)が設け
られており,対応する入力端子に入力する信号がHレベ
ルであれば記憶素子の状態によって表わされるフラグが
1にセットされ,Lレベルであれば0にリセットされる。
The input / output port IC21A is provided with a storage element (for example, a flip-flop) corresponding to each of the input terminals 41 to 4n. If a signal input to the corresponding input terminal is at H level, it is represented by the state of the storage element. Is set to 1 and reset to 0 if it is at the L level.

CPU22はN個のスキャンすべき入力端子を8個ずつに
分けてスキャニング処理する。最初の8個の入力端子を
スキャニングして(ステップ103),その8個の中に0
にリセットされたフラグがあるかどうかを判断する(ス
テップ104)。0フラグがなければ,Nから8を減算し
(ステップ107),次の8ビットのフラグのスキャニン
グ処理を行なう(ステップ107,103)。8ビットずつの
スキャニングとNから8を減算する処理の繰返しによっ
て減算結果Nが0または負になればすべての処理を終え
る(ステップ108)。
The CPU 22 performs the scanning process by dividing the N input terminals to be scanned into eight input terminals. Scanning the first eight input terminals (step 103),
It is determined whether or not there is a flag that has been reset (step 104). If there is no 0 flag, 8 is subtracted from N (step 107), and scanning processing of the next 8-bit flag is performed (steps 107 and 103). If the subtraction result N becomes 0 or negative by repeating the scanning of 8 bits and the process of subtracting 8 from N, all the processes are ended (step 108).

ステップ104で0フラグがあると判断したときにはそ
の0フラグの入力端子がどれであるか(何番目の入力端
子か),その入力端子の番号等を特定し,これをメモリ
に記憶する(ステップ105),スイッチ・ユニット3に
おいてオンとされたスイッチが特定されるから,そのス
イッチに対応する処理が行なわれる(ステップ106)。
When it is determined in step 104 that there is a 0 flag, the input terminal of the 0 flag (the number of the input terminal), the number of the input terminal, and the like are specified and stored in a memory (step 105). ), Since the switch turned on in the switch unit 3 is specified, a process corresponding to the switch is performed (step 106).

たとえば,この端末装置が上位コンピュータ(たとえ
ばプログラマブル・コントローラ)に接続されているも
のである場合には,端末装置はオンとされたスイッチを
表わすコードを上位コンピュータに送る。上位コンピュ
ータはこのコードを受取ると,オンとされたスイッチに
対応して実行すべき処理を決定し,この決定結果を表わ
すコマンドを端末装置に向けて送出する。端末装置はこ
のコマンドを受信すると,そのコマンドに対応する処
理,たとえば表示パネル23における所定の表示処理等を
行なう。
For example, if the terminal device is connected to a host computer (for example, a programmable controller), the terminal device sends a code representing the turned-on switch to the host computer. When the host computer receives this code, it determines a process to be executed in response to the switch being turned on, and sends a command representing the result of the determination to the terminal device. Upon receiving the command, the terminal device performs a process corresponding to the command, for example, a predetermined display process on the display panel 23.

第3図に示す処理において,スイッチ・ユニットのス
イッチに接続されていない入力端子のスキャニング処理
は全く行なわれないのはいうまでもない。
Needless to say, in the processing shown in FIG. 3, the scanning processing of the input terminal not connected to the switch of the switch unit is not performed at all.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】端末装置本体と,それぞれ異なる数のスイ
ッチを備えた複数種類のスイッチ・ユニットに共通のコ
ネクタにより上記端末装置本体に着脱自在に接続される
スイッチ・ユニットとから構成され, 上記端末装置本体は, 第1の所定数のスイッチ信号用入力端子, 第2の所定数のスイッチ数指定信号用入力端子,および 上記スイッチ数指定信号用入力端子に与えられるスイッ
チ数指定信号に応じて上記スイッチ信号用入力端子のう
ちの所定の入力端子に与えられるスイッチ入力信号を取
込むスイッチ信号取込手段を備え, 上記スイッチ・ユニットは, 上記第1の所定数以下の数のスイッチ,および 上記スイッチ・ユニットに設けられたスイッチの数を指
定するスイッチ数指定信号を発生するスイッチ数指定信
号発生手段を備え, 上記スイッチ・ユニットのスイッチの出力信号および上
記スイッチ数指定信号発生手段から発生するスイッチ数
指定信号が上記コネクタを介して上記端末装置本体に与
えられる端末装置。
1. A terminal device comprising: a terminal device main body; and a switch unit detachably connected to the terminal device main body by a connector common to a plurality of types of switch units each having a different number of switches. The apparatus main body is configured to respond to the first predetermined number of switch signal input terminals, the second predetermined number of switch number designating signal input terminals, and the switch number designating signal given to the switch number designating signal input terminals. Switch signal capturing means for capturing a switch input signal given to a predetermined input terminal of the switch signal input terminals; the switch unit having a number of switches equal to or less than the first predetermined number; .Switch number specifying signal generating means for generating a switch number specifying signal for specifying the number of switches provided in the unit; Terminal output signal of the switch of the serial switch unit and the switch number designation signal generated by the switch number designation signal generating means is applied to the terminal apparatus main body via the connector device.
【請求項2】第1の所定数のスイッチ信号用入力端子, 第2の所定数のスイッチ数指定信号用入力端子,および 上記スイッチ数指定信号用入力端子に与えられるスイッ
チ数指定信号に応じて上記スイッチ信号用入力端子のう
ちの所定の入力端子に与えられるスイッチ入力信号を取
込むスイッチ信号取込手段, を備えている端末装置本体。
2. A method according to claim 1, further comprising: a first predetermined number of switch signal input terminals; a second predetermined number of switch number designating signal input terminals; and a switch number designating signal supplied to said switch number designating signal input terminal. A terminal device main body comprising: switch signal capturing means for capturing a switch input signal given to a predetermined input terminal of the switch signal input terminals.
【請求項3】請求の範囲第2項に記載の端末装置本体に
コネクタを介して着脱自在に接続されるスイッチ・ユニ
ットであり, 上記第1の所定数以下の数のスイッチ,および 上記スイッチ・ユニットに設けられたスイッチの数を指
定するスイッチ数指定信号を発生するスイッチ数指定信
号発生手段, を備えているスイッチ・ユニット。
3. A switch unit detachably connected to a terminal device main body according to claim 2 via a connector, wherein the number of switches is equal to or less than the first predetermined number, and A switch number specifying signal generating means for generating a switch number specifying signal for specifying the number of switches provided in the unit.
【請求項4】端末装置本体とこれにコネクタにより着脱
自在に接続されるスイッチ・ユニットとから構成され, 上記スイッチ・ユニットは, 所定数のスイッチ,および 上記スイッチ・ユニットに設けられたスイッチの数を指
定するスイッチ数指定信号を発生するスイッチ数指定信
号発生手段を備え, 上記端末装置本体は, 上記所定数以上のスイッチ信号用入力端子, スイッチ数指定信号用入力端子,および 上記スイッチ数指定信号用入力端子に与えられるスイッ
チ数指定信号に応じて上記スイッチ信号用入力端子のう
ちの所定の入力端子に与えられるスイッチ入力信号を取
込むスイッチ信号取込手段を備えている, 端末装置。
4. A terminal device comprising: a terminal device main body; and a switch unit detachably connected to the terminal device by a connector. The switch unit includes a predetermined number of switches and a number of switches provided in the switch unit. And a switch number specifying signal generating means for generating a switch number specifying signal for specifying the number of switches, the terminal device main body includes: a predetermined number or more of switch signal input terminals; a switch number specifying signal input terminal; A terminal device, comprising: switch signal capturing means for capturing a switch input signal supplied to a predetermined input terminal of the switch signal input terminals in accordance with a switch number designation signal supplied to a switch input terminal.
【請求項5】設けられたスイッチの数を表わす信号を発
生するスイッチ数信号発生手段を備え,スイッチが操作
されることにより発生するスイッチ信号と上記スイッチ
数信号発生手段が発生するスイッチ数信号とを出力す
る,複数種類のスイッチ・ユニットがそれらに共通のコ
ネクタを介して着脱自在に接続可能な端末装置本体であ
り, 上記複数種類のスイッチ・ユニットにそれぞれ設けられ
たスイッチの数以上のスイッチ信号用入力端子, スイッチ数信号用入力端子,および 上記スイッチ数信号用入力端子に与えられるスイッチ数
信号に応じて上記スイッチ信号用入力端子のうちの所定
の入力端子に与えられるスイッチ入力信号を取込むスイ
ッチ信号取込手段, を備えている端末装置本体。
5. A switch number signal generating means for generating a signal representing the number of switches provided, wherein a switch signal generated by operating a switch and a switch number signal generated by said switch number signal generating means are provided. A plurality of types of switch units, which are detachably connectable to each other through a common connector to the terminal units, and the number of switch signals is equal to or greater than the number of switches provided in each of the plurality of types of switch units. A switch input signal supplied to a predetermined one of the switch signal input terminals in response to a switch number signal supplied to the switch input signal input terminal, a switch number signal input terminal, and the switch number signal input terminal. A terminal device main body including a switch signal capturing means.
JP3500272A 1989-11-28 1990-11-28 Terminal device, and terminal device body and switch unit constituting the terminal device Expired - Fee Related JP2981773B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3500272A JP2981773B2 (en) 1989-11-28 1990-11-28 Terminal device, and terminal device body and switch unit constituting the terminal device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP1-308151 1989-11-28
JP30815189 1989-11-28
JP3500272A JP2981773B2 (en) 1989-11-28 1990-11-28 Terminal device, and terminal device body and switch unit constituting the terminal device
PCT/JP1990/001542 WO1991008533A1 (en) 1989-11-28 1990-11-28 Terminal, data processor, switching unit, interface, and keyboard the latter three connected to the former two

Publications (1)

Publication Number Publication Date
JP2981773B2 true JP2981773B2 (en) 1999-11-22

Family

ID=26565423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3500272A Expired - Fee Related JP2981773B2 (en) 1989-11-28 1990-11-28 Terminal device, and terminal device body and switch unit constituting the terminal device

Country Status (1)

Country Link
JP (1) JP2981773B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875239A (en) * 1982-09-22 1983-05-06 Toshiba Corp Electronic equipment
JPS60263222A (en) * 1984-06-11 1985-12-26 Matsushita Electric Ind Co Ltd Keyboard device
JPS62174821A (en) * 1986-01-29 1987-07-31 Hitachi Ltd Keyboard
JPH01108624A (en) * 1987-10-20 1989-04-25 Fujitsu Ltd System for allocating function of function key

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875239A (en) * 1982-09-22 1983-05-06 Toshiba Corp Electronic equipment
JPS60263222A (en) * 1984-06-11 1985-12-26 Matsushita Electric Ind Co Ltd Keyboard device
JPS62174821A (en) * 1986-01-29 1987-07-31 Hitachi Ltd Keyboard
JPH01108624A (en) * 1987-10-20 1989-04-25 Fujitsu Ltd System for allocating function of function key

Similar Documents

Publication Publication Date Title
US4454596A (en) Free-programmable, modular control system with integrated user definable display and operating devices
US5274767A (en) Programmable controller with module identification and diagnostic mechanism
CN100489759C (en) Display devices and control thereof
US4253143A (en) Miniature computer capable of using a conventional audio cassette tape deck as an auxiliary memory
US6725283B2 (en) Programmable controller
CN114008984B (en) Computer readable storage medium and management method
US5758193A (en) Interface for connecting terminal device mainframe to plural kinds of switch units having different numbers of switches therein
JP2981773B2 (en) Terminal device, and terminal device body and switch unit constituting the terminal device
JPS60232974A (en) Printer
US20050275366A1 (en) Devices and methods for updating the programming of a system for controlling an electric rotary machine
CN209923559U (en) Address coding control system of computer circular knitting machine
CN210348779U (en) Carrier wave copying controller switching device
JP2782864B2 (en) Terminal device
US20210080918A1 (en) Generation method of control program for machine including input/output apparatus, program generation apparatus, and electric device used for generation method of control program
JP2705260B2 (en) Terminal device
AU553015B2 (en) Step sequence control apparatus
JP5088842B2 (en) Detailed display method when abnormality occurs in motor drive device and motor drive device
JP2995064B2 (en) Image forming device
JP2005141563A (en) Editor apparatus, program for operating computer as editor apparatus, and recording medium
KR970004259B1 (en) Apparatus of ic interface
KR940002469B1 (en) Programmable matrix system
JP3505608B2 (en) Programmable controller
KR970008522B1 (en) Method for detecting cpu pattern, and displaying device thereof
JP2000105652A (en) Compact portable terminal equipment
JPS62254188A (en) Programming unit for dot matrix display decoder

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees