JP6862274B2 - Open / close control device, open / close operation control method and program - Google Patents

Open / close control device, open / close operation control method and program Download PDF

Info

Publication number
JP6862274B2
JP6862274B2 JP2017101420A JP2017101420A JP6862274B2 JP 6862274 B2 JP6862274 B2 JP 6862274B2 JP 2017101420 A JP2017101420 A JP 2017101420A JP 2017101420 A JP2017101420 A JP 2017101420A JP 6862274 B2 JP6862274 B2 JP 6862274B2
Authority
JP
Japan
Prior art keywords
load
calculated load
pinching
calculated
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017101420A
Other languages
Japanese (ja)
Other versions
JP2018197426A (en
Inventor
新一 遠藤
新一 遠藤
早坂 哲
哲 早坂
軍安 都
軍安 都
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Alps Alpine 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 Alps Electric Co Ltd, Alps Alpine Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP2017101420A priority Critical patent/JP6862274B2/en
Publication of JP2018197426A publication Critical patent/JP2018197426A/en
Application granted granted Critical
Publication of JP6862274B2 publication Critical patent/JP6862274B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Window Of Vehicle (AREA)
  • Power-Operated Mechanisms For Wings (AREA)

Description

本発明は、開閉体の開閉動作を制御する開閉制御装置とその開閉動作制御方法及びプログラムに関するものである。 The present invention relates to an opening / closing control device that controls an opening / closing operation of an opening / closing body, and an opening / closing operation control method and program thereof.

パワーウインドウ装置は、モータのトルクの変化に基づいて指や異物の挟み込みを検知する機能を備えており、挟み込みの検知時には、窓の上昇動作を下降動作に反転させる制御を行う。下記の特許文献に記載されるパワーウインドウ装置では、モータの回転周波数に基づいてトルクを算出し、算出したトルクが判定値を超えた場合に挟み込みがあると判定する。判定値は、挟み込みがない場合の通常の摩擦によるトルクを示す基準値としきい値との和である。 The power window device has a function of detecting pinching of a finger or a foreign object based on a change in the torque of the motor, and controls to reverse the ascending operation of the window to the descending operation when the pinching is detected. In the power window device described in the following patent document, the torque is calculated based on the rotation frequency of the motor, and when the calculated torque exceeds the determination value, it is determined that there is pinching. The determination value is the sum of the reference value and the threshold value, which indicate the torque due to normal friction when there is no pinching.

特開2004−278051号公報Japanese Unexamined Patent Publication No. 2004-278501

開閉体を開閉動作させるパワーウインドウ装置などにおいて物体の挟み込みを正しく検知するためには、開閉動作における荷重を正しく算出することが必要である。しかしながら、実際の使用では、様々な要因によって荷重の算出誤差が生じる。例えば、モータの電流や電圧に基づいて荷重を算出する方式では、モータに供給される電圧の変動が荷重の算出結果に誤差をもたらし、挟み込みの判定に誤りが生じる原因となる。 In order to correctly detect pinching of an object in a power window device or the like that opens and closes an opening and closing body, it is necessary to correctly calculate the load in the opening and closing operation. However, in actual use, load calculation errors occur due to various factors. For example, in the method of calculating the load based on the current or voltage of the motor, the fluctuation of the voltage supplied to the motor causes an error in the calculation result of the load, which causes an error in the determination of pinching.

本発明はかかる事情に鑑みてなされたものであり、その目的は、挟み込みの判定の誤りを回避し易くすることができる開閉制御装置、開閉動作制御方法及びプログラムを提供することにある。 The present invention has been made in view of such circumstances, and an object of the present invention is to provide an opening / closing control device, an opening / closing operation control method, and a program capable of easily avoiding an error in determination of pinching.

本発明の第1の観点に係る開閉制御装置は、モータの駆動による開閉体の開閉動作を制御する。この開閉制御装置は、前記モータに流れる電流を検出する電流検出部と、前記モータに供給される電圧を検出する電圧検出部と、記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と、前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部とを有する。前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定する。前記挟み込み判定部は、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定する。前記荷重算出部は、前記検出電流に比例する第1荷重成分と、前記検出電流及び前記電圧検出部の検出電圧に基づいて近似された前記モータの回転の角加速度に比例する第2荷重成分とが合成された前記荷重を算出する。 The opening / closing control device according to the first aspect of the present invention controls the opening / closing operation of the opening / closing body driven by the motor. The switch control device includes a current detector for detecting a current flowing through the motor, a voltage detection unit for detecting a voltage supplied to the motor based on the detection current before Symbol current detector, the closing body The load calculation unit that calculates the load in the opening / closing operation, the sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold that the calculated load is the pinching threshold. When the upper limit determined by the value is exceeded, the pinching determination unit for determining that the object is pinched by the opening / closing body and the pinching determination unit for determining that the pinching has occurred reverse the rotation of the motor. It has a motor control unit that performs pinch prevention control, and a reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value. The sandwiching threshold value setting unit sets the sandwiching threshold value that defines an allowable range of the excess amount of the calculated load with respect to the reference value. When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, the pinching determination unit determines that the pinching of the object by the opening / closing body has occurred. The load calculation unit includes a first load component proportional to the detected current and a second load component proportional to the angular acceleration of rotation of the motor approximated based on the detected current and the detected voltage of the voltage detection unit. Calculates the combined load.

この構成によれば、前記検出電流に比例する前記第1荷重成分と前記角加速度に比例する前記第2荷重成分とが合成された前記荷重に基づいて、前記挟み込みが検知される。前記第2荷重成分が前記荷重の算出結果に含まれることにより、比較的硬い物体の挟み込みが生じた場合、前記第2荷重成分が速やかに増大するため、挟み込みの検知のタイミングが早くなる。 According to this configuration, the pinching is detected based on the load in which the first load component proportional to the detected current and the second load component proportional to the angular acceleration are combined. When the second load component is included in the calculation result of the load and a relatively hard object is pinched, the second load component is rapidly increased, so that the timing of detecting the pinch is earlier.

好適に、前記挟み込みしきい値設定部は、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じて前記上限が変化するように、前記電圧検出部の検出電圧に基づいて前記挟み込みしきい値を設定してよい。Preferably, the sandwiching threshold setting unit is based on the detection voltage of the voltage detection unit so that the upper limit changes according to the change of the calculated load accompanying the change of the voltage supplied to the motor. The sandwiching threshold may be set.

この構成によれば、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じて、前記挟み込みの判定における前記上限が変化する。これにより、前記モータに供給される電圧の変化に伴って前記算出荷重が変化すると、その変化に合わせて前記上限が変化する。そのため、前記算出荷重が前記上限を超えたか否か判定する場合において、前記モータに供給される電圧の変化に伴う前記算出荷重の変化が当該判定結果に影響を与え難くなる。すなわち、前記モータに供給される電圧の変化に伴って前記算出荷重が変化する場合でも、前記算出荷重が前記上限を超えたか否かの判定に基づく挟み込み判定の誤りが回避され易くなる。 According to this configuration, the upper limit in the determination of pinching changes according to the change in the calculated load accompanying the change in the voltage supplied to the motor. As a result, when the calculated load changes with a change in the voltage supplied to the motor, the upper limit changes according to the change. Therefore, when determining whether or not the calculated load exceeds the upper limit, the change in the calculated load due to the change in the voltage supplied to the motor is less likely to affect the determination result. That is, even when the calculated load changes with a change in the voltage supplied to the motor, it is easy to avoid an error in the pinching determination based on the determination as to whether or not the calculated load exceeds the upper limit.

好適に、前記挟み込みしきい値設定部は、前記電圧検出部の検出電圧に基づいて、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じた補正値を前記挟み込みしきい値に加算してよい。 Preferably, the pre-Symbol pinching threshold setting unit, on the basis of the detected voltage of the voltage detection unit, the calculated load the jamming threshold a correction value corresponding to a change in due to the change of the voltage supplied to the motor May be added to the value.

この構成によれば、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じた補正値が前記挟み込みしきい値に加算される。これにより、前記モータに供給される電圧の変化に伴って前記算出荷重が変化すると、その変化に合わせて前記挟み込みしきい値が変化する。そのため、前記基準値に対する前記算出荷重の超過量と前記挟み込みしきい値とを比較する場合において、前記モータに供給される電圧の変化に伴う前記算出荷重の変化が比較結果に影響を与え難くなる。すなわち、前記モータに供給される電圧の変化に伴って前記算出荷重が変化する場合でも、前記超過量と前記挟み込みしきい値との比較結果に基づく挟み込み判定の誤りが回避され易くなる。 According to this configuration, a correction value corresponding to a change in the calculated load accompanying a change in the voltage supplied to the motor is added to the sandwiching threshold value. As a result, when the calculated load changes with a change in the voltage supplied to the motor, the sandwiching threshold value changes according to the change. Therefore, when comparing the excess amount of the calculated load with respect to the reference value and the sandwiching threshold value, the change in the calculated load due to the change in the voltage supplied to the motor is less likely to affect the comparison result. .. That is, even when the calculated load changes with a change in the voltage supplied to the motor, it is easy to avoid an error in the pinch determination based on the comparison result between the excess amount and the pinch threshold value.

好適に、前記挟み込みしきい値設定部は、前記挟み込みしきい値に前記補正値として加算する増分値を時間の経過とともに減少させてよい。 Preferably, the sandwiching threshold setting unit may decrease the incremental value to be added to the sandwiching threshold as the correction value with the passage of time.

この構成によれば、前記モータに供給される電圧が上昇することによって前記算出荷重が大きくなった後、前記算出荷重が時間とともに小さくなる場合に、前記挟み込みしきい値に加算される前記増分値が時間の経過とともに減少することで、前記挟み込みしきい値も小さくなる。すなわち、前記モータに供給される電圧の上昇後に前記算出荷重が小さくなると、その変化に合わせて前記挟み込みしきい値が小さくなる。 According to this configuration, when the calculated load increases with time due to an increase in the voltage supplied to the motor and then decreases with time, the incremental value added to the sandwiching threshold value. Decreases with the passage of time, so that the sandwiching threshold also decreases. That is, when the calculated load becomes smaller after the voltage supplied to the motor rises, the sandwiching threshold value becomes smaller according to the change.

好適に、上記開閉制御装置は、前記算出荷重の変動量と第1外乱しきい値との比較に基づいて、前記算出荷重の変動を引き起こす外乱を検知する外乱検知部を有してよい。前記挟み込みしきい値設定部は、前記外乱検知部において前記外乱が検知された場合、前記算出荷重の変動量に応じた外乱増分値を前記挟み込みしきい値に加算してよい。 Preferably, the opening / closing control device may have a disturbance detection unit that detects a disturbance that causes the fluctuation of the calculated load based on the comparison between the fluctuation amount of the calculated load and the first disturbance threshold value. When the disturbance is detected by the disturbance detection unit, the sandwiching threshold value setting unit may add a disturbance increment value according to the fluctuation amount of the calculated load to the sandwiching threshold value.

この構成によれば、前記算出荷重の変動量と前記第1外乱しきい値との比較に基づいて前記外乱が検知された場合、前記算出荷重の変動量に応じた外乱増分値が前記挟み込みしきい値に加算される。これにより、前記算出荷重の変動量から推測される前記外乱の大きさに応じて、前記挟み込みしきい値が大きくなるため、前記外乱による挟み込みの判定の誤りが回避され易くなる。 According to this configuration, when the disturbance is detected based on the comparison between the fluctuation amount of the calculated load and the first disturbance threshold value, the disturbance increment value corresponding to the fluctuation amount of the calculated load is sandwiched. It is added to the threshold value. As a result, the pinching threshold value increases according to the magnitude of the disturbance estimated from the fluctuation amount of the calculated load, so that it is easy to avoid an error in determining pinching due to the disturbance.

好適に、前記外乱検知部は、前記算出荷重の最大値を保持し、前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重と前記保持した最大値とを比較し、前記新たな算出荷重が前記保持した最大値より大きいならば、前記新たな算出荷重を新たな最大値として保持し、前記保持した最大値を時間の経過とともに減少させる最大値保持部と、前記最大値からの前記算出荷重の変動量が前記第1外乱しきい値より大きい場合、前記外乱があると判定する外乱判定部と、前記外乱判定部において前記外乱があると判定された場合、前記最大値からの前記算出荷重の変動量に応じた前記外乱増分値を算出する外乱増分値算出部とを含んでよい。 Preferably, the disturbance detection unit holds the maximum value of the calculated load, and each time the load calculation unit calculates a new calculated load, the new calculated load is compared with the held maximum value. Then, if the new calculated load is larger than the held maximum value, the new calculated load is held as a new maximum value, and the held maximum value is reduced with the passage of time. When the amount of fluctuation of the calculated load from the maximum value is larger than the first disturbance threshold value, the disturbance determination unit determines that there is a disturbance, and the disturbance determination unit determines that there is the disturbance. It may include a disturbance increment value calculation unit that calculates the disturbance increment value according to the fluctuation amount of the calculated load from the maximum value.

この構成によれば、保持された前記算出荷重の最大値からの変動量が前記第1外乱しきい値より大きい場合に前記外乱があると判定され、前記最大値からの前記算出荷重の変動量に応じた前記外乱増分値が前記挟み込みしきい値に加算される。そのため、前記外乱によって前記算出荷重の短時間の変動が起きても、前記外乱増分値が加算されることで前記挟み込みしきい値が大きくなるため、前記外乱が挟み込みとして判定され難くなる。また、保持された前記最大値が更新された後、時間の経過とともに前記最大値が減少するため、前記外乱による単発的な前記算出荷重の変動が終わった後は、前記変動量が小さくなり、前記外乱があるとの判定が自動的に解除される。 According to this configuration, when the fluctuation amount from the maximum value of the calculated load held is larger than the first disturbance threshold value, it is determined that there is the disturbance, and the fluctuation amount of the calculated load from the maximum value is determined. The disturbance increment value corresponding to is added to the sandwiching threshold value. Therefore, even if the calculated load fluctuates for a short time due to the disturbance, the disturbance threshold value is increased by adding the disturbance increment value, so that the disturbance is difficult to be determined as sandwiching. Further, since the maximum value decreases with the passage of time after the retained maximum value is updated, the fluctuation amount becomes small after the single-shot fluctuation of the calculated load due to the disturbance is completed. The determination that there is the disturbance is automatically canceled.

好適に、前記第1外乱しきい値より小さい第2外乱しきい値、及び、前記第2外乱しきい値より小さい第3外乱しきい値が定められていてよい。前記外乱判定部は、前記最大値からの前記算出荷重の変動量が前記第2外乱しきい値を超える範囲への前記算出荷重の低下と、前記最大値からの前記算出荷重の変動量が前記第3外乱しきい値を下回る範囲への前記算出荷重の上昇とが交互に繰り返された回数を計数し、当該回数に応じて前記外乱があると判定してよい。 Preferably, a second disturbance threshold value smaller than the first disturbance threshold value and a third disturbance threshold value smaller than the second disturbance threshold value may be defined. In the disturbance determination unit, the decrease of the calculated load to the range where the fluctuation amount of the calculated load from the maximum value exceeds the second disturbance threshold value, and the fluctuation amount of the calculated load from the maximum value are said. The number of times that the increase of the calculated load to the range below the third disturbance threshold value is alternately repeated may be counted, and it may be determined that there is the disturbance according to the number of times.

この構成によれば、前記外乱が比較的小さいことにより、前記最大値からの変動量が前記第1外乱しきい値より小さい場合であっても、前記最大値からの前記算出荷重の変動量が前記第1外乱しきい値より小さい第2外乱しきい値を超える範囲への前記算出荷重の低下と、前記最大値からの前記算出荷重の変動量が前記第2外乱しきい値より小さい第3外乱しきい値を下回る範囲への前記算出荷重の上昇とが交互に繰り返された回数から、前記外乱の有無が判定される。従って、比較的小さい前記外乱による挟み込み判定の誤りが回避され易くなる。 According to this configuration, since the disturbance is relatively small, the fluctuation amount of the calculated load from the maximum value is smaller than the first disturbance threshold value even when the fluctuation amount from the maximum value is smaller than the first disturbance threshold value. A third decrease in the calculated load to a range exceeding the second disturbance threshold value smaller than the first disturbance threshold value and a fluctuation amount of the calculated load from the maximum value is smaller than the second disturbance threshold value. The presence or absence of the disturbance is determined from the number of times the calculated load is alternately increased to a range below the disturbance threshold value. Therefore, it becomes easy to avoid an error in the pinch determination due to the relatively small disturbance.

好適に、前記外乱判定部は、前記外乱があると判定する度に、外乱判定状態を一定期間保持してよい。前記挟み込みしきい値設定部は、前記外乱判定状態が保持されている間、前記外乱増分値を前記挟み込みしきい値に加算してよい。 Preferably, the disturbance determination unit may hold the disturbance determination state for a certain period of time each time it determines that there is the disturbance. The sandwiching threshold value setting unit may add the disturbance increment value to the sandwiching threshold value while the disturbance determination state is held.

この構成によれば、前記外乱判定状態の保持が一定期間に限定されており、前記挟み込みしきい値への前記外乱増分値の加算が一定期間に限定されているため、単発的な前記外乱による前記算出荷重の変動が終わった後も前記挟み込みしきい値に前記外乱増分値が加算され続けることがない。 According to this configuration, the holding of the disturbance determination state is limited to a certain period of time, and the addition of the disturbance increment value to the sandwiching threshold value is limited to a certain period of time. Even after the fluctuation of the calculated load is completed, the disturbance increment value does not continue to be added to the sandwiching threshold value.

好適に、前記外乱増分値算出部は、前記外乱判定状態が保持されている間、前記挟み込みしきい値に加算する前記外乱増分値を、前記最大値からの前記算出荷重の最も大きな変動量に応じて更新してよい。 Preferably, the disturbance increment value calculation unit sets the disturbance increment value to be added to the sandwiching threshold value to the largest fluctuation amount of the calculated load from the maximum value while the disturbance determination state is held. It may be updated accordingly.

この構成によれば、前記外乱判定状態が保持されているときに、途中で前記外乱が大きくなった場合でも、前記挟み込みしきい値に加算される前記外乱増分値が、前記最大値からの前記算出荷重の最も大きな変動量に応じて更新される。これにより、途中から前記外乱が大きくなった場合、これに応じて前記挟み込みしきい値が大きくなるため、前記外乱による挟み込み判定の誤りが回避され易くなる。 According to this configuration, even if the disturbance becomes large in the middle while the disturbance determination state is held, the disturbance increment value added to the sandwiching threshold value is the said from the maximum value. It is updated according to the maximum fluctuation amount of the calculated load. As a result, when the disturbance becomes large from the middle, the sandwiching threshold value becomes large accordingly, so that an error in the pinching determination due to the disturbance can be easily avoided.

好適に、前記挟み込みしきい値設定部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の低下量が初期低下量しきい値を超える場合、前記挟み込みしきい値を一時的に増大させてよい。 Preferably, when the decrease amount of the calculated load per predetermined time exceeds the initial decrease amount threshold value in the initial period after the motor is started, the sandwiching threshold value setting unit sets the sandwiching threshold value. It may be increased temporarily.

この構成によれば、前記モータが起動した後の初期期間において前記算出荷重の比較的大きな低下があった場合、前記挟み込みしきい値が一時的に増大するため、前記モータの起動特性に起因する前記算出荷重の変動が挟み込みとして誤って判定され難くなる。 According to this configuration, when the calculated load is relatively significantly reduced in the initial period after the motor is started, the sandwiching threshold value is temporarily increased, which is caused by the starting characteristics of the motor. Fluctuations in the calculated load are less likely to be erroneously determined as pinching.

好適に、前記基準値算出部は、前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重と過去の前記基準値との第1加重平均の結果を新たな前記基準値として算出してよい。前記基準値算出部は、前記モータが起動した後の初期期間において、前記新たな算出荷重が最大荷重を超える場合は、前記新たな基準値を前記最大荷重に一致させてよく、また、前記新たな算出荷重が最小荷重より小さい場合は、前記新たな基準値を前記最小荷重に一致させてよい。 Preferably, the reference value calculation unit obtains the result of the first weighted average of the new calculated load and the past reference value each time a new calculated load is calculated by the load calculation unit. It may be calculated as a reference value. If the new calculated load exceeds the maximum load in the initial period after the motor is started, the reference value calculation unit may match the new reference value with the maximum load, and the new reference value calculation unit may match the new calculated load with the maximum load. If the calculated load is smaller than the minimum load, the new reference value may be matched with the minimum load.

この構成によれば、前記新たな算出荷重と過去の前記基準値との前記第1加重平均の結果が、前記新たな前記基準値として算出される。また、前記モータが起動した後の初期期間において、前記新たな算出荷重の範囲が前記最大荷重と前記最小荷重との間に制限される。これにより、前記初期期間において前記モータの起動特性に起因した前記算出荷重の大きな変動が起きても、前記第1加重平均による前記基準値の算出結果が比較的短い時間で適切な範囲に収束し易くなる。 According to this configuration, the result of the first weighted average of the new calculated load and the past reference value is calculated as the new reference value. Further, in the initial period after the motor is started, the range of the newly calculated load is limited between the maximum load and the minimum load. As a result, even if a large fluctuation in the calculated load occurs due to the starting characteristics of the motor in the initial period, the calculation result of the reference value by the first weighted average converges to an appropriate range in a relatively short time. It will be easier.

好適に、前記基準値算出部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の低下量が第1変動しきい値を超える場合、前記新たな基準値を前記新たな算出荷重に一致させてよい。 Preferably, when the amount of decrease in the calculated load per predetermined time exceeds the first fluctuation threshold value in the initial period after the motor is started, the reference value calculation unit sets the new reference value. It may be matched with the calculated load.

この構成によれば、前記初期期間において、前記モータの起動特性に起因する前記算出荷重の変動により前記算出荷重が比較的大きく低下した場合、前記新たな基準値が前記新たな算出荷重に一致させられる。これにより、前記モータの起動特性の影響で前記算出荷重が変動しても、前記第1加重平均による前記基準値の算出結果が比較的短い時間で前記算出荷重と近い値に収束し易くなる。 According to this configuration, when the calculated load is relatively significantly reduced due to the fluctuation of the calculated load due to the starting characteristics of the motor in the initial period, the new reference value is made to match the new calculated load. Be done. As a result, even if the calculated load fluctuates due to the influence of the starting characteristics of the motor, the calculation result of the reference value by the first weighted average can easily converge to a value close to the calculated load in a relatively short time.

好適に、前記基準値算出部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の上昇量が第2変動しきい値を超える場合、前記新たな算出荷重と過去の前記基準値との第2加重平均であって、前記第1加重平均より応答速度が速い前記第2加重平均の結果を新たな前記基準値として算出してよい。 Preferably, when the increase amount of the calculated load per predetermined time exceeds the second fluctuation threshold value in the initial period after the motor is started, the reference value calculation unit uses the new calculated load and the past. The result of the second weighted average, which is the second weighted average with the reference value and has a faster response speed than the first weighted average, may be calculated as the new reference value.

この構成によれば、前記初期期間において、前記モータの起動特性に起因する前記算出荷重の変動により前記算出荷重が比較的大きく上昇した場合、前記第1加重平均に比べて応答速度が速い前記第2加重平均により前記基準値が算出される。これにより、前記モータの起動特性の影響で前記算出荷重が変動しても、前記第2加重平均による前記基準値の算出結果が比較的短い時間で前記算出荷重と近い値に収束し易くなる。 According to this configuration, when the calculated load increases relatively significantly due to the fluctuation of the calculated load due to the starting characteristics of the motor in the initial period, the response speed is faster than that of the first weighted average. The reference value is calculated by the two-weighted average. As a result, even if the calculated load fluctuates due to the influence of the starting characteristics of the motor, the calculation result of the reference value by the second weighted average can easily converge to a value close to the calculated load in a relatively short time.

好適に、前記基準値算出部は、前記算出荷重と前記基準値とが所定時間以上継続して第1範囲内の差を有する場合、前記新たな基準値を前記新たな算出荷重に一致させてよい。 Preferably, when the calculated load and the reference value have a difference within the first range continuously for a predetermined time or more, the reference value calculation unit makes the new reference value match the new calculated load. Good.

この構成によれば、前記算出荷重と前記基準値との差が開いた状態が続いた場合に、前記新たな基準値が前記新たな算出荷重に一致させられるため、挟み込みの判定の誤りが回避され易くなる。 According to this configuration, when the difference between the calculated load and the reference value continues to be widened, the new reference value is made to match the new calculated load, so that an error in the determination of pinching is avoided. It becomes easy to be done.

好適に、上記開閉制御装置は、前記開閉体の位置を検出する開閉体位置検出部を有してよい。前記基準値算出部は、前記開閉体位置検出部において検出された前記開閉体の位置が前記開閉体の全閉位置に近接した所定の範囲内にあるときは、前記算出荷重と前記基準値とが所定時間以上継続して第2範囲内の差を有する場合に、前記新たな基準値を前記新たな算出荷重に一致させてよい。前記第2範囲は、前記算出荷重が前記基準値より小さい条件において、前記第1範囲よりも拡張されていてよい。 Preferably, the opening / closing control device may have an opening / closing body position detecting unit that detects the position of the opening / closing body. When the position of the opening / closing body detected by the opening / closing body position detecting unit is within a predetermined range close to the fully closed position of the opening / closing body, the reference value calculation unit includes the calculated load and the reference value. May match the new reference value with the new calculated load when there is a difference within the second range for a predetermined time or longer. The second range may be extended from the first range under the condition that the calculated load is smaller than the reference value.

この構成によれば、前記全閉位置に近接した前記所定の範囲内に前記開閉体が位置するとともに、前記算出荷重が前記基準値より小さい状態が続いた場合に、前記算出荷重と前記基準値との差が、前記第1範囲内より拡張された前記第2範囲に含まれ易くなる。これにより、前記全閉位置の近くで前記算出荷重が前記基準値より小さい状態が続いた場合に、前記新たな基準値が前記新たな算出荷重に一致させられるため、挟み込みの判定の遅れが短くなる。 According to this configuration, when the opening / closing body is located within the predetermined range close to the fully closed position and the calculated load continues to be smaller than the reference value, the calculated load and the reference value are maintained. The difference from the above is likely to be included in the second range extended from the first range. As a result, when the calculated load continues to be smaller than the reference value near the fully closed position, the new reference value is made to match the new calculated load, so that the delay in pinching determination is short. Become.

好適に、前記基準値算出部は、前記新たな算出荷重と過去の前記基準値との差が差異しきい値より大きく、かつ、所定時間あたりの前記算出荷重の変化量が変化量しきい値より大きい場合、前記新たな基準値を前記過去の基準値に一致させてよい。 Preferably, in the reference value calculation unit, the difference between the new calculated load and the past reference value is larger than the difference threshold value, and the amount of change in the calculated load per predetermined time is the change amount threshold value. If it is larger, the new reference value may be matched with the past reference value.

この構成によれば、挟み込みの発生によって前記新たな算出荷重と過去の前記基準値との差が前記差異しきい値より大きくなり、かつ、所定時間あたりの前記算出荷重の変化量が前記変化量しきい値より大きくなった場合、前記新たな基準値が前記過去の基準値に一致させられる。これにより、挟み込みが発生すると前記基準値の更新が停止され、前記算出荷重が前記基準値に比べて大きくなる。 According to this configuration, the difference between the new calculated load and the past reference value becomes larger than the difference threshold value due to the occurrence of pinching, and the amount of change in the calculated load per predetermined time is the amount of change. When it becomes larger than the threshold value, the new reference value is made to match the past reference value. As a result, when pinching occurs, the update of the reference value is stopped, and the calculated load becomes larger than the reference value.

好適に、前記挟み込み判定部は、前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重を含む一連の複数の算出荷重に基づいて、前記算出荷重の変化のパターンが所定の単調増加のパターンに該当するか否かを判定してよい。また、前記挟み込み判定部は、前記基準値に対する前記新たな算出荷重の超過量が前記挟み込みしきい値より大きい第1条件と、前記算出荷重の変化のパターンが前記単調増加のパターンに該当する第2条件とを満たした場合、前記挟み込みが発生したと判定してよい。 Preferably, the sandwiching determination unit is based on a series of a plurality of calculated loads including the new calculated load each time a new calculated load is calculated by the load calculating unit, and a pattern of change in the calculated load. May be determined whether or not corresponds to a predetermined monotonous increase pattern. Further, in the pinch determination unit, the first condition in which the excess amount of the new calculated load with respect to the reference value is larger than the pinch threshold value, and the pattern of change in the calculated load corresponds to the monotonous increase pattern. When the two conditions are satisfied, it may be determined that the pinching has occurred.

この構成によれば、前記基準値に対する前記新たな算出荷重の超過量が前記挟み込みしきい値より大きい前記第1条件に加えて、前記算出荷重の変化のパターンが前記単調増加のパターンに該当する前記第2条件を満たした場合に、前記挟み込みが発生したと判定される。これにより、挟み込みの判定の精度が向上する。 According to this configuration, in addition to the first condition in which the excess amount of the new calculated load with respect to the reference value is larger than the sandwiching threshold value, the pattern of change in the calculated load corresponds to the pattern of monotonous increase. When the second condition is satisfied, it is determined that the pinching has occurred. As a result, the accuracy of the pinch determination is improved.

好適に、前記挟み込み判定部は、所定時間あたりの前記算出荷重の増加量が、硬い物体の挟み込みの発生基準を示すしきい値より大きい場合には、前記第1条件及び前記第2条件に加えて、前記算出荷重の変化が加速している第3条件を満たした場合に、前記挟み込みが発生したと判定してよい。 Preferably, when the increase amount of the calculated load per predetermined time is larger than the threshold value indicating the occurrence standard of pinching of a hard object, the pinching determination unit adds to the first condition and the second condition. Therefore, when the third condition that the change of the calculated load is accelerating is satisfied, it may be determined that the pinching has occurred.

この構成によれば、所定時間あたりの前記算出荷重の増加量が、硬い物体の挟み込みの発生基準を示すしきい値より大きい場合、前記算出荷重の変化が加速している前記第3条件が挟み込み判定の条件に加わる。これにより、挟み込みの判定の精度が更に向上する。 According to this configuration, when the increase amount of the calculated load per predetermined time is larger than the threshold value indicating the occurrence standard of pinching of a hard object, the third condition in which the change of the calculated load is accelerated is sandwiched. Participate in the judgment conditions. As a result, the accuracy of the pinch determination is further improved.

本発明の第2の観点に係る開閉動作制御方法は、モータの駆動により開閉体の開閉動作を制御する。この開閉動作制御方法は、前記モータに流れる電流を検出するセンサの検出結果を取得することと、前記モータに供給される電圧を検出するセンサの検出結果を取得することと、前記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、前記算出荷重が前記挟み込みしきい値によって定められた前記上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと、前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することとを有し、前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、前記挟み込みの発生を判定することは、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することを含み、 前記荷重を算出することは、前記検出結果の電流に比例する第1荷重成分と、前記検出結果の電流及び前記検出結果の電圧に基づいて近似された前記モータの回転の角加速度に比例する第2荷重成分とが合成された前記荷重を算出することを含む。 The opening / closing operation control method according to the second aspect of the present invention controls the opening / closing operation of the opening / closing body by driving a motor. In this opening / closing operation control method, the detection result of the sensor that detects the current flowing through the motor is acquired, the detection result of the sensor that detects the voltage supplied to the motor is acquired, and the detection result of the current is obtained. Based on the above, the load in the opening / closing operation of the opening / closing body is calculated, the sandwiching threshold value that sets the upper limit of the calculated load obtained by the calculation of the load is set, and the calculated load is sandwiched. When the upper limit determined by the threshold value is exceeded, it is determined that the pinching of the object by the opening / closing body has occurred, and when it is determined that the pinching has occurred by the pinching determination, the rotation of the motor is reversed. It has the control of preventing pinching and the calculation of the result of the weighted average of the calculated load obtained by the calculation of the load as a reference value, and setting the pinch threshold is the reference. Including setting the sandwiching threshold value that determines the allowable range of the excess amount of the calculated load with respect to the value, determining the occurrence of the pinch means that the excess amount of the calculated load with respect to the reference value is the pinch threshold. If it is larger than the value, it includes determining that the object is pinched by the opening / closing body, and calculating the load includes a first load component proportional to the current of the detection result, the current of the detection result, and This includes calculating the load obtained by combining the second load component proportional to the angular acceleration of the rotation of the motor, which is approximated based on the voltage of the detection result.

本発明の第3の観点に係るプログラムは、上記第2の観点に係る開閉動作制御方法をコンピュータに実行させるためのプログラムである。 The program according to the third aspect of the present invention is a program for causing a computer to execute the opening / closing operation control method according to the second aspect.

本発明によれば、挟み込みの判定の誤りを回避し易くすることができる。 According to the present invention, it is possible to easily avoid an error in the determination of pinching.

本実施形態に係る開閉制御装置の構成の一例を示す図である。It is a figure which shows an example of the structure of the opening / closing control device which concerns on this embodiment. モータ起動後の各ステージにおける開閉制御装置の動作の概要を示した図である。It is a figure which showed the outline of the operation of the open / close control device in each stage after starting a motor. 開閉制御装置における挟み込み防止機能を説明するためのフローチャートである。It is a flowchart for demonstrating the pinch prevention function in an opening / closing control device. 基準値の算出を説明するためのフローチャートである。It is a flowchart for demonstrating the calculation of a reference value. 基準値の算出における安定点検索処理を説明するためのフローチャートである。It is a flowchart for demonstrating the stability point search process in calculation of a reference value. 安定点検索処理の例を示す図である。図6Aは算出荷重が最小荷重より小さい場合を示し、図6Bは算出荷重の急な減少がある場合を示し、図6Cは算出荷重の急な増大がある場合を示し、図6Dは算出荷重が最大荷重より大きい場合を示す。It is a figure which shows the example of the stable point search process. FIG. 6A shows the case where the calculated load is smaller than the minimum load, FIG. 6B shows the case where the calculated load suddenly decreases, FIG. 6C shows the case where the calculated load suddenly increases, and FIG. 6D shows the case where the calculated load is suddenly increased. The case where it is larger than the maximum load is shown. 基準値の算出における加重平均処理を説明するためのフローチャートである。It is a flowchart for demonstrating the weighted average processing in calculation of a reference value. 加重平均処理の例を示す図である。図8Aは、加重平均処理によって基準値が算出される例を示す。図8Bは、算出荷重の急な上昇によって基準値の更新が停止される例を示す。It is a figure which shows the example of the weighted average processing. FIG. 8A shows an example in which the reference value is calculated by the weighted average processing. FIG. 8B shows an example in which the update of the reference value is stopped due to a sudden increase in the calculated load. 基準値の算出における基準値追随処理を説明するためのフローチャートである。It is a flowchart for demonstrating the reference value follow-up process in calculation of a reference value. 基準値追随処理の例を示す図である。It is a figure which shows the example of the reference value follow processing. 基準値追随処理を行う場合と行わない場合の比較を示す図である。図11Aは基準値追随処理を行う場合の例を示し、図11Bは基準値追随処理を行わない場合の比較例を示す。It is a figure which shows the comparison of the case where the reference value follow processing is performed, and the case where it is not performed. FIG. 11A shows an example when the reference value tracking process is performed, and FIG. 11B shows a comparative example when the reference value tracking process is not performed. 全閉位置の近接範囲における基準値追随処理の例を示す図である。It is a figure which shows the example of the reference value tracking processing in the proximity range of a fully closed position. 全閉位置の近接範囲において基準値追随処理を行う場合と行わない場合の比較を示す図である。図13Aは基準値追随処理を行う場合の例を示し、図13Bは基準値追随処理を行わない場合の比較例を示す。It is a figure which shows the comparison of the case where the reference value follow processing is performed, and the case where it is not performed in the proximity range of a fully closed position. FIG. 13A shows an example when the reference value tracking process is performed, and FIG. 13B shows a comparative example when the reference value tracking process is not performed. 外乱検知を説明するためのフローチャートである。It is a flowchart for demonstrating disturbance detection. 算出荷重の最大値を保持する処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process which holds the maximum value of the calculated load. 算出荷重の最大値を保持する処理の例を示す図である。It is a figure which shows the example of the process which holds the maximum value of the calculated load. 大きい外乱の検知処理を説明するためのフローチャートである。It is a flowchart for demonstrating the detection process of a large disturbance. 大きい外乱の検知処理の例を示す図である。It is a figure which shows the example of the detection processing of a large disturbance. 小さい外乱の検知処理を説明するための第1のフローチャートである。It is a 1st flowchart for demonstrating the detection process of a small disturbance. 小さい外乱の検知処理を説明するための第2のフローチャートである。It is a 2nd flowchart for demonstrating the detection process of a small disturbance. 小さい外乱の検知処理の例を示す図である。It is a figure which shows the example of the detection process of a small disturbance. 外乱増分値の算出処理を説明するためのフローチャートである。It is a flowchart for demonstrating the calculation process of the disturbance increment value. 外乱判定状態の保持期間の例を示す図である。It is a figure which shows the example of the retention period of the disturbance determination state. 外乱判定状態の保持期間における外乱増分値の更新の例を示す図である。It is a figure which shows the example of the update of the disturbance increment value in the holding period of a disturbance determination state. 挟み込みしきい値の設定を説明するための第1のフローチャートである。It is the 1st flowchart for demonstrating the setting of the sandwiching threshold value. 挟み込みしきい値の設定を説明するための第2のフローチャートである。It is a 2nd flowchart for demonstrating the setting of the sandwiching threshold value. モータ起動後の初期期間における算出荷重の低下の例を示す図である。It is a figure which shows the example of the decrease of the calculated load in the initial period after starting a motor. 全閉位置の近接範囲における挟み込みしきい値の設定の例を示す図である。It is a figure which shows the example of setting of the sandwiching threshold value in the proximity range of a fully closed position. モータの電圧の変動に伴う算出荷重の変化と挟み込みしきい値の設定の例を示す図である。図29Aはモータの電圧が一定の時間変化率で上昇する場合及び一定の時間変化率で低下する場合を示し、図29Bはモータの電圧が特定のタイミングで不連続に上昇する階段状の変化を生じる場合を示す。It is a figure which shows the example of the change of the calculated load and the setting of the sandwiching threshold value with the fluctuation of the voltage of a motor. FIG. 29A shows a case where the voltage of the motor rises at a constant rate of change over time and a case where the voltage of the motor decreases at a constant rate of change over time, and FIG. 29B shows a stepped change in which the voltage of the motor rises discontinuously at a specific timing. The case where it occurs is shown. 挟み込み判定を説明するための第1のフローチャートである。It is a 1st flowchart for demonstrating pinching determination. 挟み込み判定を説明するための第2のフローチャートである。It is the 2nd flowchart for demonstrating pinching determination. 挟み込み判定における算出荷重の単調増加の条件を説明するための図である。It is a figure for demonstrating the condition of monotonous increase of the calculated load in pinch determination.

図1は、本実施形態に係る開閉制御装置の構成の一例を示す図である。本実施形態に係る開閉制御装置は、モータ6の駆動による開閉体3(窓)の開閉動作を制御する装置であり、図1の例では、車両におけるドア2の窓枠4に取り付けられた開閉体3(窓)の開閉動作を制御する。図1に示す開閉制御装置は、モータ駆動回路10と、電圧検出部20と、電流検出部30と、操作部40と、処理部50と、記憶部60とを有する。 FIG. 1 is a diagram showing an example of a configuration of an opening / closing control device according to the present embodiment. The opening / closing control device according to the present embodiment is a device that controls the opening / closing operation of the opening / closing body 3 (window) driven by the motor 6, and in the example of FIG. 1, the opening / closing control device attached to the window frame 4 of the door 2 in the vehicle. Controls the opening and closing operation of the body 3 (window). The open / close control device shown in FIG. 1 includes a motor drive circuit 10, a voltage detection unit 20, a current detection unit 30, an operation unit 40, a processing unit 50, and a storage unit 60.

モータ駆動回路10は、処理部50の後述するモータ制御部57において生成される制御信号に応じて、モータ6の駆動用の電圧を生成する。図1の例において、モータ駆動回路10は、フルブリッジ回路を構成する4つのスイッチ素子(11〜14)を有する。スイッチ素子11及び12が、バッテリ等の電源電圧Vbatとグランドとの間に直列接続され、その接続中点がモータ6の一方の入力端子に接続される。スイッチ素子13及び14が、電源電圧Vbatとグランドとの間に直列接続され、その接続中点がモータ6の他方の入力端子に接続される。モータ6は、例えばDCモータであり、2つの入力端子に印加される電圧の極性に応じて回転方向が反転する。 The motor drive circuit 10 generates a voltage for driving the motor 6 in response to a control signal generated by the motor control unit 57 described later in the processing unit 50. In the example of FIG. 1, the motor drive circuit 10 has four switch elements (11 to 14) constituting a full bridge circuit. The switch elements 11 and 12 are connected in series between the power supply voltage Vbat of the battery or the like and the ground, and the connection midpoint is connected to one input terminal of the motor 6. The switch elements 13 and 14 are connected in series between the power supply voltage Vbat and the ground, and the connection midpoint is connected to the other input terminal of the motor 6. The motor 6 is, for example, a DC motor, and its rotation direction is reversed according to the polarity of the voltage applied to the two input terminals.

電圧検出部20は、モータ6に供給される電圧を検出する。図1の例において、電圧検出部20は、増幅部21とフィルタ部22を有する。増幅部21は、モータ6の2つの入力端子に印加される電圧を所定のゲインで増幅する。フィルタ部22は、増幅部21の出力信号からスイッチング周波数の成分を除去し、モータ6へ供給される平均的な電圧に応じた信号を出力する。電圧検出部20は、AD変換器を備えており、モータ6に供給される電圧に応じたデジタル信号を処理部50に出力する。 The voltage detection unit 20 detects the voltage supplied to the motor 6. In the example of FIG. 1, the voltage detection unit 20 has an amplification unit 21 and a filter unit 22. The amplification unit 21 amplifies the voltage applied to the two input terminals of the motor 6 with a predetermined gain. The filter unit 22 removes the switching frequency component from the output signal of the amplification unit 21 and outputs a signal corresponding to the average voltage supplied to the motor 6. The voltage detection unit 20 includes an AD converter, and outputs a digital signal corresponding to the voltage supplied to the motor 6 to the processing unit 50.

電流検出部30は、モータ6に流れる電流を検出する。図1の例において、電流検出部30は、シャント抵抗RSと、増幅部31と、フィルタ部32を有する。シャント抵抗RSは、モータ駆動回路10のフルブリッジ回路(11〜14)とグランドとの間の電流経路に設けられており、モータ6に流れる電流に応じた電圧を生じる。増幅部31は、シャント抵抗RSに生じる電圧を所定のゲインで増幅する。フィルタ部32は、増幅部31の出力信号からスイッチング周波数の成分を除去し、モータ6に流れる平均的な電流に応じた信号を出力する。電流検出部30は、AD変換器を備えており、モータ6に流れる電流に応じたデジタル信号を処理部50に出力する。 The current detection unit 30 detects the current flowing through the motor 6. In the example of FIG. 1, the current detection unit 30 includes a shunt resistor RS, an amplification unit 31, and a filter unit 32. The shunt resistor RS is provided in the current path between the full bridge circuit (11 to 14) of the motor drive circuit 10 and the ground, and generates a voltage corresponding to the current flowing through the motor 6. The amplification unit 31 amplifies the voltage generated in the shunt resistor RS with a predetermined gain. The filter unit 32 removes a switching frequency component from the output signal of the amplification unit 31 and outputs a signal corresponding to the average current flowing through the motor 6. The current detection unit 30 includes an AD converter, and outputs a digital signal corresponding to the current flowing through the motor 6 to the processing unit 50.

電圧検出部20におけるモータ6の電圧の検出結果、及び、電流検出部30におけるモータ6の電流の検出結果は、後述する荷重算出部52において、開閉体3の開閉動作の荷重を算出するために用いられる。電圧検出部20及び電流検出部30は、本発明におけるセンサの一例である。 The voltage detection result of the motor 6 in the voltage detection unit 20 and the current detection result of the motor 6 in the current detection unit 30 are used in order to calculate the load of the opening / closing operation of the opening / closing body 3 in the load calculating unit 52 described later. Used. The voltage detection unit 20 and the current detection unit 30 are examples of the sensor in the present invention.

操作部40は、ユーザが開閉体3の開閉動作を操作するための信号を処理部50へ入力する装置であり、例えばスイッチなどを含んで構成される。 The operation unit 40 is a device for inputting a signal for the user to operate the opening / closing operation of the opening / closing body 3 to the processing unit 50, and includes, for example, a switch.

処理部50は、開閉制御装置の全体的な動作の制御を行う。処理部50は、例えば、記憶部60に格納されるプログラムの命令コードに従って処理を実行するコンピュータを含んで構成される。処理部50は、全ての処理をコンピュータにより実行してもよいし、少なくとも一部の処理を専用のハードウェア回路(ランダムロジック等)によって実行してもよい。 The processing unit 50 controls the overall operation of the open / close control device. The processing unit 50 includes, for example, a computer that executes processing according to an instruction code of a program stored in the storage unit 60. The processing unit 50 may execute all the processing by a computer, or may execute at least a part of the processing by a dedicated hardware circuit (random logic or the like).

処理部50は、開閉体位置検出部51と、荷重算出部52と、基準値算出部53と、外乱検知部54と、挟み込みしきい値設定部55と、挟み込み判定部56と、モータ制御部57とを有する。 The processing unit 50 includes an open / close body position detection unit 51, a load calculation unit 52, a reference value calculation unit 53, a disturbance detection unit 54, a pinch threshold setting unit 55, a pinch determination unit 56, and a motor control unit. It has 57 and.

[開閉体位置検出部51]
開閉体位置検出部51は、開閉動作における開閉体3の位置を検出する。例えば、開閉体位置検出部51は、モータ6が一定の角度だけ回転する度にモータ6の電流にリップルが生じることを利用して、開閉体3の位置を検出する。具体的には、開閉体位置検出部51は、モータ6の電流に含まれるリップルを抽出して計数することにより、モータ6の回転量に対応したリップル計数値を開閉体3の位置の情報として取得する。
[Opening / Closing Body Position Detection Unit 51]
The opening / closing body position detecting unit 51 detects the position of the opening / closing body 3 in the opening / closing operation. For example, the opening / closing body position detecting unit 51 detects the position of the opening / closing body 3 by utilizing the fact that a ripple occurs in the current of the motor 6 every time the motor 6 rotates by a certain angle. Specifically, the opening / closing body position detection unit 51 extracts and counts the ripple contained in the current of the motor 6, and uses the ripple count value corresponding to the rotation amount of the motor 6 as the position information of the opening / closing body 3. get.

なお、開閉体位置検出部51は、モータ6が一定の角度だけ回転する度にパルスを発生する装置(ホールセンサ等)が設けられている場合には、そのパルスを計数することにより、モータ6の回転量に対応したパルス計数値を取得してもよい。その他、開閉体位置検出部51は、リミットスイッチなどの機械的な手段、電気抵抗や静電容量を利用した電気的な手段、光の透過や反射を利用した光学的な手段などにより開閉体3の位置を検出してもよい。 If a device (such as a hall sensor) that generates a pulse each time the motor 6 rotates by a certain angle is provided, the opening / closing body position detecting unit 51 counts the pulse to generate the motor 6. The pulse count value corresponding to the rotation amount of may be acquired. In addition, the opening / closing body position detection unit 51 uses mechanical means such as a limit switch, electrical means utilizing electric resistance or capacitance, optical means utilizing light transmission or reflection, or the like to open / close body 3 The position of may be detected.

[荷重算出部52]
荷重算出部52は、電流検出部30において検出された電流(以下、「モータ電流Im」と記す場合がある。)及び電圧検出部20において検出された電圧(以下、「モータ電圧V」と記す場合がある。)に基づいて、開閉体3の開閉動作における荷重Fを算出する。すなわち、荷重算出部52は、モータ電流Imに比例する第1荷重成分F1と、モータ電流Im及びモータ電圧Vに基づいて近似されたモータ6の回転の角加速度に比例する第2荷重成分F2とが合成された荷重F(以下、「算出荷重F」と記す場合がある。)を算出する。算出荷重Fは、次の式で表される。
[Load calculation unit 52]
The load calculation unit 52 describes the current detected by the current detection unit 30 (hereinafter, may be referred to as “motor current Im”) and the voltage detected by the voltage detection unit 20 (hereinafter, referred to as “motor voltage V”). In some cases), the load F in the opening / closing operation of the opening / closing body 3 is calculated. That is, the load calculation unit 52 has a first load component F1 proportional to the motor current Im and a second load component F2 proportional to the angular acceleration of the rotation of the motor 6 approximated based on the motor current Im and the motor voltage V. The combined load F (hereinafter, may be referred to as “calculated load F”) is calculated. The calculated load F is expressed by the following equation.

Figure 0006862274
Figure 0006862274

荷重算出部52は、電流検出部30及び電圧検出部20において所定時間Tsごとに取得されるモータ電流Im及びモータ電圧Vに基づいて、算出荷重Fを所定時間ごとに算出する。すなわち、荷重算出部52は、一定の周期(Ts)で算出荷重Fの算出処理を行う。式(1)における「n」は、この算出荷重Fの周期的な算出処理における個々の処理サイクルを示す整数である。「n」の値が1つ増えると、処理サイクルの順番が1つ先に進む(時間が所定時間Tsだけ先に進む)。従って、「n」は、所定時間Tsを単位とする時間を表す数値とみなすことができる。以下の説明では、時間を表す数値として「n」を使用する場合がある。 The load calculation unit 52 calculates the calculated load F for each predetermined time based on the motor current Im and the motor voltage V acquired by the current detection unit 30 and the voltage detection unit 20 for each predetermined time Ts. That is, the load calculation unit 52 performs the calculation process of the calculated load F at a constant cycle (Ts). “N” in the formula (1) is an integer indicating each processing cycle in the periodic calculation processing of the calculated load F. When the value of "n" increases by one, the order of the processing cycle advances by one (time advances by a predetermined time Ts). Therefore, "n" can be regarded as a numerical value representing a time in which a predetermined time Ts is a unit. In the following description, "n" may be used as a numerical value representing time.

