JP2007067801A - Switching control system and control unit applied thereto - Google Patents

Switching control system and control unit applied thereto Download PDF

Info

Publication number
JP2007067801A
JP2007067801A JP2005250932A JP2005250932A JP2007067801A JP 2007067801 A JP2007067801 A JP 2007067801A JP 2005250932 A JP2005250932 A JP 2005250932A JP 2005250932 A JP2005250932 A JP 2005250932A JP 2007067801 A JP2007067801 A JP 2007067801A
Authority
JP
Japan
Prior art keywords
signal
control
output
failure detection
serial
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.)
Granted
Application number
JP2005250932A
Other languages
Japanese (ja)
Other versions
JP4755868B2 (en
Inventor
Hiroshi Hasegawa
宏 長谷川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toa Corp
Original Assignee
Toa Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toa Corp filed Critical Toa Corp
Priority to JP2005250932A priority Critical patent/JP4755868B2/en
Publication of JP2007067801A publication Critical patent/JP2007067801A/en
Application granted granted Critical
Publication of JP4755868B2 publication Critical patent/JP4755868B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a switching control system capable of secure fault detection of a control unit, and the control unit applied thereto. <P>SOLUTION: A fault detecting circuit 20 outputs a fault detection signal TXON to another central processing unit according to a serial control signal TX and WD pulses, and the other central processing unit outputs the serial control signal TX to a communication line 4 for TX transmission in response to the fault detection signal TXON. Consequently, fault detection of the central processing unit can be performed by using the serial control signal TX in addition to the WD pulses. Therefore, even when fault detection can not be performed with the WD pulses although the serial control signal TX is not output normally, the fault detection signal TXON can be generated to securely perform the fault detection of the central processing unit. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、シリアル通信線を介して制御対象装置に着脱可能に接続された1対の制御ユニットを用いて、いずれか一方の制御ユニットで制御対象装置を制御する切替制御システム及びこれに適用される制御ユニットに関する。   The present invention is applied to a switching control system in which a control target device is controlled by one of the control units using a pair of control units detachably connected to the control target device via a serial communication line. Related to the control unit.

従来から、放送設備における音声出力の制御などにおいては、1対の制御ユニットを用いて音声出力装置を制御する切替制御システムが採用されている。このように、1対の制御ユニットを用いて制御対象装置を制御する切替制御システムでは、いずれか一方の制御ユニットから制御対象装置に制御信号を出力することにより、制御対象装置の動作を制御する。1対の制御ユニットのうち一方の制御ユニットで制御対象装置の制御を行い、制御中にその制御ユニットが故障するなどして制御対象装置の制御を行うことができなくなった場合に、他方の制御ユニットで制御対象装置を制御するように切り替えることにより、引き続き制御対象装置の制御を行うことができる(例えば、特許文献1)。   2. Description of the Related Art Conventionally, a switching control system for controlling an audio output device using a pair of control units has been adopted in audio output control in broadcasting facilities. In this way, in the switching control system that controls the control target device using a pair of control units, the operation of the control target device is controlled by outputting a control signal from either one of the control units to the control target device. . When one control unit of a pair of control units controls a control target device and the control unit cannot be controlled due to a failure of the control unit during control, the other control unit By switching so that the control target device is controlled by the unit, the control target device can be continuously controlled (for example, Patent Document 1).

図7は、従来の切替制御システムの一構成例を示したブロック図である。この例では、制御ユニットとして1対の中央処理ユニット101が備えられ、これらの中央処理ユニット101が切替ユニット102を介して1又は2以上の制御対象装置103に接続されている。切替ユニット102は、パラレル通信線104を介して制御対象装置103に接続されている。   FIG. 7 is a block diagram showing a configuration example of a conventional switching control system. In this example, a pair of central processing units 101 are provided as control units, and these central processing units 101 are connected to one or more control target devices 103 via a switching unit 102. The switching unit 102 is connected to the control target device 103 via the parallel communication line 104.

各中央処理ユニット101は、CPU(Central Processing Unit)を備え、このCPUの制御により、制御信号及び故障検出信号を出力する。制御信号は、制御対象装置103を制御するための信号である。故障検出信号は、その中央処理ユニット101に故障が検出された場合に出力される信号であり、いわゆるWDT(Watch Dog Timer)からの出力信号により構成することができる(例えば、特許文献2及び3)。WDTは、中央処理ユニット101内で周期的に生成されるWD(Watch Dog)パルスを監視しており、WDパルスが一定時間出力されない場合に故障検出信号を出力する。   Each central processing unit 101 includes a CPU (Central Processing Unit), and outputs a control signal and a failure detection signal under the control of the CPU. The control signal is a signal for controlling the control target device 103. The failure detection signal is a signal output when a failure is detected in the central processing unit 101, and can be configured by an output signal from a so-called WDT (Watch Dog Timer) (for example, Patent Documents 2 and 3). ). The WDT monitors a WD (Watch Dog) pulse periodically generated in the central processing unit 101, and outputs a failure detection signal when the WD pulse is not output for a certain period of time.

切替ユニット102は、切替スイッチ105及び切替論理回路106を備えている。切替スイッチ105には、各中央処理ユニット101から制御信号が入力され、切替論理回路106には、各中央処理ユニット101から故障検出信号が入力される。切替論理回路106は、いずれかの中央処理ユニット101から故障検出信号が出力された場合に、切替スイッチ105に切替信号を入力する。切替スイッチ105は、切替論理回路106から入力された切替信号に基づいて、故障検出信号を出力した中央処理ユニット101から制御対象装置103への制御信号の出力を停止させ、他方の中央処理ユニット101から制御対象装置103に制御信号が出力されるように切り替えられる。
特開2004−304500号公報 特開平5−313933号公報 特開2004−086451号公報
The changeover unit 102 includes a changeover switch 105 and a changeover logic circuit 106. A control signal is input to each changeover switch 105 from each central processing unit 101, and a failure detection signal is input to each changeover logic circuit 106 from each central processing unit 101. The switch logic circuit 106 inputs a switch signal to the switch 105 when a failure detection signal is output from any of the central processing units 101. The changeover switch 105 stops the output of the control signal from the central processing unit 101 that has output the failure detection signal to the control target device 103 based on the switching signal input from the switching logic circuit 106, and the other central processing unit 101. So that a control signal is output from the control target device 103 to the control target device 103.
JP 2004-304500 A JP-A-5-313933 JP 2004-086451 A

しかしながら、上記のような従来の切替制御システムでは、制御信号を出力するためのソフトウェアに内在するバグや静電気の影響等により、故障検出信号は出力されていないのに制御信号が正常に出力されないといった事態が生じうる。このような状況では、制御信号が正常に出力されていないにもかかわらず、故障検出信号が切替論理回路106に入力されないため、切替スイッチ105は切り替えられず、正常でない制御信号が制御対象装置103に入力されることとなる。   However, in the conventional switching control system as described above, the failure detection signal is not output but the control signal is not normally output due to the bugs inherent in the software for outputting the control signal or the influence of static electricity. Things can happen. In such a situation, since the failure detection signal is not input to the switching logic circuit 106 even though the control signal is not normally output, the changeover switch 105 is not switched, and the abnormal control signal is not controlled. Will be input.

本発明は、上記の事情に鑑みてなされたものであり、制御ユニットの故障検出を確実に行うことができる切替制御システム及びこれに適用される制御ユニットを提供することを目的とする。また、簡便な構成で制御ユニットの故障検出を行うことができる切替制御システム及びこれに適用される制御ユニットを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a switching control system capable of reliably detecting a failure of a control unit and a control unit applied thereto. It is another object of the present invention to provide a switching control system capable of detecting a failure of a control unit with a simple configuration and a control unit applied thereto.

第1の本発明による切替制御システムは、共通のシリアル通信線を介して、制御対象装置に1対の制御ユニットが着脱可能に接続され、いずれか一方の制御ユニットが制御対象装置を制御する切替制御システムにおいて、上記制御ユニットが、上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、上記シリアル制御信号及び上記監視用信号に基づいて故障検出信号を生成する故障検出回路と、他方の制御ユニットからの故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えて構成される。   In the switching control system according to the first aspect of the present invention, a pair of control units is detachably connected to a control target device via a common serial communication line, and one of the control units controls the control target device. In the control system, the control unit generates a serial control signal for controlling the device to be controlled, and periodically generates a monitoring signal, based on the serial control signal and the monitoring signal. A failure detection circuit that generates a failure detection signal, and a control signal output circuit that outputs the serial control signal to the serial communication line based on the failure detection signal from the other control unit.

このような構成によれば、制御ユニットの故障を当該制御ユニットのマイクロプロセッサが生成するシリアル制御信号及び監視用信号に基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成される監視用信号に加えて、シリアル通信線を介して制御対象装置へ出力されるシリアル制御信号を用いて制御ユニットの故障検出を行うことができる。したがって、シリアル制御信号が正常に出力されていないにもかかわらず、監視用信号では故障検出を行うことができない場合であっても、故障検出信号を生成することができ、制御ユニットの故障検出を確実に行うことができる。   According to such a configuration, the failure of the control unit can be detected based on the serial control signal and the monitoring signal generated by the microprocessor of the control unit. In other words, in addition to the monitoring signal periodically generated by the microprocessor, the failure of the control unit can be detected using the serial control signal output to the control target device via the serial communication line. Therefore, even if the serial control signal is not normally output, even if the failure cannot be detected with the monitoring signal, the failure detection signal can be generated and the control unit can detect the failure. It can be done reliably.

また、1対の制御ユニットが共通のシリアル通信線を介して制御対象装置に接続され、各制御ユニットからのシリアル制御信号の出力制御が、他方の制御ユニットからの故障検出信号に基づいて行われる。このように、共通のシリアル通信線を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で制御ユニットの故障検出を行うことができる。   In addition, a pair of control units are connected to the controlled device via a common serial communication line, and output control of serial control signals from each control unit is performed based on a failure detection signal from the other control unit. . In this way, by using a common serial communication line, it is not necessary to provide a complicated communication line, and the failure of the control unit can be detected with a simple configuration.

一方の制御ユニットが制御中に故障した場合には、他方の制御ユニットで制御対象装置を制御する状態に切り替わるので、制御対象装置を動作させた状態のまま故障した制御ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one control unit fails during control, the control unit switches to a state in which the other control unit controls the control target device. Therefore, the failed control unit must be removed and replaced while the control target device is operating. Can do. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

第2の本発明による切替制御システムは、上記構成に加えて、他方の制御ユニットからの上記故障検出信号に基づいて、上記シリアル制御信号を上記故障検出回路へ入力する故障検出制御回路を備えて構成される。   In addition to the above configuration, the switching control system according to the second aspect of the present invention includes a failure detection control circuit that inputs the serial control signal to the failure detection circuit based on the failure detection signal from the other control unit. Composed.

このような構成によれば、他方の制御ユニットからの故障検出信号に基づいて、一方の制御ユニットにおいてシリアル制御信号を故障検出回路へ入力することにより、その故障検出回路からの故障検出信号の出力を制御することができる。   According to such a configuration, based on the failure detection signal from the other control unit, the serial control signal is input to the failure detection circuit in one control unit, so that the failure detection signal is output from the failure detection circuit. Can be controlled.

例えば、他方の制御ユニットにおいて故障検出信号が出力され、その故障検出信号に基づいて一方の制御ユニットにおいてシリアル制御信号が出力されている状態で、その一方の制御ユニットからの故障検出信号の出力を停止させることにより、他方の制御ユニットからシリアル制御信号が出力されない状態にすることができる。したがって、1対の制御ユニットの両方から制御対象装置へシリアル制御信号が出力されるのを防止できる。   For example, in the state where a failure detection signal is output in the other control unit and a serial control signal is output in one control unit based on the failure detection signal, output of the failure detection signal from the one control unit is performed. By stopping it, the serial control signal can not be output from the other control unit. Therefore, it is possible to prevent serial control signals from being output from both of the pair of control units to the control target device.

第3の本発明による切替制御システムは、共通のシリアル通信線を介して、制御対象装置に1対の制御ユニットが着脱可能に接続され、いずれか一方の制御ユニットが制御対象装置を制御する切替制御システムにおいて、上記制御ユニットが、上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、ともに他方の制御ユニットから入力されるシリアル制御信号及び監視用信号に基づいて故障検出信号を生成する故障検出回路と、上記故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えて構成される。   A switching control system according to a third aspect of the present invention is a switching in which a pair of control units are detachably connected to a control target device via a common serial communication line, and one of the control units controls the control target device. In the control system, the control unit generates a serial control signal for controlling the device to be controlled, and a microprocessor that periodically generates a monitoring signal and serial control input from the other control unit A failure detection circuit that generates a failure detection signal based on the signal and the monitoring signal; and a control signal output circuit that outputs the serial control signal to the serial communication line based on the failure detection signal. .

このような構成によれば、制御ユニットの故障を他方の制御ユニットのマイクロプロセッサが生成するシリアル制御信号及び監視用信号に基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成される監視用信号に加えて、シリアル通信線を介して制御対象装置へ出力されるシリアル制御信号を用いて制御ユニットの故障検出を行うことができる。したがって、シリアル制御信号が正常に出力されていないにもかかわらず、監視用信号では故障検出を行うことができない場合であっても、故障検出信号を生成することができ、制御ユニットの故障検出を確実に行うことができる。   According to such a configuration, the failure of the control unit can be detected based on the serial control signal and the monitoring signal generated by the microprocessor of the other control unit. In other words, in addition to the monitoring signal periodically generated by the microprocessor, the failure of the control unit can be detected using the serial control signal output to the control target device via the serial communication line. Therefore, even if the serial control signal is not normally output, even if the failure cannot be detected with the monitoring signal, the failure detection signal can be generated and the control unit can detect the failure. It can be done reliably.

また、1対の制御ユニットが共通のシリアル通信線を介して制御対象装置に接続され、各制御ユニットからのシリアル制御信号の出力制御が、当該制御ユニットからの故障検出信号に基づいて行われる。このように、共通のシリアル通信線を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で制御ユニットの故障検出を行うことができる。   In addition, a pair of control units are connected to the control target device via a common serial communication line, and output control of serial control signals from each control unit is performed based on a failure detection signal from the control unit. In this way, by using a common serial communication line, it is not necessary to provide a complicated communication line, and the failure of the control unit can be detected with a simple configuration.

また、一方の制御ユニットに故障が生じて、シリアル制御信号又は監視用信号の出力に異常が生じた場合でも、故障検出回路が他方の制御ユニットに備えられているので、故障検出回路にも故障が生じることにより故障検出信号が出力されないといった事態を防止できる。したがって、一方の制御ユニットに故障が生じた場合に、他方の制御ユニットにおいて確実に故障検出信号を出力し、その故障検出信号に基づいてシリアル制御信号を出力することができるので、制御対象装置へ確実にシリアル制御信号を出力することができる。   Even if a failure occurs in one control unit and an abnormality occurs in the output of the serial control signal or monitoring signal, the failure detection circuit is provided in the other control unit. It is possible to prevent a situation in which a failure detection signal is not output due to the occurrence of. Therefore, when a failure occurs in one control unit, a failure detection signal can be reliably output in the other control unit, and a serial control signal can be output based on the failure detection signal. A serial control signal can be output reliably.

一方の制御ユニットが制御中に故障した場合には、他方の制御ユニットで制御対象装置を制御する状態に切り替わるので、制御対象装置を動作させた状態のまま故障した制御ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one control unit fails during control, the control unit switches to a state in which the other control unit controls the control target device. Therefore, the failed control unit must be removed and replaced while the control target device is operating. Can do. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

第4の本発明による切替制御システムは、上記構成に加えて、上記故障検出信号に基づいて、上記シリアル制御信号を他方の制御ユニットの上記故障検出回路へ入力する故障検出制御回路を備えて構成される。   A switching control system according to a fourth aspect of the present invention includes a failure detection control circuit that inputs the serial control signal to the failure detection circuit of the other control unit based on the failure detection signal in addition to the above configuration. Is done.

このような構成によれば、故障検出回路で生成された故障検出信号に基づいて、シリアル制御信号を他方の制御ユニットの故障検出回路へ入力することにより、他方の制御ユニットにおける故障検出回路からの故障検出信号の出力を制御することができる。   According to such a configuration, the serial control signal is input to the failure detection circuit of the other control unit based on the failure detection signal generated by the failure detection circuit, so that the failure detection circuit in the other control unit The output of the failure detection signal can be controlled.

例えば、一方の制御ユニットにおいて故障検出信号が出力され、その故障検出信号に基づいて一方の制御ユニットにおいてシリアル制御信号が出力されている状態で、他方の制御ユニットからの故障検出信号の出力を停止させることにより、その他方の制御ユニットからシリアル制御信号が出力されない状態にすることができる。したがって、1対の制御ユニットの両方から制御対象装置へシリアル制御信号が出力されるのを防止できる。   For example, output of a failure detection signal from the other control unit is stopped while a failure detection signal is output from one control unit and a serial control signal is output from one control unit based on the failure detection signal. As a result, the serial control signal is not output from the other control unit. Therefore, it is possible to prevent serial control signals from being output from both of the pair of control units to the control target device.

第5の本発明による切替制御システムにおいて、上記故障検出回路は、シリアル制御信号及び監視用信号のいずれかが検出されない場合に、故障検出信号を生成する。   In the switching control system according to the fifth aspect of the present invention, the failure detection circuit generates a failure detection signal when either the serial control signal or the monitoring signal is not detected.

このような構成によれば、シリアル制御信号及び監視用信号のいずれかが検出されない場合に故障検出信号が生成され、その故障検出信号に基づいてシリアル制御信号がシリアル通信線へ出力される。シリアル制御信号及び監視用信号は、ソフトウェアのフェーズの異なる場所から出力することができるので、それらのいずれかが検出されない場合に故障検出信号を出力することにより、故障をより確実に検出することができる。   According to such a configuration, a failure detection signal is generated when either the serial control signal or the monitoring signal is not detected, and the serial control signal is output to the serial communication line based on the failure detection signal. Since the serial control signal and the monitoring signal can be output from different locations in the software phase, if any of them is not detected, it is possible to detect the failure more reliably by outputting the failure detection signal. it can.

第6の本発明による制御ユニットは、シリアル通信線を介して制御対象装置に着脱可能に接続され、対となる他方の制御ユニットとの間で択一的に制御対象装置を制御する制御ユニットにおいて、上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、上記シリアル制御信号及び上記監視用信号に基づいて故障検出信号を生成する故障検出回路と、他方の制御ユニットからの故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えて構成される。   A control unit according to a sixth aspect of the present invention is a control unit that is detachably connected to a control target device via a serial communication line, and controls the control target device alternatively with the other control unit in a pair. A microprocessor that generates a serial control signal for controlling the device to be controlled and periodically generates a monitoring signal, and a failure that generates a failure detection signal based on the serial control signal and the monitoring signal A detection circuit and a control signal output circuit that outputs the serial control signal to the serial communication line based on a failure detection signal from the other control unit are configured.

このような構成によれば、制御ユニットの故障を当該制御ユニットのマイクロプロセッサが生成するシリアル制御信号及び監視用信号に基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成される監視用信号に加えて、シリアル通信線を介して制御対象装置へ出力されるシリアル制御信号を用いて制御ユニットの故障検出を行うことができる。したがって、シリアル制御信号が正常に出力されていないにもかかわらず、監視用信号では故障検出を行うことができない場合であっても、故障検出信号を生成することができ、制御ユニットの故障検出を確実に行うことができる。   According to such a configuration, the failure of the control unit can be detected based on the serial control signal and the monitoring signal generated by the microprocessor of the control unit. In other words, in addition to the monitoring signal periodically generated by the microprocessor, the failure of the control unit can be detected using the serial control signal output to the control target device via the serial communication line. Therefore, even if the serial control signal is not normally output, even if the failure cannot be detected with the monitoring signal, the failure detection signal can be generated and the control unit can detect the failure. It can be done reliably.

また、1対の制御ユニットが共通のシリアル通信線を介して制御対象装置に接続され、各制御ユニットからのシリアル制御信号の出力制御が、他方の制御ユニットからの故障検出信号に基づいて行われる。このように、共通のシリアル通信線を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で制御ユニットの故障検出を行うことができる。   In addition, a pair of control units are connected to the controlled device via a common serial communication line, and output control of serial control signals from each control unit is performed based on a failure detection signal from the other control unit. . In this way, by using a common serial communication line, it is not necessary to provide a complicated communication line, and the failure of the control unit can be detected with a simple configuration.

一方の制御ユニットが制御中に故障した場合には、他方の制御ユニットで制御対象装置を制御する状態に切り替わるので、制御対象装置を動作させた状態のまま故障した制御ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one control unit fails during control, the control unit switches to a state in which the other control unit controls the control target device. Therefore, the failed control unit must be removed and replaced while the control target device is operating. Can do. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

第7の本発明による制御ユニットは、シリアル通信線を介して制御対象装置に着脱可能に接続され、対となる他方の制御ユニットとの間で択一的に制御対象装置を制御する制御ユニットにおいて、上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、ともに他方の制御ユニットから出力されるシリアル制御信号及び監視用信号に基づいて故障検出信号を生成する故障検出回路と、上記故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えて構成される。   A control unit according to a seventh aspect of the present invention is a control unit that is detachably connected to a control target device via a serial communication line, and controls the control target device alternatively with the other control unit in a pair. A microprocessor that generates a serial control signal for controlling the device to be controlled and periodically generates a monitoring signal and a serial control signal and a monitoring signal output from the other control unit. A failure detection circuit that generates a failure detection signal and a control signal output circuit that outputs the serial control signal to the serial communication line based on the failure detection signal are configured.

このような構成によれば、制御ユニットの故障を他方の制御ユニットのマイクロプロセッサが生成するシリアル制御信号及び監視用信号に基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成される監視用信号に加えて、シリアル通信線を介して制御対象装置へ出力されるシリアル制御信号を用いて制御ユニットの故障検出を行うことができる。したがって、シリアル制御信号が正常に出力されていないにもかかわらず、監視用信号では故障検出を行うことができない場合であっても、故障検出信号を生成することができ、制御ユニットの故障検出を確実に行うことができる。   According to such a configuration, the failure of the control unit can be detected based on the serial control signal and the monitoring signal generated by the microprocessor of the other control unit. In other words, in addition to the monitoring signal periodically generated by the microprocessor, the failure of the control unit can be detected using the serial control signal output to the control target device via the serial communication line. Therefore, even if the serial control signal is not normally output, even if the failure cannot be detected with the monitoring signal, the failure detection signal can be generated and the control unit can detect the failure. It can be done reliably.

また、1対の制御ユニットが共通のシリアル通信線を介して制御対象装置に接続され、各制御ユニットからのシリアル制御信号の出力制御が、当該制御ユニットからの故障検出信号に基づいて行われる。このように、共通のシリアル通信線を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で制御ユニットの故障検出を行うことができる。   In addition, a pair of control units are connected to the control target device via a common serial communication line, and output control of serial control signals from each control unit is performed based on a failure detection signal from the control unit. In this way, by using a common serial communication line, it is not necessary to provide a complicated communication line, and the failure of the control unit can be detected with a simple configuration.

また、一方の制御ユニットに故障が生じて、シリアル制御信号又は監視用信号の出力に異常が生じた場合でも、故障検出回路が他方の制御ユニットに備えられているので、故障検出回路にも故障が生じることにより故障検出信号が出力されないといった事態を防止できる。したがって、一方の制御ユニットに故障が生じた場合に、他方の制御ユニットにおいて確実に故障検出信号を出力し、その故障検出信号に基づいてシリアル制御信号を出力することができるので、制御対象装置へ確実にシリアル制御信号を出力することができる。   Even if a failure occurs in one control unit and an abnormality occurs in the output of the serial control signal or monitoring signal, the failure detection circuit is provided in the other control unit. It is possible to prevent a situation in which a failure detection signal is not output due to the occurrence of. Therefore, when a failure occurs in one control unit, a failure detection signal can be reliably output in the other control unit, and a serial control signal can be output based on the failure detection signal. A serial control signal can be output reliably.

一方の制御ユニットが制御中に故障した場合には、他方の制御ユニットで制御対象装置を制御する状態に切り替わるので、制御対象装置を動作させた状態のまま故障した制御ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one control unit fails during control, the control unit switches to a state in which the other control unit controls the control target device. Therefore, the failed control unit must be removed and replaced while the control target device is operating. Can do. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

本発明によれば、マイクロプロセッサによって周期的に生成される監視用信号に加えて、シリアル通信線を介して制御対象装置へ出力されるシリアル制御信号を用いて制御ユニットの故障検出を行うことができる。したがって、シリアル制御信号が正常に出力されていないにもかかわらず、監視用信号では故障検出を行うことができない場合であっても、故障検出信号を生成することができ、制御ユニットの故障検出を確実に行うことができる。   According to the present invention, the failure of the control unit can be detected using the serial control signal output to the control target device via the serial communication line in addition to the monitoring signal periodically generated by the microprocessor. it can. Therefore, even if the serial control signal is not normally output, even if the failure cannot be detected with the monitoring signal, the failure detection signal can be generated and the control unit can detect the failure. It can be done reliably.

また、共通のシリアル通信線を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で制御ユニットの故障検出を行うことができる。一方の制御ユニットが制御中に故障した場合には、他方の制御ユニットで制御対象装置を制御する状態に切り替わるので、制御対象装置を動作させた状態のまま故障した制御ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   Further, by using a common serial communication line, it is not necessary to provide a complicated communication line, and the failure of the control unit can be detected with a simple configuration. If one control unit fails during control, the control unit switches to a state in which the other control unit controls the control target device. Therefore, the failed control unit must be removed and replaced while the control target device is operating. Can do. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

一方の制御ユニットの故障を検出するための故障検出回路が他方の制御ユニットに備えられた構成であれば、一方の制御ユニットに故障が生じた場合に、他方の制御ユニットにおいて確実に故障検出信号を出力し、その故障検出信号に基づいてシリアル制御信号を出力することができるので、制御対象装置へ確実にシリアル制御信号を出力することができる。   If a fault detection circuit for detecting a fault in one control unit is provided in the other control unit, the fault detection signal is surely detected in the other control unit when a fault occurs in one control unit. And a serial control signal can be output based on the failure detection signal, so that the serial control signal can be reliably output to the device to be controlled.

また、1対の制御ユニットの両方から制御対象装置へシリアル制御信号が出力されるのを防止できる。シリアル制御信号及び監視用信号は、ソフトウェアのフェーズの異なる場所から出力することができるので、それらのいずれかが検出されない場合に故障検出信号を出力することにより、故障をより確実に検出することができる。   Further, it is possible to prevent serial control signals from being output from both of the pair of control units to the control target device. Since the serial control signal and the monitoring signal can be output from different locations in the software phase, if any of them is not detected, it is possible to detect the failure more reliably by outputting the failure detection signal. it can.

実施の形態1.
図1は、本発明の実施の形態1による切替制御システムの一構成例を示したブロック図である。この切替制御システムは、1対の中央処理ユニット1,2と、2以上の被制御ユニット3とを備えている。各被制御ユニット3は、この切替制御システムにおける制御対象装置であり、1対の中央処理ユニット1,2は、制御対象装置の動作を制御するための制御ユニットである。1対の中央処理ユニット1,2は、それぞれ同一の構成を有する第1中央処理ユニット1及び第2中央処理ユニット2からなる。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration example of a switching control system according to Embodiment 1 of the present invention. This switching control system includes a pair of central processing units 1 and 2 and two or more controlled units 3. Each controlled unit 3 is a control target device in this switching control system, and the pair of central processing units 1 and 2 are control units for controlling the operation of the control target device. The pair of central processing units 1 and 2 includes a first central processing unit 1 and a second central processing unit 2 having the same configuration.

1対の中央処理ユニット1,2は、2本の専用ケーブル7を介して互いに接続されている。また、1対の中央処理ユニット1,2は、それぞれ共通のシリアル通信線としてのTX送信用通信線4、RX受信用通信線5及びリセット用通信線6を介して、各被制御ユニット3に対して着脱可能に接続されている。1対の中央処理ユニット1,2は、いわゆるRS−422規格又はRS−232C規格に準拠したシリアル通信により、各被制御ユニット3との間で通信可能である。   The pair of central processing units 1 and 2 are connected to each other via two dedicated cables 7. A pair of central processing units 1 and 2 is connected to each controlled unit 3 via a TX transmission communication line 4, an RX reception communication line 5 and a reset communication line 6 as a common serial communication line. In contrast, it is detachably connected. The pair of central processing units 1 and 2 can communicate with each controlled unit 3 by serial communication conforming to the so-called RS-422 standard or RS-232C standard.

1対の中央処理ユニット1,2のいずれか一方からTX送信用通信線4を介して各被制御ユニット3にシリアル制御信号TXを送信することにより、各被制御ユニット3の動作を制御することができる。また、シリアル制御信号TXを送信した中央処理ユニット1,2は、各被制御ユニット3からRX受信用通信線5を介して応答信号RXを受信することにより、各被制御ユニット3の動作状態を検出することができる。中央処理ユニット1,2から出力されるリセット信号(後述)は、リセット用通信線6を介して各被制御ユニット3へ出力される。   The operation of each controlled unit 3 is controlled by transmitting a serial control signal TX to each controlled unit 3 from one of the pair of central processing units 1 and 2 via the TX transmission communication line 4. Can do. The central processing units 1 and 2 that have transmitted the serial control signal TX receive the response signal RX from each controlled unit 3 via the RX receiving communication line 5, thereby changing the operation state of each controlled unit 3. Can be detected. A reset signal (described later) output from the central processing units 1 and 2 is output to each controlled unit 3 via the reset communication line 6.

この切替制御システムは、放送設備における音声出力の制御などに適用することができる。この場合、各被制御ユニット3は、スピーカなどの音声出力装置により構成することができる。1対の中央処理ユニット1,2のうち一方からシリアル制御信号TXを送信して各音声出力装置からの音声出力の制御を行い、制御中にその中央処理ユニットが故障するなどして各音声出力装置の制御を行うことができなくなった場合に、他方の中央処理ユニットからシリアル制御信号TXを送信するように切り替えることにより、各音声出力装置からの音声出力の制御を引き続き行うことができる。   This switching control system can be applied to audio output control in broadcasting facilities. In this case, each controlled unit 3 can be configured by a sound output device such as a speaker. A serial control signal TX is transmitted from one of the pair of central processing units 1 and 2 to control the audio output from each audio output device. When it becomes impossible to control the apparatus, it is possible to continue to control the audio output from each audio output apparatus by switching to transmit the serial control signal TX from the other central processing unit.

このように、1対の中央処理ユニット1,2を用いて冗長化された切替制御システムを構成することにより、一方の中央処理ユニットが故障した場合でも、他方の中央処理ユニットにより各被制御ユニット3の制御を行うことができるので、放送設備における音声出力などのサービスが停止してしまうのを防止できる。   Thus, by configuring a redundant switching control system using a pair of central processing units 1 and 2, even if one central processing unit fails, each controlled unit is controlled by the other central processing unit. Therefore, it is possible to prevent the service such as audio output in the broadcasting facility from being stopped.

図2は、図1の1対の中央処理ユニット1,2の一構成例を示した回路図である。1対の中央処理ユニット1,2は、それぞれ、CPU(Central Processing Unit)10、故障検出回路20、制御信号出力回路30、故障検出制御回路40及びリセット信号出力回路50を備えている。   FIG. 2 is a circuit diagram showing a configuration example of the pair of central processing units 1 and 2 in FIG. Each of the pair of central processing units 1 and 2 includes a CPU (Central Processing Unit) 10, a failure detection circuit 20, a control signal output circuit 30, a failure detection control circuit 40, and a reset signal output circuit 50.

CPU10は、リセット処理部11、監視用信号生成部12、割込処理部13、制御信号生成部14及び応答信号入力部15を備えたマイクロプロセッサである。リセット処理部11は、リセット信号の入力に基づいて、CPU10を再起動させる。監視用信号生成部12は、監視用信号として周期的にWD(Watch Dog)パルスを生成する。割込処理部13は、他方の中央処理ユニットからの故障検出信号(後述)の入力に基づいて、そのとき入力された故障検出信号に応じた処理を実行する。   The CPU 10 is a microprocessor including a reset processing unit 11, a monitoring signal generation unit 12, an interrupt processing unit 13, a control signal generation unit 14, and a response signal input unit 15. The reset processing unit 11 restarts the CPU 10 based on the input of the reset signal. The monitoring signal generator 12 periodically generates a WD (Watch Dog) pulse as the monitoring signal. Based on the input of a failure detection signal (described later) from the other central processing unit, the interrupt processing unit 13 executes processing corresponding to the failure detection signal input at that time.

制御信号生成部14は、シリアル制御信号TXを生成し、TX送信用通信線4を介して、生成したシリアル制御信号TXを各被制御ユニット3へ出力する。応答信号入力部15には、RX受信用通信線5を介して、各被制御ユニット3から応答信号RXが入力される。   The control signal generation unit 14 generates a serial control signal TX and outputs the generated serial control signal TX to each controlled unit 3 via the TX transmission communication line 4. The response signal RX is input from each controlled unit 3 to the response signal input unit 15 via the RX reception communication line 5.

故障検出回路20は、WDT(Watch Dog Timer)21、TX検出回路22及びNAND演算回路(否定論理演算回路)23からなる。この故障検出回路20は、シリアル制御信号TX及びWDパルスに基づいて中央処理ユニット1,2の故障を検出している。   The failure detection circuit 20 includes a WDT (Watch Dog Timer) 21, a TX detection circuit 22, and a NAND operation circuit (negative logic operation circuit) 23. The failure detection circuit 20 detects a failure in the central processing units 1 and 2 based on the serial control signal TX and the WD pulse.

