JP2008121835A - Failure diagnosis device of range position detection device for transmission - Google Patents

Failure diagnosis device of range position detection device for transmission Download PDF

Info

Publication number
JP2008121835A
JP2008121835A JP2006308269A JP2006308269A JP2008121835A JP 2008121835 A JP2008121835 A JP 2008121835A JP 2006308269 A JP2006308269 A JP 2006308269A JP 2006308269 A JP2006308269 A JP 2006308269A JP 2008121835 A JP2008121835 A JP 2008121835A
Authority
JP
Japan
Prior art keywords
range
rngbufpos
range signal
signal
signal pattern
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
JP2006308269A
Other languages
Japanese (ja)
Other versions
JP4926665B2 (en
Inventor
Tomoaki Nitta
智昭 新田
Kenji Hashimoto
健次 橋本
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.)
Subaru Corp
Denso Corp
Original Assignee
Denso Corp
Fuji Heavy Industries Ltd
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, Fuji Heavy Industries Ltd filed Critical Denso Corp
Priority to JP2006308269A priority Critical patent/JP4926665B2/en
Publication of JP2008121835A publication Critical patent/JP2008121835A/en
Application granted granted Critical
Publication of JP4926665B2 publication Critical patent/JP4926665B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To detect failure of respective contacts provided on an inhibitor switch and disconnection of a signal line connected to the respective contacts without erroneous determination. <P>SOLUTION: A previously set constant is multiplied by range signals (S1-S4) represented by binary logic outputted from respective contacts S1-S4 of an inhibitor switch 1 to calculate a range signal pattern RngBufPos (RngBurPos=(S4×2<SP>3</SP>)+(S3×2<SP>2</SP>)+(S2×2<SP>1</SP>)+(S1×2<SP>0</SP>)). The calculated range signal patterns RngBufPos[0], RngBufPos[m] are compared with the range signal pattern in failure respectively (S41, S42). When both range signal patterns RngBufPos[0], RngBufPos[m] are coincident with the range signal pattern in failure, it is investigated whether or not the range signal of the contact for outputting the coincident range signal pattern is varied (S44), and when it is not varied, it is determined as a failure. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、操作レバーの移動を検出する変速機用レンジ位置検出装置の故障の有無を診断する変速機用レンジ位置検出装置の故障診断装置に関する。   The present invention relates to a failure diagnosis device for a transmission range position detecting device for diagnosing whether or not there is a failure in a transmission range position detecting device that detects movement of an operation lever.

従来、車両の自動変速機には、セレクトレバー(「シフトレバー」とも称される)を、パーキング(P)レンジ、リバース(R)レンジ、ニュートラル(N)レンジ、ドライブ(D)等の各レンジ位置にセットしたときのレンジ位置を検出する変速機用レンジ位置検出装置が併設されている。一般に、この種の変速機用レンジ位置検出装置は、複数の接点を有するレンジ位置検出手段(インヒビタスイッチ)を備えており、制御装置では、各接点からの信号に基づいてセレクトレバーのセットされているレンジ位置を検出する。   2. Description of the Related Art Conventionally, an automatic transmission of a vehicle has a select lever (also referred to as a “shift lever”), such as a parking (P) range, a reverse (R) range, a neutral (N) range, and a drive (D) range. A transmission range position detecting device for detecting the range position when the position is set is also provided. In general, this type of transmission range position detecting device includes range position detecting means (inhibitor switch) having a plurality of contacts. In the control device, a select lever is set based on a signal from each contact. Detect the range position.

例えば特許文献1(特開2003−294134号公報)に開示されているレンジ位置検出手段は、セレクトレバーの操作に応動して、2値論理で表されるレンジ信号(ON信号、或いはOFF信号)を出力する4個の接点S1〜S4を有しており、各接点S1〜S4から出力されるレンジ信号の組み合わせパターンを、Pレンジ、Rレンジ、Nレンジ、Dレンジの各レンジ位置毎に変化させるように構成することで、4個の各接点S1〜S4から出力されるレンジ信号の組み合わせパターンに基づいて、セレクトレバーがセットされているレンジ位置を検出するようにしている。   For example, the range position detecting means disclosed in Patent Document 1 (Japanese Patent Laid-Open No. 2003-294134) is a range signal (ON signal or OFF signal) represented by binary logic in response to the operation of the select lever. Has four contacts S1 to S4, and the combination pattern of the range signals output from each contact S1 to S4 changes for each range position of P range, R range, N range, and D range With this configuration, the range position where the select lever is set is detected based on the combination pattern of the range signals output from the four contacts S1 to S4.

更に、特許文献1には、各接点S1〜S4の何れかが故障し、或いは各接点S1〜S4に接続する信号線の何れかが断線しても、Nレンジにおける4個の接点S1〜S4から出力されるレンジ信号の組み合わせパターンが、Pレンジにおける4個の接点S1〜S4から出力されるレンジ信号の組み合わせパターンと一致しないように4個の接点S1〜S4から出力されるレンジ信号の組み合わせパターンを設定する技術が開示されている。その結果、接点S1〜S4の何れかが故障してもNレンジにおいては、Pレンジと異なる信号が必ず出力されることとなり、運転者がセレクトレバーをNレンジにセットしたにも拘わらず、Pレンジと誤解してしまうことが無くなる。   Furthermore, in Patent Document 1, even if any of the contacts S1 to S4 fails or any of the signal lines connected to the contacts S1 to S4 is disconnected, the four contacts S1 to S4 in the N range are disclosed. Combination of range signals output from the four contacts S1 to S4 so that the combination pattern of the range signals output from the four contacts S1 to S4 in the P range does not match the combination pattern of the range signals output from the four contacts S1 to S4 A technique for setting a pattern is disclosed. As a result, even if any of the contacts S1 to S4 fails, a signal different from the P range is always output in the N range, and the driver sets the select lever to the N range. There is no longer a misunderstanding of the range.

しかし、特許文献1に開示されている技術では、各接点S1〜S4から出力されたレンジ信号の組み合わせパターンが、実際とは異なるレンジ位置のパターンと一致する可能性がある。レンジ信号の組み合わせパターンが、実際とは異なるレンジ位置のパターンと一致した場合、各接点S1〜S4の故障(地絡や接触不良等)、或いは各接点S1〜S4に接続するハーネスの断線等を原因とする変速機用レンジ位置検出装置の故障を検出することができないばかりか、運転者がセットしたセレクトレバーのレンジ位置が、実際にセットされているレンジ位置とは別のレンジ位置にセットされていると誤判定してしまうことになる。   However, in the technique disclosed in Patent Document 1, there is a possibility that the combination pattern of the range signals output from the respective contacts S1 to S4 matches the pattern of the range position different from the actual one. When the combination pattern of the range signal matches the pattern of the range position different from the actual, failure of each contact S1 to S4 (such as ground fault or contact failure) or disconnection of the harness connected to each contact S1 to S4 Not only is it not possible to detect the failure of the transmission range position detection device, but the range position of the select lever set by the driver is set to a different range position from the actually set range position. It will be misjudged that it is.

この対策として、例えば特許文献2(特開2005−172118号公報)では、接点S1〜S4を、3個の接点S1〜S3からなる第1グループと、1つの接点S4からなる第2グループとの2グループに区分し、Pレンジ、Rレンジ、Nレンジ、Dレンジの各レンジ位置と、それらの中間状態位置(P−R、R−N、N−D)を表現する3ビットコードを第1グループの3個の接点S1〜S3から出力されるレンジ信号の組み合わせによって設定する技術が開示されている。   As a countermeasure, for example, in Patent Document 2 (Japanese Patent Laid-Open No. 2005-172118), the contacts S1 to S4 are divided into a first group including three contacts S1 to S3 and a second group including one contact S4. Divided into two groups, the first is a 3-bit code that expresses each range position of P range, R range, N range, and D range and their intermediate state positions (PR, RN, ND). A technique for setting by a combination of range signals output from three contacts S1 to S3 of a group is disclosed.

すなわち、特許文献2に開示されている技術では、第1グループの3個の接点S1〜S3は、4つのレンジ位置と3つの中間状態位置において、隣り合う2つの位置間で1つの接点の信号値のみが切り換えられるように構成し、更に、第2グループに区分された接点S4は、セレクトレバーがPレンジ或いはNレンジにセットされたときのみON信号(信号値1)を出力するように構成している。   That is, in the technique disclosed in Patent Document 2, three contact points S1 to S3 of the first group are signals of one contact point between two adjacent positions at four range positions and three intermediate state positions. Only the value is switched, and the contact S4 divided into the second group is configured to output an ON signal (signal value 1) only when the select lever is set to the P range or the N range. is doing.

この特許文献2に開示されている技術によれば、第1グループの3個の接点S1〜S3は、4つのレンジ位置と3つの中間状態位置において、隣り合う2つの位置間で1つの接点の信号値のみが切り換えられるように構成したので、1つの接点の故障(地絡、或いは接触不良)、又は1つの信号線に断線が発生した場合であっても、Pレンジ、Rレンジ、Nレンジ、Dレンジの4つのレンジ位置のパターンが他のレンジ位置のパターンと一致することが無いので、レンジ位置の誤判定を防止することができる。
特開2003−294134号公報 特開2005−172118号公報
According to the technique disclosed in Patent Document 2, the three contacts S1 to S3 of the first group are connected to each other between two adjacent positions at four range positions and three intermediate state positions. Since only the signal value can be switched, even if one contact failure (ground fault or contact failure) or one signal line is broken, P range, R range, N range Since the patterns of the four range positions of the D range do not match the patterns of the other range positions, erroneous determination of the range position can be prevented.
JP 2003-294134 A JP-A-2005-172118

上述した特許文献2に開示されている技術では、隣り合う2つの位置間で1つの接点の信号値のみが切り換えられるように構成されているので、各接点S1〜S4から出力されるレンジ信号の遷移を調べることで、インヒビタスイッチの異常を確実に検出することができる。   In the technique disclosed in Patent Document 2 described above, since the signal value of only one contact is switched between two adjacent positions, the range signal output from each contact S1 to S4 can be changed. By examining the transition, it is possible to reliably detect an abnormality in the inhibitor switch.

しかし、各接点S1〜S4に接続されている信号線の何れか1つにノイズが混入し、当該信号線から誤った信号が出力されて、他のレンジ位置のパターンと一致した場合、レンジ位置が誤判定されてしまう可能性がある。   However, if any one of the signal lines connected to each of the contacts S1 to S4 is mixed with noise, an incorrect signal is output from the signal line and matches the pattern of another range position, the range position May be misjudged.

本発明は、上記事情に鑑み、レンジ位置検出手段に設けられている複数の接点の故障、及び各接点に接続されている信号線の断線はもとより、信号線にノイズが混入されて、誤信号が出力されても、操作レバーのセットされているレンジ位置を他のレンジ位置と誤判定することが無く、しかも故障を確実に検出することのできる変速機用レンジ位置検出装置の故障診断装置を提供することを目的とする。   In view of the above circumstances, the present invention is not limited to failure of a plurality of contacts provided in the range position detecting means, and disconnection of signal lines connected to the respective contacts, and noise is mixed in the signal lines, resulting in erroneous signals. A fault diagnosis device for a range position detection device for a transmission that does not erroneously determine the range position where the control lever is set as another range position and can reliably detect a failure. The purpose is to provide.

上記目的を達成するため本発明による変速機用レンジ位置検出装置の故障診断装置は、操作レバーのレンジ位置に応じて2値論理で表されるレンジ信号を出力する複数の信号発生手段を有するレンジ信号出力手段と、前記各信号発生手段から出力されるレンジ信号の変化に基づいて各信号発生手段の状態遷移を検出する状態遷移検出手段と、前記レンジ信号出力手段から出力される各レンジ信号に前記信号発生手段毎に割り当てられた定数を乗算してレンジ信号パターンを生成するレンジ信号パターン生成手段と、前記レンジ信号パターン生成手段で生成したレンジ信号パターンの遷移履歴に基づき前記レンジ信号出力手段、及び該レンジ信号出力手段に接続されている信号線の故障を検出する故障判定手段とを備えることを特徴とする。   In order to achieve the above object, a failure diagnosis device for a transmission range position detecting device according to the present invention includes a plurality of signal generating means for outputting a range signal represented by a binary logic in accordance with the range position of an operation lever. A signal output means, a state transition detection means for detecting a state transition of each signal generation means based on a change in the range signal output from each signal generation means, and each range signal output from the range signal output means. Range signal pattern generation means for generating a range signal pattern by multiplying a constant assigned for each signal generation means, and the range signal output means based on the transition history of the range signal pattern generated by the range signal pattern generation means, And failure determination means for detecting a failure of the signal line connected to the range signal output means.

本発明によれば、レンジ位置検出手段に設けられている複数の信号発生手段の故障、及び各信号発生手段に接続されている信号線の断線はもとより、信号線にノイズが混入されて誤信号が出力されても、操作レバーのセットされているレンジ位置を他のレンジ位置と誤判定することが無く、故障を確実に検出することができる。   According to the present invention, not only the failure of a plurality of signal generating means provided in the range position detecting means and the disconnection of the signal line connected to each signal generating means, but also noise is mixed in the signal line and an error signal is generated. Even if is output, the range position where the operation lever is set is not erroneously determined as another range position, and the failure can be detected reliably.

以下、図面に基づいて本発明の一実施形態を説明する。図1は自動変速機に設けられている変速機用レンジ位置検出装置の概略構成図である。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic configuration diagram of a transmission range position detection device provided in an automatic transmission.

