JP2019015110A - Control device for reciprocating body, and reciprocating body system - Google Patents

Control device for reciprocating body, and reciprocating body system Download PDF

Info

Publication number
JP2019015110A
JP2019015110A JP2017133564A JP2017133564A JP2019015110A JP 2019015110 A JP2019015110 A JP 2019015110A JP 2017133564 A JP2017133564 A JP 2017133564A JP 2017133564 A JP2017133564 A JP 2017133564A JP 2019015110 A JP2019015110 A JP 2019015110A
Authority
JP
Japan
Prior art keywords
failure determination
determination time
pulse signal
control device
reciprocating body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017133564A
Other languages
Japanese (ja)
Inventor
伸康 別所
Nobuyasu Bessho
伸康 別所
博之 水谷
Hiroyuki Mizutani
博之 水谷
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.)
Aisin Corp
Original Assignee
Aisin Seiki Co 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 Aisin Seiki Co Ltd filed Critical Aisin Seiki Co Ltd
Priority to JP2017133564A priority Critical patent/JP2019015110A/en
Publication of JP2019015110A publication Critical patent/JP2019015110A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power-Operated Mechanisms For Wings (AREA)

Abstract

To reduce the likelihood of a reciprocating body contacting other objects when a failure occurs with a rotation sensor.SOLUTION: A pulse signal, with a period depending on the rotation speed of a motor that drives a sunroof main body in a sliding manner, is input from a rotation sensor to a control device of the sunroof main body. A failure determination unit of the control device determines that a failure occurs with the rotation sensor (step S90) when being unable to detect an edge of the following pulse signal within a failure determination time after an edge of the pulse signal is detected in a state where the sunroof main body is in sliding movement (step S80: YES). A determination time setting unit of the control device sets, when the sliding speed of the sunroof main body is high, the failure determination time short compared to when the sliding speed of the sunroof main body is not high (steps S30 to S60).SELECTED DRAWING: Figure 3

Description

この発明は、往復動作体の制御装置、及び往復動作体システムに関する。   The present invention relates to a control device for a reciprocating body and a reciprocating body system.

特許文献1には、モータによって往復動作するスライドドアに適用される制御装置が開示されている。このスライドドア制御装置には、回転センサから、モータの回転速度に応じた周期のパルス信号が入力される。そして、スライドドア制御装置は、スライドドアが所望の目標速度でスライド動作するようにモータの回転速度を制御する。また、特許文献1のスライドドア制御装置は、スライドドアを動作させている状態で、回転センサのパルス信号のエッジを検出した後、所定の故障判定時間内に次のパルス信号のエッジを検出できない場合に、回転センサが故障していると判定する。スライドドア制御装置は、回転センサが故障していると判断した場合には、スライドドアのスライド動作を停止させる。   Patent Document 1 discloses a control device applied to a slide door that reciprocates by a motor. A pulse signal having a period corresponding to the rotation speed of the motor is input from the rotation sensor to the slide door control device. The sliding door control device controls the rotational speed of the motor so that the sliding door slides at a desired target speed. Further, the sliding door control device of Patent Document 1 cannot detect the edge of the next pulse signal within a predetermined failure determination time after detecting the edge of the pulse signal of the rotation sensor while the sliding door is in operation. In this case, it is determined that the rotation sensor has failed. When it is determined that the rotation sensor is out of order, the sliding door control device stops the sliding operation of the sliding door.

特開2014−181544号公報JP 2014-181544 A

特許文献1のスライドドア制御装置においては、回転センサが故障してからスライドドアのスライド動作を停止させるまでの間に、故障判定時間に応じたタイムラグがある。そして、このタイムラグの間も、スライドドアはスライド動作し続ける。すなわち、回転センサが故障していてモータの回転速度やスライドドアの位置が把握できないにも拘わらず、スライドドアが移動してしまう期間が生じる。特に、スライドドアの速度が高いときには、回転センサが故障してからスライドドアが停止するまでの間に、スライドドアが相当の距離に亘ってスライド動作することになり、スライドドアが他の物品等に干渉するおそれがある。   In the sliding door control device of Patent Document 1, there is a time lag corresponding to the failure determination time from when the rotation sensor breaks down until the sliding operation of the sliding door is stopped. The sliding door continues to slide during this time lag. That is, there is a period in which the slide door moves even though the rotation sensor is out of order and the rotational speed of the motor and the position of the slide door cannot be grasped. In particular, when the speed of the sliding door is high, the sliding door will slide over a considerable distance between the time when the rotation sensor breaks down and the time when the sliding door stops. There is a risk of interference.

なお、特許文献1のようなスライドドア制御装置に限らず、車両用のシートやサンルーフの開閉体のようにレール上を往復スライド動作するものや、車両のバックドアのように所定角度範囲内を往復回動動作するものであっても、モータによって動作されるものであれば、同様の課題が生じ得る。   It is not limited to the sliding door control device as in Patent Document 1, but a reciprocating sliding operation on a rail such as a vehicle seat or a sunroof opening / closing body, or a predetermined angle range such as a vehicle back door. The same problem can occur even if the reciprocating movement is performed by a motor.

上記課題を解決するための往復動作体の制御装置は、モータによって所定の範囲内を往復動作する往復動作体に適用され、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置であって、前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、前記往復動作体の動作速度が高いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部とを備えている。   A control device for a reciprocating body for solving the above problems is applied to a reciprocating body that reciprocates within a predetermined range by a motor, and a pulse signal having a period corresponding to the rotational speed of the motor is input from a rotation sensor. A control device for detecting the edge of the pulse signal and detecting the edge of the next pulse signal within the failure determination time after the reciprocating body is in operation. A failure determination unit that determines that a failure has occurred, an operation stop unit that stops the operation of the reciprocating body when the failure determination unit determines that a failure has occurred in the rotation sensor, and the reciprocating operation. When the body operating speed is high, a determination time setting unit is provided for setting the failure determination time shorter than when the body is not operating.

上記構成によれば、往復動作体の動作速度が高い状態で回転センサに故障が発生しても、その故障の発生から比較的短い時間で往復動作体が停止される。したがって、回転センサに故障が発生してから往復動作体を停止するまでの間に、往復動作体が過度に長い距離を動作することがなく、その分、往復動作体が他の物体に干渉するおそれが低減される。   According to the above configuration, even if a failure occurs in the rotation sensor while the operation speed of the reciprocating body is high, the reciprocating body is stopped in a relatively short time from the occurrence of the failure. Therefore, the reciprocating body does not move over an excessively long distance between the occurrence of a failure in the rotation sensor and the stop of the reciprocating body, and the reciprocating body interferes with other objects accordingly. The fear is reduced.

往復動作体の制御装置において、前記判定時間設定部は、前記故障判定時間を、前記往復動作体の動作速度で前記往復動作体が予め設定されている規定距離だけ進むのに要する時間以下に設定してもよい。   In the control device for a reciprocating body, the determination time setting unit sets the failure determination time to be equal to or less than a time required for the reciprocating body to travel a predetermined distance at an operating speed of the reciprocating body. May be.

上記構成によれば、回転センサに故障が発生してから往復動作体が停止するまでの距離が規定距離を超えることはほぼない。したがって、回転センサに故障が発生した後、往復動作体が停止するまでに、往復動作体が他の物品に干渉することを好適に抑制できる。   According to the above configuration, the distance from the occurrence of a failure in the rotation sensor to the stop of the reciprocating body hardly exceeds the specified distance. Therefore, it is possible to suitably suppress the reciprocating body from interfering with other articles before the reciprocating body stops after the failure of the rotation sensor.

上記課題を解決するための往復動作体の制御装置は、モータによって所定の範囲内を往復動作する往復動作体に適用され、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置であって、前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、前記パルス信号のエッジを検出する度に、当該エッジを検出したパルス信号とその直前のパルス信号のエッジとの間隔が短いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部とを備えている。   A control device for a reciprocating body for solving the above problems is applied to a reciprocating body that reciprocates within a predetermined range by a motor, and a pulse signal having a period corresponding to the rotational speed of the motor is input from a rotation sensor. A control device for detecting the edge of the pulse signal and detecting the edge of the next pulse signal within the failure determination time after the reciprocating body is in operation. A failure determination unit that determines that a failure has occurred, an operation stop unit that stops the operation of the reciprocating body when the failure determination unit determines that a failure has occurred in the rotation sensor, and the pulse signal When the interval between the pulse signal that detected the edge and the edge of the pulse signal immediately before the detected edge is short, the failure determination time is And a determination time setting unit for Ku setting.

パルス信号のエッジの間隔が短いことは、モータの回転速度、つまり、往復動作体の動作速度が高いことに対応している。そのため、上記構成によれば、往復動作体の動作速度が高い状態で回転センサに故障が発生しても、その故障の発生から比較的短い時間で往復動作体が停止される。したがって、回転センサに故障が発生してから往復動作体を停止するまでの間に、往復動作体が過度に長い距離を動作することがなく、その分、往復動作体が他の物体に干渉するおそれが低減される。   The short interval between the edges of the pulse signal corresponds to the high rotational speed of the motor, that is, the high speed of the reciprocating body. Therefore, according to the above configuration, even if a failure occurs in the rotation sensor while the operating speed of the reciprocating body is high, the reciprocating body is stopped in a relatively short time after the occurrence of the failure. Therefore, the reciprocating body does not move over an excessively long distance between the occurrence of a failure in the rotation sensor and the stop of the reciprocating body, and the reciprocating body interferes with other objects accordingly. The fear is reduced.

往復動作体の制御装置において、前記判定時間設定部は、前記故障判定時間を、パルス信号のエッジの間隔に応じて前記往復動作体が予め設定されている規定距離だけ進むのに要する時間以下に設定してもよい。   In the control device for the reciprocating body, the determination time setting unit sets the failure determination time to a time required for the reciprocating body to travel a predetermined distance set in advance according to an interval between edges of a pulse signal. It may be set.

上記構成によれば、回転センサに故障が発生してから往復動作体が停止するまでの距離が規定距離を超えることはほぼない。したがって、回転センサに故障が発生した後、往復動作体が停止するまでに、往復動作体が他の物品に干渉することを好適に抑制できる。   According to the above configuration, the distance from the occurrence of a failure in the rotation sensor to the stop of the reciprocating body hardly exceeds the specified distance. Therefore, it is possible to suitably suppress the reciprocating body from interfering with other articles before the reciprocating body stops after the failure of the rotation sensor.

