JP6094387B2 - Control device - Google Patents

Control device Download PDF

Info

Publication number
JP6094387B2
JP6094387B2 JP2013120045A JP2013120045A JP6094387B2 JP 6094387 B2 JP6094387 B2 JP 6094387B2 JP 2013120045 A JP2013120045 A JP 2013120045A JP 2013120045 A JP2013120045 A JP 2013120045A JP 6094387 B2 JP6094387 B2 JP 6094387B2
Authority
JP
Japan
Prior art keywords
unit
calculation unit
calculation
signal
input
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.)
Active
Application number
JP2013120045A
Other languages
Japanese (ja)
Other versions
JP2014238661A (en
Inventor
新 種村
新 種村
一永 兵藤
一永 兵藤
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2013120045A priority Critical patent/JP6094387B2/en
Publication of JP2014238661A publication Critical patent/JP2014238661A/en
Application granted granted Critical
Publication of JP6094387B2 publication Critical patent/JP6094387B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、制御装置に関する。特に、本発明は、メイン演算部と、冗長演算部とを備えた制御装置に関する。   The present invention relates to a control device. In particular, the present invention relates to a control device including a main calculation unit and a redundant calculation unit.

従来、メイン演算部と冗長演算部とを備えた制御装置の一例として、特許文献1に開示された制御ユニットがある。この制御ユニットは、駆動ユニット(以下、制御対象と称する)に対する制御を実行するものであり、入力回路と、マイクロコンピュータ(以下、マイコンと称する)とを備えて構成されている。入力回路には、入力ラインを介して二つの測定装置が接続されている。マイコンは、入力回路を介して、測定装置からの信号が入力信号として供給される。そして、マイコンは、プログラム構成に関して二つのレベルに分割されている。第1のレベル(以下、メイン演算部と称する)は、制御対象に対する制御を実行するためのプログラムがまとめられている。第2のレベル(以下、冗長演算部と称する)は、制御機能の機能モニタリングの働きをするプログラムがまとめられている。つまり、一つのマイコンによって、駆動ユニットの出力に対する制御機能、及びこの制御機能のモニタリングを実行することができる。   Conventionally, there is a control unit disclosed in Patent Document 1 as an example of a control device including a main arithmetic unit and a redundant arithmetic unit. The control unit executes control on a drive unit (hereinafter referred to as a control target), and includes an input circuit and a microcomputer (hereinafter referred to as a microcomputer). Two measuring devices are connected to the input circuit via an input line. The microcomputer is supplied with a signal from the measuring device as an input signal via an input circuit. The microcomputer is divided into two levels with respect to the program structure. The first level (hereinafter referred to as the main arithmetic unit) is a group of programs for executing control on the controlled object. The second level (hereinafter referred to as a redundant operation unit) is a group of programs that function as monitoring functions for control functions. That is, the control function for the output of the drive unit and the monitoring of the control function can be executed by one microcomputer.

特表平11−505587号公報Japanese National Patent Publication No. 11-505588

ところで、上述のように、メイン演算部が実行するメイン演算に加えて、冗長演算部が冗長演算を実行する場合、冗長演算とメイン演算とを切り分けて行う必要がある。   By the way, as described above, in addition to the main calculation executed by the main calculation unit, when the redundant calculation unit executes the redundant calculation, it is necessary to perform the redundant calculation and the main calculation separately.

また、上記マイコンでは、二つの測定装置からの入力信号が、メイン演算部に供給されると共に、冗長演算部にも供給される。従って、メイン演算部は、この二つの入力信号を用いて、入力信号が正常であるか否かの入力保証のための演算(以下、ダイアグ演算と称する)を行うことが考えられる。この場合、上述のように、冗長演算とメイン演算とを切り分けて行う必要があるため、冗長演算部に関しても、メイン演算部と同様にダイアグ演算を行うことになる。さらに、冗長演算部がダイアグ演算時に用いる記憶領域やプログラムが必要となる。従って、マイコンは、冗長演算部がダイアグ演算を行うことによって、マイコン自身の処理負荷が増えるだけでなく記憶領域も増えることになる。   In the microcomputer, the input signals from the two measuring devices are supplied to the main arithmetic unit and also to the redundant arithmetic unit. Therefore, it is conceivable that the main arithmetic unit performs an operation for guaranteeing whether or not the input signal is normal (hereinafter referred to as a diag operation) using these two input signals. In this case, as described above, since it is necessary to separately perform the redundant calculation and the main calculation, the diagnostic calculation is also performed on the redundant calculation unit in the same manner as the main calculation unit. Furthermore, a storage area and a program that are used by the redundant calculation unit at the time of diagnosis are required. Therefore, in the microcomputer, the redundant calculation unit performs the diagnosis operation, so that not only the processing load of the microcomputer itself increases but also the storage area increases.

本発明は、上記問題点に鑑みなされたものであり、処理負荷及び記憶領域の増加を抑制することができる制御装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a control device that can suppress an increase in processing load and storage area.

上記目的を達成するために本発明は、
入力された入力信号を用いて、制御対象(510)に対するエンジンのトルク値を生成するためのトルク演算を実行する制御装置(200,210)であって、
記憶部(30)と、複数の入力信号が入力されトルク演算を実行するメイン演算部(60)と、複数の入力信号が入力され冗長演算を実行する冗長演算部(70)と、を備え、
メイン演算部は、
記憶部を用いつつ、複数の入力信号が正常であるか否かの入力保証を行うためのトルク演算を実行する入力保証演算部(61)と、
入力保証演算部にて正常であることが保証された入力信号を用いてトルク演算を実行する第1演算部(62)と、を有し、
冗長演算部は、
複数の入力信号を互いに比較して、複数の入力信号からトルク値が小さくなる一つの入力信号を選択する比較選択部(71)と、
比較選択部にて選択された入力信号を用いて、冗長演算としてトルク値を生成するトルク演算を実行する第2演算部(72)と、を有し、
第1演算部の演算結果と第2演算部の演算結果とを比較して、第1演算部の演算結果が第2演算部の演算結果よりも大きい場合に、メイン演算部が異常であると判定する比較部(20)を備え、
比較部は、異常と判定した場合、第1演算部の演算結果のかわりに、予め決められた固定値、あるいは、第2演算部の演算結果を制御対象に出力することを特徴とする。
In order to achieve the above object, the present invention provides:
Using the received input signal, a control object (5 10) control device for performing the torque calculation for generating the torque value of the engine with respect to (200, 210),
A storage unit (30), a main calculation unit (60 ) that receives a plurality of input signals and executes a torque calculation, and a redundant calculation unit (70 ) that receives a plurality of input signals and executes a redundant calculation. Prepared,
The main calculation unit
An input guarantee calculation unit (61 ) that executes torque calculation for performing input guarantee as to whether or not a plurality of input signals are normal while using the storage unit;
A first calculation unit (62 ) that performs a torque calculation using an input signal that is guaranteed to be normal by the input guarantee calculation unit;
Redundant operation unit
A comparison / selection unit (71 ) for comparing a plurality of input signals with each other and selecting one input signal having a smaller torque value from the plurality of input signals;
Using the input signal selected by comparing and selecting unit, a second arithmetic unit that executes a torque operation that generates a torque value as a redundant operation and (7 2), have a,
When the calculation result of the first calculation unit is compared with the calculation result of the second calculation unit, and the calculation result of the first calculation unit is larger than the calculation result of the second calculation unit, the main calculation unit is abnormal A comparison unit (20) for determining,
The comparison unit outputs a fixed value determined in advance or the calculation result of the second calculation unit to the control target instead of the calculation result of the first calculation unit when it is determined as abnormal .

このように、本発明は、メイン演算部に加えて、冗長演算部を備えている。そして、メイン演算部は、入力保証演算部によって保証演算を行う。このため、第1演算部は、正常であると保証された入力信号を用いて制御演算を実行することができる。   As described above, the present invention includes a redundant calculation unit in addition to the main calculation unit. Then, the main calculation unit performs a guarantee calculation by the input guarantee calculation unit. For this reason, the 1st calculating part can perform a control calculation using the input signal guaranteed to be normal.

これに対して、冗長演算部は、比較選択部によって、複数の入力信号を互いに比較して、複数の入力信号から一つの入力信号を選択する。そして、第2演算部は、比較選択部にて選択された入力信号を用いて冗長演算を実行する。このように、冗長演算部は、複数の入力信号を互いに比較して、複数の入力信号から一つの入力信号を選択するだけなので、入力保証演算部のように記憶部を用いる必要がない。従って、本発明は、処理負荷及び記憶領域の増加を抑制することができる。   On the other hand, the redundant operation unit compares a plurality of input signals with each other by the comparison / selection unit, and selects one input signal from the plurality of input signals. Then, the second calculation unit performs a redundant calculation using the input signal selected by the comparison / selection unit. As described above, since the redundant arithmetic unit only compares a plurality of input signals with each other and selects one input signal from the plurality of input signals, it is not necessary to use a storage unit unlike the input guarantee arithmetic unit. Therefore, the present invention can suppress an increase in processing load and storage area.

なお、特許請求の範囲およびこの項に記載した括弧内の符号は、ひとつの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、発明の技術的範囲を限定するものではない。   Note that the reference numerals in parentheses described in the claims and in this section indicate a corresponding relationship with specific means described in the embodiments described later as one aspect, and limit the technical scope of the invention. Not what you want.

第1実施形態における制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the control apparatus in 1st Embodiment. 第2実施形態における制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the control apparatus in 2nd Embodiment. 第2実施形態における制御装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the control apparatus in 2nd Embodiment. メイン演算部が正常であう場合のタイムチャートである。It is a time chart in case a main calculating part is normal. メイン演算部が異常である場合のタイムチャートである。It is a time chart when a main calculating part is abnormal.

以下、本発明の実施形態を図に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1実施形態)
まず、図1に基づいて、第1実施形態におけるECU200を説明する。本実施形態では、本発明をECU200に適用した例を採用している。なお、ECUは、Electronic Control Unitの略である。
(First embodiment)
First, the ECU 200 in the first embodiment will be described with reference to FIG. In this embodiment, the example which applied this invention to ECU200 is employ | adopted. Note that ECU is an abbreviation for Electronic Control Unit.

