JP2020125671A - Opening/closing system - Google Patents

Opening/closing system Download PDF

Info

Publication number
JP2020125671A
JP2020125671A JP2019213652A JP2019213652A JP2020125671A JP 2020125671 A JP2020125671 A JP 2020125671A JP 2019213652 A JP2019213652 A JP 2019213652A JP 2019213652 A JP2019213652 A JP 2019213652A JP 2020125671 A JP2020125671 A JP 2020125671A
Authority
JP
Japan
Prior art keywords
opening
closing
window
error
motor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019213652A
Other languages
Japanese (ja)
Other versions
JP7326131B2 (en
Inventor
新一 遠藤
Shinichi Endo
新一 遠藤
早坂 哲
Satoru Hayasaka
哲 早坂
和義 増田
Kazuyoshi Masuda
和義 増田
武彦 菊地
Takehiko Kikuchi
武彦 菊地
軍安 都
Gunan To
軍安 都
渉 木村
Wataru Kimura
渉 木村
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 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 Alpine Co Ltd filed Critical Alps Alpine Co Ltd
Publication of JP2020125671A publication Critical patent/JP2020125671A/en
Application granted granted Critical
Publication of JP7326131B2 publication Critical patent/JP7326131B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

To suppress imparting trouble to a user.SOLUTION: The opening/closing system comprises: a switch; a motor that opens/closes an opening/closing component; and a control device that controls the motor according to an operation signal outputted from the switch. The control device includes: a counting unit that counts an operation frequency of the switch; a rotation amount detection unit that detects a rotation amount of a rotation shaft of the motor; a lock detection unit that detects locking in a closing operation of the opening/closing component; a position calculation unit that calculates an opening/closing position of the opening/closing component based on the rotation amount; an error calculation unit that calculates an error Δ of the opening/closing position corresponding to the operation frequency; and a motor control unit that, when the locking is detected, closes the opening/closing component to a fully closed position when an expression {x<(b-Δ)} is satisfied, and reverses the opening/closing component when the expression {x>(b+Δ)} is satisfied, where x is the opening/closing position of the opening/closing component corresponding to a distance from the fully closed position to an upper edge of the opening/closing component, and b is the distance from the fully closed position to a bottom edge of a non-reversal region.SELECTED DRAWING: Figure 5

Description

本発明は、開閉システムに関する。 The present invention relates to an opening/closing system.

従来、例えば、自動車等の車両に搭載されるパワーウインドウ装置では、窓の開閉動作を制御する制御方法として、窓による物体の挟み込みを検知した場合に、窓の開閉動作を反転させることにより、物体の挟み込みを防止する制御方法(以下、「挟み込み防止制御」と示す)が知られている。 Conventionally, for example, in a power window device mounted on a vehicle such as an automobile, as a control method for controlling the opening/closing operation of a window, when the object is caught by the window, the opening/closing operation of the window is reversed to A control method (hereinafter, referred to as “entrapment prevention control”) for preventing the entrapment of the sheet is known.

また、このようなパワーウインドウ装置に関し、下記特許文献1には、窓の上端部の開閉位置が、全閉位置の近傍に設定された境界位置よりも上方にある場合、窓を確実に閉め切ることができるように、挟み込み防止制御を無効化する技術が開示されている。また、下記特許文献1には、モータを流れる電流におけるリップル成分の発生数に基づいて、モータの回転量を検出し、当該回転量に基づいて、窓の開閉位置を算出する技術も開示されている。 Further, regarding such a power window device, in Patent Document 1 below, when the opening/closing position of the upper end of the window is above a boundary position set near the fully closed position, the window is completely closed. In order to be able to do so, the technique of invalidating the entrapment prevention control is disclosed. Patent Document 1 below also discloses a technique of detecting the rotation amount of the motor based on the number of ripple components generated in the current flowing through the motor and calculating the opening/closing position of the window based on the rotation amount. There is.

特開2018−3427号公報JP, 2008-3427, A

ところで、特許文献1に開示されている技術では、モータを流れる電流に基づいて、モータの回転量を検出するため、窓の開閉操作が行われる度に、窓の開閉位置の誤差が蓄積されてしまい、挟み込み防止制御を無効化するための境界位置を正確に判定することができず、窓を誤動作させてしまう虞がある。そこで、従来、このような誤動作を回避するために、窓の開閉位置が全開位置または全閉位置に達したときに窓の開閉位置をリセットし、窓の開閉操作の回数が所定回数を超えた場合、窓の開閉位置がリセットされるまで、窓の自動開閉動作を無効化する技術が考案されている。しかしながら、この技術では、操作回数が所定回数を超える度に、窓の自動開閉動作が無効化されてしまうため、ユーザが思ったとおりに窓を開閉操作することができず、ユーザに煩わしさを与えてしまう虞がある。 By the way, in the technique disclosed in Patent Document 1, since the rotation amount of the motor is detected based on the current flowing through the motor, an error in the opening/closing position of the window is accumulated every time the opening/closing operation of the window is performed. Therefore, it is not possible to accurately determine the boundary position for invalidating the trapping prevention control, which may cause the window to malfunction. Therefore, conventionally, in order to avoid such a malfunction, the opening/closing position of the window is reset when the opening/closing position of the window reaches the fully opened position or the fully closed position, and the number of times of the window opening/closing operation exceeds a predetermined number. In this case, a technique has been devised that invalidates the automatic opening/closing operation of the window until the opening/closing position of the window is reset. However, with this technology, the automatic opening/closing operation of the window is invalidated every time the number of times of operation exceeds a predetermined number, so that the window cannot be opened/closed as the user thinks and the user is bothered. There is a risk of giving.

一実施形態の開閉システムは、開閉部材の開閉動作を制御する開閉システムであって、スイッチと、開閉部材を開閉動作させるモータと、スイッチから出力される操作信号に応じて、モータを制御する制御装置とを備え、制御装置は、スイッチの操作回数を計数する計数部と、モータの回転軸の回転量を検出する回転量検出部と、開閉部材の閉動作におけるロックを検出するロック検出部と、回転量に基づいて、開閉部材の開閉位置を算出する位置算出部と、操作回数に応じた開閉位置の誤差Δを算出する誤差算出部と、ロックが検出された場合において、式{x<(b−Δ)}を満たす場合、開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、開閉部材を反転動作させるモータ制御部とを備える。但し、xは、全閉位置から開閉部材の上端部までの距離に応じた開閉部材の開閉位置を表し、bは、全閉位置から非反転領域の下端部までの距離を表す。 An opening/closing system according to an embodiment is an opening/closing system that controls opening/closing operations of an opening/closing member, and includes a switch, a motor for opening/closing the opening/closing member, and a control for controlling a motor according to an operation signal output from the switch. The control device includes a device, a counting unit that counts the number of times the switch is operated, a rotation amount detection unit that detects the rotation amount of the rotation shaft of the motor, and a lock detection unit that detects a lock during the closing operation of the opening/closing member. , A position calculation unit that calculates the open/closed position of the open/close member based on the rotation amount, an error calculation unit that calculates the error Δ of the open/closed position according to the number of operations, and a formula {x< When (b−Δ)} is satisfied, the opening/closing member is closed to the fully closed position, and when the expression {x>(b+Δ)} is satisfied, the opening/closing member is reversed. However, x represents the opening/closing position of the opening/closing member according to the distance from the fully closed position to the upper end of the opening/closing member, and b represents the distance from the fully closed position to the lower end of the non-inverting region.

一実施形態によれば、ユーザに煩わしさを与えてしまうことを抑制することができる。 According to one embodiment, it is possible to prevent the user from being bothered.

本発明の一実施形態に係る開閉システムのシステム構成を示す図The figure which shows the system configuration of the opening/closing system which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンのハードウェア構成を示す図The figure which shows the hardware constitutions of the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンの機能構成を示す図The figure which shows the function structure of the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンによる制御方法の手順の第1例を示すフローチャート1 is a flowchart showing a first example of procedures of a control method by a microcomputer according to an embodiment of the present invention. 本発明の一実施形態に係るマイコンの制御による窓の開閉動作の一例を示す図The figure which shows an example of the opening/closing operation of the window by control of the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンによる制御方法の手順の第2例を示すフローチャートThe flowchart which shows the 2nd example of the procedure of the control method by the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンによる制御方法の手順の第3例を示すフローチャート3 is a flowchart showing a third example of the procedure of the control method by the microcomputer according to the embodiment of the present invention. 本発明の一実施形態に係るマイコンによる制御方法の手順の第4例を示すフローチャートThe flowchart which shows the 4th example of the procedure of the control method by the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 3 is a diagram showing an example of calculating an error Δ by a microcomputer according to an embodiment of the present invention. 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 3 is a diagram showing an example of calculating an error Δ by a microcomputer according to an embodiment of the present invention. 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 3 is a diagram showing an example of calculating an error Δ by a microcomputer according to an embodiment of the present invention. 本発明の一実施形態に係るマイコンによる制御方法の手順の第5例を示すフローチャートThe flowchart which shows the 5th example of the procedure of the control method by the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマイコンによるモータの駆動電圧の制御プロファイルの一例を示す図The figure which shows an example of the control profile of the drive voltage of the motor by the microcomputer which concerns on one Embodiment of this invention. 本発明の一実施形態に係る開閉システムにおけるバッテリ電圧とバックラッシュの発生量との関係を表す図The figure showing the relationship between the battery voltage and the backlash generation amount in the switching system according to the embodiment of the present invention.

以下、図面を参照して、一実施形態について説明する。 An embodiment will be described below with reference to the drawings.

(開閉システム1のシステム構成)
図1は、本発明の一実施形態に係る開閉システム1のシステム構成を示す図である。図1に示す開閉システム1は、車両に設けられたパワーウインドウ装置50を制御するシステムであって、パワーウインドウ装置50が備えるモータ54の動作を制御することにより、パワーウインドウ装置50が備える窓52(「開閉部材」の一例)の開閉動作を制御するシステムである。
(System configuration of opening/closing system 1)
FIG. 1 is a diagram showing a system configuration of an opening/closing system 1 according to an embodiment of the present invention. The opening/closing system 1 shown in FIG. 1 is a system for controlling a power window device 50 provided in a vehicle. By controlling the operation of a motor 54 provided in the power window device 50, a window 52 provided in the power window device 50. It is a system for controlling the opening/closing operation of (an example of an "opening/closing member").

図1に示すように、窓52は、車両が備えるドア2の窓枠2Aに対して、上下方向に開閉自在に設けられる。なお、開閉システム1は、車両が複数のドア2の各々にパワーウインドウ装置50を備える場合、図1に示す各構成部を、各パワーウインドウ装置50に対して設けることにより、複数のパワーウインドウ装置50の各々に対して、同様の制御を行うことが可能である。 As shown in FIG. 1, the window 52 is provided so as to be openable and closable in the vertical direction with respect to the window frame 2A of the door 2 provided in the vehicle. In addition, when the vehicle includes the power window device 50 in each of the plurality of doors 2, the opening/closing system 1 includes a plurality of power window devices by providing each component shown in FIG. 1 for each power window device 50. Similar control can be performed for each of the 50.

図1に示すように、開閉システム1は、モータ駆動回路10、電圧検出回路20、電流検出回路30、スイッチ40、およびマイコン100を備える。 As shown in FIG. 1, the switching system 1 includes a motor drive circuit 10, a voltage detection circuit 20, a current detection circuit 30, a switch 40, and a microcomputer 100.

スイッチ40は、ユーザにより、窓52を開閉するためのスイッチ操作がなされる装置である。例えば、スイッチ40は、車両におけるユーザによる操作可能な位置(例えば、ドア、センターコンソール等)に設けられている。スイッチ40は、開操作、自動開操作、閉操作、および自動閉動作が可能である。スイッチ40は、ユーザによりいずれかの操作がなされると、当該操作に応じた操作信号をマイコン100へ出力する。 The switch 40 is a device that is operated by a user to open and close the window 52. For example, the switch 40 is provided at a position (for example, a door, a center console, etc.) that can be operated by the user in the vehicle. The switch 40 can perform an opening operation, an automatic opening operation, a closing operation, and an automatic closing operation. When the user performs any operation, the switch 40 outputs an operation signal corresponding to the operation to the microcomputer 100.

マイコン100は、「制御装置」および「コンピュータ」の一例である。マイコン100は、ユーザによってスイッチ40に対するスイッチ操作がなされると、当該スイッチ操作に応じて、モータ駆動回路10に制御信号を供給し、モータ54の動作を制御することにより、窓52を開閉動作させる。この際、マイコン100は、公知の判定技術により、窓52による挟み込みが生じているか否かを判定することができる。そして、マイコン100は、窓52による挟み込みが生じていると判定した場合、窓52に対する所定の挟み込み防止制御を行うことができる。 The microcomputer 100 is an example of a “control device” and a “computer”. When the user performs a switch operation on the switch 40, the microcomputer 100 supplies a control signal to the motor drive circuit 10 according to the switch operation to control the operation of the motor 54 to open/close the window 52. .. At this time, the microcomputer 100 can determine whether the pinch by the window 52 has occurred by a known determination technique. When the microcomputer 100 determines that the window 52 is pinched, the microcomputer 100 can perform predetermined pinch prevention control on the window 52.

モータ駆動回路10は、マイコン100から供給される制御信号に応じて、モータ54に駆動電圧を印加することにより、モータ54を駆動する。図1に示す例では、モータ駆動回路10は、フルブリッジ回路を構成する4つのスイッチ素子11〜14を備えて構成されている。スイッチ素子11およびスイッチ素子12は、バッテリの出力電圧Vbとグラウンドとの間において、直列接続されて設けられている。スイッチ素子13およびスイッチ素子14は、バッテリの出力電圧Vbとグラウンドとの間において、直列接続され、且つ、スイッチ素子11およびスイッチ素子12と並列に設けられている。スイッチ素子11とスイッチ素子12との間には、モータ54の一方の入力端子が接続されている。スイッチ素子13とスイッチ素子14との間には、モータ54の他方の入力端子が接続されている。モータ駆動回路10は、マイコン100から供給される制御信号に応じて、4つのスイッチ素子11〜14のスイッチング動作を制御することにより、モータ54の2つの入力端子に対して、モータ54の回転軸の回転方向(すなわち、窓52の開閉動作方向)に応じて極性が異なる駆動電圧を印加することができる。 The motor drive circuit 10 drives the motor 54 by applying a drive voltage to the motor 54 according to a control signal supplied from the microcomputer 100. In the example shown in FIG. 1, the motor drive circuit 10 includes four switch elements 11 to 14 that form a full bridge circuit. The switch element 11 and the switch element 12 are connected in series between the output voltage Vb of the battery and the ground. The switch element 13 and the switch element 14 are connected in series between the output voltage Vb of the battery and the ground, and are provided in parallel with the switch element 11 and the switch element 12. One input terminal of the motor 54 is connected between the switch element 11 and the switch element 12. The other input terminal of the motor 54 is connected between the switch element 13 and the switch element 14. The motor drive circuit 10 controls the switching operation of the four switch elements 11 to 14 according to the control signal supplied from the microcomputer 100, so that the rotary shaft of the motor 54 is connected to the two input terminals of the motor 54. Drive voltages having different polarities can be applied in accordance with the rotation direction (that is, the opening/closing operation direction of the window 52 ).

モータ54は、2つの入力端子に対して印加される駆動電圧の極性に応じた回転方向に、回転軸が回転する。これにより、モータ54は、窓52を開閉する。モータ54としては、例えば、DCモータが用いられる。 The motor 54 has a rotation shaft that rotates in a rotation direction according to the polarities of drive voltages applied to the two input terminals. As a result, the motor 54 opens and closes the window 52. As the motor 54, for example, a DC motor is used.

電圧検出回路20は、バッテリの出力電圧Vbを検出し、バッテリの出力電圧Vbを表す電圧信号を出力する。図1に示す例では、電圧検出回路20は、増幅部21およびA/Dコンバータ23を有して構成されている。増幅部21は、バッテリの出力電圧Vbを所定のゲインで増幅する。A/Dコンバータ23は、増幅部21から出力される電圧を表すデジタル信号を、バッテリの出力電圧Vbを表す信号として出力する。 The voltage detection circuit 20 detects the output voltage Vb of the battery and outputs a voltage signal representing the output voltage Vb of the battery. In the example shown in FIG. 1, the voltage detection circuit 20 includes an amplification unit 21 and an A/D converter 23. The amplifier 21 amplifies the output voltage Vb of the battery with a predetermined gain. The A/D converter 23 outputs a digital signal representing the voltage output from the amplifier 21 as a signal representing the output voltage Vb of the battery.

電流検出回路30は、「電流検出手段」の一例であり、モータ54を流れる電流Imを検出し、モータ54を流れる電流Imを表す電流信号を出力する。図1に示す例では、電流検出回路30は、シャント抵抗RS、増幅部31、フィルタ部32、およびA/Dコンバータ33を有して構成されている。シャント抵抗RSは、モータ駆動回路10とグラウンドとの間の電流経路に設けられている。増幅部31は、シャント抵抗RSに生じる電圧を所定のゲインで増幅する。フィルタ部32は、増幅部31から出力される電圧からスイッチング周波数の成分を除去する。A/Dコンバータ33は、フィルタ部32から出力される電圧を表すデジタル信号を、モータ54を流れる電流Imを表す信号として出力する。 The current detection circuit 30 is an example of “current detection means”, detects the current Im flowing through the motor 54, and outputs a current signal representing the current Im flowing through the motor 54. In the example shown in FIG. 1, the current detection circuit 30 includes a shunt resistor RS, an amplification unit 31, a filter unit 32, and an A/D converter 33. The shunt resistor RS is provided in the current path between the motor drive circuit 10 and the ground. The amplifier 31 amplifies the voltage generated in the shunt resistor RS with a predetermined gain. The filter unit 32 removes the switching frequency component from the voltage output from the amplification unit 31. The A/D converter 33 outputs a digital signal representing the voltage output from the filter unit 32 as a signal representing the current Im flowing through the motor 54.

(マイコン100のハードウェア構成)
図2は、本発明の一実施形態に係るマイコン100のハードウェア構成を示す図である。図2に示すように、マイコン100は、CPU(Central Processing Unit)121、ROM(Read Only Memory)122、RAM(Random Access Memory)123、および外部I/F(Interface)125を備える。各ハードウェアは、バス126を介して相互に接続されている。
(Hardware configuration of the microcomputer 100)
FIG. 2 is a diagram showing a hardware configuration of the microcomputer 100 according to the embodiment of the present invention. As shown in FIG. 2, the microcomputer 100 includes a CPU (Central Processing Unit) 121, a ROM (Read Only Memory) 122, a RAM (Random Access Memory) 123, and an external I/F (Interface) 125. The hardware is connected to each other via a bus 126.

CPU121は、ROM122に記憶されている各種プログラムを実行することにより、マイコン100の動作を制御する。ROM122は、不揮発性メモリである。例えば、ROM122は、CPU121により実行されるプログラム、CPU121がプログラムを実行するために必要なデータ等を記憶する。RAM123は、DRAM(Dynamic Random Access Memory)やSRAM(Static Random Access Memory)等の主記憶装置である。例えば、RAM123は、CPU121がプログラムを実行する際に利用する作業領域として機能する。外部I/F125は、モータ駆動回路10、電圧検出回路20、電流検出回路30、およびスイッチ40に対するデータの入出力を制御する。 The CPU 121 controls the operation of the microcomputer 100 by executing various programs stored in the ROM 122. The ROM 122 is a non-volatile memory. For example, the ROM 122 stores a program executed by the CPU 121, data necessary for the CPU 121 to execute the program, and the like. The RAM 123 is a main storage device such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory). For example, the RAM 123 functions as a work area used when the CPU 121 executes a program. The external I/F 125 controls input/output of data with respect to the motor drive circuit 10, the voltage detection circuit 20, the current detection circuit 30, and the switch 40.

(マイコン100の機能構成)
図3は、本発明の一実施形態に係るマイコン100の機能構成を示す図である。図3に示すように、マイコン100は、操作信号取得部101、電圧値取得部102、電流値取得部103、回転量検出部104、位置算出部105、回転負荷算出部106、ロック検出部107、計数部108、誤差算出部109、およびモータ制御部110を備える。
(Functional configuration of the microcomputer 100)
FIG. 3 is a diagram showing a functional configuration of the microcomputer 100 according to the embodiment of the present invention. As illustrated in FIG. 3, the microcomputer 100 includes an operation signal acquisition unit 101, a voltage value acquisition unit 102, a current value acquisition unit 103, a rotation amount detection unit 104, a position calculation unit 105, a rotation load calculation unit 106, and a lock detection unit 107. The counter 108, the error calculator 109, and the motor controller 110.

なお、図3に示すマイコン100の各機能は、例えば、マイコン100において、ROM122に記憶されたプログラムを、CPU121が実行することにより実現される。このプログラムは、予めマイコン100に導入された状態で提供されてもよく、外部から提供されてマイコン100に導入されるようにしてもよい。後者の場合、このプログラムは、外部記憶媒体(例えば、USBメモリ、メモリカード、CD−ROM等)によって提供されてもよく、ネットワーク(例えば、インターネット等)上のサーバからダウンロードすることによって提供されるようにしてもよい。 Note that each function of the microcomputer 100 shown in FIG. 3 is realized by the CPU 121 executing a program stored in the ROM 122 in the microcomputer 100, for example. This program may be provided in a state of being installed in the microcomputer 100 in advance, or may be provided from the outside and installed in the microcomputer 100. In the latter case, this program may be provided by an external storage medium (eg, USB memory, memory card, CD-ROM, etc.), or by being downloaded from a server on a network (eg, the Internet). You may do it.

操作信号取得部101は、スイッチ40から出力された操作信号を取得する。例えば、スイッチ40は、開操作、自動開操作、閉操作、および自動閉動作が可能である。ユーザによってスイッチ40のいずれかの操作がなされた場合、スイッチ40は、当該操作に応じた操作信号を出力する。そして、操作信号取得部101は、スイッチ40から出力された操作信号を取得する。 The operation signal acquisition unit 101 acquires the operation signal output from the switch 40. For example, the switch 40 can perform an opening operation, an automatic opening operation, a closing operation, and an automatic closing operation. When the user operates any of the switches 40, the switch 40 outputs an operation signal corresponding to the operation. Then, the operation signal acquisition unit 101 acquires the operation signal output from the switch 40.

電圧値取得部102は、電圧検出回路20から出力された、バッテリの出力電圧Vbを示す電圧信号を取得する。電流値取得部103は、電流検出回路30から出力された、モータ54を流れる電流Imを示す電流信号を取得する。 The voltage value acquisition unit 102 acquires the voltage signal output from the voltage detection circuit 20 and indicating the output voltage Vb of the battery. The current value acquisition unit 103 acquires the current signal output from the current detection circuit 30 and indicating the current Im flowing through the motor 54.

回転量検出部104は、電流値取得部103によって取得された電流信号に基づいて、モータ54の回転軸の回転量を検出する。具体的には、回転量検出部104は、電流値取得部103によって取得された電流信号に基づいて、モータ54を流れる電流Imに含まれる、予め求められた周波数成分の信号を、リップル成分として検出する。リップル成分は、モータ54の回転軸が一定の角度回転する毎に、モータ54を流れる電流Imに生じるものである。このため、回転量検出部104は、モータ54を流れる電流Imに含まれるリップル成分の発生数に基づいて、モータ54の回転軸の回転量を検出することができる。なお、本実施形態では、リップル成分の発生数を、そのままモータ54の回転軸の回転量を表す値として用いている。 The rotation amount detection unit 104 detects the rotation amount of the rotation shaft of the motor 54 based on the current signal acquired by the current value acquisition unit 103. Specifically, the rotation amount detection unit 104, based on the current signal acquired by the current value acquisition unit 103, a signal of a frequency component that is included in the current Im flowing through the motor 54 and is obtained in advance as a ripple component. To detect. The ripple component is generated in the current Im flowing through the motor 54 every time the rotating shaft of the motor 54 rotates by a certain angle. Therefore, the rotation amount detection unit 104 can detect the rotation amount of the rotation shaft of the motor 54 based on the number of ripple components included in the current Im flowing through the motor 54. In this embodiment, the number of generated ripple components is used as it is as a value representing the rotation amount of the rotation shaft of the motor 54.

位置算出部105は、回転量検出部104によって検出されたモータ54の回転軸の回転量(本実施形態では、リップル成分の発生数によって表される)に基づいて、窓52の開閉位置(窓枠2A内における高さ位置)を算出する。例えば、本実施形態では、窓52の移動量は、モータ54の回転軸の回転量(すなわち、リップル成分の発生数)に比例する。そこで、本実施形態では、リップル成分のカウント値を、そのまま窓の開閉位置を表す値として用いている。具体的には、本実施形態では、窓52の全閉位置にあるときに、窓52の開閉位置を表すリップル成分のカウント値を「0」とし、窓52が開動作に伴って下方に移動するにつれて、窓52の開閉位置を表すリップル成分のカウント値が、徐々に増加するようにしている。位置算出部105は、開閉動作前の窓52の開閉位置を表すリップル成分のカウント値から、開閉動作中に生じたリップル成分の発生数を加算(開動作の場合)または減算(閉動作の場合)することにより、開閉動作後の窓52の開閉位置を表すリップル成分のカウント値を算出することができる。このため、位置算出部105は、開閉動作後の窓52の開閉位置を表すリップル成分のカウント値を算出する毎に、当該カウント値を、マイコン100が備えるメモリに記憶させておく。 The position calculation unit 105, based on the rotation amount of the rotation shaft of the motor 54 detected by the rotation amount detection unit 104 (in the present embodiment, represented by the number of generated ripple components), the opening/closing position of the window 52 (window The height position in the frame 2A) is calculated. For example, in the present embodiment, the movement amount of the window 52 is proportional to the rotation amount of the rotation shaft of the motor 54 (that is, the number of ripple components generated). Therefore, in the present embodiment, the count value of the ripple component is used as it is as a value indicating the opening/closing position of the window. Specifically, in the present embodiment, when the window 52 is at the fully closed position, the count value of the ripple component representing the open/closed position of the window 52 is set to “0”, and the window 52 moves downward along with the opening operation. The count value of the ripple component representing the open/closed position of the window 52 is gradually increased. The position calculation unit 105 adds (in the case of opening operation) or subtracts (in the case of closing operation) the number of ripple components generated during the opening/closing operation from the count value of the ripple component representing the opening/closing position of the window 52 before the opening/closing operation. By doing so, the count value of the ripple component representing the open/close position of the window 52 after the open/close operation can be calculated. Therefore, every time the position calculation unit 105 calculates the count value of the ripple component representing the open/closed position of the window 52 after the opening/closing operation, the count value is stored in the memory included in the microcomputer 100.

なお、位置算出部105は、窓52が全閉位置に達したとき、および、窓52が全開位置に達したとき、窓52の開閉位置をリセットする。具体的には、位置算出部105は、窓52が全閉位置に達したとき、窓52の開閉位置を表すリップル成分のカウント値に「0」を設定する。また、位置算出部105は、窓52が全開位置に達したとき、窓52の開閉位置を表すリップル成分のカウント値に、所定の最大値を設定する。これにより、位置算出部105は、窓52の開閉位置の誤差Δをリセットすることができる。なお、窓52が全閉位置に達したとき、および、窓52が全開位置に達したとき、同時に、計数部108は、スイッチ40の操作回数Nに0を設定することにより、スイッチ40の操作回数Nをリセットする。これにより、誤差算出部109によって操作回数Nに応じて算出される誤差Δもリセットされる。 The position calculation unit 105 resets the open/closed position of the window 52 when the window 52 reaches the fully closed position and when the window 52 reaches the fully opened position. Specifically, when the window 52 reaches the fully closed position, the position calculation unit 105 sets “0” to the count value of the ripple component indicating the open/closed position of the window 52. Further, when the window 52 reaches the fully opened position, the position calculation unit 105 sets a predetermined maximum value as the count value of the ripple component representing the open/closed position of the window 52. Accordingly, the position calculation unit 105 can reset the error Δ of the opening/closing position of the window 52. When the window 52 reaches the fully closed position and when the window 52 reaches the fully open position, the counting unit 108 sets the operation number N of the switch 40 to 0, thereby operating the switch 40. The number of times N is reset. As a result, the error Δ calculated by the error calculation unit 109 according to the number of operations N is also reset.

回転負荷算出部106は、電流値取得部103によって取得された電流信号に基づいて、モータ54の回転軸の回転負荷を算出する。本実施形態では、回転負荷算出部106は、モータ54の回転軸の回転負荷を表す値として、モータ54の駆動トルクτを算出する。モータ54の回転軸の回転負荷が高まれば、モータ54の駆動トルクτが高まるからである。例えば、回転負荷算出部106は、電流値取得部103によって取得された電流信号によって特定される、電流検出回路30によって検出されたモータ54を流れる電流Imに基づいて、式{τ=Kt×Im−Tm}により、モータ54の駆動トルクτを算出する。但し、KtおよびTmは、モータ54に固有の定数である。 The rotational load calculation unit 106 calculates the rotational load of the rotating shaft of the motor 54 based on the current signal acquired by the current value acquisition unit 103. In the present embodiment, the rotational load calculation unit 106 calculates the drive torque τ of the motor 54 as a value representing the rotational load of the rotary shaft of the motor 54. This is because the driving torque τ of the motor 54 increases as the rotational load on the rotating shaft of the motor 54 increases. For example, the rotational load calculation unit 106 calculates the expression {τ=Kt×Im based on the current Im flowing through the motor 54 detected by the current detection circuit 30 which is specified by the current signal acquired by the current value acquisition unit 103. The driving torque τ of the motor 54 is calculated from −Tm}. However, Kt and Tm are constants specific to the motor 54.

ロック検出部107は、窓52の閉動作におけるロックを検出する。例えば、ロック検出部107は、回転負荷算出部106によって算出されたモータ54の駆動トルクτが所定の閾値以上の場合、「窓52の閉動作がロックした」と判断する。ロック検出部107は、モータ制御部110がモータ54を制御しているにも関わらず、窓52の位置が所定時間以上変化しない場合、「窓52の閉動作がロックした」と判断するようにしてもよい。 The lock detector 107 detects a lock when the window 52 is closed. For example, the lock detection unit 107 determines that “the closing operation of the window 52 is locked” when the driving torque τ of the motor 54 calculated by the rotational load calculation unit 106 is equal to or larger than a predetermined threshold. The lock detection unit 107 determines that “the closing operation of the window 52 is locked” when the position of the window 52 does not change for a predetermined time or longer even though the motor control unit 110 controls the motor 54. May be.

計数部108は、スイッチ40の操作回数Nを計数する。例えば、計数部108は、スイッチ40の操作回数Nを記憶しておき、操作信号取得部101によって操作信号が取得される毎に、操作回数Nに1を加算する。 The counting unit 108 counts the number of times N the switch 40 has been operated. For example, the counting unit 108 stores the number of operations N of the switch 40, and adds 1 to the number of operations N each time the operation signal acquisition unit 101 acquires an operation signal.

誤差算出部109は、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する。例えば、誤差算出部109は、下記数式(1)により、窓52の開閉位置の誤差Δを算出する。但し、σは、スイッチ40の操作1回あたりの窓52の開閉位置の誤差の標準偏差を表し、C,Dは、所定の定数を表す。 The error calculator 109 calculates an error Δ in the opening/closing position of the window 52 according to the number of times N the switch 40 has been operated. For example, the error calculation unit 109 calculates the error Δ of the opening/closing position of the window 52 by the following mathematical expression (1). Here, σ represents the standard deviation of the error in the opening/closing position of the window 52 per operation of the switch 40, and C and D represent predetermined constants.

Figure 2020125671
Figure 2020125671

これに限らず、誤差算出部109は、下記数式(2),(3)、または、その他の数式(少なくとも操作回数Nが増加するにつれて、誤差Δが増加するもの)により、窓52の開閉位置の誤差Δを算出してもよい。 Not limited to this, the error calculation unit 109 uses the following mathematical expressions (2) and (3) or other mathematical expressions (at least, the error Δ increases as the number of operations N increases) to open and close the window 52. The error Δ of may be calculated.

Δ=D・N・・・(2) Δ=D・N・・・(2)

Δ=C・N^D・・・(3) Δ=C·N^D (3)

モータ制御部110は、操作信号取得部101によって取得された操作信号に応じて、モータ駆動回路10へ制御信号を供給してモータ54を制御することにより、窓52の開閉動作を制御する。 The motor control unit 110 controls the opening/closing operation of the window 52 by supplying a control signal to the motor drive circuit 10 and controlling the motor 54 according to the operation signal acquired by the operation signal acquisition unit 101.

例えば、モータ制御部110は、操作信号取得部101によって窓52の閉操作に応じた操作信号(以下、「閉操作信号」と示す)が取得された場合、スイッチ40の閉操作がなされている間、モータ54の回転軸を第1の方向(窓を閉める方向)に回転させるための制御信号をモータ駆動回路10へ供給することにより、窓52を閉動作させる。 For example, the motor control unit 110 performs the closing operation of the switch 40 when the operation signal acquiring unit 101 acquires an operation signal corresponding to the closing operation of the window 52 (hereinafter, referred to as “closing operation signal”). Meanwhile, the window 52 is closed by supplying a control signal for rotating the rotating shaft of the motor 54 in the first direction (direction for closing the window) to the motor drive circuit 10.