往復動作体の制御装置において、前記判定時間設定部は、前記往復動作体が搭載される車両の車室内温度又は外気温が高い場合には、そうでない場合に比較して前記故障判定時間を短い時間に設定してもよい。   In the control device for a reciprocating body, the determination time setting unit shortens the failure determination time when the vehicle interior temperature or the outside air temperature of the vehicle on which the reciprocating body is mounted is high compared to the case where the vehicle interior temperature or the outside air temperature is not high. It may be set to time.

上記構成において、車室内温度又は外気温が高い場合には、往復動作体とその往復動作体を支持するレールや軸受等との間に介在しているグリースの粘性が小さくなって潤滑性が向上する。そのため、車室内温度又は外気温が高い場合には、往復動作体の動作速度が低下しにくく、往復動作体が停止するまでの動作距離が長くなり得る。この点、上記構成によれば、車室内温度又は外気温が高い場合には故障判定時間が短い時間に設定されるため、回転センサに故障が発生してから往復動作体が停止するまでの動作距離が長くなることを好適に抑制できる。   In the above configuration, when the vehicle interior temperature or the outside air temperature is high, the viscosity of the grease interposed between the reciprocating body and the rails or bearings that support the reciprocating body is reduced and the lubricity is improved. To do. Therefore, when the vehicle interior temperature or the outside air temperature is high, the operating speed of the reciprocating body is unlikely to decrease, and the operating distance until the reciprocating body stops can be increased. In this regard, according to the above-described configuration, when the vehicle interior temperature or the outside air temperature is high, the failure determination time is set to a short time, so that the operation until the reciprocating body stops after the failure occurs in the rotation sensor. It can suppress suitably that distance becomes long.

上記課題を解決するための往復動作体システムは、所定の範囲内を往復動作する往復動作体と、前記往復動作体を駆動するモータと、前記モータの回転を検出する回転センサと、前記モータを制御し、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置とを備えた往復動作体システムであって、前記制御装置は、前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、前記往復動作体の動作速度が高いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部とを備えている。   A reciprocating body system for solving the above problems includes a reciprocating body that reciprocates within a predetermined range, a motor that drives the reciprocating body, a rotation sensor that detects rotation of the motor, and the motor. A reciprocating body system including a control device that controls and receives a pulse signal having a period corresponding to the rotational speed of the motor from a rotation sensor, wherein the control device operates the reciprocating body. A failure determination unit that determines that a failure has occurred in the rotation sensor when the edge of the next pulse signal cannot be detected within a failure determination time after the edge of the pulse signal is detected in the state; and the failure When the determination unit determines that a failure has occurred in the rotation sensor, an operation stop unit that stops the operation of the reciprocating body, and when the operation speed of the reciprocating body is high, Compared to, and a determination time setting unit for setting short the failure determination time.

上記構成によれば、往復動作体の動作速度が高い状態で回転センサに故障が発生しても、その故障の発生から比較的短い時間で往復動作体が停止される。したがって、回転センサに故障が発生してから往復動作体を停止するまでの間に、往復動作体が過度に長い距離動作することがなく、その分、往復動作体が他の物体に干渉するおそれが低減される。   According to the above configuration, even if a failure occurs in the rotation sensor while the operation speed of the reciprocating body is high, the reciprocating body is stopped in a relatively short time from the occurrence of the failure. Therefore, the reciprocating body does not operate for an excessively long distance between the occurrence of the failure of the rotation sensor and the stop of the reciprocating body, and the reciprocating body may interfere with other objects accordingly. Is reduced.

本発明によれば、回転センサに故障が発生した際に往復動作体が他の物体に干渉するおそれが低減される。   According to the present invention, when a failure occurs in the rotation sensor, the possibility that the reciprocating body interferes with other objects is reduced.

サンルーフシステムが搭載された車両の上部を概略的に表した斜視図。The perspective view which represented the upper part of the vehicle carrying a sunroof system roughly. 回転センサが出力するパルス信号の時系列の例を表した図。The figure showing the example of the time series of the pulse signal which a rotation sensor outputs. 故障診断処理の処理手順を表したフローチャート。The flowchart showing the processing procedure of failure diagnosis processing.

以下、往復動作体の制御装置と、制御装置を備えた往復動作体システムを、車両に搭載されるサンルーフシステムに適用した一実施形態を図面を参照して説明する。なお、本実施形態において前後左右上下の各方向は、車両を基準として規定される方向である。   Hereinafter, an embodiment in which a reciprocating body control device and a reciprocating body system including the control device are applied to a sunroof system mounted on a vehicle will be described with reference to the drawings. In the present embodiment, the front, rear, left, right and up directions are directions defined with reference to the vehicle.

図1に示すように、車両Cは、略水平に配置されて当該車両Cの天板を構成するルーフパネル2を備えている。ルーフパネル2には、当該ルーフパネル2を厚み方向に貫通した矩形状のルーフ開口部3が形成されている。また、ルーフパネル2には、左右一対のレール5が取り付けられている。左右一対のレール5は、ルーフ開口部3の縁に沿って前後方向に延びている。   As shown in FIG. 1, the vehicle C includes a roof panel 2 that is disposed substantially horizontally and forms a top plate of the vehicle C. The roof panel 2 is formed with a rectangular roof opening 3 that penetrates the roof panel 2 in the thickness direction. In addition, a pair of left and right rails 5 is attached to the roof panel 2. The pair of left and right rails 5 extend in the front-rear direction along the edge of the roof opening 3.

車両Cには、ルーフ開口部3を開閉するためのサンルーフシステム1が搭載されている。サンルーフシステム1は、当該ルーフ開口部3とほぼ同じ寸法に形成された矩形板状のサンルーフ本体10を備えている。サンルーフ本体10の左右両縁の前端部は、前後方向に往復スライド動作可能に一対のレール5に支持されている。   The vehicle C is equipped with a sunroof system 1 for opening and closing the roof opening 3. The sunroof system 1 includes a rectangular plate-shaped sunroof body 10 formed to have substantially the same dimensions as the roof opening 3. The front end portions of the left and right edges of the sunroof body 10 are supported by a pair of rails 5 so as to be able to reciprocate in the front-rear direction.

サンルーフ本体10は、ルーフ開口部3を閉鎖した閉じ位置と、当該サンルーフ本体10の前縁がルーフ開口部3の後端部近傍に位置する開き位置との間を前後方向にスライド動作可能である。サンルーフ本体10は、閉じ位置において、ルーフパネル2と略面一に配置される。サンルーフ本体10が開き位置までスライド動作した状態において、当該サンルーフ本体10の前端部はルーフ開口部3内に位置し、当該サンルーフ本体10の後端側の一部はルーフ開口部3よりも後方でルーフパネル2の一部を上方から覆う。   The sunroof body 10 is slidable back and forth between a closed position where the roof opening 3 is closed and an open position where the front edge of the sunroof body 10 is located near the rear end of the roof opening 3. . The sunroof body 10 is disposed substantially flush with the roof panel 2 in the closed position. In a state where the sunroof body 10 is slid to the open position, the front end portion of the sunroof body 10 is located in the roof opening 3, and a part of the rear end side of the sunroof body 10 is behind the roof opening 3. A part of the roof panel 2 is covered from above.

サンルーフ本体10は図視しないワイヤ等を介してモータ40と連結されている。モータ40は、ルーフパネル2においてルーフ開口部3の近傍(図1では、ルーフ開口部3の前側)に内蔵されている。モータ40が駆動されると、ワイヤ等を介して駆動力が伝達されることにより、サンルーフ本体10がスライド動作する。   The sunroof body 10 is connected to the motor 40 via a wire or the like not shown. The motor 40 is built in the roof panel 2 in the vicinity of the roof opening 3 (in FIG. 1, the front side of the roof opening 3). When the motor 40 is driven, the sunroof main body 10 slides by transmitting a driving force via a wire or the like.

モータ40は正逆両方向に回転可能である。モータ40が正回転することによって、サンルーフ本体10は閉じ位置の側から開き位置の側へスライド動作する。このスライド動作をサンルーフ本体10の開放動作と称する。モータ40が逆回転することによって、サンルーフ本体10は開き位置の側から閉じ位置の側へスライド動作する。このスライド動作をサンルーフ本体10の閉鎖動作と称する。   The motor 40 can rotate in both forward and reverse directions. When the motor 40 rotates forward, the sunroof body 10 slides from the closed position side to the open position side. This sliding operation is referred to as opening operation of the sunroof body 10. As the motor 40 rotates in the reverse direction, the sunroof body 10 slides from the open position side to the closed position side. This sliding operation is referred to as a closing operation of the sunroof body 10.

モータ40は、回転軸と一体的に回転する回転子(永久磁石)を備えている。この回転子の回転軌道近傍となる所定箇所には、当該回転子の回転(モータ40の回転)に応じた磁場の変化を検出する回転センサ50が設けられている。回転センサ50が観測する磁場は、モータ40の半回転ごとにN極とS極とで切り替わる。回転センサ50は、N極に応じた磁場を検出することに対応させてHIGH、S極に対応する磁場を検出することに対応させてLOWの信号を制御装置60に出力する。モータ40が連続して回転することによって、回転センサ50は、モータ40の回転速度に応じた周期でHIGH、LOWの繰り返しパルス信号を制御装置60に出力する。この実施形態では、図2に示すように、回転センサ50は、繰り返しパルス信号として矩形波状の信号を出力する。回転センサ50が出力するパルス信号は、制御装置60によって読み込まれる。   The motor 40 includes a rotor (permanent magnet) that rotates integrally with the rotation shaft. A rotation sensor 50 that detects a change in the magnetic field according to the rotation of the rotor (rotation of the motor 40) is provided at a predetermined location in the vicinity of the rotation trajectory of the rotor. The magnetic field observed by the rotation sensor 50 is switched between the N pole and the S pole every half rotation of the motor 40. The rotation sensor 50 outputs a LOW signal to the control device 60 in response to detecting a magnetic field corresponding to HIGH and S poles in correspondence with detection of a magnetic field corresponding to the N poles. As the motor 40 continuously rotates, the rotation sensor 50 outputs a HIGH and LOW repetitive pulse signal to the control device 60 at a period corresponding to the rotation speed of the motor 40. In this embodiment, as shown in FIG. 2, the rotation sensor 50 outputs a rectangular wave signal as a repetitive pulse signal. The pulse signal output from the rotation sensor 50 is read by the control device 60.

なお、モータ40の回転速度は、回転センサ50が出力するパルス信号の立ち下がりエッジEからその次の立ち下がりエッジEまでの時間間隔Sと対応している。つまり、上記時間間隔Sが長ければモータ40の回転速度が低く、上記時間間隔Sが短ければモータ40の回転速度が高い。   The rotational speed of the motor 40 corresponds to the time interval S from the falling edge E of the pulse signal output from the rotation sensor 50 to the next falling edge E. That is, if the time interval S is long, the rotation speed of the motor 40 is low, and if the time interval S is short, the rotation speed of the motor 40 is high.

モータ40は、制御装置60によって制御される。制御装置60は、演算部、揮発性のメモリ、不揮発性の記憶部等を備えたコンピュータとして構成されている。制御装置60には、車室内に設けられたサンルーフシステム1の操作スイッチ20からの信号が入力される。制御装置60は、サンルーフ本体10の開放動作または閉鎖動作が開始されるように操作スイッチ20が操作された場合、モータ40への電力の供給を開始する。これに伴ってモータ40が回転を開始し、サンルーフ本体10の開放動作又は閉鎖動作が開始される。制御装置60は、サンルーフ本体10が開放動作又は閉鎖動作している間のモータ40の回転速度を所望の回転速度に制御する。制御装置60は、サンルーフ本体10の開放動作または閉鎖動作が停止されるように操作スイッチ20が操作された場合、モータ40への電力の供給を停止する。これに伴いモータ40が回転を停止し、サンルーフ本体10の開放動作または閉鎖動作が停止する。   The motor 40 is controlled by the control device 60. The control device 60 is configured as a computer including a calculation unit, a volatile memory, a nonvolatile storage unit, and the like. A signal from the operation switch 20 of the sunroof system 1 provided in the vehicle compartment is input to the control device 60. The control device 60 starts supplying electric power to the motor 40 when the operation switch 20 is operated such that the opening operation or the closing operation of the sunroof main body 10 is started. Along with this, the motor 40 starts rotating, and the opening operation or closing operation of the sunroof body 10 is started. The control device 60 controls the rotational speed of the motor 40 to a desired rotational speed while the sunroof main body 10 is performing the opening operation or the closing operation. The control device 60 stops the supply of electric power to the motor 40 when the operation switch 20 is operated such that the opening operation or the closing operation of the sunroof main body 10 is stopped. Along with this, the motor 40 stops rotating, and the opening operation or closing operation of the sunroof body 10 stops.

制御装置60は、サンルーフ本体10が他の物体と干渉したり他の物体を挟み込んだりしたことを検出するための挟み込み検出部68を備えている。挟み込み検出部68は、回転センサ50から制御装置60に入力されるパルス信号に基づいてモータ40の回転速度を算出する。また、挟み込み検出部68は、モータ40の回転速度が所定値よりも遅くなった場合に、干渉が生じた(干渉有り)と判定する。   The control device 60 includes a pinch detection unit 68 for detecting that the sunroof main body 10 interferes with another object or pinches another object. The pinch detection unit 68 calculates the rotation speed of the motor 40 based on the pulse signal input from the rotation sensor 50 to the control device 60. Further, the pinch detection unit 68 determines that interference has occurred (there is interference) when the rotation speed of the motor 40 becomes slower than a predetermined value.

制御装置60は、回転センサ50の故障の有無を判定するための故障判定部64を備えている。故障判定部64は、回転センサ50が出力するパルス信号の立ち下がりエッジEを検出してから故障判定時間H内に次のパルス信号の立ち下がりエッジEが検出できない場合に、回転センサ50に故障が発生していると判定する。   The control device 60 includes a failure determination unit 64 for determining whether or not the rotation sensor 50 has failed. The failure determination unit 64 detects a failure in the rotation sensor 50 when the falling edge E of the next pulse signal cannot be detected within the failure determination time H after detecting the falling edge E of the pulse signal output from the rotation sensor 50. Is determined to have occurred.

制御装置60は、故障判定部64が回転センサ50の故障の有無を判定する際に使用する故障判定時間Hを設定するための判定時間設定部62を備えている。判定時間設定部62は、サンルーフ本体10の動作速度が高いときには、そうでない場合に比較して、故障判定時間Hを短く設定する。なお、この実施形態では、サンルーフ本体10の動作速度としてモータ40の回転速度を採用している。また、判定時間設定部62は、外気温が高い場合には、外気温が低い場合に比べて故障判定時間Hを短く設定する。   The control device 60 includes a determination time setting unit 62 for setting a failure determination time H used when the failure determination unit 64 determines whether or not the rotation sensor 50 has failed. The determination time setting unit 62 sets the failure determination time H shorter when the operation speed of the sunroof body 10 is high than when it is not. In this embodiment, the rotational speed of the motor 40 is employed as the operating speed of the sunroof body 10. The determination time setting unit 62 sets the failure determination time H shorter when the outside air temperature is high than when the outside air temperature is low.

制御装置60は、サンルーフ本体10のスライド動作を停止させるための動作停止部66を備えている。動作停止部66は、回転センサ50に故障が発生したと故障判定部64が判定した場合、モータ40の駆動を停止して、モータ40の回転を停止させる。また、動作停止部66は、挟み込み検出部68が干渉有りと判定した場合にも、モータ40の駆動を停止して、モータ40の回転を停止させる。   The control device 60 includes an operation stop unit 66 for stopping the sliding operation of the sunroof body 10. When the failure determination unit 64 determines that a failure has occurred in the rotation sensor 50, the operation stop unit 66 stops driving the motor 40 and stops the rotation of the motor 40. The operation stopping unit 66 also stops driving the motor 40 and stops the rotation of the motor 40 even when the pinch detection unit 68 determines that there is interference.

制御装置60には、当該車両Cの周囲の外気温を検出するための温度センサ30からの信号が入力される。温度センサ30は、外気温を測定し、その測定結果に対応する信号を所定の時間間隔で制御装置60に出力する。   A signal from the temperature sensor 30 for detecting the outside air temperature around the vehicle C is input to the control device 60. The temperature sensor 30 measures the outside air temperature, and outputs a signal corresponding to the measurement result to the control device 60 at a predetermined time interval.

次に、故障判定部64が行う回転センサ50の故障判定の方法を説明する。
故障判定部64は、操作スイッチ20が操作されてサンルーフ本体10がスライド動作している状態、すなわちモータ40に電力が供給されている状態で、回転センサ50から制御装置60に入力されるパルス信号の立ち下がりエッジEを検出する。そして、故障判定部64は、立ち下がりエッジEを検出してから故障判定時間H内に次のパルス信号の立ち下がりエッジEを検出できない場合に、回転センサ50に故障が発生していると判定する。
Next, a failure determination method for the rotation sensor 50 performed by the failure determination unit 64 will be described.
The failure determination unit 64 is a pulse signal input from the rotation sensor 50 to the control device 60 in a state where the operation switch 20 is operated and the sunroof main body 10 is sliding, that is, in a state where electric power is supplied to the motor 40. The falling edge E is detected. Then, the failure determination unit 64 determines that a failure has occurred in the rotation sensor 50 when the falling edge E of the next pulse signal cannot be detected within the failure determination time H after detecting the falling edge E. To do.

例えば図2に示すパルス信号において、パルス信号の立ち下がりエッジE2(図2において左から2番目の立ち下がりエッジE)と次の立ち下がりエッジE3との間の時間間隔は、故障判定時間H1よりも短い。したがって、故障判定部64は、パルス信号の立ち下がりエッジE2を検出してから故障判定時間H1内に次のパルス信号の立ち下がりエッジE3を検出できる。一方、パルス信号の立ち下がりエッジE5(図2において右端の立ち下がりエッジE)が出力された直後に回転センサ50が故障すると、それ以降パルス信号の立ち下がりエッジEは出力されない。したがって、故障判定部64は、パルス信号の立ち下がりエッジE5を検出してから故障判定時間H2内に次のパルス信号の立ち下がりエッジEを検出できない。この場合、故障判定部64は回転センサ50に故障が発生していると判定する。   For example, in the pulse signal shown in FIG. 2, the time interval between the falling edge E2 of the pulse signal (second falling edge E from the left in FIG. 2) and the next falling edge E3 is from the failure determination time H1. Also short. Therefore, the failure determination unit 64 can detect the falling edge E3 of the next pulse signal within the failure determination time H1 after detecting the falling edge E2 of the pulse signal. On the other hand, if the rotation sensor 50 fails immediately after the falling edge E5 of the pulse signal (the rightmost falling edge E in FIG. 2) is output, the falling edge E of the pulse signal is not output thereafter. Therefore, the failure determination unit 64 cannot detect the falling edge E of the next pulse signal within the failure determination time H2 after detecting the falling edge E5 of the pulse signal. In this case, the failure determination unit 64 determines that a failure has occurred in the rotation sensor 50.

次に、判定時間設定部62による故障判定時間Hの設定方法について説明する。
判定時間設定部62は、先ず、基本故障判定時間Haを算出する。判定時間設定部62は、基本故障判定時間Haを算出するのに際して、回転センサ50から制御装置60に入力されるパルス信号の立ち下がりエッジEを検出する。判定時間設定部62は、検出したパルス信号の立ち下がりエッジEと、その直前の立ち下がりエッジEとの時間間隔Sに基づいてモータ40の最新の回転速度を算出する。そして、判定時間設定部62は、算出した最新の回転速度を次の式(1)に代入して基本故障判定時間Haを算出する。
Next, a method for setting the failure determination time H by the determination time setting unit 62 will be described.
The determination time setting unit 62 first calculates a basic failure determination time Ha. The determination time setting unit 62 detects the falling edge E of the pulse signal input from the rotation sensor 50 to the control device 60 when calculating the basic failure determination time Ha. The determination time setting unit 62 calculates the latest rotation speed of the motor 40 based on the time interval S between the falling edge E of the detected pulse signal and the immediately preceding falling edge E. Then, the determination time setting unit 62 calculates the basic failure determination time Ha by substituting the calculated latest rotation speed into the following equation (1).

基本故障判定時間Ha[ms]=60000÷(モータの回転速度[rpm]×モータの1回転あたりのサンルーフ本体の移動量[mm])×A[mm] ・・・(1)
なお、式(1)中においてAは予め判定時間設定部62に記憶されている規定距離であり、例えば10[mm]である。モータ40の1回転あたりのサンルーフ本体10の移動量は、予め判定時間設定部62に記憶されている。なお、基本故障判定時間Haは、回転センサ50からのパルス信号を制御装置60が読み込む時間間隔よりも長い時間として算出される。
Basic failure determination time Ha [ms] = 60000 ÷ (motor rotation speed [rpm] × movement amount of sunroof body per motor rotation [mm]) × A [mm] (1)
In Expression (1), A is a specified distance stored in advance in the determination time setting unit 62, for example, 10 [mm]. The amount of movement of the sunroof body 10 per rotation of the motor 40 is stored in the determination time setting unit 62 in advance. The basic failure determination time Ha is calculated as a time longer than the time interval at which the control device 60 reads the pulse signal from the rotation sensor 50.

上記式(1)において、モータ40の回転速度と、モータ40の1回転あたりのサンルーフ本体10の移動量とを乗じた値は、サンルーフ本体10のスライド速度に相当する。つまり、判定時間設定部62は、サンルーフ本体10のスライド速度に応じて、当該スライド速度毎に異なる基本故障判定時間Haを設定する。具体的には、判定時間設定部62は、サンルーフ本体10のスライド速度が高い場合には、サンルーフ本体10のスライド速度が低い場合に比べて基本故障判定時間Haを短く設定する。また、基本故障判定時間Haは、判定時間設定部62がパルス信号のエッジEを検出した時点を基準として、その時点から、サンルーフ本体10が最新のスライド速度で予め設定された規定距離Aだけ進むのに要する時間となっている。   In the above formula (1), a value obtained by multiplying the rotation speed of the motor 40 by the amount of movement of the sunroof body 10 per rotation of the motor 40 corresponds to the slide speed of the sunroof body 10. That is, the determination time setting unit 62 sets a different basic failure determination time Ha for each slide speed according to the slide speed of the sunroof body 10. Specifically, the determination time setting unit 62 sets the basic failure determination time Ha shorter when the sliding speed of the sunroof body 10 is high than when the sliding speed of the sunroof body 10 is low. The basic failure determination time Ha is based on the time point when the determination time setting unit 62 detects the edge E of the pulse signal, from which point the sunroof body 10 advances by a predetermined distance A set in advance at the latest slide speed. It takes time to complete.

判定時間設定部62は、温度センサ30から入力される信号に基づいて、上記(1)式によって算出された基本故障判定時間Haを補正する。具体的には、判定時間設定部62は、温度センサ30の出力値から外気温を算出し、その外気温に対応する補正値Zを算出する。ここで、補正値Zは、外気温と、サンルーフ本体10及びレール5の間に介在しているグリースの粘性との関係性に基づいて予め求められているものであり、外気温が高いほど補正値Zは大きくなる。なお、補正値Zは、判定時間設定部62に予め記憶されている補正マップ等を参照することにより算出される。判定時間設定部62は、基本故障判定時間Haから補正値Zを減算して最終的な故障判定時間Hを算出する。すなわち、最終的な故障判定時間Hは、外気温に応じた分だけ基本故障判定時間Haを短くしたものとなっている。   The determination time setting unit 62 corrects the basic failure determination time Ha calculated by the above equation (1) based on the signal input from the temperature sensor 30. Specifically, the determination time setting unit 62 calculates the outside air temperature from the output value of the temperature sensor 30, and calculates a correction value Z corresponding to the outside air temperature. Here, the correction value Z is obtained in advance based on the relationship between the outside air temperature and the viscosity of the grease interposed between the sunroof body 10 and the rail 5, and the correction value Z is corrected as the outside air temperature increases. The value Z increases. The correction value Z is calculated by referring to a correction map or the like stored in advance in the determination time setting unit 62. The determination time setting unit 62 calculates a final failure determination time H by subtracting the correction value Z from the basic failure determination time Ha. That is, the final failure determination time H is obtained by shortening the basic failure determination time Ha by an amount corresponding to the outside air temperature.

次に、サンルーフ本体10の開放動作または閉鎖動作が開始されるように操作スイッチ20が操作されてから制御装置60が実行する処理の手順を、図3を用いて説明する。
制御装置60は、操作スイッチ20が操作されると、モータ40の回転を開始するとともに図3に示す故障診断処理を開始する。制御装置60は、故障診断処理を開始すると、ステップS10に処理を進める。ステップS10において、制御装置60の故障判定部64は、モータ40が回転し始めてから、パルス信号の1番初めの立ち下がりエッジEが検出されるか否かを判定する。なお、故障判定部64は、前回読み込んだパルス信号がHIGHであって、今回読み込んだパルス信号がLOWである場合に、パルス信号の立ち下がりエッジEを検出する。パルス信号の1番初めの立ち下がりエッジEが検出されない場合(ステップS10:NO)、故障判定部64は、ステップS10の処理を繰り返し行なってパルス信号の1番初めの立ち下がりエッジEを検出するのを待つ。
Next, a procedure of processing executed by the control device 60 after the operation switch 20 is operated so that the opening operation or closing operation of the sunroof body 10 is started will be described with reference to FIG.
When the operation switch 20 is operated, the control device 60 starts rotating the motor 40 and starts the failure diagnosis process shown in FIG. When starting the failure diagnosis process, the control device 60 proceeds to step S10. In step S10, the failure determination unit 64 of the control device 60 determines whether or not the first falling edge E of the pulse signal is detected after the motor 40 starts to rotate. The failure determination unit 64 detects the falling edge E of the pulse signal when the previously read pulse signal is HIGH and the currently read pulse signal is LOW. When the first falling edge E of the pulse signal is not detected (step S10: NO), the failure determination unit 64 repeats the process of step S10 to detect the first falling edge E of the pulse signal. Wait for

制御装置60は、故障判定部64がパルス信号の1番初めの立ち下がりエッジE1を検出した場合(ステップS10:YES)、ステップS20に処理を進める。ステップS20において、制御装置60の故障判定部64は、パルス信号の2番目の立ち下がりエッジE2が検出されるか否かを判定する。パルス信号の立ち下がりエッジE2が検出されない場合(ステップS20:NO)、故障判定部64は、ステップS20の処理を繰り返し行なってパルス信号の2番目の立ち下がりエッジEを検出するのを待つ。   When the failure determination unit 64 detects the first falling edge E1 of the pulse signal (step S10: YES), the control device 60 proceeds to step S20. In step S20, the failure determination unit 64 of the control device 60 determines whether or not the second falling edge E2 of the pulse signal is detected. When the falling edge E2 of the pulse signal is not detected (step S20: NO), the failure determination unit 64 repeats the process of step S20 and waits to detect the second falling edge E of the pulse signal.

制御装置60は、故障判定部64がパルス信号の2番目の立ち下がりエッジEを検出した場合(ステップS20:YES)、ステップS30に処理を進める。ステップS30において、制御装置60の判定時間設定部62は、ステップS20にて検出されたパルス信号の2番目の立ち下がりエッジEと、パルス信号の1番目の立ち下がりエッジEとの時間間隔Sに基づいて、モータ40の最新の回転速度を算出する。この後、制御装置60は、ステップS40に処理を進める。   When the failure determination unit 64 detects the second falling edge E of the pulse signal (step S20: YES), the control device 60 advances the process to step S30. In step S30, the determination time setting unit 62 of the control device 60 sets the time interval S between the second falling edge E of the pulse signal detected in step S20 and the first falling edge E of the pulse signal. Based on this, the latest rotation speed of the motor 40 is calculated. Thereafter, the control device 60 proceeds to step S40.

ステップS40において、制御装置60の判定時間設定部62は、上記式(1)を用いて基本故障判定時間Haを算出する。この後、制御装置60はステップS50に処理を進める。ステップS50において、制御装置60の判定時間設定部62は、温度センサ30からの信号に基づいて外気温を算出するとともに、補正マップを参照する。そして、判定時間設定部62は、外気温に対応する補正値Zを補正マップに基づいて算出する。この後、制御装置60は、ステップS60に処理を進める。   In step S40, the determination time setting unit 62 of the control device 60 calculates the basic failure determination time Ha using the above equation (1). Thereafter, the control device 60 advances the process to step S50. In step S50, the determination time setting unit 62 of the control device 60 calculates the outside air temperature based on the signal from the temperature sensor 30, and refers to the correction map. Then, the determination time setting unit 62 calculates a correction value Z corresponding to the outside air temperature based on the correction map. Thereafter, the control device 60 proceeds to step S60.

ステップS60において、制御装置60の判定時間設定部62は、補正値Zによって基本故障判定時間Haを補正し、最終的な故障判定時間Hを算出する。この後、制御装置60は、ステップS70に処理を進める。   In step S60, the determination time setting unit 62 of the control device 60 corrects the basic failure determination time Ha with the correction value Z, and calculates the final failure determination time H. Thereafter, the control device 60 proceeds to step S70.

ステップS70において、制御装置60の故障判定部64は、パルス信号の立ち下がりエッジEが検出されるか否かを判定する。パルス信号の立ち下がりエッジEが検出されない場合(ステップS70:NO)、制御装置60はステップS80に処理を進める。   In step S70, the failure determination unit 64 of the control device 60 determines whether or not the falling edge E of the pulse signal is detected. When the falling edge E of the pulse signal is not detected (step S70: NO), the control device 60 advances the process to step S80.

ステップS80において、制御装置60の故障判定部64は、ステップS20にてパルスのエッジEを検出してから故障判定時間Hが経過したか否かを判定する。故障判定時間Hが経過していないと判定された場合(ステップS80:NO)、制御装置60は、ステップS70の処理に戻る。   In step S80, the failure determination unit 64 of the control device 60 determines whether or not the failure determination time H has elapsed since the edge E of the pulse was detected in step S20. When it is determined that the failure determination time H has not elapsed (step S80: NO), the control device 60 returns to the process of step S70.

一方、故障判定時間Hが経過したと判定された場合(ステップS80:YES)、制御装置60はステップS90に処理を進める。そして、ステップS90にて、制御装置60の故障判定部64は、回転センサ50が故障していると判定する。この後、制御装置60は、ステップS100に処理を進める。ステップS100にて、制御装置60の動作停止部66は、モータ40の駆動を停止して、モータ40の回転を停止させる。この後、制御装置60は、処理を終了する。   On the other hand, when it is determined that the failure determination time H has elapsed (step S80: YES), the control device 60 advances the process to step S90. In step S90, the failure determination unit 64 of the control device 60 determines that the rotation sensor 50 has failed. Thereafter, the control device 60 proceeds to step S100. In step S <b> 100, the operation stop unit 66 of the control device 60 stops driving the motor 40 and stops the rotation of the motor 40. Thereafter, the control device 60 ends the process.