ECU200は、主構成要素としてマイコン100を備えている。また、ECU200は、第1センサ300、第2センサ400、及びアクチュエータ500が電気的に接続されている。ECU200は、第1センサ300の検出結果を示す信号、及び第2センサ400の検出結果を示す信号が入力される。このように、ECU200は、複数の信号(入力信号)が入力されることになる。   The ECU 200 includes a microcomputer 100 as a main component. In addition, the ECU 200 is electrically connected to the first sensor 300, the second sensor 400, and the actuator 500. ECU 200 receives a signal indicating the detection result of first sensor 300 and a signal indicating the detection result of second sensor 400. As described above, the ECU 200 receives a plurality of signals (input signals).

そして、ECU200は、第1センサ300及び第2センサ400から出力された複数の信号(入力信号)を用いて、制御対象であるアクチュエータ500に対する制御信号を生成するための制御演算を実行する。言い換えると、ECU200は、入力された入力信号に基づいた制御信号を生成する。つまり、ECU200は、アクチュエータ500を制御する装置と言い換えることができる。よって、制御信号は、アクチュエータ500を制御するための信号である。   Then, the ECU 200 uses the plurality of signals (input signals) output from the first sensor 300 and the second sensor 400 to execute a control calculation for generating a control signal for the actuator 500 that is a control target. In other words, the ECU 200 generates a control signal based on the input signal that has been input. That is, the ECU 200 can be restated as a device that controls the actuator 500. Therefore, the control signal is a signal for controlling the actuator 500.

また、ECU200に入力される複数の入力信号は、第1センサ300の検出結果を示す信号、及び第2センサ400の検出結果を示す信号(この場合、センサ値)である。第1センサ300、第2センサ400、及びアクチュエータ500は、特に限定されない。但し、第1センサ300と第2センサ400とは、検出対象が同一であり、ECU200がアクチュエータ500を制御するための信号を出力する。また、第1センサ300と第2センサ400とは、ECU200がアクチュエータ500を制御するための信号であり、互いに相関関係にある信号を出力するセンサであっても採用できる。   Further, the plurality of input signals input to the ECU 200 are a signal indicating the detection result of the first sensor 300 and a signal indicating the detection result of the second sensor 400 (in this case, a sensor value). The first sensor 300, the second sensor 400, and the actuator 500 are not particularly limited. However, the first sensor 300 and the second sensor 400 have the same detection target, and the ECU 200 outputs a signal for controlling the actuator 500. Further, the first sensor 300 and the second sensor 400 are signals for the ECU 200 to control the actuator 500, and can be employed even if they output signals that are correlated with each other.

また、本実施形態では、ECU200として、第1センサ300及び第2センサ400が接続されており、この第1センサ300及び第2センサ400から入力された入力信号を用いて制御演算を実行する例を採用した。しかしながら、本発明はこれに限定されない。ECU200は、CANバスなどの通信線が接続されており、通信線から入力された入力信号を用いて制御演算を実行するものであっても採用できる。つまり、ECU200は、他のECUから出力され、通信線を介して入力された信号を用いて制御演算を実行するものであっても採用できる。さらに、ECU200は、スイッチが接続されており、スイッチから入力された入力信号を用いて制御演算を実行するものであっても採用できる。   In the present embodiment, the first sensor 300 and the second sensor 400 are connected as the ECU 200, and an example of executing the control calculation using the input signals input from the first sensor 300 and the second sensor 400. It was adopted. However, the present invention is not limited to this. The ECU 200 can be employed even if it is connected to a communication line such as a CAN bus and executes a control calculation using an input signal input from the communication line. That is, the ECU 200 can be employed even if it executes a control calculation using a signal output from another ECU and input via a communication line. Further, the ECU 200 can be employed even if it is connected to a switch and executes a control calculation using an input signal input from the switch.

このように、ECU200に入力される入力信号を出力する複数の入力機器は、センサ(300や400など)や、スイッチや、ECUなどを採用できる。よって、ECU200に入力される複数の入力信号は、各入力機器が出力する同じ信号であってもよいし、各入力機器が出力する互いに相関関係にある信号であってもよい。また、このように、各入力機器が出力する信号は、同じであるか、互いに相関関係にあるものの、各入力機器やECU200までの経路などに異常が生じている場合、ECU200には異なった信号として入力されることもある。さらに、ECU200は、各入力機器やECU200までの経路などが正常である場合、複数の入力信号のうちのどの入力信号を用いて制御演算を行っても、同じ制御信号を生成することができる。   As described above, a plurality of input devices that output input signals input to the ECU 200 can employ sensors (300, 400, etc.), switches, ECUs, and the like. Therefore, the plurality of input signals input to the ECU 200 may be the same signal output by each input device, or may be signals correlated with each other output from each input device. As described above, the signals output from the input devices are the same or correlated with each other, but when there is an abnormality in each input device or the route to the ECU 200, the ECU 200 has a different signal. May be entered as Furthermore, when each input device, the route to ECU 200, and the like are normal, ECU 200 can generate the same control signal regardless of which input signal of the plurality of input signals is used for control calculation.

さらに、本実施形態では、ECU200に二つの入力信号が入力される例を採用している。しかしながら、本発明はこれに限定されない。ECU200には、三つ以上の入力信号が入力されてもよい。   Further, in the present embodiment, an example in which two input signals are input to the ECU 200 is adopted. However, the present invention is not limited to this. ECU 200 may receive three or more input signals.

マイコン100は、主に、ADC10、CPU、ROM、RAM、レジスタなどを備えて構成されている。マイコン100は、CPUが入力信号やROMに記憶されたプログラムに基づいて、RAM及びレジスタを一時的に記憶領域として用いつつ各種演算処理を実行する。CPUは、演算処理として、上記制御演算に加えて、後ほど説明する冗長演算、ダイアグ演算などを実行する。また、マイコン100は、ダイアグ演算時のように記憶領域を用いることなく、複数の入力信号を比較して、複数の入力信号から一つの入力信号を選択する比較選択処理を実行する。   The microcomputer 100 mainly includes an ADC 10, a CPU, a ROM, a RAM, a register, and the like. In the microcomputer 100, the CPU executes various arithmetic processes based on input signals and programs stored in the ROM while temporarily using the RAM and the register as a storage area. In addition to the above control calculations, the CPU executes a redundant calculation, a diagnosis calculation, etc., which will be described later, as the calculation process. In addition, the microcomputer 100 performs a comparison and selection process that compares a plurality of input signals and selects one input signal from the plurality of input signals without using a storage area as in the case of the diagnosis operation.

なお、ADCは、analog to digital converterの略である。CPUは、Central Processing Unitの略である。ROMは、Read Only Memoryの略である。RAMは、Random AccessMemoryの略である。   ADC is an abbreviation for analog to digital converter. CPU is an abbreviation for Central Processing Unit. ROM is an abbreviation for Read Only Memory. RAM is an abbreviation for Random AccessMemory.

このように構成されたマイコン100は、図1に示すように、機能ブロックとして、比較部20、記憶部30、メイン演算部40、冗長演算部50とを備えて構成されている。さらに、メイン演算部40は、ダイアグ演算部41、第1制御演算部42、第2制御演算部43を備えて構成されている。また、冗長演算部50は、比較選択部51、第1制御演算部52、第2制御演算部53を備えて構成されている。   As shown in FIG. 1, the microcomputer 100 configured as described above includes a comparison unit 20, a storage unit 30, a main calculation unit 40, and a redundant calculation unit 50 as functional blocks. Further, the main calculation unit 40 includes a diagnosis calculation unit 41, a first control calculation unit 42, and a second control calculation unit 43. The redundant calculation unit 50 includes a comparison / selection unit 51, a first control calculation unit 52, and a second control calculation unit 53.

例えば、マイコン100が二つのCPUを備えている場合、一方のCPUをメイン演算部40とし、他方のCPUを冗長演算部50とすることができる。また、マイコン100がマルチコアタイプのCPUを備えている場合、一つのコアをメイン演算部40とし、他のコアのうちの一つのコアを冗長演算部50とすることができる。   For example, when the microcomputer 100 includes two CPUs, one CPU can be the main arithmetic unit 40 and the other CPU can be the redundant arithmetic unit 50. Further, when the microcomputer 100 includes a multi-core type CPU, one core can be the main arithmetic unit 40 and one of the other cores can be the redundant arithmetic unit 50.

マイコン100のADC10には、第1センサ300からの信号及び第2センサ400からの信号が入力される。ADC10は、アナログ信号である第1センサ300からの信号をデジタル信号に変換してメイン演算部40及び冗長演算部50に出力する。同様に、ADC10は、アナログ信号である第2センサ400からの信号をデジタル信号に変換してメイン演算部40及び冗長演算部50に出力する。よって、メイン演算部40及び冗長演算部50は、デジタル変換された入力信号が入力される。なお、以下の説明においては、第1センサ300の検出結果を示す信号を第1信号、第2センサ400の検出結果を示す信号を第2信号とも称する。   A signal from the first sensor 300 and a signal from the second sensor 400 are input to the ADC 10 of the microcomputer 100. The ADC 10 converts a signal from the first sensor 300 that is an analog signal into a digital signal and outputs the digital signal to the main calculation unit 40 and the redundancy calculation unit 50. Similarly, the ADC 10 converts a signal from the second sensor 400 that is an analog signal into a digital signal and outputs the digital signal to the main calculation unit 40 and the redundancy calculation unit 50. Therefore, the main arithmetic unit 40 and the redundant arithmetic unit 50 are input with the digitally converted input signal. In the following description, a signal indicating the detection result of the first sensor 300 is also referred to as a first signal, and a signal indicating the detection result of the second sensor 400 is also referred to as a second signal.

また、記憶部30は、上記ROM、RAM、レジスタなどによって構成されている。記憶部30の一部(例えばROM)には、メイン演算部40用のプログラム、及び冗長演算部50用のプログラムが記憶されている。また、メイン演算部40及び冗長演算部50は、演算処理を実行する際に、記憶部30の一部(例えばRAMやレジスタ)を用いる。   The storage unit 30 includes the ROM, RAM, register, and the like. A part of the storage unit 30 (for example, ROM) stores a program for the main arithmetic unit 40 and a program for the redundant arithmetic unit 50. Further, the main arithmetic unit 40 and the redundant arithmetic unit 50 use a part of the storage unit 30 (for example, a RAM or a register) when executing arithmetic processing.

なお、メイン演算部40が用いる記憶領域(記憶部30の一部)と、冗長演算部50が用いる記憶領域(記憶部30の一部)とは、別々に設けられていてもよい。言い換えると、メイン演算部40が用いる記憶部と、冗長演算部50が用いる記憶部とは、切り分けられていてもよい。   The storage area used by the main calculation unit 40 (part of the storage unit 30) and the storage area used by the redundant calculation unit 50 (part of the storage unit 30) may be provided separately. In other words, the storage unit used by the main calculation unit 40 and the storage unit used by the redundant calculation unit 50 may be separated.

