JPH061426B2 - Operation switch circuit - Google Patents
Operation switch circuitInfo
- Publication number
- JPH061426B2 JPH061426B2 JP60010035A JP1003585A JPH061426B2 JP H061426 B2 JPH061426 B2 JP H061426B2 JP 60010035 A JP60010035 A JP 60010035A JP 1003585 A JP1003585 A JP 1003585A JP H061426 B2 JPH061426 B2 JP H061426B2
- Authority
- JP
- Japan
- Prior art keywords
- switch
- code data
- group
- turned
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000001514 detection method Methods 0.000 claims description 11
- 239000011159 matrix material Substances 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000007796 conventional method Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は生産設備機器における操作盤等の操作スイッチ
回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operation switch circuit such as an operation panel in production equipment.
従来の技術 従来、生産設備機器に用いられる操作盤はスイッチそれ
ぞれに配線を行い制御装置までパラレルに結線をする
か、スイッチマトリックスを組みそれぞれのスイッチを
コード化しコードデータをパラレルあるいはシリアルで
制御装置まで転送する方法が一般的であった。Conventional technology Conventionally, the operation panel used for production equipment is wired to each switch and connected in parallel to the control device, or a switch matrix is assembled and each switch is coded to control device in parallel or serial. The method of transfer was common.
第4図,第5図を用いて従来技術を説明する。第4図は
一般的な操作盤の回路でありスイッチ101,102と
ロータリスイッチ103よりなる操作回路で12の共通
線(GND)と11の信号線が各々制御装置3へ接続さ
れ処理される。The conventional technique will be described with reference to FIGS. 4 and 5. FIG. 4 is a circuit of a general operation panel, which is an operation circuit including switches 101 and 102 and a rotary switch 103, and 12 common lines (GND) and 11 signal lines are connected to the control device 3 for processing.
第5図においてはスイッチマトリックスに組まれたスイ
ッチ各々をコード化し13のタイミング信号で入ってく
る入力信号14をスイッチデコード回路2でコード化し
出力する。In FIG. 5, each switch assembled in the switch matrix is coded, and the input signal 14 input by the timing signal 13 is coded by the switch decoding circuit 2 and output.
発明が解決しようとする問題点 このような従来の回路においては第4図のようにスイッ
チの数が増えれば増えるだけ配線数が増えるという欠点
と第5図のようにスイッチを押した時だけコード出力が
でるだけで、常にスイッチの状態を入力して処理する制
御には対応できないという欠点があった。Problems to be Solved by the Invention In such a conventional circuit, the number of wires increases as the number of switches increases as shown in FIG. 4, and the code is generated only when the switches are pressed as shown in FIG. However, there is a drawback in that it is not possible to deal with the control in which the state of the switch is always input and processed only by the output.
本発明はかかる点に鑑みてなされたもので、簡易な構成
で省配線可能なスイッチ回路を提供することを目的とし
ている。The present invention has been made in view of the above points, and an object thereof is to provide a switch circuit with a simple configuration and capable of saving wiring.
問題点を解決するための手段 本発明は上記問題点を解決するため、スイッチマトリッ
クスに組まれたスイッチを一度ON状態になると次に別
のスイッチがON状態になるまで同一のコードデータを
送るべく設定された第1のスイッチ群と、ON状態の間
にかぎり対応するコードデータを送るべく設定された第
2のスイッチ群とに分けて構成したものである。Means for Solving the Problems In order to solve the above problems, according to the present invention, once a switch incorporated in a switch matrix is turned on, the same code data is sent until another switch is turned on next. The first switch group is set and the second switch group is set to send the corresponding code data as long as it is in the ON state.
作用 以上の構成によって、一度ON状態になると次の別のス
イッチがON状態になるまで同一のコードデータを継続
して出力する第1の機能と、スイッチがON状態の間に
かぎり、対応するコードデータを出力する第2の機能と
を同時に有することになり、それぞれのデータを2つの
シリアル転送を用いて制御装置に送るものである。Operation With the above configuration, the first function of continuously outputting the same code data until the next another switch is turned ON once it is turned ON, and the corresponding code is provided as long as the switch is ON. It has a second function of outputting data at the same time, and sends each data to the control device using two serial transfers.
実施例 第1図は本発明のスイッチ回路の一実施例を示す構成図
である。Embodiment FIG. 1 is a block diagram showing an embodiment of the switch circuit of the present invention.
1はスイッチマトリックス回路で、1度ON状態になる
と次の別のスイッチがON状態になるまで同一のコード
データを継続して出力するべく設定された第1のスイッ
チ群1aと、スイッチがON状態の間にかぎり対応する
コードデータを出力するべく設定された第2のスイッチ
群1bとからなる。4は信号処理をする1チップマイコ
ンである。Reference numeral 1 denotes a switch matrix circuit, in which once the switch is turned on, a first switch group 1a set to continuously output the same code data until another switch is turned on, and the switch is turned on. And a second switch group 1b set to output the corresponding code data only during the period. Reference numeral 4 is a one-chip microcomputer that performs signal processing.
1チップマイコン4は15,16,17,18,19の
信号線を有し1のスイッチマトリックス回路につながれ
ており、2つのスイッチ群1a,1bに対して、複数の
タイミング信号を発生、入力するタイミング信号発生部
4aと、2つのスイッチ群1a,1bのうち第1のスイ
ッチ群1aに対して、タイミング信号を介して新たにO
N状態になったスイッチの有無を検出する第1の検出部
4bと、第1の検出部4bにおけるスイッチの有無の検
出に基づいて、新たにON状態になったスイッチがあれ
ば対応するコードデータをシリアル転送し、一方新たに
ON状態になったスイッチがなければ出力中のコードデ
ータを継続して制御回路(図示せず)にシリアル転送す
る第1の転送部4cと、2つのスイッチ群1a,1bの
うち第2のスイッチ群1bに対して、タイミング信号を
介してON状態のスイッチを検出する第2の検出部4d
と、第2の検出部4bにおけるスイッチの有無の検出に
基づいて、ON状態となっている間にかぎり、対応する
コードデータを継続して制御回路(図示せず)にシリア
ル転送する第2の転送部4eとからなっている。The 1-chip microcomputer 4 has 15, 16, 17, 18, and 19 signal lines and is connected to one switch matrix circuit, and generates and inputs a plurality of timing signals to two switch groups 1a and 1b. The timing signal generator 4a and the first switch group 1a of the two switch groups 1a and 1b are newly turned on via a timing signal.
Based on the detection of the presence / absence of the switch in the first detection unit 4b that detects the presence / absence of the switch in the N state, the corresponding code data if there is a new switch in the ON state based on the detection of the presence / absence of the switch in the first detection unit 4b. Is serially transferred to the control circuit (not shown) and serially transfers the code data being output to the control circuit (not shown) unless there is a newly turned on switch, and the two switch groups 1a. , 1b of the second switch group 1b, the second detection unit 4d for detecting the switch in the ON state via the timing signal.
Then, based on the detection of the presence or absence of the switch in the second detection unit 4b, the corresponding code data is continuously serially transferred to the control circuit (not shown) as long as it is in the ON state. It comprises a transfer unit 4e.
1チップマイコン4は第3図の(a),(b),(c),(d)のタイ
ミング信号を発生させ1のスイッチマトリックスの状態
を入力する。スイッチには第3図(f)に示すように各々
がコード化されており、その“1”〜“8”を1つのス
イッチ群とし他の“9”〜“G”を別のスイッチ群とす
る。The one-chip microcomputer 4 generates the timing signals of (a), (b), (c) and (d) in FIG. 3 and inputs the state of the switch matrix of 1. Each switch is coded as shown in FIG. 3 (f), and the "1" to "8" are used as one switch group and the other "9" to "G" are used as another switch group. To do.
第3図(a)のタイミングで1チップマイコン4に入力さ
れるのは“1”,“5”,“9”,“D”であり、(b)
のタイミングでは“2”,“6”,“A”,“E”、
(c)のタイミングでは“3”,“7”,“B”,
“F”,(d)のタイミングでは“4”,“8”,
“C”,“G”である。"1", "5", "9", "D" are input to the one-chip microcomputer 4 at the timing of FIG. 3 (a), and (b)
At the timing of "2", "6", "A", "E",
At the timing of (c), "3", "7", "B",
At the timing of "F", (d), "4", "8",
"C" and "G".
仮に“1”のスイッチが押されたとすると1チップマイ
コン4の入力状況は第3図(e)となる。1チップマイコ
ン4は第2図(a)〜(d)のタイミング信号発生後、出力5
1を介してスイッチ“1”〜“8”のスイッチ内“1”
かONであることを第3図(i)のようにシリアル出力す
る。さらに出力52を介してキーコード“1”のコード
データをシリアル出力する。If the "1" switch is pressed, the input status of the one-chip microcomputer 4 is as shown in FIG. 3 (e). The 1-chip microcomputer 4 outputs 5 after generating the timing signals shown in FIGS. 2 (a) to (d).
"1" in the switch "1" to "8" through 1
If it is ON, it is serially output as shown in FIG. 3 (i). Further, the code data of the key code “1” is serially output via the output 52.
次にスイッチ“A”が押されたとすると1チップマイコ
ン4の状況は第3図(g)となる。Next, assuming that the switch "A" is pressed, the situation of the one-chip microcomputer 4 is as shown in FIG. 3 (g).
1チップマイコン4は“1”〜“8”のスイッチ群の内
新たに押されたスイッチがないことを判断し、前と同様
のデータ“1”がONである情報を出力51を介して出
力する。さらに出力52を介して“A”のキーコードデ
ータを出力する。The 1-chip microcomputer 4 judges that there is no newly pressed switch in the switch group of "1" to "8", and outputs the information that the data "1" is ON as before via the output 51. To do. Further, the key code data of "A" is output via the output 52.
次にスイッチ“2”と“D”が押されたとすると、1チ
ップマイコン4の入力状況は第3図(h)のごとくなる。Next, assuming that the switches "2" and "D" are pressed, the input status of the one-chip microcomputer 4 becomes as shown in FIG. 3 (h).
1チップマイコン4は“1”〜“8”のスイッチ群の内
新たにスイッチが押されたことを判断し出力51を介し
てスイッチ“2”がONである情報を出力する。The one-chip microcomputer 4 determines that a switch is newly pressed in the switch group of "1" to "8" and outputs the information that the switch "2" is ON via the output 51.
さらに出力52を介して“D”のキーコードデータを出
力する。Further, the key code data of "D" is output via the output 52.
上記説明のごとく、1チップマイコン4は“1”〜
“8”のスイッチ群においては新たにスイッチが押され
るまで同一のデータを出力しつづけ一般のロータリース
イッチの役割りをもち、他のスイッチ群においてはスイ
ッチが押されるたびにキーコードデータを出力する。As described above, the 1-chip microcomputer 4 is "1"-
The "8" switch group continues to output the same data until a new switch is pressed, and functions as a general rotary switch, and the other switch groups output key code data each time the switch is pressed. .
これらの出力を第2図に示すごとく6の制御装置に送
る。6の制御装置においてはそれぞれのスイッチ出力を
シリアルからパラレルに変換し、制御装置としては通常
のスイッチ回路として処理できる。These outputs are sent to the control device 6 as shown in FIG. In the control device of No. 6, each switch output can be converted from serial to parallel, and can be processed as a normal switch circuit as the control device.
発明の効果 以上述べてきたように本発明によれば、きわめて簡単な
回路構成で、省配線可能な操作スイッチ回路ができ、実
用的にきわめて有用である。EFFECTS OF THE INVENTION As described above, according to the present invention, an operation switch circuit capable of wiring saving can be formed with an extremely simple circuit configuration, which is extremely useful in practice.
第1図は本発明の一実施例における操作スイッチ回路の
構成図、第2図は操作スイッチ回路と制御装置との結線
図、第3図は本発明におけるタイミング図、第4図及び
第5図は従来回路の構成図である。 1……スイッチマトリックス回路、2……スイッチデコ
ーダ回路、3……制御装置。FIG. 1 is a configuration diagram of an operation switch circuit according to an embodiment of the present invention, FIG. 2 is a connection diagram of the operation switch circuit and a control device, FIG. 3 is a timing diagram in the present invention, FIG. 4 and FIG. FIG. 6 is a configuration diagram of a conventional circuit. 1 ... Switch matrix circuit, 2 ... Switch decoder circuit, 3 ... Control device.
Claims (1)
号を転送するための操作スイッチ回路において、 一度押下されると、次に別のスイッチが押下されるまで
継続してON状態となり、その間対応するコードデータ
を継続して送るべく設定された第1のスイッチ群、およ
び押下され続けている間のみON状態となり、その状態
にかぎり対応するコードデータを送るべく設定された第
2のスイッチ群からなる、マトリックス状に構成された
スイッチ群と、 前記スイッチ群に対して、複数のタイミング信号を発
生、入力するタイミング信号発生部と、 前記スイッチ群のうち前記第1のスイッチ群に対して、
前記タイミング信号を介して新たにON状態になったス
イッチの有無を検出する第1の検出部と、 前記第1の検出部におけるスイッチの有無の検出に基づ
いて、新たにON状態になったスイッチがあれば対応す
るコードデータをシリアル転送し、一方新たにON状態
になったスイッチがなければ出力中のコードデータを継
続して前記制御回路にシリアル転送する第1の転送部
と、 前記スイッチ群のうち前記第2のスイッチ群に対して、
前記タイミング信号を介してON状態のスイッチを検出
する第2の検出部と、 前記第2の検出部におけるスイッチの有無の検出に基づ
いて、ON状態となっている間にかぎり、対応するコー
ドデータを継続して前記制御回路にシリアル転送する第
2の転送部とからなる操作スイッチ回路。1. An operation switch circuit for transferring an input signal to a control circuit for controlling a device, once pressed, the switch is continuously turned on until another switch is pressed next, A first switch group set to continuously send corresponding code data during that time, and a second switch set to send the corresponding code data only in that state while being turned on only while the switch is continuously pressed. A group of switches configured in a matrix, a timing signal generator that generates and inputs a plurality of timing signals for the switch group, and a first switch group of the switch group ,
A first detector that detects the presence or absence of a switch that is newly turned on via the timing signal, and a switch that is newly turned on based on the detection of the presence or absence of a switch by the first detector. If there is, the corresponding code data is serially transferred, while if there is no switch newly turned on, a first transfer unit that continuously transfers the code data being output to the control circuit serially, and the switch group. Of the second switch group,
A second detection unit that detects the switch in the ON state via the timing signal, and corresponding code data only while in the ON state, based on the detection of the presence or absence of the switch in the second detection unit. And a second transfer unit for serially transferring to the control circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60010035A JPH061426B2 (en) | 1985-01-23 | 1985-01-23 | Operation switch circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60010035A JPH061426B2 (en) | 1985-01-23 | 1985-01-23 | Operation switch circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61169925A JPS61169925A (en) | 1986-07-31 |
| JPH061426B2 true JPH061426B2 (en) | 1994-01-05 |
Family
ID=11739133
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60010035A Expired - Lifetime JPH061426B2 (en) | 1985-01-23 | 1985-01-23 | Operation switch circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH061426B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58223835A (en) * | 1982-06-22 | 1983-12-26 | Fujitsu Ltd | Keyboard control circuit |
| JPS59109934A (en) * | 1982-12-15 | 1984-06-25 | Toshiba Corp | digital input circuit |
-
1985
- 1985-01-23 JP JP60010035A patent/JPH061426B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61169925A (en) | 1986-07-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0346003A3 (en) | Multiprocessor control system | |
| JPH061426B2 (en) | Operation switch circuit | |
| JPH0287204A (en) | process input/output device | |
| JPH0454514Y2 (en) | ||
| JPS622856Y2 (en) | ||
| JP2708366B2 (en) | Data processing system and auxiliary control device | |
| JPH0293876U (en) | ||
| JPS5963786U (en) | fire signal repeater | |
| JPS62245356A (en) | Data transfer system | |
| SU868740A1 (en) | Device for interfacing computer with pick-ups | |
| JPH05151151A (en) | Bus converting device | |
| JPS61161836A (en) | Switch signal coding device | |
| JPS63143935U (en) | ||
| JPS60172996U (en) | remote control blind device | |
| JPS61172452A (en) | Data transmission system | |
| JPH05108216A (en) | Power source control signal converter | |
| JPS6344267A (en) | Intermodule bus system | |
| JPS60154799A (en) | Controller | |
| JPS6362893U (en) | ||
| JPS61826A (en) | Input indicating device | |
| JPS61138033U (en) | ||
| JPS58176231U (en) | Operation control device | |
| JPS60185444A (en) | Status signal detecting system | |
| JPH04170659A (en) | Input/output control device | |
| JPS63227152A (en) | Signal selecting circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |