JPH0537256Y2 - - Google Patents
Info
- Publication number
- JPH0537256Y2 JPH0537256Y2 JP13784184U JP13784184U JPH0537256Y2 JP H0537256 Y2 JPH0537256 Y2 JP H0537256Y2 JP 13784184 U JP13784184 U JP 13784184U JP 13784184 U JP13784184 U JP 13784184U JP H0537256 Y2 JPH0537256 Y2 JP H0537256Y2
- Authority
- JP
- Japan
- Prior art keywords
- input
- microcomputer
- level
- state
- contact switch
- 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
- 230000002159 abnormal effect Effects 0.000 claims description 24
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 4
- 238000002485 combustion reaction Methods 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 2
Landscapes
- Tests Of Electronic Circuits (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Description
【考案の詳細な説明】
[考案の技術分野]
この考案はマイクロコンピユータを使用した状
態判別装置の改良に関する。[Detailed Description of the Invention] [Technical Field of the Invention] This invention relates to an improvement of a state determination device using a microcomputer.
[考案の技術的背景]
従来、マイクロコンピユータを使用した状態判
別装置としては例えば第6図に示すようにマイク
ロコンピユータ1の入力ポートINに一端を+Vs
端子に接続した抵抗2と一端を接地した接点スイ
ツチ3との直列回路の上記抵抗2と接点スイツチ
3との接続点を接続し、接点スイツチ3のオン、
オフ動作によつて前記接続点から発生する接点信
号を入力ポートINから信号ラインL及びインバ
ータ4を介して取込み、接点スイツチ3の状態を
判別するようにしたものが知られている。なお、
前記接点スイツチ3はマイクロコンピユータ1で
制御される装置の異常状態を検出して動作するも
ので、例えば装置が燃焼装置の場合には地震検出
用のスイツチなどで、この接点スイツチ3は正常
時ではオン動作しており、異常状態になるとオフ
動作するものである。[Technical background of the invention] Conventionally, as a state determination device using a microcomputer, one end is connected to +Vs at the input port IN of the microcomputer 1, as shown in FIG.
Connect the connection point between the resistor 2 and the contact switch 3 in a series circuit consisting of the resistor 2 connected to the terminal and the contact switch 3 whose one end is grounded, and turn on the contact switch 3.
A known device is known in which the state of the contact switch 3 is determined by taking in a contact signal generated from the connection point by the off-operation from the input port IN via the signal line L and the inverter 4. In addition,
The contact switch 3 operates by detecting an abnormal state of the device controlled by the microcomputer 1. For example, if the device is a combustion device, it is a switch for detecting an earthquake. It is turned on and turned off when an abnormal condition occurs.
従つて、マイクロコンピユータ1は第7図に示
すように入力ポートINのレベル状態を入力し、
そのレベルがLレベルであれば接点スイツチ3が
オン動作していて正常状態になつていると判別し
て次のシーケンスへ移行し、そのレベルがHレベ
ルであれば接点スイツチ3がオフ動作していて異
常状態になつていると判別して異常シーケンスへ
ジヤンプして異常状態に対処する制御を行なうよ
うにしている。この異常状態に対処する制御とし
ては例えば燃焼装置であれば燃焼動作を停止させ
る制御となる。 Therefore, the microcomputer 1 inputs the level state of the input port IN as shown in FIG.
If the level is L level, it is determined that the contact switch 3 is on and in a normal state, and the process moves to the next sequence. If the level is H level, the contact switch 3 is turned off. When it is determined that an abnormal state has occurred, the system jumps to an abnormal sequence and performs control to deal with the abnormal state. For example, in the case of a combustion device, the control to deal with this abnormal state is control to stop the combustion operation.
[背景技術の問題点]
しかしながら、この従来装置において例えばマ
イクロコンピユータ1の内部に設けられているラ
インLがイ箇所で断線するような事故が発生する
と、インバータ4への入力レベルが定まらなくな
り、このため例えはマイクロコンピユータ1がイ
ンバータ4の出力をHレベルと読込む、すなわち
入力ポートINのレベルをLレベルと読込む状態
になつた場合、異常状態が発生して接点スイツチ
3がオフ動作してもマイクロコンピユータ1は正
常状態になると判別してしまい、例えば燃焼装置
では地震が発生しても消火動作が行われないとい
うきわめて重要なミスを犯す問題があつた。[Problems in the Background Art] However, in this conventional device, if an accident occurs such as, for example, the line L provided inside the microcomputer 1 is broken at a location A, the input level to the inverter 4 becomes unstable, and this Therefore, for example, if the microcomputer 1 reads the output of the inverter 4 as H level, that is, reads the level of the input port IN as L level, an abnormal condition occurs and the contact switch 3 turns OFF. However, the microcomputer 1 determines that the system is in a normal state, and for example, in a combustion system, even if an earthquake occurs, a fire extinguishing operation is not performed, which is a very important mistake.
[考案の目的]
この考案はこのような問題を解決するために考
えられたもので、たとえ内部に設けられた信号ラ
インが断線する事故が発生しても確実に異常状態
を判別することができるマイクロコンピユータを
使用した状態判別装置を提供することを目的とす
る。[Purpose of the invention] This invention was devised to solve this problem, and even if an accident occurs in which the internal signal line is disconnected, the abnormal state can be reliably determined. The purpose of this invention is to provide a state determination device using a microcomputer.
[考案の概要]
この考案は内部に収納されているトランジスタ
をオン、オフ制御することによつて入出力ポート
をハイレベル、ローレベルに設定することが可能
なマイクロコンピユータと、このマイクロコンピ
ユータで制御される装置の異常状態を検出して動
作する接点スイツチを設け、その接点スイツチの
動作に応じて発生する接点信号を入出力ポートに
供給する接点信号発生回路とを有し、マイクロコ
ンピユータはトランジスタをオン、オフ制御し、
それぞれオン時、オフ時おける入出力ポートのレ
ベル状態を取込んで制御装置の正常及び異常状態
を判別するものである。[Summary of the invention] This invention is based on a microcomputer that can set input/output ports to high and low levels by turning on and off the transistors housed inside, and a control system using this microcomputer. The microcomputer is equipped with a contact switch that operates by detecting an abnormal state of the device being operated, and a contact signal generation circuit that supplies a contact signal generated in response to the operation of the contact switch to an input/output port. On, off control,
The normal and abnormal states of the control device are determined by taking in the level states of the input/output ports when they are on and off, respectively.
[考案の実施例]
以下、この考案の一実施例を図面を参照して説
明する。[Embodiment of the invention] An embodiment of the invention will be described below with reference to the drawings.
これは第1図に示すように、マイクロコンピユ
ータ11の入出力ポートI/Oに地震などの異常
状態を検出してオフ動作する常閉形の接点スイツ
チ12と抵抗13との接続点を接続している。前
記接点スイツチ12の他端側は抵抗14を介して
+Vs端子に接続され、前記抵抗13の他端側は
接地されている。前記接点スイツチ12、抵抗1
3,14の直列回路は接点信号発生回路を構成す
るものである。前記抵抗13と14の抵抗値R1
3,R14の関係はR13≫R14になつてい
る。前記マイクロコンピユータ11はN−MOS
形で構成され、その内部には一端が前記入出力ポ
ートI/Oとインバータ15の入力端子との間に
接続された信号ラインLに接続され、他端が接地
されたトランジスタ16が設けられている。前記
トランジスタ16はCPUによつて制御される出
力ラツチ17からの信号によつてオン、オフ制御
される様になつている。 As shown in Figure 1, this is done by connecting the connection point between a normally closed contact switch 12, which turns off when an abnormal condition such as an earthquake is detected, and a resistor 13 to the input/output port I/O of the microcomputer 11. There is. The other end of the contact switch 12 is connected to the +Vs terminal via a resistor 14, and the other end of the resistor 13 is grounded. The contact switch 12, the resistor 1
The series circuits 3 and 14 constitute a contact signal generation circuit. Resistance value R1 of the resistors 13 and 14
The relationship between 3 and R14 is R13≫R14. The microcomputer 11 is an N-MOS
The transistor 16 has one end connected to the signal line L connected between the input/output port I/O and the input terminal of the inverter 15, and has the other end grounded. There is. The transistor 16 is turned on and off by a signal from an output latch 17 controlled by the CPU.
前記マイクロコンピユータ11は内蔵されてい
るプログラムデータに基づいて第2図に示すプロ
グラム制御を行なうようにしている。すなわち、
出力ラツチ17からの信号によつてトランジスタ
16をオフ制御し、入出力ポートI/OをHレベ
ルに設定する。この状態で入出力ポートI/Oの
レベル信号を入力する。そしてレベル信号がHレ
ベルであれば次に出力ラツチ17からの信号によ
りトランジスタ16をオン制御して入出力ポート
I/OをLレベルに設定する。この状態で入出力
ポートI/Oのレベル信号を入力する。そしてレ
ベル信号がLレベルであれば次のシーケンスへ移
行する。また、前記入出力ポートI/OをHレベ
ルに設定したときにレベル信号がLレベルであつ
たり、前記入出力ポートI/OをLレベルに設定
したときにレベル信号がHレベルであつたときに
は異常状態発生と判断して異常シーケンスへジヤ
ンプする。この異常シーケンスの実行により、燃
焼装置であれば消火制御を行なう。 The microcomputer 11 performs program control as shown in FIG. 2 based on built-in program data. That is,
The transistor 16 is turned off by the signal from the output latch 17, and the input/output port I/O is set to H level. In this state, input the level signal of the input/output port I/O. If the level signal is at the H level, then the transistor 16 is turned on by the signal from the output latch 17 to set the input/output port I/O to the L level. In this state, input the level signal of the input/output port I/O. If the level signal is at L level, the process moves to the next sequence. Also, if the level signal is at L level when the input/output port I/O is set to H level, or the level signal is at H level when the input/output port I/O is set to L level, Determine that an abnormal condition has occurred and jump to the abnormal sequence. By executing this abnormal sequence, if it is a combustion device, extinguishing control is performed.
このような構成であれば、トランジスタ16を
オフして入出力ポートI/OをHレベルに設定し
たときにHレベル信号が入力されたときには接点
スイツチ12がオン状態にあつて装置が正常に動
作していると判断する。また、Lレベル信号が入
力されたときには接点スイツチ12がオフ状態に
あり装置の異常状態を検出していると判断して異
常シーケンスを実行する。次にトランジスタ16
をオンして入出力ポートI/OをLレベルに設定
したときにLレベル信号が入力されたときには回
路が正常に働いていると判断し、またHレベル信
号が入力されたときには信号ラインLがロの箇所
で断線しているかトランジスタ16が故障してオ
ープン状態になつていると判断して異常シーケン
スを実行する。なお、信号ラインLがハやニの箇
所で断線してもこのときには接点スイツチ12が
オフしたと略同様の状態になつて直ちに異常シー
ケンスが実行される。 With this configuration, when the transistor 16 is turned off and the input/output port I/O is set to the H level, when the H level signal is input, the contact switch 12 is in the on state and the device operates normally. judge that it is. Further, when the L level signal is input, it is determined that the contact switch 12 is in the OFF state and an abnormal state of the device is detected, and the abnormality sequence is executed. Next, transistor 16
When the input/output port I/O is turned on and the input/output port I/O is set to L level, if an L level signal is input, it is determined that the circuit is working normally, and if an H level signal is input, the signal line L is It is determined that there is a disconnection or the transistor 16 has failed and is in an open state at the location (b), and an abnormality sequence is executed. Incidentally, even if the signal line L is disconnected at a point C or D, the abnormality sequence is immediately executed in almost the same state as if the contact switch 12 were turned off.
このような接点スイツチ12のオフ状態、オン
状態による装置の正常、異常を判別できるのみで
なく、信号ラインLの断線、トランジスタ16の
故障によるポートの異常状態も判別できるので、
確実に異常発生に対処することができる。従つ
て、これを燃焼装置に適用した場合、地震などが
発生した場合に確実に消火できるとともに回路異
常が発生した場合にも確実に消火することがで
き、安全性を向上することができる。 Not only can it be determined whether the device is normal or abnormal based on the off state or on state of the contact switch 12, but also the abnormal state of the port due to disconnection of the signal line L or failure of the transistor 16 can be determined.
It is possible to reliably deal with abnormal occurrences. Therefore, when this is applied to a combustion device, it is possible to reliably extinguish a fire in the event of an earthquake or the like, and it is also possible to reliably extinguish a fire in the event of a circuit abnormality, thereby improving safety.
次にこの考案の他の実施例を図面を参照して説
明する。なお、前記実施例と同一部分には同一符
号を付して詳細な説明は省略する。 Next, another embodiment of this invention will be described with reference to the drawings. Note that the same parts as in the above embodiment are given the same reference numerals, and detailed explanations will be omitted.
先ず、第3図に示すものは第1図における抵抗
14に換えて抵抗18を接点スイツチ12と抵抗
13との接続点と入出力ポートI/Oとの間に介
挿して接点信号発生回路を構成したものである。 First, in the circuit shown in FIG. 3, a resistor 18 is inserted in place of the resistor 14 in FIG. 1 between the connection point between the contact switch 12 and the resistor 13 and the input/output port I/O to form a contact signal generation circuit. It is composed of
このものにおいても第1図の場合と同様のプロ
グラム制御によつて正常状態及び異常状態を判別
できるものである。従つて、このものにおいても
前記実施例と同様の効果が得られるものである。 In this case as well, the normal state and abnormal state can be determined by program control similar to the case shown in FIG. Therefore, in this case as well, the same effects as in the above embodiment can be obtained.
また、第4図に示すものは接点信号発生回路と
して接点スイツチ12の一端を高い抵抗値をもつ
抵抗19を介して+Vs端子に接続し、他端を低
い抵抗値をもつ抵抗20を介して接地したものを
使用し、抵抗19と接点スイツチ12との接続点
を入出力ポートI/Oに接続している。またマイ
クロコンピユータ11としてP−MOS形のもの
を使用している。このマイクロコンピユータ11
においては一端が+Vs端子に接続され、他端が
信号ラインLに接続されたトランジスタ21を使
用し、そのトランジスタ21を出力ラツチ17か
らの信号によつてオン、オフ制御している。 The circuit shown in FIG. 4 is a contact signal generating circuit in which one end of a contact switch 12 is connected to the +Vs terminal via a resistor 19 with a high resistance value, and the other end is grounded via a resistor 20 with a low resistance value. The connection point between the resistor 19 and the contact switch 12 is connected to the input/output port I/O. Further, as the microcomputer 11, a P-MOS type is used. This microcomputer 11
In this case, a transistor 21 having one end connected to the +Vs terminal and the other end connected to the signal line L is used, and the transistor 21 is turned on and off by a signal from the output latch 17.
このものにおいては第1図のときのプログラム
制御、すなわち第2図の流れ図においてレベルを
丁度逆にしたプログラム制御を行なうことによつ
て正常状態及び異常状態の判別を前記実施例同様
に確実にできるものである。従つて、このものに
おいても前記実施例と同様の効果が得られるもの
である。 In this embodiment, by carrying out program control in which the levels are exactly reversed from those in Fig. 1, i.e., in the flow chart of Fig. 2, it is possible to reliably distinguish between normal and abnormal states in the same manner as in the previous embodiment, and therefore it is possible to obtain the same effects as in the previous embodiment.
また、第5図に示すものは第3図において接点
スイツチ12と抵抗13との位置を入替え、また
マイクロコンピユータ11として第4図のものと
同様にP−MOS形のものを使用している。 Furthermore, in the device shown in FIG. 5, the positions of the contact switch 12 and the resistor 13 in FIG.
このものにおいも第4図のときのプログラム制
御と同様に第1図のときのプログラム制御、すな
わち第2図の流れ図においてレベルを丁度逆にし
たプログラム制御を行なうことによつて正常状態
及び異常状態の判別を前記実施例同様に確実にで
きるものである。従つて、このものにおいても前
記実施例と同様の効果が得られるものである。 Similar to the program control shown in Fig. 4, this odor can also be controlled in normal and abnormal states by performing the program control shown in Fig. 1, that is, the program control with the level exactly reversed in the flowchart shown in Fig. 2. As in the previous embodiment, the determination can be made reliably. Therefore, in this case as well, the same effects as in the above embodiment can be obtained.
[考案の効果]
以上詳述したようにこの考案によれば、回路正
常時において接点スイツチの動作による以上状態
の判別は勿論、たとえ内部に設けられた信号ライ
ンが断線する事故が発生しても確実に異常状態を
判別することができるマイクロコンピユータを使
用した状態判別装置を提供できるものである。[Effects of the invention] As detailed above, according to this invention, the above conditions can be determined by the operation of the contact switch when the circuit is normal, and even if an accident occurs in which the internal signal line is disconnected. It is possible to provide a state determination device using a microcomputer that can reliably determine abnormal states.
第1図はこの考案の一実施例を示す回路図、第
2図は同実施例におけるプログラム制御を示す流
れ図、第3図〜第5図はこの考案の他の実施例を
示す回路図、第6図は従来例を示す回路図、第7
図は同従来例におけるプログラム制御を示す流れ
図である。
11……マイクロコンピユータ、12……接点
スイツチ、13,14……抵抗、16……トラン
ジスタ、17……出力ラツチ。
FIG. 1 is a circuit diagram showing one embodiment of this invention, FIG. 2 is a flowchart showing program control in the same embodiment, and FIGS. 3 to 5 are circuit diagrams showing other embodiments of this invention. Figure 6 is a circuit diagram showing a conventional example, and Figure 7 is a circuit diagram showing a conventional example.
The figure is a flowchart showing program control in the conventional example. 11...Microcomputer, 12...Contact switch, 13, 14...Resistor, 16...Transistor, 17...Output latch.
Claims (1)
フ制御することによつて入出力ポートをハイレベ
ル、ローレベルに設定することが可能なマイクロ
コンピユータと、このマイクロコンピユータで制
御される装置の異常状態を検出して動作する接点
スイツチを設け、その接点スイツチの動作に応じ
て発生する接点信号を前記入出力ポートに供給す
る接点信号発生回路とを有し、前記マイクロコン
ピユータは前記トランジスタをオン、オフ制御
し、それぞれオン時、オフ時おける前記入出力ポ
ートのレベル状態を取込んで制御装置の正常及び
異常状態を判別することを特徴とするマイクロコ
ンピユータを使用した状態判別装置。 A microcomputer that can set input/output ports to high and low levels by turning on and off the transistors housed inside, and detects abnormal conditions in devices controlled by this microcomputer. and a contact signal generation circuit that supplies a contact signal generated in accordance with the operation of the contact switch to the input/output port, and the microcomputer controls the transistor on and off. A state determination device using a microcomputer, characterized in that it determines whether a control device is in a normal or abnormal state by reading the level state of the input/output port when it is on or off, respectively.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13784184U JPH0537256Y2 (en) | 1984-09-13 | 1984-09-13 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13784184U JPH0537256Y2 (en) | 1984-09-13 | 1984-09-13 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6154280U JPS6154280U (en) | 1986-04-11 |
| JPH0537256Y2 true JPH0537256Y2 (en) | 1993-09-21 |
Family
ID=30696245
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13784184U Expired - Lifetime JPH0537256Y2 (en) | 1984-09-13 | 1984-09-13 |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0537256Y2 (en) |
-
1984
- 1984-09-13 JP JP13784184U patent/JPH0537256Y2/ja not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6154280U (en) | 1986-04-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6297569B1 (en) | Power switching system | |
| JPH11237427A (en) | Switch state detection apparatus | |
| JPH10105422A (en) | Protection device control circuit | |
| CN209946646U (en) | Redundant circuit switching system for single-loop control instrument | |
| JP3630824B2 (en) | Auxiliary relay drive circuit | |
| JPH0236003B2 (en) | ||
| JPH0212448Y2 (en) | ||
| JPS6227405B2 (en) | ||
| JPS6160467B2 (en) | ||
| JPS6314499Y2 (en) | ||
| JPH0380303A (en) | Duplexing device | |
| JPS63187911A (en) | Signal inputting device | |
| JPH0237064Y2 (en) | ||
| JPH0434460Y2 (en) | ||
| JPS6315625B2 (en) | ||
| JPS60238616A (en) | Monitoring circuit for combustion device | |
| JPH0142772Y2 (en) | ||
| JP2824597B2 (en) | Combustor safety device | |
| KR0128198Y1 (en) | Fault detection circuit of distributed control system | |
| JPS6356663B2 (en) | ||
| JPH0325228Y2 (en) | ||
| JP2621031B2 (en) | Engine controller diagnostic device | |
| JPS62141930A (en) | System stabilizer | |
| JPS597825A (en) | Gas combustion safety control device | |
| JPH0916294A (en) | Malfunction prevention device for load operation control unit |