また、メイン演算部40が実行するプログラムと、冗長演算部50が実行するプログラムとは、別々に設けられている。言い換えると、メイン演算部40が実行するプログラムと、冗長演算部50が実行するプログラムとは、切り分けられている。   Further, the program executed by the main arithmetic unit 40 and the program executed by the redundant arithmetic unit 50 are provided separately. In other words, the program executed by the main arithmetic unit 40 and the program executed by the redundant arithmetic unit 50 are separated.

また、マイコン100は、ROM、RAM、レジスタからなる記憶領域(記憶部30)を一つのアドレス空間として一括管理してもよい。この場合、メイン演算部40が用いる記憶領域と、冗長演算部50が用いる記憶領域とは、上記アドレス空間の一部とすることができる。   Further, the microcomputer 100 may collectively manage a storage area (storage unit 30) including a ROM, a RAM, and a register as one address space. In this case, the storage area used by the main calculation unit 40 and the storage area used by the redundant calculation unit 50 can be part of the address space.

ここで、メイン演算部40に関して説明する。メイン演算部40は、ADC10によってデジタル変換された複数の入力信号が入力される。ダイアグ演算部41は、本発明の特許請求の範囲における入力保証演算部に相当し、記憶部30を用いつつ、複数の入力信号が正常であるか否かの入力保証を行うための保証演算(ダイアグ演算)を実行する。本実施形態でのダイアグ演算部41は、第1信号と第2信号の保証演算を実行する。   Here, the main calculation unit 40 will be described. The main arithmetic unit 40 receives a plurality of input signals digitally converted by the ADC 10. The diagnosis calculation unit 41 corresponds to the input guarantee calculation unit in the claims of the present invention, and uses the storage unit 30 to guarantee input (whether or not a plurality of input signals are normal). Execute a diagnosis operation. The diagnosis operation unit 41 in the present embodiment executes a guarantee operation for the first signal and the second signal.

また、ダイアグ演算部41は、複数の入力信号のうち、正常であると保証した入力信号を第1制御演算部42及び第2制御演算部43に出力する。また、ダイアグ演算部41は、全ての入力信号が異常であるとみなした場合、固定値(デフォルト値)を第1制御演算部42及び第2制御演算部43に出力する。   In addition, the diagnosis calculation unit 41 outputs, to the first control calculation unit 42 and the second control calculation unit 43, an input signal that is guaranteed to be normal among the plurality of input signals. In addition, the diagnosis calculation unit 41 outputs a fixed value (default value) to the first control calculation unit 42 and the second control calculation unit 43 when all input signals are considered abnormal.

なお、ダイアグ演算部41は、複数の入力信号が正常であると保証した場合は、複数の入力信号のいずれか一つの入力信号を第1制御演算部42及び第2制御演算部43に出力する。このように複数の入力信号が正常であった場合、ダイアグ演算部41は、予め決められたメインの入力機器から出力された信号(入力信号)を、第1制御演算部42及び第2制御演算部43に出力する。例えば、第1センサ300をメインの入力機器、第2センサ400をサブの入力機器と予め決めておく。この場合、ダイアグ演算部41は、第1信号と第2信号が共に正常であると保証すると、第1信号を第1制御演算部42及び第2制御演算部43に出力する。   Note that when the plurality of input signals are guaranteed to be normal, the diagnosis calculation unit 41 outputs any one of the plurality of input signals to the first control calculation unit 42 and the second control calculation unit 43. . Thus, when a plurality of input signals are normal, the diagnosis operation unit 41 uses the first control operation unit 42 and the second control operation as a signal (input signal) output from a predetermined main input device. To the unit 43. For example, the first sensor 300 is determined as a main input device and the second sensor 400 is determined as a sub input device in advance. In this case, the diagnosis calculation unit 41 outputs the first signal to the first control calculation unit 42 and the second control calculation unit 43 when it is guaranteed that both the first signal and the second signal are normal.

ここで、ダイアグ演算部41が行う保証演算の一例を説明する。例えば、ダイアグ演算部41は、第1信号及び第2信号の夫々が、各センサの特性上起こり得ない高い電圧や低い電圧であるか否かによって、各入力信号が正常であるか否かの入力保証を行う。つまり、ダイアグ演算部41は、第1信号を絶対値と比較すると共に、第2信号を絶対値と比較することで入力保証を行う。よって。ダイアグ演算部41は、各入力信号と絶対値とを比較する保証演算を実行する、と言い換えることができる。   Here, an example of the guarantee calculation performed by the diagnosis calculation unit 41 will be described. For example, the diagnosis operation unit 41 determines whether each input signal is normal depending on whether each of the first signal and the second signal is a high voltage or a low voltage that cannot occur due to the characteristics of each sensor. Perform input guarantee. That is, the diagnosis operation unit 41 compares the first signal with the absolute value and performs input guarantee by comparing the second signal with the absolute value. Therefore. In other words, the diagnosis operation unit 41 executes a guarantee operation for comparing each input signal with an absolute value.

ここでの絶対値とは、高い電圧側の閾値電圧である第1閾値、及び低い電圧側の閾値電圧である第2閾値を示す。この第1閾値及び第2閾値は、記憶部30に記憶させておく必要がある。よって、ダイアグ演算部41は、保証演算を実行する場合、第1閾値及び第2閾値を記憶部30から読み出して、第1信号を第1閾値及び第2閾値と比較すると共に、第2信号を第1閾値及び第2閾値と比較する。そして、ダイアグ演算部41は、第1信号が第1閾値よりも高い場合、第1信号が第2閾値よりも低い場合、第2信号が第1閾値よりも高い場合、第2信号が第2閾値よりも低い場合に異常であると検出する(異常とみなす、異常と判定する)。この異常は、Hi−Low異常と称することもできる。つまり、ダイアグ演算部41は、第1閾値よりも低く且つ第2閾値よりも高い入力信号を正常であると検出する(正常とみなす、正常と判定する、正常であると保証する)。   Here, the absolute value indicates a first threshold that is a threshold voltage on the high voltage side and a second threshold that is a threshold voltage on the low voltage side. The first threshold value and the second threshold value need to be stored in the storage unit 30. Therefore, when performing the guarantee calculation, the diagnosis calculation unit 41 reads the first threshold value and the second threshold value from the storage unit 30, compares the first signal with the first threshold value and the second threshold value, and outputs the second signal. Compare with the first threshold and the second threshold. Then, the diagnosis calculation unit 41 determines that the second signal is the second signal when the first signal is higher than the first threshold, the first signal is lower than the second threshold, the second signal is higher than the first threshold. When it is lower than the threshold, it is detected as abnormal (deemed abnormal, and determined as abnormal). This abnormality can also be referred to as a Hi-Low abnormality. That is, the diagnosis operation unit 41 detects that an input signal that is lower than the first threshold and higher than the second threshold is normal (deemed normal, determined to be normal, and guaranteed to be normal).

また、ダイアグ演算部41は、第1信号及び第2信号の夫々が、一定時間以上継続したか否かによって、各入力信号が正常であるか否かの入力保証を行ってもよい。つまり、ダイアグ演算部41は、第1信号(言い換えると、第1信号を示す電圧値)が同じ値で継続している時間を計測することで入力保証を行う。同様に、ダイアグ演算部41は、第2信号(言い換えると、第2信号を示す電圧値)が同じ値で継続している時間を計測することで入力保証を行う。よって、ダイアグ演算部41は、入力信号の夫々が同じ値である継続時間を計測する保証演算を実行する、と言い換えることができる。   Further, the diagnosis calculation unit 41 may perform input guarantee as to whether or not each input signal is normal depending on whether or not each of the first signal and the second signal has continued for a certain period of time. That is, the diagnosis operation unit 41 performs input guarantee by measuring the time during which the first signal (in other words, the voltage value indicating the first signal) continues at the same value. Similarly, the diagnosis operation unit 41 performs input guarantee by measuring the time during which the second signal (in other words, the voltage value indicating the second signal) continues at the same value. Therefore, it can be paraphrased that the diagnosis calculation unit 41 executes a guarantee calculation for measuring a duration in which each of the input signals has the same value.

そして、ダイアグ演算部41は、第1信号が同じ値で一定時間以上継続した場合に異常であると検出する。同様に、ダイアグ演算部41は、第2信号が同じ値で一定時間以上継続した場合に異常であると検出する。なお、ダイアグ演算部41は、同じ値で一定時間以上継続していない入力信号を正常であると検出する。この異常は、固着異常と称することもできる。   Then, the diagnosis calculation unit 41 detects that the first signal is abnormal when the same value continues for a certain period of time. Similarly, the diagnosis calculation unit 41 detects that the second signal is abnormal when the second signal continues at the same value for a predetermined time or more. The diagnosis operation unit 41 detects that an input signal having the same value and not continuing for a certain period of time is normal. This abnormality can also be referred to as a sticking abnormality.

また、ダイアグ演算部41は、第1信号及び第2信号の夫々が、類似センサ(図示)の検出値と電圧差が発生したか否かによって、各入力信号が正常であるか否かの入力保証を行ってもよい。言い換えると、ダイアグ演算部41は、特性異常検出を行ってもよい。つまり、ダイアグ演算部41は、第1信号を類似センサの検出値と比較すると共に、第2信号を類似センサの検出値と比較することで入力保証を行う。よって、ダイアグ演算部41は、各入力信号と他の検出値とを比較する保証演算を実行する、と言い換えることができる。詳述すると、ダイアグ演算部41は、特性異常検出を行う際には単純比較ではなく、所定値以上の電圧差が一定時間継続することを検出する。そのため、ダイアグ演算部41は、センサ間の検出値の差分を取り、差分と所定値との比較を行い、継続時間を計測する必要がある。従って、ダイアグ演算部41は、単純比較する場合よりも、特性異常検出を行う場合の方が処理が増える。   In addition, the diagnosis operation unit 41 inputs whether each input signal is normal depending on whether a voltage difference has occurred between the detection value of the similar sensor (illustrated) in each of the first signal and the second signal. A guarantee may be made. In other words, the diagnosis operation unit 41 may perform characteristic abnormality detection. In other words, the diagnosis calculation unit 41 compares the first signal with the detection value of the similar sensor and performs input guarantee by comparing the second signal with the detection value of the similar sensor. Therefore, it can be paraphrased that the diagnosis operation unit 41 executes a guarantee operation for comparing each input signal with another detected value. More specifically, when performing characteristic abnormality detection, the diagnosis calculation unit 41 detects that a voltage difference of a predetermined value or more continues for a certain period of time, not simple comparison. Therefore, the diagnosis calculation unit 41 needs to take the difference between the detection values between the sensors, compare the difference with a predetermined value, and measure the duration. Accordingly, the diagnosis operation unit 41 performs more processing when performing characteristic abnormality detection than when performing simple comparison.

なお、類似センサとは、第1センサ300や第2センサ400と同様の検出結果(検出値)を出力するセンサである。よって、第1信号と比較される検出値を出力する類似センサは、第1センサ300と同様の検出結果を出力するセンサである。同様に、第2信号と比較される検出値を出力する類似センサは、第2センサ400と同様の検出結果を出力するセンサである。   The similar sensor is a sensor that outputs a detection result (detection value) similar to that of the first sensor 300 and the second sensor 400. Therefore, a similar sensor that outputs a detection value that is compared with the first signal is a sensor that outputs a detection result similar to that of the first sensor 300. Similarly, a similar sensor that outputs a detection value that is compared with the second signal is a sensor that outputs a detection result similar to that of the second sensor 400.

類似センサの検出値は、記憶部30に記憶させておく必要がある。よって、ダイアグ演算部41は、保証演算を実行する場合、検出値を記憶部30から読み出して、第1信号を検出値と比較すると共に、第2信号を検出値と比較する。そして、ダイアグ演算部41は、第1信号と検出値とが異なる場合(電圧差がある場合)、第2信号と検出値とが異なる場合に、異常であると検出する。この異常は、特性異常と称することもできる。つまり、ダイアグ演算部41は、検出値と同じ入力信号を正常であると検出する。なお、ダイアグ演算部41は、検出値と入力信号とが完全に一致していなくても、一定範囲の違いであれば同じとみなすようにしてもよい。   The detection value of the similar sensor needs to be stored in the storage unit 30. Therefore, when executing the guarantee calculation, the diagnosis calculation unit 41 reads the detection value from the storage unit 30, compares the first signal with the detection value, and compares the second signal with the detection value. Then, when the first signal and the detection value are different (when there is a voltage difference), the diagnosis calculation unit 41 detects that there is an abnormality when the second signal and the detection value are different. This abnormality can also be referred to as a characteristic abnormality. That is, the diagnosis calculation unit 41 detects that the same input signal as the detected value is normal. Note that the diagnosis calculation unit 41 may regard the detected value and the input signal as the same as long as they are within a certain range even if they do not completely match.

また、ダイアグ演算部41は、特性異常検出を行う際には、第1信号と比較する類似センサの検出値として第2信号を採用することもできる。つまり、ダイアグ演算部41は、第1信号と第2信号とを用いて上記特性異常検出を行うこともできる。   Further, when performing the characteristic abnormality detection, the diagnosis calculation unit 41 can employ the second signal as the detection value of the similar sensor to be compared with the first signal. That is, the diagnosis calculation unit 41 can perform the characteristic abnormality detection using the first signal and the second signal.

第1制御演算部42及び第2制御演算部43は、本発明の特許請求の範囲における第1演算部に相当し、記憶部30を用いつつ、ダイアグ演算部41にて正常であることが保証された入力信号を用いて上記制御演算を実行する。また、ECU200は、第1センサ300から入力された入力信号、及び第2センサ400から入力された入力信号がいずれも正常であると保証された場合、二つの入力信号のいずれか一つを用いて制御演算を実行する。このように、第1制御演算部42及び第2制御演算部43は、第1センサ300から入力された信号、及び第2センサ400から入力された信号が共に正常である場合、どちらの入力信号であっても制御演算に用いることができる。さらに、第1制御演算部42及び第2制御演算部43は、ダイアグ演算部41にて複数の入力信号が異常であるとみなされた場合は、固定値を用いて制御演算を実行する(フェールセーフ処置)。なお、ECU200は、入力信号として三つ以上の信号が入力される場合であり、且つ、三つの入力信号が全て正常であると保証された場合、三つの入力信号のいずれか一つを用いて制御演算を実行する。   The first control calculation unit 42 and the second control calculation unit 43 correspond to the first calculation unit in the claims of the present invention, and are guaranteed to be normal in the diagnosis calculation unit 41 while using the storage unit 30. The control calculation is executed using the input signal. Further, the ECU 200 uses one of the two input signals when it is ensured that both the input signal input from the first sensor 300 and the input signal input from the second sensor 400 are normal. Control execution. As described above, when both the signal input from the first sensor 300 and the signal input from the second sensor 400 are normal, the first control calculation unit 42 and the second control calculation unit 43 are both input signals. However, it can be used for the control calculation. Furthermore, the first control calculation unit 42 and the second control calculation unit 43 execute the control calculation using a fixed value when the diagnosis calculation unit 41 regards the plurality of input signals as abnormal (fail). Safe treatment). In addition, ECU200 is a case where three or more signals are input as an input signal, and when all three input signals are guaranteed to be normal, one of the three input signals is used. Perform control calculations.

本実施形態では、第1演算部として、第1制御演算部42及び第2制御演算部43を備えたメイン演算部40を採用した。しかしながら、本発明はこれに限定されない。メイン演算部40は、第1制御演算部42及び第2制御演算部43のいずれか一方を有していれば採用できる。つまり、メイン演算部40は、制御演算を実行する演算部(第1演算部)を少なくとも一つ備えていれば採用できる。よって、メイン演算部40は、制御演算を実行する演算部(第1演算部)を三つ以上備えていてもよい。   In the present embodiment, the main calculation unit 40 including the first control calculation unit 42 and the second control calculation unit 43 is employed as the first calculation unit. However, the present invention is not limited to this. The main calculation unit 40 can be employed as long as it has one of the first control calculation unit 42 and the second control calculation unit 43. That is, the main calculation unit 40 can be employed as long as it includes at least one calculation unit (first calculation unit) that executes the control calculation. Therefore, the main calculation unit 40 may include three or more calculation units (first calculation units) that execute control calculations.

次に、冗長演算部50に関して説明する。冗長演算部50は、メイン演算部40と同様に、ADC10によってデジタル変換された複数の入力信号が入力される。比較選択部51は、複数の入力信号を互いに比較して、複数の入力信号から一つの入力信号を選択する(比較選択処理)。よって、比較選択部51は、複数の入力信号を互いに比較して、複数の入力信号から一つの入力信号を出力する回路を採用することができる。なお、この比較とは、複数の入力信号の大小比較である。また、複数の入力信号から一つの入力信号を選択するとは、複数の入力信号から一つの入力信号を選択して出力する、と言い換えることもできる。   Next, the redundant calculation unit 50 will be described. Similarly to the main calculation unit 40, the redundant calculation unit 50 receives a plurality of input signals digitally converted by the ADC 10. The comparison / selection unit 51 compares a plurality of input signals with each other and selects one input signal from the plurality of input signals (comparison / selection process). Therefore, the comparison / selection unit 51 can employ a circuit that compares a plurality of input signals with each other and outputs one input signal from the plurality of input signals. Note that this comparison is a size comparison of a plurality of input signals. Further, selecting one input signal from a plurality of input signals can also be referred to as selecting and outputting one input signal from a plurality of input signals.

本実施形態での比較選択部51は、第1信号と第2信号とを比較して、第1信号と第2信号の一方の入力信号を選択する。つまり、比較選択部51は、第1信号と第2信号から、後ほど説明する第1制御演算部52及び第2制御演算部53が演算に用いる一つの入力信号を選択する。なお、比較選択部51は、入力信号として三つ以上の信号が入力される場合は、三つの入力信号からいずれか一つの入力信号を選択する。なお、比較選択部51は、比較部20における検出において、メイン演算部40の異常が最も未検出となりにくい入力信号を選択する。   The comparison / selection unit 51 in the present embodiment compares the first signal and the second signal, and selects one input signal of the first signal and the second signal. That is, the comparison / selection unit 51 selects one input signal used by the first control calculation unit 52 and the second control calculation unit 53, which will be described later, from the first signal and the second signal. The comparison / selection unit 51 selects one input signal from the three input signals when three or more signals are input as the input signals. The comparison / selection unit 51 selects an input signal in which the abnormality of the main calculation unit 40 is least likely to be undetected in the detection by the comparison unit 20.

このように、比較選択部51は、第1信号と第2信号とを相対的に比較して、一方の入力信号を選択する。よって、比較選択部51は、上記ダイアグ演算部41のように記憶領域を用いることなく、一つの入力信号を選択することができる。つまり、比較選択部51は、冗長演算部50が演算処理を実行する際に用いる記憶部30を用いることなく、一つの入力信号を選択することができる。また、比較選択部51は、第1信号と第2信号とを相対的に比較するだけなので、ダイアグ演算部41よりも処理負荷を軽減できる。   As described above, the comparison / selection unit 51 selects one input signal by relatively comparing the first signal and the second signal. Therefore, the comparison / selection unit 51 can select one input signal without using a storage area, unlike the diagnosis operation unit 41. That is, the comparison / selection unit 51 can select one input signal without using the storage unit 30 used when the redundant calculation unit 50 executes the calculation process. Further, since the comparison / selection unit 51 only compares the first signal and the second signal relatively, the processing load can be reduced as compared with the diagnosis calculation unit 41.

第1制御演算部52及び第2制御演算部53は、本発明の特許請求の範囲における第2演算部に相当し、記憶部30を用いつつ、比較選択部51にて選択された入力信号を用いて冗長演算を実行する。詳述すると、第1制御演算部52及び第2制御演算部53は、冗長演算を実行することで、メイン演算部40が正常に動作しているか否かを監視するための冗長信号を生成する。よって、第1制御演算部52及び第2制御演算部53は、冗長演算として、第1制御演算部42及び第2制御演算部43が実行する制御演算と同様の演算を実行する。但し、第1制御演算部52及び第2制御演算部53は、冗長演算として、第1制御演算部42及び第2制御演算部43が実行する制御演算よりも簡易的な演算を実行するものであってもよい。当然ながら、第1制御演算部52及び第2制御演算部53は、第1制御演算部42及び第2制御演算部43が実行する制御演算よりも簡易的であり、且つ、第1制御演算部42及び第2制御演算部43が実行する制御演算に相関する演算を実行する。   The first control calculation unit 52 and the second control calculation unit 53 correspond to the second calculation unit in the claims of the present invention, and use the storage unit 30 and the input signal selected by the comparison / selection unit 51. To perform redundant operations. More specifically, the first control calculation unit 52 and the second control calculation unit 53 generate redundant signals for monitoring whether or not the main calculation unit 40 is operating normally by executing redundant calculations. . Therefore, the 1st control calculating part 52 and the 2nd control calculating part 53 perform the calculation similar to the control calculation which the 1st control calculating part 42 and the 2nd control calculating part 43 perform as a redundant calculation. However, the 1st control calculating part 52 and the 2nd control calculating part 53 perform simpler calculation than the control calculation which the 1st control calculating part 42 and the 2nd control calculating part 43 perform as a redundant calculation. There may be. Naturally, the first control calculation unit 52 and the second control calculation unit 53 are simpler than the control calculation executed by the first control calculation unit 42 and the second control calculation unit 43, and the first control calculation unit 42 and the calculation which correlates with the control calculation which the 2nd control calculating part 43 performs are performed.