WDT21は、監視用信号生成部12で生成されるWDパルスを監視し、WDパルスが検出されない場合に故障を検出する第1故障検出回路である。WDT21からの出力信号SYWDはリセット信号であり、その中央処理ユニットが正常に動作しているときには高レベル(以下、「Hレベル」と呼ぶ。)であるが、WDパルスが一定時間出力されない場合には低レベル(以下、「Lレベル」と呼ぶ。)となる。WDT21からの出力信号SYWDは、リセット処理部11及びリセット信号出力回路50に入力される。   The WDT 21 is a first failure detection circuit that monitors a WD pulse generated by the monitoring signal generator 12 and detects a failure when no WD pulse is detected. The output signal SYWD from the WDT 21 is a reset signal and is at a high level (hereinafter referred to as “H level”) when the central processing unit is operating normally, but when the WD pulse is not output for a certain period of time. Becomes a low level (hereinafter referred to as “L level”). An output signal SYWD from the WDT 21 is input to the reset processing unit 11 and the reset signal output circuit 50.

TX検出回路22は、制御信号生成部14から出力されるシリアル制御信号TXを監視し、シリアル制御信号TXが検出されない場合に故障を検出する第2故障検出回路である。TX検出回路22からの出力信号TXDは、その中央処理ユニットが正常に動作しているときにはHレベルであるが、シリアル制御信号TXが一定時間出力されない場合にはLレベルとなる。WDT21からの出力信号SYWD及びTX検出回路22からの出力信号TXDは、それぞれNAND演算回路23へ入力される。   The TX detection circuit 22 is a second failure detection circuit that monitors the serial control signal TX output from the control signal generation unit 14 and detects a failure when the serial control signal TX is not detected. The output signal TXD from the TX detection circuit 22 is at the H level when the central processing unit is operating normally, but is at the L level when the serial control signal TX is not output for a certain period of time. The output signal SYWD from the WDT 21 and the output signal TXD from the TX detection circuit 22 are input to the NAND operation circuit 23, respectively.

NAND演算回路23の出力側は、他方の中央処理ユニットに接続されている。したがって、中央処理ユニット1,2が正常に動作しているときには、WDT21及びTX検出回路22からNAND演算回路23に入力される信号はいずれもHレベルであり、NAND演算回路23においてLレベルの出力信号TXONが生成され、その出力信号TXONが他方の中央処理ユニットに入力される。   The output side of the NAND operation circuit 23 is connected to the other central processing unit. Therefore, when the central processing units 1 and 2 are operating normally, the signals input from the WDT 21 and the TX detection circuit 22 to the NAND operation circuit 23 are both at the H level, and the NAND operation circuit 23 outputs the L level. The signal TXON is generated and the output signal TXON is input to the other central processing unit.

一方、中央処理ユニット1,2が故障するなどして、WDT21からの出力信号SYWD及びTX検出回路22からの出力信号TXDのいずれかがLレベルになった場合には、NAND演算回路23においてHレベルの出力信号TXONが生成され、その出力信号TXONが他方の中央処理ユニットに入力される。NAND演算回路23からの出力信号TXONは、中央処理ユニット1,2が故障したことを表す故障検出信号である。   On the other hand, if either of the output signal SYWD from the WDT 21 or the output signal TXD from the TX detection circuit 22 becomes L level due to a failure of the central processing units 1 and 2, the NAND operation circuit 23 A level output signal TXON is generated and the output signal TXON is input to the other central processing unit. The output signal TXON from the NAND operation circuit 23 is a failure detection signal indicating that the central processing units 1 and 2 have failed.

制御信号出力回路30は、トライステートバッファにより構成され、制御信号生成部14で生成されるシリアル制御信号TXは、制御信号出力回路30を介してTX送信用通信線4へ出力されるようになっている。このトライステートバッファのイネーブルピンENには、他方の中央処理ユニットから故障検出信号が入力される。   The control signal output circuit 30 includes a tri-state buffer, and the serial control signal TX generated by the control signal generation unit 14 is output to the TX transmission communication line 4 via the control signal output circuit 30. ing. A failure detection signal is input from the other central processing unit to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、他方の中央処理ユニットのNAND演算回路23における出力信号TXONがLレベルであるときには、制御信号出力回路30がHi−z状態(ハイインピーダンス状態)となり、制御信号生成部14で生成されるシリアル制御信号TXはTX送信用通信線4へ出力されない。一方、他方の中央処理ユニットが故障するなどして、他方の中央処理ユニットのNAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、制御信号生成部14で生成されるシリアル制御信号TXは、制御信号出力回路30を介して、出力信号TXOUTとしてTX送信用通信線4へ出力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 of the other central processing unit is at L level, the control signal output circuit 30 is in the Hi-z state (high impedance state). The serial control signal TX generated by the control signal generator 14 is not output to the TX transmission communication line 4. On the other hand, when an H level output signal TXON (failure detection signal) is output from the NAND operation circuit 23 of the other central processing unit due to a failure of the other central processing unit, the control signal generation unit 14 generates the signal. The serial control signal TX is output to the TX transmission communication line 4 as the output signal TXOUT via the control signal output circuit 30.

故障検出制御回路40は、トライステートバッファにより構成され、制御信号生成部14で生成されるシリアル制御信号TXは、故障検出制御回路40を介してTX検出回路22へ入力されるようになっている。このトライステートバッファのイネーブルピンENには、他方の中央処理ユニットから故障検出信号が入力される。   The failure detection control circuit 40 includes a tristate buffer, and the serial control signal TX generated by the control signal generation unit 14 is input to the TX detection circuit 22 via the failure detection control circuit 40. . A failure detection signal is input from the other central processing unit to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、他方の中央処理ユニットのNAND演算回路23における出力信号TXONがLレベルであるときには、故障検出制御回路40がHi−z状態となり、制御信号生成部14で生成されるシリアル制御信号TXはTX検出回路22へ入力されない。一方、他方の中央処理ユニットが故障するなどして、他方の中央処理ユニットのNAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、制御信号生成部14で生成されるシリアル制御信号TXは、故障検出制御回路40を介して、入力信号TXINとしてTX検出回路22へ入力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 of the other central processing unit is at the L level, the failure detection control circuit 40 is in the Hi-z state, and the control signal generation unit The serial control signal TX generated at 14 is not input to the TX detection circuit 22. On the other hand, when an H level output signal TXON (failure detection signal) is output from the NAND operation circuit 23 of the other central processing unit due to a failure of the other central processing unit, the control signal generation unit 14 generates the signal. The serial control signal TX is input to the TX detection circuit 22 as the input signal TXIN via the failure detection control circuit 40.

リセット信号出力回路50は、トライステートバッファにより構成され、WDT21からの出力信号SYWDは、リセット信号出力回路50を介してリセット用通信線6へ出力されるようになっている。このトライステートバッファのイネーブルピンENには、他方の中央処理ユニットから故障検出信号が入力される。   The reset signal output circuit 50 is configured by a tristate buffer, and an output signal SYWD from the WDT 21 is output to the reset communication line 6 via the reset signal output circuit 50. A failure detection signal is input from the other central processing unit to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、他方の中央処理ユニットのNAND演算回路23における出力信号TXONがLレベルであるときには、リセット信号出力回路50がHi−z状態となり、WDT21からの出力信号SYWDはリセット用通信線6へ出力されない。一方、他方の中央処理ユニットが故障するなどして、他方の中央処理ユニットのNAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、WDT21からの出力信号SYWDは、リセット信号出力回路50を介してリセット用通信線6へ出力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 of the other central processing unit is at the L level, the reset signal output circuit 50 is in the Hi-z state and the output from the WDT 21 The signal SYWD is not output to the reset communication line 6. On the other hand, when an H level output signal TXON (failure detection signal) is output from the NAND operation circuit 23 of the other central processing unit due to a failure of the other central processing unit, the output signal SYWD from the WDT 21 is The signal is output to the reset communication line 6 via the reset signal output circuit 50.

図3は、図2の故障検出回路20における動作の具体例を示したタイミングチャートであり、(a)はWDT21における動作の一例、(b)はTX検出回路22における動作の一例を示している。   FIG. 3 is a timing chart showing a specific example of the operation in the failure detection circuit 20 of FIG. 2, wherein (a) shows an example of the operation in the WDT 21, and (b) shows an example of the operation in the TX detection circuit 22. .

WDT21においては、図3(a)に示すように、中央処理ユニット1,2の電源が投入されるとWDパルスが一定周期T1で出力され、このWDパルスを監視するWDT21からの出力信号SYWDがHレベルとなる。中央処理ユニット1,2が故障するなどして、WDパルスが一定時間T2(>T1)出力されない場合には、WDT21は故障を検出し、出力信号SYWDをLレベルにする。これにより、NAND演算回路23からの出力信号TXONがHレベルとなり、このHレベルの出力信号TXONが他方の中央処理ユニットへ出力される。   In the WDT 21, as shown in FIG. 3A, when the power of the central processing units 1 and 2 is turned on, a WD pulse is output at a constant period T1, and an output signal SYWD from the WDT 21 that monitors the WD pulse is output. Becomes H level. If the WD pulse is not output for a certain time T2 (> T1) due to the failure of the central processing units 1 and 2, the WDT 21 detects the failure and sets the output signal SYWD to the L level. Thereby, the output signal TXON from the NAND operation circuit 23 becomes H level, and this H level output signal TXON is output to the other central processing unit.

WDT21は、出力信号SYWDをLレベルにしてから一定時間T3が経過すると、出力信号SYWDを再びHレベルにする。これにより、リセット処理部11へのリセット信号の入力が終了し、CPU10が再起動される。CPU10が再起動されると、CPU10による処理が初期化されて正常な動作が再開される場合があり、この場合には、図3(a)に示すようにWDパルスが再び一定周期T1で出力される。   The WDT 21 sets the output signal SYWD to the H level again after a certain time T3 has elapsed since the output signal SYWD was set to the L level. Thereby, the input of the reset signal to the reset processing unit 11 is completed, and the CPU 10 is restarted. When the CPU 10 is restarted, the processing by the CPU 10 may be initialized and normal operation may be resumed. In this case, as shown in FIG. 3A, the WD pulse is output again at a constant cycle T1. Is done.

TX検出回路22においては、図3(b)に示すように、中央処理ユニット1,2の電源が投入されるとシリアル制御信号TXが出力され、このシリアル制御信号TXが、故障検出制御回路40を介して、入力信号TXINとしてTX検出回路22へ入力される。このとき、故障検出制御回路40からの入力信号TXINを監視するTX検出回路22からの出力信号TXDがHレベルとなる。中央処理ユニット1,2が正常であれば、シリアル制御信号TXは、少なくとも一定時間T4(<T1)以内に出力される。   As shown in FIG. 3B, the TX detection circuit 22 outputs a serial control signal TX when the central processing units 1 and 2 are turned on. This serial control signal TX is output from the failure detection control circuit 40. Then, the input signal TXIN is input to the TX detection circuit 22. At this time, the output signal TXD from the TX detection circuit 22 that monitors the input signal TXIN from the failure detection control circuit 40 becomes H level. If the central processing units 1 and 2 are normal, the serial control signal TX is output at least within a predetermined time T4 (<T1).

中央処理ユニット1,2が故障するなどして、シリアル制御信号TXが一定時間T4以上出力されない場合には、TX検出回路22は故障を検出し、出力信号TXDをLレベルにする。これにより、NAND演算回路23からの出力信号TXONがHレベルとなり、このHレベルの出力信号TXONが他方の中央処理ユニットへ出力される。   If the serial processing signal TX is not output for a certain time T4 or more due to the failure of the central processing units 1 and 2, the TX detection circuit 22 detects the failure and sets the output signal TXD to the L level. Thereby, the output signal TXON from the NAND operation circuit 23 becomes H level, and this H level output signal TXON is output to the other central processing unit.

後で具体的に説明するが、Hレベルの出力信号TXONが入力された他方の中央処理ユニットにおいては、TX検出回路22からの出力信号TXDがHレベルとなり、NAND演算回路23からLレベルの出力信号TXONが出力される。他方の中央処理ユニットからLレベルの出力信号TXONが入力されると、故障検出制御回路40がHi−z状態となってTX検出回路22へ入力信号TXINが入力されなくなり、TX検出回路22からの出力信号がLレベルのまま維持される。   As will be described in detail later, in the other central processing unit to which the H level output signal TXON is input, the output signal TXD from the TX detection circuit 22 becomes H level, and the NAND operation circuit 23 outputs L level. A signal TXON is output. When the L level output signal TXON is input from the other central processing unit, the failure detection control circuit 40 enters the Hi-z state, and the input signal TXIN is not input to the TX detection circuit 22. The output signal is maintained at the L level.

したがって、CPU10が再起動された場合などには、図3(b)に示すようにシリアル制御信号TXが再び出力される場合があるが、この場合でも、TX検出回路22への入力信号TXIN及びTX検出回路22からの出力信号TXDはLレベルのまま維持され、NAND演算回路23からの出力信号TXONが確実にHレベルで維持されることとなる。   Therefore, when the CPU 10 is restarted, the serial control signal TX may be output again as shown in FIG. 3B. Even in this case, the input signal TXIN to the TX detection circuit 22 and The output signal TXD from the TX detection circuit 22 is maintained at the L level, and the output signal TXON from the NAND operation circuit 23 is reliably maintained at the H level.

図4は、本実施の形態の切替制御システムにおける動作の具体例を示したタイミングチャートであり、WDT21において故障を検出した場合の一例を示している。   FIG. 4 is a timing chart showing a specific example of the operation in the switching control system of the present embodiment, and shows an example when a failure is detected in the WDT 21.

以下の説明では、第1中央処理ユニット1において、制御信号生成部14から出力されるシリアル制御信号を1TX、制御信号出力回路30からの出力信号を1TXOUT、TX検出回路22への入力信号を1TXIN、TX検出回路22からの出力信号を1TXD、WDT21からの出力信号を1SYWD、NAND演算回路23からの出力信号を2TXONとし、第2中央処理ユニット2において、制御信号生成部14から出力されるシリアル制御信号を2TX、制御信号出力回路30からの出力信号を2TXOUT、TX検出回路22への入力信号を2TXIN、TX検出回路22からの出力信号を2TXD、WDT21からの出力信号を2SYWD、NAND演算回路23からの出力信号を1TXONとして説明することとする。   In the following description, in the first central processing unit 1, the serial control signal output from the control signal generator 14 is 1TX, the output signal from the control signal output circuit 30 is 1TXOUT, and the input signal to the TX detection circuit 22 is 1TXIN. The output signal from the TX detection circuit 22 is 1TXD, the output signal from the WDT 21 is 1SYWD, the output signal from the NAND operation circuit 23 is 2TXON, and the second central processing unit 2 outputs the serial signal output from the control signal generation unit 14 Control signal is 2TX, output signal from control signal output circuit 30 is 2TXOUT, input signal to TX detection circuit 22 is 2TXIN, output signal from TX detection circuit 22 is 2TXD, output signal from WDT21 is 2SYWD, NAND operation circuit The output signal from 23 will be described as 1TXON.

図2及び図4を参照して、WDT21において故障を検出した場合の動作の一例について説明する。第1中央処理ユニット1のWDT21において故障が検出され、このWDT21からの出力信号1SYWDがLレベルになると(タイミングTM1)、NAND演算回路23からの出力信号2TXONがHレベルになり、この出力信号2TXONが第2中央処理ユニット2の制御信号出力回路30、故障検出制御回路40及びリセット信号出力回路50に入力される。   With reference to FIG.2 and FIG.4, an example of operation | movement at the time of detecting a failure in WDT21 is demonstrated. When a failure is detected in the WDT 21 of the first central processing unit 1 and the output signal 1SYWD from the WDT 21 becomes L level (timing TM1), the output signal 2TXON from the NAND operation circuit 23 becomes H level, and this output signal 2TXON Is input to the control signal output circuit 30, the failure detection control circuit 40, and the reset signal output circuit 50 of the second central processing unit 2.

これにより、第2中央処理ユニット2の制御信号生成部14から出力されるシリアル制御信号2TXが、故障検出制御回路40を介して、入力信号2TXINとしてTX検出回路22へ入力され、TX検出回路22からの出力信号2TXDがHレベルになるとともに、シリアル制御信号2TXが、制御信号出力回路30を介して、出力信号2TXOUTとしてTX送信用通信線4へ出力される(タイミングTM2)。このとき、第2中央処理ユニット2においてWDT21からの出力信号2SYWDがHレベルであれば、NAND演算回路23からの出力信号1TXONがLレベルになる。   As a result, the serial control signal 2TX output from the control signal generator 14 of the second central processing unit 2 is input to the TX detection circuit 22 as the input signal 2TXIN via the failure detection control circuit 40, and the TX detection circuit 22 And the serial control signal 2TX is output to the TX transmission communication line 4 as the output signal 2TXOUT via the control signal output circuit 30 (timing TM2). At this time, if the output signal 2SYWD from the WDT 21 in the second central processing unit 2 is at the H level, the output signal 1TXON from the NAND operation circuit 23 is at the L level.

第2中央処理ユニット2のNAND演算回路23から第1中央処理ユニット1へ出力される出力信号1TXONがLレベルになると、第1中央処理ユニット1において制御信号生成部14から出力されるシリアル制御信号1TXが、故障検出制御回路40からTX検出回路22へ入力されなくなり、TX検出回路22からの出力信号1TXDがLレベルになるとともに、シリアル制御信号1TXが、制御信号出力回路30からTX送信用通信線4へ出力されなくなる(タイミングTM3)。これにより、制御信号生成部14におけるシリアル制御信号1TXの生成の有無にかかわらず、NAND演算回路23からの出力信号2TXONがHレベルのまま維持されるとともに、制御信号出力回路30からの出力信号1TXOUTがLレベルになる。   When the output signal 1TXON output from the NAND operation circuit 23 of the second central processing unit 2 to the first central processing unit 1 becomes L level, the serial control signal output from the control signal generation unit 14 in the first central processing unit 1 1TX is not input from the failure detection control circuit 40 to the TX detection circuit 22, the output signal 1TXD from the TX detection circuit 22 becomes L level, and the serial control signal 1TX is transmitted from the control signal output circuit 30 to the TX transmission communication. No output to line 4 (timing TM3). Thus, the output signal 2TXON from the NAND operation circuit 23 is maintained at the H level regardless of whether or not the serial control signal 1TX is generated in the control signal generation unit 14, and the output signal 1TXOUT from the control signal output circuit 30 is maintained. Becomes L level.

この例における切替制御システムでは、タイミングTM1までは第1中央処理ユニット1が被制御ユニット3の制御権限を有しており、タイミングTM3以降は第2中央処理ユニット2が被制御ユニット3の制御権限を有している。タイミングTM1〜TM3の期間は、被制御ユニット3に対する制御権限が第1中央処理ユニット1から第2中央処理ユニット2に遷移する遷移期間である。   In the switching control system in this example, the first central processing unit 1 has control authority of the controlled unit 3 until timing TM1, and the second central processing unit 2 has control authority of the controlled unit 3 after timing TM3. have. The period of timings TM1 to TM3 is a transition period in which the control authority for the controlled unit 3 transitions from the first central processing unit 1 to the second central processing unit 2.

図5は、本実施の形態の切替制御システムにおける動作の具体例を示したタイミングチャートであり、TX検出回路22において故障を検出した場合の一例を示している。   FIG. 5 is a timing chart showing a specific example of the operation in the switching control system of the present embodiment, and shows an example when a failure is detected in the TX detection circuit 22.

図2及び図5を参照して、TX検出回路22において故障を検出した場合の動作の一例について説明する。第1中央処理ユニット1のTX検出回路22において故障が検出され、このTX検出回路22からの出力信号1TXDがLレベルになると(タイミングTM4)、制御信号出力回路30からの出力信号1TXOUTがLレベルになるとともに、NAND演算回路23からの出力信号2TXONがHレベルになり、この出力信号2TXONが第2中央処理ユニット2の制御信号出力回路30、故障検出制御回路40及びリセット信号出力回路50に入力される。   With reference to FIG. 2 and FIG. 5, an example of operation when a failure is detected in the TX detection circuit 22 will be described. When a failure is detected in the TX detection circuit 22 of the first central processing unit 1 and the output signal 1TXD from the TX detection circuit 22 becomes L level (timing TM4), the output signal 1TXOUT from the control signal output circuit 30 becomes L level. The output signal 2TXON from the NAND operation circuit 23 becomes H level, and this output signal 2TXON is input to the control signal output circuit 30, the failure detection control circuit 40, and the reset signal output circuit 50 of the second central processing unit 2. Is done.

これにより、第2中央処理ユニット2の制御信号生成部14から出力されるシリアル制御信号2TXが、故障検出制御回路40を介して、入力信号2TXINとしてTX検出回路22へ入力され、TX検出回路22からの出力信号2TXDがHレベルになるとともに、シリアル制御信号2TXが、制御信号出力回路30を介して、出力信号2TXOUTとしてTX送信用通信線4へ出力される(タイミングTM5)。このとき、第2中央処理ユニット2においてWDT21からの出力信号2SYWDがHレベルであれば、NAND演算回路23からの出力信号1TXONがLレベルになる。   As a result, the serial control signal 2TX output from the control signal generator 14 of the second central processing unit 2 is input to the TX detection circuit 22 as the input signal 2TXIN via the failure detection control circuit 40, and the TX detection circuit 22 And the serial control signal 2TX is output to the TX transmission communication line 4 as the output signal 2TXOUT via the control signal output circuit 30 (timing TM5). At this time, if the output signal 2SYWD from the WDT 21 in the second central processing unit 2 is at the H level, the output signal 1TXON from the NAND operation circuit 23 is at the L level.

第2中央処理ユニット2のNAND演算回路23から第1中央処理ユニット1へ出力される出力信号1TXONがLレベルになると、第1中央処理ユニット1において制御信号生成部14から出力されるシリアル制御信号1TXが、故障検出制御回路40からTX検出回路22へ入力できない状態になるので、CPU10の再起動などによりシリアル制御信号1TXが再び生成された場合であっても、TX検出回路22からの出力信号1TXDがLレベルのまま維持される。このとき、制御信号出力回路30においても、シリアル制御信号1TXをTX送信用通信線4へ出力できない状態になり、CPU10の再起動などによりシリアル制御信号1TXが再び生成された場合であっても、制御信号出力回路30からの出力信号1TXOUTがLレベルのまま維持される。   When the output signal 1TXON output from the NAND operation circuit 23 of the second central processing unit 2 to the first central processing unit 1 becomes L level, the serial control signal output from the control signal generation unit 14 in the first central processing unit 1 Since 1TX cannot be input from the failure detection control circuit 40 to the TX detection circuit 22, the output signal from the TX detection circuit 22 is generated even when the serial control signal 1TX is generated again by restarting the CPU 10 or the like. 1TXD is maintained at the L level. At this time, even in the control signal output circuit 30, even when the serial control signal 1TX cannot be output to the TX transmission communication line 4 and the serial control signal 1TX is generated again by restarting the CPU 10 or the like, The output signal 1TXOUT from the control signal output circuit 30 is maintained at the L level.