また、モータ制御部110は、操作信号取得部101によって窓52の開操作に応じた操作信号(以下、「開操作信号」と示す)が取得された場合、スイッチ40の開操作がなされている間、モータ54の回転軸を第1の方向とは反対方向である第2の方向(窓を閉める方向とは反対方向である窓を開ける方向)に回転させるための制御信号をモータ駆動回路10へ供給することにより、窓52を開動作させる。 Further, the motor control unit 110 performs the opening operation of the switch 40 when the operation signal acquisition unit 101 acquires an operation signal corresponding to the opening operation of the window 52 (hereinafter, referred to as an “open operation signal”). During this period, a control signal for rotating the rotation shaft of the motor 54 in the second direction (the direction of opening the window, which is the opposite direction to the direction of closing the window) opposite to the first direction is supplied to the motor drive circuit 10. To open the window 52.

また、モータ制御部110は、操作信号取得部101によって窓52の自動閉操作に応じた操作信号(以下、「自動閉操作信号」と示す)が取得された場合、窓52が全閉状態となるまでの間、モータ54の回転軸を第1の方向(窓を閉める方向)に回転させるための制御信号をモータ駆動回路10へ供給することにより、窓52を自動閉動作させる。 Further, when the operation signal acquisition unit 101 acquires an operation signal corresponding to the automatic closing operation of the window 52 (hereinafter, referred to as “automatic closing operation signal”), the motor control unit 110 determines that the window 52 is in the fully closed state. Until then, the control signal for rotating the rotation shaft of the motor 54 in the first direction (direction for closing the window) is supplied to the motor drive circuit 10 to automatically close the window 52.

また、モータ制御部110は、操作信号取得部101によって窓52の自動開操作に応じた操作信号(以下、「自動開操作信号」と示す)が取得された場合、窓52が全開状態となるまでの間、モータ54の回転軸を第2の方向(窓を開ける方向)に回転させるための制御信号をモータ駆動回路10へ供給することにより、窓52を自動開動作させる。 Further, when the operation signal acquisition unit 101 acquires an operation signal corresponding to the automatic opening operation of the window 52 (hereinafter, referred to as an “automatic opening operation signal”), the motor control unit 110 causes the window 52 to be in a fully opened state. Until then, the window 52 is automatically opened by supplying a control signal for rotating the rotation shaft of the motor 54 in the second direction (direction for opening the window) to the motor drive circuit 10.

例えば、モータ制御部110は、電圧値取得部102によって取得されたバッテリの出力電圧Vbに基づいて実効電圧値Veを算出し、当該実効電圧値Veの駆動電圧を、モータ駆動回路10を介してモータ54に印加することにより、モータ54の出力を制御する。 For example, the motor control unit 110 calculates the effective voltage value Ve based on the output voltage Vb of the battery acquired by the voltage value acquisition unit 102, and outputs the drive voltage of the effective voltage value Ve via the motor drive circuit 10. By applying to the motor 54, the output of the motor 54 is controlled.

なお、モータ制御部110は、窓52が閉動作を行っているときに、ロック検出部107によってロックが検出され、且つ窓が非反転領域にある場合、窓52を反転動作させる。但し、モータ制御部110は、窓52の開閉位置が非反転領域内にある場合、ロック検出部107によってロックが検出された場合であっても、窓52を反転動作させない。このロックは、窓52がウェザーストリップに当接することによって生じたものと考えられるからである。なお、非反転領域とは、全閉位置から下方に所定幅を有して設けられた領域であり、挟み込み防止制御を行わない領域である。 The motor control unit 110 causes the window 52 to reverse when the lock is detected by the lock detection unit 107 while the window 52 is closing and the window is in the non-reversal region. However, the motor control unit 110 does not invert the window 52 even when the open/close position of the window 52 is in the non-inversion region and the lock is detected by the lock detection unit 107. It is considered that this lock is caused by the window 52 coming into contact with the weather strip. The non-inverting region is a region provided below the fully closed position with a predetermined width, and is a region in which the entrapment prevention control is not performed.

ここで、本実施形態では、モータ制御部110は、ロック検出部107によってロックが検出されたとき、窓52の開閉位置の誤差Δを考慮して、窓52の開閉動作を制御する。 Here, in the present embodiment, the motor control unit 110 controls the opening/closing operation of the window 52 in consideration of the error Δ of the opening/closing position of the window 52 when the lock is detected by the lock detection unit 107.

例えば、モータ制御部110は、ロック検出部107によってロックが検出されたとき、式{x<(b−Δ)}を満たす場合、窓52を全閉位置まで閉動作させる。 For example, when the lock is detected by the lock detection unit 107, the motor control unit 110 closes the window 52 to the fully closed position when the expression {x<(b−Δ)} is satisfied.

また、例えば、モータ制御部110は、ロック検出部107によってロックが検出されたとき、式{x>(b+Δ)}を満たす場合、窓52を反転動作させる。 In addition, for example, when the lock is detected by the lock detection unit 107, the motor control unit 110 causes the window 52 to perform an inversion operation when the expression {x>(b+Δ)} is satisfied.

また、例えば、モータ制御部110は、ロック検出部107によってロックが検出されたとき、式{x≧(b−Δ)}および式{x≦(b+Δ)}の双方を満たす場合、窓52を反転動作させるとともに、以降の窓52の自動閉動作を禁止する。 Further, for example, when the lock detection unit 107 detects the lock, the motor control unit 110 opens the window 52 when both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)} are satisfied. The reverse operation is performed and the subsequent automatic closing operation of the window 52 is prohibited.

上記各式において、xは、窓52の開閉位置を表すリップル成分のカウント数を表し、bは、全閉位置から非反転領域の下端までの距離(すなわち、非反転領域の上下幅)を表し、Δは、誤差算出部109によって算出された窓52の開閉位置の誤差を表す。 In each of the above equations, x represents the number of ripple component counts indicating the opening/closing position of the window 52, and b represents the distance from the fully closed position to the lower end of the non-inverting region (that is, the vertical width of the non-inverting region). , Δ represent the error of the opening/closing position of the window 52 calculated by the error calculating unit 109.

なお、窓52の全閉位置(すなわち、リップル成分のカウント値を0とする位置)は、窓52の窓枠2Aの上端に備わっているウェザーストリップ(図示省略)へのくい込み量によって変動し得る。このため、例えば、窓52の全閉位置は、窓52の上端部がウェザーストリップの溝内に所定量(例えば、最小量、最大量、平均量等)くい込んだときの、窓52の上端部の位置とするようにしてもよい。この際、窓52の全閉位置は、窓52毎に、個体差に応じた適切な値が設定されることが好ましい。 Note that the fully closed position of the window 52 (that is, the position where the count value of the ripple component is 0) may vary depending on the amount of biting into the weather strip (not shown) provided at the upper end of the window frame 2A of the window 52. .. Therefore, for example, the fully closed position of the window 52 is defined as the upper end portion of the window 52 when the upper end portion of the window 52 bites into the groove of the weather strip by a predetermined amount (eg, minimum amount, maximum amount, average amount, etc.). The position may be set to. At this time, the fully closed position of the window 52 is preferably set to an appropriate value according to individual difference for each window 52.

また、非反転領域の下端部までの距離bも、窓52のウェザーストリップへのくい込み量によって変動し得る。例えば、距離bは、窓52の上端部とウェザーストリップの下端部との間で所定の厚さ(例えば、4mm)の物体を挟み込んだ状態で、ウェザーストリップが所定量(例えば、最小量、最大量、平均量等)押し潰されたときの、窓52の上端部の位置とするようにしてもよい。なお、bは、窓52毎に、個体差に応じた適切な値が設定されることが好ましい。 Further, the distance b to the lower end of the non-inverted region may also change depending on the amount of the window 52 biting into the weather strip. For example, the distance b is set such that the weather strip has a predetermined amount (for example, a minimum amount, a maximum amount, or the like) with an object having a predetermined thickness (for example, 4 mm) sandwiched between the upper end of the window 52 and the lower end of the weather strip. (Large amount, average amount, etc.) The position of the upper end of the window 52 when crushed may be set. It is preferable that b is set to an appropriate value for each window 52 according to the individual difference.

なお、操作回数Nが所定回数に達した場合、または、式{Δ>b}を満たした場合、モータ制御部110が、窓52を全開位置まで開動作させるとともに、計数部108が、操作回数Nをリセットし、位置算出部105が、開閉位置xをリセットするようにしてもよい。 When the number of operations N reaches a predetermined number, or when the expression {Δ>b} is satisfied, the motor control unit 110 opens the window 52 to the fully open position, and the counting unit 108 causes the number of operations to be performed. N may be reset and the position calculation unit 105 may reset the open/close position x.

ここで、窓52が自動閉動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、操作回数Nおよび開閉位置xがリセットされた後、窓52を全閉位置まで閉動作させるようにしてもよい。 Here, when the expression {Δ>b} is satisfied while the window 52 is performing the automatic closing operation, the motor control unit 110 causes the window 52 to open to the fully open position, and the number of operations N and the opening/closing position. The window 52 may be closed to the fully closed position after x is reset.

また、窓52が自動開閉動作以外の開閉動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、その時の窓52の移動量ΔPを記憶しておき、操作回数Nおよび開閉位置xがリセットされた後、窓52をΔP分戻すことにより、窓52を当該開閉動作の開始時の位置まで復帰させるようにしてもよい。 If the expression {Δ>b} is satisfied when the window 52 is performing an opening/closing operation other than the automatic opening/closing operation, the motor control unit 110 causes the window 52 to open to the fully open position, and the window at that time is opened. The movement amount ΔP of 52 is stored, and after the number of operations N and the opening/closing position x are reset, the window 52 is returned by ΔP so that the window 52 is returned to the position at the start of the opening/closing operation. Good.

また、窓52が自動開動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、操作回数Nおよび開閉位置xがリセットされた後、窓52をそのまま全開位置まで留めておくようにしてもよい。 In addition, when the expression {Δ>b} is satisfied while the window 52 is performing the automatic opening operation, the motor control unit 110 opens the window 52 to the fully open position, and the operation count N and the opening/closing position x. After the reset is performed, the window 52 may be retained in the fully open position as it is.

(マイコン100による制御方法の手順(第1例))
図4は、本発明の一実施形態に係るマイコン100による制御方法の手順の第1例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (first example))
FIG. 4 is a flowchart showing a first example of a procedure of a control method by the microcomputer 100 according to the embodiment of the present invention.

まず、マイコン100は、窓52の操作回数に応じた開閉位置の誤差Δに0を設定するとともに、スイッチ40の操作回数Nに0を設定する(ステップS401)。 First, the microcomputer 100 sets the error Δ of the opening/closing position according to the number of operations of the window 52 to 0, and also sets the number of operations N of the switch 40 to 0 (step S401).

次に、操作信号取得部101が、スイッチ40から自動閉操作信号を取得したか否かを判断する(ステップS402)。ステップS402において、「自動閉操作信号を取得していない」と判断された場合、(ステップS402:No)、マイコン100は、ステップS402の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether or not the automatic closing operation signal has been acquired from the switch 40 (step S402). When it is determined in step S402 that "the automatic closing operation signal has not been acquired" (step S402: No), the microcomputer 100 executes the process of step S402 again.

一方、ステップS402において、「自動閉操作信号を取得した」と判断された場合、(ステップS402:Yes)、計数部108が、操作回数Nに1を加算する(ステップS403)。 On the other hand, when it is determined in step S402 that “the automatic closing operation signal has been acquired” (step S402: Yes), the counting unit 108 adds 1 to the number of operations N (step S403).

次に、ロック検出部107が、窓52の閉動作におけるロックを検出したか否かを判断する(ステップS404)。 Next, the lock detector 107 determines whether or not the lock in the closing operation of the window 52 is detected (step S404).

ステップS404において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS404:No)、マイコン100は、ステップS404の判断処理を再度実行する。 When it is determined in step S404 that "the lock in the closing operation of the window 52 is not detected" (step S404: No), the microcomputer 100 executes the determination process of step S404 again.

一方、ステップS404において、「窓52の閉動作におけるロックを検出した」と判断された場合(ステップS404:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS405)。そして、誤差算出部109が、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する(ステップS406)。 On the other hand, when it is determined in step S404 that "the lock in the closing operation of the window 52 is detected" (step S404: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S405). Then, the error calculation unit 109 calculates the error Δ of the opening/closing position of the window 52 according to the number of times N the switch 40 has been operated (step S406).

続いて、モータ制御部110が、式{x<(b−Δ)}を満たすか否かを判断する(ステップS407)。 Subsequently, the motor control unit 110 determines whether or not the expression {x<(b−Δ)} is satisfied (step S407).