同図に示すように、変速機用レンジ位置検出装置は、レンジ信号出力手段としてのインヒビタスイッチ1を有し、このインヒビタスイッチ1に設けられているスライドレバー2がリンク3を介して、操作レバーとしてのセレクトレバー4に連結されている。   As shown in the figure, the transmission range position detecting device has an inhibitor switch 1 as a range signal output means, and a slide lever 2 provided on the inhibitor switch 1 is connected to an operation lever via a link 3. Are connected to a select lever 4.

セレクトレバー4は、車両のセンタコンソール(図示せず)等に設けられているレンジエスカッション5に穿設されているセレクトゲート5aに挿通されている。セレクトゲート5aには、セレクトレバー4をセットするPレンジ、Rレンジ、Nレンジ、Dレンジの各レンジ位置が順に形成されており、セレクトレバー4のセットしたレンジ位置がインヒビタスイッチ1にて検出される。   The select lever 4 is inserted through a select gate 5a formed in a range escutcheon 5 provided in a center console (not shown) of the vehicle. Each range position of P range, R range, N range, and D range where the select lever 4 is set is formed in order on the select gate 5a, and the range position set by the select lever 4 is detected by the inhibitor switch 1. The

インヒビタスイッチ1は、4個の信号発生手段としての接点S1〜S4を有しており、各接点S1〜S4は、スライドレバー2に固設された4個の摺動接片6と、絶縁体7上に後述するパターンで配置された固定接片8とで構成されている。尚、各摺動接片6はスライドレバー2に対して絶縁された状態で固設されている。セレクトレバー4をセレクトゲート5aに沿って移動させると、このセレクトレバー4にリンク3を介して連結されているスライドレバー2が同方向へ移動し、このスライドレバー2に固設されている各摺動接片6が所定の位置で固定接片8と接触される。各摺動接片6は信号線Ls1〜Ls4を介して電子制御装置(ECU)10の入力ポートに接続されており、又、各固定接片8がGND配線Lgnd を介してECU10のGND端子(図示せず)に接続されている。   The inhibitor switch 1 has four contacts S1 to S4 as signal generating means. Each of the contacts S1 to S4 includes four sliding contact pieces 6 fixed to the slide lever 2, and an insulator. 7 and fixed contact pieces 8 arranged in a pattern to be described later. Each sliding contact piece 6 is fixed in an insulated state with respect to the slide lever 2. When the select lever 4 is moved along the select gate 5a, the slide lever 2 connected to the select lever 4 via the link 3 moves in the same direction, and each slide fixed to the slide lever 2 is moved. The moving contact piece 6 is brought into contact with the fixed contact piece 8 at a predetermined position. Each sliding contact piece 6 is connected to an input port of an electronic control unit (ECU) 10 via signal lines Ls1 to Ls4, and each fixed contact piece 8 is connected to a GND terminal (a GND terminal) of the ECU 10 via a GND wiring Lgnd. (Not shown).

各固定接片8は、各レンジ位置P,R,N,Dを識別できる位置に配設されており、固定接片8と摺動接片6とが接触すると、その信号が信号線Ls1〜Ls4を介してECU10に出力されて、セレクトレバー4で選択したレンジ位置が検出される。   Each fixed contact piece 8 is disposed at a position where each range position P, R, N, D can be identified. When the fixed contact piece 8 and the sliding contact piece 6 come into contact with each other, the signal is transmitted from the signal lines Ls1 to Ls1. The range position selected by the select lever 4 is detected by being output to the ECU 10 via Ls4.

ECU10は、CPU、ROM、RAM、入出力インターフェース回路等を有する周知のマイクロコンピュータで構成されている。各接点S1〜S4からは、摺動接片6と固定接片8とが接触されるとON信号が出力され、摺動接片6と固定接片8とが非接触状態でOFF信号が出力される。ECU10の入出力インターフェース回路では、各接点S1〜S4から出力されたON信号、或いはOFF信号の2値論理で表されるレンジ信号を波形整形処理し、ON信号の場合は、論理値1のレンジ信号を出力し、OFF信号の場合は論理値0のレンジ信号を出力する。   The ECU 10 includes a known microcomputer having a CPU, ROM, RAM, input / output interface circuit, and the like. Each contact S1 to S4 outputs an ON signal when the sliding contact piece 6 and the fixed contact piece 8 come into contact with each other, and outputs an OFF signal when the sliding contact piece 6 and the fixed contact piece 8 are not in contact with each other. Is done. In the input / output interface circuit of the ECU 10, the range signal represented by the binary logic of the ON signal or the OFF signal output from each contact S1 to S4 is subjected to waveform shaping processing. A signal is output. In the case of an OFF signal, a range signal having a logical value of 0 is output.

インヒビタスイッチ1では、各接点S1〜S4に設けた固定接片8の位置によって、各レンジ位置(P,R,N,D)の検出に加え、P−Rレンジ(PレンジとRレンジとの間の中間状態位置)、R−Nレンジ(RレンジとNレンジとの間の中間状態位置)、N−Dレンジ(NレンジとDレンジとの間の中間状態位置)の3つの中間状態のレンジ位置をも検出する。   In the inhibitor switch 1, in addition to the detection of each range position (P, R, N, D) depending on the position of the fixed contact piece 8 provided at each contact S1 to S4, the PR range (P range and R range) Intermediate state position), RN range (intermediate state position between R range and N range), and ND range (intermediate state position between N range and D range). The range position is also detected.

具体的には、インヒビタスイッチ1に設けられている各接点S1〜S4から出力されるレンジ信号のパターンにより、上述した各レンジ位置P,R,N,D,P−R,R−N,N−Dを検出する。ところで、7つのレンジ位置は、3つの接点から出力されるレンジ信号(「0」、「1」)の組み合わせで識別することができる(2=8)。従って、この7つのレンジ位置は、接点S1〜S3から出力されるレンジ信号で識別することができる。 Specifically, the above-described range positions P, R, N, D, PR, RN, and N are determined according to the pattern of the range signals output from the contacts S1 to S4 provided in the inhibitor switch 1. -D is detected. By the way, the seven range positions can be identified by a combination of range signals (“0”, “1”) output from the three contacts (2 3 = 8). Accordingly, the seven range positions can be identified by the range signals output from the contacts S1 to S3.

図2に、各接点S1〜S4に設けられている固定接片8の配列パターンを示す。同図に示すように、各接点S1〜S3に配列されている固定接片8はグレイコード化できる配列、すなわち、隣り合う2つのレンジ位置間では1つの接点のみが切換えられるような配列となっている。具体的には、接点S1の固定接片8が、PレンジとP−Rレンジとを検出する連続した領域、及びN−DレンジとDレンジとを検出する連続した領域に形成されている。又、接点S2の固定接片8が、P−RレンジとRレンジとR−Nレンジを検出する連続した領域、及びDレンジを検出する領域に形成されている。更に、接点S3の固定接片8が、R−NレンジとNレンジとN−DレンジとDレンジとを検出する連続した領域に形成されている。又、接点S4の固定接片8が、エンジン始動を許可するレンジ位置であるPレンジとNレンジを検出すべく、Pレンジを検出する領域とNレンジを検出する領域とに各々形成されている。   FIG. 2 shows an arrangement pattern of the fixed contact pieces 8 provided at the respective contacts S1 to S4. As shown in the figure, the fixed contact pieces 8 arranged at the respective contacts S1 to S3 can be gray-coded, that is, an arrangement in which only one contact is switched between two adjacent range positions. ing. Specifically, the fixed contact piece 8 of the contact S1 is formed in a continuous region for detecting the P range and the PR range and a continuous region for detecting the ND range and the D range. The fixed contact piece 8 of the contact S2 is formed in a continuous area for detecting the PR range, the R range, and the RN range, and an area for detecting the D range. Furthermore, the fixed contact piece 8 of the contact S3 is formed in a continuous region for detecting the RN range, the N range, the ND range, and the D range. In addition, the fixed contact piece 8 of the contact S4 is formed in an area for detecting the P range and an area for detecting the N range in order to detect the P range and the N range, which are the range positions permitting engine start. .

図3に、セレクトレバー4を操作したときの、インヒビタスイッチ1の各接点S1〜S4から出力される信号(ON/OFF信号)に基づいて生成されるレンジ信号パターンを示す。尚、空欄は論理値0のレンジ信号が出力されている状態を示す。又、図中のP−Uレンジ、PR_0レンジ、RN_Oレンジ、N_Uレンジ、ND_Oレンジ、及び各レンジ位置毎に出力されるレンジ信号については後述する。   FIG. 3 shows a range signal pattern generated based on signals (ON / OFF signals) output from the contacts S1 to S4 of the inhibitor switch 1 when the select lever 4 is operated. Note that the blank indicates a state in which a range signal having a logical value of 0 is being output. In addition, the PU signal, the PR_0 range, the RN_O range, the N_U range, the ND_O range, and the range signal that is output for each range position will be described later.

ところで、各接点S1〜S4から出力されるレンジ信号の組み合わせでは、全てのレンジ信号が「0」を示す信号パターンも考えられるが、本実施形態では、この信号パターンは、レンジ位置を検出する信号パターンから除いている。従って、全ての接点S1〜S4から出力されるレンジ信号が「0」の場合は電源断線と判定することができる。   By the way, in the combination of the range signals output from the respective contacts S1 to S4, a signal pattern in which all the range signals indicate “0” may be considered, but in this embodiment, this signal pattern is a signal for detecting the range position. Excluded from the pattern. Therefore, when the range signals output from all the contacts S1 to S4 are “0”, it can be determined that the power supply is disconnected.

次に、上述したP−Uレンジ、PR_0レンジ、RN_Oレンジ、N_Uレンジ、ND_Oレンジについて説明する。この各レンジ位置は、接点4に形成されている固定接片8の長さが、製造誤差によりPレンジ、Nレンジを検出する領域よりも短く形成され、或いは長く形成された場合に設定されるレンジ位置である。すなわち、PレンジとNレンジとを検出する領域は、接点S1,S2に形成されている各固定接片8の端部で決定されるが、このPレンジとNレンジを検出する領域に製造誤差を有している。更に、接点4に形成されている固定接片8にも製造誤差がある。そのため、この接点4の固定接片8の幅は、Pレンジを検出する領域とNレンジを検出する領域に対して、誤差なく形成することは困難であり、Pレンジを検出する領域とNレンジを検出する領域に対して短く形成され、或いは長く形成されてしまう。   Next, the above-described P-U range, PR_0 range, RN_O range, N_U range, and ND_O range will be described. Each range position is set when the length of the fixed contact piece 8 formed on the contact 4 is formed shorter or longer than the region where the P range and the N range are detected due to a manufacturing error. Range position. That is, the area for detecting the P range and the N range is determined at the end of each fixed contact piece 8 formed at the contact points S1 and S2, but a manufacturing error is detected in the area for detecting the P range and the N range. have. Further, the fixed contact piece 8 formed on the contact 4 has a manufacturing error. For this reason, it is difficult to form the width of the fixed contact piece 8 of the contact 4 with respect to the area where the P range is detected and the area where the N range is detected. It is formed short or long with respect to the region for detecting.

従って、Pレンジを検出する領域に設けられた固定接片8のP−Rレンジ側が短い場合はP−Uレンジが設定され、長い場合はPR−Oレンジが設定される。従って、摺動接片6がP−Uレンジを通過する際は、ECU10において論理値0のレンジ信号が検出され、PR−Oレンジを通過する際は論理値1のレンジ信号が検出される。   Accordingly, the P-U range is set when the PR range side of the fixed contact 8 provided in the region for detecting the P range is short, and the PR-O range is set when it is long. Therefore, when the sliding contact piece 6 passes through the P-U range, a range signal having a logical value of 0 is detected by the ECU 10, and when passing through the PR-O range, a range signal having a logical value of 1 is detected.

又、Nレンジを検出する領域に設けられた固定接片8のR−Nレンジ側が長い場合はPR−Oレンジが設定され、短い場合はN−Uレンジが設定される。従って、摺動接片6がRN−Oレンジを通過する際は、ECU10において論理値1のレンジ信号が検出され、N−Uレンジを通過する際は論理値0のレンジ信号が検出される。一方、Nレンジを検出する領域に設けられた固定接片8のN−Dレンジ側が短い場合はN−Uレンジが設定され、長い場合はND−Oレンジが設定される。この場合、摺動接片6がN−Uレンジを通過する際は、ECU10において論理値0のレンジ信号が検出され、ND−Oレンジを通過する際は論理値1のレンジ信号が検出される。   Further, when the RN range side of the fixed contact 8 provided in the region for detecting the N range is long, the PR-O range is set, and when it is short, the NU range is set. Therefore, when the sliding contact piece 6 passes through the RN-O range, a range signal having a logical value of 1 is detected in the ECU 10, and when passing through the NU range, a range signal having a logical value of 0 is detected. On the other hand, when the ND range side of the fixed contact 8 provided in the region for detecting the N range is short, the NU range is set, and when it is long, the ND-O range is set. In this case, when the sliding contact piece 6 passes through the NU range, the ECU 10 detects a range signal having a logical value of 0, and when passing through the ND-O range, a range signal having a logical value of 1 is detected. .

インヒビタスイッチ1が正常な場合、ECU10では、各接点S1〜S4から出力される信号に基づき、図3に示すようなレンジ信号を検出する。ECU10では、各接点S1〜S4からのレンジ信号の値に対し、予め設定されている定数を乗算して、各レンジ位置毎に数値化したレンジ信号パターンRngBufPosを生成する。尚、各接点S1〜S4からのレンジ信号の値(「1」或いは「0」)を便宜的S1〜S4で表す。   When the inhibitor switch 1 is normal, the ECU 10 detects a range signal as shown in FIG. 3 based on signals output from the contacts S1 to S4. The ECU 10 multiplies the value of the range signal from each of the contacts S1 to S4 by a preset constant to generate a range signal pattern RngBufPos that is digitized for each range position. In addition, the value ("1" or "0") of the range signal from each contact S1-S4 is represented by S1-S4 for convenience.

RngBufPos=(S4×2)+(S3×2)+(S2×2)+(S1×2)…(1)
図3に示すように、インヒビタスイッチ1を構成する各接点S1〜S4から出力されるレンジ信号に基づき算出されるレンジ信号パターンRngBufPosは、正常時においてはPレンジ=9,P_Uレンジ=1,PR_Oレンジ=11,P_Rレンジ=3,Rレンジ=2,R_Nレンジ=6,RN_Oレンジ=14,N_Uレンジ=4,Nレンジ=12,ND_Oレンジ=13,N_Dレンジ=5,Dレンジ=7となる。このように、正常時のレンジ信号パターンでは、レンジ信号パターンRngBufPosとして「0」、「8」、「10」、「15」は、あり得ない信号パターンであり、従って、この信号パターン(RngBufPos=0,8,10,15)が検出された場合は、変速機用レンジ位置検出装置の故障と判断することができる。尚、図4に示すように、電源断線の場合は、インヒビタスイッチ1が正常であっても、信号入力が無いため、ECU10では全てのレンジ信号が「0」となる。
RngBufPos = (S4 × 2 3 ) + (S3 × 2 2 ) + (S2 × 2 1 ) + (S1 × 2 0 ) (1)
As shown in FIG. 3, the range signal pattern RngBufPos calculated based on the range signals output from the contacts S1 to S4 constituting the inhibitor switch 1 is P range = 9, P_U range = 1, PR_O in the normal state. Range = 11, P_R range = 3, R range = 2, R_N range = 6, RN_O range = 14, N_U range = 4, N range = 12, ND_O range = 13, N_D range = 5, D range = 7 . Thus, in the normal range signal pattern, “0”, “8”, “10”, and “15” are impossible signal patterns as the range signal pattern RngBufPos. Therefore, this signal pattern (RngBufPos = If 0, 8, 10, 15) is detected, it can be determined that the transmission range position detecting device is out of order. As shown in FIG. 4, in the case of a power disconnection, even if the inhibitor switch 1 is normal, there is no signal input, so all range signals in the ECU 10 are “0”.

又、図5に、接点S1が接触不良、或いは信号線Ls1が断線した場合(以下、これを「S1系断線」と称する)、及び接点S1が接触固着し、或いは信号線Ls1が地絡した場合(以下、これを「S1系地絡」と称する)に算出されるレンジ信号パターン(故障時レンジ信号パターン)RngBufPosを示す。   Further, in FIG. 5, when the contact S1 is poorly contacted or the signal line Ls1 is disconnected (hereinafter referred to as "S1 system disconnection"), the contact S1 is contacted and fixed, or the signal line Ls1 is grounded. A range signal pattern (failure range signal pattern) RngBufPos calculated in a case (hereinafter referred to as “S1 system ground fault”) is shown.

同図(a)に示すように、S1系断線では、接点S1からのレンジ信号が全て「0」となるため、Pレンジ、P_Uレンジ、PR_Oレンジ、P_Rレンジ、及びND_Oレンジ、N_Dレンジ、Dレンジを検出したレンジ信号パターンRngBufPosが、正常時の値から「2=1」だけ減算した値となる。この場合、Pレンジを検出したレンジ信号パターンRngBufPosは「8」となり、上述したように、これはあり得ない信号パターンであるため、変速機用レンジ位置検出装置の故障と判定することができる。 As shown in FIG. 6A, in the S1 system disconnection, the range signals from the contact S1 are all “0”, so the P range, P_U range, PR_O range, P_R range, ND_O range, N_D range, D The range signal pattern RngBufPos from which the range has been detected is a value obtained by subtracting “2 0 = 1” from the normal value. In this case, the range signal pattern RngBufPos from which the P range is detected is “8”, and as described above, this is an impossible signal pattern, and therefore it can be determined that the transmission range position detection device has failed.

一方、同図(b)に示すように、S1系地絡では、逆に、接点S1からのレンジ信号が全て「1」となるため、Rレンジ、R_Nレンジ、RN_Oレンジ、N_Uレンジ、Nレンジを検出したレンジ信号パターンRngBufPosが、正常時の値よりも「2=1」だけ加算された値となる。 On the other hand, as shown in FIG. 5B, in the S1 system ground fault, the range signals from the contact S1 are all “1”, so the R range, R_N range, RN_O range, N_U range, N range Is a value obtained by adding “2 0 = 1” to the normal value.

又、図6に、接点S2が接触不良、或いは信号線Ls2が断線した場合(以下、これを「S2系断線」と称する)、及び接点S2が接触固着し、或いは信号線Ls2が地絡した場合(以下、これを「S2系地絡」と称する)のレンジ信号パターン(故障時レンジ信号パターン)RngBufPosを示す。   Further, in FIG. 6, when the contact S2 is poorly contacted or the signal line Ls2 is disconnected (hereinafter referred to as "S2 system disconnection"), the contact S2 is contacted and fixed, or the signal line Ls2 is grounded. The range signal pattern (failure range signal pattern) RngBufPos in the case (hereinafter referred to as “S2 system ground fault”) is shown.

同図(a)に示すように、S2系断線では、接点S2からのレンジ信号が全て「0」となるため、PR_Oレンジ、P−Rレンジ、Rレンジ、R_Nレンジ、RN_Oレンジを検出するレンジ信号パターンRngBufPosが、正常時の値から「2=2」だけ減算した値となる。この場合、Rレンジを検出したレンジ信号パターンRngBufPosは「0」となり、これはあり得ない信号パターンであるため、変速機用レンジ位置検出装置の故障と判定することができる。 As shown in FIG. 6A, in the S2 system disconnection, the range signals from the contact S2 are all “0”, so the ranges for detecting the PR_O range, the PR range, the R range, the R_N range, and the RN_O range. The signal pattern RngBufPos is a value obtained by subtracting “2 1 = 2” from the normal value. In this case, the range signal pattern RngBufPos from which the R range has been detected is “0”, which is an impossible signal pattern, and therefore it can be determined that the transmission range position detection device has failed.

一方、同図(b)に示すように、S2系地絡では、逆に、接点S2からのレンジ信号が全て「1」となるため、Pレンジ、P_Uレンジ、N_Uレンジ、Nレンジ、ND_Oレンジを検出するレンジ信号パターンRngBufPosが、正常時の値よりも「2=2」だけ加算された値となる。 On the other hand, as shown in FIG. 5B, in the S2 system ground fault, all the range signals from the contact S2 are “1”, so the P range, the P_U range, the N_U range, the N range, and the ND_O range. The range signal pattern RngBufPos for detecting is a value obtained by adding “2 1 = 2” to the normal value.

又、図7に、接点S3が接触不良、或いは信号線Ls3が断線した場合(以下、これを「S3系断線」と称する)、及び接点S3が接触固着し、或いは信号線Ls3が地絡した場合(以下、これを「S3系地絡」と称する)のレンジ信号パターン(故障時レンジ信号パターン)RngBufPosを示す。   Further, in FIG. 7, when the contact S3 is poorly contacted or the signal line Ls3 is disconnected (hereinafter referred to as "S3 system disconnection"), the contact S3 is contacted and fixed, or the signal line Ls3 is grounded. The range signal pattern (failure range signal pattern) RngBufPos in the case (hereinafter referred to as “S3 system ground fault”) is shown.

同図(a)に示すように、S3系断線では、接点S3からのレンジ信号が全て「0」となるため、R_Nレンジ、RN_Oレンジ、N_Uレンジ、Nレンジ、ND_Oレンジ、Dレンジを検出するレンジ信号パターンRngBufPosが、正常時の値から「2=4」だけ減算した値となる。この場合、Nレンジを検出したレンジ信号パターンRngBufPosは「8」となり、これはあり得ない信号パターンであるため、変速機用レンジ位置検出装置の故障と判定することができる。 As shown in FIG. 5A, in the S3 system disconnection, the range signals from the contact S3 are all “0”, so the R_N range, RN_O range, N_U range, N range, ND_O range, and D range are detected. The range signal pattern RngBufPos is a value obtained by subtracting “2 2 = 4” from the normal value. In this case, the range signal pattern RngBufPos that has detected the N range is “8”, which is an impossible signal pattern, and therefore it can be determined that the transmission range position detection device has failed.

一方、同図(b)に示すように、S3系地絡では、逆に、接点S3からのレンジ信号が全て「1」となるため、Pレンジ、P_Uレンジ、PR_Oレンジ、P−Rレンジ、Rレンジを検出するレンジ信号パターンRngBufPosが、正常時の値よりも「2=4」だけ加算された値となる。 On the other hand, as shown in FIG. 5B, in the S3 system ground fault, on the contrary, all the range signals from the contact S3 are “1”, so that the P range, the P_U range, the PR_O range, the PR range, The range signal pattern RngBufPos for detecting the R range is a value obtained by adding “2 2 = 4” to the normal value.

又、図8に、接点S4が接触不良、或いは信号線Ls4が断線した場合(以下、これを「S4系断線」と称する)、及び接点S4が接触固着し、或いは信号線Ls4が地絡した場合(以下、これを「S4系地絡」と称する)のレンジ信号パターン(故障時レンジ信号パターン)RngBufPosを示す。   Further, in FIG. 8, when the contact S4 is poorly contacted or the signal line Ls4 is disconnected (hereinafter referred to as "S4 system disconnection"), the contact S4 is contacted and fixed, or the signal line Ls4 is grounded. The range signal pattern (failure range signal pattern) RngBufPos in the case (hereinafter referred to as “S4 system ground fault”) is shown.

同図(a)に示すように、S4系断線では、接点S4からのレンジ信号が全て「0」となるため、Pレンジ、PR_Oレンジ、RN_Oレンジ、Nレンジ、ND_Oレンジを検出するレンジ信号パターンRngBufPosが、正常時の値から「2=8」だけ減算した値となる。一方、同図(b)に示すように、S4系地絡では、逆に、接点S4からのレンジ信号が全て「1」となるため、P_Uレンジ、P−Rレンジ、Rレンジ、R−Nレンジ、N_Uレンジ、N−Dレンジ、Dレンジを検出するレンジ信号パターンRngBufPosが、正常時の値よりも「2=8」だけ加算された値となる。この場合、Rレンジを検出したレンジ信号パターンRngBufPosは「10」となり、Dレンジを検出したレンジ信号パターンRngBufPosは「15」となり、これはあり得ない信号パターンであるため、変速機用レンジ位置検出装置の故障と判定することができる。 As shown in FIG. 5A, in the S4 system disconnection, the range signals from the contact S4 are all “0”, so the range signal pattern for detecting the P range, the PR_O range, the RN_O range, the N range, and the ND_O range. RngBufPos is a value obtained by subtracting “2 3 = 8” from the normal value. On the other hand, as shown in FIG. 5B, in the S4 system ground fault, the range signals from the contact S4 are all “1”, so that the P_U range, the PR range, the R range, and the RN The range signal pattern RngBufPos for detecting the range, the N_U range, the ND range, and the D range is a value obtained by adding “2 3 = 8” to the normal value. In this case, the range signal pattern RngBufPos that has detected the R range is “10”, and the range signal pattern RngBufPos that has detected the D range is “15”, which is an impossible signal pattern. It can be determined that the device has failed.

ECU10では、各接点S1〜S4から出力されるレンジ信号に基づいて算出したレンジ信号パターンRngBufPos、及びこのレンジ信号パターンRngBufPosの遷移履歴から変速機用レンジ位置検出装置の故障診断を行う。   The ECU 10 performs failure diagnosis of the transmission range position detection device from the range signal pattern RngBufPos calculated based on the range signals output from the contacts S1 to S4 and the transition history of the range signal pattern RngBufPos.

ECU10で実行される故障診断処理は、具体的には、図9〜図14に示すフローチャートに従って行われる。   Specifically, the failure diagnosis process executed by the ECU 10 is performed according to the flowcharts shown in FIGS.

[電源断線、S1系断線、S2系断線、S3系断線、S4系地絡判定]
イグニッションスイッチがONされると、先ず、図9に示すレンジ信号パターン異常判定処理ルーチンが実行される。このレンジ信号パターン異常判定処理ルーチンは、設定演算周期(例えば10[ms])毎に起動され、あり得ない信号パターン(OrgRng=0.8,10,15)から電源断線、S1系断線、S2系断線、S3系断線、S4系地絡を原因とする故障を検出する。
[Power disconnection, S1 system disconnection, S2 system disconnection, S3 system disconnection, S4 system ground fault determination]
When the ignition switch is turned on, first, a range signal pattern abnormality determination processing routine shown in FIG. 9 is executed. This range signal pattern abnormality determination processing routine is started every set calculation cycle (for example, 10 [ms]), and power supply disconnection, S1 system disconnection, and S2 from an impossible signal pattern (OrgRng = 0.8, 10, 15). Faults caused by system disconnection, S3 system disconnection, and S4 system ground fault are detected.

先ず、ステップS11で、インヒビタスイッチ1に設けられている各接点S1〜S4から出力されるレンジ信号に基づきレンジ信号パターンOrgRngを算出する。レンジ信号パターンOrgRngは、あり得ない信号パターン(OrgRng=0.8,10,15)を検出するためのレンジ信号値であり、上述したレンジ信号パターンRngBufPosと同値である。従って、その算出方法は、上述した(1)式で求めることができるため説明を省略する。   First, in step S11, a range signal pattern OrgRng is calculated based on the range signals output from the contacts S1 to S4 provided in the inhibitor switch 1. The range signal pattern OrgRng is a range signal value for detecting an impossible signal pattern (OrgRng = 0.8, 10, 15) and has the same value as the above-described range signal pattern RngBufPos. Therefore, since the calculation method can be obtained by the above-described equation (1), description thereof is omitted.

次いで、ステップS12で、レンジ信号パターン異常フラグxRNGNGPATTがセットされているか否かを調べる。尚、このレンジ信号パターン異常フラグxRNGNGPATTの初期値は0である。そして、xRNGNGPATT=1の既にレンジ信号パターン異常が検出されている場合は、そのままルーチンを抜ける。又、xRNGNGPATT=0の未だレンジ信号パターン異常が検出されていない場合は、ステップS13へ進む。   Next, in step S12, it is checked whether or not the range signal pattern abnormality flag xRNGNGPATT is set. The initial value of the range signal pattern abnormality flag xRNGNGPATT is 0. If a range signal pattern abnormality of xRNGNGPATT = 1 has already been detected, the routine is exited as it is. On the other hand, if the range signal pattern abnormality of xRNGNGPATT = 0 has not been detected yet, the process proceeds to step S13.

ステップS13へ進むと、ステップS13〜S16において、レンジ信号パターンOrgRngがあり得ない信号パターンを示すレンジ信号値0,8,10,15の何れかを示しているか否かを調べる。そして、何れのレンジ信号値0,8,10,15も示していない場合は、そのままルーチンを抜ける。一方、レンジ信号パターンOrgRngがレンジ信号値0,8,10,15うちの何れかを示している場合(OrgRng=0,8,10,15)は、ステップS17へジャンプする。   Proceeding to step S13, in steps S13 to S16, it is checked whether or not any of the range signal values 0, 8, 10, and 15 indicating a signal pattern in which the range signal pattern OrgRng cannot be present. If none of the range signal values 0, 8, 10, 15 are indicated, the routine is exited as it is. On the other hand, if the range signal pattern OrgRng indicates one of the range signal values 0, 8, 10, and 15 (OrgRng = 0, 8, 10, 15), the process jumps to step S17.

尚、上述したように、あり得ない信号パターン(OrgRng=0.8,10,15)は、電源断線(図4参照)、S1系断線(図5(a)参照)、S2系断線(図6(a)参照)、S3系断線(図7(a)参照)、S4系地絡(図8(b))が原因で発生することが予め判明しているため、本ルーチンでレンジ信号パターン異常が検出された場合、故障原因をある程度絞り込むことができる。   As described above, the impossible signal pattern (OrgRng = 0.8, 10, 15) includes power supply disconnection (see FIG. 4), S1 system disconnection (see FIG. 5A), and S2 system disconnection (see FIG. 4). 6 (a)), S3 system disconnection (refer to FIG. 7 (a)), and S4 system ground fault (FIG. 8 (b)) are known in advance. When an abnormality is detected, the cause of failure can be narrowed down to some extent.

ステップS17へジャンプすると、前回算出したレンジ信号パターンOrgRng[O]と、今回のレンジ信号パターンOrgRngとを比較し、OrgRng[O]=OrgRngのときは、ステップS18へ進む。又、OrgRng[O]≠OrgRngのときは、ステップS19へ分岐し、今回のレンジ信号パターンOrgRngで、前回のレンジ信号パターンOrgRng[O]を更新し(OrgRng[O]←OrgRng)、ステップS20でカウンタのカウント値Cをクリアして(C←0)、ルーチンを抜ける。   When jumping to step S17, the previously calculated range signal pattern OrgRng [O] is compared with the current range signal pattern OrgRng. If OrgRng [O] = OrgRng, the process proceeds to step S18. If OrgRng [O] ≠ OrgRng, the process branches to step S19, and the previous range signal pattern OrgRng [O] is updated with the current range signal pattern OrgRng (OrgRng [O] ← OrgRng). The count value C of the counter is cleared (C ← 0), and the routine is exited.

一方、ステップS17からステップS18へ進むと、カウンタのカウント値Cをインクリメントし(C←C+1)、ステップS21で、カウント値Cと設定値n(例えばn=5)とを比較し、C<nのときは、そのままルーチンを抜ける。一方、C=nのときは、レンジ信号パターン異常(電源断線、S1系断線、S2系断線、S3系断線、S4系地絡の何れかが原因による)と判定し、ステップS22へ進み、レンジ信号パターン異常フラグxRNGNGPATTをセットして(xRNGNGPATT←1)、ルーチンを抜ける。   On the other hand, when the process proceeds from step S17 to step S18, the count value C of the counter is incremented (C ← C + 1), and in step S21, the count value C is compared with the set value n (for example, n = 5), and C <n If it is, exit the routine as it is. On the other hand, when C = n, it is determined that the range signal pattern is abnormal (caused by any of power supply disconnection, S1 system disconnection, S2 system disconnection, S3 system disconnection, S4 system ground fault), and the process proceeds to step S22. Set signal pattern error flag xRNGNGPATT (xRNGNGPATT ← 1) and exit the routine.

このように、本実施形態では、正常時のレンジ信号パターンではあり得ない信号パターン(OrgRng=0.8,10,15)が検出され、且つ同じレンジ信号パターンOrgRngが設定回数(n)検出された場合、異常と判定するので、インヒビタスイッチ1を含む変速機用レンジ位置検出装置全体の故障を、早期で、しかも誤判定なく検出することができる。   Thus, in the present embodiment, a signal pattern (OrgRng = 0.8, 10, 15) that cannot be a normal range signal pattern is detected, and the same range signal pattern OrgRng is detected a set number of times (n). In this case, since it is determined as abnormal, a failure of the entire transmission range position detecting device including the inhibitor switch 1 can be detected at an early stage and without erroneous determination.

又、図10〜図14に示すフローチャートにおいて、上述した故障原因(電源断線、S1系断線、S2系断線、S3系断線、S4系地絡)以外の原因、すなわち、S1系地絡(図5(b)参照)、S2系地絡(図6(b)参照)、S3系地絡(図7(b)参照)、S4系断線(図8(a)参照)による故障を調べる。これらが原因で故障した場合に算出されるレンジ信号パターンRngBufPosは、正常時においても算出される値であるため(図3参照)、レンジ信号パターンRngBufPosの履歴から、このレンジ信号パターンRngBufPosの組み合わせの状態遷移を調べて、故障の有無を判定する。   In addition, in the flowcharts shown in FIG. 10 to FIG. 14, causes other than the above-mentioned failure causes (power supply disconnection, S1 system disconnection, S2 system disconnection, S3 system disconnection, S4 system ground fault), that is, S1 system ground fault (FIG. 5). (See (b)), S2 system ground fault (see FIG. 6 (b)), S3 system ground fault (see FIG. 7 (b)), and S4 system disconnection (see FIG. 8 (a)). Since the range signal pattern RngBufPos calculated in the case of failure due to these is a value calculated even in the normal state (see FIG. 3), the combination of the range signal pattern RngBufPos is obtained from the history of the range signal pattern RngBufPos. The state transition is examined to determine whether there is a failure.

図10に示すレンジ信号状態遷移フラグセット処理ルーチンは、操作者(一般的には、「運転者」であるため、以下においては「運転者」と称して説明する)が、セレクトレバー4を操作して、インヒビタスイッチ1の各接点S1〜S4から出力されるレンジ信号が変化する毎に起動される。尚、レンジ信号状態遷移フラグセット処理ルーチンが起動されるに際し、後述する各信号フラグxS1,xS2,xS3,xS4は全てクリアされる(xS1←0,xS2←0,xS3←0,xS4←0)。   The range signal state transition flag set processing routine shown in FIG. 10 is performed by an operator (generally, “driver” and will be described as “driver” in the following). And it is started whenever the range signal output from each contact S1-S4 of the inhibitor switch 1 changes. When the range signal state transition flag set processing routine is started, all signal flags xS1, xS2, xS3, and xS4 described later are cleared (xS1 ← 0, xS2 ← 0, xS3 ← 0, xS4 ← 0). .

先ず、ステップS31〜S33で、変化した信号は、接点S1〜S4の何れから出力されたか否かを調べる。この場合、図2に示すように、例えば運転者がセレクトレバー4をPレンジからRレンジへ移動させると、Pレンジを検出する領域からP−Rレンジを検出する領域の境界においては、接点2のレンジ信号の論理値が0から1に遷移し、又、接点S4のレンジ信号の論理値が1から0に遷移する。しかし、上述したように、製造誤差により、接点S4の固定接片8がPレンジを検出する領域に対して短く形成され、或いは長く形成される場合もある。   First, in steps S31 to S33, it is checked whether the changed signal is output from any of the contacts S1 to S4. In this case, as shown in FIG. 2, for example, when the driver moves the select lever 4 from the P range to the R range, the contact 2 at the boundary between the P range detection area and the PR range detection area. The logic value of the range signal at 0 transitions from 0 to 1, and the logic value of the range signal at the contact S4 transitions from 1 to 0. However, as described above, due to manufacturing errors, the fixed contact piece 8 of the contact S4 may be formed shorter or longer than the region where the P range is detected.

接点S4の固定接片8がPレンジを検出する領域に対して短い場合は、P_Uレンジが形成されるため最初に接点S4の遷移が検出され、次いで、接点S2の遷移が検出される。又、接点S4の固定接片8がPレンジを検出する領域に対して長い場合は、P_Oレンジが形成されるため、最初に接点S2の遷移が検出され、次いで、接点S4の遷移が検出される。   When the fixed contact piece 8 of the contact S4 is short with respect to the region for detecting the P range, the transition of the contact S4 is detected first because the P_U range is formed, and then the transition of the contact S2 is detected. Further, when the fixed contact piece 8 of the contact S4 is long with respect to the region for detecting the P range, the P_O range is formed, so that the transition of the contact S2 is detected first, and then the transition of the contact S4 is detected. The

このことは、Nレンジを検出する領域でも同様であり、運転者がセレクトレバー4をRレンジからNレンジへ移動させたとき、接点S4の固定接片8がR−Nレンジ側へ長い場合は、RN_Oレンジが形成されるため、最初に接点S4の遷移が検出され、次いで、接点S2の遷移が検出される。又、固定接片8が短い場合は、N_Uレンジが形成されるため、最初に接点S2の遷移が検出され、次いで、接点S4の遷移が検出される。又、接点S4の固定接片8がN−Dレンジ側で短い場合は、N_Uレンジが形成されるため、最初に接点S4の遷移が検出され、次いで、接点S1の遷移が検出される。又、固定接片8がN−Dレンジ側で短い場合は、当該領域にN_Uレンジが形成されるため、最初に接点S4の遷移が検出され、次いで、接点S1の遷移が検出される。又、固定接片8がN−Dレンジ側に長い場合は、当該領域にND_Oレンジが形成されるため、最初に接点S1の遷移が検出され、次いで、接点S4の遷移が検出される。   The same applies to the region where the N range is detected. When the driver moves the select lever 4 from the R range to the N range, the fixed contact piece 8 of the contact S4 is long toward the RN range. , The RN_O range is formed, so that the transition of the contact S4 is first detected, and then the transition of the contact S2 is detected. When the fixed contact piece 8 is short, the N_U range is formed, so that the transition of the contact S2 is first detected, and then the transition of the contact S4 is detected. Further, when the fixed contact piece 8 of the contact S4 is short on the ND range side, the N_U range is formed, so that the transition of the contact S4 is detected first, and then the transition of the contact S1 is detected. Further, when the fixed contact piece 8 is short on the ND range side, the N_U range is formed in the area, so that the transition of the contact S4 is first detected, and then the transition of the contact S1 is detected. In addition, when the fixed contact piece 8 is long on the ND range side, the ND_O range is formed in the area, so that the transition of the contact S1 is first detected, and then the transition of the contact S4 is detected.

尚、以下においては、各接点S1〜S4から出力されるレンジ信号を、便宜的にS1信号、S2信号、S3信号、S4信号と称する。   In the following, the range signals output from the contacts S1 to S4 are referred to as S1, S2, S3, and S4 signals for convenience.

そして、S1信号の状態遷移と判定したときは、ステップS34へ進み、S1信号フラグxS1をセットして(xS1←1)、ステップS38へ進む。又、S2信号の状態遷移と判定したときは、ステップS35へ進み、S2信号フラグxS2をセットして(xS2←1)、ステップS38へ進む。又、S3信号の状態遷移と判定したときは、ステップS36へ進み、S3信号フラグxS3をセットして(xS3←1)、ステップS38へ進む。又、S4信号の状態遷移と判定したときは、ステップS37へ進み、S4信号フラグxS4をセットして(xS4←1)、ステップS38へ進む。尚、ステップS31〜S37での処理が、状態遷移検出手段に相当する。   When it is determined that the state of the S1 signal is transitioned, the process proceeds to step S34, the S1 signal flag xS1 is set (xS1 ← 1), and the process proceeds to step S38. If it is determined that the state of the S2 signal is transitioned, the process proceeds to step S35, the S2 signal flag xS2 is set (xS2 ← 1), and the process proceeds to step S38. When it is determined that the state transition of the S3 signal has been made, the process proceeds to step S36, the S3 signal flag xS3 is set (xS3 ← 1), and the process proceeds to step S38. When it is determined that the state transition of the S4 signal is detected, the process proceeds to step S37, the S4 signal flag xS4 is set (xS4 ← 1), and the process proceeds to step S38. Note that the processing in steps S31 to S37 corresponds to state transition detection means.

そして、ステップS34〜S37の何れかからステップS38へ進むと、前回までに算出したレンジ信号パターンRngBufPosを順次繰り上げる。尚、このレンジ信号パターンRngBufPosは20遷移前までを順次バッファする(RngBufPos[n+1]=RngBufPos[n](n=18→0))。   Then, when the process proceeds from any one of steps S34 to S37 to step S38, the range signal pattern RngBufPos calculated up to the previous time is sequentially advanced. The range signal pattern RngBufPos sequentially buffers up to 20 transitions (RngBufPos [n + 1] = RngBufPos [n] (n = 18 → 0)).

次いで、ステップS39へ進み、上述した(1)式に基づき、今回のレンジ信号パターンRngBufPos[O]を算出し(RngBufPos[O]=(S4×2)+(S3×2)+(S2×2)+(S1×2))、ルーチンを抜ける。尚、ステップS38,S39での処理がレンジ信号パターン生成手段に相当する。 Next, the process proceeds to step S39, where the current range signal pattern RngBufPos [O] is calculated based on the above-described equation (1) (RngBufPos [O] = (S4 × 2 3 ) + (S3 × 2 2 ) + (S2). × 2 1 ) + (S1 × 2 0 )), exit the routine. Note that the processing in steps S38 and S39 corresponds to range signal pattern generation means.

次に、図11〜図14に示すレンジ信号状態遷移異常判定処理ルーチンについて説明する。このルーチンは遷移していないレンジ信号から状態遷移異常を検出するもので、設定演算周期(例えば10[ms])毎に起動される。又、このレンジ信号状態遷移異常判定処理ルーチンでの処理が故障判定手段に相当する。   Next, the range signal state transition abnormality determination routine shown in FIGS. 11 to 14 will be described. This routine detects a state transition abnormality from a range signal that has not changed, and is started every set calculation cycle (for example, 10 [ms]). The processing in the range signal state transition abnormality determination processing routine corresponds to the failure determination means.

[S1系地絡判定(D→P)]
先ず、ステップS41〜S44で、セレクトレバー4をDレンジからPレンジ方向へ操作した際のS1系地絡判定を行う。ステップS41では、現在(最新)のレンジ信号パターンRngBufPos[O]の値が「9」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=9は、正常遷移(各接点S1〜S4からのレンジ信号が正常に検出されている状態)、S1系地絡、S2系断線、S3系断線、S4系地絡で検出されている。従って、RngBufPos[O]=9のときは、S1系地絡による故障の可能性があるため、ステップS42へ進む。一方、RngBufPos[O]≠9のときは、S1系地絡の可能性がないため、ステップS45へジャンプする。
[S1 ground fault judgment (D → P)]
First, in steps S41 to S44, S1 ground fault determination is performed when the select lever 4 is operated from the D range to the P range. In step S41, it is checked whether or not the value of the current (latest) range signal pattern RngBufPos [O] is “9”. As shown in FIGS. 3 to 8, RngBufPos [O] = 9 is normal transition (a state where the range signals from the respective contacts S1 to S4 are normally detected), S1 system ground fault, S2 system disconnection, S3 It is detected by system disconnection and S4 system ground fault. Accordingly, when RngBufPos [O] = 9, there is a possibility of a failure due to the S1 system ground fault, so the process proceeds to step S42. On the other hand, when RngBufPos [O] ≠ 9, there is no possibility of S1 system ground fault, so the process jumps to step S45.

ステップS42へ進むと、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「7」があるか否かを調べる。図3〜図8に示すように、RngBufPos[m]=7(且つRngBufPos[O]=9)は、正常遷移とS1系地絡との何れで検出されている。   In step S42, it is checked whether “7” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [m] = 7 (and RngBufPos [O] = 9) is detected by either the normal transition or the S1 system ground fault.

そして、RngBufPos[m]=7と判定したときは、S1系地絡による故障の可能性があるため、ステップS43へ進む。一方、RngBufPos[m]≠7のときは、S1系地絡の可能性がないため、ステップS45へジャンプする。   And when it determines with RngBufPos [m] = 7, since there exists a possibility of a failure by S1 system ground fault, it progresses to step S43. On the other hand, when RngBufPos [m] ≠ 7, there is no possibility of an S1 ground fault, and the process jumps to step S45.

ところで、車両を運転するに際し、多くの場合、セレクトレバー4がPレンジにセットされている状態でイグニッションスイッチをONし、このセレクトレバー4をDレンジにセットした状態で発進する。又、駐車するに際しては、Dレンジにセットされているセレクトレバー4をPレンジに戻して、イグニッションスイッチをOFFする。従って、1ドライブサイクル(イグニッションスイッチをONした後イグニッションスイッチをOFFするまでの間)においては、レンジ位置がPレンジからDレンジの間で、少なくとも一回は往復されていることになる。その結果、図3に示すように、記録されているレンジ信号パターンRngBufPosに「9」と「7」が存在していれば、正常遷移においては、1ドライブサイクル中に、PレンジからDレンジまで全てのレンジ位置が遷移され、その際、各レンジ位置を示すレンジ信号パターンRngBufPosが検出される。   By the way, when driving the vehicle, in many cases, the ignition switch is turned on with the select lever 4 set in the P range, and the vehicle starts with the select lever 4 set in the D range. When parking, the select lever 4 set in the D range is returned to the P range, and the ignition switch is turned OFF. Therefore, in one drive cycle (between turning on the ignition switch and turning off the ignition switch), the range position is reciprocated at least once between the P range and the D range. As a result, as shown in FIG. 3, if “9” and “7” are present in the recorded range signal pattern RngBufPos, in normal transition, from the P range to the D range in one drive cycle. All range positions are changed, and at this time, a range signal pattern RngBufPos indicating each range position is detected.

そして、ステップS43へ進むと、RngBufPos[m]=7以降であって、RngBufPos[O]=9以前のRngBufPos[k](K=(m−1)→1)に「9」が検出されているか否かを調べる。そして、RngBufPos[k]≠9のときは、ステップS44へ進み、又、RngBufPos[k]=9のときは、ステップS45へジャンプする。   Then, when the process proceeds to step S43, “9” is detected in RngBufPos [m] = 7 or later and RngBufPos [O] = 9 or earlier before RngBufPos [k] (K = (m−1) → 1). Check whether there is any. When RngBufPos [k] ≠ 9, the process proceeds to step S44, and when RngBufPos [k] = 9, the process jumps to step S45.

そして、ステップS44へ進むと、S1信号フラグxS1がセットされているか否かを調べ、セットされているとき(xS1=1)は、接点S1の遷移が検出されているため、S1系地絡ではないと判定し、ステップS45へ進む。一方、xS1≠1、すなわち、xS1=0の場合は、接点S1の遷移が検出されていないため、S1系地絡と判定し、ステップS49へ進み、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when proceeding to step S44, it is checked whether or not the S1 signal flag xS1 is set. When it is set (xS1 = 1), since the transition of the contact S1 is detected, It determines with there not being, and progresses to step S45. On the other hand, if xS1 ≠ 1, that is, xS1 = 0, since the transition of the contact S1 is not detected, it is determined that there is an S1 system ground fault, the process proceeds to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

又、1ドライビングサイクル中に複数回故障診断を行なうためには、DレンジからPレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、DレンジからPレンジに遷移し、再びDレンジに至らずにPレンジに遷移した場合(Ex.D→P→R→P)は一度目のPレンジで状態遷移フラグがクリアされるため、2度目のPレンジで故障を誤検出する。よって、ステップS43の処理は、S1の診断の機会を充分に確保するとともに誤診断を防止することができる。   In order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the D range and the P range. In this case, when transitioning from the D range to the P range and transitioning to the P range without reaching the D range again (Ex. D → P → R → P), the state transition flag is cleared in the first P range. Therefore, a fault is erroneously detected in the second P range. Therefore, the process of step S43 can secure a sufficient opportunity for diagnosis of S1 and prevent misdiagnosis.

[S2系地絡判定(D→P)]
そして、ステップS41〜S44の何れかからステップS45へ進むと、ステップS45〜S48で、セレクトレバー4をDレンジからPレンジ方向へ操作した際のS2系地絡判定を行う。
[S2 ground fault judgment (D → P)]
Then, when the process proceeds from any of Steps S41 to S44 to Step S45, S2 ground fault determination is performed in Steps S45 to S48 when the select lever 4 is operated from the D range to the P range.

先ず、ステップS45では、最新のレンジ信号パターンRngBufPos[O]が「11」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=11は、正常遷移、S1系地絡、S2系地絡、S3系断線、S4系地絡で検出される。従って、RngBufPos[O]=11のときは、S2系地絡による故障の可能性があるため、ステップS46へ進む。一方、RngBufPos[O]≠11のときは、S2系地絡と判定できないため、ステップS50へジャンプする。   First, in step S45, it is checked whether or not the latest range signal pattern RngBufPos [O] is “11”. As shown in FIGS. 3 to 8, RngBufPos [O] = 11 is detected by normal transition, S1 ground fault, S2 ground fault, S3 disconnection, and S4 ground fault. Accordingly, when RngBufPos [O] = 11, there is a possibility of a failure due to the S2 system ground fault, so the process proceeds to step S46. On the other hand, when RngBufPos [O] ≠ 11, it cannot be determined that the S2 ground fault has occurred, and the process jumps to step S50.

ステップS46へ進むと、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「7」があるか否かを調べる。図3〜図8に示すように、RngBufPos[m]=7(且つRngBufPos[O]=11)は、正常遷移とS1系地絡とS2系地絡との何れかで検出されている。更に、正常遷移とS1系地絡では少なくとも2度以上S2信号が遷移する機会がある。しかし、S1系地絡については、上述したステップS41〜S44において既に判定しているため、ここでは、正常遷移とS2系地絡との何れかとなる。   In step S46, it is checked whether “7” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [m] = 7 (and RngBufPos [O] = 11) is detected in any of the normal transition, the S1 ground fault, and the S2 ground fault. Furthermore, there is an opportunity for the S2 signal to transition at least twice or more in the normal transition and the S1 ground fault. However, since the S1 ground fault has already been determined in the above-described steps S41 to S44, here, it is either a normal transition or an S2 ground fault.

そして、RngBufPos[m]=7と判定したときは、S2系地絡による故障の可能性があるため、ステップS47へ進む。一方、RngBufPos[m]≠7のときは、S2系地絡と判定できないため、ステップS50へジャンプする。   When it is determined that RngBufPos [m] = 7, there is a possibility of a failure due to the S2 system ground fault, and the process proceeds to step S47. On the other hand, when RngBufPos [m] ≠ 7, it cannot be determined that the S2 ground fault has occurred, and the process jumps to step S50.

ステップS47へ進むと、RngBufPos[m]=7以降であって、RngBufPos[O]=11以前のRngBufPos[k](K=(m−1)→1)に「11」が検出されているか否かを調べる。そして、RngBufPos[k]≠11のときは、ステップS48へ進み、又、RngBufPos[k]=11のときは、ステップS50へジャンプする。   In step S47, whether or not “11” is detected in RngBufPos [m] = 7 or later and RngBufPos [O] = 11 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. When RngBufPos [k] ≠ 11, the process proceeds to step S48, and when RngBufPos [k] = 11, the process jumps to step S50.

更に、1ドライビングサイクル中に複数回故障診断を行なうためには、DレンジからPレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、DレンジからPレンジに遷移し、再びDレンジに至らずにPレンジに遷移した場合(Ex.D→PR_O→R→PR_O)は一度目のPレンジで状態遷移フラグがクリアされるため、2度目のPレンジで故障を誤検出する。よって、ステップS47の処理は、S2の診断の機会を充分に確保するとともに誤診断を防止することができる。   Furthermore, in order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the D range and the P range. In this case, when the transition is made from the D range to the P range and the transition is made to the P range without reaching the D range again (Ex.D → PR_O → R → PR_O), the state transition flag is cleared in the first P range. Therefore, a fault is erroneously detected in the second P range. Therefore, the process of step S47 can secure a sufficient opportunity for the diagnosis of S2 and prevent misdiagnosis.

そして、ステップS47からステップS48へ進むと、S2信号フラグxS2がセットされているか否かを調べ、セットされているとき(xS2=1)は、接点S2の遷移が検出されているため、S2系地絡ではないと判定し、ステップS50へ進む。一方、xS2≠1、すなわち、xS2=0の場合は、接点S2の遷移が検出されていないため、S2系地絡と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when the process proceeds from step S47 to step S48, it is checked whether or not the S2 signal flag xS2 is set. When the S2 signal flag xS2 is set (xS2 = 1), the transition of the contact S2 is detected. It determines with it not being a ground fault, and progresses to step S50. On the other hand, if xS2 ≠ 1, that is, xS2 = 0, since the transition of the contact S2 is not detected, it is determined that there is an S2 ground fault, the process returns to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

[S4系断線判定(D→P)]
ステップS45〜S48の何れかからステップS50へ進むと、ステップS50〜S53で、セレクトレバー4をDレンジからPレンジ方向へ操作した際のS4系断線判定を行う。
[S4 system disconnection judgment (D → P)]
When the process proceeds from any of steps S45 to S48 to step S50, in step S50 to S53, an S4 disconnection determination is performed when the select lever 4 is operated from the D range to the P range.

先ず、ステップS50では、最新のレンジ信号パターンRngBufPos[O]が「1」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=1は、正常遷移、S1系地絡、S2系断線、S3系断線、S4系断線で検出される。従って、RngBufPos[O]=1のときは、S4系断線による故障の可能性があるため、ステップS51へ進む。一方、RngBufPos[O]≠1のときは、S4系断線と判定できないため、ステップS54へジャンプする。   First, in step S50, it is checked whether or not the latest range signal pattern RngBufPos [O] is “1”. As shown in FIGS. 3 to 8, RngBufPos [O] = 1 is detected by normal transition, S1 system ground fault, S2 system disconnection, S3 system disconnection, and S4 system disconnection. Accordingly, when RngBufPos [O] = 1, there is a possibility of a failure due to the S4 system disconnection, so the process proceeds to step S51. On the other hand, when RngBufPos [O] ≠ 1, since it cannot be determined that the S4 system is disconnected, the process jumps to step S54.