このように、冗長演算部50は、メイン演算部40が正常に動作しているか否かを監視するための冗長信号を生成するものであるため、監視部と言い換えることもできる。なお、この冗長信号は、メイン演算部40が正常に動作していない場合、制御信号の代替信号として用いることもできる。   As described above, the redundant calculation unit 50 generates a redundant signal for monitoring whether or not the main calculation unit 40 is operating normally, and thus can be rephrased as a monitoring unit. This redundant signal can also be used as a substitute signal for the control signal when the main arithmetic unit 40 is not operating normally.

本実施形態では、第2演算部として、第1制御演算部52及び第2制御演算部53を備えた冗長演算部50を採用した。しかしながら、本発明はこれに限定されない。冗長演算部50は、第1制御演算部52及び第2制御演算部53のいずれか一方を有していれば採用できる。つまり、冗長演算部50は、冗長演算を実行する演算部(第2演算部)を少なくとも一つ備えていれば採用できる。よって、冗長演算部50は、冗長演算を実行する演算部(第2演算部)を三つ以上備えていてもよい。   In the present embodiment, the redundant calculation unit 50 including the first control calculation unit 52 and the second control calculation unit 53 is employed as the second calculation unit. However, the present invention is not limited to this. The redundant calculation unit 50 can be employed as long as it has one of the first control calculation unit 52 and the second control calculation unit 53. That is, the redundant calculation unit 50 can be employed as long as it includes at least one calculation unit (second calculation unit) that performs redundant calculation. Therefore, the redundant calculation unit 50 may include three or more calculation units (second calculation units) that perform redundant calculation.

比較部20は、メイン演算部40における制御演算の演算結果と、冗長演算部50における冗長演算の演算結果とが入力される。つまり、比較部20は、制御信号と冗長信号とが入力される。比較部20は、制御信号と冗長信号とを比較して、メイン演算部40の異常を検出する。比較部20は、制御信号が冗長信号よりも所定値以上大きい場合にメイン演算部40は異常であると判定し、制御信号が冗長信号よりも大きくない場合にメイン演算部40は正常であると判定する。このようにして、ECU200は、メイン演算部40が異常であるか否かを検出することができる。なお、ここでは、冗長演算部50は正常に動作しているものとする。   The comparison unit 20 receives the calculation result of the control calculation in the main calculation unit 40 and the calculation result of the redundant calculation in the redundant calculation unit 50. That is, the comparison unit 20 receives the control signal and the redundant signal. The comparison unit 20 compares the control signal and the redundant signal to detect an abnormality in the main calculation unit 40. The comparison unit 20 determines that the main calculation unit 40 is abnormal when the control signal is larger than the redundant signal by a predetermined value or more, and determines that the main calculation unit 40 is normal when the control signal is not larger than the redundant signal. judge. In this way, the ECU 200 can detect whether or not the main calculation unit 40 is abnormal. Here, it is assumed that the redundancy calculation unit 50 operates normally.

また、比較部20によってメイン演算部40が正常であると判定された場合、メイン演算部40から制御信号がアクチュエータ500に出力される。言い換えると、比較部20は、メイン演算部40が正常であると判定した場合、メイン演算部40から出力された制御信号をアクチュエータ500に出力可能とする。   In addition, when the comparison unit 20 determines that the main calculation unit 40 is normal, a control signal is output from the main calculation unit 40 to the actuator 500. In other words, the comparison unit 20 enables the control signal output from the main calculation unit 40 to be output to the actuator 500 when it is determined that the main calculation unit 40 is normal.

しかしながら、比較部20は、メイン演算部40が異常であると判定した場合、アクチュエータ500を停止させたり、フェールセーフを実行したりする。例えば、比較部20は、メイン演算部40が出力した制御信号のかわりに、予め決められた固定値をアクチュエータ500に出力する。また、比較部20は、メイン演算部40が出力した制御信号のかわりに、冗長演算部50が出力した冗長信号をアクチュエータ500に出力してもよい。   However, when the comparison unit 20 determines that the main calculation unit 40 is abnormal, the comparison unit 20 stops the actuator 500 or executes fail-safe. For example, the comparison unit 20 outputs a predetermined fixed value to the actuator 500 instead of the control signal output from the main calculation unit 40. Further, the comparison unit 20 may output the redundant signal output from the redundant calculation unit 50 to the actuator 500 instead of the control signal output from the main calculation unit 40.

このように、ECU200は、メイン演算部40に加えて、冗長演算部50を備えている。そして、メイン演算部40は、ダイアグ演算部41によって保証演算を行う。このため、第1制御演算部42及び第2制御演算部43は、第1信号及び第2信号のうち、正常であると保証された入力信号を用いて制御演算を実行することができる。   As described above, the ECU 200 includes the redundant calculation unit 50 in addition to the main calculation unit 40. The main calculation unit 40 performs a guarantee calculation by the diagnosis calculation unit 41. For this reason, the 1st control calculating part 42 and the 2nd control calculating part 43 can perform a control calculation using the input signal guaranteed to be normal among the 1st signal and the 2nd signal.

これに対して、冗長演算部50は、比較選択部51によって、第1信号及び第2信号を互いに大小比較して、第1信号及び第2信号から一つの入力信号を選択する。そして、第1制御演算部52及び第2制御演算部53は、比較選択部51にて選択された入力信号を用いて冗長演算を実行する。このように、冗長演算部51は、二つの入力信号を互いに比較して、二つの入力信号から一つの入力信号を選択するだけなので、ダイアグ演算部41のように記憶部30を用いる必要がない。従って、ECU200は、処理負荷及び記憶領域(ROMやRAMなどのリソーセス)の増加を抑制することができる。つまり、ECU200は、冗長演算部50が、メイン演算部40に設けられたダイアグ演算部41と同様のダイアグ演算部を有している場合よりも、処理負荷及び記憶領域の増加を抑制することができる。   On the other hand, the redundancy calculation unit 50 compares the first signal and the second signal with each other by the comparison / selection unit 51 and selects one input signal from the first signal and the second signal. Then, the first control calculation unit 52 and the second control calculation unit 53 perform a redundant calculation using the input signal selected by the comparison / selection unit 51. As described above, since the redundant calculation unit 51 compares only two input signals and selects one input signal from the two input signals, it is not necessary to use the storage unit 30 unlike the diagnosis calculation unit 41. . Therefore, the ECU 200 can suppress an increase in processing load and storage area (resources such as ROM and RAM). That is, the ECU 200 suppresses the increase in processing load and storage area, compared to the case where the redundant calculation unit 50 includes a diagnosis calculation unit similar to the diagnosis calculation unit 41 provided in the main calculation unit 40. it can.

また、冗長演算部50は、二つの入力信号を互いに比較して、二つの入力信号から一つの入力信号を選択するだけである。よって、冗長演算部50が実行するプログラは、メイン演算部40が実行するプログラムよりも簡素化することができる。つまり、冗長演算部50が実行するプログラは、メイン演算部40が実行するプログラムよりも容量を小さく(少なく)することができる。従って、ECU200は、冗長演算部50がメイン演算部40に設けられたダイアグ演算部41と同様のダイアグ演算部を有している場合よりも、記憶部30における記憶領域(例えば記憶部30のROM)の増加を抑制できる。   Further, the redundancy calculation unit 50 simply compares two input signals with each other and selects one input signal from the two input signals. Therefore, the program executed by the redundant calculation unit 50 can be simplified more than the program executed by the main calculation unit 40. That is, the program executed by the redundant calculation unit 50 can be smaller (less) than the program executed by the main calculation unit 40. Therefore, the ECU 200 has a storage area in the storage unit 30 (for example, the ROM of the storage unit 30) rather than the case where the redundant calculation unit 50 has a diagnosis calculation unit similar to the diagnosis calculation unit 41 provided in the main calculation unit 40. ) Increase.

なお、ECU200は、特許文献1の第3のレベルのテストを実施するようにしてもよい。つまり、ECU200は、冗長演算部50が正常に動作しているか否かのテストを実施してもよい。この第3のレベルに関しては、特許文献1を参照されたい。   Note that the ECU 200 may perform a third level test of Patent Document 1. That is, the ECU 200 may perform a test as to whether or not the redundant calculation unit 50 is operating normally. For this third level, see US Pat.

この場合、冗長演算部50は、特許文献1の第3のレベルが行うテストの対象範囲となる。しかしながら、冗長演算部50は、メイン演算部40よりも処理負荷が小さいの。よって、このため、ECU200は、特許文献1の第3のレベルのテストを実施する場合、第3のレベルが行うテストの処理を低減できる。   In this case, the redundant calculation unit 50 is a target range of a test performed by the third level of Patent Document 1. However, the redundant calculation unit 50 has a smaller processing load than the main calculation unit 40. Therefore, when performing the third level test of Patent Document 1, the ECU 200 can reduce the test processing performed by the third level.

以上、本発明の好ましい実施形態について説明した。しかしながら、本発明は、上述した実施形態に何ら制限されることはなく、本発明の趣旨を逸脱しない範囲において、種々の変形が可能である。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the embodiments described above, and various modifications can be made without departing from the spirit of the present invention.

