JP7326131B2 - opening and closing system - Google Patents

opening and closing system Download PDF

Info

Publication number
JP7326131B2
JP7326131B2 JP2019213652A JP2019213652A JP7326131B2 JP 7326131 B2 JP7326131 B2 JP 7326131B2 JP 2019213652 A JP2019213652 A JP 2019213652A JP 2019213652 A JP2019213652 A JP 2019213652A JP 7326131 B2 JP7326131 B2 JP 7326131B2
Authority
JP
Japan
Prior art keywords
opening
closing
window
closing member
error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019213652A
Other languages
Japanese (ja)
Other versions
JP2020125671A (en
Inventor
新一 遠藤
哲 早坂
和義 増田
武彦 菊地
軍安 都
渉 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
Alps Alpine Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alps Electric Co Ltd, Alps Alpine Co Ltd filed Critical Alps Electric Co Ltd
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

Description

本発明は、開閉システムに関する。 The present invention relates to an opening and 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 and closing operation of the window, when an object is detected to be caught in the window, the opening and closing operation of the window is reversed to detect the object. A control method for preventing entrapment (hereinafter referred to as "entrapment prevention control") is known.

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

特開2018-3427号公報JP 2018-3427 A

ところで、特許文献1に開示されている技術では、モータを流れる電流に基づいて、モータの回転量を検出するため、窓の開閉操作が行われる度に、窓の開閉位置の誤差が蓄積されてしまい、挟み込み防止制御を無効化するための境界位置を正確に判定することができず、窓を誤動作させてしまう虞がある。そこで、従来、このような誤動作を回避するために、窓の開閉位置が全開位置または全閉位置に達したときに窓の開閉位置をリセットし、窓の開閉操作の回数が所定回数を超えた場合、窓の開閉位置がリセットされるまで、窓の自動開閉動作を無効化する技術が考案されている。しかしながら、この技術では、操作回数が所定回数を超える度に、窓の自動開閉動作が無効化されてしまうため、ユーザが思ったとおりに窓を開閉操作することができず、ユーザに煩わしさを与えてしまう虞がある。 By the way, in the technique disclosed in Patent Document 1, the amount of rotation of the motor is detected based on the current flowing through the motor. As a result, the boundary position for invalidating the anti-pinch control cannot be accurately determined, and there is a risk that the window will malfunction. Conventionally, in order to avoid such malfunctions, the opening/closing position of the window is reset when the opening/closing position of the window reaches the fully open position or the fully closed position, and the number of times the window is opened/closed exceeds a predetermined number of times. In this case, a technique has been devised to disable 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 and closing operation of the window is invalidated every time the number of operations exceeds a predetermined number of times. There is a risk of giving

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

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

本発明の一実施形態に係る開閉システムのシステム構成を示す図A diagram showing a system configuration of an opening/closing system according to an embodiment of the present invention. 本発明の一実施形態に係るマイコンのハードウェア構成を示す図1 is a diagram showing the hardware configuration of a microcomputer according to an embodiment of the present invention; FIG. 本発明の一実施形態に係るマイコンの機能構成を示す図1 is a diagram showing the functional configuration of a microcomputer according to an embodiment of the present invention; FIG. 本発明の一実施形態に係るマイコンによる制御方法の手順の第1例を示すフローチャート1 is a flow chart showing a first example of a procedure of a control method by a microcomputer according to one embodiment of the present invention; 本発明の一実施形態に係るマイコンの制御による窓の開閉動作の一例を示す図FIG. 4 is a diagram showing an example of opening and closing operations of a window controlled by a microcomputer according to an embodiment of the present invention; 本発明の一実施形態に係るマイコンによる制御方法の手順の第2例を示すフローチャート4 is a flow chart showing a second example of a procedure of a control method by a microcomputer according to one embodiment of the present invention; 本発明の一実施形態に係るマイコンによる制御方法の手順の第3例を示すフローチャート4 is a flow chart showing a third example of a procedure of a control method by a microcomputer according to one embodiment of the present invention; 本発明の一実施形態に係るマイコンによる制御方法の手順の第4例を示すフローチャート4 is a flow chart showing a fourth example of a procedure of a control method by a microcomputer according to one embodiment of the present invention; 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 4 is a diagram showing an example of calculation of an error Δ by a microcomputer according to an embodiment of the present invention; 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 4 is a diagram showing an example of calculation of an error Δ by a microcomputer according to an embodiment of the present invention; 本発明の一実施形態に係るマイコンによる誤差Δの算出例を示す図FIG. 4 is a diagram showing an example of calculation of an error Δ by a microcomputer according to an embodiment of the present invention; 本発明の一実施形態に係るマイコンによる制御方法の手順の第5例を示すフローチャート5 is a flow chart showing a fifth example of a procedure of a control method by a microcomputer according to one embodiment of the present invention; 本発明の一実施形態に係るマイコンによるモータの駆動電圧の制御プロファイルの一例を示す図FIG. 4 is a diagram showing an example of a motor drive voltage control profile by a microcomputer according to an embodiment of the present invention; 本発明の一実施形態に係る開閉システムにおけるバッテリ電圧とバックラッシュの発生量との関係を表す図FIG. 2 is a diagram showing the relationship between the battery voltage and the amount of backlash generated in the switching system according to one 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 the system configuration of an opening/closing system 1 according to one 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. (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 vertically openable and closable with respect to the window frame 2A of the door 2 of the vehicle. When the vehicle is equipped with a power window device 50 for each of the plurality of doors 2, the opening/closing system 1 can be configured by providing each component shown in FIG. 50 can be similarly controlled.

図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 operated by a user to open and close the window 52 . For example, the switch 40 is provided at a user-operable position (for example, a door, a center console, etc.) in the vehicle. The switch 40 is capable of opening operation, automatic opening operation, closing operation, and automatic closing operation. When any operation is performed by the user, 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 switch 40 is operated by the user, the microcomputer 100 supplies a control signal to the motor drive circuit 10 according to the switch operation, and controls the operation of the motor 54 to open and close the window 52. . At this time, the microcomputer 100 can determine whether or not entrapment by the window 52 has occurred using a known determination technique. Then, when the microcomputer 100 determines that an object is pinched by the window 52 , the microcomputer 100 can perform predetermined anti-pinch control for 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 the control signal supplied from the microcomputer 100 . In the example shown in FIG. 1, the motor drive circuit 10 is configured with four switch elements 11 to 14 forming a full bridge circuit. The switch element 11 and the switch element 12 are connected in series between the battery output voltage Vb and the ground. The switch elements 13 and 14 are connected in series between the battery output voltage Vb and the ground, and are provided in parallel with the switch elements 11 and 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 operations of the four switch elements 11 to 14 according to the control signal supplied from the microcomputer 100, thereby controlling the rotation axis of the motor 54 with respect to the two input terminals of the motor 54. It is possible to apply drive voltages having different polarities depending on the direction of rotation of (that is, the direction of opening and closing operation of the window 52).

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

電圧検出回路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 is configured with an amplifier section 21 and an A/D converter 23 . The amplifier 21 amplifies the battery output voltage Vb 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 amplifier section 31, a filter section 32, and an A/D converter 33. A 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 across the shunt resistor RS with a predetermined gain. Filter section 32 removes the switching frequency component from the voltage output from amplifying section 31 . The A/D converter 33 outputs a digital signal representing the voltage output from the filter section 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 microcomputer 100)
FIG. 2 is a diagram showing the hardware configuration of the microcomputer 100 according to one embodiment of the 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 . Each piece of hardware is interconnected 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 . ROM 122 is a non-volatile memory. For example, the ROM 122 stores programs executed by the CPU 121, data necessary for the CPU 121 to execute the programs, 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 programs. External I/F 125 controls data input/output to/from motor drive circuit 10 , voltage detection circuit 20 , current detection circuit 30 , and switch 40 .

(マイコン100の機能構成)
図3は、本発明の一実施形態に係るマイコン100の機能構成を示す図である。図3に示すように、マイコン100は、操作信号取得部101、電圧値取得部102、電流値取得部103、回転量検出部104、位置算出部105、回転負荷算出部106、ロック検出部107、計数部108、誤差算出部109、およびモータ制御部110を備える。
(Functional configuration of microcomputer 100)
FIG. 3 is a diagram showing the functional configuration of the microcomputer 100 according to one embodiment of the invention. As shown 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. , a counting unit 108 , an error calculating unit 109 , and a motor control unit 110 .

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

操作信号取得部101は、スイッチ40から出力された操作信号を取得する。例えば、スイッチ40は、開操作、自動開操作、閉操作、および自動閉動作が可能である。ユーザによってスイッチ40のいずれかの操作がなされた場合、スイッチ40は、当該操作に応じた操作信号を出力する。そして、操作信号取得部101は、スイッチ40から出力された操作信号を取得する。 The operation signal acquisition section 101 acquires an operation signal output from the switch 40 . For example, switch 40 is capable of opening, automatically opening, closing, and automatically closing actions. When any of the switches 40 is operated by the user, the switch 40 outputs an operation signal according to the operation. 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 acquiring unit 102 acquires a voltage signal indicating the output voltage Vb of the battery output from the voltage detection circuit 20 . The current value acquisition unit 103 acquires a current signal indicating the current Im flowing through the motor 54 and output from the current detection circuit 30 .

回転量検出部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 rotating shaft of the motor 54 based on the current signal acquired by the current value acquisition unit 103 . Specifically, based on the current signal acquired by the current value acquisition unit 103, the rotation amount detection unit 104 converts a frequency component signal, which is included in the current Im flowing through the motor 54, into a ripple component. To detect. A ripple component is generated in the current Im flowing through the motor 54 each time the rotary shaft of the motor 54 rotates by a certain angle. Therefore, the rotation amount detection unit 104 can detect the rotation amount of the rotating shaft of the motor 54 based on the number of occurrences of ripple components contained in the current Im flowing through the motor 54 . In this embodiment, the number of occurrences of ripple components is used as it is as a value representing the amount of rotation of the rotating 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 determines the opening/closing position of the window 52 (window height position within the frame 2A). For example, in the present embodiment, the amount of movement of the window 52 is proportional to the amount of rotation of the rotary shaft of the motor 54 (that is, the number of ripple components generated). Therefore, in this embodiment, the count value of the ripple component is used as it is as the value representing the open/closed position of the window. Specifically, in this embodiment, when the window 52 is in 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 as the window 52 opens. The count value of the ripple component representing the opening/closing position of the window 52 is gradually increased as the opening and closing position of the window 52 increases. The position calculation unit 105 adds (in the case of the opening operation) or subtracts (in the case of the closing operation) the number of ripple components generated during the opening/closing operation from the ripple component count value representing the opening/closing position of the window 52 before the opening/closing operation. ), it is possible to calculate the count value of the ripple component representing the opening/closing position of the window 52 after the opening/closing operation. Therefore, every time the position calculator 105 calculates the count value of the ripple component representing the opening/closing position of the window 52 after the opening/closing operation, the count value is stored in the memory of 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に応じて算出される誤差Δもリセットされる。 Note that the position calculator 105 resets the open/close position of the window 52 when the window 52 reaches the fully closed position and when the window 52 reaches the fully open position. Specifically, when the window 52 reaches the fully closed position, the position calculator 105 sets the ripple component count value representing the open/closed position of the window 52 to “0”. Further, the position calculator 105 sets the count value of the ripple component representing the open/closed position of the window 52 to a predetermined maximum value when the window 52 reaches the fully open position. Thereby, the position calculation unit 105 can reset the error Δ of the opening/closing position of the window 52 . Note that when the window 52 reaches the fully closed position and when the window 52 reaches the fully open position, the counter 108 simultaneously sets the switch 40 operation count N to 0, so that the switch 40 is operated. Reset the number N. Accordingly, the error Δ calculated by the error calculator 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 calculator 106 calculates the rotational load of the rotating shaft of the motor 54 based on the current signal acquired by the current value acquirer 103 . In this embodiment, the rotational load calculator 106 calculates the drive torque τ of the motor 54 as a value representing the rotational load of the rotating shaft of the motor 54 . This is because the drive 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 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, using the formula {τ=Kt×Im −Tm}, the driving torque τ of the motor 54 is calculated. However, Kt and Tm are constants specific to the motor 54 .

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

計数部108は、スイッチ40の操作回数Nを計数する。例えば、計数部108は、スイッチ40の操作回数Nを記憶しておき、操作信号取得部101によって操作信号が取得される毎に、操作回数Nに1を加算する。 A counting unit 108 counts the number of operations N of the switch 40 . 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 every 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 Δ of the opening/closing position of the window 52 according to the number of times N of operations of the switch 40 . For example, the error calculator 109 calculates the error Δ of the open/closed position of the window 52 using the following formula (1). However, σ 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 0007326131000001
Figure 0007326131000001

これに限らず、誤差算出部109は、下記数式(2),(3)、または、その他の数式(少なくとも操作回数Nが増加するにつれて、誤差Δが増加するもの)により、窓52の開閉位置の誤差Δを算出してもよい。 Not limited to this, the error calculation unit 109 calculates the open/closed position of the window 52 using the following formulas (2) and (3) or other formulas (at least the error Δ increases as the number of operations N increases). 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 supplies a control signal to the motor drive circuit 10 according to the operation signal acquired by the operation signal acquisition unit 101 to control the motor 54 , thereby controlling the opening/closing operation of the window 52 .

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

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

また、モータ制御部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 fully closed. By supplying the motor driving circuit 10 with a control signal for rotating the rotating shaft of the motor 54 in the first direction (direction to close the window), the window 52 is automatically closed.