ステップS51へ進むと、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「7」があるか否かを調べる。図3〜図8に示すように、RngBufPos[m]=7(且つRngBufPos[O]=1)は、正常遷移とS1系地絡とS4系断線との何れかで検出されている。更に、正常遷移とS1系地絡では少なくとも2度以上S4信号が遷移する機会がある。しかし、S1系地絡については、上述したステップS41〜S44において既に判定しているため、ここでは、正常遷移とS4系断線との何れかとなる。   In step S51, it is checked whether “7” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [m] = 7 (and RngBufPos [O] = 1) is detected in any of the normal transition, the S1 system ground fault, and the S4 system disconnection. Furthermore, there is an opportunity for the S4 signal to transition at least twice or more in the normal transition and the S1 ground fault. However, since the S1 system ground fault has already been determined in the above-described steps S41 to S44, here, either the normal transition or the S4 system disconnection occurs.

そして、RngBufPos[m]=7と判定したときは、S4系断線による故障の可能性があるため、ステップS52へ進む。一方、RngBufPos[m]≠7のときは、S4系断線と判定できないため、ステップS54へジャンプする。   When it is determined that RngBufPos [m] = 7, there is a possibility of failure due to the S4 disconnection, and the process proceeds to step S52. On the other hand, when RngBufPos [m] ≠ 7, since it cannot be determined that the S4 system is disconnected, the process jumps to step S54.

ステップS52へ進むと、RngBufPos[m]=7以降であって、RngBufPos[O]=1以前のRngBufPos[k](K=(m−1)→1)に「1」が検出されているか否かを調べる。そして、RngBufPos[k]≠1のときは、ステップS53へ進み、又、RngBufPos[k]=1のときは、ステップS54へジャンプする。   In step S52, whether or not “1” is detected in RngBufPos [m] = 7 or later and RngBufPos [O] = 1 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. When RngBufPos [k] ≠ 1, the process proceeds to step S53, and when RngBufPos [k] = 1, the process jumps to step S54.

更に、1ドライビングサイクル中に複数回故障診断を行なうためには、DレンジからPレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、DレンジからPレンジに遷移し、再びDレンジに至らずにPレンジに遷移した場合(Ex.D→P_U→R→P_U)は一度目のPレンジで状態遷移フラグがクリアされるため、2度目のPレンジで故障を誤検出する。よって、ステップS52の処理は、S4の診断の機会を充分に確保するとともに誤診断を防止することができる。   Furthermore, in order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the D range and the P range. In this case, when the transition is made from the D range to the P range and the transition is made to the P range without reaching the D range again (Ex.D → P_U → R → P_U), the state transition flag is cleared in the first P range. Therefore, a fault is erroneously detected in the second P range. Therefore, the process of step S52 can secure a sufficient opportunity for the diagnosis of S4 and prevent misdiagnosis.

そして、ステップS52からステップS53へ進むと、S4信号フラグxS4がセットされているか否かを調べ、セットされているとき(xS4=1)は、接点S4の遷移が検出されているため、S4系断線ではないと判定し、ステップS54へ進む。一方、xS4≠1、すなわち、xS4=0の場合は、接点S4の遷移が検出されていないため、S4系断線と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when the process proceeds from step S52 to step S53, it is checked whether or not the S4 signal flag xS4 is set. When the S4 signal flag xS4 is set (xS4 = 1), the transition of the contact S4 is detected. It determines with it not being a disconnection, and progresses to step S54. On the other hand, if xS4 ≠ 1, i.e., xS4 = 0, the transition of the contact S4 is not detected, so it is determined that the S4 system is disconnected, and the process returns to step S49 to set the range signal transition abnormality flag xRNNGTRANN (xRNGNGTRAN ← 1) Exit the routine.

[S1系地絡判定(P→D)]
ステップS50〜S53の何れかからステップS54へ進むと、ステップS54〜S57で、セレクトレバー4をPレンジからDレンジ方向へ操作した際のS1系地絡判定を行う。
[S1 ground fault judgment (P → D)]
When the process proceeds from any of Steps S50 to S53 to Step S54, S1 ground fault determination is performed in Steps S54 to S57 when the select lever 4 is operated from the P range to the D range.

先ず、ステップS54では、最新のレンジ信号パターンRngBufPos[O]が「7」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=7は、正常遷移、S1系地絡、S2系地絡、S3系地絡、S4系断線で検出される。従って、RngBufPos[O]=7のときは、S1系地絡による故障の可能性があるため、ステップS55へ進む。一方、RngBufPos[O]≠7のときは、S1系地絡と判定できないため、ステップS64へジャンプする。   First, in step S54, it is checked whether or not the latest range signal pattern RngBufPos [O] is “7”. As shown in FIGS. 3 to 8, RngBufPos [O] = 7 is detected by normal transition, S1 ground fault, S2 ground fault, S3 ground fault, and S4 disconnection. Accordingly, when RngBufPos [O] = 7, there is a possibility of a failure due to the S1 system ground fault, and the process proceeds to step S55. On the other hand, when RngBufPos [O] ≠ 7, it cannot be determined that the S1 ground fault has occurred, and the process jumps to step S64.

ステップS55へ進むと、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「9」があるか否かを調べる。図3〜図8に示すように、レンジ信号パターンRngBufPos[m]=9(且つRngBufPos[O]=7)は、正常遷移とS1系地絡との何れかで検出されている。   In step S55, it is checked whether or not “9” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, the range signal pattern RngBufPos [m] = 9 (and RngBufPos [O] = 7) is detected in either the normal transition or the S1 system ground fault.

そして、RngBufPos[m]=9と判定したときは、S1系地絡による故障の可能性があるため、ステップS56へ進む。一方、RngBufPos[m]≠9のときは、S1系地絡と判定できないため、ステップS58へジャンプする。   If it is determined that RngBufPos [m] = 9, there is a possibility of a failure due to the S1 system ground fault, and the process proceeds to step S56. On the other hand, when RngBufPos [m] ≠ 9, it cannot be determined that the S1 ground fault has occurred, and the process jumps to step S58.

ステップS56へ進むと、RngBufPos[m]=9以降であって、RngBufPos[O]=7以前のRngBufPos[k](K=(m−1)→1)に「7」が検出されているか否かを調べる。そして、RngBufPos[k]≠7のときは、ステップS57へ進み、又、RngBufPos[k]=7のときは、ステップS58へジャンプする。   Proceeding to step S56, whether or not “7” is detected in RngBufPos [m] = 9 or later and RngBufPos [O] = 7 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. If RngBufPos [k] ≠ 7, the process proceeds to step S57. If RngBufPos [k] = 7, the process jumps to step S58.

又、1ドライビングサイクル中に複数回故障診断を行なうためには、PレンジからDレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、PレンジからDレンジに遷移し、再びPレンジに至らずにDレンジに遷移した場合(Ex.P→D→ND→D)は一度目のDレンジで状態遷移フラグがクリアされるため、2度目のDレンジで故障を誤検出する。よって、ステップS56の処理は、S1の診断の機会を充分に確保するとともに誤診断を防止することができる。   In order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the P range and the D range. In this case, when the transition is made from the P range to the D range and the transition is made to the D range without reaching the P range again (Ex.P → D → ND → D), the state transition flag is cleared in the first D range. Therefore, a fault is erroneously detected in the second D range. Therefore, the process of step S56 can secure a sufficient opportunity for diagnosis of S1 and prevent erroneous diagnosis.

そして、ステップS56からステップS57へ進むと、S1信号フラグxS1がセットされているか否かを調べ、セットされているとき(xS1=1)は、接点S1の遷移が検出されているため、S1系地絡ではないと判定し、ステップS58へ進む。一方、xS1≠1、すなわち、xS1=0の場合は、接点S1の遷移が検出されていないため、S1系地絡と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when the process proceeds from step S56 to step S57, it is checked whether or not the S1 signal flag xS1 is set. When the S1 signal flag xS1 is set (xS1 = 1), the transition of the contact S1 is detected. It determines with it not being a ground fault, and progresses to step S58. On the other hand, if xS1 ≠ 1, that is, xS1 = 0, since the transition of the contact S1 is not detected, it is determined that there is an S1 ground fault, the process returns to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

[S2系地絡判定(P→D)]
ステップS55〜S57の何れかからステップS58へ進むと、ステップS58〜S60で、セレクトレバー4をPレンジからDレンジ方向へ操作した際のS2系地絡判定を行う。
[S2 ground fault judgment (P → D)]
When the process proceeds from any of steps S55 to S57 to step S58, an S2 ground fault determination is performed in steps S58 to S60 when the select lever 4 is operated from the P range to the D range.

ステップS58では、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「11」があるか否かを調べる。図3〜図8に示すように、RngBufPos[m]=11(且つRngBufPos[O]=7)は、正常遷移とS1系地絡とS2系地絡との何れかで検出されている。又、正常遷移とS1系地絡では少なくとも2度以上S2信号が遷移する機会がある。しかし、S1系地絡については、ステップS54〜S57において既に判定しているため、ここでは、正常遷移とS2系地絡との何れかとなる。   In step S58, it is checked whether or not “11” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [m] = 11 (and RngBufPos [O] = 7) is detected in any of the normal transition, the S1 ground fault, and the S2 ground fault. In addition, there is an opportunity for the S2 signal to transition at least twice or more between the normal transition and the S1 ground fault. However, since the S1 system ground fault has already been determined in steps S54 to S57, it is either a normal transition or an S2 system ground fault.

そして、RngBufPos[m]=11と判定したときは、S2系地絡による故障の可能性があるため、ステップS59へ進む。一方、RngBufPos[m]≠11のときは、S2系地絡と判定できないため、ステップS61へジャンプする。   If it is determined that RngBufPos [m] = 11, there is a possibility of a failure due to the S2 system ground fault, and the process proceeds to step S59. On the other hand, when RngBufPos [m] ≠ 11, it cannot be determined that the S2 ground fault has occurred, and the process jumps to step S61.

ステップS59へ進むと、RngBufPos[m]=11以降であって、RngBufPos[O]=7以前のRngBufPos[k](K=(m−1)→1)に「7」が検出されているか否かを調べる。そして、RngBufPos[k]≠7のときは、ステップS60へ進み、又、RngBufPos[k]=7のときは、ステップS61へ進む。   In step S59, whether or not “7” is detected in RngBufPos [m] = 11 or later and RngBufPos [O] = 7 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. When RngBufPos [k] ≠ 7, the process proceeds to step S60, and when RngBufPos [k] = 7, the process proceeds to step S61.

又、1ドライビングサイクル中に複数回故障診断を行なうためには、PレンジからDレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、PレンジからDレンジに遷移し、再びPレンジに至らずにDレンジに遷移した場合(Ex.PR_O→D→ND→D)は一度目のDレンジで状態遷移フラグがクリアされるため、2度目のDレンジで故障を誤検出する。よって、ステップS59の処理は、S2の診断の機会を充分に確保するとともに誤診断を防止することができる。   In order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the P range and the D range. In this case, when the transition is made from the P range to the D range and the transition is made to the D range without reaching the P range again (Ex.PR_O → D → ND → D), the state transition flag is cleared in the first D range. Therefore, a fault is erroneously detected in the second D range. Therefore, the process of step S59 can secure a sufficient opportunity for the diagnosis of S2 and prevent misdiagnosis.

そして、ステップS59からステップS60へ進むと、S1信号フラグxS2がセットされているか否かを調べ、セットされているとき(xS2=1)は、接点S2の遷移が検出されているため、S2系地絡ではないと判定し、ステップS61へ進む。一方、xS2≠1、すなわち、xS2=0の場合は、接点S2の遷移が検出されていないため、S2系地絡と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when the process proceeds from step S59 to step S60, it is checked whether or not the S1 signal flag xS2 is set. When the S1 signal flag xS2 is set (xS2 = 1), the transition of the contact S2 is detected. It determines with it not being a ground fault, and progresses to step S61. On the other hand, if xS2 ≠ 1, that is, xS2 = 0, since the transition of the contact S2 is not detected, it is determined that there is an S2 ground fault, the process returns to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

[S4系断線判定(P→D)]
ステップS58〜S60の何れかからステップS61へ進むと、ステップS61〜S63で、セレクトレバー4をPレンジからDレンジ方向へ操作した際のS4系断線判定を行う。
[S4 system disconnection judgment (P → D)]
When the process proceeds from any of steps S58 to S60 to step S61, in step S61 to S63, S4 disconnection determination is performed when the select lever 4 is operated from the P range to the D range.

ステップS61では、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「1」があるか否かを調べる。図3〜図8に示すように、RngBufPos[m]=1(且つRngBufPos[O]=7)は、正常遷移とS1系地絡とS4系断線との何れかで検出されている。又、正常遷移とS1系地絡では少なくとも2度以上S4信号が遷移する機会がある。しかし、S1系地絡については、ステップS54〜S57において既に判定しているため、ここでは、正常遷移とS4系断線との何れかとなる。   In step S61, it is checked whether or not “1” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [m] = 1 (and RngBufPos [O] = 7) is detected by any one of the normal transition, the S1 system ground fault, and the S4 system disconnection. In addition, there is an opportunity for the S4 signal to transition at least twice or more during normal transition and S1 ground fault. However, since the S1 system ground fault has already been determined in steps S54 to S57, either the normal transition or the S4 system disconnection occurs here.