第1荷重成分F1(n)は、次の式で表される。 The first load component F1 (n) is represented by the following equation.

Figure 0006862274
Figure 0006862274

式(2)において、「Kt」はモータトルク定数[N・m/A]を示し、「L」は単位回転角あたりの開閉体3の移動量[m/rad]を示す。 In the formula (2), “Kt” indicates the motor torque constant [N ・ m / A], and “L” indicates the amount of movement [m / rad] of the opening / closing body 3 per unit rotation angle.

第2荷重成分F2(n)は、次の式で表される。 The second load component F2 (n) is represented by the following equation.

Figure 0006862274
Figure 0006862274

式(3)において、「C」は第2荷重成分調整パラメータ[N・sec]を示す。また、「ω(n)」はn番目の処理サイクルにおける角速度を示し、「ω(n−1)」はn−1番目の処理サイクルにおける角速度を示す。式(3)において示すように、第2荷重成分F2は、所定時間Tsにおける角速度ωの時間的変化率(角加速度)に比例する。 In the formula (3), “C” indicates the second load component adjustment parameter [N · sec 2 ]. Further, "ω (n)" indicates the angular velocity in the nth processing cycle, and "ω (n-1)" indicates the angular velocity in the n-1st processing cycle. As shown in the formula (3), the second load component F2 is proportional to the temporal change rate (angular acceleration) of the angular velocity ω at a predetermined time Ts.

角速度ω(n)は、次の式で表される。 The angular velocity ω (n) is expressed by the following equation.

Figure 0006862274
Figure 0006862274

式(4)において、「Ke」はモータ逆起電力定数[V・sec/rad]を示し、「Rm」はモータ抵抗[Ω]を示す。式(4)において示すように、モータ6の回転の角速度ω(n)は、モータ電流Im(n)及びモータ電圧V(n)に基づいて近似される。 In the formula (4), “Ke” indicates the motor back electromotive force constant [V · sec / rad], and “Rm” indicates the motor resistance [Ω]. As shown in the formula (4), the angular velocity ω (n) of the rotation of the motor 6 is approximated based on the motor current Im (n) and the motor voltage V (n).

[基準値算出部53]
基準値算出部53は、荷重算出部52において算出された算出荷重F(n)の加重平均の結果を基準値B(n)として算出する。例えば、基準値算出部53は、荷重算出部52において新たな算出荷重F(n)が算出される度に、新たな算出荷重F(n)と過去の(最近の)基準値B(n−1)との加重平均(第1加重平均とも云う。)の結果を新たな基準値B(n)として算出する。第1加重平均は、重み係数を「M」として、次の式で表される。
[Reference value calculation unit 53]
The reference value calculation unit 53 calculates the result of the weighted average of the calculated load F (n) calculated by the load calculation unit 52 as the reference value B (n). For example, in the reference value calculation unit 53, each time a new calculated load F (n) is calculated by the load calculation unit 52, the new calculated load F (n) and the past (recent) reference value B (n−) are calculated. The result of the weighted average (also referred to as the first weighted average) with 1) is calculated as a new reference value B (n). The first weighted average is expressed by the following equation, where the weighting coefficient is "M".

Figure 0006862274
Figure 0006862274

ただし、モータ6の起動初期には、モータ6の起動特性に起因して、算出荷重F(n)に大きな変動が生じる。このような変動を式(5)によって単純に加重平均すると、挟み込みのない状態の算出荷重F(n)に対して基準値B(n)が大きくずれてしまい、挟み込みの判定の誤りが生じ易くなる。そこで、基準値算出部53は、モータ6が起動した後の初期期間において、算出荷重F(n)の値の範囲や変化の傾向に応じて、加重平均の起点となる基準値B(n)を適宜変更する。以下、加重平均の起点となる基準値B(n)を「安定点」と記す場合がある。また、モータ6の起動後に安定点を変更する処理を「安定点検索処理」と記す場合がある。 However, at the initial stage of starting the motor 6, the calculated load F (n) fluctuates greatly due to the starting characteristics of the motor 6. If such fluctuations are simply weighted and averaged by the equation (5), the reference value B (n) deviates significantly from the calculated load F (n) without pinching, and an error in pinching determination is likely to occur. Become. Therefore, the reference value calculation unit 53 sets the reference value B (n), which is the starting point of the weighted average, according to the range of the value of the calculated load F (n) and the tendency of change in the initial period after the motor 6 is started. Is changed as appropriate. Hereinafter, the reference value B (n), which is the starting point of the weighted average, may be referred to as a “stable point”. Further, the process of changing the stable point after the motor 6 is started may be referred to as "stable point search process".

基準値算出部53は、安定点検索処理として、モータ6が起動した後の初期期間における基準値B(n)の範囲を制限する。すなわち、基準値算出部53は、新たな算出荷重F(n)が最大荷重Bmaxを超える場合、新たな基準値B(n)を最大荷重Bmaxに一致させ、新たな算出荷重F(n)が最小荷重Bminより小さい場合は、新たな算出荷重F(n)を最小荷重Bminに一致させる。 The reference value calculation unit 53 limits the range of the reference value B (n) in the initial period after the motor 6 is started as the stable point search process. That is, when the new calculated load F (n) exceeds the maximum load Bmax, the reference value calculation unit 53 matches the new reference value B (n) with the maximum load Bmax, and the new calculated load F (n) becomes If it is smaller than the minimum load Bmin, the new calculated load F (n) is made to match the minimum load Bmin.

また、基準値算出部53は、安定点検索処理として、モータ6が起動した後の初期期間において、所定時間p1あたりの算出荷重Fの低下量「F(n−p1)−F(n)」が第1変動しきい値ΔFp1を超える場合、新たな基準値B(n)を新たな算出荷重F(n)に一致させる。 Further, as a stable point search process, the reference value calculation unit 53 sets the amount of decrease in the calculated load F per predetermined time p1 “F (n−p1) −F (n)” in the initial period after the motor 6 is started. When exceeds the first fluctuation threshold value ΔFp1, the new reference value B (n) is matched with the new calculated load F (n).

更に、基準値算出部53は、安定点検索処理として、モータ6が起動した後の初期期間において、所定時間p3あたりの算出荷重Fの上昇量「F(n)−F(n−p3)」が第2変動しきい値ΔFp3を超える場合、新たな算出荷重F(n)と過去の基準値B(n−1)との加重平均であって、第1加重平均より応答速度が速い加重平均(以下、「第2加重平均」と記す場合がある。)の結果を新たな基準値B(n)として算出する。第2加重平均は、重み係数を「Q」として、次の式で表される。 Further, as a stability point search process, the reference value calculation unit 53 increases the calculated load F per predetermined time p3 “F (n) −F (n−p3)” in the initial period after the motor 6 is started. Is a weighted average of the new calculated load F (n) and the past reference value B (n-1) when the second fluctuation threshold value ΔFp3 is exceeded, and the response speed is faster than the first weighted average. (Hereinafter, it may be referred to as "second weighted average".) The result is calculated as a new reference value B (n). The second weighted average is expressed by the following equation, where the weighting coefficient is "Q".

Figure 0006862274
Figure 0006862274

第2加重平均(式(6))の重み係数「Q」は、第1加重平均(式(5))の重み係数「M」に比べて小さい。 The weighting coefficient “Q” of the second weighted average (Equation (6)) is smaller than the weighting coefficient “M” of the first weighted average (Equation (5)).

また、基準値算出部53は、算出荷重F(n)と基準値B(n)とが所定時間以上継続して第1範囲内の差を有する場合、新たな基準値B(n)を新たな算出荷重F(n)に一致させる。以下、この処理を「基準値追随処理」と記す場合がある。算出荷重F(n)の変化に対して基準値B(n)の第1加重平均による変化が遅れている場合などにおいて、算出荷重F(n)と基準値B(n)とに定常的な差が生じることがある。基準値追随処理を行うことで、この定常的な差が直ちに解消されるため、挟み込みの判定の誤りが回避され易くなる。 Further, when the calculated load F (n) and the reference value B (n) have a difference within the first range continuously for a predetermined time or longer, the reference value calculation unit 53 newly sets a new reference value B (n). Match the calculated load F (n). Hereinafter, this process may be referred to as "reference value follow-up process". When the change of the reference value B (n) due to the first weighted average is delayed with respect to the change of the calculated load F (n), the calculated load F (n) and the reference value B (n) are constantly set. Differences may occur. By performing the reference value tracking process, this steady difference is immediately eliminated, so that it is easy to avoid an error in the determination of pinching.

第1範囲は、例えば、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」がしきい値Dmin1より大きく、しきい値Dmaxより小さい範囲である。 The first range is, for example, a range in which the difference “F (n) −B (n)” between the calculated load F (n) and the reference value B (n) is larger than the threshold value Dmin1 and smaller than the threshold value Dmax. is there.

他方、基準値算出部53は、開閉体位置検出部51において検出された開閉体3の位置が開閉体3の全閉位置に近接した所定の範囲内にあるときは、算出荷重F(n)と基準値B(n)とが所定時間以上継続して第2範囲内の差を有する場合に、新たな基準値B(n)を新たな算出荷重F(n)に一致させる。ここで、第2範囲は、算出荷重F(n)が基準値B(n)より小さい条件において、第1範囲よりも拡張されている。 On the other hand, when the position of the opening / closing body 3 detected by the opening / closing body position detecting unit 51 is within a predetermined range close to the fully closed position of the opening / closing body 3, the reference value calculation unit 53 determines the calculated load F (n). When the reference value B (n) and the reference value B (n) have a difference within the second range continuously for a predetermined time or longer, the new reference value B (n) is made to match the new calculated load F (n). Here, the second range is extended from the first range under the condition that the calculated load F (n) is smaller than the reference value B (n).

第2範囲は、例えば、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」がしきい値Dmin2より大きく、しきい値Dmaxより小さい範囲である。第2範囲のしきい値Dmin2は、第1範囲のしきい値Dmin1より小さい負の値である。開閉体3の全閉位置の近くでは、算出荷重F(n)が基準値B(n)より小さい状態での定常的な差を生じる場合があり、第2範囲のしきい値Dmin2は、この定常的な差を含むように設定される。 The second range is, for example, a range in which the difference “F (n) −B (n)” between the calculated load F (n) and the reference value B (n) is larger than the threshold value Dmin2 and smaller than the threshold value Dmax. is there. The threshold value Dmin2 in the second range is a negative value smaller than the threshold value Dmin1 in the first range. Near the fully closed position of the opening / closing body 3, a steady difference may occur when the calculated load F (n) is smaller than the reference value B (n), and the threshold value Dmin2 in the second range is this. Set to include steady differences.

基準値算出部53は、例えば、全閉位置に近接した所定の範囲内においては、上述した第2範囲による基準値追随処理を行い、それ以外の範囲においては、上述した第1範囲による基準値追随処理を行う。 For example, the reference value calculation unit 53 performs the reference value tracking process according to the above-mentioned second range within a predetermined range close to the fully closed position, and in other ranges, the reference value according to the above-mentioned first range. Follow-up processing is performed.

基準値算出部53は、新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」が差異しきい値ΔFBより大きく、かつ、所定時間p2あたりの算出荷重Fの変化量「|F(n)−F(n−p2)|」が変化量しきい値ΔFp2より大きい場合、新たな基準値B(n)を過去の基準値B(n−1)に一致させる。すなわち、基準値算出部53は、算出荷重Fが急に変化するとともに算出荷重Fと基準値Bとの差異が急に大きくなった場合、基準値Bの更新を停止することにより、算出荷重Fと基準値Bとの差異を速やかに増大させる。 In the reference value calculation unit 53, the difference “| F (n) −B (n-1) |” between the new calculated load F (n) and the past reference value B (n-1) is the difference threshold value ΔFB. If it is larger and the change amount “| F (n) −F (n−p2) |” of the calculated load F per predetermined time p2 is larger than the change amount threshold value ΔFp2, a new reference value B (n) Is matched with the past reference value B (n-1). That is, when the calculated load F suddenly changes and the difference between the calculated load F and the reference value B suddenly increases, the reference value calculation unit 53 stops updating the reference value B, thereby causing the calculated load F. The difference between the value and the reference value B is quickly increased.

[外乱検知部54]
外乱検知部54は、算出荷重F(n)の変動を監視し、算出荷重F(n)の変動量と第1外乱しきい値ΔX1との比較に基づいて、算出荷重F(n)の変動を引き起こす外乱を検知する。
[Disturbance detection unit 54]
The disturbance detection unit 54 monitors the fluctuation of the calculated load F (n), and the fluctuation of the calculated load F (n) is based on the comparison between the fluctuation amount of the calculated load F (n) and the first disturbance threshold value ΔX1. Detects the disturbance that causes.

図1の例において、外乱検知部54は、最大値保持部541と、外乱判定部542と、外乱増分値算出部543とを含む。 In the example of FIG. 1, the disturbance detection unit 54 includes a maximum value holding unit 541, a disturbance determination unit 542, and a disturbance increment value calculation unit 543.

最大値保持部541は、算出荷重Fの最大値Fmax(n−1)を保持し、荷重算出部52において新たな算出荷重F(n)が算出される度に、新たな算出荷重F(n)と最大値Fmax(n−1)とを比較する。最大値保持部541は、新たな算出荷重F(n)が最大値Fmax(n−1)より大きいならば、新たな算出荷重F(n)を新たな最大値Fmax(n)として保持し、新たな算出荷重F(n)が最大値Fmax(n−1)以下ならば、最大値Fmax(n−1)を最大値Fmax(n)として引き続き保持する。また、最大値保持部541は、保持した最大値Fmax(n)を時間の経過とともに減少させる。例えば、最大値保持部541は、最大値Fmax(n−1)を新たな最大値Fmax(n)として引き続き保持する場合に、新たな最大値Fmax(n)を最大値Fmax(n−1)から固定値「Ds」だけ減らす。固定値「Ds」は、車両の特性毎に設定された値である。 The maximum value holding unit 541 holds the maximum value Fmax (n-1) of the calculated load F, and each time a new calculated load F (n) is calculated by the load calculation unit 52, a new calculated load F (n) is calculated. ) And the maximum value Fmax (n-1). If the new calculated load F (n) is larger than the maximum value Fmax (n-1), the maximum value holding unit 541 holds the new calculated load F (n) as the new maximum value Fmax (n). If the new calculated load F (n) is equal to or less than the maximum value Fmax (n-1), the maximum value Fmax (n-1) is continuously held as the maximum value Fmax (n). Further, the maximum value holding unit 541 reduces the held maximum value Fmax (n) with the passage of time. For example, when the maximum value holding unit 541 continues to hold the maximum value Fmax (n-1) as the new maximum value Fmax (n), the new maximum value Fmax (n) is set to the maximum value Fmax (n-1). Decrease by the fixed value "Ds" from. The fixed value "Ds" is a value set for each characteristic of the vehicle.

外乱判定部542は、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より大きい場合、大きい外乱があると判定する。 The disturbance determination unit 542 has a large disturbance when the fluctuation amount “Fmax (n) −F (n)” of the load F (n) calculated from the maximum value Fmax (n) is larger than the first disturbance threshold value ΔX1. Is determined.

また、外乱判定部542は、変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2を超える範囲への算出荷重F(n)の低下と、変動量「Fmax(n)−F(n)」が第3外乱しきい値ΔX3を下回る範囲への算出荷重F(n)の上昇とが交互に繰り返された回数を計数し、当該回数に応じて前記外乱があると判定する。ただし、第1外乱しきい値ΔX1が最も大きく、次に第2外乱しきい値ΔX2が大きく、第3外乱しきい値ΔX3が最も小さい。すなわち、大小関係は「ΔX1 > ΔX2 > ΔX3」である。 Further, the disturbance determination unit 542 reduces the calculated load F (n) to a range in which the fluctuation amount “Fmax (n) −F (n)” exceeds the second disturbance threshold value ΔX2, and the fluctuation amount “Fmax (n)”. ) -F (n) ”is counted as the number of times that the calculated load F (n) is alternately increased to a range below the third disturbance threshold value ΔX3, and if there is the disturbance according to the number of times. judge. However, the first disturbance threshold value ΔX1 is the largest, the second disturbance threshold value ΔX2 is the second largest, and the third disturbance threshold value ΔX3 is the smallest. That is, the magnitude relationship is "ΔX1> ΔX2> ΔX3".

例えば、外乱判定部542は、変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2を超えるまで算出荷重F(n)が低下した後、変動量「Fmax(n)−F(n)」が第3外乱しきい値ΔX3を下回るまで算出荷重F(n)が上昇したときに、この低下と上昇の1組を算出荷重F(n)の1回の変動と数える。外乱判定部542は、算出荷重F(n)の変動の回数が所定数より多くなった場合、小さい外乱があると判定する。 For example, the disturbance determination unit 542 determines the fluctuation amount “Fmax (n)” after the calculated load F (n) decreases until the fluctuation amount “Fmax (n) −F (n)” exceeds the second disturbance threshold value ΔX2. When the calculated load F (n) rises until “−F (n)” falls below the third disturbance threshold value ΔX3, a set of this decrease and rise is counted as one fluctuation of the calculated load F (n). .. When the number of fluctuations of the calculated load F (n) exceeds a predetermined number, the disturbance determination unit 542 determines that there is a small disturbance.

外乱判定部542は、外乱があると判定する度に外乱判定状態を一定期間保持する。外乱判定状態において更に外乱があると判定した場合、外乱判定部542は、その判定の時から更に一定期間、外乱判定状態を保持する。 The disturbance determination unit 542 holds the disturbance determination state for a certain period of time each time it determines that there is a disturbance. When it is determined that there is further disturbance in the disturbance determination state, the disturbance determination unit 542 holds the disturbance determination state for a further fixed period from the time of the determination.

外乱増分値算出部543は、外乱判定部542において外乱があると判定された場合、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」に応じた外乱増分値ΔFXを算出する。 When the disturbance increment value calculation unit 543 determines that there is a disturbance in the disturbance determination unit 542, the fluctuation amount “Fmax (n) −F (n)” of the calculated load F (n) from the maximum value Fmax (n). The disturbance increment value ΔFX corresponding to is calculated.

外乱増分値算出部543は、外乱判定部542における外乱判定状態が保持されている間、挟み込みしきい値Fthに加算する外乱増分値ΔFXを、最大値Fmax(n)からの算出荷重F(n)の最も大きな変動量「Fmax(n)−F(n)」に応じて更新する。すなわち、外乱判定状態の途中で算出荷重F(n)が大きく低下し、大きな変動量「Fmax(n)−F(n)」が得られた場合、外乱増分値算出部543は、外乱増分値ΔFXをより大きな値に変更する。 The disturbance increment value calculation unit 543 calculates the disturbance increment value ΔFX to be added to the sandwiching threshold value Fth while the disturbance determination state in the disturbance determination unit 542 is held, and calculates the load F (n) from the maximum value Fmax (n). ) Is updated according to the largest fluctuation amount "Fmax (n) -F (n)". That is, when the calculated load F (n) drops significantly in the middle of the disturbance determination state and a large fluctuation amount “Fmax (n) −F (n)” is obtained, the disturbance increment value calculation unit 543 performs the disturbance increment value. Change ΔFX to a larger value.

[挟み込みしきい値設定部55]
挟み込みしきい値設定部55は、算出荷重F(n)の上限を定める挟み込みしきい値Fthを設定する。例えば、挟み込みしきい値Fthは、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」(基準値B(n)に対する算出荷重F(n)の超過量)の許容範囲を定める。この場合、挟み込みしきい値Fthと基準値B(n)との和が、算出荷重F(n)の上限に相当する。
[Pinch threshold value setting unit 55]
The sandwiching threshold value setting unit 55 sets the sandwiching threshold value Fth that determines the upper limit of the calculated load F (n). For example, the sandwiching threshold value Fth is the difference between the calculated load F (n) and the reference value B (n) “F (n) −B (n)” (calculated load F (n) with respect to the reference value B (n)). Establish the allowable range of (excess amount). In this case, the sum of the sandwiching threshold value Fth and the reference value B (n) corresponds to the upper limit of the calculated load F (n).

挟み込みしきい値設定部55は、モータ6が起動した後の初期期間(例えば、基準値算出部53の安定点検索処理が行われる期間)と、初期期間の後の期間とで、挟み込みしきい値Fthのベースとなる値を切り替える。すなわち、挟み込みしきい値設定部55は、初期期間では起動時用しきい値Fth1を設定し、初期期間の後の期間では定常時用しきい値Fth2を設定する。初期期間における算出荷重F(n)の大きな変動を挟み込みとして誤判定しないようにするため、起動時用しきい値Fth1は定常時用しきい値Fth2より大きな値を持つ。 The sandwiching threshold value setting unit 55 sandwiches between the initial period after the motor 6 is started (for example, the period during which the stable point search process of the reference value calculation unit 53 is performed) and the period after the initial period. The value that is the base of the value Fth is switched. That is, the sandwiching threshold value setting unit 55 sets the start-up threshold value Fth1 in the initial period, and sets the steady state threshold value Fth2 in the period after the initial period. The start-up threshold value Fth1 has a value larger than the steady-state threshold value Fth2 in order to prevent erroneous determination due to a large fluctuation of the calculated load F (n) in the initial period.

また、挟み込みしきい値設定部55は、モータ6が起動した後の初期期間において、所定時間p4あたりの算出荷重Fの低下量「F(n−p4)−F(n)」が初期低下量しきい値ΔFp4を超えた場合、挟み込みしきい値Fthを一時的に増大させる。すなわち、挟み込みしきい値設定部55は、初期期間において低下量「F(n−p4)−F(n)」が初期低下量しきい値ΔFp4を超えた場合、初期期間の間だけ挟み込みしきい値Fthに増分値ΔFDを加算する。 Further, in the sandwiching threshold value setting unit 55, in the initial period after the motor 6 is started, the amount of decrease in the calculated load F per predetermined time p4 “F (n−p4) −F (n)” is the initial decrease amount. When the threshold value ΔFp4 is exceeded, the sandwiching threshold value Fth is temporarily increased. That is, when the reduction amount "F (n-p4) -F (n)" exceeds the initial reduction amount threshold value ΔFp4 in the initial period, the sandwiching threshold value setting unit 55 has a threshold for sandwiching only during the initial period. Add the incremental value ΔFD to the value Fth.

挟み込みしきい値設定部55は、開閉体位置検出部51において検出される開閉体3の位置が全閉位置に近接した所定範囲にある場合、開閉体3の位置Pが全閉位置に近づくほど大きくなる増分値ΔFS(P)を挟み込みしきい値Fthに加算する。これにより、全閉位置の近接範囲における摺動摩擦の増大が挟み込みとして誤判定され難くなる。 When the position of the opening / closing body 3 detected by the opening / closing body position detecting unit 51 is within a predetermined range close to the fully closed position, the sandwiching threshold value setting unit 55 increases as the position P of the opening / closing body 3 approaches the fully closed position. The increasing increment value ΔFS (P) is sandwiched and added to the threshold value Fth. As a result, the increase in sliding friction in the close range of the fully closed position is less likely to be erroneously determined as pinching.

挟み込みしきい値設定部55は、外乱検知部54において外乱が検知された場合、算出荷重F(n)の上限を引き上げるように挟み込みしきい値Fthを設定する。例えば、挟み込みしきい値設定部55は、外乱検知部54において外乱が検知された場合、外乱による算出荷重F(n)の変動量に応じた外乱増分値ΔFXを挟み込みしきい値Fthに加算する。挟み込みしきい値設定部55は、外乱判定部542において外乱判定状態が保持されている間、挟み込みしきい値Fthへの外乱増分値ΔFXの加算を行い、外乱判定状態が終了すると、外乱増分値ΔFXの加算も終了する。 When the disturbance detection unit 54 detects a disturbance, the sandwiching threshold value setting unit 55 sets the sandwiching threshold value Fth so as to raise the upper limit of the calculated load F (n). For example, when a disturbance is detected by the disturbance detection unit 54, the sandwiching threshold value setting unit 55 adds the disturbance increment value ΔFX according to the amount of fluctuation of the calculated load F (n) due to the disturbance to the sandwiching threshold value Fth. .. The sandwiching threshold value setting unit 55 adds the disturbance increment value ΔFX to the sandwiching threshold value Fth while the disturbance determination state is held by the disturbance determination unit 542, and when the disturbance determination state ends, the disturbance increment value. The addition of ΔFX is also completed.

更に、挟み込みしきい値設定部55は、モータ6に供給される電圧の変化に伴う算出荷重F(n)の変化に応じて、挟み込み判定での算出荷重F(n)の上限が変化するように、電圧検出部20で検出されたモータ電圧Vに基づいて挟み込みしきい値Fthを設定する。すなわち、挟み込みしきい値設定部55は、電圧検出部20で検出されたモータ電圧Vに基づいて、モータ6に供給される電圧の変化に伴う算出荷重F(n)の変化に応じた補正値を挟み込みしきい値Fthに加算する。例えば、挟み込みしきい値設定部55は、モータ電圧Vが上昇した場合、モータ電圧Vの上昇幅ΔV(n)に応じた増分値ΔFV(n)を補正値として挟み込みしきい値Fthに加算する。増分値ΔFV(n)は、例えば次の式で表される。 Further, the sandwiching threshold value setting unit 55 changes the upper limit of the calculated load F (n) in the sandwiching determination according to the change in the calculated load F (n) accompanying the change in the voltage supplied to the motor 6. The sandwiching threshold value Fth is set based on the motor voltage V detected by the voltage detection unit 20. That is, the sandwiching threshold value setting unit 55 is a correction value according to a change in the calculated load F (n) accompanying a change in the voltage supplied to the motor 6 based on the motor voltage V detected by the voltage detection unit 20. Is sandwiched and added to the threshold value Fth. For example, when the motor voltage V rises, the sandwiching threshold value setting unit 55 adds an increment value ΔFV (n) corresponding to the rise width ΔV (n) of the motor voltage V to the sandwiching threshold value Fth as a correction value. .. The increment value ΔFV (n) is expressed by, for example, the following equation.

Figure 0006862274
Figure 0006862274

式(7)において、「K1」はモータ電圧Vの上昇幅ΔV(n)に応じた算出荷重F(n)の変動の大きさに関わる定数項である。また「K2」は、モータ電圧Vの上昇幅ΔV(n)がゼロの場合における増分値ΔFV(n)の減衰の速さを定める定数項であり、1より小さい正の数に設定される。定数K2がゼロに近いほど、増分値ΔFV(n)の減衰が速くなる。 In the formula (7), “K1” is a constant term related to the magnitude of fluctuation of the calculated load F (n) according to the increase width ΔV (n) of the motor voltage V. Further, "K2" is a constant term that determines the speed of attenuation of the increment value ΔFV (n) when the rise width ΔV (n) of the motor voltage V is zero, and is set to a positive number smaller than 1. The closer the constant K2 is to zero, the faster the incremental value ΔFV (n) decays.

なお、挟み込みしきい値設定部55は、増分値ΔFV(n)をゼロ以上の値に設定する。従って、式(7)の結果が負の場合、挟み込みしきい値設定部55は、増分値ΔFV(n)をゼロに設定する。 The sandwiching threshold value setting unit 55 sets the increment value ΔFV (n) to a value of zero or more. Therefore, when the result of the equation (7) is negative, the sandwiching threshold value setting unit 55 sets the increment value ΔFV (n) to zero.

[挟み込み判定部56]
挟み込み判定部56は、挟み込みしきい値Fthによって設定された上限を算出荷重F(n)が超える場合、開閉体3による物体の挟み込みが発生したと判定する。例えば、挟み込み判定部56は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が挟み込みしきい値Fthより大きい場合、開閉体3による物体の挟み込みが発生したと判定する。
[Pinch determination unit 56]
When the calculated load F (n) exceeds the upper limit set by the pinching threshold value Fth, the pinching determination unit 56 determines that the pinching of the object by the opening / closing body 3 has occurred. For example, when the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is larger than the sandwiching threshold value Fth, the sandwiching determination unit 56 is an object by the opening / closing body 3. It is determined that the pinching has occurred.

例えば、挟み込み判定部56は、荷重算出部52において新たな算出荷重F(n)が算出される度に、新たな算出荷重F(n)を含む一連の複数の算出荷重Fに基づいて、算出荷重Fの変化のパターンが所定の単調増加のパターンに該当するか否かを判定する。挟み込み判定部56は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が挟み込みしきい値Fthより大きい第1条件と、算出荷重Fの変化のパターンが単調増加のパターンに該当する第2条件とを満たした場合、挟み込みが発生したと判定する。 For example, the sandwiching determination unit 56 calculates each time a new calculated load F (n) is calculated by the load calculation unit 52, based on a series of a plurality of calculated loads F including the new calculated load F (n). It is determined whether or not the change pattern of the load F corresponds to a predetermined monotonous increase pattern. The sandwiching determination unit 56 determines that the first condition in which the difference “F (n) −B (n)” between the calculated load F (n) and the reference value B (n) is larger than the sandwiching threshold value Fth and the calculated load F. When the change pattern satisfies the second condition corresponding to the monotonous increase pattern, it is determined that pinching has occurred.

また、挟み込み判定部56は、所定時間q3あたりの算出荷重Fの増加量「F(n)−F(n−q3)」が、硬い物体の挟み込みの発生基準を示すしきい値ΔFhより大きい場合には、上述した第1条件及び第2条件に加えて、算出荷重Fの変化が加速している第3条件を満たした場合に、挟み込みが発生したと判定する。 Further, the pinching determination unit 56 determines that the increase amount “F (n) −F (n−q3)” of the calculated load F per predetermined time q3 is larger than the threshold value ΔFh indicating the pinching occurrence standard of a hard object. In addition to the first condition and the second condition described above, it is determined that pinching has occurred when the third condition in which the change of the calculated load F is accelerating is satisfied.

[モータ制御部57]
モータ制御部57は、操作部40において入力される操作信号に応じたモータ6の制御信号を生成し、モータ駆動回路10に出力する。モータ制御部57は、閉動作及び開動作のそれぞれについて予め設定されたモータ6の回転方向や回転速度などの条件を満たすように、モータ駆動回路10へ出力する制御信号を生成する。
[Motor control unit 57]
The motor control unit 57 generates a control signal of the motor 6 according to the operation signal input by the operation unit 40, and outputs the control signal to the motor drive circuit 10. The motor control unit 57 generates a control signal to be output to the motor drive circuit 10 so as to satisfy preset conditions such as the rotation direction and rotation speed of the motor 6 for each of the closing operation and the opening operation.

また、モータ制御部57は、挟み込み判定部56において物体の挟み込みが発生したと判定された場合、モータ6の回転を反転させる挟み込み防止制御を行う。例えばモータ制御部57は、閉動作中に挟み込み判定部56において挟み込みが発生したと判定された場合、モータ6を逆転させて開動作を行い、適当な位置で開閉体3を停止させる。
以上が、処理部50の説明である。
Further, the motor control unit 57 performs pinch prevention control for reversing the rotation of the motor 6 when the pinch determination unit 56 determines that the pinch of the object has occurred. For example, when the pinching determination unit 56 determines that pinching has occurred during the closing operation, the motor control unit 57 reverses the motor 6 to perform the opening operation and stops the opening / closing body 3 at an appropriate position.
The above is the description of the processing unit 50.

記憶部60は、処理部50におけるコンピュータのプログラム61や、処理部50の処理に使用される定数データ、処理部50の処理の過程で一時的に保持される変数データなどを記憶する。記憶部60は、例えば、DRAMやSRAM、フラッシュメモリ、ハードディスクなどの記憶装置を含んで構成される。 The storage unit 60 stores a computer program 61 in the processing unit 50, constant data used in the processing of the processing unit 50, variable data temporarily held in the process of the processing unit 50, and the like. The storage unit 60 includes, for example, a storage device such as a DRAM, an SRAM, a flash memory, or a hard disk.

プログラム61は、予め記憶部60に格納されてもよいし、図示しないインターフェース装置を介して他のサーバ等からダウンロードされたものが記憶部60に格納されてもよいし、非一時的な有形の媒体(光ディスク、USBメモリなど)から図示しない読み取り装置によって読み出されたものが記憶部60に格納されてもよい。 The program 61 may be stored in the storage unit 60 in advance, or may be downloaded from another server or the like via an interface device (not shown) and stored in the storage unit 60, or may be stored in the storage unit 60 in a non-temporary manner. What is read from a medium (optical disk, USB memory, etc.) by a reading device (not shown) may be stored in the storage unit 60.

次に、上述した構成を有する本実施形態に係る開閉制御装置の動作について説明する。 Next, the operation of the open / close control device according to the present embodiment having the above-described configuration will be described.

図2は、モータ起動後の各ステージにおける開閉制御装置の動作の概要を示した図である。本実施形態に係る開閉制御装置は、モータ6の回転状態に応じた4つのステージ(第1ステージS1〜第4ステージS4)毎に異なった動作を実行する。第1ステージS1〜第4ステージS4は、モータ6の起動時点からの経過時間に応じて区分された期間であり、この順番で起動時点からの経過時間が長くなっている。図2に示すように、モータ6の回転状態は起動時点に近いステージほど不安定であるが、ステージS4において概ね安定する。 FIG. 2 is a diagram showing an outline of the operation of the open / close control device in each stage after the motor is started. The open / close control device according to the present embodiment executes different operations for each of the four stages (first stage S1 to fourth stage S4) according to the rotational state of the motor 6. The first stage S1 to the fourth stage S4 are periods divided according to the elapsed time from the start time of the motor 6, and the elapsed time from the start time becomes longer in this order. As shown in FIG. 2, the rotational state of the motor 6 is more unstable in the stage closer to the start time, but is generally stable in the stage S4.

図2に示すように、開閉制御装置は、物体の挟み込みの判定を第2ステージS2以降で行ない、第1ステージS1では実施しない。従って、開閉制御装置は、挟み込みしきい値Fthの設定(増分値の算出等)も第1ステージS1では実施しない。 As shown in FIG. 2, the open / close control device determines whether or not the object is pinched in the second stage S2 or later, and does not perform the determination in the first stage S1. Therefore, the open / close control device does not set the sandwiching threshold value Fth (calculate the incremental value, etc.) in the first stage S1.

図2に示すように、開閉制御装置は、安定点検索処理を第1ステージS1及び第2ステージS2において実施し、第3ステージS3以降は実施しない。また、開閉制御装置は、外乱検知処理を第1ステージS1及び第2ステージS2において実施せず、第3ステージS3以降で実施する。 As shown in FIG. 2, the open / close control device performs the stability point search process in the first stage S1 and the second stage S2, and does not perform the third stage S3 and thereafter. Further, the open / close control device does not perform the disturbance detection process in the first stage S1 and the second stage S2, but performs it in the third stage S3 or later.

図3は、開閉制御装置における挟み込み防止機能を説明するためのフローチャートである。図3に示す処理は、例えば所定時間Tsごとに繰り返し実行される。 FIG. 3 is a flowchart for explaining the pinch prevention function in the open / close control device. The process shown in FIG. 3 is repeatedly executed, for example, every Ts for a predetermined time.

ST100,ST105:
処理部50は、電流検出部30による検出電流及び電圧検出部20による検出電圧を取得する。開閉体位置検出部51は、モータ6の電流に含まれるリップル成分などに基づいて、開閉動作する開閉体3の位置を検出する。開閉体3の位置が挟み込み防止制御を実施するべき挟み込み監視領域にある場合、処理部50はステップST110以降の処理を実行する。開閉体3の位置が挟み込み監視領域にない場合(例えば、全閉位置の近傍において開閉体3が反転しない非反転領域にある場合)、処理部50はステップST110以降をスキップして処理を終了する。
ST100, ST105:
The processing unit 50 acquires the current detected by the current detection unit 30 and the voltage detected by the voltage detection unit 20. The opening / closing body position detecting unit 51 detects the position of the opening / closing body 3 that opens / closes based on a ripple component or the like included in the current of the motor 6. When the position of the opening / closing body 3 is in the pinching monitoring area where the pinching prevention control should be performed, the processing unit 50 executes the processing after step ST110. When the position of the opening / closing body 3 is not in the sandwich monitoring area (for example, when the opening / closing body 3 is in the non-reversing area where the opening / closing body 3 does not invert in the vicinity of the fully closed position), the processing unit 50 skips step ST110 and the process and ends the process. ..

ST110:
処理部50は、モータ6の起動時点からの経過時間(「n」の値)に基づいて、図2に示す第1ステージS1〜第4ステージS4の何れにあるかを判定する。
ST110:
The processing unit 50 determines which of the first stage S1 to the fourth stage S4 shown in FIG. 2 is in the first stage S1 to the fourth stage S4 shown in FIG. 2 based on the elapsed time (value of “n”) from the start time of the motor 6.

ST115:
荷重算出部52は、電流検出部30における検出されるモータ電流Im(n)と電圧検出部20において検出されるモータ電圧V(n)とに基づいて、式(1)〜(4)により算出荷重F(n)を算出する。
ST115:
The load calculation unit 52 calculates by the equations (1) to (4) based on the motor current Im (n) detected by the current detection unit 30 and the motor voltage V (n) detected by the voltage detection unit 20. The load F (n) is calculated.

ST120:
基準値算出部53は、荷重算出部52において算出された算出荷重F(n)の加重平均の結果を基準値B(n)として算出する。
ST120:
The reference value calculation unit 53 calculates the result of the weighted average of the calculated load F (n) calculated by the load calculation unit 52 as the reference value B (n).

ST125:
外乱検知部54は、算出荷重F(n)の変動を監視し、算出荷重F(n)の変動量と第1外乱しきい値ΔX1との比較に基づいて、算出荷重F(n)の変動を引き起こす外乱を検知する。
ST125:
The disturbance detection unit 54 monitors the fluctuation of the calculated load F (n), and the fluctuation of the calculated load F (n) is based on the comparison between the fluctuation amount of the calculated load F (n) and the first disturbance threshold value ΔX1. Detects the disturbance that causes.

ST130:
挟み込みしきい値設定部55は、ステップST115で算出された算出荷重F(n)とステップST120で算出された基準値B(n)との差「F(n)−B(n)」の許容範囲を定める挟み込みしきい値Fthを設定する。
ST130:
The sandwiching threshold value setting unit 55 allows the difference "F (n) -B (n)" between the calculated load F (n) calculated in step ST115 and the reference value B (n) calculated in step ST120. Set the sandwiching threshold value Fth that defines the range.

ST135:
挟み込み判定部56は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が挟み込みしきい値より大きい場合、開閉体3による物体の挟み込みが発生したと判定する。
ST135:
When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is larger than the pinching threshold value, the pinching determination unit 56 causes pinching of the object by the opening / closing body 3. Judge that it has occurred.

ST140,ST145:
モータ制御部57は、挟み込み判定部56において挟み込みがあると判定された場合、モータ6の回転を反転させる挟み込み防止制御を行う。例えばモータ制御部57は、閉動作中に挟み込みが発生したと判定された場合、モータ6を逆転させて開動作を行う。
ST140, ST145:
When the pinch determination unit 56 determines that there is pinch, the motor control unit 57 performs pinch prevention control that reverses the rotation of the motor 6. For example, when it is determined that pinching has occurred during the closing operation, the motor control unit 57 reverses the motor 6 to perform the opening operation.

次に、図3に示すステップST120〜ST135の各処理について、フローチャート等を参照して更に詳しく説明する。 Next, each process of steps ST120 to ST135 shown in FIG. 3 will be described in more detail with reference to a flowchart and the like.

(1) 基準値算出
図4は、基準値Bの算出(図3,ST120)を説明するためのフローチャートである。
基準値算出部53は、モータ6の起動後の初期状態の場合(ST200,Yes)、基準値Bの算出に使用される各変数や状態を初期化する(ST205)。例えば、基準値算出部53は、基準値B(n)を最小荷重Bminに設定し、基準値追随処理(ST220)で使用される係数値CNTをゼロに初期化する。
(1) Reference value calculation FIG. 4 is a flowchart for explaining the calculation of the reference value B (FIG. 3, ST120).
The reference value calculation unit 53 initializes each variable and state used for calculating the reference value B in the case of the initial state after the start of the motor 6 (ST200, Yes) (ST205). For example, the reference value calculation unit 53 sets the reference value B (n) to the minimum load Bmin, and initializes the coefficient value CNT used in the reference value tracking process (ST220) to zero.

基準値算出部53は、モータ6が起動した後の初期期間(第1ステージS1及び第2ステージS2)にある場合、安定点検索処理を行う(ST210)。 The reference value calculation unit 53 performs a stable point search process (ST210) when it is in the initial period (first stage S1 and second stage S2) after the motor 6 is started.

次いで、基準値算出部53は、新たな算出荷重F(n)と過去の基準値B(n−1)との第1加重平均(式(5))を行い、その結果を新たな基準値B(n)として算出する(ST215)。 Next, the reference value calculation unit 53 performs the first weighted average (Equation (5)) of the new calculated load F (n) and the past reference value B (n-1), and obtains the result as the new reference value. Calculated as B (n) (ST215).

新たな基準値B(n)を算出した後、基準値算出部53は、算出荷重F(n)と基準値B(n)との定常的な差を解消させるための基準値追随処理を行う(ST220) After calculating the new reference value B (n), the reference value calculation unit 53 performs the reference value tracking process for eliminating the steady difference between the calculated load F (n) and the reference value B (n). (ST220)

(1−1) 安定点検索処理
図5は、基準値の算出における安定点検索処理(図4,ST210)を説明するためのフローチャートである。
基準値算出部53は、安定点検索処理を行う期間(第1ステージS1及び第2ステージS2)にある場合(ST300,Yes)、算出荷重F(n)を最小荷重Bminと比較し、算出荷重F(n)が最小荷重Bmin以下であれば(ST305,No)、新しい基準値B(n)を最小荷重Bminに一致させる(ST310)。
(1-1) Stability point search process FIG. 5 is a flowchart for explaining a stable point search process (FIG. 4, ST210) in calculating a reference value.
When the reference value calculation unit 53 is in the period (first stage S1 and second stage S2) for performing the stable point search process (ST300, Yes), the reference value calculation unit 53 compares the calculated load F (n) with the minimum load Bmin, and calculates the calculated load. If F (n) is equal to or less than the minimum load Bmin (ST305, No), the new reference value B (n) is matched with the minimum load Bmin (ST310).

算出荷重F(n)が最小荷重Bminより大きい場合(ST305,Yes)、基準値算出部53は、所定時間p1あたりの算出荷重Fの低下量「F(n−p1)−F(n)」を第1変動しきい値ΔFp1と比較する。算出荷重Fの低下量「F(n−p1)−F(n)」が第1変動しきい値ΔFp1より大きい場合(ST315,Yes)、基準値算出部53は、新しい基準値B(n)を算出荷重F(n)に一致させる(ST320)。 When the calculated load F (n) is larger than the minimum load Bmin (ST305, Yes), the reference value calculation unit 53 determines the amount of decrease in the calculated load F per predetermined time p1 “F (n−p1) −F (n)”. Is compared with the first fluctuation threshold ΔFp1. When the amount of decrease in the calculated load F "F (n-p1) -F (n)" is larger than the first fluctuation threshold value ΔFp1 (ST315, Yes), the reference value calculation unit 53 determines the new reference value B (n). Is matched with the calculated load F (n) (ST320).

算出荷重Fの低下量「F(n−p1)−F(n)」が第1変動しきい値ΔFp1以下の場合(ST315,No)、基準値算出部53は、所定時間p3あたりの算出荷重Fの上昇量「F(n)−F(n−p3)」を第2変動しきい値ΔFp3と比較する。算出荷重Fの上昇量「F(n)−F(n−p3)」が第2変動しきい値ΔFp3より大きい場合(ST325,Yes)、基準値算出部53は、第1加重平均より応答速度が速い第2加重平均(式(6))の結果を新たな基準値B(n)として算出する(ST330)。 When the amount of decrease in the calculated load F “F (n−p1) −F (n)” is equal to or less than the first fluctuation threshold value ΔFp1 (ST315, No), the reference value calculation unit 53 uses the calculated load per predetermined time p3. The amount of increase in F "F (n) -F (n-p3)" is compared with the second fluctuation threshold value ΔFp3. When the amount of increase in the calculated load F "F (n) -F (n-p3)" is larger than the second fluctuation threshold value ΔFp3 (ST325, Yes), the reference value calculation unit 53 responds faster than the first weighted average. The result of the fast second weighted average (Equation (6)) is calculated as a new reference value B (n) (ST330).

ステップST320又はステップST330の後、基準値算出部53は、基準値B(n)を最大荷重Bmaxと比較し、基準値B(n)が最大荷重Bmaxより大きい場合(ST335,Yes)、基準値B(n)を最大荷重Bmaxと一致させる(ST340)。 After step ST320 or step ST330, the reference value calculation unit 53 compares the reference value B (n) with the maximum load Bmax, and when the reference value B (n) is larger than the maximum load Bmax (ST335, Yes), the reference value Match B (n) with the maximum load Bmax (ST340).

図6は、安定点検索処理(図5)の例を示す図である。図6Aは算出荷重Fが最小荷重Bminより小さい場合を示し、図6Bは算出荷重Fの急な減少がある場合を示し、図6Cは算出荷重Fの急な増大がある場合を示し、図6Dは算出荷重Fが最大荷重Bmaxより大きい場合を示す。 FIG. 6 is a diagram showing an example of a stable point search process (FIG. 5). FIG. 6A shows a case where the calculated load F is smaller than the minimum load Bmin, FIG. 6B shows a case where the calculated load F suddenly decreases, FIG. 6C shows a case where the calculated load F suddenly increases, and FIG. 6D. Indicates a case where the calculated load F is larger than the maximum load Bmax.

図6A及び図6Dに示すように、モータ6が起動した後の第1ステージS1及び第2ステージS2において、算出荷重Fの範囲が最大荷重Bmaxと最小荷重Bminとの間に制限される。これにより、モータ6が起動した後の初期期間(S1,S2)においてモータ6の起動特性に起因する算出荷重Fの大きな変動が起きても、第1加重平均(式(5))による基準値Bの算出結果が比較的短い時間で適切な範囲に収束し易くなる。 As shown in FIGS. 6A and 6D, in the first stage S1 and the second stage S2 after the motor 6 is started, the range of the calculated load F is limited between the maximum load Bmax and the minimum load Bmin. As a result, even if a large fluctuation in the calculated load F due to the starting characteristics of the motor 6 occurs in the initial period (S1, S2) after the motor 6 is started, the reference value according to the first weighted average (Equation (5)). The calculation result of B can easily converge to an appropriate range in a relatively short time.

また図6Bに示すように、モータ6が起動した後の初期期間(S1,S2)において、モータ6の起動特性に起因する算出荷重Fの変動により算出荷重Fが比較的大きく低下した場合、基準値B(n)が算出荷重F(n)に一致させられる。これにより、起動特性の影響で算出荷重Fが変動しても、第1加重平均(式(5))による基準値Bの算出結果が比較的短い時間で算出荷重Fと近い値に収束し易くなる。 Further, as shown in FIG. 6B, when the calculated load F is relatively significantly reduced due to the fluctuation of the calculated load F due to the starting characteristics of the motor 6 in the initial period (S1 and S2) after the motor 6 is started, it is a reference. The value B (n) is matched with the calculated load F (n). As a result, even if the calculated load F fluctuates due to the influence of the starting characteristics, the calculation result of the reference value B by the first weighted average (Equation (5)) can easily converge to a value close to the calculated load F in a relatively short time. Become.

また図6Cに示すように、モータ6が起動した後の初期期間(S1,S2)において、モータ6の起動特性に起因する算出荷重Fの変動により算出荷重Fが比較的大きく上昇した場合、第1加重平均に比べて応答速度が速い第2加重平均(式(6))により基準値Bが算出される。これにより、起動特性の影響で算出荷重Fが変動しても、第2加重平均による基準値Bの算出結果が比較的短い時間で算出荷重Fと近い値に収束し易くなる。 Further, as shown in FIG. 6C, when the calculated load F rises relatively significantly due to the fluctuation of the calculated load F due to the starting characteristics of the motor 6 in the initial period (S1, S2) after the motor 6 is started, the first The reference value B is calculated by the second weighted average (Equation (6)), which has a faster response speed than the one-weighted average. As a result, even if the calculated load F fluctuates due to the influence of the starting characteristic, the calculation result of the reference value B by the second weighted average can easily converge to a value close to the calculated load F in a relatively short time.

このように、モータ6が起動した後の初期期間(S1,S2)において、挟み込みがないときの基準値Bの算出結果が比較的短い時間で適切な範囲(算出荷重F)と近い値に収束し易くなることにより、初期期間(S1,S2)でも挟み込みの正確な判定が可能になる。 In this way, in the initial period (S1, S2) after the motor 6 is started, the calculation result of the reference value B when there is no pinching converges to a value close to an appropriate range (calculated load F) in a relatively short time. By making it easier to perform, it becomes possible to accurately determine the pinching even in the initial period (S1, S2).

(1−2) 加重平均処理
図7は、基準値の算出における加重平均処理(図4,ST215)を説明するためのフローチャートである。
基準値算出部53は、新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」を差異しきい値ΔFBと比較する(ST400)。新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」が差異しきい値ΔFBより小さい場合(ST400,Yes)、基準値算出部53は、基準値B(n)を第1加重平均(式(5))により算出する(ST410)。
(1-2) Weighted Average Processing FIG. 7 is a flowchart for explaining the weighted average processing (FIG. 4, ST215) in the calculation of the reference value.
The reference value calculation unit 53 sets the difference “| F (n) −B (n-1) |” between the new calculated load F (n) and the past reference value B (n-1) as the difference threshold value ΔFB. Compare with (ST400). When the difference "| F (n) -B (n-1) |" between the new calculated load F (n) and the past reference value B (n-1) is smaller than the difference threshold ΔFB (ST400, Yes) ), The reference value calculation unit 53 calculates the reference value B (n) by the first weighted average (Equation (5)) (ST410).