(第2実施形態)
次に、図2〜図5に基づいて、第2実施形態におけるECU210を説明する。本実施形態では、本発明をECU210に適用した例を採用している。なお、ECU210は、車両に設けられており、第1アクセルセンサ310又は第2アクセルセンサ410から出力された信号を用いて、エンジンのトルク値を算出するためのトルク演算を実行する制御装置である。つまり、トルク値は、ECU200における制御信号に相当し、トルク演算は、ECU200における制御演算に相当する。
(Second Embodiment)
Next, the ECU 210 according to the second embodiment will be described with reference to FIGS. In this embodiment, the example which applied this invention to ECU210 is employ | adopted. ECU 210 is a control device that is provided in the vehicle and executes torque calculation for calculating the torque value of the engine using the signal output from first accelerator sensor 310 or second accelerator sensor 410. . That is, the torque value corresponds to a control signal in the ECU 200, and the torque calculation corresponds to a control calculation in the ECU 200.

なお、ECU210は、ECU200と同様の箇所が多いので、ECU200と同様の箇所に関する説明は省略する。ここでは、ECU210において、ECU200と異なる点を重点的に説明する。また、ECU210において、ECU200と同様の箇所には、同じ符号を付与する。   Since ECU 210 has many parts similar to ECU 200, a description of parts similar to ECU 200 is omitted. Here, the difference between ECU 210 and ECU 200 will be mainly described. Further, in the ECU 210, the same reference numerals are given to the same portions as the ECU 200.

まず、図2を用いて、ECU210の構成を説明する。ECU210は、主構成要素としてマイコン110を備えている。また、ECU210は、第1アクセルセンサ310、第2アクセルセンサ410、及びアクチュエータ510が電気的に接続されている。ECU210は、第1アクセルセンサ310の検出結果を示す信号、及び第2アクセルセンサ410の検出結果を示す信号が入力される。このように、ECU210は、複数の信号(入力信号)が入力されることになる。   First, the configuration of the ECU 210 will be described with reference to FIG. The ECU 210 includes a microcomputer 110 as a main component. The ECU 210 is electrically connected to the first accelerator sensor 310, the second accelerator sensor 410, and the actuator 510. ECU 210 receives a signal indicating the detection result of first accelerator sensor 310 and a signal indicating the detection result of second accelerator sensor 410. Thus, the ECU 210 receives a plurality of signals (input signals).

第1アクセルセンサ310は、ECU200に接続されている第1センサ300に相当する。同様に、第2アクセルセンサ410は、ECU200に接続されている第2センサ400に相当する。第1アクセルセンサ310及び第2アクセルセンサ410の夫々は、車両に設けられたアクセルの踏み込み量(言い換えると、アクセル開度)を検出し、この踏み込み量に応じた信号を出力する。よって、ECU210は、入力信号として、踏み込み量に応じた信号が入力されることになる。そして、ECU210は、入力された入力信号を用いて、アクチュエータ510に対するトルク値を生成するためのトルク演算を実行する。   The first accelerator sensor 310 corresponds to the first sensor 300 connected to the ECU 200. Similarly, the second accelerator sensor 410 corresponds to the second sensor 400 connected to the ECU 200. Each of the first accelerator sensor 310 and the second accelerator sensor 410 detects the amount of depression of the accelerator provided in the vehicle (in other words, the accelerator opening), and outputs a signal corresponding to the amount of depression. Therefore, ECU 210 receives a signal corresponding to the depression amount as an input signal. Then, ECU 210 performs torque calculation for generating a torque value for actuator 510 using the input signal that has been input.

なお、第1アクセルセンサ310及び第2アクセルセンサ410は、アクセル開度が大きくなるに連れて、ECU210への入力電圧(入力信号)が大きくなるものとする。つまり、ECU210によって制御されるアクチュエータ510は、ECU210への入力電圧が低くなるに連れてトルクが減少する。よって、ECU210が搭載されている車両は、ECU210への入力電圧が低くなるに連れて車両速度は減速することとなる。本実施形態では、第1アクセルセンサ310の検出結果を示す信号を第1信号、第2アクセルセンサ410の検出結果を示す信号を第2信号とも称する。   The first accelerator sensor 310 and the second accelerator sensor 410 assume that the input voltage (input signal) to the ECU 210 increases as the accelerator opening increases. That is, the torque of actuator 510 controlled by ECU 210 decreases as the input voltage to ECU 210 decreases. Therefore, the vehicle speed of the vehicle on which the ECU 210 is mounted decreases as the input voltage to the ECU 210 decreases. In the present embodiment, a signal indicating the detection result of the first accelerator sensor 310 is also referred to as a first signal, and a signal indicating the detection result of the second accelerator sensor 410 is also referred to as a second signal.

マイコン110は、図2に示すように、機能ブロックとして、比較部20、記憶部30、メイン演算部60、冗長演算部70とを備えて構成されている。さらに、メイン演算部60は、ダイアグ演算部61、トルク演算部62を備えて構成されている。また、冗長演算部70は、比較選択部71、トルク演算部72を備えて構成されている。   As illustrated in FIG. 2, the microcomputer 110 includes a comparison unit 20, a storage unit 30, a main calculation unit 60, and a redundant calculation unit 70 as functional blocks. Further, the main calculation unit 60 includes a diagnosis calculation unit 61 and a torque calculation unit 62. The redundancy calculation unit 70 includes a comparison / selection unit 71 and a torque calculation unit 72.

メイン演算部60は、ECU200のメイン演算部40に相当する。よって、メイン演算部60は、ECU200のダイアグ演算部41に相当するダイアグ演算部61と、ECU200の第1制御演算部42及び第2制御演算部43に相当するトルク演算部62とを有している。このトルク演算部62は、ダイアグ演算部61にて正常であることが保証された入力信号を用いて上記トルク演算を実行する。   The main calculation unit 60 corresponds to the main calculation unit 40 of the ECU 200. Therefore, the main calculation unit 60 includes a diagnosis calculation unit 61 corresponding to the diagnosis calculation unit 41 of the ECU 200 and a torque calculation unit 62 corresponding to the first control calculation unit 42 and the second control calculation unit 43 of the ECU 200. Yes. The torque calculation unit 62 performs the torque calculation using the input signal that is guaranteed to be normal by the diagnosis calculation unit 61.

冗長演算部70は、ECU200の冗長演算部50に相当する。よって、冗長演算部70は、ECU200の比較選択部51に相当する比較選択部71と、ECU200の第1制御演算部52及び第2制御演算部53に相当するトルク演算部72とを有している。このトルク演算部72は、比較選択部71にて選択された入力信号を用いて冗長演算を実行する。なお、トルク演算部72は、冗長演算として、トルク演算部62が実行するトルク演算と同様の演算を実行する。但し、トルク演算部72は、冗長演算として、トルク演算部62が実行するトルク演算よりも簡易的なトルク演算を実行するものであってもよい。   The redundant calculation unit 70 corresponds to the redundant calculation unit 50 of the ECU 200. Therefore, the redundancy calculation unit 70 includes a comparison selection unit 71 corresponding to the comparison selection unit 51 of the ECU 200 and a torque calculation unit 72 corresponding to the first control calculation unit 52 and the second control calculation unit 53 of the ECU 200. Yes. The torque calculation unit 72 performs a redundant calculation using the input signal selected by the comparison / selection unit 71. The torque calculation unit 72 performs the same calculation as the torque calculation performed by the torque calculation unit 62 as the redundant calculation. However, the torque calculation unit 72 may execute a simpler torque calculation than the torque calculation performed by the torque calculation unit 62 as the redundant calculation.

ここで、図3を用いて、ECU210の処理動作に関して説明する。ECU210は、所定時間毎に、図3のフローチャートに示す処理を実行する。なお、ステップS10〜S13は、メイン演算部60が実行する処理である。ステップS14〜S17は、冗長演算部70が実行する処理である。そして、ステップS18〜21は、比較部20が実行する処理である。また、ここでは、メイン演算部60の処理の後に、冗長演算部70の処理を行う例を採用している。しかしながら、本発明はこれに限定されない。本発明は、冗長演算部70の処理の後に、メイン演算部60の処理を行ってもよいし、冗長演算部70の処理とメイン演算部60の処理とを並行して行ってもよい。   Here, the processing operation of the ECU 210 will be described with reference to FIG. The ECU 210 executes processing shown in the flowchart of FIG. 3 at every predetermined time. Steps S10 to S13 are processes executed by the main calculation unit 60. Steps S14 to S17 are processes executed by the redundant calculation unit 70. And step S18-21 is the process which the comparison part 20 performs. Here, an example in which the processing of the redundant calculation unit 70 is performed after the processing of the main calculation unit 60 is adopted. However, the present invention is not limited to this. In the present invention, after the processing of the redundant arithmetic unit 70, the processing of the main arithmetic unit 60 may be performed, or the processing of the redundant arithmetic unit 70 and the processing of the main arithmetic unit 60 may be performed in parallel.

ステップS10では、ダイアグ演算部61は、上述のようにダイアグ演算を行う。ステップS11では、ダイアグ演算部61は、異常があるか否かを判定する。そして、ダイアグ演算部61は、正常であると判定した場合はステップS12へ進み、異常があると判定した場合はステップS13へ進む。   In step S10, the diagnosis operation unit 61 performs the diagnosis operation as described above. In step S11, the diagnosis operation unit 61 determines whether there is an abnormality. Then, the diagnosis calculation unit 61 proceeds to step S12 when it is determined to be normal, and proceeds to step S13 when it is determined that there is an abnormality.

なお、ダイアグ演算部61は、異常があると判定した場合は、フラグを立てることで、第1信号及び第2信号の少なくとも一方が異常であることを示すようにしてもよい。このフラグは、センサダイアグフラグと称することもできる。例えば、図4のタイムチャートに示すように、タイミングt1でセンサ異常が発生した場合、ダイアグ演算部61は、タイミングt2で異常があると判定することができる。そして、ダイアグ演算部61は、タイミングt2でセンサダイアグフラグを立てる。このセンサダイアグフラグは、ECU200においても採用できる。   If the diagnosis calculation unit 61 determines that there is an abnormality, it may set a flag to indicate that at least one of the first signal and the second signal is abnormal. This flag can also be referred to as a sensor diagnosis flag. For example, as shown in the time chart of FIG. 4, when a sensor abnormality occurs at timing t1, the diagnosis operation unit 61 can determine that there is an abnormality at timing t2. Then, the diagnosis calculation unit 61 sets a sensor diagnosis flag at timing t2. This sensor diagnosis flag can also be employed in the ECU 200.