そして、RngBufPos[m]=1と判定したときは、S4系断線による故障の可能性があるため、ステップS62へ進む。一方、RngBufPos[m]≠1のときは、S4系断線と判定できないため、ステップS64へジャンプする。   If it is determined that RngBufPos [m] = 1, there is a possibility of a failure due to the S4 disconnection, and the process proceeds to step S62. On the other hand, when RngBufPos [m] ≠ 1, since it cannot be determined that the S4 system is disconnected, the process jumps to step S64.

ステップS62へ進むと、RngBufPos[m]=1以降であって、RngBufPos[O]=7以前のRngBufPos[k](K=(m−1)→1)に「7」が検出されているか否かを調べる。そして、RngBufPos[k]≠7のときは、ステップS63へ進み、又、RngBufPos[k]=7のときは、ステップS64へ進む。   In step S62, whether or not “7” is detected in RngBufPos [m] = 1 or later and RngBufPos [O] = 7 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. When RngBufPos [k] ≠ 7, the process proceeds to step S63, and when RngBufPos [k] = 7, the process proceeds to step S64.

又、1ドライビングサイクル中に複数回故障診断を行なうためには、PレンジからDレンジ間で故障診断が行なわれる度に状態遷移フラグをクリアする必要がある。この場合、PレンジからDレンジに遷移し、再びPレンジに至らずにDレンジに遷移した場合(Ex.P_U→D→ND→D)は一度目のDレンジで状態遷移フラグがクリアされるため、2度目のDレンジで故障を誤検出する。   In order to perform failure diagnosis multiple times during one driving cycle, it is necessary to clear the state transition flag every time failure diagnosis is performed between the P range and the D range. In this case, when the transition is made from the P range to the D range and the transition is made to the D range without reaching the P range again (Ex.P_U → D → ND → D), the state transition flag is cleared in the first D range. Therefore, a fault is erroneously detected in the second D range.

そして、ステップS62からステップS63へ進むと、S4信号フラグxS4がセットされているか否かを調べ、セットされているとき(xS4=1)は、接点S4の遷移が検出されているため、S4系断線ではないと判定し、ステップS61へ進む。一方、xS4≠1、すなわち、xS4=0の場合は、接点S4の遷移が検出されていないため、S4系断線と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Then, when the process proceeds from step S62 to step S63, it is checked whether or not the S4 signal flag xS4 is set. When it is set (xS4 = 1), since the transition of the contact S4 is detected, the S4 system It determines with it not being a disconnection, and progresses to step S61. On the other hand, if xS4 ≠ 1, i.e., xS4 = 0, the transition of the contact S4 is not detected, so it is determined that the S4 system is disconnected, and the process returns to step S49 to set the range signal transition abnormality flag xRNNGTRANN (xRNGNGTRAN ← 1) Exit the routine.

[S3系地絡判定(N→P)]
ステップS54、或いはステップS61〜S63の何れかからステップS64へ進むと、ステップS64〜S68で、セレクトレバー4をNレンジからPレンジ方向へ操作した際のS3系地絡判定を行う。
[S3 ground fault judgment (N → P)]
When the process proceeds from step S54 or any of steps S61 to S63 to step S64, S3 ground fault determination is performed in steps S64 to S68 when the select lever 4 is operated from the N range to the P range.

先ず、ステップS64では、最新のレンジ信号パターンRngBufPos[O]が「13」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=13は、正常遷移、S1系地絡、S2系断線、S3系地絡、S4系地絡で検出されている。従って、RngBufPos[O]=13のときは、S3系地絡による故障の可能性があるため、ステップS65へ進む。一方、RngBufPos[O]≠13のときは、S3系地絡と判定できないため、ステップS69へジャンプする。   First, in step S64, it is checked whether or not the latest range signal pattern RngBufPos [O] is “13”. As shown in FIGS. 3 to 8, RngBufPos [O] = 13 is detected by normal transition, S1 system ground fault, S2 system disconnection, S3 system ground fault, and S4 system ground fault. Accordingly, when RngBufPos [O] = 13, there is a possibility of a failure due to the S3 system ground fault, so the process proceeds to step S65. On the other hand, when RngBufPos [O] ≠ 13, since it cannot be determined that the S3 ground fault has occurred, the process jumps to step S69.

ステップS65では、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「12」があるか否かを調べる。図3〜図8に示すように、RngBufPos[O]=13、且つRngBufPos[m]=12は、正常遷移、S2系断線、S3系地絡、S4系地絡で検出される。   In step S65, it is checked whether “12” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [O] = 13 and RngBufPos [m] = 12 are detected by normal transition, S2 system disconnection, S3 system ground fault, and S4 system ground fault.

そして、RngBufPos[m]=12と判定したときは、S3系地絡による故障の可能性があるため、ステップS66へ進む。一方、RngBufPos[m]≠12のときは、S3系地絡と判定できないため、ステップS69へジャンプする。   When it is determined that RngBufPos [m] = 12, there is a possibility of a failure due to the S3 system ground fault, and the process proceeds to step S66. On the other hand, when RngBufPos [m] ≠ 12, it cannot be determined that the S3 ground fault has occurred, and the process jumps to step S69.

ステップS66へ進むと、RngBufPos[m]=12以降であって、RngBufPos[O]=13以前のRngBufPos[k](K=(m−1)→1)に「13」が検出されているか否かを調べる。そして、RngBufPos[k]≠13のときは、ステップS67へ進み、又、RngBufPos[k]=13のときは、ステップS69へ進む。   In step S66, whether or not “13” is detected in RngBufPos [m] = 12 or later and RngBufPos [O] = 13 or earlier in RngBufPos [k] (K = (m−1) → 1). Find out. When RngBufPos [k] ≠ 13, the process proceeds to step S67, and when RngBufPos [k] = 13, the process proceeds to step S69.

そして、ステップS67へ進むと、RngBufPos[m]=12以降であって、RngBufPos[O]=13以前のRngBufPos[j](j=(m−1)→1)に「6」が検出されているか否かを調べる。図2に示すように、接点S3は、R−NレンジからDレンジに亘って連続形成されているため、この区間では、レンジ信号パターンRngBufPosの値が変化しても、接点S3から出力されるレンジ信号は遷移しないため、正常遷移でも、S3系地絡を誤検出してしまう可能性がある。   In step S67, “6” is detected in RngBufPos [m] = 12 or later and RngBufPos [O] = 13 or earlier in RngBufPos [j] (j = (m−1) → 1). Check whether there is any. As shown in FIG. 2, since the contact S3 is continuously formed from the RN range to the D range, even if the value of the range signal pattern RngBufPos changes in this section, the contact S3 is output from the contact S3. Since the range signal does not transition, there is a possibility that the S3 ground fault may be erroneously detected even in normal transition.

そのため、ステップS67において、現在のレンジ信号パターンRngBufPos[O](「13」)と過去履歴のレンジ信号パターンRngBufPos[m](「12」)との間に、RngBufPos[j]=6が検知されている否かを調べることで、現在のレンジ信号パターンRngBufPos[O](「13」)がPレンジ位置で検出されたものか否かを調べ、誤検出を防止する。   Therefore, in step S67, RngBufPos [j] = 6 is detected between the current range signal pattern RngBufPos [O] (“13”) and the past history range signal pattern RngBufPos [m] (“12”). By checking whether or not the current range signal pattern RngBufPos [O] (“13”) is detected at the P range position, it is possible to prevent erroneous detection.

そして、RngBufPos[j]=6が検出されているときは、ステップS68へ進み、又、RngBufPos[j]≠6のときは、誤検出を防止するため、ステップS69へ進む。   If RngBufPos [j] = 6 is detected, the process proceeds to step S68. If RngBufPos [j] ≠ 6, the process proceeds to step S69 to prevent erroneous detection.

ステップS68へ進むと、S3信号フラグxS3がセットされているか否かを調べ、セットされているとき(xS3=1)は、接点S3の遷移が検出されているため、S3系地絡ではないと判定し、ステップS69へ進む。一方、xS3≠1、すなわち、xS3=0の場合は、接点S3の遷移が検出されていないため、S3系地絡と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Proceeding to step S68, it is checked whether or not the S3 signal flag xS3 is set. If it is set (xS3 = 1), the transition of the contact S3 is detected, so that it is not an S3 system ground fault. Determine and proceed to step S69. On the other hand, if xS3 ≠ 1, that is, xS3 = 0, the transition of the contact S3 has not been detected, so it is determined that there is an S3 system ground fault, the process returns to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

[S3系地絡判定(P→N)]
ステップS64〜S68の何れかからステップS69へ進むと、ステップS69〜S73で、今度はセレクトレバー4をPレンジからNレンジ方向へ操作した際のS3系地絡判定を行う。
[S3 ground fault judgment (P → N)]
When the process proceeds from any one of steps S64 to S68 to step S69, in step S69 to S73, an S3 ground fault determination is now performed when the select lever 4 is operated from the P range to the N range.

先ず、ステップS69では、最新のレンジ信号パターンRngBufPos[O]が「12」か否かを調べる。図3〜図8に示すように、RngBufPos[O]=12は、正常遷移、S1系地絡、S2系断線、S3系地絡、S4系地絡で検出される。従って、RngBufPos[O]=12のときは、S3系地絡による故障の可能性があるため、ステップS70へ進む。一方、RngBufPos[O]≠12のときは、S3系地絡と判定できないため、ルーチンを抜ける。   First, in step S69, it is checked whether or not the latest range signal pattern RngBufPos [O] is “12”. As shown in FIGS. 3 to 8, RngBufPos [O] = 12 is detected by normal transition, S1 system ground fault, S2 system disconnection, S3 system ground fault, and S4 system ground fault. Accordingly, when RngBufPos [O] = 12, there is a possibility of a failure due to the S3 system ground fault, so the process proceeds to step S70. On the other hand, when RngBufPos [O] ≠ 12, since it cannot be determined that the S3 ground fault has occurred, the routine is exited.

ステップS70では、過去履歴のレンジ信号パターンRngBufPos[m](m=19→1)に「13」があるか否かを調べる。図3〜図8に示すように、RngBufPos[O]=12、且つRngBufPos[m]=13は、正常遷移、S2系断線、S3系地絡、S4系地絡で検出される。   In step S70, it is checked whether or not “13” exists in the range signal pattern RngBufPos [m] (m = 19 → 1) in the past history. As shown in FIGS. 3 to 8, RngBufPos [O] = 12 and RngBufPos [m] = 13 are detected by normal transition, S2 system disconnection, S3 system ground fault, and S4 system ground fault.

そして、RngBufPos[m]=13と判定したときは、S3系地絡による故障の可能性があるため、ステップS71へ進む。一方、RngBufPos[m]≠13のときは、S3系地絡と判定できないため、ルーチンを抜ける。   If it is determined that RngBufPos [m] = 13, there is a possibility of a failure due to the S3 system ground fault, and the process proceeds to step S71. On the other hand, when RngBufPos [m] ≠ 13, since it cannot be determined that the S3 system ground fault, the routine is exited.

ステップS71へ進むと、RngBufPos[m]=13以降であって、RngBufPos[O]=12以前のRngBufPos[k](K=(m−1)→1)に「12」が検出されているか否かを調べる。そして、RngBufPos[k]≠12のときは、ステップS72へ進み、又、RngBufPos[k]=12のときは、ルーチンを抜ける。   Proceeding to step S71, whether or not “12” is detected in RngBufPos [m] = 13 or later and RngBufPos [k] (K = (m−1) → 1) before RngBufPos [O] = 12. Find out. When RngBufPos [k] ≠ 12, the process proceeds to step S72. When RngBufPos [k] = 12, the routine is exited.

その後、ステップS72へ進むと、RngBufPos[m]=13以降であって、RngBufPos[O]=12以前のRngBufPos[j](j=(m−1)→1)に「6」が検出されているか否かを調べる。尚、レンジ信号パターンRngBufPos[j]が必要な理由は既述したため、説明を省略する。   Thereafter, when the process proceeds to step S72, “6” is detected in RngBufPos [m] = 13 or later and RngBufPos [j] (j = (m−1) → 1) before RngBufPos [O] = 12. Check whether there is any. Since the reason why the range signal pattern RngBufPos [j] is necessary has already been described, the description thereof is omitted.

そして、RngBufPos[j]=6が検出されているときは、ステップS73へ進み、又、RngBufPos[j]≠6のときは、誤検出を防止するため、ルーチンを抜ける。   If RngBufPos [j] = 6 is detected, the process proceeds to step S73. If RngBufPos [j] ≠ 6, the routine is exited to prevent erroneous detection.

ステップS73へ進むと、S3信号フラグxS3がセットされているか否かを調べ、セットされているとき(xS3=1)は、接点S3の遷移が検出されているため、S3系地絡ではないと判定し、ルーチンを抜ける。一方、xS3≠1、すなわち、xS3=0の場合は、接点S3の遷移が検出されていないため、S3系地絡と判定し、ステップS49へ戻り、レンジ信号遷移異常フラグxRNGNGTRANをセットして(xRNGNGTRAN←1)、ルーチンを抜ける。   Proceeding to step S73, it is checked whether or not the S3 signal flag xS3 is set. When it is set (xS3 = 1), since the transition of the contact S3 is detected, it is not an S3 system ground fault. Judge and exit the routine. On the other hand, if xS3 ≠ 1, that is, xS3 = 0, the transition of the contact S3 has not been detected, so it is determined that there is an S3 system ground fault, the process returns to step S49, and the range signal transition abnormality flag xRNNGTRAN is set ( xRNGNGTRAN ← 1), exit the routine.