この例における切替制御システムでは、タイミングTM4までは第1中央処理ユニット1が被制御ユニット3の制御権限を有しており、タイミングTM5以降は第2中央処理ユニット2が被制御ユニット3の制御権限を有している。タイミングTM4〜TM5の期間は、被制御ユニット3に対する制御権限が第1中央処理ユニット1から第2中央処理ユニット2に遷移する遷移期間である。   In the switching control system in this example, the first central processing unit 1 has control authority of the controlled unit 3 until timing TM4, and the second central processing unit 2 has control authority of the controlled unit 3 after timing TM5. have. The period of timings TM4 to TM5 is a transition period in which the control authority for the controlled unit 3 transitions from the first central processing unit 1 to the second central processing unit 2.

本実施の形態では、中央処理ユニット1,2の故障を当該中央処理ユニットのマイクロプロセッサが生成するシリアル制御信号TX及びWDパルスに基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成されるWDパルスに加えて、TX送信用通信線4を介して被制御ユニット3へ出力されるシリアル制御信号TXを用いて中央処理ユニット1,2の故障検出を行うことができる。したがって、シリアル制御信号TXが正常に出力されていないにもかかわらず、WDパルスでは故障検出を行うことができない場合であっても、故障検出信号TXONを生成することができ、中央処理ユニット1,2の故障検出を確実に行うことができる。   In the present embodiment, the failure of the central processing units 1 and 2 can be detected based on the serial control signal TX and the WD pulse generated by the microprocessor of the central processing unit. In other words, in addition to the WD pulse periodically generated by the microprocessor, the failure detection of the central processing units 1 and 2 is performed using the serial control signal TX output to the controlled unit 3 via the TX transmission communication line 4. It can be performed. Therefore, even when the serial control signal TX is not normally output, even when the failure detection cannot be performed with the WD pulse, the failure detection signal TXON can be generated. 2 failure detection can be performed reliably.

また、1対の中央処理ユニット1,2が共通のTX送信用通信線4を介して被制御ユニット3に接続され、各中央処理ユニット1,2からのシリアル制御信号TXの出力制御が、他方の中央処理ユニットからの故障検出信号TXONに基づいて行われる。このように、共通のTX送信用通信線4を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で中央処理ユニット1,2の故障検出を行うことができる。なお、同じ通信速度であれば、パラレル通信よりもシリアル通信の方が信号の変化が早いので、シリアル制御信号TXを用いることにより、故障を早く検出することができる。   A pair of central processing units 1 and 2 are connected to the controlled unit 3 via a common TX transmission communication line 4, and the output control of the serial control signal TX from each central processing unit 1 and 2 is performed on the other side. This is performed based on the failure detection signal TXON from the central processing unit. Thus, by using the common TX transmission communication line 4, it is not necessary to provide a complicated communication line, and the failure detection of the central processing units 1 and 2 can be performed with a simple configuration. If the communication speed is the same, the signal change is faster in the serial communication than in the parallel communication. Therefore, the failure can be detected earlier by using the serial control signal TX.

一方の中央処理ユニットが制御中に故障した場合には、他方の中央処理ユニットで被制御ユニット3を制御する状態に切り替わるので、被制御ユニット3を動作させた状態のまま故障した中央処理ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one central processing unit fails during control, the other central processing unit switches to a state in which the controlled unit 3 is controlled. Can be removed and replaced. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

また、他方の中央処理ユニットからの故障検出信号TXONに基づいて、一方の中央処理ユニットにおいてシリアル制御信号TXを故障検出回路20へ入力することにより、その故障検出回路20からの故障検出信号TXONの出力を制御することができる。したがって、他方の中央処理ユニットにおいて故障検出信号TXONが出力され、その故障検出信号TXONに基づいて一方の中央処理ユニットにおいてシリアル制御信号TXが出力されている状態で、その一方の中央処理ユニットからの故障検出信号TXONの出力を停止させることにより、他方の中央処理ユニットからシリアル制御信号TXが出力されない状態にすることができる。これにより、1対の中央処理ユニット1,2の両方から被制御ユニット3へシリアル制御信号TXが出力されるのを防止できる。   Further, based on the failure detection signal TXON from the other central processing unit, the serial control signal TX is input to the failure detection circuit 20 in one central processing unit, so that the failure detection signal TXON from the failure detection circuit 20 is changed. The output can be controlled. Therefore, the failure detection signal TXON is output in the other central processing unit, and the serial control signal TX is output in one central processing unit based on the failure detection signal TXON. By stopping the output of the failure detection signal TXON, it is possible to prevent the serial control signal TX from being output from the other central processing unit. Thereby, it is possible to prevent the serial control signal TX from being output to the controlled unit 3 from both the pair of central processing units 1 and 2.

また、シリアル制御信号TX及びWDパルスのいずれかが検出されない場合に故障検出信号TXONが生成され、その故障検出信号TXONに基づいてシリアル制御信号TXがTX送信用通信線4へ出力される。シリアル制御信号TX及びWDパルスは、ソフトウェアのフェーズの異なる場所から出力することができるので、それらのいずれかが検出されない場合に故障検出信号TXONを出力することにより、故障をより確実に検出することができる。   Further, when either the serial control signal TX or the WD pulse is not detected, a failure detection signal TXON is generated, and the serial control signal TX is output to the TX transmission communication line 4 based on the failure detection signal TXON. Since the serial control signals TX and WD pulses can be output from different locations in the software phase, if any of them is not detected, the failure detection signal TXON is output to detect the failure more reliably. Can do.

実施の形態2.
実施の形態1では、1対の中央処理ユニット1,2のうちのいずれかにおいて生成されるシリアル制御信号TX及びWDパルスに基づいて、その中央処理ユニットに備えられた故障検出回路20により故障を検出するような構成について説明したが、実施の形態2では、いずれかの中央処理ユニットにおいて生成されるシリアル制御信号TX及びWDパルスに基づいて、他方の中央処理ユニットに備えられた故障検出回路20により故障を検出するようになっている点が異なっている。
Embodiment 2. FIG.
In the first embodiment, a failure is detected by the failure detection circuit 20 provided in the central processing unit based on the serial control signal TX and the WD pulse generated in one of the pair of central processing units 1 and 2. Although the configuration to detect has been described, in the second embodiment, the failure detection circuit 20 provided in the other central processing unit based on the serial control signal TX and the WD pulse generated in one of the central processing units. The difference is that the failure is detected by the above.

図6は、本発明の実施の形態2による1対の中央処理ユニット1,2の一構成例を示した回路図である。1対の中央処理ユニット1,2は、それぞれ、CPU10、故障検出回路20、制御信号出力回路30、故障検出制御回路40及びリセット信号出力回路50を備えている。CPU10は、実施の形態1と同様の構成を有するマイクロプロセッサであり、リセット処理部11、監視用信号生成部12、割込処理部13、制御信号生成部14及び応答信号入力部15を備えている。   FIG. 6 is a circuit diagram showing a configuration example of a pair of central processing units 1 and 2 according to the second embodiment of the present invention. Each of the pair of central processing units 1 and 2 includes a CPU 10, a failure detection circuit 20, a control signal output circuit 30, a failure detection control circuit 40, and a reset signal output circuit 50. The CPU 10 is a microprocessor having the same configuration as that of the first embodiment, and includes a reset processing unit 11, a monitoring signal generation unit 12, an interrupt processing unit 13, a control signal generation unit 14, and a response signal input unit 15. Yes.

1対の中央処理ユニット1,2は、4本の専用ケーブル7を介して互いに接続されている。また、1対の中央処理ユニット1,2は、TX送信用通信線4、RX受信用通信線5及びリセット用通信線6を介して、各被制御ユニット3に対して着脱可能に接続されている。   The pair of central processing units 1 and 2 are connected to each other via four dedicated cables 7. The pair of central processing units 1 and 2 are detachably connected to each controlled unit 3 via the TX transmission communication line 4, the RX reception communication line 5 and the reset communication line 6. Yes.

故障検出回路20は、WDT21、TX検出回路22及びNAND演算回路23からなる。この故障検出回路20は、シリアル制御信号TX及びWDパルスに基づいて中央処理ユニット1,2の故障を検出している。   The failure detection circuit 20 includes a WDT 21, a TX detection circuit 22, and a NAND operation circuit 23. The failure detection circuit 20 detects a failure in the central processing units 1 and 2 based on the serial control signal TX and the WD pulse.

WDT21は、監視用信号生成部12で生成されるWDパルスを監視し、WDパルスが検出されない場合に故障を検出する第1故障検出回路である。WDT21からの出力信号SYWDはリセット信号であり、その中央処理ユニットが正常に動作しているときにはHレベルであるが、WDパルスが一定時間出力されない場合にはLレベルとなる。WDT21からの出力信号SYWDは、リセット処理部11及びリセット信号出力回路50に入力される。   The WDT 21 is a first failure detection circuit that monitors a WD pulse generated by the monitoring signal generator 12 and detects a failure when no WD pulse is detected. The output signal SYWD from the WDT 21 is a reset signal and is at the H level when the central processing unit is operating normally, but is at the L level when the WD pulse is not output for a certain time. An output signal SYWD from the WDT 21 is input to the reset processing unit 11 and the reset signal output circuit 50.

TX検出回路22は、他方の中央処理ユニットの制御信号生成部14から入力されるシリアル制御信号TXを監視し、シリアル制御信号TXが検出されない場合に故障を検出する第2故障検出回路である。TX検出回路22からの出力信号TXDは、他方の中央処理ユニットが正常に動作しているときにはHレベルであるが、他方の中央処理ユニットからシリアル制御信号TXが一定時間出力されない場合にはLレベルとなる。TX検出回路22からの出力信号TXD及び他方の中央処理ユニットのWDT21からの出力信号SYWDは、それぞれNAND演算回路23へ入力される。   The TX detection circuit 22 is a second failure detection circuit that monitors the serial control signal TX input from the control signal generation unit 14 of the other central processing unit and detects a failure when the serial control signal TX is not detected. The output signal TXD from the TX detection circuit 22 is at the H level when the other central processing unit is operating normally, but is at the L level when the serial control signal TX is not output from the other central processing unit for a certain period of time. It becomes. The output signal TXD from the TX detection circuit 22 and the output signal SYWD from the WDT 21 of the other central processing unit are input to the NAND operation circuit 23, respectively.