ステップS12では、トルク演算部62は、メイントルク演算を実行する。つまり、トルク演算部62は、ダイアグ演算部61にて正常であることが保証された入力信号を用いてトルク演算を実行する。一方、ステップS13では、トルク演算部62は、センサ異常と判定すると共に、固定値を用いて制御演算を実行する(フェールセーフ処置)。   In step S12, the torque calculation unit 62 executes main torque calculation. That is, the torque calculation unit 62 executes the torque calculation using the input signal guaranteed to be normal by the diagnosis calculation unit 61. On the other hand, in step S13, the torque calculation unit 62 determines that the sensor is abnormal, and executes a control calculation using a fixed value (fail-safe treatment).

ステップS14では、比較選択部71は、第1信号と第2信号とを比較する。つまり、比較選択部71は、第1信号が示す電圧値と、第2信号が示す電圧値との大小を比較する。そして、ステップS15では、比較選択部71は、第1信号が第2信号よりも小さいと判定した場合はステップS16へ進み、第2信号が第1信号よりも小さいと判定した場合はステップS17へ進む。   In step S14, the comparison / selection unit 71 compares the first signal with the second signal. That is, the comparison / selection unit 71 compares the voltage value indicated by the first signal with the voltage value indicated by the second signal. In step S15, the comparison / selection unit 71 proceeds to step S16 when determining that the first signal is smaller than the second signal, and proceeds to step S17 when determining that the second signal is smaller than the first signal. move on.

言い換えると、比較選択部71は、第1信号が第2信号よりも小さいと判定した場合、比較部20における検出において、メイン演算部60の異常が最も未検出となりにくい入力信号として第1信号を選択する。つまり、比較選択部71は、第1信号が第2信号よりも小さいと判定した場合、第2信号よりも第1信号の方が、比較部20における検出において、メイン演算部60の異常が未検出となりにくい入力信号とみなす。   In other words, when the comparison / selection unit 71 determines that the first signal is smaller than the second signal, the detection by the comparison unit 20 causes the first signal to be input as an input signal that is most unlikely to cause an abnormality in the main calculation unit 60. select. That is, when the comparison / selection unit 71 determines that the first signal is smaller than the second signal, the first signal is less abnormal than the second signal in the detection by the comparison unit 20. It is regarded as an input signal that is difficult to detect.

同様に、比較選択部71は、第2信号が第1信号よりも小さいと判定した場合、比較部20における検出において、メイン演算部60の異常が最も未検出となりにくい入力信号として第2信号を選択する、と言い換えることができる。つまり、比較選択部71は、第2信号が第1信号よりも小さいと判定した場合、第1信号よりも第2信号の方が、比較部20における検出において、メイン演算部60の異常が未検出となりにくい入力信号とみなす。このようにすることで、本実施形態では、第1信号と第2信号のうち、アクセルペダル開度が小さい方の信号を選択することになる。従って、本実施形態では、第1信号と第2信号のうち、トルク演算部72にて算出されるトルク値が小さくなる方の信号を選択することになる。   Similarly, when the comparison / selection unit 71 determines that the second signal is smaller than the first signal, in the detection by the comparison unit 20, the second signal is input as the input signal that is most unlikely to cause an abnormality in the main calculation unit 60. In other words, select. That is, if the comparison / selection unit 71 determines that the second signal is smaller than the first signal, the second signal is less than the first signal in the detection by the comparison unit 20 and the main calculation unit 60 is not abnormal. It is regarded as an input signal that is difficult to detect. By doing in this way, in this embodiment, a signal with a smaller accelerator pedal opening degree is selected among a 1st signal and a 2nd signal. Therefore, in the present embodiment, a signal having a smaller torque value calculated by the torque calculator 72 is selected from the first signal and the second signal.

ステップS16では、トルク演算部72は、第1信号を用いてトルク演算(冗長演算)を実行する。一方、ステップS17では、トルク演算部72は、第2信号を用いてトルク演算(冗長演算)を実行する。   In step S16, the torque calculation unit 72 performs torque calculation (redundancy calculation) using the first signal. On the other hand, in step S17, the torque calculation unit 72 executes torque calculation (redundancy calculation) using the second signal.

ステップS18では、比較部20は、トルク比較を行う。つまり、比較部20は、メイン演算部60のトルク演算部62が行ったトルク演算の結果と、冗長演算部70のトルク演算部72が行ったトルク演算の結果とを比較する。よって、比較部20は、トルク演算部62が行ったトルク演算の結果が示す電圧値と、トルク演算部72が行ったトルク演算の結果が示す電圧値とを比較することになる。   In step S18, the comparison unit 20 performs torque comparison. That is, the comparison unit 20 compares the result of the torque calculation performed by the torque calculation unit 62 of the main calculation unit 60 with the result of the torque calculation performed by the torque calculation unit 72 of the redundancy calculation unit 70. Therefore, the comparison unit 20 compares the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 62 with the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 72.

ステップS19では、比較部20は、メイン演算結果が冗長演算結果よりも大きいか否かを判定する。つまり、比較部20は、トルク演算部62が行ったトルク演算の結果が示す電圧値が、トルク演算部72が行ったトルク演算の結果が示す電圧値よりも大きいか否かを判定する。そして、比較部20は、メイン演算結果が冗長演算結果よりも大きいと判定した場合はステップS20へ進み、メイン演算結果が冗長演算結果よりも大きくないと判定した場合はステップS21へ進む。   In step S19, the comparison unit 20 determines whether the main calculation result is larger than the redundant calculation result. That is, the comparison unit 20 determines whether or not the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 62 is greater than the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 72. If the comparison unit 20 determines that the main calculation result is larger than the redundant calculation result, the comparison unit 20 proceeds to step S20. If the comparison unit 20 determines that the main calculation result is not larger than the redundant calculation result, the comparison unit 20 proceeds to step S21.

なお、トルク演算部62が行ったトルク演算の結果が示す電圧値は、制御信号に相当するトルク値である。一方、トルク演算部72が行ったトルク演算の結果が示す電圧値は、冗長信号に相当するトルク値である。また、これらのトルク値は、アクチュエータ510を制御する際の目標トルク値である。さらに、これらのトルク値は、アクチュエータ510の制御に必要な目標トルク値、と言い換えることもできる。   Note that the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 62 is a torque value corresponding to the control signal. On the other hand, the voltage value indicated by the result of the torque calculation performed by the torque calculation unit 72 is a torque value corresponding to the redundant signal. These torque values are target torque values when the actuator 510 is controlled. Further, these torque values can be rephrased as target torque values necessary for controlling the actuator 510.

ステップS21では、比較部20は、メイン演算部60から出力された制御信号をアクチュエータ510に出力する。つまり、比較部20は、メイン演算結果が冗長演算結果よりも大きくないと判定した場合はメイン演算部60が正常であるとみなす。そして、比較部20は、メイン演算部60から出力された制御信号をアクチュエータ510に出力可能とする。   In step S <b> 21, the comparison unit 20 outputs the control signal output from the main calculation unit 60 to the actuator 510. That is, the comparison unit 20 considers the main calculation unit 60 to be normal when it determines that the main calculation result is not larger than the redundant calculation result. Then, the comparison unit 20 can output the control signal output from the main calculation unit 60 to the actuator 510.

ステップS20では、比較部20は、演算異常と判定すると共に、フェールセーフ処置を行う。つまり、比較部20は、メイン演算結果が冗長演算結果よりも大きいと判定した場合はメイン演算部60の異常(演算異常)とみなす。例えば、メイン演算部60にて記憶部30の異常などが生じた場合に、演算異常となることがある。なお、記憶部30の異常とは、演算RAM異常などをあげることができる。   In step S20, the comparison unit 20 determines that the operation is abnormal and performs fail-safe treatment. That is, the comparison unit 20 regards the main calculation unit 60 as abnormal (calculation abnormality) when it is determined that the main calculation result is larger than the redundant calculation result. For example, when an abnormality of the storage unit 30 occurs in the main calculation unit 60, a calculation error may occur. Note that the abnormality of the storage unit 30 can be an arithmetic RAM abnormality or the like.

なお、比較部20は、異常とみなした場合、フラグを立てることで、メイン演算部60の演算異常であることを示すようにしてもよい。このフラグは、演算異常フラグと称することもできる。また、この演算異常フラグは、ECU200においても採用できる。   Note that the comparison unit 20 may indicate a calculation abnormality of the main calculation unit 60 by setting a flag when it is regarded as abnormal. This flag can also be referred to as a calculation abnormality flag. The calculation abnormality flag can also be adopted in the ECU 200.

例えば、図5のタイムチャートに示すように、メイン演算部60に異常が生じている場合、タイミングt1でセンサ異常が発生したとしても、ダイアグ演算部61は、タイミングt2で異常があると判定できない。この場合、トルク演算部62は、図5のタイミングt2からt3の間に示されているように、第1信号をメインセンサとして扱う場合、第1信号を用いて、トルク演算を行うことが考えられる。つまり、メイン演算部60は、ダイアグ演算部61がタイミングt2で異常と判定できないため、トルク演算部62によるトルク演算の結果が大きくなってしまう。一方、トルク演算部72は、第2信号を用いてトルク演算を行うことになる。   For example, as shown in the time chart of FIG. 5, when an abnormality occurs in the main calculation unit 60, the diagnosis calculation unit 61 cannot determine that there is an abnormality at the timing t2 even if a sensor abnormality occurs at the timing t1. . In this case, when the first signal is handled as the main sensor, the torque calculation unit 62 may perform torque calculation using the first signal as shown between the timings t2 and t3 in FIG. It is done. That is, the main calculation unit 60 cannot determine that the diagnosis calculation unit 61 is abnormal at the timing t <b> 2, and thus the torque calculation result by the torque calculation unit 62 becomes large. On the other hand, the torque calculation unit 72 performs torque calculation using the second signal.

よって、図5のタイミングt2からt3の間に示されているように、メイン演算結果が冗長演算結果よりも大きくなる。このため、比較部20は、メイン演算結果と冗長演算結果を比較して、メイン演算結果が冗長演算結果よりも大きいと判定し、メイン演算部60の異常とみなす。そして、比較部20は、タイミングt3で演算異常フラグを立てる。このように、ECU210は、メイン演算部60が異常であり、且つ、冗長演算部70がダイアグ演算を行わなくても、比較選択部71が簡易的な大小比較を行うことで、メイン演算部60の異常を検出することができる。なお、ダイアグ演算部61による入力信号の異常判定と、比較部20によるメイン演算部60の異常判定とを切り分ける際には、図4,5のタイムチャートに示すように、メイン演算部を先に確定させることが必要である。   Therefore, as shown between timings t2 and t3 in FIG. 5, the main calculation result is larger than the redundant calculation result. For this reason, the comparison unit 20 compares the main calculation result with the redundant calculation result, determines that the main calculation result is larger than the redundant calculation result, and regards it as an abnormality of the main calculation unit 60. Then, the comparison unit 20 sets an operation abnormality flag at timing t3. As described above, the ECU 210 causes the main calculation unit 60 to perform a simple magnitude comparison even if the main calculation unit 60 is abnormal and the redundant calculation unit 70 does not perform the diagnosis calculation. Abnormalities can be detected. When the abnormality determination of the input signal by the diagnosis calculation unit 61 and the abnormality determination of the main calculation unit 60 by the comparison unit 20 are separated, as shown in the time charts of FIGS. It is necessary to confirm.