このように、本実施形態によれば、レンジ信号パターンRngBufPosが、Pレンジ位置からDレンジ位置、或いはDレンジ位置からPレンジ位置まで1順する間の信号遷移を監視して、インヒビタスイッチ1に設けられている各接点S1〜S4の故障、及び各接点に接続されている信号線の断線であって、レンジ信号パターンRngBufPosのみからでは判定できない異常、すなわち、S1系地絡、S2系地絡、S3系地絡、S4系断線を、ノイズによる誤検出を防止しつつ、確実に故障を検出することができる。又、信号遷移から故障を判定しているので、信号線にノイズが混入されて、誤信号が出力されても、セレクトレバーのセットされているレンジ位置を他のレンジ位置と誤判定することが無く、高い診断精度を得ることができる。   As described above, according to the present embodiment, the signal transition while the range signal pattern RngBufPos goes one order from the P range position to the D range position, or from the D range position to the P range position, is monitored. Failure of each contact S1 to S4 provided, and disconnection of a signal line connected to each contact, and an abnormality that cannot be determined only by the range signal pattern RngBufPos, that is, S1 system ground fault, S2 system ground fault , S3 system ground fault and S4 system disconnection can be reliably detected while preventing erroneous detection due to noise. Also, since the failure is determined from the signal transition, even if noise is mixed in the signal line and an error signal is output, the range position where the select lever is set may be erroneously determined as another range position. And high diagnostic accuracy can be obtained.

又、診断を行うに際し、現在のレンジ信号パターンRngBufPos[O]と過去履歴のレンジ信号パターンRngBufPos[m]との間で、現在のレンジ信号パターンRngBufPos[O]と一致するレンジ信号パターンRngBufPos[k]が検出されたときは、診断を行わないようにしたので(S43,S47,S52,S56,S59,S62,S66,S71)、診断の機会を確保することができると共に、誤診断を防止することができる。   When performing diagnosis, a range signal pattern RngBufPos [k] that matches the current range signal pattern RngBufPos [O] between the current range signal pattern RngBufPos [O] and the range signal pattern RngBufPos [m] of the past history. ] Is detected (S43, S47, S52, S56, S59, S62, S66, S71), an opportunity for diagnosis can be secured and misdiagnosis is prevented. be able to.

尚、Pレンジ位置を検出するレンジ信号パターンRngBufPos、及びDレンジ位置を検出するレンジ信号パターンRngBufPosは最低2bitの信号が変化するように設定すれば、ノイズ影響を受けた場合であっても、2bitの信号が影響を受けたのにも拘わらず、検出対象となる信号線は全く影響を受けることがなく、誤検出は実質的に発生しないことになる。   It should be noted that the range signal pattern RngBufPos for detecting the P range position and the range signal pattern RngBufPos for detecting the D range position are set so that a signal of at least 2 bits changes, even if it is affected by noise, 2 bits. However, the signal line to be detected is not affected at all, and the false detection does not substantially occur.

又、本発明は上述した実施形態に限るものではなく、対象となる変速機は自動変速機に限らず、マニュアル式変速機の操作レバーのレンジ位置を検出するレンジ信号出力手段の故障を検出する場合に適用することも可能である。   Further, the present invention is not limited to the above-described embodiment, and the target transmission is not limited to the automatic transmission, but detects a failure of the range signal output means for detecting the range position of the operation lever of the manual transmission. It is also possible to apply to cases.

自動変速機に設けられている変速機用レンジ位置検出装置の概略構成図Schematic configuration diagram of a transmission range position detection device provided in an automatic transmission インヒビタスイッチの各接点に設けられている固定接片の配列パターンの説明図Explanatory drawing of the arrangement pattern of fixed contacts provided at each contact of the inhibitor switch 正常遷移による各レンジ位置のレンジ信号パターンを示す説明図Explanatory drawing showing the range signal pattern of each range position by normal transition 電源断線による各レンジ位置のレンジ信号パターンを示す説明図Explanatory drawing showing the range signal pattern of each range position due to power disconnection (a)はS1系断線による各レンジ位置のレンジ信号パターンを示す説明図、(b)はS1系地絡による各レンジ位置のレンジ信号パターンを示す説明図(A) is explanatory drawing which shows the range signal pattern of each range position by S1 system disconnection, (b) is explanatory drawing which shows the range signal pattern of each range position by S1 system ground fault (a)はS2系断線による各レンジ位置のレンジ信号パターンを示す説明図、(b)はS2系地絡による各レンジ位置のレンジ信号パターンを示す説明図(A) is explanatory drawing which shows the range signal pattern of each range position by S2 system disconnection, (b) is explanatory drawing which shows the range signal pattern of each range position by S2 system ground fault (a)はS3系断線による各レンジ位置のレンジ信号パターンを示す説明図、(b)はS3系地絡による各レンジ位置のレンジ信号パターンを示す説明図(A) is explanatory drawing which shows the range signal pattern of each range position by S3 system disconnection, (b) is explanatory drawing which shows the range signal pattern of each range position by S3 system ground fault (a)はS4系断線による各レンジ位置のレンジ信号パターンを示す説明図、(b)はS4系地絡による各レンジ位置のレンジ信号パターンを示す説明図(A) is explanatory drawing which shows the range signal pattern of each range position by S4 type | system | group disconnection, (b) is explanatory drawing which shows the range signal pattern of each range position by S4 type | system | group ground fault. レンジ信号パターン異常判定処理ルーチンを示すフローチャートFlowchart showing a range signal pattern abnormality determination processing routine レンジ信号状態遷移フラグセット処理ルーチンを示すフローチャートFlowchart showing range signal state transition flag set processing routine レンジ信号状態遷移異常判定処理ルーチンを示すフローチャート(その1)Flowchart showing range signal state transition abnormality determination processing routine (part 1) レンジ信号状態遷移異常判定処理ルーチンを示すフローチャート(その2)Flowchart showing range signal state transition abnormality determination processing routine (part 2) レンジ信号状態遷移異常判定処理ルーチンを示すフローチャート(その3)Flowchart showing range signal state transition abnormality determination processing routine (No. 3) レンジ信号状態遷移異常判定処理ルーチンを示すフローチャート(その4)Flowchart showing a range signal state transition abnormality determination processing routine (part 4)

符号の説明Explanation of symbols

1…インヒビタスイッチ、
2…スライドレバー、
S1〜S4…接点、
4…セレクトレバー、
6…摺動接片、
8…固定接片、
xRNGNGPATT…レンジ信号パターン異常フラグ、
Ls1〜Ls4…信号線、
P,R,N,D,P−R,R−N,N−D…レンジ位置、
RngBufPos…レンジ信号パターン、
xRNGNGTRAN…レンジ信号遷移異常フラグ、
xS1〜S4…信号フラグ
1 ... Inhibitor switch,
2 ... Slide lever,
S1 to S4 ... contact points,
4 ... Select lever,
6 ... sliding piece,
8 ... fixed piece,
xRNGNGPATT ... Range signal pattern error flag,
Ls1 ~ Ls4 ... Signal line,
P, R, N, D, PR, RN, ND ... range position,
RngBufPos ... Range signal pattern,
xRNGNGTRAN ... Range signal transition abnormality flag,
xS1-S4 ... Signal flag

Claims (3)

操作レバーのレンジ位置に応じて2値論理で表されるレンジ信号を出力する複数の信号発生手段を有するレンジ信号出力手段と、
前記各信号発生手段から出力されるレンジ信号の変化に基づいて各信号発生手段の状態遷移を検出する状態遷移検出手段と、
前記レンジ信号出力手段から出力される各レンジ信号に前記信号発生手段毎に割り当てられた定数を乗算してレンジ信号パターンを生成するレンジ信号パターン生成手段と、
前記レンジ信号パターン生成手段で生成したレンジ信号パターンの遷移履歴に基づき前記レンジ信号出力手段、及び該レンジ信号出力手段に接続されている信号線の故障を検出する故障判定手段と
を備えることを特徴とする変速機用レンジ位置検出装置の故障診断装置。
Range signal output means having a plurality of signal generating means for outputting a range signal represented by binary logic according to the range position of the operation lever;
A state transition detecting means for detecting a state transition of each signal generating means based on a change in a range signal output from each signal generating means;
Range signal pattern generation means for generating a range signal pattern by multiplying each range signal output from the range signal output means by a constant assigned to each signal generation means;
The range signal output means based on a transition history of the range signal pattern generated by the range signal pattern generation means, and a failure determination means for detecting a failure of a signal line connected to the range signal output means. A failure diagnosis device for a transmission range position detection device.
故障判定手段は、予め設定されている範囲の前記レンジ信号パターンの遷移履歴を順次格納し、最新のレンジ信号パターンと一致するレンジ信号パターンが過去履歴から検出された場合は故障判定を中止する
ことを特徴とする請求項1記載の変速機用レンジ位置検出装置の故障診断装置。
The failure determination means sequentially stores the transition history of the range signal pattern within a preset range, and stops the failure determination when a range signal pattern that matches the latest range signal pattern is detected from the past history. The failure diagnosis device for a transmission range position detection device according to claim 1.
故障判定手段は、前記レンジ信号出力手段、及び該レンジ信号出力手段に接続されている信号線が故障したときに算出される故障時レンジ信号パターンを記憶しており、前記レンジ信号パターンの遷移履歴に前記故障時レンジ信号パターンと一致するレンジ信号パターンが存在し、且つ該一致するレンジ信号パターンを出力する前記レンジ信号出力手段からのレンジ信号に変化がない場合に故障と判定する
ことを特徴とする請求項1或いは2に記載の変速機用レンジ位置検出装置の故障診断装置。
The failure determination means stores the range signal pattern at the time of failure calculated when the range signal output means and the signal line connected to the range signal output means fail, and the transition history of the range signal pattern A range signal pattern that matches the range signal pattern at the time of failure exists, and the range signal from the range signal output means that outputs the matching range signal pattern is determined to be a failure. A failure diagnosis device for a transmission range position detection device according to claim 1 or 2.
JP2006308269A 2006-11-14 2006-11-14 Failure diagnosis device for transmission range position detection device Expired - Fee Related JP4926665B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006308269A JP4926665B2 (en) 2006-11-14 2006-11-14 Failure diagnosis device for transmission range position detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006308269A JP4926665B2 (en) 2006-11-14 2006-11-14 Failure diagnosis device for transmission range position detection device

Publications (2)

Publication Number Publication Date
JP2008121835A true JP2008121835A (en) 2008-05-29
JP4926665B2 JP4926665B2 (en) 2012-05-09

Family

ID=39506798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006308269A Expired - Fee Related JP4926665B2 (en) 2006-11-14 2006-11-14 Failure diagnosis device for transmission range position detection device

Country Status (1)

Country Link
JP (1) JP4926665B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068135A (en) * 2008-09-09 2010-03-25 Fujitsu Ltd Fraudulent operation detection circuit, apparatus having the same, and fraudulent operation detection method
JP2012117570A (en) * 2010-11-30 2012-06-21 Mitsubishi Motors Corp Range position detector of automatic transmission
WO2013005324A1 (en) 2011-07-07 2013-01-10 トヨタ自動車株式会社 Vehicle and method for controlling vehicle
JP7452336B2 (en) 2020-09-02 2024-03-19 株式会社デンソー Drives and load drive systems

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005172119A (en) * 2003-12-10 2005-06-30 Denso Corp Range position detection switch

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005172119A (en) * 2003-12-10 2005-06-30 Denso Corp Range position detection switch

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068135A (en) * 2008-09-09 2010-03-25 Fujitsu Ltd Fraudulent operation detection circuit, apparatus having the same, and fraudulent operation detection method
JP2012117570A (en) * 2010-11-30 2012-06-21 Mitsubishi Motors Corp Range position detector of automatic transmission
WO2013005324A1 (en) 2011-07-07 2013-01-10 トヨタ自動車株式会社 Vehicle and method for controlling vehicle
US9140357B2 (en) 2011-07-07 2015-09-22 Toyota Jidosha Kabushiki Kaisha Vehicle and control method for vehicle
JP7452336B2 (en) 2020-09-02 2024-03-19 株式会社デンソー Drives and load drive systems

Also Published As

Publication number Publication date
JP4926665B2 (en) 2012-05-09

Similar Documents

Publication Publication Date Title
US7835833B2 (en) Abnormality detection device of shift position sensor
US7328092B2 (en) Method and device for monitoring brake signals in a vehicle
US8914185B2 (en) Vehicle control device
JP5087111B2 (en) Control device for automatic transmission
US8204712B2 (en) Ternary sensor inputs
JP4926665B2 (en) Failure diagnosis device for transmission range position detection device
US6195763B1 (en) Fault diagnostic device and method
KR101822244B1 (en) Fault decision system of shift with button type
CN103703286B (en) The controlling method of vehicle and vehicle
CN106594263A (en) Control method and system for shifting mechanism of vehicle
US6314350B1 (en) Methods and apparatus for generating maintenance messages
JP4345502B2 (en) Fault diagnosis method for vehicle communication network
JP2006046451A (en) Controller of automatic transmission
JP3092313B2 (en) Self-diagnosis device for automatic transmission
JP2005172119A (en) Range position detection switch
US9416870B2 (en) Vehicle control apparatus
JP5724936B2 (en) Shift position determination device
JP2005172118A (en) Range position detection device and its control program for automatic transmission
JP3959978B2 (en) Fault diagnosis device
JP5375807B2 (en) Automatic transmission range position detector
CN115126860A (en) Control method and controller of automobile electronic gear shifter
CN102748463B (en) The gear detection device of automatic transmission
JP5618004B2 (en) Vehicle and vehicle control method
JP7002983B2 (en) Range judgment device
KR20170071040A (en) Shift Control Device for Automatic Transmission

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091102

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111018

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111209

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

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

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

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4926665

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

LAPS Cancellation because of no payment of annual fees