ステップS407において、「式{(x<(b−Δ)}を満たす」と判断された場合(ステップS407:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS408)。そして、マイコン100は、図4に示す一連の処理を終了する。 When it is determined in step S407 that “the expression {(x<(b−Δ)} is satisfied” (step S407: Yes), the motor control unit 110 closes the window 52 to the fully closed position (step S408). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS407において、「式{(x<(b−Δ)}を満たさない」と判断された場合(ステップS407:No)、モータ制御部110が、式{x>(b+Δ)}を満たすか否かを判断する(ステップS409)。 On the other hand, when it is determined in step S407 that the expression {(x<(b-Δ)} is not satisfied (step S407: No), the motor control unit 110 satisfies the expression {x>(b+Δ)}. It is determined whether or not (step S409).

ステップS409において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS409:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS410)。そして、マイコン100は、ステップS402へ処理を戻す。 When it is determined in step S409 that “the expression {(x>(b+Δ)} is satisfied” (step S409: Yes), the motor control unit 110 reverses the window 52 (step S410) and the microcomputer 100. Returns the process to step S402.

一方、ステップS409において、「式{(x>(b+Δ)}を満たさない」と判断された場合(ステップS409:No)、モータ制御部110が、窓52を反転動作させる(ステップS411)。また、モータ制御部110が、窓52の自動閉動作を禁止する(ステップS412)。そして、マイコン100は、ステップS402へ処理を戻す。 On the other hand, when it is determined in step S409 that “the expression {(x>(b+Δ)} is not satisfied” (step S409: No), the motor control unit 110 reverses the window 52 (step S411). The motor control unit 110 prohibits the automatic closing operation of the window 52 (step S412), and the microcomputer 100 returns the process to step S402.

この制御方法によれば、物体の挟み込みが生じているか否かを確定することが可能な領域で窓52がロックした場合、窓52を全閉位置まで閉動作させるか、または、窓52を反転動作させることができる。一方、この制御方法によれば、物体の挟み込みが生じているか否かを確定することが困難な領域で窓52がロックした場合、安全性を重視して、窓52を反転動作させるとともに、以降の自動閉動作を禁止することができる。この制御方法によれば、誤差が所定の値を超える度に窓の自動開閉動作を無効化するといった、従来の制御方法と比較して、安全性を損なうことなく、自動開閉動作を継続的に利用することができ、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 According to this control method, when the window 52 is locked in a region where it is possible to determine whether or not an object is pinched, the window 52 is closed to the fully closed position, or the window 52 is inverted. Can be operated. On the other hand, according to this control method, when the window 52 is locked in an area where it is difficult to determine whether or not an object is trapped, safety is emphasized and the window 52 is inverted, and thereafter, The automatic closing operation of can be prohibited. According to this control method, the automatic opening/closing operation of the window is invalidated every time the error exceeds a predetermined value, and the automatic opening/closing operation is continuously performed without impairing safety as compared with the conventional control method. Therefore, it is possible to prevent the user from being bothered.

(窓52の開閉動作の一例)
図5は、本発明の一実施形態に係るマイコン100の制御による窓52の開閉動作の一例を示す図である。図5において、x1〜x4は、それぞれ、窓52の閉動作がロックしたときの窓52の開閉位置xの第1例〜第4例を示す。また、図5において、非反転領域の下端部の位置bを基準として、上方に誤差Δを加えた位置から、下方に誤差Δを加えた位置までの範囲を、ハッチングを付して表している。
(Example of opening/closing operation of the window 52)
FIG. 5 is a diagram showing an example of the opening/closing operation of the window 52 under the control of the microcomputer 100 according to the embodiment of the present invention. In FIG. 5, x1 to x4 respectively indicate the first to fourth examples of the opening/closing position x of the window 52 when the closing operation of the window 52 is locked. Further, in FIG. 5, the range from the position where the error Δ is added upward to the position where the error Δ is added downward is hatched with reference to the position b at the lower end of the non-inversion region. ..

図5においてx1で示すように、窓52の上端部の位置xが、非反転領域の下端部の位置bを基準として上方に誤差Δを加えた位置よりも、さらに上方にある場合(すなわち、式{(x<(b−Δ)}を満たす場合)、モータ制御部110の制御により、窓52は、全閉位置まで閉動作する。この場合、誤差Δを考慮しても、物体の挟み込みが生じている可能性が低いと考えられるからである。 As shown by x1 in FIG. 5, when the position x of the upper end portion of the window 52 is further above the position where the error Δ is added upward with respect to the position b of the lower end portion of the non-inverting region (that is, The expression {(x<(b−Δ)} is satisfied), and the window 52 is closed to the fully closed position under the control of the motor control unit 110. In this case, even if the error Δ is taken into consideration, the object is pinched. This is because there is a low possibility that

また、図5においてx4で示すように、窓52の上端部の位置xが、非反転領域の下端部の位置bを基準として下方に誤差Δを加えた位置よりも、さらに下方にある場合(すなわち、式{(x>(b+Δ)}を満たす場合)、モータ制御部110の制御により、窓52は、反転動作する。この場合、誤差Δを考慮しても、物体の挟み込みが生じている可能性が高いと考えられるからである。 Further, as indicated by x4 in FIG. 5, when the position x of the upper end portion of the window 52 is lower than the position where the error Δ is added downward with reference to the position b of the lower end portion of the non-inversion area ( That is, when the expression {(x>(b+Δ)} is satisfied), the window 52 reverses under the control of the motor control unit 110. In this case, the object is pinched even if the error Δ is taken into consideration. This is because it is considered highly likely.

一方、図5においてx2,x3で示すように、窓52の上端部の位置xが、非反転領域の下端部の位置bを基準として、上方に誤差Δを加えた位置と、下方に誤差Δを加えた位置との範囲内にある場合、(すなわち、式{(x≧(b−Δ)}および式{(x≦(b+Δ)}の双方を満たす場合)、モータ制御部110の制御により、窓52は、反転動作するとともに、以降の自動閉動作が禁止される。この場合、誤差Δを考慮すると、物体の挟み込みが生じているか否かを確定することは困難であり、このため、安全性を重視して、窓52を反転動作させるとともに、以降の自動閉動作を禁止するからである。 On the other hand, as indicated by x2 and x3 in FIG. 5, the position x of the upper end portion of the window 52 is based on the position b of the lower end portion of the non-inverted region, and a position where an error Δ is added to the upper position and an error Δ below the position are added. When the position is within the range of the position added with (that is, when both the expression {(x≧(b−Δ)} and the expression {(x≦(b+Δ)} are satisfied), by the control of the motor control unit 110, , The window 52 is reversed and the subsequent automatic closing operation is prohibited.In this case, it is difficult to determine whether or not the object is pinched in consideration of the error Δ, and therefore, This is because, with emphasis on safety, the window 52 is reversed and the subsequent automatic closing operation is prohibited.

(マイコン100による制御方法の手順(第2例))
図6は、本発明の一実施形態に係るマイコン100による制御方法の手順の第2例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (second example))
FIG. 6 is a flowchart showing a second example of the procedure of the control method by the microcomputer 100 according to the embodiment of the present invention.

まず、マイコン100は、窓52の誤差Δに0を設定し、スイッチ40の操作回数Nに0を設定し、不明反転変数mにFalseを設定する(ステップS601)。 First, the microcomputer 100 sets 0 to the error Δ of the window 52, 0 to the number of operations N of the switch 40, and False to the unknown inversion variable m (step S601).

次に、操作信号取得部101が、スイッチ40から自動閉操作信号を取得したか否かを判断する(ステップS602)。ステップS602において、「自動閉操作信号を取得していない」と判断された場合、(ステップS602:No)、マイコン100は、ステップS602の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether or not an automatic closing operation signal has been acquired from the switch 40 (step S602). When it is determined in step S602 that "the automatic closing operation signal has not been acquired" (step S602: No), the microcomputer 100 executes the process of step S602 again.

一方、ステップS602において、「自動閉操作信号を取得した」と判断された場合、(ステップS602:Yes)、計数部108が、操作回数Nに1を加算する(ステップS603)。 On the other hand, when it is determined in step S602 that “the automatic closing operation signal has been acquired” (step S602: Yes), the counting unit 108 adds 1 to the number of operations N (step S603).

次に、ロック検出部107が、窓52の閉動作におけるロックを検出したか否かを判断する(ステップS604)。 Next, the lock detector 107 determines whether or not the lock in the closing operation of the window 52 is detected (step S604).

ステップS604において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS604:No)、マイコン100は、ステップS604の判断処理を再度実行する。 When it is determined in step S604 that "the lock in the closing operation of the window 52 has not been detected" (step S604: No), the microcomputer 100 executes the determination process of step S604 again.

一方、ステップS604において、「窓52の閉動作におけるロックを検出した」と判断された場合(ステップS604:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS605)。そして、誤差算出部109が、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する(ステップS606)。 On the other hand, when it is determined in step S604 that "the lock in the closing operation of the window 52 is detected" (step S604: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S605). Then, the error calculation unit 109 calculates the error Δ of the opening/closing position of the window 52 according to the number of times N the switch 40 has been operated (step S606).

続いて、モータ制御部110が、式{x<(b−Δ)}を満たすか否かを判断する(ステップS607)。 Subsequently, the motor control unit 110 determines whether or not the expression {x<(b−Δ)} is satisfied (step S607).

ステップS607において、「式{(x<(b−Δ)}を満たす」と判断された場合(ステップS607:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS608)。そして、マイコン100は、図6に示す一連の処理を終了する。 When it is determined in step S607 that “the expression {(x<(b−Δ)} is satisfied” (step S607: Yes), the motor control unit 110 closes the window 52 to the fully closed position (step S608). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS607において、「式{(x<(b−Δ)}を満たさない」と判断された場合(ステップS607:No)、モータ制御部110が、式{x>(b+Δ)}を満たすか否かを判断する(ステップS609)。 On the other hand, when it is determined in step S607 that the expression {(x<(b-Δ)} is not satisfied (step S607: No), the motor control unit 110 satisfies the expression {x>(b+Δ)}. It is determined whether or not (step S609).

ステップS609において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS609:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS610)。そして、マイコン100は、ステップS602へ処理を戻す。 When it is determined in step S609 that “the expression {(x>(b+Δ)} is satisfied” (step S609: Yes), the motor control unit 110 reverses the window 52 (step S610), and the microcomputer 100. Returns the process to step S602.

一方、ステップS609において、「式{(x>(b+Δ)}を満たさない」と判断された場合(ステップS609:No)、モータ制御部110が、不明反転変数mにTrueが設定されているか否かを判断する(ステップS611)。ステップS611において、「不明反転変数mにTrueが設定されている」と判断された場合(ステップS611:Yes)、モータ制御部110が、窓52の開閉位置xが前回のロック位置と同じであるか否かを判断する(ステップS612)。 On the other hand, when it is determined in step S609 that “the expression {(x>(b+Δ)} is not satisfied” (step S609: No), the motor control unit 110 determines whether the unknown inversion variable m is set to True. When it is determined in step S611 that "True is set in the unknown inversion variable m" (step S611: Yes), the motor control unit 110 causes the motor controller 110 to open/close the window 52 at the open/close position x. Is determined to be the same as the previous lock position (step S612).

ステップS612において、「窓52の開閉位置xが前回のロック位置と同じである」と判断された場合(ステップS612:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS608)。そして、マイコン100は、図6に示す一連の処理を終了する。 When it is determined in step S612 that "the opening/closing position x of the window 52 is the same as the previous locked position" (step S612: Yes), the motor control unit 110 closes the window 52 to the fully closed position ( Step S608). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS611において、「不明反転変数mにTrueが設定されていない」と判断された場合(ステップS611:No)、または、ステップS612において、「窓52の開閉位置xが前回のロック位置と同じではない」と判断された場合(ステップS612:No)、モータ制御部110が、窓52を反転動作させる(ステップS613)。また、モータ制御部110が、不明反転変数mにTrueを設定する(ステップS614)。そして、マイコン100は、ステップS602へ処理を戻す。 On the other hand, when it is determined in step S611 that "True is not set in the unknown inversion variable m" (step S611: No), or in step S612, "the opening/closing position x of the window 52 is the previous lock position". When it is determined that they are not the same (step S612: No), the motor control unit 110 reverses the window 52 (step S613). Further, the motor control unit 110 sets True to the unknown inversion variable m (step S614). Then, the microcomputer 100 returns the processing to step S602.

この制御方法によれば、物体の挟み込みが生じているか否かを確定することが困難な領域で窓52がロックした場合であっても、窓52がロックした位置が前回の自動閉動作においてロックしたときと同じである場合、窓52を全閉位置まで閉動作させることができる。この場合、窓52が物体の挟み込みによってロックしたのではなく、窓52がウェザーストリップに当接することによってロックした可能性が高いと考えられるからである。したがって、この制御方法によれば、窓52の閉め切り動作時のロックを高精度に判定することができ、したがって、窓52の閉め切り動作時における誤動作を抑制することができる。 According to this control method, even if the window 52 is locked in an area where it is difficult to determine whether or not an object is trapped, the position where the window 52 is locked is locked in the previous automatic closing operation. When it is the same as the above, the window 52 can be closed to the fully closed position. In this case, it is considered highly possible that the window 52 is not locked by being pinched by the object, but is locked by the window 52 coming into contact with the weather strip. Therefore, according to this control method, it is possible to highly accurately determine the lock of the window 52 during the closing operation, and it is possible to suppress the malfunction during the closing operation of the window 52.

(マイコン100による制御方法の手順(第3例))
図7は、本発明の一実施形態に係るマイコン100による制御方法の手順の第3例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (third example))
FIG. 7 is a flowchart showing a third example of the procedure of the control method by the microcomputer 100 according to the embodiment of the present invention.

まず、マイコン100は、スイッチ40の操作回数Nに0を設定する(ステップS701)。 First, the microcomputer 100 sets 0 to the number of operations N of the switch 40 (step S701).

次に、操作信号取得部101が、スイッチ40から操作信号を取得したか否かを判断する(ステップS702)。ステップS702において、「操作信号を取得していない」と判断された場合、(ステップS702:No)、マイコン100は、ステップS702の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether an operation signal has been acquired from the switch 40 (step S702). When it is determined in step S702 that “the operation signal has not been acquired” (step S702: No), the microcomputer 100 executes the process of step S702 again.

一方、ステップS702において、「操作信号を取得した」と判断された場合、(ステップS702:Yes)、計数部108が、操作回数Nに1を加算するとともに、位置算出部105が、変数P1に操作開始時の窓52の開閉位置を設定する(ステップS703)。 On the other hand, when it is determined in step S702 that “the operation signal has been acquired” (step S702: Yes), the counting unit 108 adds 1 to the number of operations N, and the position calculation unit 105 sets the variable P1 to the variable P1. The opening/closing position of the window 52 at the start of the operation is set (step S703).

次に、ロック検出部107が、窓52の自動閉動作におけるロックを検出したか否かを判断する(ステップS704)。 Next, the lock detector 107 determines whether or not the lock in the automatic closing operation of the window 52 is detected (step S704).

ステップS704において、「窓52の自動閉動作におけるロックを検出していない」と判断された場合(ステップS704:No)、誤差算出部109が、窓52の開閉動作が終了したか否かを判断する(ステップS713)。 When it is determined in step S704 that "the lock in the automatic closing operation of the window 52 is not detected" (step S704: No), the error calculation unit 109 determines whether the opening/closing operation of the window 52 is completed. Yes (step S713).

ステップS713において、「窓52の開閉動作が終了していない」と判断された場合(ステップS713:No)、マイコン100は、ステップS704へ処理を戻す。 When it is determined in step S713 that the opening/closing operation of the window 52 is not completed (step S713: No), the microcomputer 100 returns the process to step S704.

一方、ステップS713において、「窓52の開閉動作が終了した」と判断された場合(ステップS713:Yes)、誤差算出部109が、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する(ステップS714)。 On the other hand, when it is determined in step S713 that the opening/closing operation of the window 52 is completed (step S713: Yes), the error calculation unit 109 causes an error in the opening/closing position of the window 52 according to the number of times N the switch 40 has been operated. Δ is calculated (step S714).

そして、モータ制御部110が、式{Δ>b}を満たすか否かを判断する(ステップS715)。ステップS715において、「式{Δ>b}を満たさない」と判断された場合(ステップS715:No)、マイコン100は、ステップS702へ処理を戻す。 Then, the motor control unit 110 determines whether or not the expression {Δ>b} is satisfied (step S715). When it is determined in step S715 that “the expression {Δ>b} is not satisfied” (step S715: No), the microcomputer 100 returns the process to step S702.

一方、ステップS715において、「式{Δ>b}を満たす」と判断された場合(ステップS715:Yes)、モータ制御部110が、窓52を全開位置まで開動作させる(ステップS716)。そして、モータ制御部110が、変数P2に全開位置における窓52の開閉位置xを設定して、変数ΔPに、P2−P1によって求められる窓52の移動量を設定し、さらに、位置算出部105が、窓52の開閉位置xに窓の下端位置に対応する所定値を設定することにより、開閉位置xをリセットする(ステップS717)。 On the other hand, when it is determined in step S715 that “the expression {Δ>b} is satisfied” (step S715: Yes), the motor control unit 110 opens the window 52 to the fully open position (step S716). Then, the motor control unit 110 sets the variable P2 to the open/closed position x of the window 52 at the fully open position, the variable ΔP to the moving amount of the window 52 obtained by P2-P1, and the position calculation unit 105. Resets the opening/closing position x by setting the opening/closing position x of the window 52 to a predetermined value corresponding to the lower end position of the window (step S717).

続いて、モータ制御部110が、ΔP分、窓52を閉動作させることにより、窓52を開閉動作開始時の開閉位置に復帰させる(ステップS718)。また、計数部108が、操作回数Nを1にする(ステップS719)。そして、マイコン100は、ステップS702へ処理を戻す。 Subsequently, the motor control unit 110 closes the window 52 by ΔP, thereby returning the window 52 to the open/close position at the time of starting the open/close operation (step S718). Further, the counting unit 108 sets the number of operations N to 1 (step S719). Then, the microcomputer 100 returns the processing to step S702.

一方、ステップS704において、「窓52の自動閉動作におけるロックを検出した」と判断された場合(ステップS704:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS705)。そして、誤差算出部109が、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する(ステップS706)。 On the other hand, when it is determined in step S704 that "the lock in the automatic closing operation of the window 52 is detected" (step S704: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S705). .. Then, the error calculation unit 109 calculates the error Δ of the opening/closing position of the window 52 according to the number of times N the switch 40 has been operated (step S706).

続いて、モータ制御部110が、式{x<(b−Δ)}を満たすか否かを判断する(ステップS707)。 Subsequently, the motor control unit 110 determines whether or not the expression {x<(b−Δ)} is satisfied (step S707).

ステップS707において、「式{(x<(b−Δ)}を満たす」と判断された場合(ステップS707:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS708)。そして、マイコン100は、図7に示す一連の処理を終了する。 When it is determined in step S707 that “the expression {(x<(b−Δ)} is satisfied” (step S707: Yes), the motor control unit 110 closes the window 52 to the fully closed position (step S708). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS707において、「式{(x<(b−Δ)}を満たさない」と判断された場合(ステップS707:No)、モータ制御部110が、式{x>(b+Δ)}を満たすか否かを判断する(ステップS709)。 On the other hand, in step S707, when it is determined that “the expression {(x<(b−Δ)} is not satisfied” (step S707: No), the motor control unit 110 satisfies the expression {x>(b+Δ)}. It is determined whether or not (step S709).

ステップS709において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS709:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS710)。そして、マイコン100は、ステップS702へ処理を戻す。 When it is determined in step S709 that “the expression {(x>(b+Δ)} is satisfied” (step S709: Yes), the motor control unit 110 reverses the window 52 (step S710) and the microcomputer 100. Returns the process to step S702.

一方、ステップS709において、「式{(x>(b+Δ)}を満たさない」と判断された場合(ステップS709:No)、モータ制御部110が、窓52を全開位置まで開動作させる(ステップS711)。そして、位置算出部105が、窓52の開閉位置xに窓の下端位置に対応する所定値を設定するとともに、計数部108が、操作回数Nに0を設定する(ステップS712)。そして、マイコン100は、ステップS702へ処理を戻す。 On the other hand, when it is determined in step S709 that “the expression {(x>(b+Δ)} is not satisfied” (step S709: No), the motor control unit 110 opens the window 52 to the fully open position (step S711). Then, the position calculation unit 105 sets the opening/closing position x of the window 52 to a predetermined value corresponding to the lower end position of the window, and the counting unit 108 sets 0 to the number of operations N (step S712). The microcomputer 100 returns the process to step S702.

この制御方法によれば、窓52の開閉位置の誤差Δが非反転領域の上下幅よりも大きくなったときに、窓52を全開位置まで開動作させて窓の開閉位置をリセットするため、誤差Δをリセットすることができ、例えば、誤差Δが非反転領域の上下幅よりも大きくなることに起因して窓52を閉じ切ることができなくなるといった事態を回避することができる。特に、この制御方法によれば、窓52を全開位置へ開動作させて窓の開閉位置をリセットするため、リセット時の挟み込みが生じることなく、挟み込みによる事故の発生を回避できる。また、この制御方法によれば、窓52の開閉位置をリセットした後、窓52を操作開始時の位置に復帰させることができるため、操作開始時の位置に復帰させるためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 According to this control method, when the error Δ in the opening/closing position of the window 52 becomes larger than the vertical width of the non-inverting region, the window 52 is opened to the fully open position to reset the opening/closing position of the window. It is possible to reset Δ, and it is possible to avoid a situation in which the window 52 cannot be closed completely due to the error Δ being larger than the vertical width of the non-inversion region. In particular, according to this control method, since the window 52 is opened to the fully open position to reset the opening/closing position of the window, no pinching occurs at the time of resetting, and an accident due to pinching can be avoided. Further, according to this control method, after the opening/closing position of the window 52 is reset, the window 52 can be returned to the position at the start of the operation, so that the user operation for returning to the position at the start of the operation is unnecessary. Therefore, it is possible to prevent the user from being bothered.

(マイコン100による制御方法の手順(第4例))
図8は、本発明の一実施形態に係るマイコン100による制御方法の手順の第4例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (fourth example))
FIG. 8 is a flowchart showing a fourth example of the procedure of the control method by the microcomputer 100 according to the embodiment of the present invention.

まず、マイコン100は、スイッチ40の操作回数Nに0を設定する(ステップS801)。 First, the microcomputer 100 sets 0 to the number of operations N of the switch 40 (step S801).

次に、操作信号取得部101が、スイッチ40から操作信号を取得したか否かを判断する(ステップS802)。ステップS802において、「操作信号を取得していない」と判断された場合、(ステップS802:No)、マイコン100は、ステップS802の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether or not an operation signal has been acquired from the switch 40 (step S802). When it is determined in step S802 that “the operation signal has not been acquired” (step S802: No), the microcomputer 100 executes the process of step S802 again.

一方、ステップS802において、「操作信号を取得した」と判断された場合、(ステップS802:Yes)、計数部108が、操作回数Nに1を加算するとともに、位置算出部105が、変数P1に操作開始時の窓52の開閉位置を設定する(ステップS803)。 On the other hand, when it is determined in step S802 that “the operation signal has been acquired” (step S802: Yes), the counting unit 108 adds 1 to the number of operations N, and the position calculation unit 105 sets the variable P1 to the variable P1. The opening/closing position of the window 52 at the start of the operation is set (step S803).

次に、ロック検出部107が、窓52の自動閉動作におけるロックを検出したか否かを判断する(ステップS804)。 Next, the lock detection unit 107 determines whether or not the lock in the automatic closing operation of the window 52 is detected (step S804).

ステップS804において、「窓52の自動閉動作におけるロックを検出していない」と判断された場合(ステップS804:No)、マイコン100は、ステップS804の判断処理を再度実行する。 When it is determined in step S804 that "the lock in the automatic closing operation of the window 52 is not detected" (step S804: No), the microcomputer 100 executes the determination process of step S804 again.

一方、ステップS804において、「窓52の閉動作におけるロックを検出した」と判断された場合(ステップS804:Yes)、位置算出部105が、窓52がロックした位置が全閉位置であるか否かを判断する(ステップS805)。 On the other hand, when it is determined in step S804 that "the lock in the closing operation of the window 52 is detected" (step S804: Yes), the position calculation unit 105 determines whether the position where the window 52 is locked is the fully closed position. It is determined whether or not (step S805).

ステップS805において、「窓52がロックした位置が全閉位置である」と判断された場合(ステップS805:Yes)、位置算出部105が、窓52の開閉位置xに0を設定することにより、開閉位置xをリセットするとともに、計数部108が、操作回数Nに0を設定することにより、操作回数Nをリセットする(ステップS806)。そして、マイコン100は、図8に示す一連の処理を終了する。 When it is determined in step S805 that the position where the window 52 is locked is the fully closed position (step S805: Yes), the position calculation unit 105 sets 0 to the opening/closing position x of the window 52, The opening/closing position x is reset, and the counting unit 108 resets the number of operations N by setting 0 to the number of operations N (step S806). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS805において、「窓52がロックした位置が全閉位置ではない」と判断された場合(ステップS805:No)、計数部108が、操作回数Nが所定回数よりも大きいか否かを判断する(ステップS807)。 On the other hand, when it is determined in step S805 that "the position where the window 52 is locked is not the fully closed position" (step S805: No), the counting unit 108 determines whether the number of operations N is larger than a predetermined number of times. It is determined (step S807).

ステップS807において、「操作回数Nが所定回数以下である」と判断された場合(ステップS807:No)、マイコン100は、ステップS802へ処理をもどす。 When it is determined in step S807 that "the number of operations N is equal to or smaller than the predetermined number" (step S807: No), the microcomputer 100 returns the process to step S802.

一方、ステップS807において、「操作回数Nが所定回数より大きい」と判断された場合(ステップS807:Yes)、モータ制御部110が、窓52を全開位置まで開動作させる(ステップS808)。 On the other hand, when it is determined in step S807 that "the number of operations N is larger than the predetermined number of times" (step S807: Yes), the motor control unit 110 opens the window 52 to the fully open position (step S808).

そして、モータ制御部110が、変数P2に全開位置における窓52の開閉位置xを設定して、変数ΔPに、P2−P1によって求められる窓52の移動量を設定し、さらに、位置算出部105が、窓52の開閉位置xに窓の下端位置に対応する所定値を設定することにより、開閉位置xをリセットする(ステップS809)。 Then, the motor control unit 110 sets the variable P2 to the open/closed position x of the window 52 at the fully open position, the variable ΔP to the moving amount of the window 52 obtained by P2-P1, and the position calculation unit 105. Resets the opening/closing position x by setting the opening/closing position x of the window 52 to a predetermined value corresponding to the lower end position of the window (step S809).

続いて、モータ制御部110が、ΔP分、窓52を閉動作させることにより、窓52を開閉動作開始時の開閉位置に復帰させる(ステップS810)。また、計数部108が、操作回数Nを1にする(ステップS811)。そして、マイコン100は、ステップS802へ処理を戻す。 Subsequently, the motor control unit 110 closes the window 52 by ΔP to return the window 52 to the open/close position at the time of starting the open/close operation (step S810). Further, the counting unit 108 sets the number of operations N to 1 (step S811). Then, the microcomputer 100 returns the processing to step S802.

この制御方法によれば、操作回数Nが所定回数を超えたとき、窓52を全開位置まで開動作させて窓52の開閉位置をリセットするため、誤差Δをリセットすることができ、例えば、誤差Δが非反転領域の上下幅よりも大きくなることに起因して窓52を閉じ切ることができなくなるといった事態を回避することができる。特に、この制御方法によれば、窓52を全開位置へ開動作させて窓の開閉位置をリセットするため、リセット時の挟み込みが生じることなく、挟み込みによる事故の発生を回避できる。また、この制御方法によれば、窓52の開閉位置をリセットした後、窓52を操作開始時の位置に復帰させることができるため、操作開始時の位置に復帰させるためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 According to this control method, when the number of operations N exceeds a predetermined number, the window 52 is opened to the fully open position and the open/close position of the window 52 is reset. Therefore, the error Δ can be reset. It is possible to avoid a situation in which the window 52 cannot be closed completely due to Δ becoming larger than the vertical width of the non-inversion region. In particular, according to this control method, since the window 52 is opened to the fully open position to reset the opening/closing position of the window, no pinching occurs at the time of resetting, and an accident due to pinching can be avoided. Further, according to this control method, after the opening/closing position of the window 52 is reset, the window 52 can be returned to the position at the start of the operation, so that the user operation for returning to the position at the start of the operation is unnecessary. Therefore, it is possible to prevent the user from being bothered.

(マイコン100による誤差Δの算出例)
図9〜図11は、本発明の一実施形態に係るマイコン100による誤差Δの算出例を示す図である。
(Example of calculating the error Δ by the microcomputer 100)
9 to 11 are diagrams showing an example of calculating the error Δ by the microcomputer 100 according to the embodiment of the present invention.

<第1算出例>
図9は、マイコン100によって上記数式(1)を用いて算出された誤差Δを、実際の窓52に生じた誤差Δと比較して表すものである。図9に示すグラフにおいて、横軸は操作回数Nの0.5乗を表し、縦軸は誤差Δ[リップルカウント]を表す。また、図9に示すグラフおいて、点線は、マイコン100によって上記数式(1)を用いて算出された誤差Δを表し、ドットは、実際に生じた誤差Δを表す。
<First calculation example>
FIG. 9 shows the error Δ calculated by the microcomputer 100 using the above-mentioned mathematical expression (1) in comparison with the error Δ generated in the actual window 52. In the graph shown in FIG. 9, the horizontal axis represents the number of operations N raised to the 0.5th power, and the vertical axis represents the error Δ[ripple count]. Further, in the graph shown in FIG. 9, the dotted line represents the error Δ calculated by the microcomputer 100 using the above mathematical expression (1), and the dot represents the actually generated error Δ.

図9に示す第1算出例では、定数Cとして、個体差に応じて予め求められた好適な値である「2.8257」を用いている。すなわち、図9に示す第1算出例では、式{Δ=2.8257・N^0.5}を用いて、誤差Δを算出している。 In the first calculation example shown in FIG. 9, as the constant C, “2.8257”, which is a suitable value determined in advance according to individual difference, is used. That is, in the first calculation example shown in FIG. 9, the error Δ is calculated using the formula {Δ=2.8257·N̂0.5}.

図9に示すように、マイコン100によって上記数式(1)を用いて算出される誤差Δは、操作回数Nが増加するにつれて誤差Δが増加するものであり、実際の窓52に生じる誤差Δと概ね近似するものである。このように、この第1算出例では、上記数式(1)を用いて、定数Cに適切な値を設定することにより、誤差Δを高精度に算出できることが確認された。 As shown in FIG. 9, the error Δ calculated by the microcomputer 100 using the above equation (1) increases as the number of operations N increases. It is almost similar. As described above, in the first calculation example, it was confirmed that the error Δ can be calculated with high accuracy by setting the appropriate value for the constant C by using the mathematical expression (1).

<第2算出例>
図10は、マイコン100によって上記数式(2)を用いて算出された誤差Δを、実際の窓52に生じた誤差Δと比較して表すものである。図10に示すグラフにおいて、横軸は操作回数Nを表し、縦軸は誤差Δ[リップルカウント]を表す。また、図10に示すグラフおいて、点線は、マイコン100によって上記数式(2)を用いて算出された誤差Δを表し、ドットは、実際に生じた誤差Δを表す。
<Second calculation example>
FIG. 10 shows the error Δ calculated by the microcomputer 100 using the above-mentioned mathematical expression (2) in comparison with the error Δ generated in the actual window 52. In the graph shown in FIG. 10, the horizontal axis represents the number of operations N, and the vertical axis represents the error Δ[ripple count]. Further, in the graph shown in FIG. 10, the dotted line represents the error Δ calculated by the microcomputer 100 using the above formula (2), and the dot represents the actually generated error Δ.

図10に示す第2算出例では、定数Dとして、個体差に応じて予め求められた好適な値である「0.8135」を設定している。すなわち、図10に示す第2算出例では、式{Δ=0.8135・N}を用いて、誤差Δを算出している。 In the second calculation example shown in FIG. 10, “0.8135”, which is a suitable value obtained in advance according to the individual difference, is set as the constant D. That is, in the second calculation example shown in FIG. 10, the error Δ is calculated using the formula {Δ=0.8135·N}.

図10に示すように、マイコン100によって上記数式(2)を用いて算出される誤差Δは、操作回数Nが増加するにつれて誤差Δが線形に増加するものであり、実際の窓52に生じる誤差Δと概ね近似するものである。このように、この第2算出例では、上記数式(2)を用いて、定数Dに適切な値を設定することにより、誤差Δを高精度に算出できることが確認された。 As shown in FIG. 10, the error Δ calculated by the microcomputer 100 using the equation (2) is such that the error Δ linearly increases as the number of operations N increases. It is approximately similar to Δ. As described above, in this second calculation example, it was confirmed that the error Δ can be calculated with high accuracy by setting an appropriate value for the constant D using the mathematical expression (2).

<第3算出例>
図11は、マイコン100によって上記数式(3)を用いて算出された誤差Δを、実際の窓52に生じた誤差Δと比較して表すものである。図11に示すグラフにおいて、横軸は操作回数Nを表し、縦軸は誤差Δ[リップルカウント]を表す。また、図11に示すグラフおいて、点線は、マイコン100によって上記数式(3)を用いて算出された誤差Δを表し、ドットは、実際に生じた誤差Δを表す。
<Third calculation example>
FIG. 11 shows the error Δ calculated by the microcomputer 100 using the above-mentioned mathematical expression (3) in comparison with the error Δ generated in the actual window 52. In the graph shown in FIG. 11, the horizontal axis represents the number of operations N, and the vertical axis represents the error Δ[ripple count]. Further, in the graph shown in FIG. 11, the dotted line represents the error Δ calculated by the microcomputer 100 using the above equation (3), and the dot represents the actually generated error Δ.

図11に示す第3算出例では、定数Cとして、個体差に応じて予め求められた好適な値である「0.6858」を設定している。また、定数Dとして、個体差に応じて予め求められた好適な値である「2.1304」を設定している。すなわち、図11に示す第3算出例では、式{Δ=0.6858・N^2.1304}を用いて、誤差Δを算出している。 In the third calculation example shown in FIG. 11, the constant C is set to “0.6858” which is a suitable value obtained in advance according to the individual difference. Further, as the constant D, “2.1304” which is a suitable value obtained in advance according to individual difference is set. That is, in the third calculation example shown in FIG. 11, the error Δ is calculated using the formula {Δ=0.6858·N^2.1304}.

図11に示すように、マイコン100によって上記数式(3)を用いて算出される誤差Δは、操作回数Nが増加するにつれて誤差Δが非線形に増加するものであり、実際の窓52に生じる誤差Δと概ね近似するものである。このように、この第3算出例では、上記数式(3)を用いて、定数Cおよび定数Dに適切な値を設定することにより、誤差Δを高精度に算出できることが確認された。 As shown in FIG. 11, the error Δ calculated by the microcomputer 100 using the above equation (3) is such that the error Δ increases non-linearly as the number of operations N increases, and the error that occurs in the actual window 52. It is approximately similar to Δ. As described above, in the third calculation example, it was confirmed that the error Δ can be calculated with high accuracy by setting the appropriate values for the constant C and the constant D using the mathematical expression (3).

以上説明したように、本実施形態の開閉システム1は、スイッチ40と、窓52を開閉動作させるモータ54と、スイッチ40から出力される操作信号に応じて、モータ54を制御するマイコン100とを備え、マイコン100は、スイッチ40の操作回数Nを計数する計数部108と、モータ54の回転軸の回転量を検出する回転量検出部104と、窓52の閉動作におけるロックを検出するロック検出部107と、回転量検出部104によって検出された回転量に基づいて、窓52の開閉位置xを算出する位置算出部105と、操作回数Nに応じた開閉位置xの誤差Δを算出する誤差算出部109と、ロックが検出された場合において、式{x<(b−Δ)}を満たす場合、窓52を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、窓52を反転動作させるモータ制御部110とを備える。 As described above, the opening/closing system 1 of the present embodiment includes the switch 40, the motor 54 that opens and closes the window 52, and the microcomputer 100 that controls the motor 54 according to the operation signal output from the switch 40. The microcomputer 100 includes the counting unit 108 that counts the number of times N the switch 40 has been operated, the rotation amount detection unit 104 that detects the rotation amount of the rotation shaft of the motor 54, and the lock detection that detects the lock in the closing operation of the window 52. Unit 107, a position calculation unit 105 that calculates the opening/closing position x of the window 52 based on the rotation amount detected by the rotation amount detecting unit 104, and an error that calculates an error Δ of the opening/closing position x according to the number of operations N. In the calculation unit 109 and when the lock is detected, when the expression {x<(b−Δ)} is satisfied, the window 52 is closed to the fully closed position, and when the expression {x>(b+Δ)} is satisfied, And a motor control unit 110 for reversing the window 52.

これにより、本実施形態の開閉システム1は、誤差Δを考慮したうえで、物体の挟み込みが生じていないと確定できる場合(式{x<(b−Δ)}を満たす場合)、窓52を全閉位置まで閉動作させることができる。また、本実施形態の開閉システム1は、誤差Δを考慮したうえで、物体の挟み込みが生じていると確定できる場合(式{x>(b+Δ)}を満たす場合)、および、物体の挟み込みが生じているか否か不明である場合、安全性を重視して、窓52を反転動作させることができる。すなわち、本実施形態の開閉システム1によれば、誤差が所定の値を超える度に窓の自動開閉動作を無効化するといった、従来の制御方法と比較して、安全性を損なうことなく、窓52の自動開閉機能を継続的に利用することができ、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 Accordingly, the opening/closing system 1 of the present embodiment opens the window 52 when it can be determined that the object is not pinched in consideration of the error Δ (when the expression {x<(b−Δ)} is satisfied). It can be closed to the fully closed position. Further, the opening/closing system 1 of the present embodiment considers the error Δ, and when it can be determined that the object is pinched (when the expression {x>(b+Δ)} is satisfied) and when the object is pinched. If it is unclear whether or not it has occurred, the window 52 can be reversed by giving priority to safety. That is, according to the opening/closing system 1 of the present embodiment, as compared with the conventional control method in which the automatic opening/closing operation of the window is invalidated every time the error exceeds a predetermined value, the window is opened without sacrificing safety. The automatic opening/closing function of 52 can be continuously used, and therefore, it is possible to prevent the user from being bothered.

また、本実施形態の開閉システム1において、モータ制御部110は、ロックが検出された場合において、式{x≧(b−Δ)}および式{x≦(b+Δ)}の双方を満たす場合、窓52を反転動作させるとともに、以降の窓52の自動閉動作を禁止することができる。 In addition, in the opening/closing system 1 of the present embodiment, when the lock is detected, the motor control unit 110 satisfies both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)}, It is possible to reverse the window 52 and prohibit the subsequent automatic closing operation of the window 52.

これにより、本実施形態の開閉システム1は、誤差Δを考慮したうえで、物体の挟み込みが生じているか否か不明である場合、安全性を重視して、窓52を反転動作させることができるとともに、それ以降も、安全性を重視して、窓52の自動ではない閉動作により、窓52を全閉位置まで閉め切ることができる。 Accordingly, the opening/closing system 1 of the present embodiment can reverse the window 52 while giving importance to safety when it is unclear whether or not an object is pinched in consideration of the error Δ. At the same time, with importance placed on safety, the window 52 can be closed to the fully closed position by the non-automatic closing operation of the window 52.

また、本実施形態の開閉システム1において、モータ制御部110は、ロックが検出された場合において、式{x≧(b−Δ)}および式{x≦(b+Δ)}の双方を満たし、且つ、ロックが前回検出されたときとxが同じである場合、窓52を全閉位置まで閉動作させることができる。 In addition, in the opening/closing system 1 of the present embodiment, the motor control unit 110 satisfies both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)} when the lock is detected, and If x is the same as when the lock was detected last time, the window 52 can be closed to the fully closed position.

これにより、本実施形態の開閉システム1は、物体の挟み込みが生じているか否か不明な領域で窓52がロックした場合であっても、窓52がロックした位置が前回ロックしたときと同じである場合、窓52を全閉位置まで閉動作させることができる。この場合、窓52が物体の挟み込みによってロックしたのではなく、窓52がウェザーストリップに当接することによってロックした可能性が高いと考えられるからである。したがって、本実施形態の開閉システム1によれば、窓52の閉め切り動作時のロックを高精度に判定することができ、したがって、窓52の閉め切り動作時における誤動作を抑制することができる。 As a result, even if the window 52 is locked in an area in which it is unclear whether or not an object is pinched, the position where the window 52 is locked is the same as when it was previously locked. In some cases, the window 52 can be closed to the fully closed position. In this case, it is considered highly possible that the window 52 is not locked by being pinched by the object, but is locked by the window 52 coming into contact with the weather strip. Therefore, according to the opening/closing system 1 of the present embodiment, it is possible to highly accurately determine the lock of the window 52 during the closing operation, and it is possible to suppress the malfunction during the closing operation of the window 52.

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nのべき乗に対して、所定の定数を乗じることにより、誤差Δを算出することができる。 Further, in the opening/closing system 1 of the present embodiment, the error calculating unit 109 can calculate the error Δ by multiplying the power of the number of operations N by a predetermined constant.

これにより、本実施形態の開閉システム1は、所定の定数に適切な値を設定することにより、誤差Δを比較的高精度に算出することができ、したがって、ロックが検出されたときの、窓52による挟み込みであるか否かの判定精度をより高めることができる。 Accordingly, the opening/closing system 1 of the present embodiment can calculate the error Δ with relatively high accuracy by setting an appropriate value for the predetermined constant, and therefore, the window when the lock is detected is detected. It is possible to further improve the accuracy of determination as to whether or not there is a pinch by 52.

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nの1/2乗に対して、所定の定数を乗じることにより、誤差Δを算出することができる。 Further, in the opening/closing system 1 of the present embodiment, the error calculation unit 109 can calculate the error Δ by multiplying the 1/2 power of the number of operations N by a predetermined constant.

これにより、本実施形態の開閉システム1は、所定の定数に適切な値を設定することにより、誤差Δを比較的高精度に算出することができ、したがって、ロックが検出されたときの、窓52による挟み込みであるか否かの判定精度をより高めることができる。 Accordingly, the opening/closing system 1 of the present embodiment can calculate the error Δ with relatively high accuracy by setting an appropriate value for the predetermined constant, and therefore, the window when the lock is detected is detected. It is possible to further improve the accuracy of determination as to whether or not there is a pinch by 52.

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nに対して、所定の定数を乗じることにより、誤差Δを算出することができる。 In addition, in the opening/closing system 1 of the present embodiment, the error calculation unit 109 can calculate the error Δ by multiplying the number of operations N by a predetermined constant.

これにより、本実施形態の開閉システム1は、所定の定数に適切な値を設定することにより、誤差Δを比較的高精度に算出することができ、したがって、ロックが検出されたときの、窓52による挟み込みであるか否かの判定精度をより高めることができる。 Accordingly, the opening/closing system 1 of the present embodiment can calculate the error Δ with relatively high accuracy by setting an appropriate value for the predetermined constant, and therefore, the window when the lock is detected is detected. It is possible to further improve the accuracy of determination as to whether or not there is a pinch by 52.

また、本実施形態の開閉システム1において、窓52が全閉位置に達したとき、計数部108は、操作回数Nをリセットし、位置算出部105は、開閉位置xをリセットすることができる。 In addition, in the opening/closing system 1 of the present embodiment, when the window 52 reaches the fully closed position, the counting unit 108 can reset the number of operations N, and the position calculation unit 105 can reset the opening/closing position x.

これにより、本実施形態の開閉システム1は、窓52が全閉位置に達したとき、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 Thereby, the opening/closing system 1 of the present embodiment can match the opening/closing position x calculated by the position calculating unit 105 with the actual opening/closing position of the window when the window 52 reaches the fully closed position. That is, the error Δ can be set to 0, so that the accuracy of determination as to whether or not the window 52 is sandwiched thereafter can be further improved.

また、本実施形態の開閉システム1において、窓52が全開位置に達したとき、計数部108は、操作回数Nをリセットし、位置算出部105は、開閉位置xをリセットすることができる。 In addition, in the opening/closing system 1 of the present embodiment, when the window 52 reaches the fully opened position, the counting unit 108 can reset the number of operations N, and the position calculation unit 105 can reset the opening/closing position x.

これにより、本実施形態の開閉システム1は、窓52が全開位置に達したとき、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 Thereby, the opening/closing system 1 of the present embodiment can match the opening/closing position x calculated by the position calculating unit 105 with the actual opening/closing position of the window when the window 52 reaches the fully opened position, that is, , The error Δ can be set to 0, so that the accuracy of the determination as to whether or not the window 52 is sandwiched thereafter can be further improved.

また、本実施形態の開閉システム1において、操作回数Nが所定回数に達した場合、モータ制御部110は、窓52を全開位置まで開動作させ、計数部108は、操作回数Nをリセットし、位置算出部105は、開閉位置xをリセットすることができる。 Further, in the opening/closing system 1 of the present embodiment, when the number of operations N reaches a predetermined number, the motor control unit 110 opens the window 52 to the fully open position, and the counting unit 108 resets the number of operations N. The position calculation unit 105 can reset the open/close position x.

これにより、本実施形態の開閉システム1は、操作回数Nが所定回数に達することによって誤差Δが一定量に達した時、自動的に窓52を全開位置まで開動作させて、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 Accordingly, the opening/closing system 1 of the present embodiment automatically opens the window 52 to the fully open position when the error Δ reaches a certain amount due to the number of operations N reaching a predetermined number, and the position calculating unit 105 It is possible to match the opening/closing position x calculated by the above with the actual opening/closing position of the window, that is, the error Δ can be set to 0. Therefore, it is determined whether or not there is a subsequent pinch by the window 52. The accuracy can be further increased.

また、本実施形態の開閉システム1において、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させ、計数部108は、操作回数Nをリセットし、位置算出部105は、開閉位置xをリセットすることができる。 Further, in the opening/closing system 1 of the present embodiment, when the expression {Δ>b} is satisfied, the motor control unit 110 opens the window 52 to the fully open position, and the counting unit 108 resets the operation number N, The position calculation unit 105 can reset the open/close position x.

これにより、本実施形態の開閉システム1は、誤差Δが一定量に達した時、自動的に窓52を全開位置まで開動作させて、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 Accordingly, the opening/closing system 1 of the present embodiment automatically opens the window 52 to the fully open position when the error Δ reaches a certain amount, and the opening/closing position x calculated by the position calculating unit 105 and the actual position. The opening/closing position of the window can be matched, that is, the error Δ can be set to 0, and thus the accuracy of determining whether or not the window 52 is sandwiched thereafter can be further improved.

また、本実施形態の開閉システム1において、窓52が自動閉動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、操作回数Nおよび開閉位置xがリセットされた後、窓52を全閉位置まで閉動作させることができる。 In addition, in the opening/closing system 1 of the present embodiment, when the window 52 is performing the automatic closing operation, if the formula {Δ>b} is satisfied, the motor control unit 110 causes the window 52 to open to the fully open position. Thus, after the number of operations N and the opening/closing position x are reset, the window 52 can be closed to the fully closed position.

これにより、本実施形態の開閉システム1は、窓52の開閉位置をリセットした後、窓52を自動閉動作を自動的に再開することができるため、自動閉動作を再開するためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 With this, the opening/closing system 1 of the present embodiment can automatically restart the automatic closing operation of the window 52 after resetting the opening/closing position of the window 52, so that a user operation for restarting the automatic closing operation is performed. It is unnecessary, and therefore it is possible to prevent the user from being bothered.

また、本実施形態の開閉システム1において、窓52が自動開閉動作以外の開閉動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、操作回数Nおよび開閉位置xがリセットされた後、窓52を当該開閉動作の開始時の位置まで復帰させることができる。 Further, in the opening/closing system 1 of the present embodiment, when the expression {Δ>b} is satisfied when the window 52 is performing an opening/closing operation other than the automatic opening/closing operation, the motor control unit 110 opens the window 52 at the fully open position. After the number of operations N and the opening/closing position x are reset by opening the window 52, the window 52 can be returned to the position at the start of the opening/closing operation.

これにより、本実施形態の開閉システム1は、窓52の開閉位置をリセットした後、窓52を操作開始時の位置に自動的に復帰させることができるため、操作開始時の位置に復帰させるためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 With this, the opening/closing system 1 of the present embodiment can automatically return the window 52 to the position at the start of the operation after resetting the opening/closing position of the window 52, and thus can return to the position at the start of the operation. No user operation is required, and thus it is possible to prevent the user from being bothered.

また、本実施形態の開閉システム1は、モータ54を流れる電流を検出する電流検出回路30をさらに備え、回転量検出部104は、電流検出回路30によって検出された電流に含まれるリップル成分の発生数に基づいて、回転量を検出し、ロック検出部107は、電流検出回路30によって検出された電流に基づいて、窓52の閉動作におけるロックを検出することができる。 The switching system 1 of the present embodiment further includes a current detection circuit 30 that detects a current flowing through the motor 54, and the rotation amount detection unit 104 generates a ripple component included in the current detected by the current detection circuit 30. The rotation amount can be detected based on the number, and the lock detection unit 107 can detect the lock in the closing operation of the window 52 based on the current detected by the current detection circuit 30.

これにより、本実施形態の開閉システム1は、回転量を検出する構成にかかるコストを抑制することができる。 As a result, the opening/closing system 1 according to the present embodiment can reduce the cost of the configuration for detecting the rotation amount.

(マイコン100による制御方法の手順(第5例))
図12は、本発明の一実施形態に係るマイコン100による制御方法の手順の第5例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (fifth example))
FIG. 12 is a flowchart showing a fifth example of the procedure of the control method by the microcomputer 100 according to the embodiment of the present invention.

まず、マイコン100は、以下に示すとおり、各種変数を初期化する(ステップS1201)。 First, the microcomputer 100 initializes various variables as shown below (step S1201).

・窓52の開閉位置の誤差Δに0を設定する。 Set 0 to the error Δ of the opening/closing position of the window 52.

・窓52の閉動作回数Nupに0を設定する。 Set 0 to the number of times Nup of closing the window 52.

・窓52の開動作回数Ndownに0を設定する。 -Set 0 to the number Ndown of opening operations of the window 52.

・窓52の反転動作回数Npinchに0を設定する。 -Set 0 to the number Npinch of inversion operations of the window 52.

次に、操作信号取得部101が、スイッチ40から自動閉操作信号または自動開操作信号を取得したか否かを判断する(ステップS1202)。ステップS1202において、「自動閉操作信号または自動開操作信号を取得していない」と判断された場合、(ステップS1202:No)、マイコン100は、ステップS1202の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether or not the automatic closing operation signal or the automatic opening operation signal is acquired from the switch 40 (step S1202). When it is determined in step S1202 that "the automatic closing operation signal or the automatic opening operation signal has not been acquired" (step S1202: No), the microcomputer 100 executes the process of step S1202 again.

一方、ステップS1202において、「自動閉操作信号または自動開操作信号を取得した」と判断された場合、(ステップS1202:Yes)、計数部108が、取得された操作信号が自動閉操作信号であるか否かを判断する(ステップS1203)。 On the other hand, when it is determined in step S1202 that “the automatic closing operation signal or the automatic opening operation signal has been acquired” (step S1202: Yes), the counting unit 108 causes the acquired operation signal to be the automatic closing operation signal. It is determined whether or not (step S1203).

ステップS1203において、取得された操作信号が自動閉操作信号であると判断された場合(ステップS1203:Yes)、計数部108が、閉動作回数Nupに1を加算する(ステップS1204)。そして、計数部108が、窓52が反転動作したか否かを判断する(ステップS1205)。 When it is determined in step S1203 that the acquired operation signal is the automatic closing operation signal (step S1203: Yes), the counting unit 108 adds 1 to the number of times Nup of closing operations (step S1204). Then, the counting unit 108 determines whether or not the window 52 has performed the reversing operation (step S1205).

ステップS1205において、窓52が反転動作したと判断された場合(ステップS1205:Yes)、計数部108が、反転動作回数Npinchに1を加算する(ステップS1205)。そして、マイコン100は、ステップS1208へ処理を進める。 When it is determined in step S1205 that the window 52 has performed the reversing operation (step S1205: Yes), the counting unit 108 adds 1 to the number of reversing operations Npinch (step S1205). Then, the microcomputer 100 advances the process to step S1208.

一方、ステップS1205において、窓52が反転動作していないと判断された場合(ステップS1205:No)、マイコン100は、ステップS1208へ処理を進める。 On the other hand, when it is determined in step S1205 that the window 52 is not performing the reversing operation (step S1205: No), the microcomputer 100 advances the process to step S1208.

ステップS1203において、取得された操作信号が自動閉操作信号ではない(すなわち、自動開操作信号である)と判断された場合(ステップS1203:No)、計数部108が、閉動作回数Ndownに1を加算する(ステップS1207)。そして、マイコン100は、ステップS1208へ処理を進める。 When it is determined in step S1203 that the acquired operation signal is not the automatic closing operation signal (that is, the automatic opening operation signal) (step S1203: No), the counting unit 108 sets the closing operation number Ndown to 1. Add (step S1207). Then, the microcomputer 100 advances the process to step S1208.

ステップS1208では、ロック検出部107が、窓52の閉動作におけるロックを検出したか否かを判断する。 In step S1208, the lock detection unit 107 determines whether or not the lock in the closing operation of the window 52 is detected.

ステップS1208において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS1208:No)、マイコン100は、図12に示す一連の処理を終了する。 When it is determined in step S1208 that “the lock in the closing operation of the window 52 has not been detected” (step S1208: No), the microcomputer 100 ends the series of processes illustrated in FIG.

一方、ステップS1208において、「窓52の閉動作におけるロックを検出した」と判断された場合(ステップS1208:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS1209)。そして、モータ制御部110が、式{x<(b−Δ)}を満たすか否かを判断する(ステップS1210)。 On the other hand, when it is determined in step S1208 that “the lock in the closing operation of the window 52 is detected” (step S1208: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S1209). Then, the motor control unit 110 determines whether or not the expression {x<(b−Δ)} is satisfied (step S1210).

ステップS1210において、「式{(x<(b−Δ)}を満たす」と判断された場合(ステップS1210:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS1211)。そして、マイコン100は、図12に示す一連の処理を終了する。 When it is determined in step S1210 that “the expression {(x<(b−Δ)} is satisfied” (step S1210: Yes), the motor control unit 110 closes the window 52 to the fully closed position (step S1211). Then, the microcomputer 100 ends the series of processes shown in FIG.

一方、ステップS1210において、「式{(x<(b−Δ)}を満たさない」と判断された場合(ステップS1210:No)、モータ制御部110が、式{x>(b+Δ)}を満たすか否かを判断する(ステップS1212)。 On the other hand, when it is determined in step S1210 that “the expression {(x<(b−Δ)} is not satisfied” (step S1210: No), the motor control unit 110 satisfies the expression {x>(b+Δ)}. It is determined whether or not (step S1212).

ステップS1212において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS1212:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS1213)。そして、マイコン100は、ステップS1216へ処理を進める。 When it is determined in step S1212 that “the expression {(x>(b+Δ)} is satisfied” (step S1212: Yes), the motor control unit 110 reverses the window 52 (step S1213), and the microcomputer 100. Advances the process to step S1216.

一方、ステップS1212において、「式{(x>(b+Δ)}を満たさない」と判断された場合(ステップS1212:No)、モータ制御部110が、窓52を反転動作させる(ステップS1214)。また、モータ制御部110が、窓52の自動閉動作を禁止する(ステップS1215)。そして、マイコン100は、ステップS1216へ処理を進める。 On the other hand, when it is determined in step S1212 that “the expression {(x>(b+Δ)} is not satisfied” (step S1212: No), the motor control unit 110 reverses the window 52 (step S1214). The motor control unit 110 prohibits the automatic closing operation of the window 52 (step S1215), and the microcomputer 100 advances the process to step S1216.

ステップS1216では、誤差算出部109が、スイッチ40の閉動作回数Nup、開動作回数Ndown、および反転動作回数Npinchに基づいて、窓52の開閉位置の誤差Δを更新する。その後、マイコン100は、ステップS1202へ処理を戻す。 In step S1216, the error calculation unit 109 updates the error Δ in the opening/closing position of the window 52 based on the number of times Nup of the switch 40, the number of times Nopen of the switch 40, and the number of times Np of the reversing operation. After that, the microcomputer 100 returns the process to step S1202.

例えば、ステップS1216では、誤差算出部109は、下記数式(4)を用いて、窓52の開閉位置の誤差Δ(更新後の値)を算出する。 For example, in step S1216, the error calculation unit 109 calculates the error Δ (updated value) in the opening/closing position of the window 52 using the following mathematical expression (4).

Δ=Eup・Nup Fup
+Edown・Ndown Fdown
+Epinch・Npinch Fpinch・・・(4)
Δ=E up ·N up Fup
+E down・N down F down
+E pinch・N pinch Fpinch・・・(4)

上記数式(4)によって求められる誤差Δは、スイッチ40の閉動作回数Nupによる窓52の開閉位置の誤差と、スイッチ40の開動作回数Ndownによる窓52の開閉位置の誤差と、スイッチ40の反転動作回数Npinchによる窓52の開閉位置の誤差とが足し合されたものである。 The error Δ obtained by the above mathematical expression (4) is the error in the opening/closing position of the window 52 due to the number of times Nup of closing operation of the switch 40, the error in the opening/closing position of the window 52 due to the number of times Ndown of opening operation of the switch 40, and the inversion of switch 40 The error of the opening/closing position of the window 52 due to the number of operations Npinch is added.

但し、上記数式(4)において、各パラメータEup,Fup,Edown,Fdown,Epinch,Fpinchには、予め、実機テスト、シミュレーション等によって、窓52毎に個別に求めておいた好適な値が設定される。 However, in the above formula (4), each of the parameters Eup, Fup, Edown, Fdown, Epinch, and Fpinch is set to a suitable value that has been individually obtained for each window 52 in advance by an actual machine test, simulation, or the like. It

例えば、ある実施例では、各指数Fup=1,Fdown=1,Fpinch=1とした場合、各定数Eup=0.23,Edown=2.45,Epinch=3.33とすることが、好適である(すなわち、誤差Δを高精度に算出できる)ことが確認された。 For example, in one embodiment, when each index Fup=1, Fdown=1, Fpinch=1, it is preferable to set each constant Eup=0.23, Edown=2.45, Epinch=3.33. It was confirmed that there is (that is, the error Δ can be calculated with high accuracy).

また、例えば、他の実施例では、各指数Fup=0.5,Fdown=0.5,Fpinch=0.5とした場合、各定数Eup=0.31,Edown=3.57,Epinch=4.48とすることが、好適である(すなわち、誤差Δを高精度に算出できる)ことが確認された。 Further, for example, in another embodiment, when each index Fup=0.5, Fdown=0.5, Fpinch=0.5, each constant Eup=0.31, Edown=3.57, Epinch=4. It was confirmed that the value of 0.48 is suitable (that is, the error Δ can be calculated with high accuracy).

この制御方法によれば、窓52の動作の種類毎(閉動作、開動作、および反転動作毎)に誤差を求め、窓52の動作の種類毎の複数の誤差を足し合わせることにより、窓52の開閉位置の誤差Δを算出するため、窓52の動作の種類毎に生じる誤差が異なる場合であっても、より高精度に、窓52の開閉位置の誤差Δを算出することができる。したがって、この制御方法によれば、窓52のロック時の動作(閉動作または反転動作)の制御を、より高精度に行うことができる。 According to this control method, an error is obtained for each type of operation of the window 52 (closing operation, opening operation, and reversing operation), and a plurality of errors for each type of operation of the window 52 are added to obtain the window 52. Since the error Δ of the opening/closing position is calculated, it is possible to calculate the error Δ of the opening/closing position of the window 52 with higher accuracy even when the error generated for each type of operation of the window 52 is different. Therefore, according to this control method, the operation of closing the window 52 (closing operation or reversing operation) can be controlled with higher accuracy.

(マイコン100の追加機能)
本発明の一実施形態に係るマイコン100は、以下に示す複数の追加機能のうち、少なくともいずれか一つを有してもよい。
(Additional function of microcomputer 100)
The microcomputer 100 according to the embodiment of the present invention may have at least one of a plurality of additional functions described below.

(バックラッシュ対策機能)
窓52が全閉位置に移動したときに、モータ54の駆動を停止したにも関わらず、ウェザーストリップにおいて生じる弾性力により、窓52が反転方向に僅かに移動してしまう。これにより、窓52の開閉位置に誤差が生じてしまう。ここでは、この誤差を「バックラッシュ」と呼ぶ。マイコン100は、モータ54を流れる電流Imのリップル成分に基づいて窓の移動量を検出しているため、モータ54の駆動停止時に生じるバックラッシュを検出することができない。
(Backlash countermeasure function)
When the window 52 moves to the fully closed position, the window 52 slightly moves in the reversing direction due to the elastic force generated in the weather strip even though the driving of the motor 54 is stopped. This causes an error in the opening/closing position of the window 52. Here, this error is called "backlash". Since the microcomputer 100 detects the movement amount of the window based on the ripple component of the current Im flowing through the motor 54, it cannot detect the backlash that occurs when the driving of the motor 54 is stopped.

そこで、マイコン100は、窓52が全閉位置に位置する直前(窓52がウェザーストリップに突き当たる直前)に、モータ駆動回路10によるモータ54の駆動電圧(実効電圧)をPWM制御によって低くしてもよい。 Therefore, the microcomputer 100 reduces the drive voltage (effective voltage) of the motor 54 by the motor drive circuit 10 by PWM control immediately before the window 52 is located at the fully closed position (immediately before the window 52 hits the weather strip). Good.

例えば、図13は、本発明の一実施形態に係るマイコン100によるモータ54の駆動電圧の制御プロファイルの一例を示す図である。図13に示す例では、窓52が全閉位置に位置する直前に、モータ54の駆動電圧(実効電圧)を「16V」(バッテリ電圧)から「9V」(リップル成分を検出可能な最低電圧値)に低めている。 For example, FIG. 13 is a diagram showing an example of a control profile of the drive voltage of the motor 54 by the microcomputer 100 according to the embodiment of the present invention. In the example shown in FIG. 13, the drive voltage (effective voltage) of the motor 54 is changed from “16V” (battery voltage) to “9V” (the lowest voltage value at which the ripple component can be detected) immediately before the window 52 is located at the fully closed position. ) Is low.

これにより、マイコン100は、窓52がウェザーストリップに突き当たるときのモータ54の駆動トルクτを低めて、ウェザーストリップにおいて生じる弾性力を弱めることができ、したがって、バックラッシュの発生量を抑制することができる。 As a result, the microcomputer 100 can reduce the drive torque τ of the motor 54 when the window 52 hits the weather strip and weaken the elastic force generated in the weather strip, thus suppressing the amount of backlash generated. it can.

また、マイコン100は、窓52がウェザーストリップに突き当たるときのバッテリ電圧に基づいて、バックラッシュの発生量を算出し、算出されたバックラッシュの発生量を用いて、窓52の開閉位置を補正してもよい。 Further, the microcomputer 100 calculates the amount of backlash generated based on the battery voltage when the window 52 hits the weather strip, and corrects the opening/closing position of the window 52 using the calculated amount of backlash generated. May be.

例えば、図14は、本発明の一実施形態に係る開閉システム1におけるバッテリ電圧とバックラッシュの発生量との関係を表す図である。図14に示すように、バックラッシュの発生量は、窓52がウェザーストリップに突き当たるときのバッテリ電圧E[V]の関数(A×E[V]+B)によって算出することができる。但し、各パラメータA,Bには、予め、実機テスト、シミュレーション等によって、窓52毎に個別に求めておいた好適な値が設定される。例えば、図14では、A=1.9424, B=−13.508とすることが好適である例を表している。 For example, FIG. 14 is a diagram showing the relationship between the battery voltage and the amount of backlash generated in the switching system 1 according to the embodiment of the present invention. As shown in FIG. 14, the amount of backlash generated can be calculated by a function (A×E[V]+B) of the battery voltage E[V] when the window 52 hits the weather strip. However, the respective parameters A and B are set to suitable values which have been individually obtained for each window 52 in advance by actual machine tests, simulations and the like. For example, FIG. 14 shows an example in which it is preferable to set A=1.9424 and B=-13.508.

(窓52の開閉位置の補正機能)
マイコン100は、各種変動要因(例えば、経年劣化、気温変動等)を考慮し、所定の補正タイミングで、窓52の全閉位置および全開位置を補正してもよい。所定の補正タイミングとしては、例えば、エンジン起動毎、一定期間毎(例えば、1か月毎)、エンジン起動時の気温が前回より一定値(例えば、10℃)以上変化する毎、等(但し、これらに限らない)が挙げられる。
(Correction function of the opening/closing position of the window 52)
The microcomputer 100 may correct the fully closed position and the fully open position of the window 52 at a predetermined correction timing in consideration of various fluctuation factors (for example, deterioration over time, temperature fluctuations, etc.). The predetermined correction timing may be, for example, every time the engine is started, at regular intervals (for example, once a month), whenever the temperature at engine startup changes by a constant value (for example, 10° C.) or more from the previous time, etc. (however, (Not limited to these).

例えば、マイコン100は、所定の補正タイミングにおいて、窓52が上端で停止したときに、窓52の全閉位置のカウント数を、「0」に補正する。但し、マイコン100は、上記のとおりバックラッシュの発生量を算出する場合、窓52が上端で停止したときに、窓52の全閉位置のカウント値を、「0+バックラッシュ発生量」に補正する。 For example, the microcomputer 100 corrects the count number at the fully closed position of the window 52 to “0” when the window 52 stops at the upper end at a predetermined correction timing. However, when calculating the backlash occurrence amount as described above, the microcomputer 100 corrects the count value at the fully closed position of the window 52 to “0+backlash occurrence amount” when the window 52 stops at the upper end. ..

また、例えば、マイコン100は、所定の補正タイミングにおいて、窓52が上端で停止した後、窓52が下端で停止したときに、窓52の全開位置のカウント値を、そのときのカウント値に補正する。 Further, for example, the microcomputer 100 corrects the count value of the fully open position of the window 52 to the count value at that time when the window 52 stops at the upper end and then the window 52 stops at the lower end at a predetermined correction timing. To do.

なお、マイコン100は、窓52の全閉位置の補正と、窓52の全開位置の補正とを、互いに同じタイミングで行ってもよく、互いに異なるタイミングで行ってもよい。また、マイコン100は、窓52の全閉位置の補正の頻度と、窓52の全開位置の補正の頻度とを、互いに同一としてもよく、互いに異ならせてもよい。例えば、マイコン100は、窓52の全閉位置の補正を1か月毎に行い、窓52の全開位置の補正を2か月毎に行ってもよい。また、例えば、マイコン100は、窓52の全閉位置の補正をエンジン起動毎に行い、窓52の全開位置の補正を窓52が下端に位置する毎に行ってもよい。 The microcomputer 100 may perform the correction of the fully closed position of the window 52 and the correction of the fully open position of the window 52 at the same timing or at different timings. Further, the microcomputer 100 may set the frequency of correction of the fully closed position of the window 52 and the frequency of correction of the fully open position of the window 52 to be the same or different from each other. For example, the microcomputer 100 may perform the correction of the fully closed position of the window 52 every one month and the correction of the fully open position of the window 52 every two months. Further, for example, the microcomputer 100 may correct the fully closed position of the window 52 each time the engine is started, and may perform the correction of the fully open position of the window 52 each time the window 52 is located at the lower end.

なお、マイコン100は、窓52の位置を、リップル成分のカウント値で表してもよく、リップル成分のカウント値を所定の変換式によって変換して表してもよい。但し、窓52の位置を、リップル成分のカウント値で表すことにより、変換式が不要となるため、制御プログラムを簡素化できる点で好ましい。 The microcomputer 100 may represent the position of the window 52 by a ripple component count value, or may convert the ripple component count value by a predetermined conversion formula. However, by expressing the position of the window 52 by the count value of the ripple component, a conversion formula is not required, which is preferable in that the control program can be simplified.

以上、本発明の一実施形態について詳述したが、本発明はこれらの実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形又は変更が可能である。 As described above, one embodiment of the present invention has been described in detail, but the present invention is not limited to these embodiments, and within the scope of the gist of the present invention described in the claims, various modifications or It can be changed.

例えば、上記実施形態では、回転量検出部104が、電流検出回路30から出力される電流信号に基づいて、モータ54の回転軸の回転量を検出し、回転負荷算出部106が、電流検出回路30から出力される電流信号に基づいて、モータ54の回転軸の回転負荷を算出するようにしているが、これに限らない。例えば、モータ54にホールセンサが設けられている場合、回転量検出部104が、ホールセンサから出力されるパルス信号に基づいて、モータ54の回転軸の回転量を検出し、回転負荷算出部106が、回転速度、バッテリ電圧、モータ固有の定数に基づいて、モータ54の回転軸の回転負荷を算出するようにしてもよい。 For example, in the above embodiment, the rotation amount detection unit 104 detects the rotation amount of the rotation shaft of the motor 54 based on the current signal output from the current detection circuit 30, and the rotation load calculation unit 106 causes the rotation load calculation unit 106 to detect the rotation amount. Although the rotational load of the rotating shaft of the motor 54 is calculated based on the current signal output from 30, the invention is not limited to this. For example, when the motor 54 is provided with a Hall sensor, the rotation amount detection unit 104 detects the rotation amount of the rotation shaft of the motor 54 based on the pulse signal output from the Hall sensor, and the rotation load calculation unit 106. However, the rotation load of the rotation shaft of the motor 54 may be calculated based on the rotation speed, the battery voltage, and the constant peculiar to the motor.

また、例えば、上記実施形態において、位置算出部105は、モータ制御部110がモータ54を駆動する毎に、窓52の開閉位置を、モータ54の駆動停止時の慣性移動量に応じた一定の補正値で補正するようにしてもよい。これにより、位置算出部105は、窓52の開閉位置を、より高精度に算出することができる。 Further, for example, in the above-described embodiment, the position calculation unit 105 sets the opening/closing position of the window 52 to a constant value according to the amount of inertial movement when the drive of the motor 54 is stopped, each time the motor control unit 110 drives the motor 54. You may make it correct|amend with a correction value. Accordingly, the position calculation unit 105 can calculate the opening/closing position of the window 52 with higher accuracy.

1 開閉システム
2 ドア
2A 窓枠
10 モータ駆動回路
20 電圧検出回路
30 電流検出回路(電流検出手段)
40 スイッチ
50 パワーウインドウ装置
52 窓(開閉部材)
54 モータ
100 マイコン(制御装置,コンピュータ)
101 操作信号取得部
102 電圧値取得部
103 電流値取得部
104 回転量検出部
105 位置算出部
106 回転負荷算出部
107 ロック検出部
108 計数部
109 誤差算出部
110 モータ制御部
1 Opening/closing system 2 Door 2A Window frame 10 Motor drive circuit 20 Voltage detection circuit 30 Current detection circuit (current detection means)
40 switch 50 power window device 52 window (opening/closing member)
54 motor 100 microcomputer (control device, computer)
101 Operation Signal Acquisition Unit 102 Voltage Value Acquisition Unit 103 Current Value Acquisition Unit 104 Rotation Amount Detection Unit 105 Position Calculation Unit 106 Rotational Load Calculation Unit 107 Lock Detection Unit 108 Counting Unit 109 Error Calculation Unit 110 Motor Control Unit

Claims (19)

開閉部材の開閉動作を制御する開閉システムであって、
スイッチと、
前記開閉部材を開閉動作させるモータと、
前記スイッチから出力される操作信号に応じて、前記モータを制御する制御装置と
を備え、
前記制御装置は、
前記スイッチの操作回数を計数する計数部と、
前記モータの回転軸の回転量を検出する回転量検出部と、
前記開閉部材の閉動作におけるロックを検出するロック検出部と、
前記回転量に基づいて、前記開閉部材の開閉位置を算出する位置算出部と、
前記操作回数に応じた前記開閉位置の誤差Δを算出する誤差算出部と、
前記ロックが検出された場合において、式{x<(b−Δ)}を満たす場合、前記開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、前記開閉部材を反転動作させるモータ制御部と
を備えることを特徴とする開閉システム。
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。
An opening/closing system for controlling the opening/closing operation of an opening/closing member,
Switch,
A motor for opening and closing the opening and closing member,
A control device for controlling the motor according to an operation signal output from the switch,
The control device is
A counting unit that counts the number of times the switch is operated,
A rotation amount detection unit that detects the rotation amount of the rotation shaft of the motor,
A lock detection unit that detects a lock in the closing operation of the opening/closing member,
A position calculation unit that calculates the opening/closing position of the opening/closing member based on the rotation amount;
An error calculation unit that calculates an error Δ of the open/closed position according to the number of operations,
When the lock is detected, if the expression {x<(b−Δ)} is satisfied, the opening/closing member is closed to the fully closed position, and if the expression {x>(b+Δ)} is satisfied, the opening/closing member is An opening/closing system comprising: a motor control unit for reversing.
Here, x represents the opening/closing position of the opening/closing member according to the distance from the fully closed position to the upper end of the opening/closing member, and b represents the distance from the fully closed position to the lower end of the non-inverting region.
前記モータ制御部は、
前記ロックが検出された場合において、式{x≧(b−Δ)}および式{x≦(b+Δ)}の双方を満たす場合、前記開閉部材を反転動作させるとともに、以降の前記開閉部材の自動閉動作を禁止する
ことを特徴とする請求項1に記載の開閉システム。
The motor control unit,
When both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)} are satisfied in the case where the lock is detected, the opening/closing member is reversed and the opening/closing member is automatically operated thereafter. The opening/closing system according to claim 1, wherein a closing operation is prohibited.
前記モータ制御部は、
前記ロックが検出された場合において、式{x≧(b−Δ)}および式{x≦(b+Δ)}の双方を満たし、且つ、前記ロックが前回検出されたときとxが同じである場合、前記開閉部材を全閉位置まで閉動作させる
ことを特徴とする請求項1に記載の開閉システム。
The motor control unit,
When the lock is detected, both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)} are satisfied, and x is the same as when the lock was detected last time. The opening/closing system according to claim 1, wherein the opening/closing member is closed to a fully closed position.
前記誤差算出部は、
前記操作回数のべき乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項1から3のいずれか一項に記載の開閉システム。
The error calculation unit,
The opening/closing system according to any one of claims 1 to 3, wherein the error Δ is calculated by multiplying a power of the number of operations by a predetermined constant.
前記誤差算出部は、
前記操作回数の1/2乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項4に記載の開閉システム。
The error calculation unit,
The opening/closing system according to claim 4, wherein the error Δ is calculated by multiplying the 1/2 power of the number of operations by a predetermined constant.
前記誤差算出部は、
前記操作回数に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項1から3のいずれか一項に記載の開閉システム。
The error calculation unit,
The opening/closing system according to any one of claims 1 to 3, wherein the error Δ is calculated by multiplying the number of operations by a predetermined constant.
前記開閉部材が前記全閉位置に達したとき、
前記計数部は、前記操作回数をリセットし、
前記位置算出部は、前記開閉位置をリセットする
ことを特徴とする請求項1から6のいずれか一項に記載の開閉システム。
When the opening/closing member reaches the fully closed position,
The counting unit resets the number of operations,
The opening/closing system according to any one of claims 1 to 6, wherein the position calculation unit resets the opening/closing position.
前記開閉部材が全開位置に達したとき、
前記計数部は、前記操作回数をリセットし、
前記位置算出部は、前記開閉位置をリセットする
ことを特徴とする請求項1から7のいずれか一項に記載の開閉システム。
When the opening/closing member reaches the fully open position,
The counting unit resets the number of operations,
The opening/closing system according to any one of claims 1 to 7, wherein the position calculation unit resets the opening/closing position.
前記操作回数が所定回数に達した場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させ、
前記計数部は、前記操作回数をリセットし、
前記位置算出部は、前記開閉位置をリセットする
ことを特徴とする請求項1から7のいずれか一項に記載の開閉システム。
When the number of operations reaches a predetermined number,
The motor control unit opens the opening/closing member to a fully open position,
The counting unit resets the number of operations,
The opening/closing system according to any one of claims 1 to 7, wherein the position calculation unit resets the opening/closing position.
式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させ、
前記計数部は、前記操作回数をリセットし、
前記位置算出部は、前記開閉位置をリセットする
ことを特徴とする請求項1から8のいずれか一項に記載の開閉システム。
When the expression {Δ>b} is satisfied,
The motor control unit opens the opening/closing member to a fully open position,
The counting unit resets the number of operations,
The opening/closing system according to any one of claims 1 to 8, wherein the position calculation unit resets the opening/closing position.
前記開閉部材が自動閉動作を行っているときに、式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させて、前記操作回数および前記開閉位置がリセットされた後、前記開閉部材を全閉位置まで閉動作させる
ことを特徴とする請求項10に記載の開閉システム。
If the expression {Δ>b} is satisfied while the opening/closing member is performing the automatic closing operation,
The motor control unit opens the open/close member to a fully open position, and after the operation count and the open/close position are reset, closes the open/close member to a fully closed position. Opening and closing system described in.
前記開閉部材が自動開閉動作以外の開閉動作を行っているときに、式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させて、前記操作回数および前記開閉位置がリセットされた後、前記開閉部材を当該開閉動作の開始時の位置まで復帰させる
ことを特徴とする請求項10または11に記載の開閉システム。
When the opening/closing member is performing an opening/closing operation other than the automatic opening/closing operation, when the expression {Δ>b} is satisfied,
The motor control unit opens the opening/closing member to a fully open position, resets the number of operations and the opening/closing position, and then returns the opening/closing member to a position at the start of the opening/closing operation. The opening/closing system according to claim 10 or 11.
前記モータを流れる電流を検出する電流検出手段をさらに備え、
前記回転量検出部は、
前記電流検出手段によって検出された前記電流に含まれるリップル成分の発生数に基づいて、前記回転量を検出し、
前記ロック検出部は、
前記電流検出手段によって検出された前記電流に基づいて、前記開閉部材の閉動作におけるロックを検出する
ことを特徴とする請求項1から12のいずれか一項に記載の開閉システム。
Further comprising current detection means for detecting a current flowing through the motor,
The rotation amount detection unit,
Based on the number of occurrences of ripple components contained in the current detected by the current detection means, to detect the rotation amount,
The lock detector is
The opening/closing system according to any one of claims 1 to 12, wherein a lock in the closing operation of the opening/closing member is detected based on the current detected by the current detecting unit.
前記位置算出部は、
前記モータ制御部が前記モータを駆動する毎に、前記開閉部材の開閉位置を、前記モータの駆動停止時の慣性移動量に応じた所定の補正値で補正する
ことを特徴とする請求項1から13のいずれか一項に記載の開閉システム。
The position calculation unit,
Each time the motor control unit drives the motor, the open/close position of the open/close member is corrected with a predetermined correction value according to the amount of inertial movement when the drive of the motor is stopped. The opening/closing system according to any one of 13 above.
開閉部材の開閉動作を制御する開閉システムであって、
スイッチと、
前記開閉部材を開閉動作させるモータと、
前記スイッチから出力される操作信号に応じて、前記モータを制御する制御装置と
を備え、
前記制御装置は、
前記開閉部材の動作種類毎に動作回数を計数する計数部と、
前記モータの回転軸の回転量を検出する回転量検出部と、
前記開閉部材の閉動作におけるロックを検出するロック検出部と、
前記回転量に基づいて、前記開閉部材の開閉位置を算出する位置算出部と、
前記開閉部材の動作種類毎に動作回数に応じた前記開閉位置の誤差Δを算出する誤差算出部と、
前記ロックが検出された場合において、式{x<(b−Δ)}を満たす場合、前記開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、前記開閉部材を反転動作させるモータ制御部と
を備えることを特徴とする開閉システム。
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。
An opening/closing system for controlling the opening/closing operation of an opening/closing member,
Switch,
A motor for opening and closing the opening and closing member,
A control device for controlling the motor according to an operation signal output from the switch,
The control device is
A counting unit that counts the number of operations for each operation type of the opening/closing member,
A rotation amount detection unit that detects the rotation amount of the rotation shaft of the motor,
A lock detection unit that detects a lock in the closing operation of the opening/closing member,
A position calculation unit that calculates the opening/closing position of the opening/closing member based on the rotation amount;
An error calculation unit that calculates an error Δ of the opening/closing position according to the number of operations for each operation type of the opening/closing member,
When the lock is detected, if the expression {x<(b−Δ)} is satisfied, the opening/closing member is closed to the fully closed position, and if the expression {x>(b+Δ)} is satisfied, the opening/closing member is An opening/closing system comprising: a motor control unit for reversing.
Here, x represents the opening/closing position of the opening/closing member according to the distance from the fully closed position to the upper end of the opening/closing member, and b represents the distance from the fully closed position to the lower end of the non-inverting region.
前記動作種類は、開動作、閉動作、および反転動作を含む
ことを特徴とする請求項15に記載の開閉システム。
The opening/closing system according to claim 15, wherein the operation type includes an opening operation, a closing operation, and a reversing operation.
前記誤差算出部は、
前記動作種類毎に、前記動作回数のべき乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項15または16に記載の開閉システム。
The error calculation unit,
The opening/closing system according to claim 15 or 16, wherein the error Δ is calculated by multiplying the power of the number of operations by a predetermined constant for each of the operation types.
前記誤差算出部は、
前記動作種類毎に、前記動作回数の1/2乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項17に記載の開閉システム。
The error calculation unit,
The opening/closing system according to claim 17, wherein the error Δ is calculated by multiplying the 1/2 power of the number of operations by a predetermined constant for each of the operation types.
前記誤差算出部は、
前記動作種類毎に、前記動作回数に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項15または16に記載の開閉システム。
The error calculation unit,
The opening/closing system according to claim 15 or 16, wherein the error Δ is calculated by multiplying the number of operations by a predetermined constant for each of the operation types.
JP2019213652A 2019-01-31 2019-11-26 opening and closing system Active JP7326131B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019015316 2019-01-31
JP2019015316 2019-01-31

Publications (2)

Publication Number Publication Date
JP2020125671A true JP2020125671A (en) 2020-08-20
JP7326131B2 JP7326131B2 (en) 2023-08-15

Family

ID=72083683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019213652A Active JP7326131B2 (en) 2019-01-31 2019-11-26 opening and closing system

Country Status (1)

Country Link
JP (1) JP7326131B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114320061A (en) * 2021-12-09 2022-04-12 深圳市汇川技术股份有限公司 Method, device, equipment and storage medium for protecting blocked safety door of industrial equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07224576A (en) * 1993-12-17 1995-08-22 Tokai Rika Co Ltd Power window drive control device
JPH09158610A (en) * 1995-12-11 1997-06-17 Tokai Rika Co Ltd Control device of power window regulator for vehicle
JP2002364246A (en) * 2001-06-07 2002-12-18 Alps Electric Co Ltd Power window apparatus for vehicle
JP2004116012A (en) * 2002-09-24 2004-04-15 Toyota Motor Corp Entrapment prevention device
JP2018003427A (en) * 2016-07-01 2018-01-11 アルプス電気株式会社 Opening-closing control device
WO2018207684A1 (en) * 2017-05-10 2018-11-15 アルプス電気株式会社 Opening/closing body control device and opening/closing body control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07224576A (en) * 1993-12-17 1995-08-22 Tokai Rika Co Ltd Power window drive control device
JPH09158610A (en) * 1995-12-11 1997-06-17 Tokai Rika Co Ltd Control device of power window regulator for vehicle
JP2002364246A (en) * 2001-06-07 2002-12-18 Alps Electric Co Ltd Power window apparatus for vehicle
JP2004116012A (en) * 2002-09-24 2004-04-15 Toyota Motor Corp Entrapment prevention device
JP2018003427A (en) * 2016-07-01 2018-01-11 アルプス電気株式会社 Opening-closing control device
WO2018207684A1 (en) * 2017-05-10 2018-11-15 アルプス電気株式会社 Opening/closing body control device and opening/closing body control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114320061A (en) * 2021-12-09 2022-04-12 深圳市汇川技术股份有限公司 Method, device, equipment and storage medium for protecting blocked safety door of industrial equipment

Also Published As

Publication number Publication date
JP7326131B2 (en) 2023-08-15

Similar Documents

Publication Publication Date Title
JP5641008B2 (en) Motor control device and electric power steering device equipped with the same
JP4289570B2 (en) Elevator door control device
CN112437714B (en) Robot control device, robot control method, and robot control program
US20160363939A1 (en) Control device for machine apparatus and gain determination method for friction compensation
JP2012024877A (en) Robot control apparatus
US20180002969A1 (en) Opening/closing control device
US20220090431A1 (en) Open/close control device, open/close control system, open/close control method, and program
JP7326131B2 (en) opening and closing system
US20020024310A1 (en) Entrapment detection device of opening/closing member
JP4063094B2 (en) Opening and closing body pinching detection device
WO2022074703A1 (en) Collision sensing device for robot
CN115336167B (en) Friction compensation device, collision detection device, torque feedforward calculation device, robot control device, and friction compensation method
JP6734714B2 (en) Switching control device
JP3528503B2 (en) Motor control device for opening and closing mechanism
JPH06327279A (en) Electrically driven device
US11970896B2 (en) Opening/closing control device and opening/closing control method
JP3540509B2 (en) Elevator door control device
JP4390539B2 (en) Load characteristic calculation device and motor control device
JP6862274B2 (en) Open / close control device, open / close operation control method and program
JPS6156715B2 (en)
JP7198680B2 (en) Power window control system, control method, and program
JP7022672B2 (en) Open / close control device, open / close control system, open / close control method, and program
JP2019133537A (en) Actuator controller and actuator control method
JP2005307563A (en) Safety device for power window
JP5569722B2 (en) Motor control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220927

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230516

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230619

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230802

R150 Certificate of patent or registration of utility model

Ref document number: 7326131

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150