他方の中央処理ユニットが正常に動作しているときには、TX検出回路22及び他方の中央処理ユニットのWDT21からNAND演算回路23に入力される信号はいずれもHレベルであり、NAND演算回路23においてLレベルの出力信号TXONが生成される。一方、他方の中央処理ユニットが故障するなどして、TX検出回路22からの出力信号TXD及び他方の中央処理ユニットのWDT21からの出力信号SYWDのいずれかがLレベルになった場合には、NAND演算回路23においてHレベルの出力信号TXONが生成される。NAND演算回路23からの出力信号TXONは、中央処理ユニット1,2が故障したことを表す故障検出信号である。   When the other central processing unit is operating normally, the signals input from the TX detection circuit 22 and the WDT 21 of the other central processing unit to the NAND operation circuit 23 are both at the H level. A level output signal TXON is generated. On the other hand, if one of the output signal TXD from the TX detection circuit 22 and the output signal SYWD from the WDT 21 of the other central processing unit becomes L level due to failure of the other central processing unit, NAND The arithmetic circuit 23 generates an H level output signal TXON. The output signal TXON from the NAND operation circuit 23 is a failure detection signal indicating that the central processing units 1 and 2 have failed.

制御信号出力回路30は、トライステートバッファにより構成され、制御信号生成部14で生成されるシリアル制御信号TXは、制御信号出力回路30を介してTX送信用通信線4へ出力されるようになっている。このトライステートバッファのイネーブルピンENには、故障検出回路20から故障検出信号が入力される。   The control signal output circuit 30 includes a tri-state buffer, and the serial control signal TX generated by the control signal generation unit 14 is output to the TX transmission communication line 4 via the control signal output circuit 30. ing. A failure detection signal is input from the failure detection circuit 20 to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、NAND演算回路23における出力信号TXONがLレベルであるときには、制御信号出力回路30がHi−z状態となり、制御信号生成部14で生成されるシリアル制御信号TXはTX送信用通信線4へ出力されない。一方、他方の中央処理ユニットが故障するなどして、NAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、制御信号生成部14で生成されるシリアル制御信号TXは、制御信号出力回路30を介して、出力信号TXOUTとしてTX送信用通信線4へ出力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 is at the L level, the control signal output circuit 30 is in the Hi-z state, and the serial signal generated by the control signal generator 14 is generated. The control signal TX is not output to the TX transmission communication line 4. On the other hand, when the other central processing unit breaks down and the NAND operation circuit 23 outputs an H level output signal TXON (failure detection signal), the serial control signal TX generated by the control signal generator 14 is The output signal TXOUT is output to the TX transmission communication line 4 via the control signal output circuit 30.

故障検出制御回路40は、トライステートバッファにより構成され、制御信号生成部14で生成されるシリアル制御信号TXは、故障検出制御回路40を介して他方の中央処理ユニットのTX検出回路22へ入力されるようになっている。このトライステートバッファのイネーブルピンENには、故障検出回路20から故障検出信号が入力される。   The failure detection control circuit 40 is constituted by a tristate buffer, and the serial control signal TX generated by the control signal generation unit 14 is input to the TX detection circuit 22 of the other central processing unit via the failure detection control circuit 40. It has become so. A failure detection signal is input from the failure detection circuit 20 to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、NAND演算回路23における出力信号TXONがLレベルであるときには、故障検出制御回路40がHi−z状態となり、制御信号生成部14で生成されるシリアル制御信号TXは他方の中央処理ユニットへ出力されない。一方、他方の中央処理ユニットが故障するなどして、NAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、制御信号生成部14で生成されるシリアル制御信号TXは、故障検出制御回路40を介して、入力信号TXINとして他方の中央処理ユニットのTX検出回路22へ入力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 is at the L level, the failure detection control circuit 40 enters the Hi-z state, and the serial signal generated by the control signal generation unit 14 The control signal TX is not output to the other central processing unit. On the other hand, when the other central processing unit breaks down and the NAND operation circuit 23 outputs an H level output signal TXON (failure detection signal), the serial control signal TX generated by the control signal generator 14 is The input signal TXIN is input to the TX detection circuit 22 of the other central processing unit via the failure detection control circuit 40.

リセット信号出力回路50は、トライステートバッファにより構成され、WDT21からの出力信号SYWDは、リセット信号出力回路50を介してリセット用通信線6へ出力されるようになっている。このトライステートバッファのイネーブルピンENには、故障検出回路20から故障検出信号が入力される。   The reset signal output circuit 50 is configured by a tristate buffer, and an output signal SYWD from the WDT 21 is output to the reset communication line 6 via the reset signal output circuit 50. A failure detection signal is input from the failure detection circuit 20 to the enable pin EN of the tristate buffer.

他方の中央処理ユニットが正常に動作しており、NAND演算回路23における出力信号TXONがLレベルであるときには、リセット信号出力回路50がHi−z状態となり、WDT21からの出力信号SYWDはリセット用通信線6へ出力されない。一方、他方の中央処理ユニットが故障するなどして、NAND演算回路23からHレベルの出力信号TXON(故障検出信号)が出力されたときには、WDT21からの出力信号SYWDは、リセット信号出力回路50を介してリセット用通信線6へ出力される。   When the other central processing unit is operating normally and the output signal TXON in the NAND operation circuit 23 is at L level, the reset signal output circuit 50 is in the Hi-z state, and the output signal SYWD from the WDT 21 is the reset communication. Not output to line 6. On the other hand, when the output signal TXON (failure detection signal) of the H level is output from the NAND operation circuit 23 due to failure of the other central processing unit, the output signal SYWD from the WDT 21 causes the reset signal output circuit 50 to To the reset communication line 6.

本実施の形態では、中央処理ユニット1,2の故障を他方の中央処理ユニットのマイクロプロセッサが生成するシリアル制御信号TX及びWDパルスに基づいて検出することができる。すなわち、マイクロプロセッサによって周期的に生成されるWDパルスに加えて、TX送信用通信線4を介して被制御ユニット3へ出力されるシリアル制御信号TXを用いて中央処理ユニット1,2の故障検出を行うことができる。したがって、シリアル制御信号TXが正常に出力されていないにもかかわらず、WDパルスでは故障検出を行うことができない場合であっても、故障検出信号TXONを生成することができ、中央処理ユニット1,2の故障検出を確実に行うことができる。   In the present embodiment, the failure of the central processing units 1 and 2 can be detected based on the serial control signal TX and the WD pulse generated by the microprocessor of the other central processing unit. In other words, in addition to the WD pulse periodically generated by the microprocessor, the failure detection of the central processing units 1 and 2 is performed using the serial control signal TX output to the controlled unit 3 via the TX transmission communication line 4. It can be performed. Therefore, even when the serial control signal TX is not normally output, even when the failure detection cannot be performed with the WD pulse, the failure detection signal TXON can be generated. 2 failure detection can be performed reliably.

また、1対の中央処理ユニット1,2が共通のTX送信用通信線4を介して被制御ユニット3に接続され、各中央処理ユニット1,2からのシリアル制御信号TXの出力制御が、当該中央処理ユニットからの故障検出信号TXONに基づいて行われる。このように、共通のTX送信用通信線4を使用することにより、複雑な通信線を設ける必要がなく、簡便な構成で中央処理ユニット1,2の故障検出を行うことができる。なお、同じ通信速度であれば、パラレル通信よりもシリアル通信の方が信号の変化が早いので、シリアル制御信号TXを用いることにより、故障を早く検出することができる。   In addition, a pair of central processing units 1 and 2 are connected to the controlled unit 3 via a common TX transmission communication line 4, and output control of the serial control signal TX from each central processing unit 1 and 2 This is performed based on a failure detection signal TXON from the central processing unit. Thus, by using the common TX transmission communication line 4, it is not necessary to provide a complicated communication line, and the failure detection of the central processing units 1 and 2 can be performed with a simple configuration. If the communication speed is the same, the signal change is faster in the serial communication than in the parallel communication. Therefore, the failure can be detected earlier by using the serial control signal TX.

また、一方の中央処理ユニットに故障が生じて、シリアル制御信号TX又はWDパルスの出力に異常が生じた場合でも、故障検出回路20が他方の中央処理ユニットに備えられているので、故障検出回路20にも故障が生じることにより故障検出信号TXONが出力されないといった事態を防止できる。したがって、一方の中央処理ユニットに故障が生じた場合に、他方の中央処理ユニットにおいて確実に故障検出信号TXONを出力し、その故障検出信号TXONに基づいてシリアル制御信号TXを出力することができるので、被制御ユニット3へ確実にシリアル制御信号TXを出力することができる。   Even when a failure occurs in one central processing unit and an abnormality occurs in the output of the serial control signal TX or WD pulse, the failure detection circuit 20 is provided in the other central processing unit. Therefore, it is possible to prevent a failure detection signal TXON from being output due to a failure occurring in 20. Therefore, when a failure occurs in one central processing unit, the other central processing unit can reliably output the failure detection signal TXON and output the serial control signal TX based on the failure detection signal TXON. The serial control signal TX can be reliably output to the controlled unit 3.

一方の中央処理ユニットが制御中に故障した場合には、他方の中央処理ユニットで被制御ユニット3を制御する状態に切り替わるので、被制御ユニット3を動作させた状態のまま故障した中央処理ユニットを取り外して交換することができる。また、従来のように切替ユニットを別途設ける必要がないので、システムを簡略化することができる。   If one central processing unit fails during control, the other central processing unit switches to a state in which the controlled unit 3 is controlled. Can be removed and replaced. Further, since there is no need to provide a separate switching unit as in the prior art, the system can be simplified.

また、故障検出回路20で生成された故障検出信号TXONに基づいて、シリアル制御信号TXを他方の中央処理ユニットの故障検出回路20へ入力することにより、他方の中央処理ユニットにおける故障検出回路20からの故障検出信号TXONの出力を制御することができる。したがって、一方の中央処理ユニットにおいて故障検出信号TXONが出力され、その故障検出信号TXONに基づいて一方の中央処理ユニットにおいてシリアル制御信号TXが出力されている状態で、他方の中央処理ユニットからの故障検出信号TXONの出力を停止させることにより、その他方の中央処理ユニットからシリアル制御信号TXが出力されない状態にすることができる。これにより、1対の中央処理ユニット1,2の両方から被制御ユニット3へシリアル制御信号TXが出力されるのを防止できる。   Further, by inputting the serial control signal TX to the failure detection circuit 20 of the other central processing unit based on the failure detection signal TXON generated by the failure detection circuit 20, the failure detection circuit 20 in the other central processing unit The output of the failure detection signal TXON can be controlled. Therefore, a failure detection signal TXON is output from one central processing unit, and a failure is detected from the other central processing unit in a state where the serial control signal TX is output from one central processing unit based on the failure detection signal TXON. By stopping the output of the detection signal TXON, it is possible to prevent the serial control signal TX from being output from the other central processing unit. Thereby, it is possible to prevent the serial control signal TX from being output to the controlled unit 3 from both the pair of central processing units 1 and 2.

また、シリアル制御信号TX及びWDパルスのいずれかが検出されない場合に故障検出信号TXONが生成され、その故障検出信号TXONに基づいてシリアル制御信号TXがTX送信用通信線4へ出力される。シリアル制御信号TX及びWDパルスは、ソフトウェアのフェーズの異なる場所から出力することができるので、それらのいずれかが検出されない場合に故障検出信号TXONを出力することにより、故障をより確実に検出することができる。   Further, when either the serial control signal TX or the WD pulse is not detected, a failure detection signal TXON is generated, and the serial control signal TX is output to the TX transmission communication line 4 based on the failure detection signal TXON. Since the serial control signals TX and WD pulses can be output from different locations in the software phase, if any of them is not detected, the failure detection signal TXON is output to detect the failure more reliably. Can do.