そして、比較部20は、メイン演算部60が異常であると判定した場合、例えば、比較部20は、メイン演算部60が出力した制御信号のかわりに、予め決められた固定値をアクチュエータ510に出力する。また、比較部20は、メイン演算部60が出力した制御信号のかわりに、冗長演算部70が出力した冗長信号をアクチュエータ510に出力してもよい。さらに、比較部20は、メイン演算部60が異常であると判定した場合、アクチュエータ510を停止させてもよい。   When the comparison unit 20 determines that the main calculation unit 60 is abnormal, for example, the comparison unit 20 supplies a predetermined fixed value to the actuator 510 instead of the control signal output by the main calculation unit 60. Output. Further, the comparison unit 20 may output the redundant signal output from the redundant calculation unit 70 to the actuator 510 instead of the control signal output from the main calculation unit 60. Furthermore, the comparison unit 20 may stop the actuator 510 when it is determined that the main calculation unit 60 is abnormal.

このように、本実施形態の比較部20は、エンジンのトルク過大状態を検出するものである。比較部20は、比較選択部71が第1信号と第2信号のうち、トルク演算部72にてトルクが大きく算出される方を選択してしまうと、メイン演算部60にて記憶部30の異常などが生じている場合に、この異常を検出できない可能性がある。しかしながら、本発明は、上述のように、比較選択部71が第1信号と第2信号のうち、トルク演算部72にてトルクが小さく算出される方を選択するので、メイン演算部60にて記憶部30の異常などが生じている場合に、この異常を検出しやすい。   Thus, the comparison unit 20 of the present embodiment detects an excessive torque state of the engine. When the comparison / selection unit 71 selects one of the first signal and the second signal for which the torque calculation unit 72 calculates a larger torque, the comparison unit 20 causes the main calculation unit 60 to store the storage unit 30. If an abnormality has occurred, this abnormality may not be detected. However, in the present invention, as described above, the comparison / selection unit 71 selects one of the first signal and the second signal for which the torque calculation unit 72 calculates a smaller torque. When an abnormality or the like of the storage unit 30 occurs, it is easy to detect this abnormality.

また、本実施形態では、アクセル開度が大きくなるに連れて、ECU210への入力電圧(入力信号)が大きくなる第1アクセルセンサ310及び第2アクセルセンサ410を採用した。しかしながら、本発明は、これに限定されない。第1アクセルセンサ310及び第2アクセルセンサ410は、アクセル開度が大きくなるに連れて、ECU210への入力電圧(入力信号)が小さくなるものでも採用できる。但し、この場合、比較選択部71は、第1信号と第2信号のうち、大きい方の信号を選択することになる。   Further, in the present embodiment, the first accelerator sensor 310 and the second accelerator sensor 410 are employed in which the input voltage (input signal) to the ECU 210 increases as the accelerator opening increases. However, the present invention is not limited to this. The first accelerator sensor 310 and the second accelerator sensor 410 can be employed even if the input voltage (input signal) to the ECU 210 decreases as the accelerator opening increases. However, in this case, the comparison / selection unit 71 selects the larger one of the first signal and the second signal.

10 ADC、20 比較部、30 記憶部、40 メイン演算部、41 ダイアグ演算部、42 第1制御演算部,43 第2制御演算部、50 冗長演算部、51 比較選択部、52 第1制御演算部、53 第2制御演算部、100 マイコン、200 ECU、300 第1センサ、400 第2センサ、500 アクチュエータ   10 ADC, 20 comparison unit, 30 storage unit, 40 main calculation unit, 41 diagnostic calculation unit, 42 first control calculation unit, 43 second control calculation unit, 50 redundant calculation unit, 51 comparison selection unit, 52 first control calculation Part, 53 second control operation part, 100 microcomputer, 200 ECU, 300 first sensor, 400 second sensor, 500 actuator

Claims (2)

入力された入力信号を用いて、制御対象(510)に対するエンジンのトルク値を生成するためのトルク演算を実行する制御装置(210)であって、
記憶部(30)と、複数の前記入力信号が入力され前記トルク演算を実行するメイン演算部(60)と、複数の前記入力信号が入力され冗長演算を実行する冗長演算部(70)と、を備え、
前記メイン演算部は、
前記記憶部を用いつつ、複数の前記入力信号が正常であるか否かの入力保証を行うための保証演算を実行する入力保証演算部(61)と、
前記入力保証演算部にて正常であることが保証された前記入力信号を用いて前記トルク演算を実行する第1演算部(62)と、を有し、
前記冗長演算部は、
複数の前記入力信号を互いに比較して、複数の前記入力信号から前記トルク値が小さくなる一つの入力信号を選択する比較選択部(71)と、
前記比較選択部にて選択された前記入力信号を用いて、前記冗長演算として前記トルク値を生成する前記トルク演算を実行する第2演算部(72)と、を有し、
前記第1演算部の演算結果と前記第2演算部の演算結果とを比較して、前記第1演算部の演算結果が前記第2演算部の演算結果よりも大きい場合に、前記メイン演算部が異常であると判定する比較部(20)を備え、
前記比較部は、異常と判定した場合、前記第1演算部の演算結果のかわりに、予め決められた固定値、あるいは、前記第2演算部の演算結果を前記制御対象に出力することを特徴とする制御装置。
A control device ( 210) that executes torque calculation for generating an engine torque value for a control object ( 510) using an input signal that is input,
A storage unit (30), a main calculation unit (60 ) that receives a plurality of the input signals and executes the torque calculation, and a redundant calculation unit (70 ) that receives a plurality of the input signals and executes a redundancy calculation And comprising
The main calculation unit is
An input guarantee operation unit (61 ) for performing a guarantee operation for performing input guarantee as to whether or not the plurality of input signals are normal while using the storage unit;
A first calculation unit (62 ) that executes the torque calculation using the input signal that is guaranteed to be normal by the input guarantee calculation unit;
The redundant operation unit is
A comparison / selection unit (71 ) that compares a plurality of the input signals with each other and selects one input signal having a smaller torque value from the plurality of input signals;
Using the input signal selected by the comparison selecting unit, the second arithmetic unit for executing the torque calculation to generate the torque value as a redundant operation and (7 2), I have a,
When the calculation result of the first calculation unit is compared with the calculation result of the second calculation unit, and the calculation result of the first calculation unit is larger than the calculation result of the second calculation unit, the main calculation unit Is provided with a comparison unit (20) for determining that is abnormal.
When the comparison unit determines that there is an abnormality, the comparison unit outputs a predetermined fixed value or the calculation result of the second calculation unit to the control object instead of the calculation result of the first calculation unit. Control device.
前記比較選択部は、前記比較部における検出において、前記メイン演算部の異常が最も未検出となりにくい入力信号を選択することを特徴とする請求項1に記載の制御装置。 The control device according to claim 1, wherein the comparison / selection unit selects an input signal in which an abnormality of the main calculation unit is least likely to be undetected in detection by the comparison unit .
JP2013120045A 2013-06-06 2013-06-06 Control device Active JP6094387B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013120045A JP6094387B2 (en) 2013-06-06 2013-06-06 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013120045A JP6094387B2 (en) 2013-06-06 2013-06-06 Control device

Publications (2)

Publication Number Publication Date
JP2014238661A JP2014238661A (en) 2014-12-18
JP6094387B2 true JP6094387B2 (en) 2017-03-15

Family

ID=52135792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013120045A Active JP6094387B2 (en) 2013-06-06 2013-06-06 Control device

Country Status (1)

Country Link
JP (1) JP6094387B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6459827B2 (en) * 2015-07-28 2019-01-30 株式会社デンソー Sensor device
JP7221070B2 (en) * 2019-02-07 2023-02-13 日立Astemo株式会社 Electronic control device, control method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01316837A (en) * 1988-06-17 1989-12-21 Toshiba Corp Triplexed programmable controller
DE4220247A1 (en) * 1992-06-20 1993-12-23 Bosch Gmbh Robert Control device for vehicles
DE19609242A1 (en) * 1996-03-09 1997-09-11 Bosch Gmbh Robert Method and device for controlling a drive unit of a vehicle
JP5431235B2 (en) * 2009-08-28 2014-03-05 株式会社日立製作所 Equipment condition monitoring method and apparatus
JP5459370B2 (en) * 2012-08-27 2014-04-02 日本精工株式会社 In-vehicle electronic control unit

Also Published As

Publication number Publication date
JP2014238661A (en) 2014-12-18

Similar Documents

Publication Publication Date Title
JP4709268B2 (en) Multi-core system for vehicle control or control device for internal combustion engine
JP2010218277A5 (en)
US20180102003A1 (en) Vehicular information communication system and vehicular information communication method
JP2010128627A (en) On-vehicle electronic control device
US7424641B2 (en) Control system and method for validating operation of the control system
JP6094387B2 (en) Control device
JP2013143095A (en) Electronic control device, and memory check method
JP2006259935A (en) Computation device with computation abnormality determination function
JP5753824B2 (en) In-vehicle electronic control unit
JP2011145900A (en) Multiprocessor device
JP2014186454A (en) Electronic control device for vehicle
JP5978873B2 (en) Electronic control unit
JP5226653B2 (en) In-vehicle control device
JP6365387B2 (en) Electronic control unit
JP6183251B2 (en) Electronic control unit
JP6075262B2 (en) Control device
JP2012174198A (en) Abnormality detection device and abnormality detection program
JP6522550B2 (en) Electronic control unit
JP2005092621A (en) Electronic control device
JP2007283788A (en) Vehicular electronic control device
JP6090094B2 (en) Information processing device
JP7070206B2 (en) In-vehicle control device
JP2017211812A (en) On-vehicle control apparatus
JP6911372B2 (en) In-vehicle electronic control device
JP5690492B2 (en) In-vehicle control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160808

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: 20170117

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170130

R151 Written notification of patent or utility model registration

Ref document number: 6094387

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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