ステップS70の処理においてパルス信号の立ち下がりエッジEが検出されず(ステップS70:NO)、かつ、ステップS80の処理において故障判定時間Hが経過していないと判定される(ステップS80:NO)状態が継続する場合、制御装置60はステップS70〜S80の処理を繰り返す。そして、パルス信号の立ち下がりエッジEが検出されることなくそのまま故障判定時間Hが経過してしまった場合(ステップS80:YES)には、上述のとおり、制御装置60の故障判定部64は回転センサ50が故障していると判定する。一方、ステップS70〜S80の処理を繰り返している間に、途中でパルス信号のエッジEが検出された場合(ステップS70:YES)、制御装置60はステップS30に戻る。   State in which the falling edge E of the pulse signal is not detected in the process of step S70 (step S70: NO), and it is determined that the failure determination time H has not elapsed in the process of step S80 (step S80: NO) Is continued, the control device 60 repeats the processes of steps S70 to S80. When the failure determination time H has passed without detecting the falling edge E of the pulse signal (step S80: YES), the failure determination unit 64 of the control device 60 rotates as described above. It is determined that the sensor 50 has failed. On the other hand, when the edge E of the pulse signal is detected during the process of repeating steps S70 to S80 (step S70: YES), the control device 60 returns to step S30.

ステップS30において、制御装置60の判定時間設定部62は、ステップS70にて検出されたパルス信号の立ち下がりエッジEと、その直前のパルス信号の立ち下がりエッジEとの時間間隔Sに基づいて、モータ40の最新の回転速度を算出する。この後、制御装置60は、ステップS40〜ステップS60の処理を実行する。そして、判定時間設定部62は、故障判定時間Hを算出する。このように、制御装置60の判定時間設定部62は、故障判定部64がパルス信号の立ち下がりエッジEを検出する度に、故障判定時間Hを設定する。この後、制御装置60は、ステップS70〜ステップS80の処理を実行する。そして、故障判定部64は、故障判定時間Hに基づいた判定を行う。制御装置60は、ステップS80で故障判定部64が故障判定時間Hを経過したと判定しない限り、ステップS30〜ステップS80の処理を繰り返す。   In step S30, the determination time setting unit 62 of the control device 60, based on the time interval S between the falling edge E of the pulse signal detected in step S70 and the falling edge E of the pulse signal immediately before it. The latest rotation speed of the motor 40 is calculated. Thereafter, the control device 60 executes the processes of steps S40 to S60. Then, the determination time setting unit 62 calculates the failure determination time H. As described above, the determination time setting unit 62 of the control device 60 sets the failure determination time H every time the failure determination unit 64 detects the falling edge E of the pulse signal. Thereafter, the control device 60 executes the processes of steps S70 to S80. Then, the failure determination unit 64 performs determination based on the failure determination time H. Unless the failure determination unit 64 determines that the failure determination time H has elapsed in step S80, the control device 60 repeats the processing from step S30 to step S80.

なお、制御装置60は、ステップS30〜ステップS80の処理を繰り返している間に、サンルーフ本体10の開放動作または閉鎖動作が停止されるように操作スイッチ20が操作されるか、または、サンルーフ本体10が開き位置又は閉じ位置まで到達した場合、その時点で処理を終了する。   Note that the control device 60 operates the operation switch 20 so that the opening operation or the closing operation of the sunroof body 10 is stopped or the sunroof body 10 while the processes of Steps S30 to S80 are repeated. When reaches the open position or the closed position, the process is terminated at that time.

次に、本実施形態の作用を説明する。
サンルーフ本体10のスライド速度は、サンルーフ本体10の閉じ位置と開き位置との間で変化する場合がある。例えば、サンルーフ本体10を動作させ始めた直後においてはサンルーフ本体10のスライド速度が徐々に高くなり、サンルーフ本体10が閉じ位置や開き位置に至って停止する直前においてはサンルーフ本体10のスライド速度が徐々に低くなることがある。なお、図2は、モータ40が回転を開始した直後からのパルス信号の時間変化の例を示している。つまり、図2において、1つ目のパルス(最も左側のパルス)は、モータ40が回転を開始してから最初に回転センサ50が出力するパルスである。図2において、パルス信号の立ち下がりエッジE4と立ち下がりエッジE5との間の時間間隔S2は、パルス信号の立ち下がりエッジE1と立ち下がりエッジE2との間の時間間隔S1よりも短い。つまり、前者の間におけるモータ40の回転速度は、後者の間におけるモータ40の回転速度よりも高い。
Next, the operation of this embodiment will be described.
The sliding speed of the sunroof body 10 may change between the closed position and the open position of the sunroof body 10. For example, immediately after the sunroof body 10 starts operating, the sliding speed of the sunroof body 10 gradually increases, and immediately before the sunroof body 10 stops at the closed position or the open position, the sliding speed of the sunroof body 10 gradually increases. May be lower. FIG. 2 shows an example of the time change of the pulse signal immediately after the motor 40 starts rotating. That is, in FIG. 2, the first pulse (the leftmost pulse) is a pulse output from the rotation sensor 50 first after the motor 40 starts rotating. In FIG. 2, the time interval S2 between the falling edge E4 and the falling edge E5 of the pulse signal is shorter than the time interval S1 between the falling edge E1 and the falling edge E2 of the pulse signal. That is, the rotation speed of the motor 40 between the former is higher than the rotation speed of the motor 40 between the latter.

以下、回転センサ50が出力するパルス信号が図2に示すような時間変化を示す場合を例として、制御装置60が行う故障診断処理の流れを具体的に説明する。
制御装置60は、故障診断処理を開始すると、故障判定部64によってパルス信号の1番初めの立ち下がりのエッジE1、2番目の立ち下がりエッジE2を順次検出する(ステップS10〜ステップS20)。そして、制御装置60の判定時間設定部62は、立ち下がりエッジE2と、その直前のパルス信号の立ち下がりエッジE1との時間間隔S1に基づいてモータ40の最新の回転速度を算出する(ステップS30)。この後、制御装置60の判定時間設定部62は、モータ40の最新の回転速度に基づいて基本故障判定時間Ha1を算出し(ステップS40)、さらにその基本故障判定時間Ha1を補正して故障判定時間H1を算出する(ステップS50〜ステップS60)。
Hereinafter, the flow of the failure diagnosis process performed by the control device 60 will be described in detail, taking as an example the case where the pulse signal output from the rotation sensor 50 shows a time change as shown in FIG.
When the failure diagnosis process is started, the control device 60 sequentially detects the first falling edge E1 and the second falling edge E2 of the pulse signal by the failure determination unit 64 (steps S10 to S20). Then, the determination time setting unit 62 of the control device 60 calculates the latest rotation speed of the motor 40 based on the time interval S1 between the falling edge E2 and the falling edge E1 of the pulse signal immediately before the falling edge E2 (step S30). ). Thereafter, the determination time setting unit 62 of the control device 60 calculates the basic failure determination time Ha1 based on the latest rotation speed of the motor 40 (step S40), and further corrects the basic failure determination time Ha1 to determine the failure. Time H1 is calculated (step S50 to step S60).

この後、制御装置60の故障判定部64は、パルス信号の立ち下がりエッジE2を検出してから故障判定時間H1が経過する前に、次のパルス信号の立ち下がりエッジE3を検出する(ステップS70〜ステップS80)。この後、制御装置60の判定時間設定部62は、パルス信号の立ち下がりエッジE3と、その直前のパルス信号の立ち下がりエッジE2との時間間隔S、及び外気温に基づいて故障判定時間Hを算出し(ステップS30〜ステップS60)、故障判定時間Hを基準として次のパルス信号の立ち下がりエッジEの検出を行う(ステップS70〜S80)。このように、制御装置60は、パルス信号の立ち下がりエッジEを検出する度に、故障判定時間Hの算出(ステップS30〜ステップS60)、及び故障判定時間Hを基準としたパルス信号の立ち下がりエッジEの検出(ステップS70〜ステップS80)を行っていく。そして、制御装置60の故障判定部64は、パルス信号の立ち下がりエッジE4、立ち下がりエッジE5を順次検出する。   Thereafter, the failure determination unit 64 of the control device 60 detects the falling edge E3 of the next pulse signal before the failure determination time H1 elapses after the falling edge E2 of the pulse signal is detected (step S70). -Step S80). Thereafter, the determination time setting unit 62 of the control device 60 sets the failure determination time H based on the time interval S between the falling edge E3 of the pulse signal and the falling edge E2 of the pulse signal immediately before it and the outside air temperature. Calculation is performed (steps S30 to S60), and the falling edge E of the next pulse signal is detected based on the failure determination time H (steps S70 to S80). In this way, every time the control device 60 detects the falling edge E of the pulse signal, it calculates the failure determination time H (steps S30 to S60) and the falling edge of the pulse signal based on the failure determination time H. Edge E is detected (steps S70 to S80). And the failure determination part 64 of the control apparatus 60 detects the falling edge E4 and the falling edge E5 of a pulse signal one by one.

制御装置60の故障判定部64がパルス信号の立ち下がりエッジE5を検出すると、制御装置60の判定時間設定部62は、立ち下がりエッジE5と、その直前のパルス信号のエッジE4との時間間隔S2に基づいて基本故障判定時間Ha2を算出し(ステップS30〜ステップS40)、さらにその基本故障判定時間Ha2を補正して故障判定時間H2を算出する(ステップS50〜ステップS60)。   When the failure determination unit 64 of the control device 60 detects the falling edge E5 of the pulse signal, the determination time setting unit 62 of the control device 60 determines the time interval S2 between the falling edge E5 and the edge E4 of the pulse signal immediately before it. Based on the above, the basic failure determination time Ha2 is calculated (step S30 to step S40), and the basic failure determination time Ha2 is corrected to calculate the failure determination time H2 (step S50 to step S60).

この後、制御装置60の故障判定部64は、次のパルス信号の立ち下がりエッジEを検出することなくそのまま故障判定時間H2が経過したところで(ステップS70〜ステップS80)、回転センサ50に故障が生じていると判定する(ステップS90)。そして、制御装置60の動作停止部66がモータ40の駆動を停止してモータ40の回転を停止させる(ステップS100)。   Thereafter, the failure determination unit 64 of the control device 60 detects that the failure has occurred in the rotation sensor 50 when the failure determination time H2 has passed without detecting the falling edge E of the next pulse signal (steps S70 to S80). It is determined that it has occurred (step S90). And the operation stop part 66 of the control apparatus 60 stops the drive of the motor 40, and stops rotation of the motor 40 (step S100).