新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」が差異しきい値ΔFB以上の場合(ST400,No)、基準値算出部53は、所定時間p2あたりの算出荷重Fの変化量「|F(n)−F(n−p2)|」を変化量しきい値ΔFp2と比較する(ST405)。算出荷重Fの変化量「|F(n)−F(n−p2)|」が変化量しきい値ΔFp2より小さい場合(ST405,Yes)、基準値算出部53は、基準値B(n)を第1加重平均(式(5))により算出する(ST410)。 When the difference "| F (n) -B (n-1) |" between the new calculated load F (n) and the past reference value B (n-1) is equal to or greater than the difference threshold ΔFB (ST400, No. ), The reference value calculation unit 53 compares the change amount “| F (n) −F (n−p2) |” of the calculated load F per predetermined time p2 with the change amount threshold value ΔFp2 (ST405). When the change amount "| F (n) -F (n-p2) |" of the calculated load F is smaller than the change amount threshold value ΔFp2 (ST405, Yes), the reference value calculation unit 53 sets the reference value B (n). Is calculated by the first weighted average (Equation (5)) (ST410).

第1加重平均(式(5))により算出した基準値B(n)がゼロ以下の場合(ST415,No)、基準値算出部53は基準値B(n)をゼロにする(ST420)。 When the reference value B (n) calculated by the first weighted average (Equation (5)) is zero or less (ST415, No), the reference value calculation unit 53 sets the reference value B (n) to zero (ST420).

新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」が差異しきい値ΔFB以上であり、かつ、所定時間p2あたりの算出荷重Fの変化量「|F(n)−F(n−p2)|」が変化量しきい値ΔFp2以上である場合(ST400及びST405の両方でNoの場合)、基準値算出部53は、新たな基準値B(n)を過去の基準値B(n−1)に一致させる(ST425)。すなわち、基準値算出部53は、基準値B(n)の更新を停止する。 The difference "| F (n) -B (n-1) |" between the new calculated load F (n) and the past reference value B (n-1) is equal to or greater than the difference threshold value ΔFB and is predetermined. When the change amount "| F (n) -F (n-p2) |" of the calculated load F per time p2 is the change amount threshold value ΔFp2 or more (No in both ST400 and ST405), the reference value. The calculation unit 53 makes the new reference value B (n) match the past reference value B (n-1) (ST425). That is, the reference value calculation unit 53 stops updating the reference value B (n).

図8は、加重平均処理(図7)の例を示す図である。図8Aは、加重平均処理によって基準値Bが算出される例を示す。図8Bは、算出荷重Fの急な上昇によって基準値Bの更新が停止される例を示す。 FIG. 8 is a diagram showing an example of weighted average processing (FIG. 7). FIG. 8A shows an example in which the reference value B is calculated by the weighted average processing. FIG. 8B shows an example in which the update of the reference value B is stopped due to a sudden rise in the calculated load F.

図8Aに示すように、新たな算出荷重F(n)と過去の基準値B(n−1)との差「|F(n)−B(n−1)|」が差異しきい値ΔFBより小さい場合や、所定時間p2あたりの算出荷重Fの変化量「|F(n)−F(n−p2)|」が変化量しきい値ΔFp2より小さい場合、基準値算出部53は、基準値B(n)を第1加重平均(式(5))により算出する。この場合、基準値B(n)は、概ね算出荷重F(n)に追随した変化を示す。 As shown in FIG. 8A, the difference “| F (n) −B (n-1) |” between the new calculated load F (n) and the past reference value B (n-1) is the difference threshold value ΔFB. If it is smaller, or if the change amount “| F (n) −F (n−p2) |” of the calculated load F per predetermined time p2 is smaller than the change amount threshold value ΔFp2, the reference value calculation unit 53 uses the reference value calculation unit 53 as a reference. The value B (n) is calculated by the first weighted average (Equation (5)). In this case, the reference value B (n) indicates a change that generally follows the calculated load F (n).

図8Bに示すように、挟み込みが発生した場合、新たな算出荷重F(n)と過去の基準値B(n−1)との差が急に大きくなるとともに、算出荷重Fの時間的な変化が急に大きくなり易い。従って、このような場合に基準値Bの更新を停止することで、算出荷重Fと基準値Bとの差が速やかに増大するため、挟み込みの発生を速やかに検知できる。 As shown in FIG. 8B, when pinching occurs, the difference between the new calculated load F (n) and the past reference value B (n-1) suddenly increases, and the calculated load F changes over time. Is likely to grow suddenly. Therefore, in such a case, by stopping the update of the reference value B, the difference between the calculated load F and the reference value B increases rapidly, so that the occurrence of pinching can be detected promptly.

(1−3)基準値追随処理
図9は、基準値の算出における基準値追随処理(図4,ST220)を説明するためのフローチャートである。
基準値算出部53は、開閉体位置検出部51において検出される開閉体3の位置が全閉位置の所定の近接範囲より外側にあるか否かを判定する(ST500)。開閉体3が全閉位置の近接範囲の外側にある場合(ST500,Yes)、基準値算出部53は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」をしきい値Dmin1、Dmaxとそれぞれ比較する(ST505,ST510)。算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」がしきい値Dmin1より大きく、かつ、しきい値Dmaxより小さい第1範囲に含まれる場合(ST505及びST510の両方でYesの場合)、基準値算出部53は、計数値CNTをインクリメントする(ST515)。算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が第1範囲に含まれない場合(ST505及びST510の少なくとも一方でNoの場合)、基準値算出部53は、計数値CNTをゼロに初期化する(ST520)。
(1-3) Reference value tracking process FIG. 9 is a flowchart for explaining a reference value tracking process (FIG. 4, ST220) in calculating a reference value.
The reference value calculation unit 53 determines whether or not the position of the opening / closing body 3 detected by the opening / closing body position detecting unit 51 is outside a predetermined proximity range of the fully closed position (ST500). When the opening / closing body 3 is outside the proximity range of the fully closed position (ST500, Yes), the reference value calculation unit 53 determines the difference "F (n)-" between the calculated load F (n) and the reference value B (n). "B (n)" is compared with the threshold values Dmin1 and Dmax, respectively (ST505, ST510). When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is included in the first range larger than the threshold value Dmin1 and smaller than the threshold value Dmax. (In the case of Yes in both ST505 and ST510), the reference value calculation unit 53 increments the count value CNT (ST515). When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is not included in the first range (when at least one of ST505 and ST510 is No), the reference. The value calculation unit 53 initializes the count value CNT to zero (ST520).

開閉体3が全閉位置の近接範囲の内側にある場合(ST500,No)、基準値算出部53は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」をしきい値Dmin2、Dmaxとそれぞれ比較する(ST525,ST530)。算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」がしきい値Dmin2より大きく、かつ、しきい値Dmaxより小さい第2範囲に含まれる場合(ST525及びST530の両方でYesの場合)、基準値算出部53は、計数値CNTをインクリメントする(ST535)。算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が第2範囲に含まれない場合(ST525及びST530の少なくとも一方でNoの場合)、基準値算出部53は、計数値CNTをゼロに初期化する(ST540)。 When the opening / closing body 3 is inside the proximity range of the fully closed position (ST500, No), the reference value calculation unit 53 determines the difference "F (n)-" between the calculated load F (n) and the reference value B (n). "B (n)" is compared with the threshold values Dmin2 and Dmax, respectively (ST525, ST530). When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is included in the second range larger than the threshold value Dmin2 and smaller than the threshold value Dmax. (In the case of Yes in both ST525 and ST530), the reference value calculation unit 53 increments the count value CNT (ST535). When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is not included in the second range (when at least one of ST525 and ST530 is No), the reference. The value calculation unit 53 initializes the count value CNT to zero (ST540).

計数値CNTにインクリメント等の操作を行なった後(ST515,ST520,ST535,ST540)、基準値算出部53は、計数値CNTをしきい値ΔCNTthと比較する(ST545)。係数値CNTがしきい値ΔCNTthより大きい場合(ST545,Yes)、基準値算出部53は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」がしきい値ΔCNTthに相当する時間継続して第1範囲又は第2範囲にあったと判定する。この場合、基準値算出部53は、基準値B(n)を算出荷重F(n)に一致させるとともに、計数値CNTをゼロに初期化する(ST550)。 After performing an operation such as incrementing the count value CNT (ST515, ST520, ST535, ST540), the reference value calculation unit 53 compares the count value CNT with the threshold value ΔCNTth (ST545). When the coefficient value CNT is larger than the threshold value ΔCNTth (ST545, Yes), the reference value calculation unit 53 determines the difference between the calculated load F (n) and the reference value B (n) “F (n) −B (n). Is continuously in the first range or the second range for a time corresponding to the threshold value ΔCNTth. In this case, the reference value calculation unit 53 matches the reference value B (n) with the calculated load F (n) and initializes the count value CNT to zero (ST550).

図10は、全閉位置の近接範囲の外側における基準値追随処理(図9)の例を示す図である。図10に示すように、基準値B(n)と算出荷重F(n)との間に一定時間以上継続して第1範囲内の定常的な差が生じた場合、基準値追随処理によってこの定常的な差が解消される。 FIG. 10 is a diagram showing an example of reference value tracking processing (FIG. 9) outside the proximity range of the fully closed position. As shown in FIG. 10, when a steady difference within the first range occurs continuously for a certain period of time or more between the reference value B (n) and the calculated load F (n), this is performed by the reference value tracking process. The steady difference is eliminated.

図11は、基準値追随処理を行う場合と行わない場合の比較を示す図である。図11Aは基準値追随処理を行う場合の例を示し、図11Bは基準値追随処理を行わない場合の比較例を示す。図11Aと図11Bを比較して分るように、算出荷重F(n)と基準値B(n)との定常的な差を基準値追随処理によって解消することにより、挟み込みの判定の誤りを効果的に回避できる。 FIG. 11 is a diagram showing a comparison between the case where the reference value tracking process is performed and the case where the reference value tracking process is not performed. FIG. 11A shows an example when the reference value tracking process is performed, and FIG. 11B shows a comparative example when the reference value tracking process is not performed. As can be seen by comparing FIGS. 11A and 11B, by eliminating the constant difference between the calculated load F (n) and the reference value B (n) by the reference value tracking process, an error in the determination of pinching can be made. It can be avoided effectively.

図12は、全閉位置の近接範囲における基準値追随処理(図9)の例を示す図である。図12に示すように、開閉体3の全閉位置の近くでは、算出荷重F(n)が基準値B(n)より小さい状態で定常的な差を生じる場合がある。算出荷重F(n)が基準値B(n)より小さいと、挟み込みの検知のタイミングが遅れ易くなる。そこで、全閉位置の近接範囲においては、近接範囲の外側に比べて、基準値を追随させる範囲が拡張される。すなわち、算出荷重F(n)が基準値B(n)より小さい状態で両者の差が大きい場合も含まれるように、第2範囲のしきい値Dmin2が設定される。例えば、第1範囲のしきい値Dmin1は正の値に設定されるのに対して、第2範囲のしきい値Dmin2は負の値に設定される。これにより、算出荷重F(n)が基準値B(n)より小さい状態で定常的な差が生じても、基準値追随処理によってこの定常的な差が解消される。 FIG. 12 is a diagram showing an example of reference value tracking processing (FIG. 9) in the proximity range of the fully closed position. As shown in FIG. 12, near the fully closed position of the opening / closing body 3, a steady difference may occur in a state where the calculated load F (n) is smaller than the reference value B (n). If the calculated load F (n) is smaller than the reference value B (n), the timing of pinching detection tends to be delayed. Therefore, in the proximity range of the fully closed position, the range in which the reference value is followed is expanded as compared with the outside of the proximity range. That is, the threshold value Dmin2 in the second range is set so as to include the case where the calculated load F (n) is smaller than the reference value B (n) and the difference between the two is large. For example, the threshold Dmin1 in the first range is set to a positive value, while the threshold Dmin2 in the second range is set to a negative value. As a result, even if a steady difference occurs when the calculated load F (n) is smaller than the reference value B (n), this steady difference is eliminated by the reference value tracking process.

図13は、全閉位置の近接範囲において基準値追随処理を行う場合と行わない場合の比較を示す図である。図13Aは基準値追随処理を行う場合の例を示し、図13Bは基準値追随処理を行わない場合の比較例を示す。これらの例では、全閉位置の近くで挟み込みが発生し、算出荷重Fが急激に上昇している。図13Aと図13Bを比較して分るように、算出荷重F(n)と基準値B(n)との定常的な差を基準値追随処理によって解消することにより、算出荷重F(n)が挟み込み検知の判定基準である「B+Fth」に到達する時間が短くなるため、挟み込み時の荷重を効果的に低減できる。 FIG. 13 is a diagram showing a comparison between the case where the reference value tracking process is performed and the case where the reference value tracking process is performed in the proximity range of the fully closed position. FIG. 13A shows an example when the reference value tracking process is performed, and FIG. 13B shows a comparative example when the reference value tracking process is not performed. In these examples, pinching occurs near the fully closed position, and the calculated load F rises sharply. As can be seen by comparing FIG. 13A and FIG. 13B, the calculated load F (n) is obtained by eliminating the constant difference between the calculated load F (n) and the reference value B (n) by the reference value tracking process. Since the time to reach "B + Fth", which is the criterion for detecting pinching, is shortened, the load at the time of pinching can be effectively reduced.

(2) 外乱検出
図14は、外乱検知(図3,ST125)を説明するためのフローチャートである。
最大値保持部541は、新たな算出荷重F(n)が算出される度に、既に保持した算出荷重Fの最大値Fmax(n−1)と新たな算出荷重F(n)とを比較し、何れか大きい方を次の最大値Fmax(n)として保持する(ST600)。また、最大値保持部541は、保持した最大値Fmax(n)を時間の経過とともに減少させる。
(2) Disturbance detection FIG. 14 is a flowchart for explaining disturbance detection (FIG. 3, ST125).
Each time a new calculated load F (n) is calculated, the maximum value holding unit 541 compares the maximum value Fmax (n-1) of the already held calculated load F with the new calculated load F (n). , Whichever is larger is held as the next maximum value Fmax (n) (ST600). Further, the maximum value holding unit 541 reduces the held maximum value Fmax (n) with the passage of time.

次に、外乱判定部542は、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」と第1外乱しきい値ΔX1とを比較し、この比較結果に基づいて大きい外乱があるか否かを判定する(ST605)。 Next, the disturbance determination unit 542 compares the fluctuation amount “Fmax (n) −F (n)” of the calculated load F (n) from the maximum value Fmax (n) with the first disturbance threshold value ΔX1. Based on this comparison result, it is determined whether or not there is a large disturbance (ST605).

また、外乱判定部542は、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より小さい範囲において、算出荷重F(n)が所定の変動を生じた回数を計数し、この回数に基づいて小さい外乱があるか否かを判定する(ST610)。 Further, the disturbance determination unit 542 calculates in a range in which the fluctuation amount “Fmax (n) −F (n)” of the calculated load F (n) from the maximum value Fmax (n) is smaller than the first disturbance threshold value ΔX1. The number of times the load F (n) causes a predetermined fluctuation is counted, and it is determined whether or not there is a small disturbance based on this number of times (ST610).

ステップST605又はST610において外乱があると判定された場合、外乱増分値算出部543は、挟み込みしきい値Fthに加算する外乱増分値ΔFxを算出する(ST615) When it is determined in step ST605 or ST610 that there is a disturbance, the disturbance increment value calculation unit 543 calculates the disturbance increment value ΔFx to be added to the sandwiching threshold value Fth (ST615).

(2−1) 算出荷重Fの最大値の保持
図15は、算出荷重Fの最大値を保持する処理(図14,ST600)を説明するためのフローチャートである。
最大値保持部541は、外乱検出を開始する第2ステージS2以前において(ST700,Yes)、算出荷重Fの最大値Fmax(n)を算出荷重F(n)に一致させる(ST705)。外乱検出を開始した第3ステージS3以降において(ST700,No)、最大値保持部541は、保持した最大値Fmax(n−1)を算出荷重F(n)と比較する(ST710)。算出荷重F(n)が最大値Fmax(n)より大きい場合(ST710,Yes)、最大値保持部541は、最大値Fmax(n)を算出荷重F(n)に一致させる(ST705)。他方、算出荷重F(n)が最大値Fmax(n)以下の場合(ST710,No)、最大値保持部541は、保持した最大値Fmax(n−1)から固定値「Ds」を引いた値を次の新たな最大値Fmax(n)として保持する(ST715)。
(2-1) Holding the Maximum Value of the Calculated Load F FIG. 15 is a flowchart for explaining a process of holding the maximum value of the calculated load F (FIG. 14, ST600).
The maximum value holding unit 541 makes the maximum value Fmax (n) of the calculated load F match the calculated load F (n) before the second stage S2 (ST700, Yes) when the disturbance detection is started (ST700, Yes). In the third stage S3 or later (ST700, No) when the disturbance detection is started, the maximum value holding unit 541 compares the held maximum value Fmax (n-1) with the calculated load F (n) (ST710). When the calculated load F (n) is larger than the maximum value Fmax (n) (ST710, Yes), the maximum value holding unit 541 matches the maximum value Fmax (n) with the calculated load F (n) (ST705). On the other hand, when the calculated load F (n) is equal to or less than the maximum value Fmax (n) (ST710, No), the maximum value holding unit 541 subtracts the fixed value “Ds” from the held maximum value Fmax (n-1). The value is held as the next new maximum value Fmax (n) (ST715).

図16は、算出荷重Fの最大値を保持する処理(図15)の例を示す図である。図16において示すように、最大値保持部541は、保持した最大値Fmaxより大きい算出荷重Fが現れない場合、最大値Fmaxを時間とともに減少させる。算出荷重Fの変動が小さくなると、最大値Fmaxは算出荷重Fと近い値になる傾向がある。そのため、最大値Fmaxに対する算出荷重Fの変動量は、算出荷重Fの変動の大きさを表す値となる。 FIG. 16 is a diagram showing an example of a process (FIG. 15) for holding the maximum value of the calculated load F. As shown in FIG. 16, the maximum value holding unit 541 reduces the maximum value Fmax with time when the calculated load F larger than the held maximum value Fmax does not appear. When the fluctuation of the calculated load F becomes small, the maximum value Fmax tends to be close to the calculated load F. Therefore, the amount of fluctuation of the calculated load F with respect to the maximum value Fmax is a value representing the magnitude of the fluctuation of the calculated load F.

(2−2) 大きい外乱の検知処理
図17は、大きい外乱の検知処理(図14,ST605)を説明するためのフローチャートである。
外乱判定部542は、現在の状態が「大きい外乱がない」状態である場合(ST800,Yes)、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」を第1外乱しきい値ΔX1と比較する(ST805)。変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より大きい場合(ST805,Yes)、外乱判定部542は、「大きい外乱がある」状態に移行するとともに、「大きい外乱がある」状態の保持時間の計時を開始する(ST810)。この計時は、例えば、ステップST800において「大きい外乱がある」状態と判定された回数を数えることにより行なわれる。
(2-2) Large Disturbance Detection Process FIG. 17 is a flowchart for explaining a large disturbance detection process (FIG. 14, ST605).
When the current state is "there is no large disturbance" (ST800, Yes), the disturbance determination unit 542 determines the amount of fluctuation "Fmax (n) -F" of the calculated load F (n) from the maximum value Fmax (n). (N) ”is compared with the first disturbance threshold value ΔX1 (ST805). When the fluctuation amount “Fmax (n) −F (n)” is larger than the first disturbance threshold value ΔX1 (ST805, Yes), the disturbance determination unit 542 shifts to the “large disturbance” state and “large”. The timekeeping of the holding time in the "disturbed" state is started (ST810). This timekeeping is performed, for example, by counting the number of times it is determined in step ST800 that there is a "large disturbance" state.

他方、外乱判定部542は、ステップST800において「大きい外乱がある」状態と判定した場合も(ST800,No)、変動量「Fmax(n)−F(n)」を第1外乱しきい値ΔX1と比較する(ST815)。変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より大きい場合(ST815,Yes)、外乱判定部542は、計時時間を初期化する(ST820)。計時時間の初期化は、例えば、ステップST800において「大きい外乱がある」状態と判定された回数をリセットする(ゼロにする)ことにより行われる。 On the other hand, even when the disturbance determination unit 542 determines in step ST800 that there is a “large disturbance” (ST800, No), the fluctuation amount “Fmax (n) −F (n)” is set to the first disturbance threshold value ΔX1. Compare with (ST815). When the fluctuation amount “Fmax (n) −F (n)” is larger than the first disturbance threshold value ΔX1 (ST815, Yes), the disturbance determination unit 542 initializes the time counting time (ST820). The initialization of the time counting time is performed, for example, by resetting (zeroing) the number of times in step ST800 that is determined to be in the "large disturbance" state.

「大きい外乱がある」状態で(ST800,No)、変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1以下の場合(ST815,No)、外乱判定部542は、計時時間が所定時間を超えたか否か判定する(ST825)。この判定は、例えば、ステップST800において「大きい外乱がある」状態と判定された回数と所定のしきい値との比較に基づいて行われる。計時時間が所定時間を超えた場合、外乱判定部542は、「大きい外乱がない」状態へ移行するとともに、計時時間を初期化する(ST830)。 When the fluctuation amount "Fmax (n) -F (n)" is equal to or less than the first disturbance threshold value ΔX1 (ST815, No) in the state of "there is a large disturbance" (ST800, No), the disturbance determination unit 542 determines. It is determined whether or not the time counting time exceeds the predetermined time (ST825). This determination is made, for example, based on a comparison between the number of times the "large disturbance" state is determined in step ST800 and a predetermined threshold value. When the time counting time exceeds the predetermined time, the disturbance determination unit 542 shifts to the state of "no major disturbance" and initializes the time counting time (ST830).

図18は、大きい外乱の検知処理の例を示す図である。図18において円に囲まれた黒丸は、大きい外乱があると判定されたときの算出荷重Fを示す。図18に示すように、最大値Fmaxが時間とともに減少する期間において、最大値Fmaxに対する算出荷重Fの変動量が第1外乱しきい値ΔX1より大きい場合、外乱判定部542は大きい外乱があると判定する。 FIG. 18 is a diagram showing an example of a large disturbance detection process. The black circle surrounded by a circle in FIG. 18 indicates the calculated load F when it is determined that there is a large disturbance. As shown in FIG. 18, when the fluctuation amount of the calculated load F with respect to the maximum value Fmax is larger than the first disturbance threshold value ΔX1 in the period when the maximum value Fmax decreases with time, the disturbance determination unit 542 determines that there is a large disturbance. judge.

(2−3) 小さい外乱の検知処理
図19及び図20は、小さい外乱の検知処理(図14,ST610)を説明するためのフローチャートである。
外乱判定部542は、現在の状態が「小さい外乱のない」状態である場合(ST900,Yes)、現在の状態が「荷重の低下を監視する」状態であれば(ST905,Yes)、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」を第2外乱しきい値ΔX2と比較する(ST910)。第2外乱しきい値ΔX2は、大きな外乱の検知処理(図17)で用いられる第1外乱しきい値ΔX1より小さい。
(2-3) Small disturbance detection process FIGS. 19 and 20 are flowcharts for explaining a small disturbance detection process (FIGS. 14, ST610).
The disturbance determination unit 542 has a maximum value when the current state is "no small disturbance" (ST900, Yes) and when the current state is "monitoring a decrease in load" (ST905, Yes). The fluctuation amount “Fmax (n) −F (n)” of the load F (n) calculated from Fmax (n) is compared with the second disturbance threshold value ΔX2 (ST910). The second disturbance threshold value ΔX2 is smaller than the first disturbance threshold value ΔX1 used in the large disturbance detection process (FIG. 17).

変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2より大きい場合(ST910,Yes)、外乱判定部542は、「算出荷重Fの変動回数」をインクリメントし(ST915)、この変動回数が所定数に達したか否かを判定する(ST920)。「算出荷重Fの変動回数」が所定数より小さい場合(ST920,No)、外乱判定部542は「荷重の低下を監視する」状態から「荷重の上昇を監視する」状態に移行する(ST925)。 When the fluctuation amount "Fmax (n) -F (n)" is larger than the second disturbance threshold value ΔX2 (ST910, Yes), the disturbance determination unit 542 increments the "number of fluctuations of the calculated load F" (ST915). , It is determined whether or not the number of fluctuations has reached a predetermined number (ST920). When the "number of fluctuations of the calculated load F" is smaller than a predetermined number (ST920, No), the disturbance determination unit 542 shifts from the "monitoring the decrease in load" state to the "monitoring the increase in load" state (ST925). ..

次に、「小さい外乱のない」状態(ST900,Yes)であって「荷重の上昇を監視する」状態(ST905,No)である場合、外乱判定部542は、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」を第3外乱しきい値ΔX3と比較する(ST930)。第3外乱しきい値ΔX3は、第2外乱しきい値ΔX2より更に小さい。 Next, in the case of the "no small disturbance" state (ST900, Yes) and the "monitoring the increase in load" state (ST905, No), the disturbance determination unit 542 starts from the maximum value Fmax (n). The fluctuation amount “Fmax (n) −F (n)” of the calculated load F (n) is compared with the third disturbance threshold value ΔX3 (ST930). The third disturbance threshold value ΔX3 is even smaller than the second disturbance threshold value ΔX2.