また、モータ制御部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 “automatic opening operation signal”), the motor control unit 110 causes the window 52 to be fully opened. By supplying the motor drive circuit 10 with a control signal for rotating the rotating shaft of the motor 54 in the second direction (direction to open the window), the window 52 is automatically opened.

例えば、モータ制御部110は、電圧値取得部102によって取得されたバッテリの出力電圧Vbに基づいて実効電圧値Veを算出し、当該実効電圧値Veの駆動電圧を、モータ駆動回路10を介してモータ54に印加することにより、モータ54の出力を制御する。 For example, the motor control unit 110 calculates the effective voltage value Ve based on the battery output voltage Vb 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がウェザーストリップに当接することによって生じたものと考えられるからである。なお、非反転領域とは、全閉位置から下方に所定幅を有して設けられた領域であり、挟み込み防止制御を行わない領域である。 Note that the motor control unit 110 reverses the window 52 when the lock detection unit 107 detects locking while the window 52 is closing and the window is in the non-reversing region. However, if the opening/closing position of the window 52 is within the non-reversing region, the motor control unit 110 does not reverse the window 52 even if the lock detection unit 107 detects locking. It is believed that this locking is caused by the contact of the window 52 with the weatherstrip. The non-reversal area is an area provided with a predetermined width downward from the fully closed position, and is an area in which anti-pinch 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 Δ in the opening/closing position of the window 52 when the lock detection unit 107 detects the lock.

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

また、例えば、モータ制御部110は、ロック検出部107によってロックが検出されたとき、式{x>(b+Δ)}を満たす場合、窓52を反転動作させる。 Further, for example, when the lock is detected by the lock detection unit 107, the motor control unit 110 reverses the window 52 if 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 closes the window 52 if both the formula {x≧(b−Δ)} and the formula {x≦(b+Δ)} are satisfied. In addition to reversing operation, subsequent automatic closing operation of the window 52 is prohibited.

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

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

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

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

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

また、窓52が自動開閉動作以外の開閉動作を行っているときに、式{Δ>b}を満たした場合、モータ制御部110は、窓52を全開位置まで開動作させて、その時の窓52の移動量ΔPを記憶しておき、操作回数Nおよび開閉位置xがリセットされた後、窓52をΔP分戻すことにより、窓52を当該開閉動作の開始時の位置まで復帰させるようにしてもよい。 Further, when the expression {Δ>b} is satisfied while 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 to the fully open position, The movement amount ΔP of the window 52 is stored, and after the number of times of operation N and the opening/closing position x are reset, the window 52 is returned by ΔP to return the window 52 to the position at the start of the opening/closing operation. good too.

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

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

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

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

一方、ステップS402において、「自動閉操作信号を取得した」と判断された場合、(ステップS402:Yes)、計数部108が、操作回数Nに1を加算する(ステップS403)。 On the other hand, if it is determined in step S402 that "an 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 has been detected (step S404).

ステップS404において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS404:No)、マイコン100は、ステップS404の判断処理を再度実行する。 If it is determined in step S404 that "the lock in the closing operation of the window 52 has not been 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, if it is determined in step S404 that "the lock during the closing operation of the window 52 has been detected" (step S404: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S405). Then, the error calculator 109 calculates an error Δ of the opening/closing position of the window 52 according to the number of times N of operations of the switch 40 (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に示す一連の処理を終了する。 In step S407, if it is determined 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 ), and the microcomputer 100 ends the series of processes shown in FIG.

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

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