上述のとおり、パルス信号の立ち下がりエッジE4と立ち下がりエッジE5との間の時間間隔S2は、パルス信号の立ち下がりエッジE1と立ち下がりエッジE2との間の時間間隔S1よりも短い。したがって、前者の間におけるモータ40の回転速度は、後者の間におけるモータ40の回転速度よりも高い。このため、この高い回転速度を上記式(1)に代入して得られる基本故障判定時間Ha2は、その回転速度よりも低い回転速度を上記式(1)に代入して得られる基本故障判定時間Ha1よりも短い。サンルーフ本体10がスライド動作している間の外気温はほぼ一定であるため、基本故障判定時間Ha1及び基本故障判定時間Ha2の補正に用いられる補正値Zはほぼ同じである。したがって、最終的に得られる故障判定時間H2は、故障判定時間H1よりも短い。つまり、モータ40の回転速度が高い(ルーフガラス10のスライド速度が高い)状態で算出される故障判定時間H2は、モータ40の回転速度が低い(ルーフガラス10のスライド速度が低い)状態で算出される故障判定時間H1よりも短い。   As described above, the time interval S2 between the falling edge E4 and the falling edge E5 of the pulse signal is shorter than the time interval S1 between the falling edge E1 and the falling edge E2 of the pulse signal. Therefore, the rotational speed of the motor 40 during the former is higher than the rotational speed of the motor 40 during the latter. Therefore, the basic failure determination time Ha2 obtained by substituting this high rotation speed into the above equation (1) is the basic failure determination time obtained by substituting a rotation speed lower than the rotation speed into the above equation (1). Shorter than Ha1. Since the outside air temperature during the sliding operation of the sunroof body 10 is substantially constant, the correction value Z used for correcting the basic failure determination time Ha1 and the basic failure determination time Ha2 is substantially the same. Therefore, the failure determination time H2 finally obtained is shorter than the failure determination time H1. That is, the failure determination time H2 calculated when the rotation speed of the motor 40 is high (the slide speed of the roof glass 10 is high) is calculated when the rotation speed of the motor 40 is low (the slide speed of the roof glass 10 is low). Shorter than the failure determination time H1 to be performed.

本実施形態によれば、以下の効果が得られる。
(1)サンルーフ本体10のスライド速度が当該サンルーフ本体10のスライド範囲内で変化する場合には、故障判定時間Hをサンルーフ本体10のスライド速度に関わらず一定に設定することは好ましくない。具体的には、故障判定時間を利用して回転センサ50の故障を判定する場合、回転センサ50が故障してからサンルーフ本体10のスライド動作を停止させるまでの間に、故障判定時間Hに応じたタイムラグが生じる。このタイムラグの間、サンルーフ本体10は、回転センサ50が故障していて挟み込み検出部68が正常に機能しない状態でスライド動作することになる。したがって、サンルーフ本体10のスライド速度が高い場合には、故障判定時間Hを短くしないと、挟み込み検出部68が正常に機能しない状態でサンルーフ本体10が相当の距離に亘ってスライド動作することになる。一方で、サンルーフ本体10のスライド速度が低い場合には回転センサ50が出力するパルス信号の周期が長くなる。そのため、故障判定時間Hを長くとらないと、回転センサ50が正常に機能していて実際には次のパルス信号のエッジEが出力されるにも拘らず、当該エッジEを検出するタイミングよりも前に故障判定時間Hが経過してしまうおそれがある。この場合、回転センサ50が故障していると誤判定してしまうことになる。
According to the present embodiment, the following effects can be obtained.
(1) When the sliding speed of the sunroof body 10 changes within the sliding range of the sunroof body 10, it is not preferable to set the failure determination time H constant regardless of the sliding speed of the sunroof body 10. Specifically, when the failure of the rotation sensor 50 is determined using the failure determination time, the failure determination time H is determined after the rotation sensor 50 has failed until the slide operation of the sunroof body 10 is stopped. Time lag occurs. During this time lag, the sunroof body 10 slides in a state where the rotation sensor 50 is out of order and the pinch detection unit 68 does not function normally. Therefore, when the sliding speed of the sunroof main body 10 is high, the sunroof main body 10 slides over a considerable distance without the pinch detection unit 68 functioning properly unless the failure determination time H is shortened. . On the other hand, when the sliding speed of the sunroof main body 10 is low, the cycle of the pulse signal output from the rotation sensor 50 becomes long. Therefore, if the failure determination time H is not lengthened, the rotation sensor 50 is functioning normally and the edge E of the next pulse signal is actually output, but the timing at which the edge E is detected. There is a risk that the failure determination time H will elapse before. In this case, it is erroneously determined that the rotation sensor 50 is out of order.

そこで、本実施形態では、サンルーフ本体10のスライド速度に応じて、当該スライド速度毎に異なる故障判定時間Hを設定している。具体的には、サンルーフ本体10のスライド速度が高い場合には、故障判定時間Hが短く設定される。したがって、サンルーフ本体10のスライド速度が高い状態で回転センサ50に故障が発生しても、その故障の発生から比較的短い時間でサンルーフ本体10を停止させることができる。そのため、回転センサ50に故障が発生してからサンルーフ本体10が停止するまでの間に、サンルーフ本体10が過度に長い距離スライド動作することがなく、その分、サンルーフ本体10が他の物体に干渉するおそれが低減される。   Therefore, in the present embodiment, a different failure determination time H is set for each slide speed in accordance with the slide speed of the sunroof body 10. Specifically, when the sliding speed of the sunroof body 10 is high, the failure determination time H is set short. Therefore, even if a failure occurs in the rotation sensor 50 while the sliding speed of the sunroof main body 10 is high, the sunroof main body 10 can be stopped in a relatively short time from the occurrence of the failure. Therefore, the sunroof main body 10 does not slide for an excessively long distance between the time when the rotation sensor 50 fails and the sunroof main body 10 stops, and the sunroof main body 10 interferes with other objects accordingly. The risk of doing so is reduced.

一方、サンルーフ本体10のスライド速度が低い場合には、故障判定時間Hが長く設定される。したがって、サンルーフ本体10のスライド速度が遅いことに対応して回転センサ50が出力するパルス信号の周期が長くなっていても、検出されるはずのパルス信号の立ち下がりエッジEを検出しないまま回転センサ50の故障判定時間Hが経過してしまうことが防止される。したがって、回転センサ50の故障の誤判定が防止される。
このように、本実施形態によれば、サンルーフ本体10が他の物体に干渉するおそれが低減され、かつ、回転センサ50の故障の誤判定が防止される。
On the other hand, when the sliding speed of the sunroof body 10 is low, the failure determination time H is set to be long. Therefore, even if the period of the pulse signal output from the rotation sensor 50 is long in response to the slow slide speed of the sunroof body 10, the rotation sensor does not detect the falling edge E of the pulse signal that should be detected. It is prevented that 50 failure determination time H elapses. Therefore, erroneous determination of failure of the rotation sensor 50 is prevented.
Thus, according to this embodiment, the possibility that the sunroof main body 10 interferes with other objects is reduced, and erroneous determination of failure of the rotation sensor 50 is prevented.

(2)本実施形態において、故障判定時間Hは、判定時間設定部62がパルス信号の立ち下がりエッジEを検出した時点を基準として、その時点から、サンルーフ本体10が最新のスライド速度で予め設定された規定距離Aだけ進むのに要する時間以下となっている。判定時間設定部62がパルスの信号の立ち下がりエッジEを検出した時点では、回転センサ50は故障していない。したがって、この時点から上記時間以下で回転センサ50の故障を判定すれば、回転センサ50に故障が発生してからサンルーフ本体10が停止するまでの距離が規定距離Aを超えることはほぼない。そのため、回転センサ50に故障が発生した後、サンルーフ本体10が停止するまでに、サンルーフ本体10が他の物品に干渉することを好適に抑制できる。   (2) In the present embodiment, the failure determination time H is set in advance at the latest slide speed from the time point when the determination time setting unit 62 detects the falling edge E of the pulse signal. Is less than the time required to travel by the specified distance A. At the time when the determination time setting unit 62 detects the falling edge E of the pulse signal, the rotation sensor 50 has not failed. Therefore, if a failure of the rotation sensor 50 is determined within the above time from this time, the distance from the failure of the rotation sensor 50 to the stop of the sunroof body 10 hardly exceeds the specified distance A. Therefore, after the failure has occurred in the rotation sensor 50, the sunroof body 10 can be suitably prevented from interfering with other articles before the sunroof body 10 stops.

(3)本実施形態では、パルス信号の立ち下がりエッジEが検出される度に、当該立ち下がりエッジEを検出したパルス信号と、その直前のパルス信号の立ち下がりエッジEとの間の時間間隔Sに基づいてモータの回転速度が算出される。そして、その最新の回転速度に基づいて、故障判定時間Hが設定される。こうしてモータ40の最新の回転速度に基づいて故障判定時間Hを設定することで、当該故障判定時間Hは回転センサ50の故障直前におけるサンルーフ本体10のスライド速度を反映したものとなる。したがって、より適切な故障判定時間Hを設定できる。   (3) In this embodiment, every time the falling edge E of the pulse signal is detected, the time interval between the pulse signal that detected the falling edge E and the falling edge E of the immediately preceding pulse signal Based on S, the rotational speed of the motor is calculated. A failure determination time H is set based on the latest rotation speed. Thus, by setting the failure determination time H based on the latest rotation speed of the motor 40, the failure determination time H reflects the slide speed of the sunroof main body 10 immediately before the failure of the rotation sensor 50. Therefore, a more appropriate failure determination time H can be set.

