JPS6331819B2 - - Google Patents
Info
- Publication number
- JPS6331819B2 JPS6331819B2 JP57047333A JP4733382A JPS6331819B2 JP S6331819 B2 JPS6331819 B2 JP S6331819B2 JP 57047333 A JP57047333 A JP 57047333A JP 4733382 A JP4733382 A JP 4733382A JP S6331819 B2 JPS6331819 B2 JP S6331819B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- circuit
- standby
- control
- integrating
- 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
Links
- 230000005856 abnormality Effects 0.000 description 9
- 238000001514 detection method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 3
- 239000003990 capacitor Substances 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Hardware Redundancy (AREA)
- Debugging And Monitoring (AREA)
- Multi Processors (AREA)
Description
【発明の詳細な説明】
(1) 発明の技術分野
本発明は1つの対象を2つのマイクロコンピユ
ータ、すなわち現用および予備用のマイクロコン
ピユータを用いて制御するマイクロコンピユータ
システムの切替方式に関する。DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a switching method for a microcomputer system in which one object is controlled using two microcomputers, that is, a working microcomputer and a backup microcomputer.
(2) 技術の背景
リアルタイムオンライン制御プログラム等を実
行して1つの対象を制御するとき、1つの現用マ
イクロコンピユータにより制御するが、この現用
マイクロコンピユータに障害が発生した場合に
は、待機中の予備用マイクロコンピユータが制御
を引継ぐマイクロコンピユータシステムがある。
このようなマイクロコンピユータシステムにおい
ては、現用マイクロコンピユータの障害時に、制
御を現用マイクロコンピユータから予備用マイク
ロコンピユータに迅速に切替えることが重要であ
る。(2) Background of the technology When controlling one object by executing a real-time online control program, etc., it is controlled by one active microcomputer, but if a failure occurs in this active microcomputer, a standby backup There is a microcomputer system in which a microcomputer takes over control.
In such a microcomputer system, it is important to quickly switch control from the current microcomputer to a standby microcomputer in the event of a failure of the current microcomputer.
(3) 従来技術と問題点
従来のマイクロコンピユータシステムの切替方
式によれば、特定出力ポートの出力信号を用いて
ハードウエアの異常を検出し、この結果、割込み
プログラムルーチンを用いて現用マイクロコンピ
ユータによる制御から予備用マイクロコンピユー
タによる制御に切替えるようにしていた。しかし
ながら、この従来方式においては、ソフトウエア
(プログラム)の暴走あるいは動作の異常(たと
えば電源ダウン)等を迅速には検出できず、従つ
て、現用マイクロコンピユータから予備用マイク
ロコンピユータへの切替えが迅速でないという問
題点があつた。(3) Prior art and problems According to the conventional switching method of microcomputer systems, a hardware abnormality is detected using the output signal of a specific output port, and as a result, the current microcomputer uses an interrupt program routine to The system was designed to switch from control to control using a standby microcomputer. However, with this conventional method, it is not possible to quickly detect runaway software (programs) or operational abnormalities (for example, power down), and therefore it is not possible to quickly switch from the current microcomputer to the backup microcomputer. There was a problem.
(4) 発明の目的
本発明の目的は、リアルタイムオンライン制御
プログラムのように一定周期のプログラム実行時
にはアドレスバスの電流の平均値(積分値)はほ
ぼ一定にあることに着目し、所定アドレスバスの
電流積分値が所定範囲から外れたときにソフトウ
エアの暴走あるいは電源ダウン等が発生したとみ
なし、現用マイクロコンピユータによる制御から
予備用マイクロコンピユータによる制御に迅速に
且つ自動的に切替え、それにより、上述の従来方
式における問題点を解決することにある。(4) Purpose of the Invention The purpose of the present invention is to focus on the fact that the average value (integral value) of the address bus current is almost constant when a program such as a real-time online control program is executed at a constant cycle, and to When the current integral value deviates from a predetermined range, it is assumed that a software runaway or a power outage has occurred, and control is quickly and automatically switched from control by the current microcomputer to control by the standby microcomputer. The aim is to solve the problems in the conventional method.
(5) 発明の構成
上述の目的を達成するために本発明によれば、
1つの対象を制御するために現用マイクロコンピ
ユータおよび予備用マイクロコンピユータを具備
するマイクロコンピユータシステムにおいて、前
記現用マイクロコンピユータの所定アドレスバス
の電流を積分する積分手段と、該積分手段の積分
値が所定範囲にあるか否かを判別する判別手段
と、該判別手段の判別結果に応じて割込み信号を
前記予備用マイクロコンピユータに送出する割込
み信号発生手段と、を具備し、前記割込み信号に
より前記対象への制御を前記現用マイクロコンピ
ユータから前記予備用マイクロコンピユータに切
替えて行うようにしたことを特徴とするマイクロ
コンピユータシステムにおける切替方式が提供さ
れる。(5) Structure of the invention In order to achieve the above-mentioned object, according to the present invention,
In a microcomputer system comprising a working microcomputer and a standby microcomputer for controlling one object, there is an integrating means for integrating the current of a predetermined address bus of the working microcomputer, and an integral value of the integrating means is within a predetermined range. and interrupt signal generating means for sending an interrupt signal to the standby microcomputer according to the determination result of the determining means, There is provided a switching system in a microcomputer system, characterized in that control is performed by switching from the working microcomputer to the standby microcomputer.
(6) 発明の実施例 以下、図面により本発明を説明する。(6) Examples of the invention The present invention will be explained below with reference to the drawings.
第1図は本発明の一実施例としてマイクロコン
ピユータシステムの切替方式を示すブロツク回路
図である。第1図において、現用マイクロコンピ
ユータ1および予備側マイクロコンピユータ2は
制御対象3を制御するものであり、異常検出回路
4が現用マイクロコンピユータ1の異常を検出し
たときに、現用マイクロコンピユータ1による制
御から予備用マイクロコンピユータ2による制御
に切替わる。 FIG. 1 is a block circuit diagram showing a switching system of a microcomputer system as an embodiment of the present invention. In FIG. 1, a working microcomputer 1 and a standby microcomputer 2 control a controlled object 3, and when an abnormality detection circuit 4 detects an abnormality in the working microcomputer 1, the control by the working microcomputer 1 is terminated. Control is switched to the standby microcomputer 2.
すなわち、異常検出回路4は現用マイクロコン
ピユータ1のアドレスバスの1つたとえばA0の
電流値から異常を検出したときに、予備用マイク
ロコンピユータ2に切替割込み信号を送出す
る。この結果、予備用マイクロコンピユータ2は
スイツチ5に回線切替信号Sを送出し、この結
果、制御ライン6と制御ライン7との接続が制御
ライン8と制御ライン7との接続に切替わること
になる。 That is, when the abnormality detection circuit 4 detects an abnormality from the current value of one of the address buses of the working microcomputer 1, for example, A0 , it sends a switching interrupt signal to the standby microcomputer 2. As a result, the standby microcomputer 2 sends a line switching signal S to the switch 5, and as a result, the connection between the control line 6 and the control line 7 is switched to the connection between the control line 8 and the control line 7. .
第2図は第1図の異常検出回路4の詳細な回路
図である。第2図において、41はダイオードD
およびキヤパシタCにより構成される積分回路、
42,43は比較回路、44はオア回路、45は
ワンシヨツトマルチバイブレータである。 FIG. 2 is a detailed circuit diagram of the abnormality detection circuit 4 of FIG. 1. In Figure 2, 41 is a diode D
and an integrating circuit composed of a capacitor C,
42 and 43 are comparison circuits, 44 is an OR circuit, and 45 is a one-shot multivibrator.
積分回路41はアドレスバスA0の電流を所定
時定数で積分(平均化)するものであり、ダイオ
ードDの抵抗値およびキヤパシタCによつて決定
される該時定数は、たとえば第3図に示されるよ
うなリアルタイムオンライン制御プログラムの処
理周期より長く設定される。従つて、積分回路4
1の出力値は第3図の正常なプログラム処理中に
あつてはほぼ一定値に保持されることになる。 The integration circuit 41 integrates (averages) the current of the address bus A0 with a predetermined time constant, and the time constant determined by the resistance value of the diode D and the capacitor C is, for example, as shown in FIG. This is set to be longer than the processing cycle of the real-time online control program. Therefore, the integration circuit 4
The output value of 1 is held at a substantially constant value during normal program processing as shown in FIG.
比較回路42,43およびオア回路44は積分
回路41の出力値が正常な範囲内にあるかを判別
するための手段である。この場合、正常な範囲は
VR1〜VR2で表わされ、この2つの値VR1,VR2は
抵抗R1,R2,R3,R4によつて設定され
る。次に、たとえば、積分回路41の出力値が最
小設定値VR1未満になると、比較回路42の出力
信号がハイ、従つて、オア回路44の出力信号が
ハイとなる。逆に、積分回路41の出力値が最大
設定値VR2を超えると、比較回路43の出力信号
がハイ、従つて、オア回路44の出力信号がハイ
となる。このように積分回路41の出力値が範囲
VR1〜VR2を外れると、オア回路44の出力信号
はローからハイとなる。 Comparing circuits 42, 43 and OR circuit 44 are means for determining whether the output value of integrating circuit 41 is within a normal range. In this case, the normal range is
These two values V R1 and V R2 are set by resistors R1 , R2, R3, and R4. Next, for example, when the output value of the integrating circuit 41 becomes less than the minimum set value V R1 , the output signal of the comparator circuit 42 becomes high, and therefore the output signal of the OR circuit 44 becomes high. Conversely, when the output value of the integrating circuit 41 exceeds the maximum set value V R2 , the output signal of the comparator circuit 43 becomes high, and therefore the output signal of the OR circuit 44 becomes high. In this way, the output value of the integrating circuit 41 is within the range
When V R1 to V R2 are exceeded, the output signal of the OR circuit 44 changes from low to high.
割込み信号発生手段であるワンシヨツトマルチ
バイブレータ45は上述のオア回路44の出力信
号のローからハイへの立上り変化に応答して所定
パルス幅の切替割込み信号を送出することにな
る。 The one-shot multivibrator 45, which is an interrupt signal generating means, sends out a switching interrupt signal of a predetermined pulse width in response to the rise of the output signal of the OR circuit 44 from low to high.
このような積分回路41の出力値が範囲VR1〜
VR2を外れる原因はソフトウエア(プログラム)
の暴走および電源ダウンを含むものである。 The output value of such an integrating circuit 41 is within the range V R1 ~
The cause of V R2 disconnection is software (program)
This includes runaway and power outage.
(7) 発明の効果
以上説明したように本発明によれば、ソフトウ
エアの暴走あるいは電源ダウン等の検出を現用マ
イクロコンピユータのアドレスバスの電流の積分
値により判別することができ、これにより、現用
マイクロコンピユータの制御を予備用マイクロコ
ンピユータの制御に迅速に切替えることができ
る。(7) Effects of the Invention As explained above, according to the present invention, detection of software runaway or power down can be determined based on the integrated value of the current of the address bus of the currently used microcomputer. Control of the microcomputer can be quickly switched to control of the standby microcomputer.
第1図は本発明の一実施例としてのマイクロコ
ンピユータシステムの切替方式を示すブロツク回
路図、第2図は第1図の異常検出回路4の詳細な
回路図、第3図はリアルタイムオンライン制御プ
ログラムルーチンの一例を示す図である。
1:現用マイクロコンピユータ、2:予備用マ
イクロコンピユータ、3:制御対象、4:異常検
出回路、41:積分回路(積分手段)、42,4
3:比較回路(判別手段)、44:オア回路(判
別手段)、45:ワンシヨツトマルチバイブレー
タ(割込み信号発生手段)、A0:アドレスバス、
:切替割込み信号。
Fig. 1 is a block circuit diagram showing a switching method of a microcomputer system as an embodiment of the present invention, Fig. 2 is a detailed circuit diagram of the abnormality detection circuit 4 of Fig. 1, and Fig. 3 is a real-time online control program. FIG. 3 is a diagram showing an example of a routine. 1: Working microcomputer, 2: Backup microcomputer, 3: Controlled object, 4: Abnormality detection circuit, 41: Integrating circuit (integrating means), 42, 4
3: comparison circuit (discrimination means), 44: OR circuit (discrimination means), 45: one-shot multivibrator (interrupt signal generation means), A 0 : address bus,
: Switching interrupt signal.
Claims (1)
ンピユータおよび予備用マイクロコンピユータを
具備するマイクロコンピユータシステムにおい
て、前記現用マイクロコンピユータの所定アドレ
スバスの電流を積分する積分手段と、該積分手段
の積分値が所定範囲にあるか否かを判別する判別
手段と、該判別手段の判別結果に応じて割込み信
号を前記予備用マイクロコンピユータに送出する
割込み信号発生手段と、を具備し、前記割込み信
号により前記対象への制御を前記現用マイクロコ
ンピユータから前記予備用マイクロコンピユータ
に切替えて行うようにしたことを特徴とするマイ
クロコンピユータシステムにおける切替方式。1. In a microcomputer system comprising a working microcomputer and a standby microcomputer for controlling one object, an integrating means for integrating the current of a predetermined address bus of the working microcomputer, and an integral value of the integrating means having a predetermined value are provided. a discriminating means for discriminating whether or not it is within the range; and an interrupt signal generating means for transmitting an interrupt signal to the standby microcomputer according to the discriminating result of the discriminating means; 1. A switching system in a microcomputer system, characterized in that control is performed by switching from the active microcomputer to the standby microcomputer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57047333A JPS58165165A (en) | 1982-03-26 | 1982-03-26 | Switching system of microcomputer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57047333A JPS58165165A (en) | 1982-03-26 | 1982-03-26 | Switching system of microcomputer system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS58165165A JPS58165165A (en) | 1983-09-30 |
JPS6331819B2 true JPS6331819B2 (en) | 1988-06-27 |
Family
ID=12772289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57047333A Granted JPS58165165A (en) | 1982-03-26 | 1982-03-26 | Switching system of microcomputer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58165165A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH054234U (en) * | 1991-06-27 | 1993-01-22 | データテツク・エンタプライゼズ・カンパニー・リミテツド | Minicomputer control unit |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5552170A (en) * | 1978-10-09 | 1980-04-16 | Toshiba Corp | Composite computer system |
JPS55131535A (en) * | 1979-04-02 | 1980-10-13 | Honda Motor Co Ltd | Engine controller |
-
1982
- 1982-03-26 JP JP57047333A patent/JPS58165165A/en active Granted
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5552170A (en) * | 1978-10-09 | 1980-04-16 | Toshiba Corp | Composite computer system |
JPS55131535A (en) * | 1979-04-02 | 1980-10-13 | Honda Motor Co Ltd | Engine controller |
Also Published As
Publication number | Publication date |
---|---|
JPS58165165A (en) | 1983-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB9413089D0 (en) | Multiprocessor system | |
JPS6331819B2 (en) | ||
CN111475292A (en) | Server system and frequency control device of processor in server system | |
JPH0460245B2 (en) | ||
CN115051461A (en) | Power supply line control device and UPS system | |
JP3153220B2 (en) | Power control method | |
JPH04332009A (en) | Temperature abnormality detection system for computer system | |
JPH0470582A (en) | Battery test method in power source circuit | |
JPS5814204A (en) | Microcomputer controller | |
CN213341630U (en) | Bus protection device of frequency converter and frequency converter | |
JPH0561572A (en) | External power source instantaneous interruption processing device for digital computer | |
JPH01197848A (en) | Runaway preventing circuit for cpu | |
JPH07129424A (en) | One-bit error detection informing device for ecc function circuit | |
JPS63103311A (en) | Processing method for microcomputer system at time of service interruption | |
JPH05108503A (en) | Power failure processing system | |
JPS589525A (en) | Dc power source device | |
JP2982294B2 (en) | Instantaneous power failure time detection method for programmable controller | |
JPS60189037A (en) | Special unit of programmable controller | |
JPH0746905B2 (en) | Inverter device | |
JPH0218709Y2 (en) | ||
JPS61169036A (en) | System supervisory device | |
JPS61267810A (en) | Deciding circuit for detection of service interruption | |
JPS5946001B2 (en) | Momentary power outage handling method for process control equipment | |
JPS59200302A (en) | Computer device for control | |
JPH01243882A (en) | Operation controller for blower |