変動量「Fmax(n)−F(n)」が第3外乱しきい値ΔX3を下回る場合(ST930,Yes)、すなわち、算出荷重F(n)が上昇して最大値Fmax(n)に近づいた場合、外乱判定部542は再び「荷重の低下を監視する」状態に戻る(ST935)。その後、算出荷重F(n)が低下して変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2より大きくなると、再びステップST900〜ST915の処理を経て、「算出荷重Fの変動回数」がインクリメントされる。このように、変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2を超える範囲への算出荷重F(n)の低下と、変動量「Fmax(n)−F(n)」が第3外乱しきい値ΔX3を下回る範囲への算出荷重F(n)の上昇とが交互に繰り返される度に、「算出荷重Fの変動回数」が1ずつインクリメントされる。 When the fluctuation amount "Fmax (n) -F (n)" is lower than the third disturbance threshold value ΔX3 (ST930, Yes), that is, the calculated load F (n) rises and approaches the maximum value Fmax (n). If so, the disturbance determination unit 542 returns to the state of "monitoring the decrease in load" again (ST935). After that, when the calculated load F (n) decreases and the fluctuation amount “Fmax (n) −F (n)” becomes larger than the second disturbance threshold value ΔX2, the process of steps ST900 to ST915 is performed again, and the “calculated load” is obtained. The number of fluctuations of F "is incremented. In this way, the calculated load F (n) decreases to the range where the fluctuation amount “Fmax (n) −F (n)” exceeds the second disturbance threshold value ΔX2, and the fluctuation amount “Fmax (n) −F (n)” Every time "n)" is alternately repeated to increase the calculated load F (n) to a range below the third disturbance threshold value ΔX3, the “number of fluctuations of the calculated load F” is incremented by one.

ステップST920において算出荷重F(n)の変動回数が所定数に達したと判定した場合(ST920,Yes)、外乱判定部542は「小さい外乱がある」状態へ移行するとともに、「小さい外乱がある」状態の保持時間の計時を開始する(ST940)。この計時は、例えば、ステップST900において「小さい外乱がある」状態と判定された回数を数えることにより行なわれる。 When it is determined in step ST920 that the number of fluctuations of the calculated load F (n) has reached a predetermined number (ST920, Yes), the disturbance determination unit 542 shifts to the “small disturbance” state and “there is a small disturbance”. The timekeeping of the state holding time is started (ST940). This timekeeping is performed, for example, by counting the number of times it is determined in step ST900 that there is a "small disturbance" state.

外乱判定部542は、「小さい外乱がある」状態の場合(ST900,No)、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」を第2外乱しきい値ΔX2と比較する(ST945)。変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2より大きい場合(ST945,Yes)、外乱判定部542は、計時時間を初期化する(ST950)。計時時間の初期化は、例えば、ステップST900において「小さい外乱がある」状態と判定された回数をリセットする(ゼロにする)ことにより行われる。 When the disturbance determination unit 542 is in the state of "there is a small disturbance" (ST900, No), the disturbance amount "Fmax (n) -F (n)" of the calculated load F (n) from the maximum value Fmax (n) is set. Compare with the second disturbance threshold ΔX2 (ST945). When the fluctuation amount “Fmax (n) −F (n)” is larger than the second disturbance threshold value ΔX2 (ST945, Yes), the disturbance determination unit 542 initializes the time counting time (ST950). The initialization of the time counting time is performed, for example, by resetting (zeroing) the number of times in step ST900 that is determined to be in the "small disturbance" state.

「小さい外乱がある」状態で(ST900,No)、変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2以下の場合(ST945,No)、外乱判定部542は、計時時間が所定時間を超えたか否か判定する(ST955)。この判定は、例えば、ステップST900において「小さい外乱がある」状態と判定された回数と所定のしきい値との比較に基づいて行われる。計時時間が所定時間を超えた場合(ST955,Yes)、外乱判定部542は、「小さい外乱がない」状態における「荷重の低下を監視する」状態へ移行するとともに、計時時間を初期化する(ST960)。 When the fluctuation amount “Fmax (n) −F (n)” is equal to or less than the second disturbance threshold value ΔX2 (ST945, No) in the “small disturbance” state (ST900, No), the disturbance determination unit 542 determines. It is determined whether or not the time counting time exceeds the predetermined time (ST955). This determination is made, for example, based on a comparison between the number of times the "small disturbance" state is determined in step ST900 and a predetermined threshold value. When the time counting time exceeds the predetermined time (ST955, Yes), the disturbance determination unit 542 shifts to the state of "monitoring the decrease in load" in the state of "no small disturbance" and initializes the time counting time (ST955, Yes). ST960).

図21は、小さい外乱の検知処理(図19,図20)の例を示す図である。図21において円で囲まれた黒丸は、小さい外乱があると判定されたときの算出荷重Fを示す。図21の例では、変動量「Fmax(n)−F(n)」が第2外乱しきい値ΔX2を超える範囲への算出荷重F(n)の低下と、変動量「Fmax(n)−F(n)」が第3外乱しきい値ΔX3を下回る範囲への算出荷重F(n)の上昇とが交互に繰り返され、3回目の算出荷重F(n)の低下時に小さい外乱が発生したと判定される。 FIG. 21 is a diagram showing an example of a small disturbance detection process (FIGS. 19 and 20). The black circle surrounded by a circle in FIG. 21 indicates the calculated load F when it is determined that there is a small disturbance. In the example of FIG. 21, the calculated load F (n) decreases in the range where the fluctuation amount “Fmax (n) −F (n)” exceeds the second disturbance threshold value ΔX2, and the fluctuation amount “Fmax (n) −” The increase of the calculated load F (n) to the range where "F (n)" is below the third disturbance threshold value ΔX3 is repeated alternately, and a small disturbance occurs when the calculated load F (n) decreases for the third time. Is determined.

(2−3) 外乱増分値の算出処理
図22は、外乱増分値の算出処理(図14,ST615)を説明するためのフローチャートである。
外乱増分値算出部543は、「小さい外乱がある」状態と「大きい外乱がある」状態との一方又は両方であるか否かを判定する(ST1000)。何れの状態でもない場合(ST1000,No)、外乱増分値算出部543は、現在の変動量「Fmax(n)−F(n)」を変動量の最大値ΔFmax(n)として保持する(ST1005)。また、外乱増分値算出部543は、挟み込みしきい値Fthに加算する外乱増分値ΔFXをゼロに設定する(ST1010)。
(2-3) Disturbance Incremental Value Calculation Process FIG. 22 is a flowchart for explaining a disturbance increment value calculation process (FIG. 14, ST615).
The disturbance increment value calculation unit 543 determines whether or not there is one or both of the "small disturbance" state and the "large disturbance" state (ST1000). In the case of neither state (ST1000, No), the disturbance increment value calculation unit 543 holds the current fluctuation amount “Fmax (n) −F (n)” as the maximum value ΔFmax (n) of the fluctuation amount (ST1005). ). Further, the disturbance increment value calculation unit 543 sets the disturbance increment value ΔFX to be added to the sandwiching threshold value Fth to zero (ST1010).

その後、算出荷重F(n)の変動により、「小さい外乱がある」状態と「大きい外乱がある」状態との一方又は両方であると判定された場合(ST1000,Yes)、外乱増分値算出部543は、保持した最大値ΔFmax(n−1)を現在の変動量「Fmax(n)−F(n)」と比較する(ST1015)。現在の変動量「Fmax(n)−F(n)」が最大値ΔFmax(n−1)より大きい場合(ST1015,Yes)、外乱増分値算出部543は、現在の変動量「Fmax(n)−F(n)」を新たな最大値ΔFmax(n)として保持する(ST1020)。他方、現在の変動量「Fmax(n)−F(n)」が最大値ΔFmax(n−1)以下の場合、外乱増分値算出部543は、保持した最大値ΔFmax(n−1)をそのまま最大値ΔFmax(n)として保持する(ST1025)。ステップST1020又はST1025の後、外乱増分値算出部543は、新たな変動量の最大値ΔFmax(n)と固定値「ΔFXs」との和を外乱増分値ΔFXとして算出する(ST1030)。固定値「ΔFXs」は、車両の特性毎に設定された値である。 After that, when it is determined that there is one or both of the "small disturbance" state and the "large disturbance" state due to the fluctuation of the calculated load F (n) (ST1000, Yes), the disturbance increment value calculation unit. 543 compares the retained maximum value ΔFmax (n-1) with the current fluctuation amount “Fmax (n) −F (n)” (ST1015). When the current fluctuation amount "Fmax (n) -F (n)" is larger than the maximum value ΔFmax (n-1) (ST1015, Yes), the disturbance increment value calculation unit 543 determines the current fluctuation amount "Fmax (n)". −F (n) ”is held as a new maximum value ΔFmax (n) (ST1020). On the other hand, when the current fluctuation amount "Fmax (n) -F (n)" is equal to or less than the maximum value ΔFmax (n-1), the disturbance increment value calculation unit 543 keeps the retained maximum value ΔFmax (n-1) as it is. It is held as the maximum value ΔFmax (n) (ST1025). After step ST1020 or ST1025, the disturbance increment value calculation unit 543 calculates the sum of the maximum value ΔFmax (n) of the new fluctuation amount and the fixed value “ΔFXs” as the disturbance increment value ΔFX (ST1030). The fixed value "ΔFXs" is a value set for each characteristic of the vehicle.

図23は、外乱判定状態の保持期間の例を示す図である。
時刻t1において外乱判定部542により大きい外乱があると判定され、外乱判定状態が開始する。外乱判定状態になると、挟み込みしきい値Fthに外乱増分値ΔFXが加算されるため、挟み込みしきい値Fthが大きくなる。図23の例では、外乱判定状態である時刻t1〜t7の間、外乱増分値ΔFXの加算により挟み込みしきい値Fthが大きくなっている。外乱判定状態は、外乱判定部542において外乱があると判定される度に、その時点から一定期間延長される。時刻t3〜t4の間は、外乱があるとの判定がないものの、一定期間内であるため、外乱判定状態が保持される。時刻t6を最後に外乱があるとの判定がなくなるため、時刻t7において外乱判定状態の保持期間が終了する。外乱判定状態が終わると、挟み込みしきい値Fthへの外乱増分値ΔFXの加算が終了し、挟み込みしきい値Fthが元のレベルに戻る。
FIG. 23 is a diagram showing an example of a retention period of the disturbance determination state.
At time t1, it is determined that the disturbance determination unit 542 has a larger disturbance, and the disturbance determination state starts. In the disturbance determination state, the disturbance increment value ΔFX is added to the sandwiching threshold value Fth, so that the sandwiching threshold value Fth becomes large. In the example of FIG. 23, the sandwiching threshold value Fth is increased by adding the disturbance increment value ΔFX during the time t1 to t7, which is the disturbance determination state. The disturbance determination state is extended for a certain period from that point each time the disturbance determination unit 542 determines that there is a disturbance. Although it is not determined that there is a disturbance between the times t3 and t4, the disturbance determination state is maintained because it is within a certain period. Since the determination that there is a disturbance at the end of the time t6 is eliminated, the holding period of the disturbance determination state ends at the time t7. When the disturbance determination state ends, the addition of the disturbance increment value ΔFX to the sandwiching threshold value Fth ends, and the sandwiching threshold value Fth returns to the original level.

図23に示すように、外乱判定状態の保持が一定期間に限定されており、挟み込みしきい値Fthへの外乱増分値ΔFXの加算が一定期間に限定される。そのため、単発的な外乱による算出荷重F(n)の変動が終わった後も挟み込みしきい値Fthに外乱増分値ΔFXが加算され続けることがない。すなわち、外乱のない状態に戻ったときは挟み込みしきい値Fthも元のレベルに戻るため、挟み込みが発生してから検知されるまでの応答速度の低下を回避できる。 As shown in FIG. 23, the retention of the disturbance determination state is limited to a certain period, and the addition of the disturbance increment value ΔFX to the sandwiching threshold value Fth is limited to a certain period. Therefore, the disturbance increment value ΔFX does not continue to be added to the sandwiching threshold value Fth even after the fluctuation of the calculated load F (n) due to the single-shot disturbance is completed. That is, when the state without disturbance is returned, the pinch threshold value Fth also returns to the original level, so that it is possible to avoid a decrease in the response speed from the occurrence of the pinch to the detection.

図24は、外乱判定状態の保持期間における外乱増分値の更新の例を示す図であり、グラフの波形は図23と同じである。
時刻t1において外乱判定状態が開始したとき、最大値Fmax(n)からの算出荷重F(n)の変動量「Fmax(n)−F(n)」は「a」である。従って、外乱増分値算出部543は、変動量の最大値ΔFmaxとして「a」を保持する。外乱増分値算出部543は、最大値ΔFmaxである「a」と固定値「ΔFXs」との和「a+ΔFXs」を外乱増分値ΔFXとして算出する。
FIG. 24 is a diagram showing an example of updating the disturbance increment value during the holding period of the disturbance determination state, and the waveform of the graph is the same as that of FIG. 23.
When the disturbance determination state starts at time t1, the fluctuation amount “Fmax (n) −F (n)” of the calculated load F (n) from the maximum value Fmax (n) is “a”. Therefore, the disturbance increment value calculation unit 543 holds “a” as the maximum value ΔFmax of the fluctuation amount. The disturbance increment value calculation unit 543 calculates the sum “a + ΔFXs” of the maximum value ΔFmax “a” and the fixed value “ΔFXs” as the disturbance increment value ΔFX.

時刻t2において、変動量「Fmax(n)−F(n)」は「b」となり、時刻t1における「a」よりも大きくなる。そのため、外乱増分値算出部543は、変動量の最大値ΔFmaxを「a」から「b」に更新し、最大値ΔFmaxである「b」と固定値「ΔFXs」との和「b+ΔFXs」を外乱増分値ΔFXとして算出する。これにより、時刻t2において挟み込みしきい値Fthが大きくなる。 At time t2, the fluctuation amount “Fmax (n) −F (n)” becomes “b”, which is larger than “a” at time t1. Therefore, the disturbance increment value calculation unit 543 updates the maximum value ΔFmax of the fluctuation amount from “a” to “b”, and disturbs the sum “b + ΔFXs” of the maximum value ΔFmax “b” and the fixed value “ΔFXs”. Calculated as an incremental value ΔFX. As a result, the sandwiching threshold value Fth increases at time t2.

更に、時刻t5において、変動量「Fmax(n)−F(n)」は「c」となり、時刻t2における「b」よりも更に大きくなる。そのため、外乱増分値算出部543は、変動量の最大値ΔFmaxを「b」から「c」に更新し、最大値ΔFmaxである「c」と固定値「ΔFXs」との和「c+ΔFXs」を外乱増分値ΔFXとして算出する。これにより、時刻t5において挟み込みしきい値Fthが更に大きくなる。 Further, at time t5, the fluctuation amount “Fmax (n) −F (n)” becomes “c”, which is even larger than “b” at time t2. Therefore, the disturbance increment value calculation unit 543 updates the maximum value ΔFmax of the fluctuation amount from “b” to “c”, and disturbs the sum “c + ΔFXs” of the maximum value ΔFmax “c” and the fixed value “ΔFXs”. Calculated as an incremental value ΔFX. As a result, the sandwiching threshold value Fth becomes even larger at time t5.

図24に示すように、外乱判定状態が保持されている途中で外乱が大きくなった場合、変動量「Fmax(n)−F(n)」の最大値ΔFmaxが更新され、最大値ΔFmaxに応じて外乱増分値ΔFXも更新される。これにより、途中から大きくなった外乱に応じて挟み込みしきい値Fthが大きくなるため、外乱による挟み込み判定の誤りが回避され易くなる。 As shown in FIG. 24, when the disturbance becomes large while the disturbance determination state is held, the maximum value ΔFmax of the fluctuation amount “Fmax (n) −F (n)” is updated according to the maximum value ΔFmax. The disturbance increment value ΔFX is also updated. As a result, the pinch threshold value Fth increases in response to the disturbance that increases from the middle, so that it becomes easy to avoid an error in the pinch determination due to the disturbance.

(3) 挟み込みしきい値の設定
図25及び図26は、挟み込みしきい値の設定(図3,ST130)を説明するためのフローチャートである。
挟み込みしきい値設定部55は、モータ6の起動後の初期期間(例えば第1ステージS1、第2ステージS2)において(ST1105,Yes)、挟み込みしきい値Fthのベース値を起動時用しきい値Fth1に設定し(ST1100)、初期期間の後の期間では(ST1105,No)、挟み込みしきい値Fthのベース値を定常時用しきい値Fth2に設定する(ST1115)。起動時用しきい値Fth1は定常時用しきい値Fth2より大きな値を持つため、初期期間における算出荷重F(n)の変動が挟み込みとして誤判定され難くなる。
(3) Setting of pinching threshold value FIGS. 25 and 26 are flowcharts for explaining the setting of the sandwiching threshold value (FIG. 3, ST130).
The sandwiching threshold value setting unit 55 uses the base value of the sandwiching threshold value Fth at startup in the initial period (for example, first stage S1 and second stage S2) after the motor 6 is started (ST1105, Yes). The value is set to Fth1 (ST1100), and in the period after the initial period (ST1105, No), the base value of the sandwiching threshold value Fth is set to the steady threshold value Fth2 (ST1115). Since the start-up threshold value Fth1 has a value larger than the steady-state threshold value Fth2, fluctuations in the calculated load F (n) in the initial period are less likely to be erroneously determined as pinching.

また、挟み込みしきい値設定部55は、モータ6の起動後の初期期間において(ST1105,Yes)、所定時間p4あたりの算出荷重Fの低下量「F(n−p4)−F(n)」が初期低下量しきい値ΔFp4を超えているか否か判定する(ST1120)。低下量「F(n−p4)−F(n)」が初期低下量しきい値ΔFp4を超えている場合、挟み込みしきい値設定部55は、挟み込みしきい値Fthを一時的に増大させる。すなわち、挟み込みしきい値設定部55は、初期期間の間だけ挟み込みしきい値Fthに増分値ΔFDを加算する(ST1125)。 Further, in the initial period after the start of the motor 6 (ST1105, Yes), the sandwiching threshold value setting unit 55 reduces the calculated load F per predetermined time p4 “F (n−p4) −F (n)”. Is determined whether or not exceeds the initial reduction amount threshold value ΔFp4 (ST1120). When the reduction amount “F (n−p4) −F (n)” exceeds the initial reduction amount threshold value ΔFp4, the sandwiching threshold value setting unit 55 temporarily increases the sandwiching threshold value Fth. That is, the sandwiching threshold value setting unit 55 adds the incremental value ΔFD to the sandwiching threshold value Fth only during the initial period (ST1125).

図27は、モータ6が起動した後の初期期間における算出荷重の低下の例を示す図である。図27に示すように、初期期間では算出荷重F(n)の大きな変動が発生し、特に起動の直後において算出荷重F(n)の急激な低下を生じる場合がある。このような挟み込みと関係のない算出荷重F(n)の低下が生じている場合に、挟み込みしきい値Fthを一時的に増大させることによって、挟み込みの誤判定を生じ難くすることができる。 FIG. 27 is a diagram showing an example of a decrease in the calculated load in the initial period after the motor 6 is started. As shown in FIG. 27, a large fluctuation of the calculated load F (n) may occur in the initial period, and a sharp decrease in the calculated load F (n) may occur particularly immediately after the start-up. When the calculated load F (n), which is not related to the pinching, is lowered, the pinching threshold value Fth can be temporarily increased to prevent erroneous determination of the pinching.

次に挟み込みしきい値設定部55は、開閉体位置検出部51で検出された開閉体3の位置が全閉位置に近接した所定の範囲にある場合(ST1130,Yes)、開閉体3の位置Pが全閉位置に近づくほど大きくなる増分値ΔFS(P)を挟み込みしきい値Fthに加算する(ST1135)。 Next, when the position of the opening / closing body 3 detected by the opening / closing body position detecting unit 51 is in a predetermined range close to the fully closed position (ST1130, Yes), the sandwiching threshold value setting unit 55 is the position of the opening / closing body 3. An increment value ΔFS (P) that increases as P approaches the fully closed position is sandwiched and added to the threshold value Fth (ST1135).

図28は、全閉位置の近接範囲における挟み込みしきい値Fthの設定の例を示す図である。図28の例では、位置Pの値が「0」の場所を全閉位置としており、位置Pの値が正に増大するほど(図の右から左に向かうほど)全閉位置から離れる。増分値ΔFS(P)は、例えば位置Pの一次関数であり、次の式で表される。 FIG. 28 is a diagram showing an example of setting the sandwiching threshold value Fth in the proximity range of the fully closed position. In the example of FIG. 28, the position where the value of the position P is “0” is set as the fully closed position, and the more the value of the position P increases positively (from the right to the left in the figure), the farther away from the fully closed position. The increment value ΔFS (P) is, for example, a linear function of the position P, and is expressed by the following equation.

Figure 0006862274
Figure 0006862274

式(8)において、「α」は一次関数の傾きを表す係数である。増分値ΔFS(P)が加算される全閉位置の近接範囲は、位置Pの値が「0」から「Pu」までの範囲であり、位置Pの値が「Pu」のときに増分値ΔFS(P)はゼロとなる。なお、図28の例では、増分値ΔFS(P)が加算される全閉位置の近接範囲内(0〜Pu)に、挟み込み監視領域と非反転領域との境界「Px」が含まれる。 In equation (8), "α" is a coefficient representing the slope of the linear function. The proximity range of the fully closed position to which the incremental value ΔFS (P) is added is the range from “0” to “Pu” at the position P, and the incremental value ΔFS when the value of the position P is “Pu”. (P) becomes zero. In the example of FIG. 28, the boundary “Px” between the sandwiched monitoring area and the non-inverted area is included in the proximity range (0 to Pu) of the fully closed position to which the incremental value ΔFS (P) is added.

図26に戻る。
挟み込みしきい値設定部55は、外乱検知部54において外乱が検知された場合(ST1140,Yes)、外乱増分値ΔFXを挟み込みしきい値Fthに加算する(ST1145)。挟み込みしきい値設定部55は、外乱判定部542において外乱判定状態が保持されている間、挟み込みしきい値Fthへの外乱増分値ΔFXの加算を維持する。
Return to FIG.
When the disturbance detection unit 54 detects a disturbance (ST1140, Yes), the sandwiching threshold value setting unit 55 adds the disturbance increment value ΔFX to the sandwiching threshold value Fth (ST1145). The sandwiching threshold value setting unit 55 maintains the addition of the disturbance increment value ΔFX to the sandwiching threshold value Fth while the disturbance determination state is held by the disturbance determination unit 542.

また、挟み込みしきい値設定部55は、電圧検出部20において検出されるモータ電圧Vが変化した場合、その変化量に応じた増分値ΔFV(n)を算出する(ST1150)。例えば、挟み込みしきい値設定部55は、モータ電圧Vが上昇した場合に、モータ電圧Vの上昇幅ΔV(n)に応じた式(7)の増分値ΔFV(n)を算出する。ただし、挟み込みしきい値設定部55は、増分値ΔFV(n)が負の場合(ST1155,Yes)、増分値ΔFV(n)をゼロにする(ST1160)。挟み込みしきい値設定部55は、この増分値ΔFV(n)を挟み込みしきい値Fthに加算する(ST1165)。 Further, when the motor voltage V detected by the voltage detection unit 20 changes, the sandwiching threshold value setting unit 55 calculates an increment value ΔFV (n) according to the amount of change (ST1150). For example, the sandwiching threshold value setting unit 55 calculates the increment value ΔFV (n) of the equation (7) according to the increase width ΔV (n) of the motor voltage V when the motor voltage V rises. However, when the incremental value ΔFV (n) is negative (ST1155, Yes), the sandwiching threshold value setting unit 55 sets the incremental value ΔFV (n) to zero (ST1160). The sandwiching threshold value setting unit 55 adds this increment value ΔFV (n) to the sandwiching threshold value Fth (ST1165).

図29は、モータ電圧Vの変動に伴う算出荷重Fの変化と挟み込みしきい値Fthの設定の例を示す図である。図29Aはモータ電圧Vが一定の時間変化率で上昇する場合及び一定の時間変化率で低下する場合を示し、図29Bはモータ電圧Vが特定のタイミングで不連続に上昇する階段状の変化を生じる場合を示す。図29A、図29Bから分かるように、モータ電圧Vが上昇すると算出荷重Fも上昇する。また、モータ電圧Vの上昇後、算出荷重Fの上昇分は時間の経過とともに減少する傾向がある。増分値ΔFV(n)は、モータ電圧Vの変化に伴う算出荷重Fの変化に比較的近い変化を示す値となっているため、増分値ΔFV(n)が加算された挟み込みしきい値Fthは、算出荷重Fと同様な傾向で変化する。これにより、モータ電圧Vの変化に伴う算出荷重Fの変化が生じても、挟み込みの誤判定が効果的に回避される。 FIG. 29 is a diagram showing an example of a change in the calculated load F and a setting of the sandwiching threshold value Fth due to a fluctuation in the motor voltage V. FIG. 29A shows a case where the motor voltage V rises at a constant time change rate and a case where the motor voltage V decreases at a constant time change rate, and FIG. 29B shows a stepped change in which the motor voltage V rises discontinuously at a specific timing. The case where it occurs is shown. As can be seen from FIGS. 29A and 29B, as the motor voltage V increases, the calculated load F also increases. Further, after the increase in the motor voltage V, the amount of increase in the calculated load F tends to decrease with the passage of time. Since the incremental value ΔFV (n) is a value indicating a change relatively close to the change in the calculated load F accompanying the change in the motor voltage V, the sandwiching threshold value Fth to which the incremental value ΔFV (n) is added is , It changes in the same tendency as the calculated load F. As a result, even if the calculated load F changes due to the change in the motor voltage V, the erroneous determination of pinching is effectively avoided.