(4)外気温が高い場合には、サンルーフ本体10とレール5との間に介在しているグリースの粘性が小さくなって潤滑性が向上する。そのため、外気温が高い場合には、サンルーフ本体10のスライド速度が低下しにくく、モータ40の駆動を停止してからサンルーフ本体10が停止するまでの距離が長くなり得る。そこで、本実施形態では、外気温が高い場合には、外気温が低い場合に比べて故障判定時間Hが短くなるようにしている。したがって、外気温が高い場合にはモータ40の駆動を停止させるタイミングが早くなる。そのため、外気温が高い場合にモータ40の駆動を停止してからサンルーフ本体10が停止するまでの距離が長くなったとしても、最終的にサンルーフ本体10が停止するまでの距離が長くなることを好適に抑制できる。   (4) When the outside air temperature is high, the viscosity of the grease interposed between the sunroof main body 10 and the rail 5 is reduced, and the lubricity is improved. Therefore, when the outside air temperature is high, the slide speed of the sunroof main body 10 is difficult to decrease, and the distance from when the driving of the motor 40 is stopped to when the sunroof main body 10 stops can be increased. Therefore, in the present embodiment, when the outside air temperature is high, the failure determination time H is made shorter than when the outside air temperature is low. Therefore, when the outside air temperature is high, the timing for stopping the driving of the motor 40 is advanced. Therefore, even if the distance from when the driving of the motor 40 is stopped to when the sunroof main body 10 stops when the outside air temperature is high, the distance until the sunroof main body 10 stops finally becomes longer. It can suppress suitably.

なお、上記実施形態は以下のように変更して実施することもできる。
・故障判定時間Hの設定方法は、サンルーフ本体10のスライド速度が低い場合に比べて、サンルーフ本体10のスライド速度が高い場合に故障判定時間Hが短くなるように当該故障判定時間Hを設定できる方法であればよく、そうした方法となっていることを条件として、例えば以下の(A)〜(G)で列挙するような変更が可能である。
In addition, the said embodiment can also be changed and implemented as follows.
The failure determination time H can be set such that the failure determination time H is shorter when the sliding speed of the sunroof body 10 is higher than when the sliding speed of the sunroof body 10 is low. Any method may be used, and changes such as those listed in the following (A) to (G) are possible on condition that the method is used.

(A)上記実施形態において、基本故障判定時間Haは、モータ40の最新の回転速度、つまり、サンルーフ本体10の最新のスライド速度を反映したものとなっていた。しかし、基本故障判定時間Haは、必ずしもサンルーフ本体10の最新のスライド速度を反映したものでなくてもよい。例えば、基本故障判定時間Haは、サンルーフ本体10が開放動作又は閉鎖動作を開始してからの平均値となるサンルーフ本体10のスライド速度を反映したものでもよい。なお、基本故障判定時間Haに反映されるサンルーフ本体10のスライド速度は、サンルーフ本体10が開放動作又は閉鎖動作を開始してから停止するまでの間のものに限られる。   (A) In the above embodiment, the basic failure determination time Ha reflects the latest rotation speed of the motor 40, that is, the latest slide speed of the sunroof body 10. However, the basic failure determination time Ha does not necessarily reflect the latest slide speed of the sunroof body 10. For example, the basic failure determination time Ha may reflect a sliding speed of the sunroof body 10 that is an average value after the sunroof body 10 starts an opening operation or a closing operation. Note that the sliding speed of the sunroof body 10 reflected in the basic failure determination time Ha is limited to that between when the sunroof body 10 starts the opening operation or the closing operation and stops.

(B)基本故障判定時間Haを算出するためのパラメータとしてモータ40の回転速度そのものを用いることは必須ではなく、例えばモータ40の回転速度を算出するためのパラメータであるパルス信号のエッジEの時間間隔Sを用いて基本故障判定時間Haを算出してもよい。すなわち、サンルーフ本体10のスライド動作の動作速度を推定できるパラメータであれば、どのようなパラメータであっても採用でき得る。   (B) It is not essential to use the rotational speed of the motor 40 as a parameter for calculating the basic failure determination time Ha. For example, the time of the edge E of the pulse signal that is a parameter for calculating the rotational speed of the motor 40 The basic failure determination time Ha may be calculated using the interval S. That is, any parameter can be adopted as long as it can estimate the operation speed of the sliding operation of the sunroof body 10.

なお、パルス信号のエッジEの時間間隔Sを用いて基本故障判定時間Haを算出する場合、制御装置60の判定時間設定部62は、パルス信号のエッジEを検出する度に、当該エッジEを検出したパルス信号とその直前のパルス信号のエッジEとの時間間隔Sが短いときには、そうでない場合に比較して、基本故障判定時間Haを短く設定する。また、判定時間設定部62は、基本故障判定時間Haを、パルス信号のエッジEの時間間隔Sに応じてサンルーフ本体10が規定距離Aだけ進むのに要する時間に設定する。   When the basic failure determination time Ha is calculated by using the time interval S of the edge E of the pulse signal, the determination time setting unit 62 of the control device 60 changes the edge E every time the edge E of the pulse signal is detected. When the time interval S between the detected pulse signal and the edge E of the immediately preceding pulse signal is short, the basic failure determination time Ha is set to be shorter than when the time interval S is not. In addition, the determination time setting unit 62 sets the basic failure determination time Ha to a time required for the sunroof body 10 to travel the specified distance A according to the time interval S of the edge E of the pulse signal.

(C)基本故障判定時間Haは、サンルーフ本体10が規定距離Aだけ進むのに要する時間(以下、規定距離対応時間と称する)より短くてもよい。基本故障判定時間Haが規定距離対応時間よりも短くなっていれば、サンルーフ本体10が他の物品と干渉することを好適に抑制できる。さらに、基本故障判定時間Haは規定距離対応時間より長くてもよい。上記規定距離Aが短い値として設定されているならば、基本故障判定時間Haが規定距離対応時間より多少長くても、特に問題は生じない。   (C) The basic failure determination time Ha may be shorter than the time required for the sunroof body 10 to travel the specified distance A (hereinafter referred to as the specified distance corresponding time). If the basic failure determination time Ha is shorter than the specified distance handling time, it is possible to suitably suppress the sunroof body 10 from interfering with other articles. Further, the basic failure determination time Ha may be longer than the specified distance handling time. If the specified distance A is set as a short value, no particular problem occurs even if the basic failure determination time Ha is slightly longer than the specified distance handling time.

(D)上記実施形態では、式(1)から明らかなように、サンルーフ本体10のスライド速度と基本故障判定時間Haとが比例関係となっていた。しかし、サンルーフ本体10のスライド速度に対して基本故障判定時間Haが段階的に変化するようにしてサンルーフ本体10のスライド速度と基本故障判定時間Haとの関係性を規定してもよい。   (D) In the above embodiment, as is clear from the equation (1), the sliding speed of the sunroof body 10 and the basic failure determination time Ha have a proportional relationship. However, the relationship between the sliding speed of the sunroof body 10 and the basic failure determination time Ha may be defined such that the basic failure determination time Ha changes stepwise with respect to the sliding speed of the sunroof body 10.

(E)温度センサ30によって車室内温度を検出するようにし、車室内温度に基づいて基本故障判定時間Haを補正してもよい。
(F)外気温又は車室内温度に基づいて基本故障判定時間Haを補正する場合の補正方法は、外気温又は車室内温度が低い場合に比べて外気温又は車室内温度が高い場合に故障判定時間Hが短くなるように基本故障判定時間Haを補正できる方法であれば、どのような方法でもよい。例えば、基本故障判定時間Haに補正値を乗じたり、基本故障判定時間Haを補正値で除したりしてもよい。なお、補正値は、基本故障判定時間Haの補正方法に合わせて変更すればよいし、補正値と温度との関係を規制した補正マップの内容も適宜変更すればよい。さらに、補正マップを用いることなく基本故障判定時間Haを補正してもよい。なお、補正値Zとの兼ね合いで、最終的に算出される故障判定時間Hが規定距離対応時間以上となってもよい。
(E) The vehicle interior temperature may be detected by the temperature sensor 30, and the basic failure determination time Ha may be corrected based on the vehicle interior temperature.
(F) The correction method for correcting the basic failure determination time Ha based on the outside air temperature or the vehicle interior temperature is a failure determination when the outside air temperature or the vehicle interior temperature is higher than when the outside air temperature or the vehicle interior temperature is low. Any method may be used as long as the basic failure determination time Ha can be corrected so that the time H is shortened. For example, the basic failure determination time Ha may be multiplied by a correction value, or the basic failure determination time Ha may be divided by the correction value. The correction value may be changed according to the correction method of the basic failure determination time Ha, and the content of the correction map that regulates the relationship between the correction value and the temperature may be changed as appropriate. Further, the basic failure determination time Ha may be corrected without using a correction map. Note that the failure determination time H that is finally calculated in consideration of the correction value Z may be equal to or longer than the specified distance correspondence time.

(G)外気温又は車室内温度に基づいて基本故障判定時間Haを補正しなくてもよい。この場合、基本故障判定時間Haが最終的な故障判定時間Hとなる。
・回転センサ50が出力するHIGH、LOWの信号と、磁場の極性との対応関係は、上記実施形態に示したものと反対になっていてもよい。
(G) The basic failure determination time Ha may not be corrected based on the outside air temperature or the passenger compartment temperature. In this case, the basic failure determination time Ha becomes the final failure determination time H.
The correspondence relationship between the HIGH and LOW signals output from the rotation sensor 50 and the polarity of the magnetic field may be opposite to that shown in the above embodiment.

・回転センサ50が出力するパルス信号の立ち上がりエッジによって故障判定時間Hを算出してもよい。そして、パルス信号の立ち上がりエッジを基準として、故障判定時間Hを用いて回転センサ50の故障判定を行ってもよい。   The failure determination time H may be calculated from the rising edge of the pulse signal output from the rotation sensor 50. Then, the failure determination of the rotation sensor 50 may be performed using the failure determination time H with reference to the rising edge of the pulse signal.

・回転センサ50が観測する磁場は、モータ40の半回転ごとに切り替わるようになっていなくてもよく、モータ40の1回転中に複数回切り替わってもよい。ただし、N極が観測されている時間間隔と、S極が観測されている時間間隔は等しいものとする。   The magnetic field observed by the rotation sensor 50 does not have to be switched every half rotation of the motor 40, and may be switched a plurality of times during one rotation of the motor 40. However, the time interval at which the N pole is observed is equal to the time interval at which the S pole is observed.

