JPH1027009A - Device for taking countermeasure against run-out of controller - Google Patents
Device for taking countermeasure against run-out of controllerInfo
- Publication number
- JPH1027009A JPH1027009A JP19972396A JP19972396A JPH1027009A JP H1027009 A JPH1027009 A JP H1027009A JP 19972396 A JP19972396 A JP 19972396A JP 19972396 A JP19972396 A JP 19972396A JP H1027009 A JPH1027009 A JP H1027009A
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- runaway
- signal
- microcomputers
- state
- 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
Links
- 238000012544 monitoring process Methods 0.000 claims description 98
- 238000000034 method Methods 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 244000145845 chattering Species 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
- Control By Computers (AREA)
- Programmable Controllers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、例えば、空気調和
機、太陽光受光装置、各種家電機器、あるいは通信機器
等の制御装置のうち、複数のマイクロコンピュータで協
動して制御動作を行う制御装置において、各マイクロコ
ンピュータの暴走状態の有無を監視する制御装置の暴走
対策装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control system in which a plurality of microcomputers cooperate in a control operation among control devices such as an air conditioner, a solar light receiving device, various home appliances, and communication devices. The present invention relates to a runaway countermeasure device of a control device for monitoring whether or not each microcomputer has a runaway state.
【0002】[0002]
【従来の技術】空気調和機、太陽光受光装置、各種家電
機器、あるいは通信機器等の制御装置の制御対象機器を
電気的に接続し、各制御対象機器に内蔵されるマイクロ
コンピュータ間で情報交換等を行いつつ、全体の制御動
作を遂行するようシステム化されたものがある。2. Description of the Related Art Electrically connected devices to be controlled by a control device such as an air conditioner, a solar light receiving device, various home appliances, and communication devices, and exchange information between microcomputers built in each device to be controlled. Some systems have been systematized so as to perform the entire control operation while performing the same.
【0003】例えば、空気調和機では、室外機と室内機
の両方にマイクロコンピュータを備えている。室外機の
マイクロコンピュータと、室内機のマイクロコンピュー
タとは、互いに目標温度、現在温度、コンプレッサ動
作、ファン回転等の情報を交換しあって、室内の温度等
を目標値に近づけるべく協動して制御動作を行う。For example, in an air conditioner, both an outdoor unit and an indoor unit have microcomputers. The microcomputer of the outdoor unit and the microcomputer of the indoor unit mutually exchange information such as the target temperature, the current temperature, the compressor operation, the fan rotation, etc., and cooperate to bring the indoor temperature and the like closer to the target value. Perform control operation.
【0004】このような複数の制御対象機器内の各マイ
クロコンピュータで協動して制御動作を行う制御装置
は、空気調和機の他にも、多くの分野で種々開発され利
用されている。[0004] Such control devices that perform control operations in cooperation with each microcomputer in a plurality of control target devices have been developed and used in various fields in addition to air conditioners.
【0005】[0005]
【発明が解決しようとする課題】上記のような複数のマ
イクロコンピュータで協動して制御動作を行う制御装置
においては、1つのマイクロコンピュータが何らかの原
因で暴走した場合、情報交換が不能になるので、全体の
制御が不能になることもある。In the above-described control device in which a plurality of microcomputers cooperate with each other to perform a control operation, if one microcomputer runs away for some reason, information exchange becomes impossible. In some cases, total control may be lost.
【0006】従来では、1つのマイクロコンピュータが
何らかの原因で暴走して、制御装置が運転不能になった
場合、これを認識する手だても、自動復帰させる手だて
もなく、人間が介在して処理する以外に方法がないのが
実情であった。Conventionally, when one microcomputer runs out of control for some reason and the control device becomes inoperable, there is no means for recognizing it or a method for automatically returning the control device. The fact was that there was no way.
【0007】本発明の目的は、マイクロコンピュータの
暴走状態を自動的に発見して迅速に解消し、以て、暴走
発生時の制御装置の迅速な正常化を図ることのできる制
御装置の暴走対策装置を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to automatically detect a runaway state of a microcomputer and quickly eliminate the runaway state, thereby enabling a control device to be quickly normalized when a runaway occurs. It is to provide a device.
【0008】[0008]
【課題を解決するための手段】請求項1に記載の発明
は、複数のマイクロコンピュータを接続し、各マイクロ
コンピュータで協動して制御動作を行う制御装置におい
て、上記各マイクロコンピュータ間で暴走監視信号を送
受信して、当該マイクロコンピュータの暴走状態の有無
を検出し、暴走状態発生時に、健全側マイクロコンピュ
ータから暴走側マイクロコンピュータに当該暴走側マイ
クロコンピュータを初期状態にする信号を送信するよう
にしたことを特徴とする。According to a first aspect of the present invention, there is provided a control device in which a plurality of microcomputers are connected to each other to perform a control operation in cooperation with each other. A signal is transmitted / received to detect the runaway state of the microcomputer, and when a runaway state occurs, a signal for initializing the runaway microcomputer is transmitted from the healthy microcomputer to the runaway microcomputer. It is characterized by the following.
【0009】この発明によれば、各マイクロコンピュー
タは、それぞれ隣のマイクロコンピュータに対して暴走
監視信号を送信する送り手となり、またそれぞれ隣のマ
イクロコンピュータからの暴走監視信号を受信する受け
手となる。各マイクロコンピュータは、それぞれ隣のマ
イクロコンピュータから暴走監視信号を受信すると、そ
の暴走監視信号の状態を判断し、暴走監視信号の送信側
のマイクロコンピュータが暴走状態にあるか、正常な状
態にあるかを検出する。ここで、暴走状態にないことを
検出した場合には、暴走監視信号の送信を繰り返す(維
持する)が、暴走状態にあることを検出した場合には、
暴走監視信号の送信を繰り返す一方で、隣の暴走状態に
ある暴走側マイクロコンピュータに対して当該暴走側マ
イクロコンピュータを初期状態にする信号を送信する。
暴走側マイクロコンピュータが自己を初期状態にする信
号を受信すると、当該暴走側マイクロコンピュータは、
迅速に初期状態に戻って暴走状態を解消し、隣のマイク
ロコンピュータに対して再び暴走監視信号の送信を開始
する。According to the present invention, each microcomputer serves as a sender for transmitting a runaway monitoring signal to an adjacent microcomputer and a receiver for receiving a runaway monitoring signal from an adjacent microcomputer. When each microcomputer receives the runaway monitoring signal from the adjacent microcomputer, it determines the state of the runaway monitoring signal, and determines whether the microcomputer on the transmission side of the runaway monitoring signal is in a runaway state or in a normal state. Is detected. Here, when it is detected that the vehicle is not in the runaway state, the transmission of the runaway monitoring signal is repeated (maintained).
While the transmission of the runaway monitoring signal is repeated, a signal for initializing the runaway microcomputer to the next runaway microcomputer in the runaway state is transmitted.
When the microcomputer on the runaway side receives a signal for initializing itself, the microcomputer on the runaway side
The microcomputer immediately returns to the initial state to eliminate the runaway state, and starts transmitting the runaway monitoring signal to the next microcomputer again.
【0010】請求項2に記載の発明は、複数のマイクロ
コンピュータを接続し、各マイクロコンピュータで協動
して制御動作を行う制御装置において、上記各マイクロ
コンピュータ間で暴走監視信号を送受信して、当該マイ
クロコンピュータの暴走状態の有無を検出し、暴走状態
発生時に、健全側マイクロコンピュータから暴走側マイ
クロコンピュータに当該暴走側マイクロコンピュータを
リセットするリセット信号を送信するようにしたことを
特徴とする。According to a second aspect of the present invention, there is provided a control device for connecting a plurality of microcomputers and performing a control operation in cooperation with each other. It is characterized in that a runaway state of the microcomputer is detected, and when a runaway state occurs, a reset signal for resetting the runaway microcomputer is transmitted from the healthy microcomputer to the runaway microcomputer.
【0011】この発明によれば、全体的な動作は、請求
項1に記載の発明の場合の動作と同様であるが、暴走側
マイクロコンピュータを初期状態にする信号として、リ
セット信号を用いている。1つの健全側マイクロコンピ
ュータが隣のマイクロコンピュータの暴走状態を検出し
た場合には、当該健全側マイクロコンピュータは、暴走
側マイクロコンピュータに対してリセット信号を送信す
る。これにより暴走側マイクロコンピュータは、迅速に
初期状態に戻って、暴走状態を解消する。According to the present invention, the overall operation is the same as that of the first aspect of the present invention, but a reset signal is used as a signal for initializing the runaway microcomputer. . When one healthy microcomputer detects a runaway state of an adjacent microcomputer, the healthy microcomputer sends a reset signal to the runaway microcomputer. Thereby, the runaway microcomputer quickly returns to the initial state and eliminates the runaway state.
【0012】請求項3に記載の発明は、複数のマイクロ
コンピュータを接続し、各マイクロコンピュータで協動
して制御動作を行う制御装置において、上記各マイクロ
コンピュータ間で暴走監視信号を送受信して、当該マイ
クロコンピュータの暴走状態の有無を検出し、暴走状態
発生時に、健全側マイクロコンピュータから暴走側マイ
クロコンピュータに当該暴走側マイクロコンピュータの
電源を一旦遮断した後に再投入する電源制御信号を送信
するようにしたことを特徴とする。According to a third aspect of the present invention, there is provided a control device which connects a plurality of microcomputers and performs a control operation in cooperation with each other. When a runaway state occurs, a power control signal for once turning off the power of the runaway microcomputer and then turning on the power again is transmitted from the healthy microcomputer to the runaway microcomputer when the runaway state occurs. It is characterized by having done.
【0013】この発明によれば、全体的な動作は、請求
項1に記載の発明の場合の動作と同様であるが、暴走側
マイクロコンピュータを初期状態にする信号として、電
源制御信号を用いている。1つの健全側マイクロコンピ
ュータが隣のマイクロコンピュータの暴走状態を検出し
た場合には、当該健全側マイクロコンピュータは、暴走
側マイクロコンピュータに対して電源制御信号を送信す
る。これにより暴走側マイクロコンピュータは、一旦電
源を遮断した後に、所定の作用で電源を再投入して初期
状態に戻り、迅速に暴走状態を解消する。According to the present invention, the overall operation is the same as that of the first aspect of the present invention, except that a power control signal is used as a signal for initializing the runaway microcomputer. I have. When one healthy microcomputer detects a runaway state of an adjacent microcomputer, the healthy microcomputer transmits a power control signal to the runaway microcomputer. As a result, the runaway-side microcomputer once shuts off the power, turns on the power again with a predetermined action, returns to the initial state, and quickly eliminates the runaway state.
【0014】請求項4に記載の発明は、複数のマイクロ
コンピュータを接続し、各マイクロコンピュータで協動
して制御動作を行う制御装置において、上記複数のマイ
クロコンピュータをループ状に接続し、上記隣合うマイ
クロコンピュータ間で暴走監視信号を送受信しあって、
互いに相手側のマイクロコンピュータの暴走状態の有無
を検出し、暴走状態発生時に、健全側マイクロコンピュ
ータから暴走側マイクロコンピュータに当該暴走側マイ
クロコンピュータを初期状態にする信号を送信するよう
にしたことを特徴とする。According to a fourth aspect of the present invention, there is provided a control device in which a plurality of microcomputers are connected, and the microcomputers perform a control operation in cooperation with each other. Runaway monitoring signals are sent and received between matching microcomputers,
The microcomputer detects the runaway state of the other microcomputer, and transmits a signal to initialize the runaway microcomputer from the healthy microcomputer to the runaway microcomputer when the runaway state occurs. And
【0015】この発明によれば、各マイクロコンピュー
タは、ループ状に接続されており、それぞれ1対1の関
係をもって暴走監視信号を送信しあう送り手となり、ま
たそれぞれ両隣のマイクロコンピュータから1対1の関
係で送信された暴走監視信号を受信する受け手となる。
各マイクロコンピュータは、それぞれ両隣のマイクロコ
ンピュータから暴走監視信号を受信すると、各々の暴走
監視信号の状態を個別に判断し、両隣の暴走監視信号の
送信側のマイクロコンピュータが暴走状態にあるか、正
常な状態にあるかを個別に検出する。ここで、暴走状態
にないことを検出した場合には、暴走監視信号の送信を
繰り返す(継続する)が、少なくとも一方の隣のマイク
ロコンピュータが暴走状態にあることを検出した場合に
は、暴走監視信号の送信を繰り返す一方で、当該暴走状
態にある暴走側マイクロコンピュータに対して当該暴走
側マイクロコンピュータを初期状態にする信号を送信す
る。暴走側マイクロコンピュータが自己を初期状態にす
る信号を受信した場合には、請求項1に記載の発明の場
合と同様に、迅速に初期状態に戻り、暴走状態を解消す
る。According to the present invention, the microcomputers are connected in a loop, and serve as senders for transmitting runaway monitoring signals in a one-to-one relationship. Becomes a receiver to receive the runaway monitoring signal transmitted in relation to the above.
When each microcomputer receives the runaway monitoring signal from the microcomputers on both sides, each microcomputer individually determines the state of each runaway monitoring signal, and the microcomputer on the transmission side of the runaway monitoring signal on both sides is in the runaway state or normal. Is detected individually. Here, if it is detected that there is no runaway state, the transmission of the runaway monitoring signal is repeated (continued). If it is detected that at least one of the microcomputers is in a runaway state, the runaway monitoring signal is sent. While repeating the signal transmission, a signal for initializing the runaway microcomputer to the runaway microcomputer in the runaway state is transmitted. When the runaway microcomputer receives a signal for initializing itself, the microcomputer quickly returns to the initial state and eliminates the runaway state, as in the case of the first aspect of the present invention.
【0016】請求項5に記載の発明は、複数のマイクロ
コンピュータを接続し、各マイクロコンピュータで協動
して制御動作を行う制御装置において、上記複数のマイ
クロコンピュータをループ状に接続し、上記各マイクロ
コンピュータが互いに一方向の隣に位置するマイクロコ
ンピュータに暴走監視信号を送信し、各自が他方向の隣
のマイクロコンピュータの暴走状態の有無を検出し、暴
走状態発生時に、健全側マイクロコンピュータから暴走
側マイクロコンピュータに当該暴走側マイクロコンピュ
ータを初期状態にする信号を送信するようにしたことを
特徴とする。According to a fifth aspect of the present invention, in a control device for connecting a plurality of microcomputers and performing control operations in cooperation with each microcomputer, the plurality of microcomputers are connected in a loop, and The microcomputer sends a runaway monitoring signal to the microcomputer located next to each other in one direction, each one detects the runaway state of the microcomputer next to it in the other direction, and when the runaway state occurs, the microcomputer on the healthy side runs away. A signal for initializing the runaway microcomputer is transmitted to the microcomputer.
【0017】この発明によれば、各マイクロコンピュー
タは、ループ状に接続されており、例えば、一方向の隣
として互いに右隣のマイクロコンピュータに対して暴走
監視信号を送信し、所謂、暴走監視信号をループ内にお
いて一巡させるような形態をとる。そして、各マイクロ
コンピュータは、互いに左隣のマイクロコンピュータが
送信する暴走監視信号を受信して、暴走監視信号の状態
を判定し、左隣のマイクロコンピュータが暴走状態にあ
るか、正常な状態になるかを検出する。ここで、左隣の
マイクロコンピュータが暴走状態にないことを検出した
場合には、右隣のマイクロコンピュータへの暴走監視信
号の送信を繰り返す(継続する)が、逆に、暴走状態に
あることを検出した場合には、暴走監視信号の送信を繰
り返す一方で、暴走監視信号の送信側である左隣のマイ
クロコンピュータに対して初期状態にする信号を送信す
る。暴走側マイクロコンピュータが自己を初期状態にす
る信号を受信した場合には、請求項1に記載の発明の場
合と同様に、迅速に初期状態に戻って、暴走状態を解消
し、暴走監視信号の送信を開始する。According to the present invention, the microcomputers are connected in a loop, and transmit a runaway monitoring signal to the microcomputers on the right side of each other, for example, in one direction, so-called runaway monitoring signal. In a loop. Then, each microcomputer receives the runaway monitoring signal transmitted by the microcomputer on the left side and determines the state of the runaway monitoring signal, and the microcomputer on the left side is in a runaway state or in a normal state. Or to detect. Here, if it is detected that the microcomputer on the left side is not in a runaway state, the transmission of the runaway monitoring signal to the microcomputer on the right side is repeated (continued). When it is detected, the transmission of the runaway monitoring signal is repeated, and a signal for initializing is transmitted to the microcomputer on the left side which is the transmission side of the runaway monitoring signal. When the runaway microcomputer receives a signal for initializing itself, the microcomputer quickly returns to the initial state, cancels the runaway state, and outputs the runaway monitoring signal, as in the first aspect of the invention. Start sending.
【0018】請求項6に記載の発明は、上記発明におい
て、上記各マイクロコンピュータに、通信時の信号とし
て、暴走監視信号、リセット信号、または電源制御信号
の電圧を自己の動作電圧に適するように調整する電圧調
整回路を備えたことを特徴とする。According to a sixth aspect of the present invention, in the above-mentioned invention, the microcomputer is adapted so that a voltage of a runaway monitor signal, a reset signal, or a power supply control signal as a signal at the time of communication is adapted to its own operating voltage. A voltage adjustment circuit for adjusting is provided.
【0019】この発明によれば、1つのマイクロコンピ
ュータから隣のマイクロコンピュータに送信される暴走
監視信号は、一旦、電圧調整回路を経由して、当該隣の
マイクロコンピュータの使用電圧に適した電圧の信号に
調整された後に、当該隣のマイクロコンピュータに入力
される。これにより各マイクロコンピュータの動作電圧
(電源電圧)が異なっても、確実に、各マイクロコンピ
ュータにおいて暴走監視信号の状態を判断することがで
きる。また、リセット信号、電源制御信号の送信につい
ても同様である。According to the present invention, the runaway monitoring signal transmitted from one microcomputer to the next microcomputer once passes through the voltage adjustment circuit and has a voltage suitable for the voltage used by the next microcomputer. After being adjusted to a signal, it is input to the next microcomputer. Thus, even if the operating voltages (power supply voltages) of the microcomputers are different, the microcomputer can reliably determine the state of the runaway monitoring signal. The same applies to the transmission of the reset signal and the power control signal.
【0020】[0020]
【発明の実施の形態】以下、本発明の好適な実施の形態
を図面に基づいて説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.
【0021】図1は本発明の第1の実施の形態の構成を
説明する説明図である。FIG. 1 is an explanatory diagram for explaining the configuration of the first embodiment of the present invention.
【0022】本実施の形態は、例えば、空気調和器、太
陽光受光装置、各種家電機器、あるいは通信機器等の制
御装置の中で、複数の制御対象機器の各マイクロコンピ
ュータで協動して制御動作を行う制御装置に適用され
る。In the present embodiment, for example, in a control device such as an air conditioner, a solar light receiving device, various home appliances, or a communication device, the microcomputers of a plurality of control target devices cooperate and control. Applied to control devices that perform operations.
【0023】本実施の形態では、説明の簡略を図るた
め、制御装置として、2つの制御対象機器5,7を電気
的に接続した場合について説明する。一方の制御対象機
器5は、例えばある種機械的な動作を行うもので、内部
のマイクロコンピュータ1の演算指令に応じて駆動す
る。制御対象機器7も、例えばある種機械的は動作を行
うもので、内部のマイクロコンピュータ3の演算指令に
応じて駆動する。In this embodiment, for simplicity of description, a case where two control target devices 5 and 7 are electrically connected as a control device will be described. The control target device 5 performs, for example, a certain kind of mechanical operation, and is driven in accordance with a calculation command of the internal microcomputer 1. The control target device 7 also performs, for example, some kind of mechanical operation, and is driven in accordance with a calculation command of the internal microcomputer 3.
【0024】また、マイクロコンピュータ1,3は、互
いに通信線で接続されており、制御動作に関わる情報交
換等を行いつつ協動して、自分側及び相手側の制御対象
機器5,7の動作状況等を認識し、自己の制御対象機器
5または7の動作を決定したり、相手側の制御対象機器
5または7の動作を要求したりする。The microcomputers 1 and 3 are connected to each other by a communication line, and cooperate with each other while exchanging information relating to the control operation, and operate the operation of the control target devices 5 and 7 on the own side and the other side. It recognizes the situation and determines the operation of its own control target device 5 or 7, or requests the operation of the other control target device 5 or 7.
【0025】一方、各マイクロコンピュータ1,3は、
互いに、内部の図示しないプログラムに応じて駆動する
CPUの動作で、所定のタイミングにおいて、暴走監視
信号(ウォッチドック信号)を生成する。暴走監視信号
は、出力ポートaより信号線を介して相手側マイクロコ
ンピュータ1,3の入力ポートbへ送信される。On the other hand, each of the microcomputers 1 and 3
A runaway monitoring signal (watchdog signal) is generated at a predetermined timing by CPU operations that are driven in accordance with an internal program (not shown). The runaway monitoring signal is transmitted from output port a to input port b of each of microcomputers 1 and 3 via a signal line.
【0026】暴走監視信号は、図2に示すように、信号
論理H、Lを所定の周波数(例えば1KHz)で繰り返
す信号であるが、1回の暴走監視信号として、相手側マ
イクロコンピュータ1,3が認識する単位は、1パルス
の信号論理Hの状態、または信号論理Lの状態のうちい
ずれかである。As shown in FIG. 2, the runaway monitoring signal is a signal in which signal logics H and L are repeated at a predetermined frequency (for example, 1 KHz). Is a signal logic H state of one pulse or a signal logic L state.
【0027】各マイクロコンピュータ1,3は、暴走監
視信号として、1パルスの信号論理Hの状態、または信
号論理Lの状態を、互いの出力に応答して、例えば交互
に変化しながら送信しあい、また受信しあう。例えば、
一方のマイクロコンピュータ1が暴走監視信号として、
1パルスの信号論理Hを送信したならば、他方のマイク
ロコンピュータ3が論理信号Lを応答する如くである。
しかし勿論、信号論理Hの送信に対して信号論理Hを応
答しても良い。Each of the microcomputers 1 and 3 transmits a one-pulse signal logic H state or a signal logic L state in response to each other output, for example, while alternately changing, as a runaway monitoring signal. Also receive each other. For example,
One microcomputer 1 receives a runaway monitoring signal,
It is as if the other microcomputer 3 responds to the logical signal L when the signal logical H of one pulse is transmitted.
However, of course, the signal logic H may be responded to the transmission of the signal logic H.
【0028】1回の暴走監視信号を出力する際は、送信
側マイクロコンピュータ1または3において暴走信号判
定用タイマを設定する。暴走信号判定用タイマの設定時
間T1秒は、1パルスの信号論理HまたはLが継続され
る時間T2秒よりも数%長い時間である。暴走信号判定
用タイマの設定時間T1秒内に1回の暴走監視信号の応
答があることで、送信側マイクロコンピュータ1,3が
正常であることを判定する。When one runaway monitoring signal is output, a timer for determining a runaway signal is set in the transmitting microcomputer 1 or 3. The set time T1 second of the runaway signal determination timer is several% longer than the time T2 seconds in which the signal logic H or L of one pulse is continued. When there is one response to the runaway monitoring signal within the set time T1 second of the runaway signal determination timer, it is determined that the transmitting microcomputers 1 and 3 are normal.
【0029】受信側マイクロコンピュータ1,3が、暴
走判定用タイマの設定時間T1秒内において、T2秒の
暴走監視信号の信号論理HまたはLを検出するのは、暴
走監視信号の信号論理HまたはLの検出に余裕時間を含
ませるとともに、暴走監視信号の信号論理HまたはLに
含まれ得るチャタリングやノイズの影響を除去するため
である。The reception microcomputers 1, 3 detect the signal logic H or L of the runaway monitor signal for T2 seconds within the set time T1 second of the runaway determination timer because the signal logic H or L of the runaway monitor signal is used. This is because the detection of L includes a margin time and also eliminates the influence of chattering and noise that may be included in the signal logic H or L of the runaway monitoring signal.
【0030】また一方、各マイクロコンピュータ1,3
は、互いに、内部の図示しないプログラムに応じて駆動
するCPUの動作で、所定のタイミング(暴走状態発生
時)において、暴走側マイクロコンピュータ1または3
を初期状態にする信号を生成する。暴走側マイクロコン
ピュータ1または3を初期状態にする信号は、出力ポー
トcより信号線を介して相手側マイクロコンピュータ
1,3の入力ポートdへ送信される。On the other hand, the microcomputers 1, 3
Are the operations of the CPUs that are driven by each other according to an internal program (not shown). At a predetermined timing (when a runaway state occurs), the runaway microcomputer 1 or 3
Generate a signal that initializes. A signal for initializing the runaway microcomputer 1 or 3 is transmitted from the output port c to the input port d of the other microcomputer 1 or 3 via a signal line.
【0031】暴走側マイクロコンピュータ1または3を
初期状態にする信号には、種々の信号を考えることがで
きるが、1例として、リセット信号、電源制御信号を挙
げることができる。リセット信号は、例えば1パルスの
信号論理Hの状態、または所定の信号パターンにある2
値信号である。電源制御信号も、例えば1パルスの信号
論理Hの状態、または所定の信号パターンにある2値信
号であるが、第1回目の信号で暴走側マイクロコンピュ
ータ1または3の電源OFFを指令し、第2回目の信号
で電源ONを指令するというようにしても良い。Various signals can be considered as the signal for initializing the runaway microcomputer 1 or 3, and examples thereof include a reset signal and a power control signal. The reset signal is, for example, the state of the signal logic H of one pulse, or the reset signal 2 in a predetermined signal pattern.
It is a value signal. The power control signal is also, for example, a one-pulse signal logic H state or a binary signal in a predetermined signal pattern. The first signal instructs the power-off microcomputer 1 or 3 to turn off the power. The power ON may be commanded by the second signal.
【0032】リセット信号、または電源制御信号は、健
全側マイクロコンピュータ1または3が暴走監視信号に
異常(タイマの設定時間T1秒内に2回以上反転する、
または変化がない等)を判定した際に、健全側マイクロ
コンピュータ1または3より暴走側マイクロコンピュー
タ1または3に送信される。The reset signal or the power supply control signal indicates that the healthy microcomputer 1 or 3 is abnormal in the runaway monitoring signal (it is inverted twice or more within the set time T1 seconds of the timer,
Or no change) is transmitted from the healthy microcomputer 1 or 3 to the runaway microcomputer 1 or 3.
【0033】リセット信号を受信した暴走側マイクロコ
ンピュータ1または3は、迅速に初期状態に戻って暴走
状態を解消する。また、電源制御信号を受信した暴走側
マイクロコンピュータ1または3は、所定の作用で、一
旦電源を遮断した後に、電源を再投入して初期状態に戻
る。電源制御信号が単に電源OFF−ONを指令するよ
うな信号である場合は、暴走側マイクロコンピュータ1
または3は、電源をOFFした後に、内部の論理回路等
の作用で再び電源をONすることができる。The runaway microcomputer 1 or 3 which has received the reset signal returns to the initial state promptly and eliminates the runaway state. The runaway-side microcomputer 1 or 3 that has received the power control signal, once shuts off the power by a predetermined action, turns on the power again, and returns to the initial state. If the power control signal is a signal for simply commanding the power OFF-ON, the runaway microcomputer 1
Alternatively, after the power is turned off, the power can be turned on again by an operation of an internal logic circuit or the like.
【0034】また一方、各マイクロコンピュータ1,3
は、相手側マイクロコンピュータ1または3から送信さ
れる暴走監視信号、及び初期状態にする信号としてリセ
ット信号または電源制御信号の電圧を自己の動作電圧
(電源電圧)に適するように調整する電圧調整回路9ま
たは11を備えている。電圧調整回路9,11は、信号
の電圧を降圧する場合、分割抵抗等を用いることで対応
し、信号の電圧を昇圧する場合には、オペアンプ等を用
いることで対応する。電圧調整回路9,11の設置は、
マイクロコンピュータ1,3の内部、外部を問わず、ま
た送信側、受信側を問うものではない。On the other hand, the microcomputers 1, 3
Is a voltage adjustment circuit that adjusts the voltage of a runaway monitoring signal transmitted from the other microcomputer 1 or 3 and a reset signal or a power supply control signal as a signal for initializing so as to be suitable for its own operation voltage (power supply voltage). 9 or 11 is provided. The voltage adjusting circuits 9 and 11 cope with the case where the voltage of the signal is stepped down by using a divided resistor or the like, and the case where the voltage of the signal is stepped up by using an operational amplifier or the like. The installation of the voltage adjustment circuits 9 and 11
It does not matter whether the microcomputer 1 or 3 is inside or outside, and does not ask the transmitting side or the receiving side.
【0035】例えば、マイクロコンピュータ1が動作電
圧3Vであり、マイクロコンピュータ3が動作電圧5V
であるという場合、電圧調整回路9は、マイクロコンピ
ュータ1が送信する暴走監視信号、及びリセット信号ま
たは電源制御信号の電圧を3Vから5Vに昇圧して、マ
イクロコンピュータ3に転送する。また、電圧調整回路
11は、マイクロコンピュータ3が送信する暴走監視信
号、及びリセット信号または電源制御信号の電圧を5V
から3Vに降圧して、マイクロコンピュータ1に転送す
る。このようにして、各マイクロコンピュータ1,3間
の信号電圧値の整合をとるので、制御装置として、制御
対象機器の組み合わせの自由度が向上する。For example, the microcomputer 1 has an operating voltage of 3V, and the microcomputer 3 has an operating voltage of 5V.
In this case, the voltage adjustment circuit 9 boosts the voltage of the runaway monitoring signal and the reset signal or the power control signal transmitted from the microcomputer 1 from 3 V to 5 V, and transfers the signal to the microcomputer 3. Further, the voltage adjustment circuit 11 adjusts the voltage of the runaway monitoring signal and the reset signal or the power control signal transmitted from the microcomputer 3 to 5V.
To 3 V and transferred to the microcomputer 1. In this manner, the signal voltage values between the microcomputers 1 and 3 are matched, so that the degree of freedom in combining control target devices as a control device is improved.
【0036】次に、本実施の形態の動作について説明す
る。Next, the operation of this embodiment will be described.
【0037】図3は本実施の形態の動作を説明するフロ
ーチャートである。尚、ここではマイクロコンピュータ
1側においてマイクロコンピュータ3側の暴走状態の有
無を検出する場合を例に説明する。FIG. 3 is a flowchart for explaining the operation of this embodiment. Here, the case where the microcomputer 1 detects the runaway state of the microcomputer 3 will be described as an example.
【0038】先ずステップS1では、マイクロコンピュ
ータ1のイニシャル処理を行ってフラグFG=0にして
おく。ステップS2では、マイクロコンピュータ1の出
力ポートaから相手側マイクロコンピュータ3に送信す
る暴走監視信号の信号論理をHからLへ反転するか、ま
たはLからHへ反転し、かつ、暴走判定用タイマをON
にする。First, at step S1, the microcomputer 1 performs an initial process to set the flag FG = 0. In step S2, the signal logic of the runaway monitoring signal transmitted from the output port a of the microcomputer 1 to the partner microcomputer 3 is inverted from H to L or from L to H, and the runaway determination timer is ON
To
【0039】ステップS3では、マイクロコンピュータ
1の入力ポートbに入力される暴走監視信号、即ち、マ
イクロコンピュータ1の今回の暴走監視信号に応答する
マイクロコンピュータ3からの暴走監視信号の信号論理
が、マイクロコンピュータ1の今回の暴走監視信号の信
号論理の反転に対応してLからHへ変化したか否か、あ
るいはHからLへ変化したか否かを判定する。In step S3, the signal logic of the runaway monitoring signal input to the input port b of the microcomputer 1, that is, the signal logic of the runaway monitoring signal from the microcomputer 3 in response to the current runaway monitoring signal of the microcomputer 1, is In response to the inversion of the signal logic of the runaway monitoring signal of the computer 1 this time, it is determined whether or not L has changed from H to H or has changed from H to L.
【0040】ステップS3で、入力ポートbに入力され
る暴走監視信号の信号論理が変化したと判断した場合に
は、ステップS4へ進み、フラグFG=1であるか否か
を判定するが、逆に、入力ポートbに入力される暴走監
視信号の信号論理が変化しないと判定した場合には、ス
テップS6へ進み、暴走判定用タイマの設定時間T1秒
が経過したか否かを判定する。そして、ステップS6
で、暴走判定用タイマの設定時間T1秒が経過していな
いと判定した場合には、ステップS3へ戻るが、暴走判
定用タイマの設定時間T1秒が経過したと判定した場合
には、ステップS7へ進む。If it is determined in step S3 that the signal logic of the runaway monitoring signal input to the input port b has changed, the process proceeds to step S4, where it is determined whether the flag FG = 1 or not. If it is determined that the signal logic of the runaway monitoring signal input to the input port b does not change, the process proceeds to step S6, and it is determined whether the set time T1 seconds of the runaway determination timer has elapsed. Then, step S6
If it is determined that the set time T1 second of the runaway determination timer has not elapsed, the process returns to step S3. If it is determined that the set time T1 second of the runaway determination timer has elapsed, the process proceeds to step S7. Proceed to.
【0041】一方、ステップS4において、フラグFG
=1ではないと判定した場合には、ステップS5へ進
み、フラグFG=1に設定して、ステップS6へ進む。
しかし、ステップS4において、フラグFG=1である
と判定した場合には、暴走判定用タイマの設定時間T1
秒内に、2度のステップS3の処理を経て、マイクロコ
ンピュータ3からの暴走監視信号の信号論理が2度変化
したことを検出したことになる。従って、マイクロコン
ピュータ1の今回の暴走監視信号に応答するマイクロコ
ンピュータ3からの暴走監視信号に異常がある、つまり
暴走状態にあると断定して、ステップS10へ進み、マ
イクロコンピュータ3にリセット信号を送信する。そし
て、さらにステップS9へ進み、フラグ=0にしてステ
ップS2へ戻る。On the other hand, in step S4, the flag FG
If it is determined that = 1, the process proceeds to step S5, where the flag FG is set to 1, and the process proceeds to step S6.
However, if it is determined in step S4 that the flag FG = 1, the set time T1 of the runaway determination timer is determined.
Within two seconds, through the processing of step S3 twice, it is detected that the signal logic of the runaway monitoring signal from the microcomputer 3 has changed twice. Accordingly, it is determined that the runaway monitoring signal from the microcomputer 3 responding to the current runaway monitoring signal of the microcomputer 1 is abnormal, that is, the microcomputer 1 is in a runaway state, and the process proceeds to step S10, where a reset signal is transmitted to the microcomputer 3. I do. Then, the process further proceeds to step S9, sets the flag to 0, and returns to step S2.
【0042】即ち、フラグFGは、ステップS3におい
て、第1度目に、マイクロコンピュータ3からの暴走監
視信号の信号論理が、マイクロコンピュータ1の今回の
暴走監視信号の信号論理の反転に対応して変化したこと
を判定した場合に、ステップS5の処理で1に設定され
るものである。That is, in step S3, the flag FG changes the signal logic of the runaway monitoring signal from the microcomputer 3 for the first time in response to the inversion of the signal logic of the current runaway monitoring signal of the microcomputer 1. If it is determined that it has been performed, it is set to 1 in the process of step S5.
【0043】従って、ステップ6で暴走判定用タイマの
設定時間T1秒が経過したと判定される前に、ステップ
S3においてマイクロコンピュータ3からの暴走監視信
号の入力が変化したと判定された後に、さらに、ステッ
プS4で、フラグFG=1であると判定された場合に
は、マイクロコンピュータ3からの暴走監視信号の信号
論理が暴走判定用タイマの設定時間T1秒内に2度変化
したことになるため、マイクロコンピュータ3からの暴
走監視信号に異常がある、つまり暴走状態にあるものと
断定して、ステップS10へ進むのである。Accordingly, before it is determined in step 6 that the set time T1 second of the runaway determination timer has elapsed, it is determined in step S3 that the input of the runaway monitoring signal from the microcomputer 3 has changed. If it is determined in step S4 that the flag FG = 1, the signal logic of the runaway monitoring signal from the microcomputer 3 has changed twice within the set time T1 second of the runaway determination timer. Then, it is determined that the runaway monitoring signal from the microcomputer 3 is abnormal, that is, it is in a runaway state, and the process proceeds to step S10.
【0044】一方、ステップS6において、暴走判定用
タイマの設定時間T1秒が経過したと判定した後、ステ
ップS7では、暴走判定用タイマをOFFにし、ステッ
プS8へ進む。On the other hand, after it is determined in step S6 that the set time T1 second of the runaway determination timer has elapsed, in step S7, the runaway determination timer is turned off, and the routine proceeds to step S8.
【0045】ステップS8では、再度、フラグFG=1
であるか否かを判定する。ここで、フラグFG=1であ
ると判定した場合には、マイクロコンピュータ3からの
暴走監視信号の状態が正常であり、マイクロコンピュー
タ3が暴走状態にないと判断して、ステップS9へ進
み、フラグFG=0にした後、ステップS2へ戻る。At step S8, the flag FG = 1 again
Is determined. Here, when it is determined that the flag FG = 1, it is determined that the state of the runaway monitoring signal from the microcomputer 3 is normal and the microcomputer 3 is not in the runaway state, and the process proceeds to step S9, and the flag is set. After setting FG = 0, the process returns to step S2.
【0046】即ち、ステップS6において、暴走判定用
タイマの設定時間T1秒が経過したと判定した後に、フ
ラグFG=1が継続するということは、ステップS3に
おいて、1度だけ、マイクロコンピュータ3からの暴走
監視信号の信号論理が変化したことを判定したことを意
味する。従って、マイクロコンピュータ3からの暴走監
視信号の状態が正常であり、マイクロコンピュータ3が
暴走状態にないと判断するのである。That is, the fact that the flag FG = 1 continues after it is determined in step S6 that the set time T1 second of the runaway determination timer has elapsed means that the microcomputer 3 only outputs once from the microcomputer 3 in step S3. This means that it has been determined that the signal logic of the runaway monitoring signal has changed. Therefore, it is determined that the state of the runaway monitoring signal from the microcomputer 3 is normal and the microcomputer 3 is not in the runaway state.
【0047】しかし、ステップS8において、フラグF
G=1ではないと判定した場合には、暴走判定用タイマ
の設定時間T1秒が経過するまでに、マイクロコンピュ
ータ3からの暴走監視信号の信号論理が1度も変化しな
かったことを意味する。従って、マイクロコンピュータ
3からの暴走監視信号に異常がある、つまり暴走状態に
あるものと判定して、ステップS10へ進み、マイクロ
コンピュータ3にリセット信号を送信する。送信後は、
ステップS9へ進み、フラグFG=0にしてステップS
2へ戻る。However, in step S8, the flag F
If it is determined that G is not 1, it means that the signal logic of the runaway monitoring signal from the microcomputer 3 has never changed before the set time T1 second of the runaway determination timer elapses. . Therefore, it is determined that the runaway monitoring signal from the microcomputer 3 is abnormal, that is, it is in a runaway state, and the process proceeds to step S10, where a reset signal is transmitted to the microcomputer 3. After sending,
Proceed to step S9, set flag FG = 0, and set step FG
Return to 2.
【0048】本実施の形態によれば、各マイクロコンピ
ュータ1,3間で暴走監視信号を送受信して、互いに相
手側マイクロコンピュータ1,3の暴走状態の有無を検
出し、相手側が暴走状態にあるときに、当該暴走側マイ
クロコンピュータ1または3を初期状態にする信号とし
て、リセット信号または電源制御信号を送信するように
構成したので、制御動作中に発生した暴走状態を、自動
的に発見して迅速に解消することができる。従って、制
御装置として、監視員を常時必要とする等ということも
なく、自動制御運転の信頼性を向上させることが可能に
なる。According to the present embodiment, the microcomputers 1 and 3 transmit and receive a runaway monitoring signal to detect the presence / absence of a runaway state of the other microcomputers 1 and 3, and the other party is in a runaway state. Sometimes, a reset signal or a power control signal is transmitted as a signal for setting the runaway microcomputer 1 or 3 to an initial state, so that a runaway state generated during the control operation is automatically detected. It can be resolved quickly. Therefore, it is possible to improve the reliability of the automatic control operation without requiring a monitoring person at all times as a control device.
【0049】また、暴走監視信号に、信号論理H、Lを
繰り返すウォッチドック信号を採用したので、暴走監視
信号の送受信の高速化、暴走状態検出の簡単化、及びシ
ステム構成の簡略化等を図ることができる。Also, since a watchdog signal which repeats signal logics H and L is adopted as the runaway monitor signal, the transmission / reception of the runaway monitor signal is speeded up, the runaway state detection is simplified, and the system configuration is simplified. be able to.
【0050】図4は本発明の第2の実施の形態の構成を
説明する説明図である。FIG. 4 is an explanatory diagram for explaining the configuration of the second embodiment of the present invention.
【0051】本実施の形態も、例えば、空気調和機、太
陽光受光装置、各種家電機器、あるいは通信機器等の制
御装置の中で、複数の制御対象機器の各マイクロコンピ
ュータで協動して制御動作を行う制御装置に適用され
る。In this embodiment, for example, in a control device such as an air conditioner, a solar light receiving device, various home appliances, or a communication device, the microcomputers of a plurality of control target devices cooperate and control. Applied to control devices that perform operations.
【0052】本実施の形態では、制御装置として、3つ
の制御対象機器21,23,25を電気的に接続した場
合について説明する。制御対象機器21,23,25
は、それぞれ例えばある種機械的な動作を行うもので、
内部のマイクロコンピュータ27,29,31の演算指
令に応じて駆動する。In this embodiment, a case will be described in which three control target devices 21, 23, and 25 are electrically connected as a control device. Control target devices 21, 23, 25
Are each performing a certain kind of mechanical operation, for example.
It is driven according to an operation command of the internal microcomputers 27, 29, 31.
【0053】また、マイクロコンピュータ27,29,
31は、互いに通信線で接続されており、制御動作に関
わる情報交換等を行いつつ協動して、自分側及び相手側
の制御対象機器21,23,25の動作状況等を認識
し、自己の制御対象機器21または23または25の動
作を決定したり、相手側の制御対象機器21または23
または25の動作を要求したりする。The microcomputers 27, 29,
Reference numerals 31 are connected to each other by a communication line, and cooperate with each other while exchanging information related to the control operation, etc., and recognize the operation status and the like of the control target devices 21, 23, 25 on the own side and the other side, and The operation of the control target device 21 or 23 or 25 is determined, and the control target device 21 or 23
Or, 25 operations are requested.
【0054】また、マイクロコンピュータ27,29,
31のうち、1つのマイクロコンピュータ例えば27
は、リモコンの指令を受けて他のマイクロコンピュータ
例えば29,31に特定の処理指令を与えたりすること
も可能である。The microcomputers 27, 29,
31, one microcomputer, for example, 27
It is also possible to give a specific processing command to another microcomputer, for example, 29 or 31, in response to a command from the remote controller.
【0055】一方、各マイクロコンピュータ27,2
9,31は、第1の実施の形態で説明した暴走監視信号
(ウォッチドック信号)、及び、リセット信号を生成す
るものである。そして、互いに隣り合うマイクロコンピ
ュータ27,29,31間において、暴走監視信号の送
受信用の2本の信号線33と、リセット信号の送信用の
2本の信号線35が接続されており、全体としてループ
状に接続されている。On the other hand, each microcomputer 27, 2
Reference numerals 9 and 31 generate the runaway monitoring signal (watchdog signal) and the reset signal described in the first embodiment. Two signal lines 33 for transmitting and receiving a runaway monitoring signal and two signal lines 35 for transmitting a reset signal are connected between the microcomputers 27, 29, and 31 adjacent to each other. They are connected in a loop.
【0056】各マイクロコンピュータ27,29,31
は、互いに隣同士のマイクロコンピュータ27,29,
31間で暴走監視信号を送受信しあって、互いに受信時
の暴走監視信号の状態を判定し、両隣のマイクロコンピ
ュータ27,29,31の暴走状態の有無を検出する。Each microcomputer 27, 29, 31
Are the microcomputers 27, 29,
The runaway monitoring signals are transmitted and received between the microcomputers 31, and the states of the runaway monitoring signals at the time of receiving each other are determined, and the microcomputers 27, 29, and 31 on both sides detect the runaway state.
【0057】暴走監視信号の送受信の処理、及び、暴走
状態の有無の検出処理は、第1の実施の形態の場合と同
様であって、互いに隣同士のマイクロコンピュータ2
7,29,31間において独立に行う。即ち、マイクロ
コンピュータ27,29,31全体として、暴走監視信
号の送受信のタイミング、暴走状態の有無の検出処理の
タイミングは、必ずしも一致するものではない。The process of transmitting / receiving the runaway monitoring signal and the process of detecting the presence / absence of a runaway state are the same as those in the first embodiment.
Perform independently between 7, 29, and 31. In other words, the timing of transmission / reception of the runaway monitoring signal and the timing of the process of detecting the presence / absence of the runaway state do not always coincide with each other in the microcomputers 27, 29, 31.
【0058】また、各マイクロコンピュータ27,2
9,31は、隣のマイクロコンピュータ27,29,3
1の暴走状態を検出したときに、当該暴走側マイクロコ
ンピュータ27または29または31にリセット信号を
送信する。The microcomputers 27 and 2
9, 31 are adjacent microcomputers 27, 29, 3
When the runaway state 1 is detected, a reset signal is transmitted to the microcomputer 27 or 29 or 31 on the runaway side.
【0059】尚、各マイクロコンピュータ27,29,
31には、それぞれ第1の実施の形態で説明したような
電圧調整回路37が備えられている。The microcomputers 27, 29,
Each of the circuits 31 includes a voltage adjusting circuit 37 as described in the first embodiment.
【0060】本実施の形態の場合の動作は、基本的に第
1の実施の形態の場合と同様であるので、詳しい説明は
省略する。The operation in the present embodiment is basically the same as that in the first embodiment, and a detailed description will be omitted.
【0061】本実施の形態によれば、各マイクロコンピ
ュータ27,29,31を暴走監視信号の送受信用の信
号線33と、リセット信号の送信用の信号線35でルー
プ状に接続した形態をとるので、暴走対策装置として、
構成の簡略化を図ることができる。According to the present embodiment, the microcomputers 27, 29 and 31 are connected in a loop by a signal line 33 for transmitting and receiving a runaway monitoring signal and a signal line 35 for transmitting a reset signal. So, as a runaway prevention device,
The configuration can be simplified.
【0062】また、1つのマイクロコンピュータの暴走
状態の有無を両隣のマイクロコンピュータが検出するの
で、暴走状態の有無の検出に際し、より信頼性を向上さ
せることができる。Further, since microcomputers on both sides detect the presence or absence of a runaway state of one microcomputer, the reliability can be further improved in detecting the presence or absence of a runaway state.
【0063】図5は第3の実施の形態の構成を説明する
説明図である。FIG. 5 is an explanatory diagram for explaining the configuration of the third embodiment.
【0064】本実施の形態も、例えば、空気調和機、太
陽光受光装置、各種家電機器、あるいは通信機器等の制
御装置の中で、複数の制御対象機器の各マイクロコンピ
ュータで協動して制御動作を行う制御装置に適用され
る。In this embodiment, for example, in a control device such as an air conditioner, a solar light receiving device, various home appliances, or a communication device, the microcomputers of a plurality of control target devices cooperate and control. Applied to control devices that perform operations.
【0065】本実施の形態では、制御装置として、3つ
の制御対象機器41,43,45を電気的に接続した場
合について説明する。制御対象機器41,43,45
は、それぞれ例えばある種機械的な動作を行うもので、
内部のマイクロコンピュータ47,49,51の演算指
令に応じて駆動する。また、マイクロコンピュータ4
7,49,51は、互いに信号線で接続されており、第
2の実施の形態で説明した如く、情報交換等を行いつつ
協動して制御動作を行うものである。In this embodiment, a case will be described in which three control target devices 41, 43, and 45 are electrically connected as a control device. Control target devices 41, 43, 45
Are each performing a certain kind of mechanical operation, for example.
It is driven according to an operation command of the internal microcomputers 47, 49, 51. The microcomputer 4
7, 49, and 51 are connected to each other by signal lines, and perform control operations in cooperation with each other while exchanging information and the like as described in the second embodiment.
【0066】一方、本実施の形態の場合、各マイクロコ
ンピュータ47,49,51は、暴走監視信号用の1本
の信号線53、及び、リセット信号用の1本の信号線5
5を介してループ状に接続されている。各マイクロコン
ピュータ47,49,51は、第1の実施の形態で説明
したように暴走監視信号を生成するが、その暴走監視信
号を、互いに一方向の隣として、それぞれ右隣のマイク
ロコンピュータ47,49,51に送信する。On the other hand, in the case of the present embodiment, each of the microcomputers 47, 49, and 51 includes one signal line 53 for a runaway monitoring signal and one signal line 5 for a reset signal.
5 are connected in a loop. Each of the microcomputers 47, 49, and 51 generates a runaway monitoring signal as described in the first embodiment. 49 and 51.
【0067】各マイクロコンピュータ47,49,51
において、暴走監視信号の送信タイミングは異なり、即
ち、左側のマイクロコンピュータから右側のマイクロコ
ンピュータへ順々に暴走監視信号を送信して、所謂、暴
走監視信号をループ内で一巡させる形態をとる。Each microcomputer 47, 49, 51
, The transmission timing of the runaway monitor signal is different, that is, the runaway monitor signal is sequentially transmitted from the left microcomputer to the right microcomputer, so-called a runaway monitor signal is looped in a loop.
【0068】各マイクロコンピュータ47,49,51
は、暴走判定用タイマを設定し、設定時間内において、
左隣のマイクロコンピュータ47または49または51
から暴走監視信号が送信されるか否かを判定すること
で、左隣のマイクロコンピュータ47または49または
51の暴走状態の有無を検出する。暴走判定用タイマの
設定時間は、左隣の他の2つのマイクロコンピュータが
暴走監視信号を判定した後に、新たな暴走監視信号を生
成して、順次、自分のマイクロコンピュータまで送信し
てくるまでの時間に多少の余裕を加えた時間であり、あ
らかじめ設定した時間である。Each microcomputer 47, 49, 51
Sets the runaway determination timer, and within the set time,
The microcomputer 47 or 49 or 51 on the left side
It is determined whether or not the microcomputer 47, 49, or 51 on the left is in a runaway state by determining whether or not a runaway monitoring signal is transmitted from the microcomputer. The set time of the runaway determination timer is determined by the time after the other two microcomputers on the left determine the runaway monitor signal, generate a new runaway monitor signal, and sequentially transmit to the own microcomputer. This is a time obtained by adding some extra time to the time, and is a preset time.
【0069】暴走判定用タイマの設定時間が経過して暴
走状態を検出した場合には、左隣の暴走側マイクロコン
ピュータ47または49または51にリセット信号を送
信する。When the runaway state is detected after the set time of the runaway determination timer has elapsed, a reset signal is transmitted to the runaway microcomputer 47, 49, or 51 on the left side.
【0070】尚、各マイクロコンピュータ47,49,
51には、それぞれ第1の実施の形態で説明したような
電圧調整回路57が備えられている。Each of the microcomputers 47, 49,
Each of the circuits 51 includes a voltage adjusting circuit 57 as described in the first embodiment.
【0071】次に、本実施の形態の動作について説明す
る。Next, the operation of this embodiment will be described.
【0072】先ずループ内に暴走状態の発生がない場合
について説明する。例えば最初にマイクロコンピュータ
47が右隣のマイクロコンピュータ49へ暴走監視信号
を送信したとすると、マイクロコンピュータ47は暴走
判定用タイマを設定して、マイクロコンピュータ51か
ら暴走監視信号が送信されるのを待つ。First, the case where no runaway state occurs in the loop will be described. For example, if the microcomputer 47 first sends a runaway monitoring signal to the microcomputer 49 on the right, the microcomputer 47 sets a runaway determination timer and waits for the microcomputer 51 to send a runaway monitoring signal. .
【0073】一方、マイクロコンピュータ49では、そ
の暴走監視信号の受信により左隣のマイクロコンピュー
タ47が暴走状態にないことを検出し、右隣のマイクロ
コンピュータ51へ暴走監視信号を送信する。そして、
暴走判定用タイマを設定して、マイクロコンピュータ4
7から暴走監視信号が送信されるのを待つ。On the other hand, the microcomputer 49 detects that the microcomputer 47 on the left side is not in a runaway state by receiving the runaway monitoring signal, and transmits a runaway monitoring signal to the microcomputer 51 on the right side. And
Set the timer for runaway judgment and
Wait for the runaway monitoring signal from 7 to be transmitted.
【0074】また、マイクロコンピュータ51において
も、その暴走監視信号の受信により左隣のマイクロコン
ピュータ49が暴走状態にないことを検出し、右隣のマ
イクロコンピュータ47へ暴走監視信号を送信する。そ
して、暴走判定用タイマを設定して、マイクロコンピュ
ータ49から暴走監視信号が送信されるのを待つ。Also, the microcomputer 51 detects that the microcomputer 49 on the left is not in a runaway state by receiving the runaway monitor signal, and transmits a runaway monitor signal to the microcomputer 47 on the right. Then, a runaway determination timer is set, and the microcomputer 49 waits for a runaway monitoring signal to be transmitted.
【0075】また、マイクロコンピュータ47では、暴
走判定用タイマの設定時間内に、左隣のマイクロコンピ
ュータ51からの暴走監視信号を受信すると、左隣のマ
イクロコンピュータ51が正常であることを検出し、右
隣のマイクロコンピュータ49へ暴走監視信号を送信す
る。そして、暴走判定用タイマを設定する。When the microcomputer 47 receives a runaway monitoring signal from the microcomputer 51 on the left within the set time of the timer for determining runaway, the microcomputer 47 detects that the microcomputer 51 on the left is normal. A runaway monitoring signal is transmitted to the microcomputer 49 on the right. Then, a runaway determination timer is set.
【0076】このように、各マイクロコンピュータ4
7,49,51は、順次、左隣のマイクロコンピュータ
からの暴走監視信号の受信、受信時の暴走監視信号によ
る暴走状態の有無の検出、暴走監視信号の送信というサ
イクルを繰り返す。As described above, each microcomputer 4
7, 49 and 51 sequentially repeat a cycle of receiving the runaway monitoring signal from the microcomputer on the left side, detecting the presence or absence of a runaway state by the runaway monitoring signal at the time of reception, and transmitting the runaway monitoring signal.
【0077】次にマイクロコンピュータ49が暴走状態
にある場合について説明する。マイクロコンピュータ4
7が右隣のマイクロコンピュータ49へ暴走監視信号を
送信しても、マイクロコンピュータ49では暴走状態に
あるため、左隣のマイクロコンピュータ47の暴走状態
の有無を検出することはできない。また、右隣のマイク
ロコンピュータ51へ暴走監視信号を送信することもで
きない。Next, a case where the microcomputer 49 is in a runaway state will be described. Microcomputer 4
Even if 7 transmits a runaway monitoring signal to the microcomputer 49 on the right side, the microcomputer 49 is in a runaway state and cannot detect the runaway state of the microcomputer 47 on the left side. In addition, a runaway monitoring signal cannot be transmitted to the microcomputer 51 on the right.
【0078】この場合、マイクロコンピュータ51で
は、暴走判定用タイマの設定時間が経過して、その設定
時間内に、左隣のマイクロコンピューター49から暴走
監視信号が送信されないことを判定し、これにより暴走
状態にあることを検出する。そして、左隣のマイクロコ
ンピュータ49にリセット信号を送信し、左隣のマイク
ロコンピュータ49から暴走監視信号が送信されるのを
待つ。In this case, the microcomputer 51 determines that the runaway monitoring signal has not been transmitted from the microcomputer 49 on the left after the set time of the runaway determination timer has elapsed and within the set time. Detect that it is in the state. Then, a reset signal is transmitted to the microcomputer 49 on the left side, and the microcomputer 49 on the left side waits for a runaway monitoring signal to be transmitted.
【0079】このようにして、左隣のマイクロコンピュ
ータ49がリセットされて正常な状態に立ち直り、左隣
のマイクロコンピュータ49から暴走監視信号が再び送
信されると、上述したようにループ内に暴走状態の発生
がない場合の動作に移る。As described above, when the microcomputer 49 on the left is reset and recovers to a normal state, and the microcomputer 49 on the left sends a runaway monitoring signal again, the runaway state is set in the loop as described above. Move on to the operation when no error occurs.
【0080】本実施の形態によれば、各マイクロコンピ
ュータ47、49、51を暴走監視信号用の1本の信号
線53と、リセット信号用の1本の信号線55でループ
状に接続し、暴走監視信号を順次一方向の隣に位置する
マイクロコンピュータへ送って一巡させる形態をとるの
で、暴走対策装置として、使用する信号線の数が低減
し、第2の実施の形態の場合よりさらに構成の簡略化を
図ることができる。According to the present embodiment, the microcomputers 47, 49 and 51 are connected in a loop by one signal line 53 for runaway monitoring signal and one signal line 55 for reset signal. Since the runaway monitoring signal is sequentially sent to a microcomputer located in the next direction in one direction to make a round, the number of signal lines to be used is reduced as a runaway countermeasure device, which is further configured as compared with the second embodiment. Can be simplified.
【0081】[0081]
【発明の効果】請求項1に記載の発明によれば、複数の
マイクロコンピュータ間で暴走監視信号を送受信して、
暴走状態の有無を検出し、暴走状態発生時に健全側マイ
クロコンピュータから暴走側マイクロコンピュータに初
期状態にする信号を送信するようにしたので、マイクロ
コンピュータの暴走状態を自動的に発見して迅速に解消
し、以て、制御装置の迅速な正常化を図ることができ
る。According to the first aspect of the present invention, a runaway monitoring signal is transmitted and received between a plurality of microcomputers,
A runaway state is detected, and when a runaway state occurs, a signal to initialize the microcomputer is sent from the healthy microcomputer to the runaway microcomputer, so the microcomputer's runaway state is automatically detected and quickly resolved. Thus, quick normalization of the control device can be achieved.
【0082】請求項2に記載の発明によれば、暴走側マ
イクロコンピュータを初期状態にする信号として、リセ
ット信号を用いるので、簡単な構成で上記効果を得るこ
とができる。According to the second aspect of the present invention, since the reset signal is used as a signal for initializing the runaway microcomputer, the above effect can be obtained with a simple configuration.
【0083】請求項3に記載の発明によれば、暴走側マ
イクロコンピュータを初期状態にする信号として、電源
を遮断した後に再投入する電源制御信号を用いるので、
確実に暴走側マイクロコンピュータを初期状態にして上
記効果を得ることができる。According to the third aspect of the present invention, the power control signal for turning off and then turning on the power is used as the signal for resetting the runaway microcomputer to the initial state.
The above-mentioned effect can be reliably obtained by setting the runaway microcomputer to the initial state.
【0084】請求項4に記載の発明によれば、ループ状
に接続されて隣り合うマイクロコンピュータ間で暴走監
視信号を送信しあって、暴走状態の有無を検出し、暴走
状態発生時に、健全側マイクロコンピュータから暴走側
マイクロコンピュータに初期状態にする信号を送信する
ようにしたので、装置全体として、簡易な構成で上記効
果を得ることができる。According to the fourth aspect of the present invention, a runaway monitor signal is transmitted between adjacent microcomputers connected in a loop to detect the presence or absence of a runaway state. Since the microcomputer sends a signal for initializing to the runaway microcomputer, the above effect can be obtained with a simple configuration of the entire apparatus.
【0085】請求項5に記載の発明によれば、ループ状
に接続されて互いに一方向の隣に位置するマイクロコン
ピュータに順次暴走監視信号を送信し、暴走状態の有無
を検出し、暴走状態発生時に、健全側マイクロコンピュ
ータから暴走側マイクロコンピュータに初期状態にする
信号を送信するようにしたので、信号線の使用数を低減
し、さらに簡易な構成で上記効果を得ることができる。According to the fifth aspect of the present invention, a runaway monitor signal is sequentially transmitted to microcomputers connected in a loop and located adjacent to each other in one direction to detect the presence or absence of a runaway state and to generate a runaway state. At this time, since a signal for initializing is transmitted from the healthy microcomputer to the runaway microcomputer, the number of signal lines used can be reduced, and the above effect can be obtained with a simpler configuration.
【0086】請求項6に記載の発明によれば、上記発明
において、電圧調整回路を備えたので、各マイクロコン
ピュータの動作電圧が異なっても、確実に、各マイクロ
コンピュータにおいて通信を行うことができ、暴走監視
信号の状態の判定等に支障を来すことがない。According to the sixth aspect of the present invention, since the voltage adjusting circuit is provided in the above-mentioned invention, even if the operating voltages of the microcomputers are different, the communication can be reliably performed in the microcomputers. It does not hinder the determination of the state of the runaway monitoring signal.
【図1】本発明の第1の実施の形態の構成を説明する説
明図である。FIG. 1 is an explanatory diagram illustrating a configuration of a first exemplary embodiment of the present invention.
【図2】第1の実施の形態において暴走監視信号と暴走
判定用タイマの設定時間との関係を説明する説明図であ
る。FIG. 2 is an explanatory diagram illustrating a relationship between a runaway monitoring signal and a set time of a runaway determination timer in the first embodiment.
【図3】第1の実施の形態の動作を説明するフローチャ
ートである。FIG. 3 is a flowchart illustrating the operation of the first embodiment.
【図4】本発明の第2の実施の形態の構成を説明する説
明図である。FIG. 4 is an explanatory diagram illustrating a configuration of a second exemplary embodiment of the present invention.
【図5】本発明の第3の実施の形態の構成を説明する説
明図である。FIG. 5 is an explanatory diagram illustrating a configuration of a third embodiment of the present invention.
5,7,21,23,25,41,43,45 制御対
象機器 1,3,27,29,31,47,49,51 マイク
ロコンピュータ 9,11,37,57 電圧調整回路 33,35,53,55 信号線5, 7, 21, 23, 25, 41, 43, 45 Device to be controlled 1, 3, 27, 29, 31, 47, 49, 51 Microcomputer 9, 11, 37, 57 Voltage adjustment circuit 33, 35, 53 , 55 signal line
Claims (6)
各マイクロコンピュータで協動して制御動作を行う制御
装置において、 上記各マイクロコンピュータ間で暴走監視信号を送受信
して、当該マイクロコンピュータの暴走状態の有無を検
出し、 暴走状態発生時に、健全側マイクロコンピュータから暴
走側マイクロコンピュータに当該暴走側マイクロコンピ
ュータを初期状態にする信号を送信するようにしたこと
を特徴とする制御装置の暴走対策装置。1. A method for connecting a plurality of microcomputers,
In a control device in which each microcomputer performs a control operation in cooperation with each other, a runaway monitoring signal is transmitted and received between each of the microcomputers to detect whether or not the microcomputer is in a runaway state. A runaway countermeasure device for a control device, wherein a signal for initializing the runaway microcomputer is transmitted from the computer to the runaway microcomputer.
各マイクロコンピュータで協動して制御動作を行う制御
装置において、 上記各マイクロコンピュータ間で暴走監視信号を送受信
して、当該マイクロコンピュータの暴走状態の有無を検
出し、 暴走状態発生時に、健全側マイクロコンピュータから暴
走側マイクロコンピュータに当該暴走側マイクロコンピ
ュータをリセットするリセット信号を送信するようにし
たことを特徴とする制御装置の暴走対策装置。2. Connecting a plurality of microcomputers,
In a control device in which each microcomputer performs a control operation in cooperation with each other, a runaway monitoring signal is transmitted and received between each of the microcomputers to detect whether or not the microcomputer is in a runaway state. A runaway countermeasure device for a control device, wherein a reset signal for resetting the runaway microcomputer is transmitted from the computer to the runaway microcomputer.
各マイクロコンピュータで協動して制御動作を行う制御
装置において、 上記各マイクロコンピュータ間で暴走監視信号を送受信
して、互いに相手側のマイクロコンピュータの暴走状態
の有無を検出し、 暴走状態発生時に、健全側マイクロコンピュータから暴
走側マイクロコンピュータに当該暴走側マイクロコンピ
ュータの電源を一旦遮断した後に再投入する電源制御信
号を送信するようにしたことを特徴とする制御装置の暴
走対策装置。3. Connecting a plurality of microcomputers,
In a control device that performs control operations in cooperation with each microcomputer, a runaway monitoring signal is transmitted and received between each of the microcomputers, and the presence or absence of a runaway state of the other microcomputer is detected. A runaway countermeasure device for a control device, wherein a power supply control signal for turning off and then turning on the power of the runaway microcomputer is transmitted from the healthy microcomputer to the runaway microcomputer.
各マイクロコンピュータで協動して制御動作を行う制御
装置において、 上記複数のマイクロコンピュータをループ状に接続し、 上記隣合うマイクロコンピュータ間で暴走監視信号を送
受信しあって、互いに相手側のマイクロコンピュータの
暴走状態の有無を検出し、 暴走状態発生時に、健全側マイクロコンピュータから暴
走側マイクロコンピュータに当該暴走側マイクロコンピ
ュータを初期状態にする信号を送信するようにしたこと
を特徴とする制御装置の暴走対策装置。4. Connecting a plurality of microcomputers,
In a control device in which each microcomputer cooperates to perform a control operation, the plurality of microcomputers are connected in a loop, and the runaway monitoring signals are transmitted and received between the adjacent microcomputers, and the microcomputers on the other side are connected to each other. Detecting the presence or absence of a runaway state of the controller, and transmitting a signal for initializing the runaway microcomputer from the healthy microcomputer to the runaway microcomputer when the runaway state occurs. Countermeasure device.
各マイクロコンピュータで協動して制御動作を行う制御
装置において、 上記複数のマイクロコンピュータをループ状に接続し、 上記各マイクロコンピュータが互いに一方向の隣に位置
するマイクロコンピュータに暴走監視信号を送信し、各
自が他方向の隣のマイクロコンピュータの暴走状態の有
無を検出し、 暴走状態発生時に、健全側マイクロコンピュータから暴
走側マイクロコンピュータに当該暴走側マイクロコンピ
ュータを初期状態にする信号を送信するようにしたこと
を特徴とする制御装置の暴走対策装置。5. Connecting a plurality of microcomputers,
In a control device that performs control operations in cooperation with each microcomputer, the plurality of microcomputers are connected in a loop, and each of the microcomputers transmits a runaway monitoring signal to a microcomputer located adjacent to each other in one direction. Each of them detects whether there is a runaway state of the next microcomputer in the other direction, and when a runaway state occurs, transmits a signal to initialize the runaway microcomputer from the healthy microcomputer to the runaway microcomputer. A runaway control device for a control device, characterized in that:
の信号の電圧を自己の動作電圧に適するように調整する
電圧調整回路を備えたことを特徴とする請求項1乃至5
のいずれか1項に記載の制御装置の暴走対策装置。6. The microcomputer according to claim 1, further comprising a voltage adjusting circuit that adjusts a voltage of a signal at the time of communication so as to be suitable for its own operating voltage.
Runaway control device for a control device according to any one of the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19972396A JPH1027009A (en) | 1996-07-10 | 1996-07-10 | Device for taking countermeasure against run-out of controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19972396A JPH1027009A (en) | 1996-07-10 | 1996-07-10 | Device for taking countermeasure against run-out of controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1027009A true JPH1027009A (en) | 1998-01-27 |
Family
ID=16412549
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19972396A Pending JPH1027009A (en) | 1996-07-10 | 1996-07-10 | Device for taking countermeasure against run-out of controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1027009A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011029018A (en) * | 2009-07-27 | 2011-02-10 | Mitsubishi Electric Corp | Lighting device and lighting fixture equipped with the same |
| JP2016020178A (en) * | 2014-07-15 | 2016-02-04 | 矢崎総業株式会社 | Power supply control system |
| JP2016128278A (en) * | 2015-01-09 | 2016-07-14 | 矢崎総業株式会社 | Power control system |
| JP2017056768A (en) * | 2015-09-14 | 2017-03-23 | 株式会社オートネットワーク技術研究所 | Power supply control device, communication system, and power supply control method |
| CN106660497A (en) * | 2014-07-15 | 2017-05-10 | 矢崎总业株式会社 | Power supply control system |
-
1996
- 1996-07-10 JP JP19972396A patent/JPH1027009A/en active Pending
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011029018A (en) * | 2009-07-27 | 2011-02-10 | Mitsubishi Electric Corp | Lighting device and lighting fixture equipped with the same |
| JP2016020178A (en) * | 2014-07-15 | 2016-02-04 | 矢崎総業株式会社 | Power supply control system |
| CN106660497A (en) * | 2014-07-15 | 2017-05-10 | 矢崎总业株式会社 | Power supply control system |
| US10351084B2 (en) | 2014-07-15 | 2019-07-16 | Yazaki Corporation | Power supply control system |
| JP2016128278A (en) * | 2015-01-09 | 2016-07-14 | 矢崎総業株式会社 | Power control system |
| JP2017056768A (en) * | 2015-09-14 | 2017-03-23 | 株式会社オートネットワーク技術研究所 | Power supply control device, communication system, and power supply control method |
| US10471911B2 (en) | 2015-09-14 | 2019-11-12 | Autonetworks Technologies, Ltd. | Power supply control apparatus, communication system, and power supply control method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6859669B2 (en) | Apparatus and method of controlling activation of home automation system | |
| JP7292061B2 (en) | Control device, air conditioner, control method and program | |
| WO2022127087A1 (en) | Connection and control board for air conditioning system, air conditioning system, and adaptive control method | |
| JP2000018684A (en) | Air conditioner and operation control method in air conditioner | |
| JPH1027009A (en) | Device for taking countermeasure against run-out of controller | |
| WO1996013956A1 (en) | Transmitter | |
| JP2010276204A (en) | Communication system for air conditioner | |
| JPH09282002A (en) | Master/slave-type controller and controller for refrigeration cycle device | |
| JP3164851B2 (en) | Air conditioner address setting device | |
| WO2010089810A1 (en) | Reset control circuit, apparatus control device, and control system | |
| JP2007187406A (en) | Air conditioning system | |
| JPH02276337A (en) | Polarity settlement control method | |
| JPS60120124A (en) | Abnormality detecting device for air-conditioning machine | |
| JPH0445343A (en) | Air conditioner operation control device | |
| JPH02311099A (en) | Malfunction prevention control system | |
| JPH02272252A (en) | Air conditioner operation control device | |
| JP3183086B2 (en) | Distributed air conditioner | |
| JPH02104197A (en) | Serial signal transmitting equipment | |
| CN115023903B (en) | Communication Systems | |
| KR20090066829A (en) | How to set communication error detection time of system air conditioner | |
| JP2007071428A (en) | Unregistered indoor unit addition device in air conditioner | |
| JPH076663B2 (en) | Air conditioner | |
| JPH0796948B2 (en) | Operation control device for air conditioner | |
| JPH04325842A (en) | Remote controller for power supply | |
| JP2007032858A (en) | Apparatus and method for adding unregistered indoor unit in air conditioner |