(4) 挟み込み判定
図30及び図31は、挟み込み判定(図3,ST135)を説明するためのフローチャートである。
挟み込み判定部56は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」を挟み込みしきい値Fthと比較し、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が挟み込みしきい値Fth以下の場合(ST1200,No)、挟み込みがないと判定する(ST1250)。
(4) Pinching determination FIGS. 30 and 31 are flowcharts for explaining the pinching determination (FIGS. 3 and ST135).
The sandwiching determination unit 56 compares the difference “F (n) −B (n)” between the calculated load F (n) and the reference value B (n) with the sandwiching threshold value Fth, and sets the calculated load F (n). When the difference "F (n) -B (n)" from the reference value B (n) is equal to or less than the sandwiching threshold value Fth (ST1200, No), it is determined that there is no sandwiching (ST1250).

挟み込み判定部56は、算出荷重F(n)と基準値B(n)との差「F(n)−B(n)」が挟み込みしきい値Fthより大きい場合(ST1200,Yes)、算出荷重Fの変化のパターンが所定の単調増加のパターンに該当するか否かを更に判定する(ST1205〜ST1225)。 When the difference "F (n) -B (n)" between the calculated load F (n) and the reference value B (n) is larger than the sandwiching threshold value Fth (ST1200, Yes), the sandwiching determination unit 56 calculates the calculated load. It is further determined whether or not the change pattern of F corresponds to a predetermined monotonous increase pattern (ST1205 to ST1225).

図32は、挟み込み判定における算出荷重Fの単調増加の条件(ST1205〜ST1225)を説明するための図である。挟み込み判定部56は、3つの連続した時間q1の各々において、算出荷重Fの増加量が所定の最大変化範囲(−ΔFe〜ΔFLmax)に含まれるか否かを判定する。すなわち、挟み込み判定部56は、ステップST1205では算出荷重Fの増加量「F(n)−F(n−q1)」について、ステップST1210では算出荷重Fの増加量「F(n−q1)−F(n−2・q1)」について、ステップST1215では算出荷重Fの増加量「F(n−2・q1)−F(n−3・q1)」について、それぞれ「−ΔFe」以上「ΔFLmax」以下の範囲に含まれるか否かを判定する。ステップST1205〜1215の1つ以上で、算出荷重Fの増加量が最大変化範囲(−ΔFe〜ΔFLmax)に含まれないと判定された場合、挟み込み判定部56は挟み込みがないと判定する(ST1250)。 FIG. 32 is a diagram for explaining a condition (ST1205 to ST1225) for monotonically increasing the calculated load F in the pinch determination. The sandwiching determination unit 56 determines whether or not the increase amount of the calculated load F is included in the predetermined maximum change range (−ΔFe to ΔFLmax) in each of the three consecutive times q1. That is, the sandwiching determination unit 56 has an increase in the calculated load F “F (n) −F (n−q1)” in step ST1205, and an increase in the calculated load F “F (n−q1) −F” in step ST1210. Regarding "(n-2.q1)", in step ST1215, for the amount of increase in the calculated load F "F (n-2.q1) -F (n-3.q1)", "-ΔFe" or more and "ΔFLmax" or less, respectively. Judge whether it is included in the range of. When it is determined in one or more of steps ST120 to 1215 that the increase amount of the calculated load F is not included in the maximum change range (−ΔFe to ΔFLmax), the pinch determination unit 56 determines that there is no pinch (ST1250). ..

また、挟み込み判定部56は、2つの連続した時間q2(>q1)の各々において、算出荷重Fの増加量が所定の最小増加量ΔFLmin以上か否かを判定する。すなわち、挟み込み判定部56は、ステップST1220では算出荷重Fの増加量「F(n)−F(n−q2)」について、ステップST1225では算出荷重Fの増加量「F(n−q2)−F(n−2・q2)」について、それぞれ最小増加量ΔFLmin以上か否かを判定する。ステップST1220、ST1225の1つ以上で、算出荷重Fの増加量が最小増加量ΔFLminより小さいと判定された場合、挟み込み判定部56は挟み込みがないと判定する(ST1250)。 Further, the sandwiching determination unit 56 determines whether or not the increase amount of the calculated load F is equal to or more than the predetermined minimum increase amount ΔFLmin at each of the two consecutive times q2 (> q1). That is, in step ST1220, the sandwiching determination unit 56 increases the calculated load F “F (n) −F (n−q2)”, and in step ST1225, increases the calculated load F “F (n−q2) −F”. For each of (n-2 and q2), it is determined whether or not the minimum increase amount is ΔFLmin or more. When it is determined in one or more of steps ST1220 and ST1225 that the increase amount of the calculated load F is smaller than the minimum increase amount ΔFLmin, the pinch determination unit 56 determines that there is no pinch (ST1250).

このように、算出荷重Fの変化のパターンが単調増加のパターンに該当するか否かを挟み込み判定の条件とすることで、例えば外乱の衝撃やノイズなどを挟み込みとして誤判定するケースを減らすことができるため、挟み込み判定の精度が向上する。 In this way, by setting whether or not the pattern of change of the calculated load F corresponds to the pattern of monotonous increase as the condition for the pinch determination, it is possible to reduce the case of erroneous judgment by pinching, for example, the impact of disturbance or noise. Therefore, the accuracy of the pinch determination is improved.

ステップST1205〜1215の各々において算出荷重Fの増加量が最大変化範囲(−ΔFe〜ΔFLmax)に含まれると判定され、かつ、ステップST1220、ST1225の各々において算出荷重Fの増加量が最小増加量ΔFLmin以上と判定された場合、挟み込み判定部56は、更にステップST1230〜ST1240の判定に進む。 It is determined that the increase amount of the calculated load F is included in the maximum change range (−ΔFe to ΔFLmax) in each of steps ST120 to 1215, and the increase amount of the calculated load F is the minimum increase amount ΔFLmin in each of steps ST1220 and ST1225. If it is determined as above, the sandwiching determination unit 56 further proceeds to the determination in steps ST1230 to ST1240.

挟み込み判定部56は、モータ6の回転が比較的安定する第3ステージS3以降において(ST1230,Yes)、所定時間q3あたりの算出荷重Fの増加量「F(n)−F(n−q3)」が、硬い物体の挟み込みの発生基準を示すしきい値ΔFh以上か否かを判定する(ST1235)。算出荷重Fの増加量「F(n)−F(n−q3)」がしきい値ΔFh以上の場合(ST1235,Yes)、挟み込み判定部56は、算出荷重Fの変化が加速しているか否かを判定する(ST1240)。すなわち、挟み込み判定部56は、直近の算出荷重Fの増加量「F(n)−F(n−1)」からノイズ等の誤差に相当する固定値「ΔFe」を引いた値と、以前の算出荷重Fの増加量「F(n−1)−F(n−2)」とを比較し、前者が後者以上の場合、算出荷重Fの変化が加速していると判定する(ステップST1240,Yes)。ステップST1240で算出荷重Fの変化が加速していると判定した場合、挟み込み判定部56は挟み込みがあると判定し(ST1245)、そうでない場合は、挟み込みがないと判定する(ST1250)。なお、挟み込み判定部56は、ステップST1230で第3ステージS3より前と判定した場合や(ST1230,No)、ステップST1235において算出荷重Fの増加量「F(n)−F(n−q3)」がしきい値ΔFhより小さいと判定した場合(ST1235,No)、ステップST1240の判定を省略し、挟み込みがあると判定する(ST1245)。 The sandwiching determination unit 56 increases the calculated load F per predetermined time q3 "F (n) -F (n-q3)" in the third stage S3 or later (ST1230, Yes) in which the rotation of the motor 6 is relatively stable. Is equal to or greater than the threshold value ΔFh indicating the occurrence criterion of pinching of a hard object (ST1235). When the increase amount "F (n) -F (n-q3)" of the calculated load F is equal to or greater than the threshold value ΔFh (ST1235, Yes), the pinch determination unit 56 determines whether the change of the calculated load F is accelerating. (ST1240). That is, the pinch determination unit 56 has a value obtained by subtracting a fixed value “ΔFe” corresponding to an error such as noise from the latest increase amount “F (n) −F (n-1)” of the calculated load F, and the previous value. Compare with the increase amount "F (n-1) -F (n-2)" of the calculated load F, and if the former is the latter or more, it is determined that the change of the calculated load F is accelerating (step ST1240, Yes). When it is determined in step ST1240 that the change in the calculated load F is accelerating, the pinching determination unit 56 determines that there is pinching (ST1245), and if not, it determines that there is no pinching (ST1250). In addition, when the pinching determination unit 56 determines in step ST1230 that it is before the third stage S3 (ST1230, No), or in step ST1235, the amount of increase in the calculated load F "F (n) -F (n-q3)". When it is determined that is smaller than the threshold value ΔFh (ST1235, No), the determination in step ST1240 is omitted, and it is determined that there is pinching (ST1245).

このように、算出荷重F(n)が急激に上昇する場合における算出荷重F(n)の変化の加速を調べることによって、硬い物の挟み込みが発生した場合と、外乱の衝撃などで算出荷重F(n)が変化した場合とを区別できるため、挟み込みの誤判定を減らすことができる。 In this way, by investigating the acceleration of the change in the calculated load F (n) when the calculated load F (n) rises sharply, the calculated load F occurs when a hard object is pinched and when the impact of disturbance occurs. Since it is possible to distinguish the case where (n) has changed, it is possible to reduce the erroneous determination of pinching.

(まとめ)
本実施形態に係る開閉制御装置によれば、電圧検出部20で検出されたモータ電圧Vに基づいて、モータ電圧Vの変化に伴う算出荷重Fの変化に応じた補正値(ΔFV(n))が挟み込みしきい値Fthに加算される。これにより、モータ電圧Vの変化に伴って算出荷重Fが変化すると、その変化に合わせて挟み込みしきい値Fthが変化する。そのため、基準値Bに対する算出荷重Fの超過量(F−B)と挟み込みしきい値Fthとを比較する場合において、モータ電圧Vの変化に伴う算出荷重Fの変化が比較結果に影響を与え難くなる。すなわち、モータ電圧Vの変動により算出荷重Fが変動する場合でも、超過量(F−B)と挟み込みしきい値Fthとの比較結果に基づく挟み込み判定の誤りを減らすことができる。
(Summary)
According to the open / close control device according to the present embodiment, a correction value (ΔFV (n)) according to a change in the calculated load F accompanying a change in the motor voltage V based on the motor voltage V detected by the voltage detection unit 20. Is added to the sandwiching threshold value Fth. As a result, when the calculated load F changes with the change in the motor voltage V, the sandwiching threshold value Fth changes according to the change. Therefore, when comparing the excess amount (FB) of the calculated load F with respect to the reference value B and the sandwiching threshold value Fth, the change in the calculated load F due to the change in the motor voltage V is unlikely to affect the comparison result. Become. That is, even when the calculated load F fluctuates due to the fluctuation of the motor voltage V, it is possible to reduce the error of the pinching determination based on the comparison result between the excess amount (FB) and the pinching threshold value Fth.

本実施形態に係る開閉制御装置によれば、算出荷重Fの変動量と外乱しきい値との比較に基づいて外乱が検知された場合、算出荷重Fの変動量に応じた外乱増分値ΔFXが挟み込みしきい値Fthに加算される。これにより、算出荷重Fの変動量から推測される外乱の大きさに応じて、挟み込みしきい値Fthが大きくなるため、外乱による挟み込みの判定の誤りを減らすことができる。 According to the open / close control device according to the present embodiment, when a disturbance is detected based on the comparison between the fluctuation amount of the calculated load F and the disturbance threshold value, the disturbance increment value ΔFX according to the fluctuation amount of the calculated load F is calculated. It is added to the sandwiching threshold value Fth. As a result, the sandwiching threshold value Fth increases according to the magnitude of the disturbance estimated from the fluctuation amount of the calculated load F, so that it is possible to reduce an error in determining pinching due to the disturbance.

本実施形態に係る開閉制御装置によれば、算出荷重Fの最大値Fmax(n)からの変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より大きい場合に外乱があると判定され、この変動量「Fmax(n)−F(n)」に応じた外乱増分値ΔFXが挟み込みしきい値Fthに加算される。そのため、外乱によって算出荷重Fの短時間の変動が起きても、外乱増分値ΔFXが加算されることで挟み込みしきい値Fthが大きくなるため、外乱が挟み込みとして誤判定されるケースを減らすことができる。
また、最大値Fmax(n)が更新された後、時間の経過とともに最大値Fmax(n)が減少するため、外乱による単発的な算出荷重F(n)の変動が終わった後は、変動量「Fmax(n)−F(n)」が小さくなる。これにより、適当な期間が経過した後、外乱があるとの判定を自動的に解除できる。
According to the open / close control device according to the present embodiment, the disturbance amount “Fmax (n) −F (n)” from the maximum value Fmax (n) of the calculated load F is larger than the first disturbance threshold value ΔX1. Is determined, and the disturbance increment value ΔFX corresponding to the fluctuation amount “Fmax (n) −F (n)” is added to the sandwiching threshold value Fth. Therefore, even if the calculated load F fluctuates for a short time due to the disturbance, the pinch threshold value Fth becomes large due to the addition of the disturbance increment value ΔFX, so that it is possible to reduce the case where the disturbance is erroneously determined as pinch. it can.
Further, since the maximum value Fmax (n) decreases with the passage of time after the maximum value Fmax (n) is updated, the amount of fluctuation after the one-shot fluctuation of the calculated load F (n) due to the disturbance is completed. “Fmax (n) −F (n)” becomes smaller. As a result, the determination that there is a disturbance can be automatically canceled after an appropriate period has elapsed.

本実施形態に係る開閉制御装置によれば、外乱が比較的小さいことにより算出荷重Fの最大値Fmax(n)からの変動量「Fmax(n)−F(n)」が第1外乱しきい値ΔX1より小さい場合であっても、算出荷重F(n)が上昇と低下を繰り返す回数に基づいて外乱の有無を判定できるため、比較的小さい外乱による挟み込み判定の誤りを減らすことができる。 According to the open / close control device according to the present embodiment, since the disturbance is relatively small, the fluctuation amount “Fmax (n) −F (n)” from the maximum value Fmax (n) of the calculated load F is the first disturbance threshold. Even when the value is smaller than ΔX1, the presence or absence of a disturbance can be determined based on the number of times the calculated load F (n) repeats rising and falling, so that it is possible to reduce an error in the pinching determination due to a relatively small disturbance.

本実施形態に係る開閉制御装置によれば、モータ電流Imに比例する第1荷重成分F1と角加速度に比例する第2荷重成分F2とが合成された算出荷重Fに基づいて、物体の挟み込みが検知される。第2荷重成分F2が算出荷重Fの算出結果に含まれることにより、第1荷重成分F1のみの場合に比べて算出荷重Fの算出精度が高くなり、挟み込みの検知の精度を向上できる。また、比較的硬い物体の挟み込みが生じた場合、第2荷重成分F2が速やかに増大するため、挟み込みの検知のタイミングが早くなる。これにより、挟み込みの発生から挟み込み防止制御の動作開始までの時間を短くすることができる。 According to the open / close control device according to the present embodiment, the object is pinched based on the calculated load F in which the first load component F1 proportional to the motor current Im and the second load component F2 proportional to the angular acceleration are combined. Detected. By including the second load component F2 in the calculation result of the calculated load F, the calculation accuracy of the calculated load F becomes higher than in the case of only the first load component F1, and the accuracy of pinching detection can be improved. Further, when a relatively hard object is pinched, the second load component F2 is rapidly increased, so that the timing of detecting the pinching is earlier. As a result, the time from the occurrence of pinching to the start of the operation of the pinch prevention control can be shortened.

なお、本発明は上記の形態のみに限定されるものではなく、他の種々のバリエーションを含んでいる。 The present invention is not limited to the above-mentioned form, but includes various other variations.

上記の実施形態では、本発明を車両の窓の開閉制御装置(パワーウインドウ等)に適用した例が挙げられているが、本発明はこれに限定されるものではなく、サンルーフやスライド式ドアなど、他の種々の開閉制御装置にも適用可能である。 In the above embodiment, an example in which the present invention is applied to an opening / closing control device (power window, etc.) of a vehicle window is given, but the present invention is not limited to this, and a sunroof, a sliding door, or the like is given. , And various other open / close control devices.

2…ドア、3…開閉体、4…窓枠、6…モータ、10…モータ駆動回路、11〜14…スイッチ素子、20…電圧検出部、21…増幅部、22…フィルタ部、30…電流検出部、31…増幅部、32…フィルタ部、40…操作部、50…処理部、51…開閉体位置検出部、52…荷重算出部、53…基準値算出部、54…外乱検知部、541…最大値保持部、542…外乱判定部、543…外乱増分値算出部、55…挟み込みしきい値設定部、56…挟み込み判定部、57…モータ制御部、60…記憶部、61…プログラム 2 ... Door, 3 ... Opening and Closing Body, 4 ... Window Frame, 6 ... Motor, 10 ... Motor Drive Circuit, 11-14 ... Switch Element, 20 ... Voltage Detection Unit, 21 ... Amplification Unit, 22 ... Filter Unit, 30 ... Current Detection unit, 31 ... Amplification unit, 32 ... Filter unit, 40 ... Operation unit, 50 ... Processing unit, 51 ... Switch position detection unit, 52 ... Load calculation unit, 53 ... Reference value calculation unit, 54 ... Disturbance detection unit, 541 ... Maximum value holding unit, 542 ... Disturbance determination unit, 543 ... Disturbance increment value calculation unit, 55 ... Pinching threshold setting unit, 56 ... Pinching determination unit, 57 ... Motor control unit, 60 ... Storage unit, 61 ... Program

Claims (23)