・上記実施形態の制御装置60を、サンルーフ本体10以外の往復動作システムに適用してもよい。サンルーフ本体10以外の往復動作体は、モータ40に駆動されることによって所定範囲を往復動作するものであればいかなるものでもよい。サンルーフ本体10以外の往復動作体は、例えば、スライドドア、スライドシート、回動によって往復動作するバックドアである。上記実施形態と同様、往復動作体システムは、往復動作体を駆動するモータ、上記実施形態と実質同一に機能する回転センサ及び制御装置を備える。往復動作体システムは、外気温又は車室内温度を検出するための温度センサを含んでいてもよい。例えばバックドアのように、軸受によって往復回動可能に支持される往復動作体に関して、当該軸受と往復動作体との間に介在しているグリースの粘性は温度によって変化する。具体的には、外気温又は車室内温度が高い場合には、往復動作体の回動速度が低下しにくく、モータの駆動を停止してから往復動作体が停止するまでの回動距離が長くなり得る。したがって、外気温又は車室内温度に基づいて基本故障判定時間Haを補正することで、外気温又は車室内温度が高い場合にモータの駆動を停止してから往復動作体が回動を停止するまでの距離が長くなったとしても、最終的に往復動作体が停止するまでの距離を抑制できる。   -You may apply the control apparatus 60 of the said embodiment to reciprocating operation systems other than the sunroof main body 10. FIG. Any reciprocating body other than the sunroof main body 10 may be used as long as it reciprocates within a predetermined range when driven by the motor 40. The reciprocating body other than the sunroof body 10 is, for example, a slide door, a slide seat, and a back door that reciprocates by rotation. Similar to the above embodiment, the reciprocating body system includes a motor that drives the reciprocating body, a rotation sensor that functions substantially the same as the above embodiment, and a control device. The reciprocating body system may include a temperature sensor for detecting an outside air temperature or a vehicle interior temperature. For example, with respect to a reciprocating body that is supported by a bearing so as to be capable of reciprocating rotation like a back door, the viscosity of the grease interposed between the bearing and the reciprocating body varies with temperature. Specifically, when the outside air temperature or the passenger compartment temperature is high, the rotational speed of the reciprocating body is unlikely to decrease, and the rotational distance from when the motor is stopped until the reciprocating body stops is long. Can be. Therefore, by correcting the basic failure determination time Ha based on the outside air temperature or the vehicle interior temperature, when the outside air temperature or the vehicle interior temperature is high, the motor is stopped and the reciprocating body stops rotating. Even if the distance becomes longer, the distance until the reciprocating body finally stops can be suppressed.

1…サンルーフシステム、2…ルーフパネル、3…ルーフ開口部、5…レール、10…サンルーフ本体、20…操作スイッチ、30…温度センサ、40…モータ、50…回転センサ、60…制御装置、62…判定時間設定部、64…故障判定部、66…動作停止部、68…挟み込み検出部、A…規定距離、C…車両、E…エッジ、H…故障判定時間、Ha…基本故障判定時間、S…時間間隔。
DESCRIPTION OF SYMBOLS 1 ... Sunroof system, 2 ... Roof panel, 3 ... Roof opening part, 5 ... Rail, 10 ... Sunroof main body, 20 ... Operation switch, 30 ... Temperature sensor, 40 ... Motor, 50 ... Rotation sensor, 60 ... Control apparatus, 62 ... determination time setting unit, 64 ... failure determination unit, 66 ... operation stop unit, 68 ... pinch detection unit, A ... regulated distance, C ... vehicle, E ... edge, H ... failure determination time, Ha ... basic failure determination time, S: Time interval.

Claims (6)

モータによって所定の範囲内を往復動作する往復動作体に適用され、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置であって、
前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、
前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、
前記往復動作体の動作速度が高いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部と
を備える往復動作体の制御装置。
A control device that is applied to a reciprocating body that reciprocates within a predetermined range by a motor, and that receives a pulse signal having a period according to the rotational speed of the motor from a rotation sensor,
In the state where the reciprocating body is in operation, when the edge of the pulse signal is detected and the edge of the next pulse signal cannot be detected within the failure determination time, the rotation sensor has failed. A failure determination unit for determining;
An operation stop unit that stops the operation of the reciprocating body when the failure determination unit determines that a failure has occurred in the rotation sensor;
A control device for a reciprocating motion body comprising: a determination time setting unit configured to set the failure determination time to be shorter when the operation speed of the reciprocating motion body is high than when not.
請求項1に記載の往復動作体の制御装置であって、
前記判定時間設定部は、前記故障判定時間を、前記往復動作体の動作速度で前記往復動作体が予め設定されている規定距離だけ進むのに要する時間以下に設定する
往復動作体の制御装置。
The reciprocating body control apparatus according to claim 1,
The determination time setting unit sets the failure determination time to be equal to or less than a time required for the reciprocating body to travel a predetermined distance set in advance at an operating speed of the reciprocating body.
モータによって所定の範囲内を往復動作する往復動作体に適用され、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置であって、
前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、
前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、
前記パルス信号のエッジを検出する度に、当該エッジを検出したパルス信号とその直前のパルス信号のエッジとの間隔が短いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部と
を備える往復動作体の制御装置。
A control device that is applied to a reciprocating body that reciprocates within a predetermined range by a motor, and that receives a pulse signal having a period according to the rotational speed of the motor from a rotation sensor,
In the state where the reciprocating body is in operation, when the edge of the pulse signal is detected and the edge of the next pulse signal cannot be detected within the failure determination time, the rotation sensor has failed. A failure determination unit for determining;
An operation stop unit that stops the operation of the reciprocating body when the failure determination unit determines that a failure has occurred in the rotation sensor;
Whenever the edge of the pulse signal is detected, when the interval between the pulse signal that detected the edge and the edge of the pulse signal immediately before the edge is short, the determination that sets the failure determination time shorter than when the interval is not A control device for a reciprocating body including a time setting unit.
請求項3に記載の往復動作体の制御装置であって、
前記判定時間設定部は、前記故障判定時間を、パルス信号のエッジの間隔に応じて前記往復動作体が予め設定されている規定距離だけ進むのに要する時間以下に設定する
往復動作体の制御装置。
A control device for a reciprocating body according to claim 3,
The determination time setting unit sets the failure determination time to be equal to or less than a time required for the reciprocating body to travel a predetermined distance in accordance with an interval between edges of a pulse signal. .
請求項1〜4のいずれか一項に記載の往復動作体の制御装置であって、
前記判定時間設定部は、前記往復動作体が搭載される車両の車室内温度又は外気温が高い場合には、そうでない場合に比較して前記故障判定時間を短い時間に設定する
往復動作体の制御装置。
It is a control apparatus of the reciprocating body as described in any one of Claims 1-4,
The determination time setting unit sets the failure determination time to a shorter time when the vehicle interior temperature or the outside air temperature of the vehicle on which the reciprocating operation body is mounted is higher than the case where the reciprocating operation body is not. Control device.
所定の範囲内を往復動作する往復動作体と、
前記往復動作体を駆動するモータと、
前記モータの回転を検出する回転センサと、
前記モータを制御し、前記モータの回転速度に応じた周期のパルス信号が回転センサから入力される制御装置とを備えた往復動作体システムであって、
前記制御装置は、
前記往復動作体を動作させている状態で、前記パルス信号のエッジを検出してから故障判定時間内に次のパルス信号のエッジを検出できない場合に、前記回転センサに故障が発生していると判定する故障判定部と、
前記故障判定部が前記回転センサに故障が発生したと判定したときに、前記往復動作体の動作を停止させる動作停止部と、
前記往復動作体の動作速度が高いときには、そうでない場合に比較して、前記故障判定時間を短く設定する判定時間設定部と
を備える往復動作体システム。
A reciprocating body that reciprocates within a predetermined range;
A motor for driving the reciprocating body;
A rotation sensor for detecting rotation of the motor;
A reciprocating body system comprising: a control device that controls the motor and receives a pulse signal having a period according to a rotation speed of the motor from a rotation sensor;
The control device includes:
In the state where the reciprocating body is in operation, when the edge of the pulse signal is detected and the edge of the next pulse signal cannot be detected within the failure determination time, the rotation sensor has failed. A failure determination unit for determining;
An operation stop unit that stops the operation of the reciprocating body when the failure determination unit determines that a failure has occurred in the rotation sensor;
A reciprocating body system comprising: a determination time setting unit that sets the failure determination time to be shorter when the operation speed of the reciprocating body is high than when it is not.
JP2017133564A 2017-07-07 2017-07-07 Control device for reciprocating body, and reciprocating body system Pending JP2019015110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017133564A JP2019015110A (en) 2017-07-07 2017-07-07 Control device for reciprocating body, and reciprocating body system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017133564A JP2019015110A (en) 2017-07-07 2017-07-07 Control device for reciprocating body, and reciprocating body system

Publications (1)

Publication Number Publication Date
JP2019015110A true JP2019015110A (en) 2019-01-31

Family

ID=65357269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017133564A Pending JP2019015110A (en) 2017-07-07 2017-07-07 Control device for reciprocating body, and reciprocating body system

Country Status (1)

Country Link
JP (1) JP2019015110A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112865665A (en) * 2021-01-26 2021-05-28 大陆汽车电子(长春)有限公司 Electronic control unit and computer program product for driving an electric machine in a sensorless manner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112865665A (en) * 2021-01-26 2021-05-28 大陆汽车电子(长春)有限公司 Electronic control unit and computer program product for driving an electric machine in a sensorless manner

Similar Documents

Publication Publication Date Title
US10017159B2 (en) Wiper control method and wiper control device
US10047553B2 (en) Openable and closable member control apparatus and openable and closable member control method
US7952312B2 (en) Closure panel control apparatus
US20110043157A1 (en) Motor control device and seat control device for vehicle
US9180838B2 (en) Motor control device
US10267078B2 (en) Vehicular opening/closing body control device
JP2008148412A (en) Motor control device
JP2013001237A (en) Wiper control device and wiper control method
US11447043B2 (en) Seat operation range setting system
JP6077771B2 (en) Wiper device
JP2009056958A (en) Wiper device
CN111456581B (en) Vehicle opening/closing body control device
JP2020191737A (en) Shift range control device
JP2019015110A (en) Control device for reciprocating body, and reciprocating body system
JP5466563B2 (en) Wiper control device and wiper device control method
JP2009067275A (en) Vehicular wiper device
US20190296667A1 (en) Control device for motor, robot, and control method for motor
JP2009291011A (en) State storage controller
JP2016098601A (en) Operation auxiliary control device
US10454400B2 (en) Electromechanical device provided with controlled motor and rotation control method
CN111691785B (en) Open/close body control device, vehicle, open/close body control method, and recording medium
JP5294597B2 (en) Motor rotation speed calculation method and wiper device
JP5155056B2 (en) Position control device
US9184689B2 (en) Motor control device
JP4094927B2 (en) Control method of wiper device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210518

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20211116