本実施の形態では、いずれかの中央処理ユニットにおいて生成されるシリアル制御信号TXが、他方の中央処理ユニットに備えられたTX検出回路22により検出されるような構成について説明したが、いずれかの中央処理ユニットにおいて生成されるWDパルスが、他方の中央処理ユニットに備えられたWDT21により検出されるような構成であってもよい。   In the present embodiment, the configuration has been described in which the serial control signal TX generated in one central processing unit is detected by the TX detection circuit 22 provided in the other central processing unit. The configuration may be such that the WD pulse generated in the central processing unit is detected by the WDT 21 provided in the other central processing unit.

本発明は、以上の実施の形態の内容に限定されるものではなく、請求項記載の範囲内において種々の変更が可能である。   The present invention is not limited to the contents of the above-described embodiment, and various modifications can be made within the scope of the claims.

本発明の実施の形態1による切替制御システムの一構成例を示したブロック図である。It is the block diagram which showed the example of 1 structure of the switching control system by Embodiment 1 of this invention. 図1の1対の中央処理ユニットの一構成例を示した回路図である。FIG. 2 is a circuit diagram illustrating a configuration example of a pair of central processing units in FIG. 1. 図2の故障検出回路における動作の具体例を示したタイミングチャートであり、(a)はWDTにおける動作の一例、(b)はTX検出回路における動作の一例を示している。3 is a timing chart showing a specific example of the operation in the failure detection circuit of FIG. 2, wherein (a) shows an example of the operation in WDT, and (b) shows an example of the operation in the TX detection circuit. 本実施の形態の切替制御システムにおける動作の具体例を示したタイミングチャートであり、WDTにおいて故障を検出した場合の一例を示している。It is the timing chart which showed the specific example of the operation | movement in the switching control system of this Embodiment, and shows an example at the time of detecting a failure in WDT. 本実施の形態の切替制御システムにおける動作の具体例を示したタイミングチャートであり、TX検出回路において故障を検出した場合の一例を示している。It is the timing chart which showed the specific example of the operation | movement in the switching control system of this Embodiment, and shows an example at the time of detecting a failure in a TX detection circuit. 本発明の実施の形態2による1対の中央処理ユニットの一構成例を示した回路図である。It is the circuit diagram which showed one structural example of a pair of central processing unit by Embodiment 2 of this invention. 従来の切替制御システムの一構成例を示したブロック図である。It is the block diagram which showed the example of 1 structure of the conventional switching control system.

符号の説明Explanation of symbols

1 第1中央処理ユニット
2 第2中央処理ユニット
3 被制御ユニット
4 TX送信用通信線
5 RX受信用通信線
6 リセット用通信線
7 専用ケーブル
10 CPU
11 リセット処理部
12 監視用信号生成部
13 割込処理部
14 制御信号生成部
15 応答信号入力部
20 故障検出回路
21 WDT
22 TX検出回路
23 NAND演算回路
30 制御信号出力回路
40 故障検出制御回路
50 リセット信号出力回路
DESCRIPTION OF SYMBOLS 1 1st central processing unit 2 2nd central processing unit 3 Controlled unit 4 TX transmission communication line 5 RX reception communication line 6 Reset communication line 7 Dedicated cable 10 CPU
11 Reset Processing Unit 12 Monitoring Signal Generation Unit 13 Interrupt Processing Unit 14 Control Signal Generation Unit 15 Response Signal Input Unit 20 Failure Detection Circuit 21 WDT
22 TX detection circuit 23 NAND operation circuit 30 control signal output circuit 40 failure detection control circuit 50 reset signal output circuit

Claims (7)

共通のシリアル通信線を介して、制御対象装置に1対の制御ユニットが着脱可能に接続され、いずれか一方の制御ユニットが制御対象装置を制御する切替制御システムにおいて、
上記制御ユニットが、
上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、
上記シリアル制御信号及び上記監視用信号に基づいて故障検出信号を生成する故障検出回路と、
他方の制御ユニットからの故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えたことを特徴とする切替制御システム。
In a switching control system in which a pair of control units are detachably connected to a control target device via a common serial communication line, and any one control unit controls the control target device.
The control unit is
A microprocessor that generates a serial control signal for controlling the device to be controlled, and periodically generates a monitoring signal;
A failure detection circuit for generating a failure detection signal based on the serial control signal and the monitoring signal;
A switching control system comprising: a control signal output circuit that outputs the serial control signal to the serial communication line based on a failure detection signal from the other control unit.
他方の制御ユニットからの上記故障検出信号に基づいて、上記シリアル制御信号を上記故障検出回路へ入力する故障検出制御回路を備えたことを特徴とする請求項1に記載の切替制御システム。   2. The switching control system according to claim 1, further comprising a failure detection control circuit that inputs the serial control signal to the failure detection circuit based on the failure detection signal from the other control unit. 共通のシリアル通信線を介して、制御対象装置に1対の制御ユニットが着脱可能に接続され、いずれか一方の制御ユニットが制御対象装置を制御する切替制御システムにおいて、
上記制御ユニットが、
上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、
ともに他方の制御ユニットから出力されるシリアル制御信号及び監視用信号に基づいて故障検出信号を生成する故障検出回路と、
上記故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えたことを特徴とする切替制御システム。
In a switching control system in which a pair of control units are detachably connected to a control target device via a common serial communication line, and any one control unit controls the control target device.
The control unit is
A microprocessor that generates a serial control signal for controlling the device to be controlled, and periodically generates a monitoring signal;
A failure detection circuit that generates a failure detection signal based on the serial control signal and the monitoring signal both output from the other control unit;
A switching control system comprising: a control signal output circuit that outputs the serial control signal to the serial communication line based on the failure detection signal.
上記故障検出信号に基づいて、上記シリアル制御信号を他方の制御ユニットの上記故障検出回路へ入力する故障検出制御回路を備えたことを特徴とする請求項3に記載の切替制御システム。   4. The switching control system according to claim 3, further comprising a failure detection control circuit that inputs the serial control signal to the failure detection circuit of the other control unit based on the failure detection signal. 上記故障検出回路は、シリアル制御信号及び監視用信号のいずれかが検出されない場合に、故障検出信号を生成することを特徴とする請求項1から4のいずれかに記載の切替制御システム。   5. The switching control system according to claim 1, wherein the failure detection circuit generates a failure detection signal when either the serial control signal or the monitoring signal is not detected. 6. シリアル通信線を介して制御対象装置に着脱可能に接続され、対となる他方の制御ユニットとの間で択一的に制御対象装置を制御する制御ユニットにおいて、
上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、
上記シリアル制御信号及び上記監視用信号に基づいて故障検出信号を生成する故障検出回路と、
他方の制御ユニットからの故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えたことを特徴とする制御ユニット。
In the control unit that is detachably connected to the control target device via the serial communication line and controls the control target device alternatively with the other control unit in a pair,
A microprocessor that generates a serial control signal for controlling the device to be controlled, and periodically generates a monitoring signal;
A failure detection circuit for generating a failure detection signal based on the serial control signal and the monitoring signal;
A control unit comprising a control signal output circuit for outputting the serial control signal to the serial communication line based on a failure detection signal from the other control unit.
シリアル通信線を介して制御対象装置に着脱可能に接続され、対となる他方の制御ユニットとの間で択一的に制御対象装置を制御する制御ユニットにおいて、
上記制御対象装置を制御するためのシリアル制御信号を生成するとともに、監視用信号を周期的に生成するマイクロプロセッサと、
ともに他方の制御ユニットから出力されるシリアル制御信号及び監視用信号に基づいて故障検出信号を生成する故障検出回路と、
上記故障検出信号に基づいて、上記シリアル制御信号を上記シリアル通信線へ出力する制御信号出力回路とを備えたことを特徴とする制御ユニット。
In the control unit that is detachably connected to the control target device via the serial communication line and controls the control target device alternatively with the other control unit in a pair,
A microprocessor that generates a serial control signal for controlling the device to be controlled, and periodically generates a monitoring signal;
A failure detection circuit that generates a failure detection signal based on the serial control signal and the monitoring signal both output from the other control unit;
And a control signal output circuit that outputs the serial control signal to the serial communication line based on the failure detection signal.
JP2005250932A 2005-08-31 2005-08-31 Switching control system and control unit applied thereto Active JP4755868B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005250932A JP4755868B2 (en) 2005-08-31 2005-08-31 Switching control system and control unit applied thereto

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005250932A JP4755868B2 (en) 2005-08-31 2005-08-31 Switching control system and control unit applied thereto

Publications (2)

Publication Number Publication Date
JP2007067801A true JP2007067801A (en) 2007-03-15
JP4755868B2 JP4755868B2 (en) 2011-08-24

Family

ID=37929480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005250932A Active JP4755868B2 (en) 2005-08-31 2005-08-31 Switching control system and control unit applied thereto

Country Status (1)

Country Link
JP (1) JP4755868B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188290A (en) * 2010-03-09 2011-09-22 Fuji Xerox Co Ltd Information communication system and program
CN113335298A (en) * 2021-05-28 2021-09-03 广汽丰田汽车有限公司 CPU fault processing method, vehicle and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1091892A (en) * 1996-08-21 1998-04-10 Honeywell Inc Process control system
JP2004304500A (en) * 2003-03-31 2004-10-28 Leader Electronics Corp Switching device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1091892A (en) * 1996-08-21 1998-04-10 Honeywell Inc Process control system
JP2004304500A (en) * 2003-03-31 2004-10-28 Leader Electronics Corp Switching device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188290A (en) * 2010-03-09 2011-09-22 Fuji Xerox Co Ltd Information communication system and program
CN113335298A (en) * 2021-05-28 2021-09-03 广汽丰田汽车有限公司 CPU fault processing method, vehicle and readable storage medium

Also Published As

Publication number Publication date
JP4755868B2 (en) 2011-08-24

Similar Documents

Publication Publication Date Title
US9626929B2 (en) Liquid crystal panel driving apparatus
JP2009201334A (en) Double-system train control device
JP2009053734A (en) Method for detecting disconnection and power discontinuity of i/o unit connected to numerical controller
JP4755868B2 (en) Switching control system and control unit applied thereto
JPH0778039A (en) Clock selection control system
TWI434159B (en) Dual system control device
JP2007018026A (en) Controller
US8908782B2 (en) Method and apparatus for checking asynchronous transmission of control signals
US10574514B2 (en) Duplex control device and duplex system
JP2007026241A (en) Abnormality monitoring method and controller using it
KR100232869B1 (en) The device and its method of detecting eject of modules previously in communication system with redundant structure
JP3125864B2 (en) Redundant system
JP2010282565A (en) Peripheral device driving device
JP5146452B2 (en) Monitoring device, information processing device, and alarm signal output method
JP3063435B2 (en) Instantaneous interruption redundant switching method
JP2021135121A (en) Fault detection circuit and fault detection system
KR101563932B1 (en) Apparatus and method for switchover of redundancy status in redundancy system
JP2006106833A (en) Backup device for main controller in monitoring board and tunnel disaster prevention facility
JP2007271533A (en) Test system for digital processing device
JP2011040842A (en) Device changeover method of duplication system
JP2010103752A (en) Vehicle controller and on-board gateway device
JPH07303099A (en) Correcting system for transmission frame at the time of switching clock redundant system
JP2004094695A (en) Hardware protection control circuit
JPS63240145A (en) Digital signal transmission system
JP2002290423A (en) Communication processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100608

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100726

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110524

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110530

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4755868

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250