モータの駆動による開閉体の開閉動作を制御する開閉制御装置であって、
前記モータに流れる電流を検出する電流検出部と、
前記モータに供給される電圧を検出する電圧検出部と、
前記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、
前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、
前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と
前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部とを有し、
前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定し、
前記挟み込み判定部は、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定し、
前記荷重算出部は、前記検出電流に比例する第1荷重成分と、前記検出電流及び前記電圧検出部の検出電圧に基づいて近似された前記モータの回転の角加速度に比例する第2荷重成分とが合成された前記荷重を算出する、
開閉制御装置。
An open / close control device that controls the open / close operation of the open / close body driven by a motor.
A current detector that detects the current flowing through the motor,
A voltage detector that detects the voltage supplied to the motor,
A load calculation unit that calculates the load of the opening / closing body in the opening / closing operation based on the current detected by the current detection unit.
The sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold value setting unit.
When the calculated load exceeds the upper limit determined by the pinching threshold value, the pinching determination unit for determining that the pinching of the object by the opening / closing body has occurred, and the pinching determination unit.
If the pinching said pinching in the determination unit is determined to have occurred, and the motor control unit for pinch prevention control to reverse the rotation of the motor,
It has a reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value.
The sandwiching threshold value setting unit sets the sandwiching threshold value that determines an allowable range of the excess amount of the calculated load with respect to the reference value.
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, the pinching determination unit determines that the pinching of the object by the opening / closing body has occurred.
The load calculation unit includes a first load component proportional to the detected current and a second load component proportional to the angular acceleration of rotation of the motor approximated based on the detected current and the detected voltage of the voltage detection unit. Calculates the combined load,
Open / close control device.
モータの駆動による開閉体の開閉動作を制御する開閉制御装置であって、
前記モータに流れる電流を検出する電流検出部と
記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、
前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、
前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と
前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部と、
前記算出荷重の変動量と第1外乱しきい値との比較に基づいて、前記算出荷重の変動を引き起こす外乱を検知する外乱検知部とを有し、
前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定し、
前記挟み込み判定部は、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定し、
前記挟み込みしきい値設定部は、前記外乱検知部において前記外乱が検知された場合、前記算出荷重の変動量に応じた外乱増分値を前記挟み込みしきい値に加算し、
前記外乱検知部は、
前記算出荷重の最大値を保持し、前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重と前記保持した最大値とを比較し、前記新たな算出荷重が前記保持した最大値より大きいならば、前記新たな算出荷重を新たな最大値として保持し、前記保持した最大値を時間の経過とともに減少させる最大値保持部と、
前記最大値からの前記算出荷重の変動量が前記第1外乱しきい値より大きい場合、前記外乱があると判定する外乱判定部と、
前記外乱判定部において前記外乱があると判定された場合、前記最大値からの前記算出荷重の変動量に応じた前記外乱増分値を算出する外乱増分値算出部とを含む、
開閉制御装置。
An open / close control device that controls the open / close operation of the open / close body driven by a motor.
A current detector that detects the current flowing through the motor ,
Based on the detection current before Symbol current detection unit, a load calculation unit which calculates the load in the opening and closing operation of the closing body,
The sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold value setting unit.
When the calculated load exceeds the upper limit determined by the pinching threshold value, the pinching determination unit for determining that the pinching of the object by the opening / closing body has occurred, and the pinching determination unit.
If the pinching said pinching in the determination unit is determined to have occurred, and the motor control unit for pinch prevention control to reverse the rotation of the motor,
A reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value, and
It has a disturbance detection unit that detects the disturbance that causes the fluctuation of the calculated load based on the comparison between the fluctuation amount of the calculated load and the first disturbance threshold value.
The sandwiching threshold value setting unit sets the sandwiching threshold value that determines an allowable range of the excess amount of the calculated load with respect to the reference value.
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, the pinching determination unit determines that the pinching of the object by the opening / closing body has occurred.
When the disturbance is detected by the disturbance detection unit, the sandwiching threshold value setting unit adds a disturbance increment value according to the fluctuation amount of the calculated load to the sandwiching threshold value.
The disturbance detection unit
The maximum value of the calculated load is held, and each time a new calculated load is calculated by the load calculation unit, the new calculated load is compared with the held maximum value, and the new calculated load is calculated as described above. If it is larger than the held maximum value, the new calculated load is held as a new maximum value, and the held maximum value is reduced with the passage of time.
When the fluctuation amount of the calculated load from the maximum value is larger than the first disturbance threshold value, the disturbance determination unit for determining that there is the disturbance, and the disturbance determination unit.
When the disturbance determination unit determines that there is the disturbance, the disturbance increment value calculation unit that calculates the disturbance increment value according to the fluctuation amount of the calculated load from the maximum value is included.
Open / close control device.
前記第1外乱しきい値より小さい第2外乱しきい値、及び、前記第2外乱しきい値より小さい第3外乱しきい値が定められており、
前記外乱判定部は、前記最大値からの前記算出荷重の変動量が前記第2外乱しきい値を超える範囲への前記算出荷重の低下と、前記最大値からの前記算出荷重の変動量が前記第3外乱しきい値を下回る範囲への前記算出荷重の上昇とが交互に繰り返された回数を計数し、当該回数に応じて前記外乱があると判定する、
請求項に記載の開閉制御装置。
A second disturbance threshold value smaller than the first disturbance threshold value and a third disturbance threshold value smaller than the second disturbance threshold value are defined.
In the disturbance determination unit, the decrease of the calculated load to the range where the fluctuation amount of the calculated load from the maximum value exceeds the second disturbance threshold value, and the fluctuation amount of the calculated load from the maximum value are said. The number of times the calculated load is alternately increased to a range below the third disturbance threshold value is counted, and it is determined that there is the disturbance according to the number of times.
The open / close control device according to claim 2.
前記外乱判定部は、前記外乱があると判定する度に外乱判定状態を一定期間保持し、
前記挟み込みしきい値設定部は、前記外乱判定状態が保持されている間、前記外乱増分値を前記挟み込みしきい値に加算する、
請求項2又は3に記載の開閉制御装置。
The disturbance determination unit holds the disturbance determination state for a certain period of time each time it determines that there is a disturbance.
The sandwiching threshold value setting unit adds the disturbance increment value to the sandwiching threshold value while the disturbance determination state is held.
The open / close control device according to claim 2 or 3.
前記外乱増分値算出部は、前記外乱判定状態が保持されている間、前記挟み込みしきい値に加算する前記外乱増分値を、前記最大値からの前記算出荷重の最も大きな変動量に応じて更新する、
請求項に記載の開閉制御装置。
The disturbance increment value calculation unit updates the disturbance increment value to be added to the sandwiching threshold value according to the largest fluctuation amount of the calculated load from the maximum value while the disturbance determination state is held. To do,
The opening / closing control device according to claim 4.
モータの駆動による開閉体の開閉動作を制御する開閉制御装置であって、
前記モータに流れる電流を検出する電流検出部と
記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、
前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、
前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と
前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部とを有し、
前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定し、
前記挟み込み判定部は、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定し、
前記挟み込みしきい値設定部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の低下量が初期低下量しきい値を超える場合、前記挟み込みしきい値を一時的に増大させる、
開閉制御装置。
An open / close control device that controls the open / close operation of the open / close body driven by a motor.
A current detector that detects the current flowing through the motor ,
Based on the detection current before Symbol current detection unit, a load calculation unit which calculates the load in the opening and closing operation of the closing body,
The sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold value setting unit.
When the calculated load exceeds the upper limit determined by the pinching threshold value, the pinching determination unit for determining that the pinching of the object by the opening / closing body has occurred, and the pinching determination unit.
If the pinching said pinching in the determination unit is determined to have occurred, and the motor control unit for pinch prevention control to reverse the rotation of the motor,
It has a reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value.
The sandwiching threshold value setting unit sets the sandwiching threshold value that determines an allowable range of the excess amount of the calculated load with respect to the reference value.
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, the pinching determination unit determines that the pinching of the object by the opening / closing body has occurred.
The sandwiching threshold value setting unit temporarily sets the sandwiching threshold value when the amount of decrease in the calculated load per predetermined time exceeds the initial reduction amount threshold value in the initial period after the motor is started. Increase,
Open / close control device.
モータの駆動による開閉体の開閉動作を制御する開閉制御装置であって、
前記モータに流れる電流を検出する電流検出部と
記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、
前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、
前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と
前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部とを有し、
前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定し、
前記挟み込み判定部は、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定し、
前記基準値算出部は、
前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重と過去の前記基準値との第1加重平均の結果を新たな前記基準値として算出し、
前記モータが起動した後の初期期間において、前記新たな算出荷重が最大荷重を超える場合は、前記新たな基準値を前記最大荷重に一致させ、前記新たな算出荷重が最小荷重より小さい場合は、前記新たな基準値を前記最小荷重に一致させる、
開閉制御装置。
An open / close control device that controls the open / close operation of the open / close body driven by a motor.
A current detector that detects the current flowing through the motor ,
Based on the detection current before Symbol current detection unit, a load calculation unit which calculates the load in the opening and closing operation of the closing body,
The sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold value setting unit.
When the calculated load exceeds the upper limit determined by the pinching threshold value, the pinching determination unit for determining that the pinching of the object by the opening / closing body has occurred, and the pinching determination unit.
If the pinching said pinching in the determination unit is determined to have occurred, and the motor control unit for pinch prevention control to reverse the rotation of the motor,
It has a reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value.
The sandwiching threshold value setting unit sets the sandwiching threshold value that determines an allowable range of the excess amount of the calculated load with respect to the reference value.
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, the pinching determination unit determines that the pinching of the object by the opening / closing body has occurred.
The reference value calculation unit
Every time the new calculated load is calculated by the load calculation unit, the result of the first weighted average of the new calculated load and the past reference value is calculated as the new reference value.
In the initial period after the motor is started, if the new calculated load exceeds the maximum load, the new reference value is matched with the maximum load, and if the new calculated load is smaller than the minimum load, Matching the new reference value to the minimum load,
Open / close control device.
前記基準値算出部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の低下量が第1変動しきい値を超える場合、前記新たな基準値を前記新たな算出荷重に一致させる、
請求項に記載の開閉制御装置。
When the amount of decrease in the calculated load per predetermined time exceeds the first fluctuation threshold value in the initial period after the motor is started, the reference value calculation unit sets the new reference value as the new calculated load. To match,
The opening / closing control device according to claim 7.
前記基準値算出部は、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の上昇量が第2変動しきい値を超える場合、前記新たな算出荷重と過去の前記基準値との第2加重平均であって、前記第1加重平均より応答速度が速い前記第2加重平均の結果を新たな前記基準値として算出する、
請求項7又は8に記載の開閉制御装置。
In the initial period after the motor is started, the reference value calculation unit determines the new calculated load and the past reference value when the amount of increase in the calculated load per predetermined time exceeds the second fluctuation threshold value. The result of the second weighted average, which is the second weighted average of and has a faster response speed than the first weighted average, is calculated as a new reference value.
The open / close control device according to claim 7 or 8.
前記基準値算出部は、前記算出荷重と前記基準値とが所定時間以上継続して第1範囲内の差を有する場合、前記新たな基準値を前記新たな算出荷重に一致させる、
請求項7乃至9の何れか一項に記載の開閉制御装置。
When the calculated load and the reference value have a difference within the first range continuously for a predetermined time or more, the reference value calculation unit makes the new reference value match the new calculated load.
The open / close control device according to any one of claims 7 to 9.
前記開閉体の位置を検出する開閉体位置検出部を有し、
前記基準値算出部は、前記開閉体位置検出部において検出された前記開閉体の位置が前記開閉体の全閉位置に近接した所定の範囲内にあるときは、前記算出荷重と前記基準値とが所定時間以上継続して第2範囲内の差を有する場合に、前記新たな基準値を前記新たな算出荷重に一致させ、
前記第2範囲は、前記算出荷重が前記基準値より小さい条件において、前記第1範囲よりも拡張されている、
請求項10に記載の開閉制御装置。
It has an opening / closing body position detecting unit that detects the position of the opening / closing body, and has an opening / closing body position detecting unit.
When the position of the opening / closing body detected by the opening / closing body position detecting unit is within a predetermined range close to the fully closed position of the opening / closing body, the reference value calculation unit includes the calculated load and the reference value. When there is a difference within the second range for a predetermined time or longer, the new reference value is matched with the new calculated load.
The second range is extended from the first range under the condition that the calculated load is smaller than the reference value.
The opening / closing control device according to claim 10.
前記基準値算出部は、前記新たな算出荷重と過去の前記基準値との差が差異しきい値より大きく、かつ、所定時間あたりの前記算出荷重の変化量が変化量しきい値より大きい場合、前記新たな基準値を前記過去の基準値に一致させる、
請求項7乃至11の何れか一項に記載の開閉制御装置。
In the reference value calculation unit, when the difference between the new calculated load and the past reference value is larger than the difference threshold value and the amount of change in the calculated load per predetermined time is larger than the change amount threshold value. , Match the new reference value with the past reference value,
The opening / closing control device according to any one of claims 7 to 11.
モータの駆動による開閉体の開閉動作を制御する開閉制御装置であって、
前記モータに流れる電流を検出する電流検出部と
記電流検出部の検出電流に基づいて、前記開閉体の前記開閉動作における荷重を算出する荷重算出部と、
前記荷重算出部において算出された算出荷重の上限を定める挟み込みしきい値を設定する挟み込みしきい値設定部と、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定する挟み込み判定部と、
前記挟み込み判定部において前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うモータ制御部と
前記荷重算出部において算出された前記算出荷重の加重平均の結果を基準値として算出する基準値算出部とを有し、
前記挟み込みしきい値設定部は、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定し、
前記挟み込み判定部は、
前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定し、
前記荷重算出部において新たな前記算出荷重が算出される度に、前記新たな算出荷重を含む一連の複数の算出荷重に基づいて、前記算出荷重の変化のパターンが所定の単調増加のパターンに該当するか否かを判定し、
前記基準値に対する前記新たな算出荷重の超過量が前記挟み込みしきい値より大きい第1条件と、前記算出荷重の変化のパターンが前記単調増加のパターンに該当する第2条件とを満たした場合、前記挟み込みが発生したと判定する、
開閉制御装置。
An open / close control device that controls the open / close operation of the open / close body driven by a motor.
A current detector that detects the current flowing through the motor ,
Based on the detection current before Symbol current detection unit, a load calculation unit which calculates the load in the opening and closing operation of the closing body,
The sandwiching threshold setting unit that sets the sandwiching threshold value that sets the upper limit of the calculated load calculated by the load calculation unit, and the sandwiching threshold value setting unit.
When the calculated load exceeds the upper limit determined by the pinching threshold value, the pinching determination unit for determining that the pinching of the object by the opening / closing body has occurred, and the pinching determination unit.
If the pinching said pinching in the determination unit is determined to have occurred, and the motor control unit for pinch prevention control to reverse the rotation of the motor,
It has a reference value calculation unit that calculates the result of the weighted average of the calculated load calculated by the load calculation unit as a reference value.
The sandwiching threshold value setting unit sets the sandwiching threshold value that determines an allowable range of the excess amount of the calculated load with respect to the reference value.
The pinch determination unit
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
Each time a new calculated load is calculated by the load calculation unit, the pattern of change in the calculated load corresponds to a predetermined monotonous increase pattern based on a series of a plurality of calculated loads including the new calculated load. Judge whether to do or not,
When the first condition in which the excess amount of the new calculated load with respect to the reference value is larger than the sandwiching threshold value and the second condition in which the change pattern of the calculated load corresponds to the monotonous increase pattern are satisfied. It is determined that the pinching has occurred.
Open / close control device.
前記挟み込み判定部は、所定時間あたりの前記算出荷重の増加量が、硬い物体の挟み込みの発生基準を示すしきい値より大きい場合には、前記第1条件及び前記第2条件に加えて、前記算出荷重の変化が加速している第3条件を満たした場合に、前記挟み込みが発生したと判定する、
請求項13に記載の開閉制御装置。
When the increase amount of the calculated load per predetermined time is larger than the threshold value indicating the occurrence standard of pinching of a hard object, the pinching determination unit may add the first condition and the second condition to the pinching determination unit. When the third condition that the change of the calculated load is accelerating is satisfied, it is determined that the pinching has occurred.
The opening / closing control device according to claim 13.
前記モータに供給される電圧を検出する電圧検出部を有し、It has a voltage detector that detects the voltage supplied to the motor.
前記挟み込みしきい値設定部は、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じて前記上限が変化するように、前記電圧検出部の検出電圧に基づいて前記挟み込みしきい値を設定する、The sandwiching threshold setting unit is based on the detection voltage of the voltage detection unit so that the upper limit changes according to the change in the calculated load accompanying the change in the voltage supplied to the motor. Set the value,
請求項1乃至14の何れか一項に記載の開閉制御装置。The opening / closing control device according to any one of claims 1 to 14.
前記挟み込みしきい値設定部は、前記電圧検出部の検出電圧に基づいて、前記モータに供給される電圧の変化に伴う前記算出荷重の変化に応じた補正値を前記挟み込みしきい値に加算する、Based on the detection voltage of the voltage detection unit, the sandwiching threshold value setting unit adds a correction value according to the change of the calculated load accompanying the change of the voltage supplied to the motor to the sandwiching threshold value. ,
請求項15に記載の開閉制御装置。The opening / closing control device according to claim 15.
前記挟み込みしきい値設定部は、前記挟み込みしきい値に前記補正値として加算する増分値を時間の経過とともに減少させる、
請求項16に記載の開閉制御装置。
The sandwiching threshold value setting unit reduces the incremental value to be added to the sandwiching threshold value as the correction value with the passage of time.
The opening / closing control device according to claim 16.
モータの駆動により開閉体の開閉動作を制御する開閉動作制御方法であって、
前記モータに流れる電流を検出するセンサの検出結果を取得することと、
前記モータに供給される電圧を検出するセンサの検出結果を取得することと、
前記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、
前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと
前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することとを有し、
前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、
前記挟み込みの発生を判定することは、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することを含み、
前記荷重を算出することは、前記検出結果の電流に比例する第1荷重成分と、前記検出結果の電流及び前記検出結果の電圧に基づいて近似された前記モータの回転の角加速度に比例する第2荷重成分とが合成された前記荷重を算出することを含む、
開閉動作制御方法。
It is an opening / closing operation control method that controls the opening / closing operation of the opening / closing body by driving a motor.
Acquiring the detection result of the sensor that detects the current flowing through the motor,
Acquiring the detection result of the sensor that detects the voltage supplied to the motor,
Based on the current detection result, the load in the opening / closing operation of the opening / closing body is calculated, and
Setting the sandwiching threshold that sets the upper limit of the calculated load obtained by calculating the load, and
When the calculated load exceeds the upper limit determined by the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
When it is determined that the pinch has occurred by the pinch determination, the pinch prevention control for reversing the rotation of the motor is performed .
It has the purpose of calculating the weighted average result of the calculated load obtained by the calculation of the load as a reference value.
Setting the sandwiching threshold includes setting the sandwiching threshold that determines the allowable range of the excess amount of the calculated load with respect to the reference value.
Determining the occurrence of the pinching includes determining that the pinching of the object by the opening / closing body has occurred when the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value.
The calculation of the load is proportional to the first load component proportional to the current of the detection result, and the angular acceleration of the rotation of the motor approximated based on the current of the detection result and the voltage of the detection result. 2 Including calculating the load in which the load component is combined,
Opening and closing operation control method.
モータの駆動により開閉体の開閉動作を制御する開閉動作制御方法であって、
前記モータに流れる電流を検出するセンサの検出結果を取得することと
記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、
前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと
前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することと、
前記算出荷重の変動量と第1外乱しきい値との比較に基づいて、前記算出荷重の変動を引き起こす外乱を検知することとを有し、
前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、
前記挟み込みの発生を判定することは、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することを含み、
前記挟み込みしきい値を設定することは、前記外乱を検知することにより前記外乱が検知された場合、前記算出荷重の変動量に応じた外乱増分値を前記挟み込みしきい値に加算することを含み、
前記外乱を検知することは、
前記算出荷重の最大値を保持し、前記荷重を算出することによって新たな前記算出荷重が算出される度に、前記新たな算出荷重と前記保持した最大値とを比較し、前記新たな算出荷重が前記保持した最大値より大きいならば、前記新たな算出荷重を新たな最大値として保持し、前記保持した最大値を時間の経過とともに減少させることと、
前記最大値からの前記算出荷重の変動量が前記第1外乱しきい値より大きい場合、前記外乱があると判定することと、
前記外乱を判定することによって前記外乱があると判定された場合、前記最大値からの前記算出荷重の変動量に応じた前記外乱増分値を算出することとを含む、
開閉動作制御方法。
It is an opening / closing operation control method that controls the opening / closing operation of the opening / closing body by driving a motor.
Acquiring the detection result of the sensor that detects the current flowing through the motor ,
And that on the basis of the detection result before Symbol current, calculates the load in the opening and closing operation of the closing body,
Setting the sandwiching threshold that sets the upper limit of the calculated load obtained by calculating the load, and
When the calculated load exceeds the upper limit determined by the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
When it is determined that the pinch has occurred by the pinch determination, the pinch prevention control for reversing the rotation of the motor is performed .
The result of the weighted average of the calculated load obtained by the calculation of the load is calculated as a reference value, and
Based on the comparison between the fluctuation amount of the calculated load and the first disturbance threshold value, the disturbance that causes the fluctuation of the calculated load is detected.
Setting the sandwiching threshold includes setting the sandwiching threshold that determines the allowable range of the excess amount of the calculated load with respect to the reference value.
Determining the occurrence of the pinching includes determining that the pinching of the object by the opening / closing body has occurred when the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value.
Setting the pinch threshold value includes adding a disturbance increment value according to the fluctuation amount of the calculated load to the pinch threshold value when the disturbance is detected by detecting the disturbance. ,
Detecting the disturbance
Each time a new calculated load is calculated by holding the maximum value of the calculated load and calculating the load, the new calculated load is compared with the held maximum value, and the new calculated load is compared. If is greater than the retained maximum value, the newly calculated load is retained as a new maximum value, and the retained maximum value is reduced over time.
When the fluctuation amount of the calculated load from the maximum value is larger than the first disturbance threshold value, it is determined that there is the disturbance.
When it is determined that there is the disturbance by determining the disturbance, the disturbance increment value is calculated according to the fluctuation amount of the calculated load from the maximum value.
Opening and closing operation control method.
モータの駆動により開閉体の開閉動作を制御する開閉動作制御方法であって、
前記モータに流れる電流を検出するセンサの検出結果を取得することと
記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、
前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと
前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することとを有し、
前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、
前記挟み込みの発生を判定することは、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することを含み、
前記挟み込みしきい値を設定することは、前記モータが起動した後の初期期間において、所定時間あたりの前記算出荷重の低下量が初期低下量しきい値を超える場合、前記挟み込みしきい値を一時的に増大させることを含む、
開閉動作制御方法。
It is an opening / closing operation control method that controls the opening / closing operation of the opening / closing body by driving a motor.
Acquiring the detection result of the sensor that detects the current flowing through the motor ,
And that on the basis of the detection result before Symbol current, calculates the load in the opening and closing operation of the closing body,
Setting the sandwiching threshold that sets the upper limit of the calculated load obtained by calculating the load, and
When the calculated load exceeds the upper limit determined by the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
When it is determined that the pinch has occurred by the pinch determination, the pinch prevention control for reversing the rotation of the motor is performed .
It has the purpose of calculating the weighted average result of the calculated load obtained by the calculation of the load as a reference value.
Setting the sandwiching threshold includes setting the sandwiching threshold that determines the allowable range of the excess amount of the calculated load with respect to the reference value.
Determining the occurrence of the pinching includes determining that the pinching of the object by the opening / closing body has occurred when the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value.
Setting the sandwiching threshold temporarily sets the sandwiching threshold when the amount of decrease in the calculated load per predetermined time exceeds the initial decrease threshold in the initial period after the motor is started. Including increasing
Opening and closing operation control method.
モータの駆動により開閉体の開閉動作を制御する開閉動作制御方法であって、
前記モータに流れる電流を検出するセンサの検出結果を取得することと
記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、
前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと
前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することとを有し、
前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、
前記挟み込みの発生を判定することは、前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することを含み、
前記基準値を算出することは、
前記荷重を算出することによって新たな前記算出荷重が算出される度に、前記新たな算出荷重と過去の前記基準値との第1加重平均の結果を新たな前記基準値として算出することと、
前記モータが起動した後の初期期間において、前記新たな算出荷重が最大荷重を超える場合は、前記新たな基準値を前記最大荷重に一致させ、前記新たな算出荷重が最小荷重より小さい場合は、前記新たな基準値を前記最小荷重に一致させることとを含む、
開閉動作制御方法。
It is an opening / closing operation control method that controls the opening / closing operation of the opening / closing body by driving a motor.
Acquiring the detection result of the sensor that detects the current flowing through the motor ,
And that on the basis of the detection result before Symbol current, calculates the load in the opening and closing operation of the closing body,
Setting the sandwiching threshold that sets the upper limit of the calculated load obtained by calculating the load, and
When the calculated load exceeds the upper limit determined by the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
When it is determined that the pinch has occurred by the pinch determination, the pinch prevention control for reversing the rotation of the motor is performed .
It has the purpose of calculating the weighted average result of the calculated load obtained by the calculation of the load as a reference value.
Setting the sandwiching threshold includes setting the sandwiching threshold that determines the allowable range of the excess amount of the calculated load with respect to the reference value.
Determining the occurrence of the pinching includes determining that the pinching of the object by the opening / closing body has occurred when the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value.
To calculate the reference value
Every time a new calculated load is calculated by calculating the load, the result of the first weighted average of the new calculated load and the past reference value is calculated as the new reference value.
In the initial period after the motor is started, if the new calculated load exceeds the maximum load, the new reference value is matched with the maximum load, and if the new calculated load is smaller than the minimum load, Including matching the new reference value with the minimum load.
Opening and closing operation control method.
モータの駆動により開閉体の開閉動作を制御する開閉動作制御方法であって、
前記モータに流れる電流を検出するセンサの検出結果を取得することと
記電流の検出結果に基づいて、前記開閉体の前記開閉動作における荷重を算出することと、
前記荷重の算出により得られた算出荷重の上限を定める挟み込みしきい値を設定することと、
前記算出荷重が前記挟み込みしきい値によって定められた上限を超える場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記挟み込みの判定によって前記挟み込みが発生したと判定された場合、前記モータの回転を反転させる挟み込み防止制御を行うことと
前記荷重の算出により得られた前記算出荷重の加重平均の結果を基準値として算出することとを有し、
前記挟み込みしきい値を設定することは、前記基準値に対する前記算出荷重の超過量の許容範囲を定める前記挟み込みしきい値を設定することを含み、
前記挟み込みの発生を判定することは、
前記基準値に対する前記算出荷重の超過量が前記挟み込みしきい値より大きい場合、前記開閉体による物体の挟み込みが発生したと判定することと、
前記荷重を算出することによって新たな前記算出荷重が算出される度に、前記新たな算出荷重を含む一連の複数の算出荷重に基づいて、前記算出荷重の変化のパターンが所定の単調増加のパターンに該当するか否かを判定することと、
前記基準値に対する前記新たな算出荷重の超過量が前記挟み込みしきい値より大きい第1条件と、前記算出荷重の変化のパターンが前記単調増加のパターンに該当する第2条件とを満たした場合、前記挟み込みが発生したと判定することとを含む、
開閉動作制御方法。
It is an opening / closing operation control method that controls the opening / closing operation of the opening / closing body by driving a motor.
Acquiring the detection result of the sensor that detects the current flowing through the motor ,
And that on the basis of the detection result before Symbol current, calculates the load in the opening and closing operation of the closing body,
Setting the sandwiching threshold that sets the upper limit of the calculated load obtained by calculating the load, and
When the calculated load exceeds the upper limit determined by the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
When it is determined that the pinch has occurred by the pinch determination, the pinch prevention control for reversing the rotation of the motor is performed .
It has the purpose of calculating the weighted average result of the calculated load obtained by the calculation of the load as a reference value.
Setting the sandwiching threshold includes setting the sandwiching threshold that determines the allowable range of the excess amount of the calculated load with respect to the reference value.
Determining the occurrence of the pinching is
When the excess amount of the calculated load with respect to the reference value is larger than the pinching threshold value, it is determined that the pinching of the object by the opening / closing body has occurred.
Each time a new calculated load is calculated by calculating the load, the pattern of change of the calculated load is a predetermined monotonous increase pattern based on a series of a plurality of calculated loads including the new calculated load. To determine whether or not it corresponds to
When the first condition in which the excess amount of the new calculated load with respect to the reference value is larger than the sandwiching threshold value and the second condition in which the change pattern of the calculated load corresponds to the monotonous increase pattern are satisfied. Including determining that the pinching has occurred,
Opening and closing operation control method.
請求項18乃至22の何れか一項に記載の開閉動作制御方法をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute the opening / closing operation control method according to any one of claims 18 to 22.
JP2017101420A 2017-05-23 2017-05-23 Open / close control device, open / close operation control method and program Active JP6862274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017101420A JP6862274B2 (en) 2017-05-23 2017-05-23 Open / close control device, open / close operation control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017101420A JP6862274B2 (en) 2017-05-23 2017-05-23 Open / close control device, open / close operation control method and program

Publications (2)

Publication Number Publication Date
JP2018197426A JP2018197426A (en) 2018-12-13
JP6862274B2 true JP6862274B2 (en) 2021-04-21

Family

ID=64663788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017101420A Active JP6862274B2 (en) 2017-05-23 2017-05-23 Open / close control device, open / close operation control method and program

Country Status (1)

Country Link
JP (1) JP6862274B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111535691A (en) * 2020-03-18 2020-08-14 姜明 Vehicle window blocking pressure control device and control method thereof
JP7496771B2 (en) 2020-12-25 2024-06-07 アルプスアルパイン株式会社 Switching control device and switching control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3621494B2 (en) * 1996-02-13 2005-02-16 株式会社東海理化電機製作所 Motor drive control device
JP3355277B2 (en) * 1996-06-04 2002-12-09 株式会社東海理化電機製作所 Wind glass pinch detection device
JP2002106256A (en) * 2000-09-28 2002-04-10 Tokai Rika Co Ltd Detector for detecting catching/non-catching in window glass
JP3835522B2 (en) * 2000-12-08 2006-10-18 オムロン株式会社 Open / close control device
JP2004242425A (en) * 2003-02-06 2004-08-26 Mitsuba Corp Load detection device for dc motor
JP5799599B2 (en) * 2011-06-15 2015-10-28 アイシン精機株式会社 Opening and closing body control device

Also Published As

Publication number Publication date
JP2018197426A (en) 2018-12-13

Similar Documents

Publication Publication Date Title
US6242908B1 (en) Detection of passing magnetic articles while adapting the detection threshold
JP2018003426A (en) Opening/closing controller
US6426604B1 (en) Power window controlling device
JP6862274B2 (en) Open / close control device, open / close operation control method and program
JP6862275B2 (en) Open / close control device, open / close operation control method and program
CN105049707A (en) Method of preventing camera from stalling and mobile terminal
US20220090431A1 (en) Open/close control device, open/close control system, open/close control method, and program
CN110031228B (en) Semiconductor device and method of detecting rotational abnormality thereof
US11970896B2 (en) Opening/closing control device and opening/closing control method
US6845337B2 (en) Method for correcting the determination of the rotating position of a drive shaft of a commutated direct current motor
JP6734714B2 (en) Switching control device
CN107482968B (en) control method for improving motion precision of direct current motor
JP4063094B2 (en) Opening and closing body pinching detection device
JP6714775B2 (en) Motor with rotation angle detector, rotation angle detector for motor, and method for detecting rotation angle of motor with commutator
EP2808992A2 (en) Motor control device
US6505127B1 (en) Foreign material interference detection apparatus for open/closing members
CN111761596A (en) Touch detection method and device, electronic equipment and computer readable medium
JP5350029B2 (en) Optical equipment
JP2019045488A (en) Noise elimination method of state monitoring device and state monitoring device
CN106208843B (en) Motor drive circuit, vibration device, and electronic apparatus
US7183935B2 (en) Method and apparatus for determining motor velocity using edge mode hysteresis with a finite impulse response average filter
CN116923429A (en) Vehicle speed calculation method, vehicle, and computer-readable storage medium
JP3402017B2 (en) Speed detection control device
JP2006217155A (en) Comparator, and apparatus and method of processing signal
CN115085604A (en) Motor operation detection method and device, computer equipment and motor control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200915

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201020

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201218

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210331

R150 Certificate of patent or registration of utility model

Ref document number: 6862274

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150