一方、ステップS409において、「式{(x>(b+Δ)}を満たさない」と判断された場合(ステップS409:No)、モータ制御部110が、窓52を反転動作させる(ステップS411)。また、モータ制御部110が、窓52の自動閉動作を禁止する(ステップS412)。そして、マイコン100は、ステップS402へ処理を戻す。 On the other hand, if 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 an area where it can be determined whether or not an object has been caught, the window 52 is closed to the fully closed position, or the window 52 is reversed. can be operated. On the other hand, according to this control method, when the window 52 is locked in a region in which it is difficult to determine whether or not an object has been caught, the window 52 is reversed in order to ensure safety. automatic closing operation can be prohibited. According to this control method, the automatic opening and closing operation of the window can be continuously performed without compromising safety compared to the conventional control method, such as disabling the automatic opening and closing operation of the window every time the error exceeds a predetermined value. Therefore, it is possible to prevent the user from being troubled.

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

図5においてx1で示すように、窓52の上端部の位置xが、非反転領域の下端部の位置bを基準として上方に誤差Δを加えた位置よりも、さらに上方にある場合(すなわち、式{(x<(b-Δ)}を満たす場合)、モータ制御部110の制御により、窓52は、全閉位置まで閉動作する。この場合、誤差Δを考慮しても、物体の挟み込みが生じている可能性が低いと考えられるからである。 As indicated by x1 in FIG. 5, when the position x of the upper end of the window 52 is higher than the position obtained by adding an error Δ upward with the position b of the lower end of the non-inverted area as a reference (that is, When the formula {(x<(b−Δ)} is satisfied), 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 account, the object cannot be caught. This is because it is considered unlikely that

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

一方、図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 of the window 52 is a position obtained by adding an error Δ upward and an error Δ (that is, when both the formula {(x≧(b−Δ)} and the formula {(x≦(b+Δ)} are satisfied)), the motor control unit 110 controls , the window 52 is reversed and is prohibited from automatically closing thereafter.In this case, considering the error .DELTA., it is difficult to ascertain whether or not an object is caught. This is because the window 52 is reversed and the subsequent automatic closing operation is prohibited, emphasizing safety.

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

まず、マイコン100は、窓52の誤差Δに0を設定し、スイッチ40の操作回数Nに0を設定し、不明反転変数mにFalseを設定する(ステップS601)。 First, the microcomputer 100 sets the error Δ of the window 52 to 0, sets the number of operations N of the switch 40 to 0, and sets the unknown inversion variable m to False (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). If 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, if it is determined in step S602 that "an 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, it is determined whether or not the lock detector 107 has detected lock in the closing operation of the window 52 (step S604).

ステップS604において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS604:No)、マイコン100は、ステップS604の判断処理を再度実行する。 If 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, if it is determined in step S604 that "the lock in the closing operation of the window 52 has been detected" (step S604: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S605). Then, the error calculator 109 calculates an error Δ of the opening/closing position of the window 52 according to the number N of operations of the switch 40 (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に示す一連の処理を終了する。 In step S607, if it is determined 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 ), and the microcomputer 100 ends the series of processes shown in FIG.

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

ステップS609において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS609:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS610)。そして、マイコン100は、ステップS602へ処理を戻す。 In step S609, if it is determined that the expression {(x>(b+Δ)} is satisfied" (step S609: Yes), the motor control unit 110 reverses the window 52 (step S610). 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, if it is determined in step S609 that "the expression {(x>(b+Δ)} is not satisfied" (step S609: No), the motor control unit 110 determines whether True is set to the unknown inversion variable m. If it is determined in step S611 that "the unknown inversion variable m is set to True" (step S611: Yes), the motor control unit 110 controls the opening/closing position x of the window 52. is the same as the previous lock position (step S612).

ステップS612において、「窓52の開閉位置xが前回のロック位置と同じである」と判断された場合(ステップS612:Yes)、モータ制御部110が、窓52を全閉位置まで閉動作させる(ステップS608)。そして、マイコン100は、図6に示す一連の処理を終了する。 If it is determined in step S612 that "the open/close 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, if it is determined in step S611 that "the unknown inversion variable m is not set to True" (step S611: No), or if in step S612 it is determined that "the opening/closing position x of the window 52 is the same as the previous lock position". not the same" (step S612: No), the motor control unit 110 reverses the window 52 (step S613). Also, the motor control unit 110 sets True to the unknown inversion variable m (step S614). Then, the microcomputer 100 returns the process to step S602.

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

(マイコン100による制御方法の手順(第3例))
図7は、本発明の一実施形態に係るマイコン100による制御方法の手順の第3例を示すフローチャートである。
(Procedure of control method by microcomputer 100 (third example))
FIG. 7 is a flow chart showing a third example of the control method procedure by the microcomputer 100 according to one 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 or not an operation signal has been acquired from the switch 40 (step S702). If it is determined in step S702 that "an 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, if it is determined in step S702 that "an operation signal has been obtained" (step S702: Yes), the counting unit 108 adds 1 to the number of operations N, and the position calculation unit 105 adds 1 to the variable P1. The opening/closing position of the window 52 at the start of operation is set (step S703).

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

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

ステップS713において、「窓52の開閉動作が終了していない」と判断された場合(ステップS713:No)、マイコン100は、ステップS704へ処理を戻す。 If it is determined in step S713 that "the opening and closing operation of the window 52 has not ended" (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, if it is determined in step S713 that “the opening/closing operation of the window 52 has ended” (step S713: Yes), the error calculation unit 109 calculates the error in the opening/closing position of the window 52 according to the number N of operations of the switch 40. Δ 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). If 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, if it is determined in step S715 that "equation {Δ>b} is satisfied" (step S715: Yes), motor control unit 110 opens window 52 to the fully open position (step S716). Then, the motor control unit 110 sets the open/close position x of the window 52 at the fully open position to the variable P2, sets the movement amount of the window 52 obtained by P2−P1 to the variable ΔP, and sets the position calculation unit 105. However, by setting the opening/closing position x of the window 52 to a predetermined value corresponding to the lower end position of the window, the opening/closing position x is reset (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 opening/closing position at the start of the opening/closing operation (step S718). Also, the counting unit 108 sets the number of operations N to 1 (step S719). Then, the microcomputer 100 returns the process to step S702.

一方、ステップS704において、「窓52の自動閉動作におけるロックを検出した」と判断された場合(ステップS704:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS705)。そして、誤差算出部109が、スイッチ40の操作回数Nに応じた窓52の開閉位置の誤差Δを算出する(ステップS706)。 On the other hand, if it is determined in step S704 that "the lock in the automatic closing operation of the window 52 has been detected" (step S704: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S705). . Then, the error calculator 109 calculates an error Δ of the opening/closing position of the window 52 according to the number of times N of operations of the switch 40 (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に示す一連の処理を終了する。 In step S707, if it is determined 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 ), and the microcomputer 100 ends the series of processes shown in FIG.

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

ステップS709において、「式{(x>(b+Δ)}を満たす」と判断された場合(ステップS709:Yes)、モータ制御部110が、窓52を反転動作させる(ステップS710)。そして、マイコン100は、ステップS702へ処理を戻す。 In step S709, if it is determined that the expression {(x>(b+Δ)} is satisfied" (step S709: Yes), the motor control unit 110 reverses the window 52 (step S710). 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, if 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 open/close 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 the number of operations N to 0 (step S712). , the microcomputer 100 returns 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-inverted area, the window 52 is opened to the fully open position and the opening/closing position of the window is reset. Δ can be reset, and a situation can be avoided in which, for example, the window 52 cannot be completely closed due to the error Δ becoming larger than the vertical width of the non-inverted region. In particular, according to this control method, the opening operation of the window 52 to the fully open position is performed to reset the open/close position of the window. 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's operation for returning to the position at the start of the operation is unnecessary. Therefore, it is possible to suppress user's annoyance.

(マイコン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 control method procedure by the microcomputer 100 according to one 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). If it is determined in step S802 that "an 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, if it is determined in step S802 that "an operation signal has been obtained" (step S802: Yes), the counting unit 108 adds 1 to the number of operations N, and the position calculation unit 105 adds 1 to the variable P1. The opening/closing position of the window 52 at the start of 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 has been detected (step S804).

ステップS804において、「窓52の自動閉動作におけるロックを検出していない」と判断された場合(ステップS804:No)、マイコン100は、ステップS804の判断処理を再度実行する。 If it is determined in step S804 that "the lock in the automatic closing operation of the window 52 has not been 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, if it is determined in step S804 that "locking of the window 52 during the closing operation has been detected" (step S804: Yes), the position calculation unit 105 determines whether the position at which the window 52 is locked is the fully closed position. (step S805).

ステップS805において、「窓52がロックした位置が全閉位置である」と判断された場合(ステップS805:Yes)、位置算出部105が、窓52の開閉位置xに0を設定することにより、開閉位置xをリセットするとともに、計数部108が、操作回数Nに0を設定することにより、操作回数Nをリセットする(ステップS806)。そして、マイコン100は、図8に示す一連の処理を終了する。 If it is determined in step S805 that "the position at which the window 52 is locked is the fully closed position" (step S805: Yes), the position calculation unit 105 sets the opening/closing position x of the window 52 to 0, The opening/closing position x is reset, and the counting unit 108 resets the number of operations N by setting the number of operations N to 0 (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, if 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 times N of operations is greater than the predetermined number of times. It judges (step S807).

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

一方、ステップS807において、「操作回数Nが所定回数より大きい」と判断された場合(ステップS807:Yes)、モータ制御部110が、窓52を全開位置まで開動作させる(ステップS808)。 On the other hand, if it is determined in step S807 that "the number of operations N is greater than the predetermined number" (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 open/close position x of the window 52 at the fully open position to the variable P2, sets the movement amount of the window 52 obtained by P2−P1 to the variable ΔP, and sets the position calculation unit 105. However, by setting the opening/closing position x of the window 52 to a predetermined value corresponding to the lower end position of the window, the opening/closing position x is reset (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, thereby returning the window 52 to the opening/closing position at the start of the opening/closing operation (step S810). Also, the counting unit 108 sets the number of operations N to 1 (step S811). Then, the microcomputer 100 returns the process 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 to reset the opening/closing position of the window 52. Therefore, the error Δ can be reset. It is possible to avoid a situation in which the window 52 cannot be completely closed due to Δ being larger than the vertical width of the non-inverted area. In particular, according to this control method, the opening operation of the window 52 to the fully open position is performed to reset the open/close position of the window. 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's operation for returning to the position at the start of the operation is unnecessary. Therefore, it is possible to suppress user's annoyance.

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

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

図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 obtained in advance according to individual differences, 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 formula (1) increases as the number of operations N increases. It is roughly approximated. As described above, in the first calculation example, it was confirmed that the error Δ can be calculated with high accuracy by setting an appropriate value for the constant C using the above formula (1).

<第2算出例>
図10は、マイコン100によって上記数式(2)を用いて算出された誤差Δを、実際の窓52に生じた誤差Δと比較して表すものである。図10に示すグラフにおいて、横軸は操作回数Nを表し、縦軸は誤差Δ[リップルカウント]を表す。また、図10に示すグラフおいて、点線は、マイコン100によって上記数式(2)を用いて算出された誤差Δを表し、ドットは、実際に生じた誤差Δを表す。
<Second calculation example>
FIG. 10 compares the error .DELTA. calculated by the microcomputer 100 using the above formula (2) with the actual error .DELTA. 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]. In the graph shown in FIG. 10, the dotted line represents the error .DELTA. calculated by the microcomputer 100 using the above formula (2), and the dots represent the actual error .DELTA.

図10に示す第2算出例では、定数Dとして、個体差に応じて予め求められた好適な値である「0.8135」を設定している。すなわち、図10に示す第2算出例では、式{Δ=0.8135・N}を用いて、誤差Δを算出している。 In the second calculation example shown in FIG. 10, the constant D is set to "0.8135", which is a suitable value obtained in advance according to individual differences. 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 above formula (2) increases linearly as the number of operations N increases. It roughly approximates Δ. As described above, in the 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 above equation (2).

<第3算出例>
図11は、マイコン100によって上記数式(3)を用いて算出された誤差Δを、実際の窓52に生じた誤差Δと比較して表すものである。図11に示すグラフにおいて、横軸は操作回数Nを表し、縦軸は誤差Δ[リップルカウント]を表す。また、図11に示すグラフおいて、点線は、マイコン100によって上記数式(3)を用いて算出された誤差Δを表し、ドットは、実際に生じた誤差Δを表す。
<Third calculation example>
FIG. 11 compares the error .DELTA. calculated by the microcomputer 100 using the above formula (3) with the actual error .DELTA. 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]. In the graph shown in FIG. 11, the dotted line represents the error .DELTA. calculated by the microcomputer 100 using the above formula (3), and the dots represent the actual error .DELTA.

図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 individual differences. Also, the constant D is set to "2.1304", which is a suitable value obtained in advance according to individual differences. 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 formula (3) increases nonlinearly as the number of operations N increases. It roughly approximates Δ. As described above, in the third calculation example, it was confirmed that the error Δ can be calculated with high accuracy by setting appropriate values for the constants C and D using the above equation (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 a counting unit 108 that counts the number of times N of operations of the switch 40, a rotation amount detection unit 104 that detects the amount of rotation of the rotation shaft of the motor 54, and a lock detection unit that detects locking during the closing operation of the window 52. 107, a position calculation unit 105 that calculates the opening/closing position x of the window 52 based on the amount of rotation detected by the rotation amount detection unit 104, and an error that calculates the error Δ of the opening/closing position x according to the number of operations N. When the calculation unit 109 detects that the lock is detected, if the expression {x<(b−Δ)} is satisfied, the window 52 is closed to the fully closed position, and if 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の自動開閉機能を継続的に利用することができ、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 As a result, the opening/closing system 1 of the present embodiment can open the window 52 when it can be determined that an object has not been caught (when the expression {x<(b−Δ)} is satisfied) after considering the error Δ. It can be closed to the fully closed position. In addition, the opening/closing system 1 of the present embodiment can be used when it can be determined that an object is caught (when the expression {x>(b+Δ)} is satisfied) after considering the error Δ, and when the object is caught If it is unclear whether or not this has occurred, the window 52 can be reversed for safety reasons. That is, according to the opening/closing system 1 of the present embodiment, compared with the conventional control method of disabling the automatic opening/closing operation of the window each time the error exceeds a predetermined value, the window can be opened without compromising 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, if the motor control unit 110 satisfies both the formula {x≧(b−Δ)} and the formula {x≦(b+Δ)} when locking is detected, While reversing the window 52, the subsequent automatic closing operation of the window 52 can be prohibited.

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

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

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

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nのべき乗に対して、所定の定数を乗じることにより、誤差Δを算出することができる。 Further, in the opening/closing system 1 of the present embodiment, the error calculator 109 can calculate the error Δ by multiplying the exponentiation 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 to the predetermined constant, and therefore, when the lock is detected, the window It is possible to further improve the determination accuracy of whether or not there is an entrapment by 52 .

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nの1/2乗に対して、所定の定数を乗じることにより、誤差Δを算出することができる。 In addition, in the opening/closing system 1 of the present embodiment, the error calculator 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 to the predetermined constant, and therefore, when the lock is detected, the window It is possible to further improve the determination accuracy of whether or not there is an entrapment by 52 .

また、本実施形態の開閉システム1において、誤差算出部109は、操作回数Nに対して、所定の定数を乗じることにより、誤差Δを算出することができる。 Further, in the opening/closing system 1 of the present embodiment, the error calculator 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 to the predetermined constant, and therefore, when the lock is detected, the window It is possible to further improve the determination accuracy of whether or not there is an entrapment 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 section 108 can reset the number of operations N, and the position calculation section 105 can reset the opening/closing position x.

これにより、本実施形態の開閉システム1は、窓52が全閉位置に達したとき、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 As a result, when the window 52 reaches the fully closed position, the opening/closing system 1 of the present embodiment can match the opening/closing position x calculated by the position calculation unit 105 with the actual opening/closing position of the window. That is, the error Δ can be reduced to 0, and the accuracy of determining whether or not there is entrapment by the window 52 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 open position, the counting section 108 can reset the number of operations N, and the position calculation section 105 can reset the opening/closing position x.

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

また、本実施形態の開閉システム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, the counting unit 108 resets the number of operations N, The position calculator 105 can reset the open/close position x.

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

また、本実施形態の開閉システム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, the counting unit 108 resets the number of operations N, The position calculator 105 can reset the open/close position x.

これにより、本実施形態の開閉システム1は、誤差Δが一定量に達した時、自動的に窓52を全開位置まで開動作させて、位置算出部105によって算出される開閉位置xと、実際の窓の開閉位置とを一致させることができ、すなわち、誤差Δを0にすることができ、よって、その後の窓52による挟み込みであるか否かの判定精度をより高めることができる。 As a result, 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 calculator 105 and the actual In other words, the error .DELTA. can be set to 0. Therefore, it is possible to further improve the accuracy of determining whether or not there is entrapment by the window 52 thereafter.

また、本実施形態の開閉システム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 while the window 52 is automatically closing, the motor control unit 110 causes the window 52 to open to the fully open position. After the operation count N and the opening/closing position x are reset, the window 52 can be closed to the fully closed position.

これにより、本実施形態の開閉システム1は、窓52の開閉位置をリセットした後、窓52を自動閉動作を自動的に再開することができるため、自動閉動作を再開するためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 As a result, 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. Therefore, the user operation for restarting the automatic closing operation is It is unnecessary, and therefore, it is possible to prevent the user from being annoyed.

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

これにより、本実施形態の開閉システム1は、窓52の開閉位置をリセットした後、窓52を操作開始時の位置に自動的に復帰させることができるため、操作開始時の位置に復帰させるためのユーザ操作が不要であり、したがって、ユーザに煩わしさを与えてしまうことを抑制することができる。 As a result, after the opening/closing position of the window 52 is reset, the opening/closing system 1 of the present embodiment can automatically return the window 52 to the position at the start of operation. user operation is unnecessary, and thus it is possible to suppress 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 the current flowing through the motor 54, and the rotation amount detection unit 104 generates a ripple component contained in the current detected by the current detection circuit 30. Based on the number, the amount of rotation is detected, and the lock detector 107 can detect locking 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 of the present embodiment can reduce the cost of the configuration for detecting the amount of rotation.

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

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

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

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

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

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

次に、操作信号取得部101が、スイッチ40から自動閉操作信号または自動開操作信号を取得したか否かを判断する(ステップS1202)。ステップS1202において、「自動閉操作信号または自動開操作信号を取得していない」と判断された場合、(ステップS1202:No)、マイコン100は、ステップS1202の処理を再度実行する。 Next, the operation signal acquisition unit 101 determines whether or not an automatic closing operation signal or an automatic opening operation signal has been acquired from the switch 40 (step S1202). If 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, if 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 determines that the acquired operation signal is the automatic closing operation signal. (step S1203).

ステップS1203において、取得された操作信号が自動閉操作信号であると判断された場合(ステップS1203:Yes)、計数部108が、閉動作回数Nupに1を加算する(ステップS1204)。そして、計数部108が、窓52が反転動作したか否かを判断する(ステップS1205)。 If 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 closing operation count Nup (step S1204). Then, the counting unit 108 determines whether or not the window 52 has been reversed (step S1205).

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

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

ステップS1203において、取得された操作信号が自動閉操作信号ではない(すなわち、自動開操作信号である)と判断された場合(ステップS1203:No)、計数部108が、閉動作回数Ndownに1を加算する(ステップS1207)。そして、マイコン100は、ステップS1208へ処理を進める。 If 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 adds 1 to the closing operation count Ndown. Add (step S1207). Then, the microcomputer 100 advances the process to step S1208.

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

ステップS1208において、「窓52の閉動作におけるロックを検出していない」と判断された場合(ステップS1208:No)、マイコン100は、図12に示す一連の処理を終了する。 If 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 terminates the series of processes shown in FIG.

一方、ステップS1208において、「窓52の閉動作におけるロックを検出した」と判断された場合(ステップS1208:Yes)、位置算出部105が、窓52の開閉位置xを算出する(ステップS1209)。そして、モータ制御部110が、式{x<(b-Δ)}を満たすか否かを判断する(ステップS1210)。 On the other hand, if it is determined in step S1208 that "the lock in the closing operation of the window 52 has been detected" (step S1208: Yes), the position calculation unit 105 calculates the opening/closing position x of the window 52 (step S1209). Then, 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に示す一連の処理を終了する。 In step S1210, if it is determined 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 ), and the microcomputer 100 ends the series of processes shown in FIG.

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

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

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

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

例えば、ステップS1216では、誤差算出部109は、下記数式(4)を用いて、窓52の開閉位置の誤差Δ(更新後の値)を算出する。 For example, in step S1216, the error calculator 109 calculates the error Δ (value after update) of the open/closed position of the window 52 using the following formula (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 F pinch (4)

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

但し、上記数式(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 individually obtained for each window 52 in advance by actual machine test, simulation, or the like. be.

例えば、ある実施例では、各指数Fup=1,Fdown=1,Fpinch=1とした場合、各定数Eup=0.23,Edown=2.45,Epinch=3.33とすることが、好適である(すなわち、誤差Δを高精度に算出できる)ことが確認された。 For example, in one embodiment, if the exponents Fup=1, Fdown=1, Fpinch=1, it is preferable to set the constants Eup=0.23, Edown=2.45, Epinch=3.33. (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 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 (each of closing operation, opening operation, and reversing operation). of the opening/closing position of the window 52, the error .DELTA. Therefore, according to this control method, the operation (closing operation or reversing operation) of the window 52 when locked can be controlled with higher accuracy.

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

(バックラッシュ対策機能)
窓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 reverse 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 amount of movement 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 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 positioned 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 driving voltage of the motor 54 by the microcomputer 100 according to one embodiment of the invention. In the example shown in FIG. 13, the driving voltage (effective voltage) of the motor 54 is changed from "16 V" (battery voltage) to "9 V" (the minimum voltage value at which the ripple component can be detected) immediately before the window 52 is positioned at the fully closed position. ).

これにより、マイコン100は、窓52がウェザーストリップに突き当たるときのモータ54の駆動トルクτを低めて、ウェザーストリップにおいて生じる弾性力を弱めることができ、したがって、バックラッシュの発生量を抑制することができる。 As a result, the microcomputer 100 can reduce the driving torque τ of the motor 54 when the window 52 hits the weatherstrip, thereby weakening the elastic force generated in the weatherstrip, thereby suppressing the amount of backlash. 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 weatherstrip, and corrects the opening/closing position of the window 52 using the calculated amount of backlash generated. may

例えば、図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 one 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 weatherstrip. However, the parameters A and B are set to suitable values that are obtained individually for each window 52 in advance by actual machine tests, simulations, or 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 opening/closing position of window 52)
The microcomputer 100 may correct the fully-closed position and the fully-opened position of the window 52 at a predetermined correction timing in consideration of various fluctuation factors (for example, aging deterioration, temperature fluctuation, etc.). As the predetermined correction timing, for example, every time the engine is started, every certain period (for example, every month), every time the temperature at the time of engine startup changes by a certain value (for example, 10° C.) or more from the previous time, etc. (However, but not limited to these).

例えば、マイコン100は、所定の補正タイミングにおいて、窓52が上端で停止したときに、窓52の全閉位置のカウント数を、「0」に補正する。但し、マイコン100は、上記のとおりバックラッシュの発生量を算出する場合、窓52が上端で停止したときに、窓52の全閉位置のカウント値を、「0+バックラッシュ発生量」に補正する。 For example, the microcomputer 100 corrects the count number of 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 amount of backlash generated as described above, the microcomputer 100 corrects the count value of the fully closed position of the window 52 to "0+the amount of backlash generated" 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 lower end after the window 52 stops at the upper end at a predetermined correction timing. 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 correcting the fully closed position of the window 52 and the frequency of correcting the fully open position of the window 52 to be the same or different. For example, the microcomputer 100 may correct the fully closed position of the window 52 every month and correct 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 correct the fully open position of the window 52 each time the window 52 is positioned 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 represent the ripple component count value by converting it using a predetermined conversion formula. However, expressing the position of the window 52 by the count value of the ripple component eliminates the conversion formula, which is preferable in that the control program can be simplified.

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

例えば、上記実施形態では、回転量検出部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 detects the current detection circuit. Although the rotation load of the rotation shaft of the motor 54 is calculated based on the current signal output from 30, the present 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, battery voltage, and motor-specific constants.

また、例えば、上記実施形態において、位置算出部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 certain value according to the amount of inertial movement when the motor 54 is stopped, every time the motor control unit 110 drives the motor 54 . You may make it correct|amend by 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 モータ制御部
REFERENCE SIGNS LIST 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 rotation 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-Δ)}および式{x≦(b+Δ)}の双方を満たす場合、前記開閉部材を反転動作させるとともに、以降の前記開閉部材の自動閉動作を禁止する
ことを特徴とする開閉システム。
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。
An opening/closing system for controlling the opening/closing operation of an opening/closing member,
a switch;
a motor that opens and closes the opening and closing member;
a control device that controls the motor in response to an operation signal output from the switch,
The control device is
a counting unit that counts the number of operations of the switch;
a rotation amount detection unit that detects the amount of rotation of the rotation shaft of the motor;
a lock detection unit that detects locking in the closing operation of the opening/closing member;
a position calculation unit that calculates an opening/closing position of the opening/closing member based on the amount of rotation;
an error calculation unit that calculates an error Δ of the opening/closing 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 and a motor control unit that reverses the
The motor control unit
When the lock is detected and both the expression {x≧(b−Δ)} and the expression {x≦(b+Δ)} are satisfied, the opening/closing member is reversely operated, and the subsequent opening/closing member is automatically operated. Prohibit closing action
An opening and closing system characterized by:
However, x represents the opening/closing position of the opening/closing member corresponding 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-reversal area.
開閉部材の開閉動作を制御する開閉システムであって、
スイッチと、
前記開閉部材を開閉動作させるモータと、
前記スイッチから出力される操作信号に応じて、前記モータを制御する制御装置と
を備え、
前記制御装置は、
前記スイッチの操作回数を計数する計数部と、
前記モータの回転軸の回転量を検出する回転量検出部と、
前記開閉部材の閉動作におけるロックを検出するロック検出部と、
前記回転量に基づいて、前記開閉部材の開閉位置を算出する位置算出部と、
前記操作回数に応じた前記開閉位置の誤差Δを算出する誤差算出部と、
前記ロックが検出された場合において、式{x<(b-Δ)}を満たす場合、前記開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、前記開閉部材を反転動作させるモータ制御部と
を備え、
前記モータ制御部は、
前記ロックが検出された場合において、式{x≧(b-Δ)}および式{x≦(b+Δ)}の双方を満たし、且つ、前記ロックが前回検出されたときとxが同じである場合、前記開閉部材を全閉位置まで閉動作させる
ことを特徴とする開閉システム。
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。
An opening/closing system for controlling the opening/closing operation of an opening/closing member,
a switch;
a motor that opens and closes the opening and closing member;
a control device that controls the motor in response to an operation signal output from the switch;
with
The control device is
a counting unit that counts the number of operations of the switch;
a rotation amount detection unit that detects the amount of rotation of the rotation shaft of the motor;
a lock detection unit that detects locking in the closing operation of the opening/closing member;
a position calculation unit that calculates an opening/closing position of the opening/closing member based on the amount of rotation;
an error calculation unit that calculates an error Δ of the opening/closing 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 and a motor control unit that reverses the
with
The motor control unit
If the lock is detected, both the equations {x≧(b−Δ)} and {x≦(b+Δ)} are satisfied, and x is the same as when the lock was previously detected. , an opening/closing system characterized by closing the opening/closing member to a fully closed position.
However, x represents the opening/closing position of the opening/closing member corresponding 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-reversal area.
前記誤差算出部は、
前記操作回数のべき乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項1または2に記載の開閉システム。
The error calculator,
The opening/closing system according to claim 1 or 2 , wherein the error ? is calculated by multiplying the exponentiation of the number of operations by a predetermined constant.
開閉部材の開閉動作を制御する開閉システムであって、 An opening/closing system for controlling the opening/closing operation of an opening/closing member,
スイッチと、 a switch;
前記開閉部材を開閉動作させるモータと、 a motor that opens and closes the opening and closing member;
前記スイッチから出力される操作信号に応じて、前記モータを制御する制御装置と a control device that controls the motor in response to an operation signal output from the switch;
を備え、 with
前記制御装置は、 The control device is
前記スイッチの操作回数を計数する計数部と、 a counting unit that counts the number of operations of the switch;
前記モータの回転軸の回転量を検出する回転量検出部と、 a rotation amount detection unit that detects the amount of rotation of the rotation shaft of the motor;
前記開閉部材の閉動作におけるロックを検出するロック検出部と、 a lock detection unit that detects locking in the closing operation of the opening/closing member;
前記回転量に基づいて、前記開閉部材の開閉位置を算出する位置算出部と、 a position calculation unit that calculates an opening/closing position of the opening/closing member based on the amount of rotation;
前記操作回数に応じた前記開閉位置の誤差Δを算出する誤差算出部と、 an error calculation unit that calculates an error Δ of the opening/closing position according to the number of operations;
前記ロックが検出された場合において、式{x<(b-Δ)}を満たす場合、前記開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、前記開閉部材を反転動作させるモータ制御部と 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 and the motor control unit that reverses the
を備え、 with
前記誤差算出部は、 The error calculator,
前記操作回数のべき乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する The error Δ is calculated by multiplying the exponentiation of the number of operations by a predetermined constant.
ことを特徴とする開閉システム。 An opening and closing system characterized by:
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。 However, x represents the opening/closing position of the opening/closing member corresponding 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-reversal area.
前記誤差算出部は、
前記操作回数の1/2乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項3または4に記載の開閉システム。
The error calculator,
The opening/closing system according to claim 3 or 4, wherein the error ? is calculated by multiplying the 1/2 power of the number of operations by a predetermined constant.
前記誤差算出部は、
前記操作回数に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項1または2に記載の開閉システム。
The error calculator,
The opening/closing system according to claim 1 or 2 , 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 calculator 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 calculator 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 calculator resets the opening/closing position.
式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させ、
前記計数部は、前記操作回数をリセットし、
前記位置算出部は、前記開閉位置をリセットする
ことを特徴とする請求項1から8のいずれか一項に記載の開閉システム。
If the formula {Δ>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 calculator resets the opening/closing position.
前記開閉部材が自動閉動作を行っているときに、式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させて、前記操作回数および前記開閉位置がリセットされた後、前記開閉部材を全閉位置まで閉動作させる
ことを特徴とする請求項10に記載の開閉システム。
When the expression {Δ>b} is satisfied while the opening/closing member is automatically closing,
10. After opening the opening/closing member to the fully open position and resetting the number of times of operation and the opening/closing position, the motor control unit closes the opening/closing member to the fully closed position. The opening and closing system described in .
前記開閉部材が自動開閉動作以外の開閉動作を行っているときに、式{Δ>b}を満たした場合、
前記モータ制御部は、前記開閉部材を全開位置まで開動作させて、前記操作回数および前記開閉位置がリセットされた後、前記開閉部材を当該開閉動作の開始時の位置まで復帰させる
ことを特徴とする請求項10または11に記載の開閉システム。
When the expression {Δ>b} is satisfied while the opening/closing member is performing an opening/closing operation other than an automatic opening/closing operation,
The motor control unit opens the opening/closing member to a fully open position, resets the number of times of operation and the opening/closing position, and then returns the opening/closing member to a position at the start of the opening/closing operation. Opening and 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 is
detecting the amount of rotation based on the number of occurrences of ripple components contained in the current detected by the current detection means;
The lock detection unit
13. The opening/closing system according to any one of claims 1 to 12, wherein locking in the closing operation of the opening/closing member is detected based on the current detected by the current detection means.
前記位置算出部は、
前記モータ制御部が前記モータを駆動する毎に、前記開閉部材の開閉位置を、前記モータの駆動停止時の慣性移動量に応じた所定の補正値で補正する
ことを特徴とする請求項1から13のいずれか一項に記載の開閉システム。
The position calculation unit
2. Each time the motor control unit drives the motor, the opening/closing position of the opening/closing member is corrected by a predetermined correction value according to the amount of inertia movement when the motor stops driving. 14. The opening and closing system according to any one of Claims 13.
開閉部材の開閉動作を制御する開閉システムであって、
スイッチと、
前記開閉部材を開閉動作させるモータと、
前記スイッチから出力される操作信号に応じて、前記モータを制御する制御装置と
を備え、
前記制御装置は、
前記開閉部材の動作種類毎に動作回数を計数する計数部と、
前記モータの回転軸の回転量を検出する回転量検出部と、
前記開閉部材の閉動作におけるロックを検出するロック検出部と、
前記回転量に基づいて、前記開閉部材の開閉位置を算出する位置算出部と、
前記開閉部材の動作種類毎に動作回数に応じた前記開閉位置の誤差Δを算出する誤差算出部と、
前記ロックが検出された場合において、式{x<(b-Δ)}を満たす場合、前記開閉部材を全閉位置まで閉動作させ、式{x>(b+Δ)}を満たす場合、前記開閉部材を反転動作させるモータ制御部と
を備えることを特徴とする開閉システム。
但し、xは、全閉位置から前記開閉部材の上端部までの距離に応じた前記開閉部材の開閉位置を表し、bは、前記全閉位置から非反転領域の下端部までの距離を表す。
An opening/closing system for controlling the opening/closing operation of an opening/closing member,
a switch;
a motor that opens and closes the opening and closing member;
a control device that controls the motor in response to an operation signal output from the switch,
The control device is
a counting unit that counts the number of operations of each operation type of the opening and closing member;
a rotation amount detection unit that detects the amount of rotation of the rotation shaft of the motor;
a lock detection unit that detects locking in the closing operation of the opening/closing member;
a position calculation unit that calculates an opening/closing position of the opening/closing member based on the amount of rotation;
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 and a motor control section for reversing the opening and closing system.
However, x represents the opening/closing position of the opening/closing member corresponding 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-reversal area.
前記動作種類は、開動作、閉動作、および反転動作を含む
ことを特徴とする請求項15に記載の開閉システム。
16. The opening and closing system of claim 15, wherein the action types include opening action, closing action, and reversing action.
前記誤差算出部は、
前記動作種類毎に、前記動作回数のべき乗に対して、所定の定数を乗じることにより、
前記誤差Δを算出する
ことを特徴とする請求項15または16に記載の開閉システム。
The error calculator,
By multiplying the exponentiation of the number of operations for each type of operation by a predetermined constant,
17. The switching system according to claim 15 or 16, wherein the error Δ is calculated.
前記誤差算出部は、
前記動作種類毎に、前記動作回数の1/2乗に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項17に記載の開閉システム。
The error calculator,
18. The switching system according to claim 17, wherein the error Δ is calculated by multiplying the 1/2 power of the number of operations for each type of operation by a predetermined constant.
前記誤差算出部は、
前記動作種類毎に、前記動作回数に対して、所定の定数を乗じることにより、前記誤差Δを算出する
ことを特徴とする請求項15または16に記載の開閉システム。
The error calculator,
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 type of operation.
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 JP2020125671A (en) 2020-08-20
JP7326131B2 true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
JP2020125671A (en) 2020-08-20

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
US6034497A (en) Apparatus for detecting pinching of an object in a power window
US20180002969A1 (en) Opening/closing control device
JP2005351042A (en) Opening and closing body control device
JP7326131B2 (en) opening and closing system
TW200401071A (en) Clamp detection device for open/closure object
US11142940B2 (en) Open-close body controller and motor
US20220090431A1 (en) Open/close control device, open/close control system, open/close control method, and program
KR102060218B1 (en) Method and apparatus for determining the position of a motor-driven actuating part
US6580242B2 (en) Entrapment detection device of opening/closing member
US11371275B2 (en) Method for controlling a drive arrangement for a flap of a motor vehicle
JP2827799B2 (en) Open / close control device
JP4063094B2 (en) Opening and closing body pinching detection device
JP2861781B2 (en) Electric drive
US10301860B2 (en) Opening/closing control device
JP3528503B2 (en) Motor control device for opening and closing mechanism
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
KR101817871B1 (en) A method for controlling anti-pinch operation of automotive sunroof and apparatuses adopting the same
JP3555226B2 (en) Moving object position detection device
CN110321625B (en) Anti-pinch self-adaptive adjustment method and control device for on-vehicle closing equipment
US20220205300A1 (en) Opening/closing control device and opening/closing control method
JP2010110171A (en) Motor control apparatus and motor apparatus
JP4059046B2 (en) Anti-pinch 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