JP2022076309A - Motor controller - Google Patents

Motor controller Download PDF

Info

Publication number
JP2022076309A
JP2022076309A JP2020186668A JP2020186668A JP2022076309A JP 2022076309 A JP2022076309 A JP 2022076309A JP 2020186668 A JP2020186668 A JP 2020186668A JP 2020186668 A JP2020186668 A JP 2020186668A JP 2022076309 A JP2022076309 A JP 2022076309A
Authority
JP
Japan
Prior art keywords
position information
correction
relative position
unit
output shaft
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020186668A
Other languages
Japanese (ja)
Inventor
俊治 山内
Toshiharu Yamauchi
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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2020186668A priority Critical patent/JP2022076309A/en
Publication of JP2022076309A publication Critical patent/JP2022076309A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Direct Current Motors (AREA)

Abstract

To provide a motor controller capable of controlling a position at high accuracy.SOLUTION: A motor controller is a device for controlling the driving of a DC motor 71 interlocked with an output shaft part 75 of an actuator 70. The motor controller comprises: a relative position acquisition part 54 that acquires relative position information of the output shaft part by detecting a current variation when rotating a DC motor; and absolute position acquisition part 53 for acquiring absolute position information of the output shaft part by using a potentiometer 76. The motor controller comprises an actual position setting part 56 for setting actual position information of the output shaft part on the basis of at least one of two pieces of positional information of the absolute position information and the relative position information. The motor controller comprises: an actual position correction part 57 that corrects the actual position information on the basis of at least one position information of the two pieces of positional information of the absolute position information and the relative position information. Thus, the motor controller capable of performing a position control with high accuracy can be obtained.SELECTED DRAWING: Figure 2

Description

この明細書における開示は、モータ制御装置に関する。 The disclosure herein relates to a motor controller.

特許文献1は、ブラシ付きの直流モータの回転状態を検出する回転検出装置を開示している。直流モータの回転状態を検出する方法として、ロータリエンコーダやポテンショメータ等のセンサを設ける方法が知られている。また、大がかりなセンサを用いることなく直流モータの回転状態を検出する方法として、直流モータの電流波形を検出する方法が知られている。先行技術文献の記載内容は、この明細書における技術的要素の説明として、参照により援用される。 Patent Document 1 discloses a rotation detection device that detects a rotation state of a DC motor with a brush. As a method of detecting the rotational state of a DC motor, a method of providing a sensor such as a rotary encoder or a potentiometer is known. Further, as a method of detecting the rotational state of the DC motor without using a large-scale sensor, a method of detecting the current waveform of the DC motor is known. The content of the prior art document is incorporated by reference as an explanation of the technical elements herein.

特開2010-63347号公報Japanese Unexamined Patent Publication No. 2010-63347

直流モータの回転状態を検出する方法として、ポテンショメータを用いる方法を採用した場合、ポテンショメータの抵抗値のばらつきなどにより細かな回転状態を正確に検出することが困難であった。また、電流波形を検出する方法を採用した場合、ノイズ等の影響により位置ずれなどが生じることがあり、回転状態を安定して正確に検出することが困難であった。上述の観点において、または言及されていない他の観点において、モータ制御装置にはさらなる改良が求められている。 When a method using a potentiometer is adopted as a method for detecting the rotational state of the DC motor, it is difficult to accurately detect the detailed rotational state due to variations in the resistance value of the potentiometer. Further, when the method of detecting the current waveform is adopted, the position shift or the like may occur due to the influence of noise or the like, and it is difficult to stably and accurately detect the rotational state. Further improvements are required in the motor controller in the above-mentioned viewpoints or in other viewpoints not mentioned.

開示される1つの目的は、高精度に位置制御可能なモータ制御装置を提供することにある。 One object disclosed is to provide a motor control device capable of highly accurate position control.

ここに開示されたモータ制御装置は、アクチュエータ(70、270)の出力軸部(75)と連動している直流モータ(71)の駆動を制御するモータ制御装置であって、直流モータを回転させる際の電流変動を検出して出力軸部の相対位置情報を取得する相対位置取得部(54)と、ポテンショメータ(76)を用いて出力軸部の絶対位置情報を取得する絶対位置取得部(53)と、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて、出力軸部の実位置情報を設定する実位置設定部(56)と、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて実位置情報を補正する実位置補正部(57)とを備えている。 The motor control device disclosed here is a motor control device that controls the drive of the DC motor (71) interlocked with the output shaft portion (75) of the actuator (70, 270), and rotates the DC motor. A relative position acquisition unit (54) that detects current fluctuations and acquires relative position information of the output shaft unit, and an absolute position acquisition unit (53) that acquires absolute position information of the output shaft unit using a potentiometer (76). ), The actual position setting unit (56) that sets the actual position information of the output shaft unit based on at least one position information out of the two position information of the absolute position information and the relative position information, and the absolute position information. It is provided with an actual position correction unit (57) that corrects the actual position information based on at least one of the two position information of the relative position information and the relative position information.

開示されたモータ制御装置によると、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて、出力軸部の実位置情報を設定する実位置設定部と、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて実位置情報を補正する実位置補正部とを備えている。このため、絶対位置情報と相対位置情報との異なる方法で取得した2つの位置情報から補正後の実位置情報を取得できる。したがって、絶対位置情報と相対位置情報とのどちらか一方の情報のみに基づいて出力軸部の位置を取得する場合に比べて、精度よく出力軸部の位置を取得しやすい。よって、高精度に位置制御可能なモータ制御装置を提供できる。 According to the disclosed motor control device, the actual position setting unit that sets the actual position information of the output shaft unit based on at least one position information out of the two position information of the absolute position information and the relative position information, and the actual position setting unit. It is provided with an actual position correction unit that corrects the actual position information based on at least one of the two position information of the absolute position information and the relative position information. Therefore, the corrected actual position information can be acquired from the two position information acquired by different methods of the absolute position information and the relative position information. Therefore, it is easier to acquire the position of the output shaft portion with higher accuracy than in the case of acquiring the position of the output shaft portion based on only one of the absolute position information and the relative position information. Therefore, it is possible to provide a motor control device capable of position control with high accuracy.

この明細書における開示された複数の態様は、それぞれの目的を達成するために、互いに異なる技術的手段を採用する。請求の範囲およびこの項に記載した括弧内の符号は、後述する実施形態の部分との対応関係を例示的に示すものであって、技術的範囲を限定することを意図するものではない。この明細書に開示される目的、特徴、および効果は、後続の詳細な説明、および添付の図面を参照することによってより明確になる。 The disclosed embodiments herein employ different technical means to achieve their respective objectives. The claims and the reference numerals in parentheses described in this section exemplify the correspondence with the parts of the embodiments described later, and are not intended to limit the technical scope. The objectives, features, and effects disclosed herein will be further clarified by reference to the subsequent detailed description and accompanying drawings.

車両用空調装置の構成を示す構成図である。It is a block diagram which shows the structure of the air conditioner for a vehicle. モータシステムの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of a motor system. 補正モードにおけるモータシステムの制御に関するフローチャートである。It is a flowchart about control of a motor system in a correction mode. 補正途中におけるポテンショメータの特性マップを示す図である。It is a figure which shows the characteristic map of the potentiometer in the process of correction. 補正後におけるポテンショメータの特性マップを示す図である。It is a figure which shows the characteristic map of the potentiometer after correction. 第2実施形態におけるモータシステムの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the motor system in 2nd Embodiment. 第3実施形態におけるモータシステムの補正制御に関するフローチャートである。It is a flowchart about correction control of a motor system in 3rd Embodiment. 第4実施形態におけるモータシステムの補正制御に関するフローチャートである。It is a flowchart about correction control of a motor system in 4th Embodiment. 第5実施形態におけるモータシステムの補正制御に関するフローチャートである。It is a flowchart about correction control of a motor system in 5th Embodiment. 第6実施形態におけるモータシステムの補正制御に関するフローチャートである。It is a flowchart about correction control of a motor system in 6th Embodiment.

図面を参照しながら、複数の実施形態を説明する。複数の実施形態において、機能的におよび/または構造的に対応する部分および/または関連付けられる部分には同一の参照符号、または百以上の位が異なる参照符号が付される場合がある。対応する部分および/または関連付けられる部分については、他の実施形態の説明を参照することができる。 A plurality of embodiments will be described with reference to the drawings. In a plurality of embodiments, functionally and / or structurally corresponding parts and / or related parts may be designated with the same reference code or reference numerals having different hundreds or more digits. For corresponding and / or associated parts, the description of other embodiments can be referred to.

第1実施形態
モータ制御装置50は、モータ装置の回転駆動を制御するための装置である。以下では、モータ制御装置50が、車両用空調装置1に設けられた各モータ装置を制御する場合を例に説明する。ただし、モータ制御装置50が制御対象とするモータ装置は、車両用空調装置1に設けられた各モータ装置に限られない。車両に搭載されている他のモータ装置を制御対象としてもよい。モータ制御装置50は、例えばエンジン冷却水などの液体の流れを切り替える三方弁などの弁装置の開度を調整するためのモータ装置を制御対象としてもよい。あるいは、車両以外に搭載されているモータ装置を制御対象としてもよい。
The first embodiment motor control device 50 is a device for controlling the rotational drive of the motor device. Hereinafter, a case where the motor control device 50 controls each motor device provided in the vehicle air conditioner 1 will be described as an example. However, the motor device controlled by the motor control device 50 is not limited to each motor device provided in the vehicle air conditioner 1. Other motor devices mounted on the vehicle may be controlled. The motor control device 50 may control a motor device for adjusting the opening degree of a valve device such as a three-way valve that switches the flow of a liquid such as engine cooling water. Alternatively, a motor device mounted on a vehicle other than the vehicle may be controlled.

図1において、車両用空調装置1は、車両に搭載されている。車両は、例えばガソリン駆動のエンジンを搭載した自動車である。ただし、車両としては、走行用モータを搭載した電気自動車や、エンジンとモータの両方を搭載したハイブリッド自動車なども採用可能である。車両用空調装置1は、取り込まれた空気の温度を調整して車室内に吹き出す装置である。言い換えると、車両用空調装置1は、車室内の暖房運転や冷房運転や除湿運転などの空調運転を行う装置である。 In FIG. 1, the vehicle air conditioner 1 is mounted on a vehicle. The vehicle is, for example, an automobile equipped with a gasoline-powered engine. However, as the vehicle, an electric vehicle equipped with a traveling motor, a hybrid vehicle equipped with both an engine and a motor, and the like can also be adopted. The vehicle air conditioner 1 is a device that adjusts the temperature of the taken-in air and blows it out into the vehicle interior. In other words, the vehicle air conditioner 1 is a device that performs air conditioning operations such as heating operation, cooling operation, and dehumidifying operation in the vehicle interior.

車両用空調装置1は、内部に空気が流れる空気経路が形成されている空調ケース10を備えている。空調ケース10は、空調運転に用いる各種装置を内部に収納している。空調ケース10には、内気導入口11nと外気導入口11gとの2つの空気の取り込み口が形成されている。空調ケース10には、車両のフロントウィンドウに空調風を吹き出すデフロスタ吹き出し口15が形成されている。空調ケース10には、前席の上部に空調風を吹き出すフェイス吹き出し口16が形成されている。空調ケース10には、前席の下部に空調風を吹き出すフット吹き出し口17が形成されている。 The vehicle air conditioner 1 includes an air conditioner case 10 in which an air path through which air flows is formed. The air-conditioning case 10 houses various devices used for air-conditioning operation inside. The air-conditioning case 10 is formed with two air intake ports, an inside air introduction port 11n and an outside air introduction port 11g. The air-conditioning case 10 is formed with a defroster outlet 15 that blows air-conditioning air to the front window of the vehicle. The air-conditioning case 10 is formed with a face outlet 16 that blows air-conditioning air above the front seats. The air-conditioning case 10 is formed with a foot outlet 17 that blows out air-conditioning air at the lower part of the front seat.

車両用空調装置1は、送風機31と蒸発器32とヒータコア33とを備えている。送風機31は、空調ケース10内に空気を流すための装置である。蒸発器32は、内部に冷媒が流れており、冷媒が液体から気体に気化する際の気化熱を周囲の空気から奪うことで空気を冷却する熱交換器である。ヒータコア33は、内部に高温のエンジン冷却水が流れており、エンジン冷却水の熱を用いて周囲の空気を加熱する熱交換器である。ただし、ヒータコア33に代えて、電力を消費して空気を加熱する電気ヒータなどを用いてもよく、ヒータコア33と電気ヒータとの両方のヒータを併用してもよい。 The vehicle air conditioner 1 includes a blower 31, an evaporator 32, and a heater core 33. The blower 31 is a device for flowing air into the air conditioning case 10. The evaporator 32 is a heat exchanger in which a refrigerant flows inside and cools the air by removing the heat of vaporization when the refrigerant vaporizes from a liquid to a gas from the surrounding air. The heater core 33 is a heat exchanger in which high-temperature engine cooling water flows inside and heats the surrounding air by using the heat of the engine cooling water. However, instead of the heater core 33, an electric heater or the like that consumes electric power to heat the air may be used, or both heaters of the heater core 33 and the electric heater may be used in combination.

車両用空調装置1は、内気導入口11nと外気導入口11gとを開閉するための内外気切り替えドア21を備えている。内外気切り替えドア21は、内気導入口11nや外気導入口11gから空調ケース10内部に導入される空気の量を調整するドア装置である。ドア装置は、フラップ装置とも呼ばれる。ドア装置は、ダンパー装置とも呼ばれる。 The vehicle air conditioner 1 includes an inside / outside air switching door 21 for opening / closing the inside air introduction port 11n and the outside air introduction port 11g. The inside / outside air switching door 21 is a door device that adjusts the amount of air introduced into the air conditioning case 10 from the inside air introduction port 11n and the outside air introduction port 11g. The door device is also called a flap device. The door device is also called a damper device.

内外気切り替えドア21は、内気導入口11nを開いて外気導入口11gを閉じることで空調風を車内で循環させる内気モードを実現する。内外気切り替えドア21は、内気導入口11nを閉じて外気導入口11gを開くことで空調風を車外から取り込む外気モードを実現する。ただし、外気モードにおいて、内気導入口11nを完全に閉じなくてもよい。例えば、内気導入口11nをわずかに開いておくことで、外気よりも少ない割合で内気を取り込んで空気を循環させてもよい。 The inside / outside air switching door 21 realizes an inside air mode in which the conditioned air is circulated in the vehicle by opening the inside air introduction port 11n and closing the outside air introduction port 11g. The inside / outside air switching door 21 realizes an outside air mode in which the air-conditioned air is taken in from the outside of the vehicle by closing the inside air introduction port 11n and opening the outside air introduction port 11g. However, in the outside air mode, the inside air introduction port 11n does not have to be completely closed. For example, by slightly opening the inside air introduction port 11n, the inside air may be taken in at a smaller rate than the outside air and the air may be circulated.

車両用空調装置1は、空調風の温度を調整するためのエアミックスドア23を備えている。エアミックスドア23は、空調ケース10内部の空気の流れにおいて、蒸発器32よりも下流であって、ヒータコア33よりも上流に設けられている。エアミックスドア23の開度を制御することで、ヒータコア33を通過して加熱される空気の量を調整することができる。 The vehicle air conditioner 1 includes an air mix door 23 for adjusting the temperature of the air conditioning air. The air mix door 23 is provided downstream of the evaporator 32 and upstream of the heater core 33 in the air flow inside the air conditioning case 10. By controlling the opening degree of the air mix door 23, the amount of air that passes through the heater core 33 and is heated can be adjusted.

車両用空調装置1は、デフロスタ吹き出し口15を開閉するためのデフロスタドア25を備えている。デフロスタドア25は、デフロスタ吹き出し口15からの空調風の吹き出しの有無や吹き出し量を調整するドア装置である。車両用空調装置1は、フェイス吹き出し口16を開閉するためのフェイスドア26を備えている。フェイスドア26は、フェイス吹き出し口16からの空調風の吹き出しの有無や吹き出し量を調整するドア装置である。車両用空調装置1は、フット吹き出し口17を開閉するためのフットドア27を備えている。フットドア27は、フット吹き出し口17からの空調風の吹き出しの有無や吹き出し量を調整するドア装置である。 The vehicle air conditioner 1 includes a defroster door 25 for opening and closing the defroster outlet 15. The defroster door 25 is a door device that adjusts the presence / absence of air-conditioned air blown from the defroster blowout port 15 and the amount of blown air. The vehicle air conditioner 1 includes a face door 26 for opening and closing the face outlet 16. The face door 26 is a door device that adjusts the presence / absence of air-conditioned air blown from the face blowout port 16 and the amount of blown air. The vehicle air conditioner 1 includes a foot door 27 for opening and closing the foot outlet 17. The foot door 27 is a door device that adjusts the presence / absence of air-conditioned air blown from the foot blowout port 17 and the amount of blown air.

車両用空調装置1は、吹き出し口モードとしてデフロスタモード、フェイスモード、フットモード、バイレベル(B/L)モード、フットデフロスタ(F/D)モードの5つのモードを備えている。ただし、吹き出し口モードの種類は上述の5つのモードに限られない。デフロスタドア25とフェイスドア26とフットドア27とは、車両用空調装置1におけるモードを切り替えるドア装置であり、モードドアとも呼ばれる。 The vehicle air conditioner 1 has five modes as an outlet mode: a defroster mode, a face mode, a foot mode, a bi-level (B / L) mode, and a foot defroster (F / D) mode. However, the type of outlet mode is not limited to the above five modes. The defroster door 25, the face door 26, and the foot door 27 are door devices for switching modes in the vehicle air conditioner 1, and are also called mode doors.

内外気切り替えドア21は、内気導入口11nが閉じている状態から外気導入口11gが閉じている状態までの範囲を回動可能である。内外気切り替えドア21の回動可能角度は、例えば、100°である。エアミックスドア23は、ヒータコア33を通過する空気の量が最小となる状態からヒータコア33を通過しない空気の量が最小となる状態までの範囲を回動可能である。エアミックスドア23の回動可能角度は、例えば、180°である。 The inside / outside air switching door 21 can rotate in a range from the state where the inside air introduction port 11n is closed to the state where the outside air introduction port 11g is closed. The rotatable angle of the inside / outside air switching door 21 is, for example, 100 °. The air mix door 23 can rotate in a range from a state in which the amount of air passing through the heater core 33 is minimized to a state in which the amount of air not passing through the heater core 33 is minimized. The rotatable angle of the air mix door 23 is, for example, 180 °.

デフロスタドア25は、デフロスタ吹き出し口15が閉じている状態からデフロスタ吹き出し口15が完全に開いている状態までの範囲を回動可能である。デフロスタドア25の回動可能角度は、例えば、90°である。フェイスドア26は、フェイス吹き出し口16が閉じている状態からフェイス吹き出し口16が完全に開いている状態までの範囲を回動可能である。フェイスドア26の回動可能角度は、例えば、90°である。フットドア27は、フット吹き出し口17が閉じている状態からフット吹き出し口17が完全に開いている状態までの範囲を回動可能である。フットドア27の回動可能角度は、例えば、90°である。 The defroster door 25 can rotate in a range from the state in which the defroster outlet 15 is closed to the state in which the defroster outlet 15 is completely open. The rotatable angle of the defrost door 25 is, for example, 90 °. The face door 26 can rotate in a range from the state where the face outlet 16 is closed to the state where the face outlet 16 is completely open. The rotatable angle of the face door 26 is, for example, 90 °. The foot door 27 can rotate in a range from the state where the foot outlet 17 is closed to the state where the foot outlet 17 is completely open. The rotatable angle of the foot door 27 is, for example, 90 °.

デフロスタドア25とフェイスドア26とフットドア27とのモードドアを1つの連続するドア装置で構成してもよい。例えば、円弧面状に形成されたドア板部を回動させて各吹き出し口を開閉するロータリドアを採用してもよい。この場合、1つのドア板部が、デフロスタドア25とフェイスドア26とフットドア27との3つのドア装置としての機能を備えることとなる。ロータリドアの回動可能角度は、例えば、330°である。 The mode door of the defroster door 25, the face door 26, and the foot door 27 may be configured by one continuous door device. For example, a rotary door that opens and closes each outlet by rotating a door plate portion formed in an arcuate shape may be adopted. In this case, one door plate portion is provided with functions as three door devices of the defroster door 25, the face door 26, and the foot door 27. The rotatable angle of the rotary door is, for example, 330 °.

内外気切り替えドア21とエアミックスドア23とデフロスタドア25とフェイスドア26とフットドア27とは、サーボモータによってドア板部の角度が調整されるドア装置である。ドア板部の角度によって、当該部分における空気の流量が変化するため、各ドア装置のドア板部の角度は、できるだけ高精度に位置を制御することが好ましい。 The inside / outside air switching door 21, the air mix door 23, the defroster door 25, the face door 26, and the foot door 27 are door devices in which the angle of the door plate portion is adjusted by a servomotor. Since the flow rate of air in the portion changes depending on the angle of the door plate portion, it is preferable to control the position of the door plate portion of each door device with the highest possible accuracy.

図2において、モータシステム100は、モータ制御装置50とアクチュエータ70とを備えている。アクチュエータ70は、直流モータ71と減速部72と出力軸部75とポテンショメータ76とを備えている。直流モータ71は、モータ制御装置50の制御対象のサーボモータである。直流モータ71は、ステッピングモータよりもトルクを大きく得やすいモータである。 In FIG. 2, the motor system 100 includes a motor control device 50 and an actuator 70. The actuator 70 includes a DC motor 71, a deceleration unit 72, an output shaft unit 75, and a potentiometer 76. The DC motor 71 is a servomotor to be controlled by the motor control device 50. The DC motor 71 is a motor that can easily obtain a larger torque than a stepping motor.

直流モータ71は、界磁極として機能する永久磁石を有する固定子を備えている。直流モータ71は、界磁極の内周にエアギャップを有して回転子を備えている。直流モータ71は、回転子の同軸上に整流子を備えている。整流子は、コンミテータとも呼ばれる。直流モータ71は、整流子と接触して整流子に電流を流すためのブラシを備えている。直流モータ71は、回転駆動することで、ブラシと接触する整流子が絶えず切り換わるように構成されている。 The DC motor 71 includes a stator having a permanent magnet that functions as a field pole. The DC motor 71 has an air gap on the inner circumference of the field magnetic pole and includes a rotor. The DC motor 71 includes a commutator on the same axis as the rotor. The commutator is also called a commutator. The DC motor 71 includes a brush for contacting the commutator and passing a current through the commutator. The DC motor 71 is configured so that the commutator in contact with the brush is constantly switched by being driven to rotate.

出力軸部75は、アクチュエータ70において駆動力を外部に出力する部分である。出力軸部75は、車両用空調装置1の内外気切り替えドア21などのドア装置に接続されることで、ドア装置を回転駆動する。減速部72は、直流モータ71の回転を減速させて出力軸部75に伝達させる部分である。減速部72により、アクチュエータ70として必要なトルクや回転数を調整できる。減速部72は、ウォームギヤを含む複数の歯車を備えている。 The output shaft portion 75 is a portion of the actuator 70 that outputs a driving force to the outside. The output shaft portion 75 is connected to a door device such as the inside / outside air switching door 21 of the vehicle air conditioner 1 to rotationally drive the door device. The deceleration unit 72 is a portion that decelerates the rotation of the DC motor 71 and transmits it to the output shaft unit 75. The reduction unit 72 can adjust the torque and rotation speed required for the actuator 70. The reduction gear 72 includes a plurality of gears including a worm gear.

ポテンショメータ76は、出力軸部75の回転位置を計測するための装置である。ポテンショメータ76は、回転位置に応じて抵抗値が変化する可変抵抗器である。ポテンショメータ76には、所定の電圧が印加されており、ポテンショメータ76の抵抗値の変化を電圧の変化として取得することができる。ポテンショメータ76を用いることで出力軸部75の回転位置が現在どの位置にあるかを計測することができる。ポテンショメータ76は、ポテンショセンサとも呼ばれる。ポテンショメータ76は、エンコーダなどの回転位置検出センサに比べて、低コストで回転位置を検出しやすい。 The potentiometer 76 is a device for measuring the rotational position of the output shaft portion 75. The potentiometer 76 is a variable resistor whose resistance value changes according to the rotation position. A predetermined voltage is applied to the potentiometer 76, and a change in the resistance value of the potentiometer 76 can be acquired as a change in voltage. By using the potentiometer 76, it is possible to measure the current position of the rotation position of the output shaft portion 75. The potentiometer 76 is also called a potentiometer. The potentiometer 76 is easier to detect the rotation position at a lower cost than the rotation position detection sensor such as an encoder.

ポテンショメータ76は、例えば、出力軸部75と同軸の回転軸に対して周方向に沿って連続して設けられた抵抗膜と、抵抗膜上を摺動する接続端子とを備えた構成である。ポテンショメータ76の抵抗膜に電圧を印加することで、抵抗膜において段階的に電圧降下が引き起こされる。これにより、接続端子が抵抗膜のどの位置と接触しているかをポテンショメータ76の電圧の大きさで検出することができる。言い換えると、ポテンショメータ76の電圧の大きさから接続端子の回転位置を取得することができる。理想的なポテンショメータ76における抵抗膜は、始端部から終端部までが一様な厚さで形成されている。しかしながら、実際のポテンショメータ76は、製造時のばらつきや経年劣化によって抵抗値が理想的な状態から大きく乖離している場合がある。特に、保証回数を超える回数の動作が実行された場合には、経年劣化が顕著に表れ、抵抗膜の一部分の抵抗値が増加するなどの抵抗値の変化が引き起こされやすい。 The potentiometer 76 is configured to include, for example, a resistance film continuously provided along the circumferential direction with respect to a rotation axis coaxial with the output shaft portion 75, and a connection terminal sliding on the resistance film. By applying a voltage to the resistance film of the potentiometer 76, a voltage drop is caused stepwise in the resistance film. Thereby, it is possible to detect which position of the resistance film the connection terminal is in contact with by the magnitude of the voltage of the potentiometer 76. In other words, the rotation position of the connection terminal can be obtained from the magnitude of the voltage of the potentiometer 76. The resistance film in the ideal potentiometer 76 is formed with a uniform thickness from the start end to the end portion. However, in the actual potentiometer 76, the resistance value may deviate greatly from the ideal state due to variations during manufacturing and deterioration over time. In particular, when the operation exceeds the guaranteed number of times, the deterioration over time appears remarkably, and the resistance value is likely to change such that the resistance value of a part of the resistance film increases.

モータ制御装置50は、電圧取得部51と駆動部52とを備えている。電圧取得部51は、直流電源5の出力電圧である電源電圧を取得する部分である。電圧取得部51は、電源電圧が適切な値であるか否かをモニタするために電圧を取得している。ここで、直流電源5は、例えば、12Vの補機電池である。ただし、電源電圧をモニタする必要がない場合には、電圧取得部51を省略してもよい。 The motor control device 50 includes a voltage acquisition unit 51 and a drive unit 52. The voltage acquisition unit 51 is a portion that acquires the power supply voltage, which is the output voltage of the DC power supply 5. The voltage acquisition unit 51 acquires a voltage in order to monitor whether or not the power supply voltage is an appropriate value. Here, the DC power supply 5 is, for example, a 12V auxiliary battery. However, if it is not necessary to monitor the power supply voltage, the voltage acquisition unit 51 may be omitted.

駆動部52は、直流モータ71を駆動する部分である。駆動部52は、直流電源5の電源電圧を直流モータ71に印加するタイミングを制御することで、直流モータ71が駆動している状態と直流モータ71が駆動していない状態とを切り替える。駆動部52は、後に説明する補正後の実位置情報に基づいて、直流モータ71の回転駆動を制御することとなる。駆動部52と直流モータ71とは、信号線で互いに接続されている。 The drive unit 52 is a unit that drives the DC motor 71. The drive unit 52 switches between a state in which the DC motor 71 is driven and a state in which the DC motor 71 is not driven by controlling the timing at which the power supply voltage of the DC power supply 5 is applied to the DC motor 71. The drive unit 52 controls the rotational drive of the DC motor 71 based on the corrected actual position information described later. The drive unit 52 and the DC motor 71 are connected to each other by a signal line.

モータ制御装置50は、絶対位置取得部53を備えている。絶対位置取得部53は、ポテンショメータ76を用いた位置情報を取得する。ここで、ポテンショメータ76を用いて取得できる位置情報は、出力軸部75と連動しているポテンショメータ76がどの回転位置にあるかを示す絶対位置情報である。ただし、ポテンショメータ76には、部品としての許容公差が存在する。このため、理想的な値に対して実際の値には、ずれが生じている。例えば、可変抵抗器であるポテンショメータ76の抵抗膜のばらつきによって、電圧と回転位置との関係を示す特性マップが理想的な特性マップに対してずれることになる。したがって、出力軸部75のより正確な位置を把握するためには、ポテンショメータ76のばらつきを補正することが重要である。絶対位置取得部53とポテンショメータ76とは、信号線で互いに接続されている。 The motor control device 50 includes an absolute position acquisition unit 53. The absolute position acquisition unit 53 acquires position information using the potentiometer 76. Here, the position information that can be acquired by using the potentiometer 76 is absolute position information indicating at which rotation position the potentiometer 76 linked with the output shaft portion 75 is located. However, the potentiometer 76 has a tolerance as a component. Therefore, there is a deviation from the ideal value in the actual value. For example, due to variations in the resistance film of the potentiometer 76, which is a variable resistor, the characteristic map showing the relationship between the voltage and the rotational position deviates from the ideal characteristic map. Therefore, in order to grasp the more accurate position of the output shaft portion 75, it is important to correct the variation of the potentiometer 76. The absolute position acquisition unit 53 and the potentiometer 76 are connected to each other by a signal line.

モータ制御装置50は、相対位置取得部54とタイマ55とを備えている。相対位置取得部54は、駆動部52を介して直流モータ71に供給されている電流の変動を相対位置信号として検出する。より詳細には、直流モータ71の電流波形を相対位置信号として検出する。直流モータ71が回転駆動している間、電流が正弦波のように滑らかに増減することとなる。正弦波をなす電流波形の周期よりも十分短い検出周期で電流値を検出することで、検出を開始した位置からの直流モータ71の回転数を取得できる。例えば、正弦波の周期が2ミリ秒である場合に、検出周期を2ミリ秒よりも十分に短い100マイクロ秒に設定することで、電流波形を得ることができる。この場合、20個の電流値を検出することで1周期分の電流波形を検出することとなる。仮に、50個の電流値を検出した場合には、2.5周期分の電流波形を検出することとなる。 The motor control device 50 includes a relative position acquisition unit 54 and a timer 55. The relative position acquisition unit 54 detects fluctuations in the current supplied to the DC motor 71 via the drive unit 52 as a relative position signal. More specifically, the current waveform of the DC motor 71 is detected as a relative position signal. While the DC motor 71 is rotationally driven, the current increases and decreases smoothly like a sine wave. By detecting the current value in a detection cycle sufficiently shorter than the cycle of the current waveform forming a sine and cosine, the rotation speed of the DC motor 71 from the position where the detection is started can be obtained. For example, when the period of the sine wave is 2 milliseconds, the current waveform can be obtained by setting the detection period to 100 microseconds, which is sufficiently shorter than 2 milliseconds. In this case, the current waveform for one cycle is detected by detecting 20 current values. If 50 current values are detected, the current waveform for 2.5 cycles will be detected.

電流波形の検出方法は、上述したように電流波形の周期に対して十分短い間隔で電流値を取得する方法に限られない。例えば、抵抗素子とコンデンサ素子とを用いた正弦波検出回路を用いて電流波形を検出してもよい。電流波形の検出方法によらず、検出された電流波形が何周期分であるかを判断することで、直流モータ71の回転数を取得することができる。 As described above, the method of detecting the current waveform is not limited to the method of acquiring the current value at intervals sufficiently short with respect to the period of the current waveform. For example, the current waveform may be detected by using a sine wave detection circuit using a resistance element and a capacitor element. Regardless of the current waveform detection method, the rotation speed of the DC motor 71 can be acquired by determining how many cycles the detected current waveform is.

直流モータ71の回転数は、出力軸部75の回転と連動している。このため、相対位置取得部54が相対位置信号である電流値を検出することで、出力軸部75の回転移動量を計測することができる。相対位置取得部54を用いて取得できる位置情報は、直流モータ71の回転と連動している出力軸部75が検出を開始した位置を基準にどれだけ回転したかを示す相対位置情報である。 The rotation speed of the DC motor 71 is linked to the rotation of the output shaft portion 75. Therefore, the relative position acquisition unit 54 can measure the rotational movement amount of the output shaft unit 75 by detecting the current value which is the relative position signal. The position information that can be acquired by using the relative position acquisition unit 54 is the relative position information indicating how much the output shaft unit 75 linked to the rotation of the DC motor 71 has rotated with respect to the position where the detection has started.

タイマ55は、相対位置取得部54が相対位置信号を検出した時間を計測する装置である。タイマ55を用いることで、相対位置取得部54による位置検出の開始からの経過時間をカウントすることができる。これにより、相対位置取得部54は、タイマ55で取得した時間の情報を用いて検出した相対位置信号毎に、どのタイミングで検出した相対位置信号であるかを対応させて紐づけている。タイマ55を複数備えてもよい。この場合、絶対位置取得部53で取得したポテンショメータ76の電圧が、どのタイミングで取得した電圧であるかを紐づける専用のタイマ55を備えてもよい。また、電圧取得部51で取得した直流電源5の電圧が、どのタイミングで取得した電圧であるかを紐づける専用のタイマ55を備えてもよい。 The timer 55 is a device that measures the time when the relative position acquisition unit 54 detects the relative position signal. By using the timer 55, it is possible to count the elapsed time from the start of position detection by the relative position acquisition unit 54. As a result, the relative position acquisition unit 54 associates each relative position signal detected using the time information acquired by the timer 55 with the relative position signal detected at which timing. A plurality of timers 55 may be provided. In this case, a dedicated timer 55 may be provided to associate the voltage of the potentiometer 76 acquired by the absolute position acquisition unit 53 with the voltage acquired at which timing. Further, a dedicated timer 55 may be provided to associate the voltage of the DC power supply 5 acquired by the voltage acquisition unit 51 with the voltage acquired at which timing.

モータ制御装置50は、実位置設定部56と実位置補正部57とを備えている。実位置設定部56は、相対位置情報または絶対位置情報に基づいて出力軸部75の実際の位置を示す情報である実位置情報を設定する。例えば、ポテンショメータ76を用いて取得した絶対位置情報を出力軸部75の実位置情報とみなして、絶対位置情報を実位置情報として設定する。ただし、相対位置取得部54で取得した相対位置情報を実位置情報として設定してもよい。 The motor control device 50 includes an actual position setting unit 56 and an actual position correction unit 57. The actual position setting unit 56 sets the actual position information which is the information indicating the actual position of the output shaft unit 75 based on the relative position information or the absolute position information. For example, the absolute position information acquired by using the potentiometer 76 is regarded as the actual position information of the output shaft portion 75, and the absolute position information is set as the actual position information. However, the relative position information acquired by the relative position acquisition unit 54 may be set as the actual position information.

実位置補正部57は、実位置設定部56で設定した実位置情報を補正する部分である。実位置補正部57は、絶対位置取得部53で取得した絶対位置情報と、相対位置取得部54で取得した相対位置情報との2つの位置情報から補正情報を生成する。より詳細には、絶対位置情報と相対位置情報との位置の差分を実位置情報に加えることで実位置情報を補正する。例えば、実位置設定部56で絶対位置情報を実位置情報に設定した場合は、相対位置情報と実位置情報である絶対位置情報との差分を実位置情報に加えて、実位置情報が相対位置情報に一致するように補正することができる。ただし、実位置情報の補正方法は、上述の例に限られない。 The actual position correction unit 57 is a unit that corrects the actual position information set by the actual position setting unit 56. The actual position correction unit 57 generates correction information from two position information, that is, the absolute position information acquired by the absolute position acquisition unit 53 and the relative position information acquired by the relative position acquisition unit 54. More specifically, the actual position information is corrected by adding the difference in position between the absolute position information and the relative position information to the actual position information. For example, when the absolute position information is set as the actual position information in the actual position setting unit 56, the difference between the relative position information and the absolute position information which is the actual position information is added to the actual position information, and the actual position information is the relative position. It can be corrected to match the information. However, the method of correcting the actual position information is not limited to the above example.

モータ制御装置50は、記憶部58と異常判定部59とを備えている。記憶部58は、補正後の実位置情報などの情報を記憶する部分である。記憶部58は、過去に実施した実位置情報の補正に関する補正情報を記憶している。 The motor control device 50 includes a storage unit 58 and an abnormality determination unit 59. The storage unit 58 is a unit that stores information such as the corrected actual position information. The storage unit 58 stores the correction information related to the correction of the actual position information performed in the past.

異常判定部59は、モータ制御装置50における異常の有無を判定する部分である。異常判定部59は、電圧取得部51に接続されており、直流電源5における異常の有無を判定している。異常判定部59は、相対位置取得部54に接続されており、相対位置信号における異常の有無を判定している。異常判定部59の機能は、上述の例に限られない。異常判定部59は、電圧取得部51や相対位置取得部54以外の部分と接続して、接続した部分における様々な異常の有無を判定可能である。 The abnormality determination unit 59 is a unit for determining the presence or absence of an abnormality in the motor control device 50. The abnormality determination unit 59 is connected to the voltage acquisition unit 51 and determines whether or not there is an abnormality in the DC power supply 5. The abnormality determination unit 59 is connected to the relative position acquisition unit 54, and determines the presence or absence of an abnormality in the relative position signal. The function of the abnormality determination unit 59 is not limited to the above example. The abnormality determination unit 59 can be connected to a portion other than the voltage acquisition unit 51 and the relative position acquisition unit 54, and can determine the presence or absence of various abnormalities in the connected portion.

モータ制御装置50によって実位置情報の補正を行うモードである補正モードについて以下に説明する。補正モードにおいては、出力軸部75を回転駆動させることになる。このため、補正モード中は、ドア装置が空調制御での要求とは異なる駆動をすることとなる。したがって、車両用空調装置1に空調要求がある状態であれば、補正モードを実施せず、車両用空調装置1に空調要求がない状態で補正モードを実施することが好ましい。 The correction mode, which is a mode in which the actual position information is corrected by the motor control device 50, will be described below. In the correction mode, the output shaft portion 75 is rotationally driven. Therefore, during the correction mode, the door device is driven differently from the requirement in the air conditioning control. Therefore, if the vehicle air conditioner 1 has an air conditioning request, it is preferable not to execute the correction mode, but to execute the correction mode in a state where the vehicle air conditioner 1 does not have an air conditioning request.

図3において、補正モードを開始した場合、ステップS101で駆動部52が出力軸部75を補正開始位置に移動させる。補正開始位置としては、ポテンショメータ76の電圧が最小となる位置を設定可能である。例えば、ポテンショメータ76の電圧が0Vから5Vまで変動する場合には、0Vを示す位置を補正開始位置とする。補正開始位置は、ポテンショメータ76の電圧が最小となる位置に限られない。例えば、補正開始位置として出力軸部75の可動範囲における一端の位置である始端位置を設定してもよい。相対位置情報は、この補正開始位置を基準として出力軸部75の相対的な移動の大きさから出力軸部75がどの位置にあるかを取得する。出力軸部75を補正開始位置に移動させた後、ステップS102に進む。 In FIG. 3, when the correction mode is started, the drive unit 52 moves the output shaft unit 75 to the correction start position in step S101. As the correction start position, a position where the voltage of the potentiometer 76 is minimized can be set. For example, when the voltage of the potentiometer 76 fluctuates from 0V to 5V, the position indicating 0V is set as the correction start position. The correction start position is not limited to the position where the voltage of the potentiometer 76 is minimized. For example, the start end position, which is the position of one end in the movable range of the output shaft portion 75, may be set as the correction start position. The relative position information acquires the position of the output shaft portion 75 from the relative movement magnitude of the output shaft portion 75 with reference to this correction start position. After moving the output shaft portion 75 to the correction start position, the process proceeds to step S102.

ステップS102では、駆動部52が出力軸部75を補正終了位置に向けて移動開始させる。補正終了位置としては、ポテンショメータ76の電圧が最大となる位置を設定可能である。例えば、ポテンショメータ76の電圧が0Vから5Vまで変動する場合には、5Vを示す位置を補正終了位置とする。補正終了位置は、ポテンショメータ76の電圧が最大となる位置に限られない。例えば、補正終了位置として出力軸部75の可動範囲における他端の位置である終端位置を設定してもよい。終端位置は、出力軸部75の可動範囲における始端位置とは反対側の位置である。 In step S102, the drive unit 52 starts moving the output shaft unit 75 toward the correction end position. As the correction end position, the position where the voltage of the potentiometer 76 becomes maximum can be set. For example, when the voltage of the potentiometer 76 fluctuates from 0V to 5V, the position indicating 5V is set as the correction end position. The correction end position is not limited to the position where the voltage of the potentiometer 76 becomes maximum. For example, the end position which is the position of the other end in the movable range of the output shaft portion 75 may be set as the correction end position. The end position is a position opposite to the start position in the movable range of the output shaft portion 75.

モータシステム100を内外気切り替えドア21に用いる場合には、例えば、内気モードの際のドア位置を補正開始位置とし、外気モードの際のドア位置を補正終了位置とすることができる。モータシステム100をエアミックスドア23の駆動に用いる場合には、例えば、ヒータコア33を通過する流路を覆う位置を補正開始位置とし、ヒータコア33を通過しない流路を覆う位置を補正終了位置とすることができる。 When the motor system 100 is used for the inside / outside air switching door 21, for example, the door position in the inside air mode can be set as the correction start position, and the door position in the outside air mode can be set as the correction end position. When the motor system 100 is used to drive the air mix door 23, for example, the position covering the flow path passing through the heater core 33 is set as the correction start position, and the position covering the flow path not passing through the heater core 33 is set as the correction end position. be able to.

モータシステム100をデフロスタドア25に用いる場合には、例えば、デフロスタ吹き出し口15を全開にする位置を補正開始位置とし、デフロスタ吹き出し口15を全閉にする位置を補正終了位置とすることができる。デフロスタ吹き出し口15を全開にする位置において、デフロスタドア25を空調ケース10に接触させて突き当て位置に突き当てることで、補正開始位置を正確に位置決めしやすい。デフロスタ吹き出し口15を全閉にする位置において、デフロスタドア25を空調ケース10に接触させて突き当てることで、補正終了位置を正確に位置決めしやすい。ただし、突き当ての際にはドア装置に大きな負荷が生じることがある。このため、補正開始位置までは低速で移動させて突き当て時の負荷を軽減し、補正終了位置については突き当てない位置に設定するなどしてもよい。あるいは、補正開始位置と補正終了位置との両方ともデフロスタドア25を空調ケース10に突き当てない位置に設定してもよい。 When the motor system 100 is used for the defroster door 25, for example, the position where the defroster outlet 15 is fully opened can be set as the correction start position, and the position where the defroster outlet 15 is fully closed can be set as the correction end position. At the position where the defroster outlet 15 is fully opened, the defroster door 25 is brought into contact with the air conditioning case 10 and abutted against the abutting position, so that the correction start position can be easily positioned accurately. At the position where the defroster outlet 15 is fully closed, the defroster door 25 is brought into contact with the air conditioning case 10 and abutted against it, so that the correction end position can be easily positioned accurately. However, a large load may be generated on the door device at the time of abutting. Therefore, it may be moved at a low speed to the correction start position to reduce the load at the time of abutting, and the correction end position may be set to a position where the abutment does not occur. Alternatively, both the correction start position and the correction end position may be set to positions where the defroster door 25 does not abut against the air conditioning case 10.

モータシステム100をフェイスドア26に用いる場合においても、モータシステム100をデフロスタドア25に用いる場合と同様に補正開始位置や補正終了位置を設定できる。モータシステム100をフットドア27に用いる場合においても、モータシステム100をデフロスタドア25に用いる場合と同様に補正開始位置や補正終了位置を設定できる。 Even when the motor system 100 is used for the face door 26, the correction start position and the correction end position can be set in the same manner as when the motor system 100 is used for the defroster door 25. Even when the motor system 100 is used for the foot door 27, the correction start position and the correction end position can be set in the same manner as when the motor system 100 is used for the defroster door 25.

出力軸部75を補正開始位置から補正終了位置まで移動させる際には、直流モータ71の回転速度を一定とする。言い換えると、駆動部52は、出力軸部75が一定の速度で回転するように直流モータ71を駆動する。出力軸部75を補正終了位置に向けて移動開始させた後、ステップS111に進む。 When the output shaft portion 75 is moved from the correction start position to the correction end position, the rotation speed of the DC motor 71 is kept constant. In other words, the drive unit 52 drives the DC motor 71 so that the output shaft unit 75 rotates at a constant speed. After starting the movement of the output shaft portion 75 toward the correction end position, the process proceeds to step S111.

ステップS111では、相対位置取得部54が対位置信号を検出したか否かを判定する。例えば、直流モータ71の回転駆動における電流波形を検出する場合、全体で電流波形をなす1つ1つの電流値が相対位置信号である。 In step S111, it is determined whether or not the relative position acquisition unit 54 has detected the anti-position signal. For example, when detecting the current waveform in the rotational drive of the DC motor 71, each current value forming the current waveform as a whole is a relative position signal.

相対位置信号を検出した際には、タイマ55を用いてその相対位置信号を検出した時間を取得する。これにより、相対位置信号をいつ取得したかを把握できる状態とする。相対位置信号を検出した場合には、ステップS112に進む。一方、相対位置信号を検出していない場合には、ステップS121に進む。 When the relative position signal is detected, the timer 55 is used to acquire the time when the relative position signal is detected. This makes it possible to grasp when the relative position signal was acquired. If a relative position signal is detected, the process proceeds to step S112. On the other hand, if the relative position signal is not detected, the process proceeds to step S121.

ステップS112では、相対位置信号を検出した瞬間における相対位置情報を相対位置取得部54が取得する。相対位置取得部54は、検出した相対位置信号に基づき基準となる補正開始位置からの出力軸部75の回転位置を算出することで、相対位置情報を取得する。この時、相対位置情報は、いつの時点で出力軸部75がどの相対位置にあるかを示す情報として機能する。相対位置情報を取得した後、ステップS113に進む。 In step S112, the relative position acquisition unit 54 acquires the relative position information at the moment when the relative position signal is detected. The relative position acquisition unit 54 acquires relative position information by calculating the rotation position of the output shaft unit 75 from the reference correction start position based on the detected relative position signal. At this time, the relative position information functions as information indicating when the output shaft portion 75 is in which relative position. After acquiring the relative position information, the process proceeds to step S113.

ステップS113では、相対位置信号を検出した瞬間における絶対位置情報を絶対位置取得部53が取得する。言い換えると、相対位置情報を取得したタイミングでの絶対位置情報を取得する。絶対位置取得部53は、検出したポテンショメータ76の電圧と記憶部58に記憶している特性マップから絶対位置を取得する。特性マップとは、ポテンショメータ76の電圧と出力軸部75の回転位置との関係を示すマップである。初期状態の特性マップである初期マップは、ポテンショメータ76の仕様によって決まる。ただし、初期マップにおいては、ポテンショメータ76の製造時のばらつきなどに起因する所定の公差が設定されており、出力軸部75の回転位置を精度よく取得することが困難である。絶対位置情報を取得した後、ステップS114に進む。 In step S113, the absolute position acquisition unit 53 acquires the absolute position information at the moment when the relative position signal is detected. In other words, the absolute position information is acquired at the timing when the relative position information is acquired. The absolute position acquisition unit 53 acquires the absolute position from the detected voltage of the potentiometer 76 and the characteristic map stored in the storage unit 58. The characteristic map is a map showing the relationship between the voltage of the potentiometer 76 and the rotation position of the output shaft portion 75. The initial map, which is the characteristic map in the initial state, is determined by the specifications of the potentiometer 76. However, in the initial map, a predetermined tolerance is set due to variations in the potentiometer 76 during manufacturing, and it is difficult to accurately acquire the rotational position of the output shaft portion 75. After acquiring the absolute position information, the process proceeds to step S114.

ステップS114では、実位置設定部56が実位置情報を設定する。実位置情報の設定では、絶対位置情報と相対位置情報とのどちらか一方の位置情報を実位置情報とみなす。実位置情報を設定した後、ステップS115に進む。 In step S114, the actual position setting unit 56 sets the actual position information. In the setting of the actual position information, the position information of either the absolute position information or the relative position information is regarded as the actual position information. After setting the actual position information, the process proceeds to step S115.

ステップS115では、実位置補正部57が実位置情報を補正する。実位置情報の補正では、絶対位置情報と相対位置情報とのうち、少なくとも1つの位置情報を用いて実位置情報を補正する。実位置情報に絶対位置情報を設定した場合には、少なくとも相対位置情報を用いて実位置情報を補正することとなる。一方、実位置情報に相対位置情報を設定した場合には、少なくとも絶対位置情報を用いて実位置情報を補正することとなる。 In step S115, the actual position correction unit 57 corrects the actual position information. In the correction of the actual position information, the actual position information is corrected by using at least one position information of the absolute position information and the relative position information. When the absolute position information is set in the actual position information, the actual position information is corrected by using at least the relative position information. On the other hand, when the relative position information is set in the actual position information, the actual position information is corrected by using at least the absolute position information.

以下では、実位置情報に絶対位置情報を設定し、相対位置情報を用いて実位置情報を補正する場合を例に、実位置情報の補正方法について説明する。図4は、補正途中においてポテンショメータ76における回転位置Tpと電圧Vpとの関係を示す図である。ポテンショメータ76における回転位置は、出力軸部75における回転位置に相当する。図において、横軸は、回転位置を示し、縦軸は、電圧を示している。図において、抵抗値のばらつきを考慮していない初期状態の特性マップである初期マップを一点鎖線で示している。初期マップは、理想状態のポテンショメータ76における特性マップである。図において初期マップをMiと示している。 In the following, a method of correcting the actual position information will be described by taking as an example a case where the absolute position information is set in the actual position information and the actual position information is corrected using the relative position information. FIG. 4 is a diagram showing the relationship between the rotation position Tp and the voltage Vp in the potentiometer 76 during the correction. The rotation position in the potentiometer 76 corresponds to the rotation position in the output shaft portion 75. In the figure, the horizontal axis indicates the rotation position, and the vertical axis indicates the voltage. In the figure, the initial map, which is the characteristic map in the initial state without considering the variation in the resistance value, is shown by the alternate long and short dash line. The initial map is a characteristic map of the potentiometer 76 in an ideal state. In the figure, the initial map is shown as Mi.

相対位置情報に基づき、回転位置がT1に到達したタイミングにおけるポテンショメータ76の電圧V1をプロットする。初期マップに基づいた場合、回転位置がT1の時の電圧は、V1よりも低い電圧のVs1である。プロットした点と初期マップとのずれが補正情報に相当する。言い換えると、V1とVs1との差分がT1の回転位置における補正情報に相当する。実位置情報を補正した後、ステップS116に進む。 Based on the relative position information, the voltage V1 of the potentiometer 76 at the timing when the rotation position reaches T1 is plotted. Based on the initial map, the voltage when the rotation position is T1 is Vs1 having a voltage lower than V1. The deviation between the plotted points and the initial map corresponds to the correction information. In other words, the difference between V1 and Vs1 corresponds to the correction information at the rotation position of T1. After correcting the actual position information, the process proceeds to step S116.

図3のステップS116では、補正後の実位置情報を記憶部58が記憶する。ただし、補正後の実位置情報を記憶するのではなく、初期マップに対するずれを示す補正情報を記憶することで、実質的に補正後の実位置情報を記録するようにしてもよい。補正後の実位置情報を記憶部58に記憶した後、ステップS121に進む。 In step S116 of FIG. 3, the storage unit 58 stores the corrected actual position information. However, instead of storing the corrected actual position information, the corrected actual position information may be substantially recorded by storing the correction information indicating the deviation from the initial map. After storing the corrected actual position information in the storage unit 58, the process proceeds to step S121.

ステップS121では、出力軸部75が補正終了位置に到達したか否かをモータ制御装置50が判定する。出力軸部75が補正終了位置に到達していれば、ステップS122に進む。一方、出力軸部75が補正終了位置に到達していなければ、ステップS111に戻る。これにより、出力軸部75が補正開始位置から補正終了位置に到達するまでの間、相対位置信号の検出とそれに伴う実位置情報の補正を繰り返す。 In step S121, the motor control device 50 determines whether or not the output shaft portion 75 has reached the correction end position. If the output shaft portion 75 has reached the correction end position, the process proceeds to step S122. On the other hand, if the output shaft portion 75 has not reached the correction end position, the process returns to step S111. As a result, the detection of the relative position signal and the correction of the actual position information accompanying the detection of the relative position signal are repeated until the output shaft portion 75 reaches the correction end position from the correction start position.

ステップS122では、異常判定部59が相対位置信号の妥当性を検証する。より詳細には、相対位置信号が正常であるか否かを判定して、実位置情報の補正が正常な相対位置信号に基づいて行われているかを検証する。相対位置信号が正常である場合には、そのタイミングにおける補正後の実位置情報は適切であると判断して補正に反映する。一方、相対位置信号に異常がある場合には、そのタイミングにおける補正後の実位置情報は不適切であると判断して補正に反映しない。 In step S122, the abnormality determination unit 59 verifies the validity of the relative position signal. More specifically, it is determined whether or not the relative position signal is normal, and it is verified whether or not the correction of the actual position information is performed based on the normal relative position signal. When the relative position signal is normal, the corrected actual position information at that timing is judged to be appropriate and reflected in the correction. On the other hand, if there is an abnormality in the relative position signal, the corrected actual position information at that timing is judged to be inappropriate and is not reflected in the correction.

異常判定部59による異常判定の一例を以下に説明する。異常判定部59は、相対位置信号を取得してから次の相対位置信号を取得するまでのタイミングが所定時間よりも短い場合に異常があると判定する。例えば、正常であれば約100マイクロ秒の間隔で相対位置信号が取得できると想定される場合において、所定時間を50マイクロ秒に設定する。この場合、直前の相対位置信号を取得してから次に相対位置信号を取得するまでに要した時間が、所定時間である50マイクロ秒未満であるときには、取得した相対位置信号は異常な信号であると判断する。 An example of abnormality determination by the abnormality determination unit 59 will be described below. The abnormality determination unit 59 determines that there is an abnormality when the timing from the acquisition of the relative position signal to the acquisition of the next relative position signal is shorter than the predetermined time. For example, when it is assumed that the relative position signal can be acquired at intervals of about 100 microseconds under normal conditions, the predetermined time is set to 50 microseconds. In this case, when the time required from the acquisition of the immediately preceding relative position signal to the next acquisition of the relative position signal is less than the predetermined time of 50 microseconds, the acquired relative position signal is an abnormal signal. Judge that there is.

また、異常判定部59は、相対位置信号を取得してから次の相対位置信号を取得するまでのタイミングが長い場合であっても、間に本来取得すべき相対位置信号が存在していると判断できる場合は、相対位置信号自体には異常がないと判定する。例えば、正常であれば約100マイクロ秒の間隔で相対位置信号が取得できる場合を想定する。この場合、810マイクロ秒で取得した相対位置信号の次に1005マイクロ秒で相対位置信号を取得した場合には、900マイクロ秒付近で取得すべき相対位置信号が取得できなかったと判断できる。この場合、1005マイクロ秒で取得した相対位置信号は、前回取得した810マイクロ秒で取得した相対位置信号の相対位置から2つ分の相対位置信号だけ進んだ相対位置であると判断する。 Further, even if the timing from the acquisition of the relative position signal to the acquisition of the next relative position signal is long, the abnormality determination unit 59 states that the relative position signal that should be originally acquired exists between them. If it can be determined, it is determined that there is no abnormality in the relative position signal itself. For example, it is assumed that the relative position signal can be acquired at intervals of about 100 microseconds if it is normal. In this case, when the relative position signal is acquired in 1005 microseconds next to the relative position signal acquired in 810 microseconds, it can be determined that the relative position signal to be acquired could not be acquired in the vicinity of 900 microseconds. In this case, it is determined that the relative position signal acquired in 1005 microseconds is a relative position advanced by two relative position signals from the relative position of the relative position signal acquired in 810 microseconds previously acquired.

異常判定部59による異常判定の他の一例を以下に説明する。異常判定部59は、電圧取得部51で取得した電源電圧の変動量が閾値以上である場合に異常があると判定する。例えば、正常であれば直流電源5が12Vの電圧を安定して出力する場合において、電圧の変動量の閾値を2Vに設定する。この場合、直流電源5の電圧変動が2Vを超えているタイミングで取得した相対位置信号は異常な信号であると判断する。補正後の実位置情報を選定した後、ステップS123に進む。 Another example of abnormality determination by the abnormality determination unit 59 will be described below. The abnormality determination unit 59 determines that there is an abnormality when the fluctuation amount of the power supply voltage acquired by the voltage acquisition unit 51 is equal to or greater than the threshold value. For example, when the DC power supply 5 stably outputs a voltage of 12V under normal conditions, the threshold value of the voltage fluctuation amount is set to 2V. In this case, it is determined that the relative position signal acquired at the timing when the voltage fluctuation of the DC power supply 5 exceeds 2V is an abnormal signal. After selecting the corrected actual position information, the process proceeds to step S123.

ステップS123では、記憶部58が適切な補正情報を記憶する。言い換えると、異常判定部59で正常と判断された妥当な補正情報について、1つ1つの補正情報を統合して、1つの補正情報として記憶する。より詳細には、補正後の特性マップである補正後マップを記憶部58に記憶する。ステップS122において、相対位置信号に異常があると判定された場合には、該当する相対位置信号を補正に使用しない。このため、補正後マップにおいて、プロット点が一部抜けることがある。補正後マップのプロット点に一部抜けがある場合であっても、正常なプロット点に基づいて補正後マップを作成可能である。ただし、異常があると判定された相対位置信号が多いなど、プロット点の数が少ない場合には、精度の低い補正後マップが作成されてしまう可能性がある。この場合には、補正後マップを作成せずに、補正モードを最初からやり直してもよい。 In step S123, the storage unit 58 stores appropriate correction information. In other words, with respect to the appropriate correction information determined to be normal by the abnormality determination unit 59, each correction information is integrated and stored as one correction information. More specifically, the corrected map, which is the corrected characteristic map, is stored in the storage unit 58. If it is determined in step S122 that the relative position signal is abnormal, the corresponding relative position signal is not used for correction. Therefore, some plot points may be omitted in the corrected map. Even if there are some omissions in the plot points of the corrected map, it is possible to create the corrected map based on the normal plot points. However, if the number of plot points is small, such as when there are many relative position signals determined to be abnormal, a corrected map with low accuracy may be created. In this case, the correction mode may be restarted from the beginning without creating the corrected map.

図5は、補正完了後においてポテンショメータ76における回転位置Tpと電圧Vpとの関係を示す図である。図において、抵抗値のばらつきなどを考慮した補正後の特性マップである補正後マップの一例を実線で示している。補正後マップは、実際のポテンショメータ76における特性を示すマップである。図において、補正後マップをMcと示している。 FIG. 5 is a diagram showing the relationship between the rotation position Tp and the voltage Vp in the potentiometer 76 after the correction is completed. In the figure, an example of the corrected map, which is a corrected characteristic map considering variations in resistance values, is shown by a solid line. The corrected map is a map showing the characteristics of the actual potentiometer 76. In the figure, the corrected map is shown as Mc.

補正開始位置から補正終了位置までをT1からT10までの10段階に分割している。相対位置情報に基づき、回転位置がT1からT10のそれぞれの位置に到達した時間におけるポテンショメータ76の電圧をそれぞれプロットしている。ただし、本来であればT5に相当する回転位置については、正常な相対位置信号が取得できなかったと判断してプロットに反映していない状態である。回転位置とポテンショメータ76の電圧とがともにゼロであるゼロ点と複数のプロット点を通るように補正後マップの線を滑らかに引いている。ただし、補正後マップの線の引き方は、様々な近似方法から適切な方法を適宜採用可能である。 The period from the correction start position to the correction end position is divided into 10 stages from T1 to T10. Based on the relative position information, the voltage of the potentiometer 76 at the time when the rotation position reaches each position from T1 to T10 is plotted. However, the rotation position corresponding to T5 is not reflected in the plot because it is determined that the normal relative position signal could not be acquired. The line of the corrected map is smoothly drawn so as to pass through a zero point where both the rotation position and the voltage of the potentiometer 76 are zero and a plurality of plot points. However, as the method of drawing the line of the corrected map, an appropriate method can be appropriately adopted from various approximation methods.

初期マップにおいては、傾きが一定の直線をなしている。一方、補正後マップにおいては、回転位置によって傾きが若干異なっている。また、T1においては、補正後マップにおける電圧V1が初期マップにおける電圧Vs1よりも大きい。言い換えると、仮に初期マップに基づいて直流モータ71の回転をT1に制御した場合には、T1よりも小さい回転位置に制御されることとなる。一方、T8においては、補正後マップにおける電圧V8が初期マップにおける電圧Vs8の値よりも小さい。言い換えると、仮に初期マップに基づいて直流モータ71の回転をT8に制御した場合には、T8よりも大きい回転位置に制御されることとなる。 In the initial map, the slope is a straight line with a constant slope. On the other hand, in the corrected map, the inclination is slightly different depending on the rotation position. Further, in T1, the voltage V1 in the corrected map is larger than the voltage Vs1 in the initial map. In other words, if the rotation of the DC motor 71 is controlled to T1 based on the initial map, it will be controlled to a rotation position smaller than T1. On the other hand, in T8, the voltage V8 in the corrected map is smaller than the value of the voltage Vs8 in the initial map. In other words, if the rotation of the DC motor 71 is controlled to T8 based on the initial map, it will be controlled to a rotation position larger than T8.

初期マップは、補正前の実位置情報を示している。言い換えると、初期マップは、絶対位置情報を示している。補正後マップは、補正後の実位置情報を示している。初期マップと補正後マップとの差は、補正情報を示している。初期マップの代わりに補正後マップを用いて絶対値情報を取得して実位置情報を設定することは、絶対位置情報を取得して相対位置情報で補正することに相当する。 The initial map shows the actual position information before correction. In other words, the initial map shows absolute location information. The corrected map shows the corrected actual position information. The difference between the initial map and the corrected map indicates correction information. Acquiring absolute value information and setting actual position information using a corrected map instead of the initial map is equivalent to acquiring absolute position information and correcting with relative position information.

補正後マップにおいて、回転位置をT1からT10までの10段階に分割して対応するポテンショメータ76の電圧をプロットする場合を例に説明を行ったが、分割する数は10段階に限られない。例えば、相対位置信号を検出する毎に、回転位置とポテンショメータ76の電圧との関係を全てプロットしてプロット点の数を1万以上としてもよい。相対位置信号が電流波形の電流値である場合、相対位置信号を検出してから次に相対位置信号を検出するまでの時間は、直流モータ71を回転させる速度などに依存するが、例えば100マイクロ秒である。信号の検出間隔が100マイクロ秒であり、補正開始位置から補正終了位置までの移動に5秒を要する場合には、プロット点の数が5万となる。 In the corrected map, the case where the rotation position is divided into 10 stages from T1 to T10 and the voltage of the corresponding potentiometer 76 is plotted is described as an example, but the number of divisions is not limited to 10 stages. For example, each time a relative position signal is detected, the relationship between the rotation position and the voltage of the potentiometer 76 may be plotted and the number of plot points may be 10,000 or more. When the relative position signal is the current value of the current waveform, the time from the detection of the relative position signal to the next detection of the relative position signal depends on the speed at which the DC motor 71 is rotated, for example, 100 micron. Seconds. If the signal detection interval is 100 microseconds and it takes 5 seconds to move from the correction start position to the correction end position, the number of plot points is 50,000.

回転位置に対するポテンショメータ76の電圧を細かく取得してプロット点の数を多く確保することで、より正確な補正を行うことができる。一方、プロット点の数が少ないほど、マップの作成に要する時間を短くできる。例えば、電流波形をなす電流値を2回検出する毎に相対位置信号を検出したとみなし、回転位置に対するポテンショメータ76の電圧をプロットするように設定してもよい。これによると、相対位置信号を検出する毎にプロットする場合に比べて、プロット点の数を半分にできる。このため、補正に要する時間を短くしやすい。プロット点の数は、必要な補正の精度と所要時間に応じて、適宜設定することが好ましい。 By acquiring the voltage of the potentiometer 76 with respect to the rotation position in detail and securing a large number of plot points, more accurate correction can be performed. On the other hand, the smaller the number of plot points, the shorter the time required to create the map. For example, the relative position signal may be regarded as detected every time the current value forming the current waveform is detected twice, and the voltage of the potentiometer 76 with respect to the rotation position may be set to be plotted. According to this, the number of plot points can be halved as compared with the case of plotting each time a relative position signal is detected. Therefore, it is easy to shorten the time required for correction. The number of plot points is preferably set as appropriate according to the required correction accuracy and required time.

ステップS111で相対位置信号を検出してからステップS116で補正後の実位置情報を記憶するまでの工程は、モータ制御装置50のマイコンを用いて実施される。このため、マイコンの処理性能が高いことが好ましい。より詳細には、スキャンチャンネルを設定して複数のチャンネルを変換できるマイコンが好ましい。また、記憶部58に情報を記憶する際にDMA(Direct Memory Access)によって高速に記憶可能なマイコンが好ましい。また、外部割り込みAD変換が可能であり、外部割り込み自体にノイズフィルタ機能が搭載されているロバスト性の高いマイコンが好ましい。特に、出力軸部75を補正開始位置から補正終了位置まで数秒で移動させ、かつ、プロット点数が数万点におよぶ場合には、短時間に膨大な情報の処理が必要になる。したがって、マイコンの性能が高く、極めて小さなタイムラグで処理を実行できることが精度よく実位置情報の補正を行うために重要である。 The process from the detection of the relative position signal in step S111 to the storage of the corrected actual position information in step S116 is performed by using the microcomputer of the motor control device 50. Therefore, it is preferable that the processing performance of the microcomputer is high. More specifically, a microcomputer capable of setting a scan channel and converting a plurality of channels is preferable. Further, a microcomputer capable of storing information in the storage unit 58 at high speed by DMA (Direct Memory Access) is preferable. Further, a highly robust microcomputer capable of AD conversion of an external interrupt and having a noise filter function in the external interrupt itself is preferable. In particular, when the output shaft portion 75 is moved from the correction start position to the correction end position in a few seconds and the number of plot points reaches tens of thousands, it is necessary to process a huge amount of information in a short time. Therefore, it is important that the performance of the microcomputer is high and the processing can be executed with an extremely small time lag in order to accurately correct the actual position information.

記憶部58には、初期マップと補正後マップとの2つの特性マップが同時に記憶されている。ここで、異常判定部59によって、補正後マップが初期マップの許容公差の範囲内に含まれているか否かを判定してもよい。補正後マップ全体が初期マップの許容公差の範囲内に含まれていれば、補正後マップとポテンショメータ76には異常がないと判断する。一方、補正後マップの一部でも初期マップの許容公差の範囲内に含まれていなければ、補正後マップとポテンショメータ76との少なくともどちらかに異常があると判断する。異常があると判断した場合、ポテンショメータ76は正常であるが補正モードに異常があり、誤った補正後マップが得られた可能性がある。この場合には、補正モードを再度実施することで適切な補正後マップが得られる場合がある。補正後マップが初期マップの許容公差の範囲内に含まれていない場合には、ユーザなどに対して補正モードを再度実施することや、ポテンショメータ76の交換を促す報知を行うことが好ましい。 The storage unit 58 simultaneously stores two characteristic maps, an initial map and a corrected map. Here, the abnormality determination unit 59 may determine whether or not the corrected map is included in the allowable tolerance range of the initial map. If the entire corrected map is within the allowable tolerance range of the initial map, it is determined that the corrected map and the potentiometer 76 are normal. On the other hand, if even a part of the corrected map is not included in the allowable tolerance range of the initial map, it is determined that there is an abnormality in at least one of the corrected map and the potentiometer 76. If it is determined that there is an abnormality, the potentiometer 76 is normal, but there is an abnormality in the correction mode, and it is possible that an erroneous corrected map was obtained. In this case, an appropriate corrected map may be obtained by executing the correction mode again. When the corrected map is not included in the allowable tolerance range of the initial map, it is preferable to re-execute the correction mode to the user or the like or to notify the user to replace the potentiometer 76.

記憶部58において、過去に実施した補正モードで得られた補正後マップがすでに記憶されている場合には、過去の補正後マップと最新の補正後マップとの両方を記憶してもよい。これによると、過去の補正後マップと最新の補正後マップとを比較して、ポテンショメータ76の経年劣化の進行度合いを推測することができる。適切な補正情報として補正後マップを記憶部58に記憶した後、補正モードを終了する。 When the corrected map obtained in the correction mode performed in the past is already stored in the storage unit 58, both the past corrected map and the latest corrected map may be stored. According to this, it is possible to estimate the progress of aging deterioration of the potentiometer 76 by comparing the past corrected map with the latest corrected map. After storing the corrected map in the storage unit 58 as appropriate correction information, the correction mode is terminated.

記憶部58に補正後マップが記憶されている場合、モータシステム100を駆動する際に絶対位置取得部53が補正後マップに基づいて出力軸部75の絶対位置情報を取得できる。ここで、補正後マップを用いて取得した絶対位置情報は、ポテンショメータ76のばらつきなどを考慮した位置情報であり、初期マップを用いて取得した絶対位置情報よりも出力軸部75の実際の回転位置を正確に取得しやすい。このため、相対位置取得部54による相対位置情報の取得などの相対位置情報を用いる制御をあらためて行うことなく、出力軸部75の回転位置を精度よく得ることができる。 When the corrected map is stored in the storage unit 58, the absolute position acquisition unit 53 can acquire the absolute position information of the output shaft unit 75 based on the corrected map when driving the motor system 100. Here, the absolute position information acquired by using the corrected map is the position information considering the variation of the potentiometer 76 and the like, and the actual rotation position of the output shaft portion 75 is higher than the absolute position information acquired by using the initial map. Is easy to get accurately. Therefore, the rotation position of the output shaft unit 75 can be accurately obtained without performing the control using the relative position information such as the acquisition of the relative position information by the relative position acquisition unit 54.

モータシステム100を駆動する際には、出力軸部75の実際の回転位置を検出しながら、目標の回転位置に近づくように直流モータ71を制御することとなる。補正後マップを用いることができる場合には、補正後マップを用いて出力軸部75の実際の回転位置を検出することとなる。モータシステム100の駆動方法は、補正後マップを用いる方法に限られない。補正後マップを用いることができない場合には、相対位置情報のみを用いて出力軸部75の回転位置を検出することができる。この場合、相対位置情報のみを用いた位置検出を開始する時の回転位置を正確に把握することで、補正後マップを用いる方法と同程度の精度で回転位置を検出することができる。 When driving the motor system 100, the DC motor 71 is controlled so as to approach the target rotation position while detecting the actual rotation position of the output shaft portion 75. If the corrected map can be used, the actual rotation position of the output shaft portion 75 will be detected by using the corrected map. The driving method of the motor system 100 is not limited to the method using the corrected map. If the corrected map cannot be used, the rotational position of the output shaft portion 75 can be detected using only the relative position information. In this case, by accurately grasping the rotation position when starting the position detection using only the relative position information, the rotation position can be detected with the same accuracy as the method using the corrected map.

ポテンショメータ76には、検出領域が設定されている。検出領域とは、連続する抵抗膜が設けられている領域のことである。ポテンショメータ76は、検出領域内において、回転位置Tpに応じた電圧Vpを検出可能である。ポテンショメータ76において、抵抗膜の端部に接続している導線などが設けられている領域には、抵抗膜を配することができない。このため、360°連続して環状に抵抗膜を配することができず、例えば300°連続して抵抗膜が設けられ、残りの60°は抵抗膜が設けられていない構成となる。この抵抗膜が設けられている300°相当の領域が検出領域である。一方、抵抗膜が設けられていない60°相当の領域が非検出領域である。 A detection area is set in the potentiometer 76. The detection region is a region provided with a continuous resistance film. The potentiometer 76 can detect the voltage Vp according to the rotation position Tp in the detection region. In the potentiometer 76, the resistance film cannot be arranged in the region where the lead wire or the like connected to the end of the resistance film is provided. Therefore, it is not possible to arrange the resistance film in an annular shape continuously by 360 °, for example, the resistance film is continuously provided by 300 °, and the resistance film is not provided in the remaining 60 °. The region corresponding to 300 ° in which this resistance film is provided is the detection region. On the other hand, the region corresponding to 60 ° in which the resistance film is not provided is the non-detection region.

ポテンショメータ76は、検出領域を出力軸部75の可動範囲に広く対応させるほど、出力軸部75の回転位置の変化を細かく検出しやすい。例えば、ポテンショメータ76の検出領域が300°、ポテンショメータ76の電圧変動が0Vから5Vの場合を想定する。可動範囲が300°の出力軸部75にポテンショメータ76の検出領域全体を対応させた場合には、0.1Vの電圧変動が、出力軸部75の6°相当の回転に相当する。可動範囲が150°の出力軸部75にポテンショメータ76の検出領域全体を対応させた場合には、0.1Vの電圧変動が、出力軸部75の3°相当の回転に相当する。 The wider the detection area corresponds to the movable range of the output shaft portion 75, the easier it is for the potentiometer 76 to detect changes in the rotational position of the output shaft portion 75 in detail. For example, assume that the detection region of the potentiometer 76 is 300 ° and the voltage fluctuation of the potentiometer 76 is 0V to 5V. When the entire detection region of the potentiometer 76 is made to correspond to the output shaft portion 75 having a movable range of 300 °, the voltage fluctuation of 0.1 V corresponds to the rotation of the output shaft portion 75 corresponding to 6 °. When the entire detection region of the potentiometer 76 is made to correspond to the output shaft portion 75 having a movable range of 150 °, the voltage fluctuation of 0.1 V corresponds to the rotation of the output shaft portion 75 corresponding to 3 °.

補正後マップを用いて直流モータ71の回転駆動を制御する場合、ポテンショメータ76の検出領域を外れてしまうと、回転位置を検出できなくなる。例えば、ドア装置の回動可能角度が330°であり、ポテンショメータ76の検出領域が300°である場合を想定する。ドア装置の回動可能角度をポテンショメータ76の検出領域にそのまま対応させようとすると30°相当の領域において、ポテンショメータ76で回転位置を検出できないこととなる。このように、ドア装置に連動する出力軸部75の回転位置がポテンショメータ76の検出領域よりも外側に位置している場合には、相対位置情報のみに基づいて回転位置を検出する。言い換えると、相対位置情報を実位置情報に設定し、絶対位置情報による補正を行わない。これにより、補正後マップを用いた直流モータ71の駆動制御ができない状況においても、相対位置情報を用いて直流モータ71の駆動制御を継続できる。 When controlling the rotational drive of the DC motor 71 using the corrected map, if the detection region of the potentiometer 76 is out of the range, the rotational position cannot be detected. For example, assume that the rotatable angle of the door device is 330 ° and the detection area of the potentiometer 76 is 300 °. If the rotatable angle of the door device is made to correspond to the detection region of the potentiometer 76 as it is, the rotation position cannot be detected by the potentiometer 76 in the region corresponding to 30 °. As described above, when the rotation position of the output shaft portion 75 linked to the door device is located outside the detection area of the potentiometer 76, the rotation position is detected based only on the relative position information. In other words, the relative position information is set as the actual position information, and the correction by the absolute position information is not performed. As a result, even in a situation where the drive control of the DC motor 71 using the corrected map cannot be performed, the drive control of the DC motor 71 can be continued by using the relative position information.

補正後マップを用いて直流モータ71を駆動制御する場合、ポテンショメータ76の電圧を取得する度に、補正後の実位置情報が更新される。このため、更新された補正後の実位置情報に基づいて、出力軸部75が目標の回転位置に近づくように直流モータ71が駆動制御されることとなる。したがって、ポテンショメータ76の電圧を取得してから次に電圧を取得するまでの間に、出力軸部75が目標の回転位置を超えてしまう場合がある。ポテンショメータ76の電圧取得間隔が長いほど、上述のハンチングが引き起こされやすい。電圧取得間隔は、例えば20ミリ秒である。また、目標の回転位置までに必要な回転移動量が小さいほど、上述のハンチングが引き起こされやすい。また、ドア装置の移動が速いほど、上述のハンチングが引き起こされやすい。 When the DC motor 71 is driven and controlled using the corrected map, the corrected actual position information is updated every time the voltage of the potentiometer 76 is acquired. Therefore, the DC motor 71 is driven and controlled so that the output shaft portion 75 approaches the target rotation position based on the updated actual position information. Therefore, the output shaft portion 75 may exceed the target rotation position between the acquisition of the voltage of the potentiometer 76 and the next acquisition of the voltage. The longer the voltage acquisition interval of the potentiometer 76, the more likely it is that the above-mentioned hunting will occur. The voltage acquisition interval is, for example, 20 milliseconds. Further, the smaller the amount of rotational movement required to reach the target rotational position, the more likely the above-mentioned hunting is to occur. Further, the faster the door device moves, the more likely the above-mentioned hunting is to occur.

相対位置情報を用いて直流モータ71を駆動制御する場合、電流波形の検出周期が経過する度に、電流波形が更新される。このため、更新された電流波形に基づいて、出力軸部75が目標の回転位置に近づくように直流モータ71が駆動制御されることとなる。電流波形の検出周期は、少なくともポテンショメータ76の電圧取得間隔よりも短い。電流波形の検出周期は、例えば100マイクロ秒である。このため、相対位置情報を用いた直流モータ71の駆動制御は、補正後マップを用いた直流モータ71の駆動制御よりも、ハンチングが引き起こされにくい。 When the DC motor 71 is driven and controlled using the relative position information, the current waveform is updated every time the current waveform detection cycle elapses. Therefore, the DC motor 71 is driven and controlled so that the output shaft portion 75 approaches the target rotation position based on the updated current waveform. The current waveform detection cycle is at least shorter than the voltage acquisition interval of the potentiometer 76. The detection cycle of the current waveform is, for example, 100 microseconds. Therefore, the drive control of the DC motor 71 using the relative position information is less likely to cause hunting than the drive control of the DC motor 71 using the corrected map.

目標の回転位置までの回転移動量が所定移動量以上の場合には、補正後マップを用いて直流モータ71を駆動制御することが好ましい。これによると、シンプルな制御で出力軸部75の位置を目標の回転位置に近づけることができる。一方、目標の回転位置までの回転移動量が所定移動量未満の場合には、補正後マップを用いた直流モータ71の駆動制御を行わず、相対位置情報を用いて直流モータ71の駆動制御を行う。これによると、ハンチングが引き起こされやすい状況で、ハンチングが引き起こされにくい制御方法を採用することで、ハンチングを抑制できる。 When the amount of rotational movement to the target rotation position is equal to or greater than the predetermined amount of movement, it is preferable to drive and control the DC motor 71 using the corrected map. According to this, the position of the output shaft portion 75 can be brought closer to the target rotation position with simple control. On the other hand, when the rotational movement amount to the target rotation position is less than the predetermined movement amount, the drive control of the DC motor 71 using the corrected map is not performed, and the drive control of the DC motor 71 is performed using the relative position information. conduct. According to this, in a situation where hunting is likely to occur, hunting can be suppressed by adopting a control method in which hunting is unlikely to occur.

上述した実施形態によると、実位置設定部56は、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて、出力軸部75の実位置情報を設定している。さらに、実位置補正部57は、絶対位置情報と相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて実位置情報を補正している。このため、絶対位置情報と相対位置情報との2つの位置情報を用いて出力軸部75の回転位置を得ることができる。したがって、絶対位置情報と相対位置情報とのどちらか一方の位置情報のみを用いて出力軸部75の回転位置を得る場合に比べて、精度よく出力軸部75の回転位置を得ることができる。よって、高精度に位置制御可能なモータ制御装置50を提供できる。 According to the above-described embodiment, the actual position setting unit 56 sets the actual position information of the output shaft unit 75 based on at least one position information out of the two position information of the absolute position information and the relative position information. ing. Further, the actual position correction unit 57 corrects the actual position information based on at least one of the two position information, the absolute position information and the relative position information. Therefore, the rotation position of the output shaft portion 75 can be obtained by using the two position information of the absolute position information and the relative position information. Therefore, the rotation position of the output shaft portion 75 can be obtained more accurately than the case where the rotation position of the output shaft portion 75 is obtained by using only the position information of either the absolute position information or the relative position information. Therefore, it is possible to provide the motor control device 50 capable of position control with high accuracy.

実位置設定部56は、絶対位置情報を用いて実位置情報を設定し、実位置補正部57は、相対位置情報を用いて実位置情報を補正する。ここで、絶対位置情報は、ポテンショメータ76の製造ばらつきや経年劣化などの影響を受けている。このため、出力軸部75の回転位置を精度よく得ることが困難である。ただし、絶対位置情報は、ポテンショメータ76の電圧から容易に得ることができる。一方、相対位置情報は、直流モータ71の回転数から出力軸部75の回転位置を精度よく得やすい。ただし、相対位置情報は、基準となる位置に位置合わせしてから、相対位置信号の検出を開始する必要がある。したがって、取得の容易な絶対位置情報を、精度の高い相対位置情報に基づいて補正することで、出力軸部75の回転位置を精度よく取得可能となる。 The actual position setting unit 56 sets the actual position information using the absolute position information, and the actual position correction unit 57 corrects the actual position information using the relative position information. Here, the absolute position information is affected by manufacturing variations and aging deterioration of the potentiometer 76. Therefore, it is difficult to accurately obtain the rotation position of the output shaft portion 75. However, the absolute position information can be easily obtained from the voltage of the potentiometer 76. On the other hand, as for the relative position information, it is easy to accurately obtain the rotation position of the output shaft portion 75 from the rotation speed of the DC motor 71. However, it is necessary to start the detection of the relative position signal after the relative position information is aligned with the reference position. Therefore, by correcting the easy-to-acquire absolute position information based on the highly accurate relative position information, the rotational position of the output shaft portion 75 can be acquired with high accuracy.

実位置補正部57は、絶対位置情報と相対位置情報との差分を実位置情報に加えることで実位置情報を補正する。これにより、実位置情報を相対位置情報に一致させるように補正することができる。したがって、精度よく出力軸部75の回転位置を得やすい相対位置情報に一致させるように実位置情報を補正して、出力軸部75の回転位置を正確に取得しやすい。 The actual position correction unit 57 corrects the actual position information by adding the difference between the absolute position information and the relative position information to the actual position information. As a result, the actual position information can be corrected so as to match the relative position information. Therefore, it is easy to accurately acquire the rotation position of the output shaft portion 75 by correcting the actual position information so as to match the relative position information that makes it easy to obtain the rotation position of the output shaft portion 75 with high accuracy.

記憶部58は、ポテンショメータ76の電圧と補正後の実位置情報との関係を示す補正後マップを記憶する。このため、補正モード以外のモードで直流モータ71を駆動する際に、記憶部58に記憶した補正後マップを用いて直流モータ71を制御できる。したがって、ポテンショメータ76の製造ばらつきなどの影響により許容公差の大きな初期マップを用いる場合に比べて、出力軸部75の回転位置を精度よく得やすい。また、補正後マップを用いて直流モータ71を駆動することで、相対位置信号を取得して相対位置情報を取得しなくても、補正の加味された位置情報を得ることができる。 The storage unit 58 stores a corrected map showing the relationship between the voltage of the potentiometer 76 and the corrected actual position information. Therefore, when the DC motor 71 is driven in a mode other than the correction mode, the DC motor 71 can be controlled by using the corrected map stored in the storage unit 58. Therefore, it is easier to accurately obtain the rotational position of the output shaft portion 75 as compared with the case of using an initial map having a large allowable tolerance due to the influence of manufacturing variation of the potentiometer 76. Further, by driving the DC motor 71 using the corrected map, it is possible to obtain the corrected position information without acquiring the relative position signal and the relative position information.

記憶部58は、初期マップと補正後マップとを記憶している。このため、初期マップと補正後マップとを比較できる。これにより、例えば、補正後マップが初期マップの許容公差範囲から外れている場合に、ポテンショメータ76が故障している可能性があると判断できる。あるいは、補正後マップが初期マップの許容公差範囲から外れている場合に、補正モードが適切に実施されず、誤った補正後マップが得られている可能性があると判断できる。 The storage unit 58 stores the initial map and the corrected map. Therefore, the initial map and the corrected map can be compared. Thereby, for example, when the corrected map is out of the allowable tolerance range of the initial map, it can be determined that the potentiometer 76 may be out of order. Alternatively, if the corrected map is out of the allowable tolerance range of the initial map, it can be determined that the correction mode may not be properly executed and an erroneous corrected map may be obtained.

実位置補正部57は、相対位置信号に異常があると判定された場合に、補正後の実位置情報を補正に反映しない。言い換えると、実位置補正部57は、異常判定部59で異常があると判定された場合に、異常の発生しているタイミングにおける絶対位置情報または相対位置情報を用いた実位置情報の補正を行わない。このため、異常値を用いて実位置情報に対して誤った補正をしてしまうことを抑制できる。したがって、補正の精度を高く保ちやすい。 When it is determined that the relative position signal has an abnormality, the actual position correction unit 57 does not reflect the corrected actual position information in the correction. In other words, when the abnormality determination unit 59 determines that there is an abnormality, the actual position correction unit 57 corrects the actual position information using the absolute position information or the relative position information at the timing when the abnormality occurs. not. Therefore, it is possible to prevent erroneous correction of the actual position information by using the abnormal value. Therefore, it is easy to keep the correction accuracy high.

実位置補正部57は、異常判定部59で異常があると判定された場合に、タイマ55を用いて取得した異常の発生しているタイミングにおける絶対位置情報または相対位置情報を用いた実位置情報の補正を行わない。このため、絶対位置情報や相対位置情報を取得した時間と、異常の発生した時間を後から照会できる。言い換えると、絶対位置情報や相対位置情報の取得と同時に、異常の有無を判定しなくてもよい。したがって、相対位置信号を検出すると同時に検出した相対位置信号の妥当性を検証する場合に比べて、モータ制御装置50が行う処理を時間的に分散させやすい。 When the abnormality determination unit 59 determines that there is an abnormality, the actual position correction unit 57 uses the absolute position information or the relative position information at the timing at which the abnormality has occurred acquired by using the timer 55. Is not corrected. Therefore, the time when the absolute position information or the relative position information is acquired and the time when the abnormality occurs can be inquired later. In other words, it is not necessary to determine the presence or absence of an abnormality at the same time as acquiring the absolute position information and the relative position information. Therefore, it is easier to disperse the processing performed by the motor control device 50 in time as compared with the case where the relative position signal is detected and the validity of the detected relative position signal is verified at the same time.

異常判定部59は、電圧取得部51で取得している電圧の変動量が閾値以上である場合には、そのタイミングにおける相対位置情報には異常があると判定する。このため、相対位置取得部54が、直流電源5の電圧の変動による電流変動を、電流波形の変動であると誤検出した場合でも、誤検出した信号を補正に用いることがない。したがって、異常値を用いて実位置情報に対して誤った補正をしてしまうことを抑制できる。 When the fluctuation amount of the voltage acquired by the voltage acquisition unit 51 is equal to or greater than the threshold value, the abnormality determination unit 59 determines that the relative position information at that timing has an abnormality. Therefore, even if the relative position acquisition unit 54 erroneously detects the current fluctuation due to the voltage fluctuation of the DC power supply 5 as the fluctuation of the current waveform, the erroneously detected signal is not used for correction. Therefore, it is possible to prevent erroneous correction of the actual position information by using the abnormal value.

出力軸部75は、可動範囲の一端が機構的に突き当てられている突き当て位置に設定されている。さらに、実位置補正部57は、例えば、突き当て位置における相対位置情報を用いて突き当て位置における絶対位置情報を補正することで実位置情報を補正している。ここで、突き当て位置は、ドア装置を全閉した状態に相当し得る位置であり、機構的に決まる位置であるため、正確な位置情報を取得しやすい。したがって、相対位置情報などの誤差を含み得る位置情報を、出力軸部75の突き当て位置に対応づけることができる。特に、突き当て位置を補正開始位置とすることで、出力軸部75の正確な位置を基準に補正を進めることができる。このため、実位置情報の補正精度を高めやすい。 The output shaft portion 75 is set at an abutting position where one end of the movable range is mechanically abutted. Further, the actual position correction unit 57 corrects the actual position information by correcting the absolute position information at the abutting position by using the relative position information at the abutting position, for example. Here, the abutting position is a position that can correspond to a state in which the door device is fully closed, and is a position that is mechanically determined, so that it is easy to acquire accurate position information. Therefore, the position information that may include an error such as the relative position information can be associated with the abutting position of the output shaft portion 75. In particular, by setting the abutting position as the correction start position, the correction can be advanced based on the accurate position of the output shaft portion 75. Therefore, it is easy to improve the correction accuracy of the actual position information.

相対位置取得部54は、少なくともドア装置が空調ケース10に突き当てられている位置を含む複数の位置において出力軸部75の相対位置情報を取得する。このため、突き当てられている位置を相対位置情報に含めることができる。したがって、出力軸部75の正確な位置情報と相対位置情報とを対応づけることができる。特に、突き当てられている位置を補正開始位置とすることで、出力軸部75の正確な位置を基準に相対位置情報を取得することができる。このため、実位置情報の補正精度を高めやすい。 The relative position acquisition unit 54 acquires relative position information of the output shaft unit 75 at a plurality of positions including at least a position where the door device is abutted against the air conditioning case 10. Therefore, the abutted position can be included in the relative position information. Therefore, it is possible to associate the accurate position information of the output shaft portion 75 with the relative position information. In particular, by setting the abutted position as the correction start position, it is possible to acquire relative position information based on the accurate position of the output shaft portion 75. Therefore, it is easy to improve the correction accuracy of the actual position information.

実位置設定部56は、出力軸部75の回転位置がポテンショメータ76の検出領域よりも外側に位置している場合に、相対位置情報を用いて実位置情報を設定し、絶対位置情報を用いた補正を行わない。このため、ポテンショメータ76を用いて適切な絶対位置情報を検出できない場合であっても、相対位置情報を用いて出力軸部75を回転移動させることができる。また、出力軸部75の可動範囲がポテンショメータ76の検出領域よりも外側に位置しない構成に比べて、回転位置のより細かな変化を電圧変化として検出可能である。よって、出力軸部75の可動範囲のうち、細かな位置検出が必要となる範囲のみを抜き出してポテンショメータ76の検出領域全体に対応させるなどして、部分的に位置検出の精度を高めることができる。言い換えると、補正後マップを用いた制御方法と、相対位置情報のみを用いた制御方法との異なる制御方法を使い分けて、直流モータ71を制御することができる。 When the rotation position of the output shaft unit 75 is located outside the detection area of the potentiometer 76, the actual position setting unit 56 sets the actual position information using the relative position information and uses the absolute position information. No correction is made. Therefore, even when appropriate absolute position information cannot be detected by using the potentiometer 76, the output shaft portion 75 can be rotationally moved by using the relative position information. Further, as compared with the configuration in which the movable range of the output shaft portion 75 is not located outside the detection region of the potentiometer 76, it is possible to detect a finer change in the rotation position as a voltage change. Therefore, the accuracy of position detection can be partially improved by extracting only the range in which fine position detection is required from the movable range of the output shaft portion 75 and making it correspond to the entire detection area of the potentiometer 76. .. In other words, the DC motor 71 can be controlled by properly using a control method different from the control method using the corrected map and the control method using only the relative position information.

実位置設定部56は、出力軸部75の回転移動量が所定移動量未満である場合に、相対位置情報を用いて実位置情報を設定し、絶対位置情報を用いた補正を行わない。このため、ハンチングが引き起こされやすい状況では、ハンチングが引き起こされにくい制御方法で直流モータ71を制御することができる。したがって、ハンチングが引き起こされることを抑制しやすい。 When the rotational movement amount of the output shaft unit 75 is less than the predetermined movement amount, the actual position setting unit 56 sets the actual position information using the relative position information and does not perform the correction using the absolute position information. Therefore, in a situation where hunting is likely to occur, the DC motor 71 can be controlled by a control method in which hunting is unlikely to occur. Therefore, it is easy to suppress the occurrence of hunting.

補正モードの制御において、ステップS113では、相対位置信号を検出した瞬間の絶対位置情報のみを取得しなくてもよい。例えば、常に絶対位置情報を取得し続けてもよい。この場合、タイマ55を用いてどのタイミングでポテンショメータ76の電圧がいくつであるかを紐づけておくことになる。これにより、相対位置信号を検出した瞬間における絶対位置情報を後から照会して実位置情報をまとめて補正できる。言い換えると、ステップS114からステップS116までの工程をステップS121で出力軸部75が補正終了位置に到達した後でまとめて実行できる。 In the control of the correction mode, in step S113, it is not necessary to acquire only the absolute position information at the moment when the relative position signal is detected. For example, the absolute position information may be continuously acquired. In this case, the timer 55 is used to link the voltage of the potentiometer 76 at what timing. As a result, the absolute position information at the moment when the relative position signal is detected can be inquired later and the actual position information can be collectively corrected. In other words, the steps from step S114 to step S116 can be collectively executed after the output shaft portion 75 reaches the correction end position in step S121.

補正モードの制御において、ステップS122を省略してもよい。この場合、得られた補正後の実位置情報は、全て適切な補正情報として扱われ、補正後マップとして記憶部58に記憶されることとなる。 In the control of the correction mode, step S122 may be omitted. In this case, all the obtained corrected actual position information is treated as appropriate correction information and is stored in the storage unit 58 as a corrected map.

第2実施形態
この実施形態は、先行する実施形態を基礎的形態とする変形例である。この実施形態では、駆動部52が複数のアクチュエータ装置を有するアクチュエータ270を駆動している。
Second Embodiment This embodiment is a modification based on the preceding embodiment as a basic embodiment. In this embodiment, the drive unit 52 drives the actuator 270 having a plurality of actuator devices.

図6において、アクチュエータ270は、第1アクチュエータ270aと第2アクチュエータ270bと第3アクチュエータ270cと第4アクチュエータ270dとを備えている。アクチュエータ270を構成するアクチュエータ装置は、それぞれが異なるドア装置を駆動している。例えば、第1アクチュエータ270aは、内外気切り替えドア21を駆動している。例えば、第2アクチュエータ270bは、エアミックスドア23を駆動している。例えば、第3アクチュエータ270cは、デフロスタドア25を駆動している。例えば、第4アクチュエータ270dは、フェイスドア26を駆動している。 In FIG. 6, the actuator 270 includes a first actuator 270a, a second actuator 270b, a third actuator 270c, and a fourth actuator 270d. The actuator devices constituting the actuator 270 each drive different door devices. For example, the first actuator 270a drives the inside / outside air switching door 21. For example, the second actuator 270b drives the air mix door 23. For example, the third actuator 270c drives the defroster door 25. For example, the fourth actuator 270d drives the face door 26.

アクチュエータ270を構成しているアクチュエータ装置の数は、4つに限られない。アクチュエータ270が4つよりも少ないアクチュエータ装置で構成されてもよい。あるいは、アクチュエータ270が4つよりも多いアクチュエータ装置で構成されていてもよい。 The number of actuator devices constituting the actuator 270 is not limited to four. The actuator 270 may be composed of less than four actuator devices. Alternatively, the actuator 270 may be composed of more than four actuator devices.

駆動部52は、4つのアクチュエータ装置を有するアクチュエータ270を駆動可能な4チャンネル入りのドライバである。アクチュエータ270を構成している各アクチュエータ装置と駆動部52とは、それぞれ信号線で接続されている。アクチュエータ270を構成している各アクチュエータ装置と絶対位置取得部53とは、それぞれ信号線で接続されている。ただし、信号処理などに問題がなければ、無線通信でモータ制御装置50とアクチュエータ270とを接続して信号のやり取りを行ってもよい。 The drive unit 52 is a 4-channel driver capable of driving an actuator 270 having four actuator devices. Each actuator device constituting the actuator 270 and the drive unit 52 are connected by a signal line. Each actuator device constituting the actuator 270 and the absolute position acquisition unit 53 are connected by a signal line, respectively. However, if there is no problem in signal processing or the like, the motor control device 50 and the actuator 270 may be connected by wireless communication to exchange signals.

補正モードを実施する場合には、補正対象とする1つのアクチュエータ装置のみを駆動し、補正対象としない残りのアクチュエータ装置の駆動を停止する。例えば、第1アクチュエータ270aを補正対象とする場合、第2アクチュエータ270bと第3アクチュエータ270cと第4アクチュエータ270dとは、駆動を停止した状態とする。この状態で、第1アクチュエータ270aを補正開始位置から補正終了位置まで移動させながら補正モードの制御を実施する。これにより、異なるアクチュエータ装置の電流変動が重畳してしまい、相対位置信号を正しく検出できないといった事態を抑制しやすい。 When the correction mode is implemented, only one actuator device to be corrected is driven, and the driving of the remaining actuator devices not to be corrected is stopped. For example, when the first actuator 270a is the correction target, the second actuator 270b, the third actuator 270c, and the fourth actuator 270d are in a state of being stopped. In this state, the correction mode is controlled while moving the first actuator 270a from the correction start position to the correction end position. As a result, it is easy to suppress a situation in which current fluctuations of different actuator devices are superimposed and the relative position signal cannot be detected correctly.

第1アクチュエータ270aを対象とする補正モードによって取得した補正後マップである第1補正後マップは、第1アクチュエータ270a専用の補正後マップである。このため、第1アクチュエータ270a以外のアクチュエータ装置の駆動には使用しない。 The first corrected map, which is the corrected map acquired by the correction mode for the first actuator 270a, is a corrected map dedicated to the first actuator 270a. Therefore, it is not used for driving actuator devices other than the first actuator 270a.

第1アクチュエータ270aの補正モードが終了した後、第2アクチュエータ270bを対象とする補正モードを実施する。この時、第1アクチュエータ270aと第3アクチュエータ270cと第4アクチュエータ270dとは、駆動を停止した状態とする。この状態で、第2アクチュエータ270bを補正開始位置から補正終了位置まで移動させながら補正モードの制御を実施する。これにより第2アクチュエータ270b専用の補正後マップである第2補正後マップを取得する。 After the correction mode of the first actuator 270a is completed, the correction mode for the second actuator 270b is performed. At this time, the first actuator 270a, the third actuator 270c, and the fourth actuator 270d are in a state of being stopped. In this state, the correction mode is controlled while moving the second actuator 270b from the correction start position to the correction end position. As a result, the second corrected map, which is the corrected map dedicated to the second actuator 270b, is acquired.

同様にして、第3アクチュエータ270c専用の補正後マップである第3補正後マップを取得する。さらに、第4アクチュエータ270d専用の補正後マップである第4補正後マップを取得する。これにより、アクチュエータ270を構成する各アクチュエータ装置について、専用の補正後マップが取得できる。補正モード以外のモードでアクチュエータ270を駆動する場合には、それぞれのアクチュエータ装置について、専用の補正後マップを用いて絶対位置情報を取得しながら駆動することができる。これにより、モータ制御装置50は、各アクチュエータ装置について、補正を加味した絶対位置情報を容易に取得して各直流モータ71を制御することができる。 Similarly, the third corrected map, which is the corrected map dedicated to the third actuator 270c, is acquired. Further, the fourth corrected map, which is the corrected map dedicated to the fourth actuator 270d, is acquired. As a result, a dedicated corrected map can be acquired for each actuator device constituting the actuator 270. When the actuator 270 is driven in a mode other than the correction mode, each actuator device can be driven while acquiring absolute position information using a dedicated corrected map. As a result, the motor control device 50 can easily acquire the absolute position information including the correction for each actuator device and control each DC motor 71.

アクチュエータ270を構成する全てのアクチュエータ装置について補正モードを実施しなくてもよい。例えば、特に細かな回転位置制御が求められるドア装置を駆動するためのアクチュエータ装置に限定して補正モードを実行してもよい。 It is not necessary to carry out the correction mode for all the actuator devices constituting the actuator 270. For example, the correction mode may be executed only for the actuator device for driving the door device that requires particularly fine rotation position control.

上述した実施形態によると、駆動部52は、補正対象である1つのアクチュエータ装置を駆動している間、残りのアクチュエータ装置の駆動を停止している。言い換えると、駆動部52は、相対位置取得部54が1つの直流モータ71における相対位置情報を取得している間、残りの直流モータ71の駆動を停止している。このため、複数のアクチュエータ装置が同時に駆動されてしまうことを防止できる。したがって、複数のアクチュエータ装置の電流波形が重畳してしまい、相対位置信号を適切に取得できないといった事態を抑制できる。よって、補正モードによる補正の精度を安定して高めやすい。また、全てのアクチュエータ装置について補正を同時に行う場合に比べて、マイコンに加えられる負荷を分散することができる。 According to the above-described embodiment, the drive unit 52 stops driving the remaining actuator devices while driving one actuator device to be corrected. In other words, the drive unit 52 stops driving the remaining DC motor 71 while the relative position acquisition unit 54 acquires the relative position information in one DC motor 71. Therefore, it is possible to prevent a plurality of actuator devices from being driven at the same time. Therefore, it is possible to suppress a situation in which the current waveforms of a plurality of actuator devices are superimposed and the relative position signal cannot be appropriately acquired. Therefore, it is easy to stably improve the accuracy of correction by the correction mode. Further, the load applied to the microcomputer can be distributed as compared with the case where the correction is performed for all the actuator devices at the same time.

駆動部52は、第1アクチュエータ270aと第2アクチュエータ270bと第3アクチュエータ270cと第4アクチュエータ270dとを駆動可能である。このため、1つの駆動部52で複数のアクチュエータ装置を駆動できる。したがって、複数のアクチュエータ装置毎に別の駆動部52を備える構成に比べて、モータシステム100を小型化しやすい。また、駆動部52での電流変動を検出する相対位置取得部54についても、複数のアクチュエータ装置毎に別の相対位置取得部54を設ける必要がない。このため、モータシステム100を小型で低コストに構成しやすい。 The drive unit 52 can drive the first actuator 270a, the second actuator 270b, the third actuator 270c, and the fourth actuator 270d. Therefore, one drive unit 52 can drive a plurality of actuator devices. Therefore, the motor system 100 can be easily miniaturized as compared with the configuration in which a separate drive unit 52 is provided for each of the plurality of actuator devices. Further, the relative position acquisition unit 54 for detecting the current fluctuation in the drive unit 52 does not need to be provided with another relative position acquisition unit 54 for each of the plurality of actuator devices. Therefore, it is easy to configure the motor system 100 in a small size and at low cost.

第3実施形態
この実施形態は、先行する実施形態を基礎的形態とする変形例である。この実施形態では、補正要求の有無を判定している。また、相対位置信号の妥当性を検証することなく補正情報を記憶している。
Third Embodiment This embodiment is a modification based on the preceding embodiment. In this embodiment, it is determined whether or not there is a correction request. Further, the correction information is stored without verifying the validity of the relative position signal.

図7において、直流モータ71の補正に関する制御を開始した場合に、ステップS300で補正要求があるか否かをモータ制御装置50が判定する。補正要求がある場合には、ステップS101に進み、上述の一連の補正に関する制御を行う。一方、補正要求がない場合には、直流モータ71の補正に関する制御を終了する。 In FIG. 7, when the control related to the correction of the DC motor 71 is started, the motor control device 50 determines whether or not there is a correction request in step S300. If there is a correction request, the process proceeds to step S101 to control the above-mentioned series of corrections. On the other hand, if there is no correction request, the control related to the correction of the DC motor 71 is terminated.

例えば、モータシステム100を初めて駆動する場合には、補正要求のある状態となる。また、前回の補正から所定期間経過している場合に補正要求のある状態となる。ここで、所定期間とは、例えば半年である。補正要求の切り替えは、予め設定されている場合に限られない。例えば、車両用空調装置1の製造過程における検査工程において、検査の作業者が補正要求のある状態に切り替えてもよい。あるいは、車両用空調装置1が自動車に搭載された状態において、ユーザが補正要求のある状態に切り替えてもよい。 For example, when the motor system 100 is driven for the first time, a correction request is required. Further, when a predetermined period has elapsed from the previous correction, the correction request is made. Here, the predetermined period is, for example, half a year. The switching of the correction request is not limited to the case where the correction request is set in advance. For example, in the inspection process in the manufacturing process of the vehicle air conditioner 1, the inspection worker may switch to a state in which a correction request is made. Alternatively, the user may switch to a state in which a correction request is made while the vehicle air conditioner 1 is mounted on the automobile.

ステップS121で出力軸部75が補正終了位置に到達したと判定した場合には、ステップS323に進む。ステップS323では、記憶部58が補正情報を記憶する。この時、相対位置信号の妥当性については検証せずに補正情報を記憶する。言い換えると、検出した全ての相対位置信号が適切な信号であるとみなして補正情報を記憶することとなる。 If it is determined in step S121 that the output shaft portion 75 has reached the correction end position, the process proceeds to step S323. In step S323, the storage unit 58 stores the correction information. At this time, the correction information is stored without verifying the validity of the relative position signal. In other words, all the detected relative position signals are regarded as appropriate signals and the correction information is stored.

上述した実施形態によると、補正要求があるか否かを判定している。このため、補正要求の有無にかかわらず、常に補正に関する制御を実行する場合に比べて、直流モータ71が通常駆動に移行するまでの時間を短くできる。 According to the above-described embodiment, it is determined whether or not there is a correction request. Therefore, it is possible to shorten the time until the DC motor 71 shifts to the normal drive, as compared with the case where the control related to the correction is always executed regardless of the presence or absence of the correction request.

相対位置信号の妥当性を検証することなく補正情報を記憶している。このため、相対位置信号の妥当性を検証して補正を行う場合に比べて、素早く補正を完了させることができる。 The correction information is stored without verifying the validity of the relative position signal. Therefore, the correction can be completed more quickly than in the case where the validity of the relative position signal is verified and the correction is performed.

第4実施形態
この実施形態は、先行する実施形態を基礎的形態とする変形例である。この実施形態では、電源電圧の変動量が閾値未満であるか否かを判定して補正に反映している。
Fourth Embodiment This embodiment is a modification based on the preceding embodiment as a basic embodiment. In this embodiment, it is determined whether or not the fluctuation amount of the power supply voltage is less than the threshold value and reflected in the correction.

図8において、ステップS111で相対位置信号を検出した場合に、ステップS112で相対位置情報を取得し、ステップS113で絶対位置情報を取得するとともに、ステップS410で電圧取得部51が電源電圧を取得する。言い換えると、ステップS111で相対位置信号を検出したタイミングでの電源電圧を取得する。電源電圧を取得した後、ステップS114で実位置情報を設定し、ステップS115で実位置情報を補正する。ステップS115で実位置情報を補正した後、ステップS416に進む。 In FIG. 8, when the relative position signal is detected in step S111, the relative position information is acquired in step S112, the absolute position information is acquired in step S113, and the voltage acquisition unit 51 acquires the power supply voltage in step S410. .. In other words, the power supply voltage at the timing when the relative position signal is detected in step S111 is acquired. After acquiring the power supply voltage, the actual position information is set in step S114, and the actual position information is corrected in step S115. After correcting the actual position information in step S115, the process proceeds to step S416.

ステップS416では、記憶部58が補正後の実位置情報と電源電圧とを記憶する。この時、同じタイミングにおける補正後の実位置情報と電源電圧とが記憶されることとなる。補正後の実位置情報と電源電圧とを記憶した後、ステップS121に進み、出力軸部75が補正終了位置に到達したか否かを判定する。出力軸部75が補正終了位置に到達している場合には、ステップS422に進む。一方、出力軸部75が補正終了位置に到達していない場合には、ステップS111に戻る。 In step S416, the storage unit 58 stores the corrected actual position information and the power supply voltage. At this time, the corrected actual position information and the power supply voltage at the same timing are stored. After storing the corrected actual position information and the power supply voltage, the process proceeds to step S121, and it is determined whether or not the output shaft portion 75 has reached the correction end position. If the output shaft portion 75 has reached the correction end position, the process proceeds to step S422. On the other hand, if the output shaft portion 75 has not reached the correction end position, the process returns to step S111.

ステップS422では、電源電圧の変動量が閾値未満であるか否かを異常判定部59が判定する。ここで、判定に用いる電源電圧は、相対位置信号を検出したタイミングでの電源電圧のことである。相対位置信号を検出する度に電源電圧を取得し、記憶しているため、複数の電源電圧について判定することとなる。電源電圧の変動量が閾値未満である場合には、相対位置信号を取得しているタイミングで直流電源5が正常に動作していたと判断して、ステップS123に進む。一方、電源電圧の変動量が閾値以上である場合には、相対位置信号を取得しているタイミングで直流電源5に異常が発生していたと判断して、ステップS424に進む。 In step S422, the abnormality determination unit 59 determines whether or not the fluctuation amount of the power supply voltage is less than the threshold value. Here, the power supply voltage used for the determination is the power supply voltage at the timing when the relative position signal is detected. Since the power supply voltage is acquired and stored each time the relative position signal is detected, a plurality of power supply voltages are determined. If the fluctuation amount of the power supply voltage is less than the threshold value, it is determined that the DC power supply 5 is operating normally at the timing when the relative position signal is acquired, and the process proceeds to step S123. On the other hand, when the fluctuation amount of the power supply voltage is equal to or more than the threshold value, it is determined that an abnormality has occurred in the DC power supply 5 at the timing of acquiring the relative position signal, and the process proceeds to step S424.

ステップS123では、検出した全ての相対位置信号が適切な信号であるとみなして適切な補正情報を記憶することとなる。適切な補正情報を記憶した後、補正に関する制御を終了する。 In step S123, all the detected relative position signals are regarded as appropriate signals, and appropriate correction information is stored. After storing the appropriate correction information, the control related to the correction is terminated.

ステップS424では、検出した相対位置信号の中に不適切な信号が含まれているとみなしてモータ制御装置50が補正情報を削除する。ただし、削除する補正情報は、今回の補正モードで取得した補正情報であり、過去に実施した補正モードでの補正情報については、記憶した状態を維持する。補正情報を削除した後、補正に関する制御を終了する。ただし、補正に関する制御を終了するのではなく、ステップS101に戻って補正モードを最初から実行してもよい。 In step S424, the motor control device 50 determines that the detected relative position signal contains an inappropriate signal, and deletes the correction information. However, the correction information to be deleted is the correction information acquired in the current correction mode, and the correction information in the correction mode executed in the past is maintained in the stored state. After deleting the correction information, the control related to the correction is terminated. However, instead of ending the control related to the correction, the correction mode may be executed from the beginning by returning to step S101.

上述した実施形態によると、相対位置信号を検出する度に電源電圧を取得し、その後、電源電圧の変動量が閾値未満であるか否かを判定している。このため、電源電圧の変動から相対位置信号が適切な信号であるか、電源電圧の変動の影響による不適切な信号であるかを判断できる。したがって、不適切な信号に基づく誤った補正が行われることを抑制できる。 According to the above-described embodiment, the power supply voltage is acquired each time the relative position signal is detected, and then it is determined whether or not the fluctuation amount of the power supply voltage is less than the threshold value. Therefore, it can be determined from the fluctuation of the power supply voltage whether the relative position signal is an appropriate signal or an inappropriate signal due to the influence of the fluctuation of the power supply voltage. Therefore, it is possible to prevent erroneous correction based on an inappropriate signal.

第5実施形態
この実施形態は、先行する実施形態を基礎的形態とする変形例である。この実施形態では、出力軸部75を補正開始位置から補正終了位置まで移動させている間、電源電圧チェックを行っている。
Fifth Embodiment This embodiment is a modification based on the preceding embodiment as a basic embodiment. In this embodiment, the power supply voltage is checked while the output shaft portion 75 is moved from the correction start position to the correction end position.

図9において、ステップS101で出力軸部75を補正開始位置に移動させた後、ステップS102で出力軸部75を補正終了位置に向けて移動を開始させる。その後、ステップS503に進む。 In FIG. 9, after the output shaft portion 75 is moved to the correction start position in step S101, the output shaft portion 75 is moved toward the correction end position in step S102. Then, the process proceeds to step S503.

ステップS503では、電圧取得部51が電源電圧チェックを開始する。電源電圧チェックでは、所定時間毎に電源電圧を取得して記憶する。これにより、どのタイミングで電源電圧がどのように変化したかを記憶することとなる。電源電圧を取得する所定時間の間隔は、相対位置信号を検出する間隔と同程度とすることが好ましい。例えば、相対位置信号を100マイクロ秒の間隔で検出することが想定される場合には、電源電圧を取得する間隔も100マイクロ秒とする。ただし、電源電圧を取得する間隔を相対位置信号の検出間隔よりも短い間隔に設定してもよい。あるいは、電源電圧を取得する間隔を相対位置信号の検出間隔よりも長い間隔に設定してもよい。電源電圧チェックを開始した後、電源電圧チェックを継続したままステップS111に進む。 In step S503, the voltage acquisition unit 51 starts the power supply voltage check. In the power supply voltage check, the power supply voltage is acquired and stored at predetermined time intervals. As a result, it is possible to memorize when and how the power supply voltage changes. It is preferable that the interval of the predetermined time for acquiring the power supply voltage is about the same as the interval for detecting the relative position signal. For example, when it is assumed that the relative position signal is detected at intervals of 100 microseconds, the interval of acquiring the power supply voltage is also set to 100 microseconds. However, the interval for acquiring the power supply voltage may be set to be shorter than the interval for detecting the relative position signal. Alternatively, the interval for acquiring the power supply voltage may be set to be longer than the interval for detecting the relative position signal. After starting the power supply voltage check, the process proceeds to step S111 while continuing the power supply voltage check.

ステップS121で、出力軸部75が補正終了位置に到達したと判定した場合には、ステップS504に進む。ステップS504では、電圧取得部51が電源電圧チェックを終了する。これにより、出力軸部75が補正開始位置から補正終了位置に到達するまでの間、電源電圧を所定時間毎に取得したこととなる。電源電圧チェックを終了した後、ステップS422に進む。ステップS422で、電源電圧の変動量が閾値未満であれば、出力軸部75が補正開始位置から補正終了位置に到達するまでの間、直流電源5が正常に動作していたと判断して、ステップS123に進む。一方、電源電圧の変動量が閾値以上であれば、出力軸部75が補正開始位置から補正終了位置に到達するまでの間、直流電源5に異常が発生していたと判断して、ステップS424に進む。 If it is determined in step S121 that the output shaft portion 75 has reached the correction end position, the process proceeds to step S504. In step S504, the voltage acquisition unit 51 ends the power supply voltage check. As a result, the power supply voltage is acquired at predetermined time intervals from the correction start position to the correction end position of the output shaft portion 75. After completing the power supply voltage check, the process proceeds to step S422. In step S422, if the fluctuation amount of the power supply voltage is less than the threshold value, it is determined that the DC power supply 5 is operating normally until the output shaft portion 75 reaches the correction end position from the correction start position, and the step is taken. Proceed to S123. On the other hand, if the fluctuation amount of the power supply voltage is equal to or more than the threshold value, it is determined that an abnormality has occurred in the DC power supply 5 from the correction start position to the correction end position, and step S424 is performed. move on.

ステップS123では、検出した全ての相対位置信号が適切な信号であるとみなして適切な補正情報を記憶することとなる。適切な補正情報を記憶した後、補正に関する制御を終了する。一方、ステップS424では、検出した相対位置信号の中に不適切な信号が含まれているとみなし、補正情報を削除して、補正に関する制御を終了する。 In step S123, all the detected relative position signals are regarded as appropriate signals, and appropriate correction information is stored. After storing the appropriate correction information, the control related to the correction is terminated. On the other hand, in step S424, it is considered that an inappropriate signal is included in the detected relative position signal, the correction information is deleted, and the control related to the correction is terminated.

上述した実施形態によると、出力軸部75を補正開始位置から補正終了位置まで移動させている間、電源電圧チェックを行っている。このため、相対位置信号を検出している間、直流電源5が正常に動作しているかを判断できる。したがって、直流電源5の異常が補正に影響してしまうことを抑制し、補正の精度を高めやすい。また、相対位置信号を検出したタイミングで電源電圧を取得する場合と異なり、電源電圧を取得する間隔を任意に設定できる。よって、相対位置信号が検出されていないタイミングでの電源電圧を取得できる。これにより、本来であれば相対位置信号が検出されるべきタイミングで相対位置信号が検出されなかった場合に、電源電圧の変動が影響しているか否かを判断できる。 According to the above-described embodiment, the power supply voltage is checked while the output shaft portion 75 is moved from the correction start position to the correction end position. Therefore, it is possible to determine whether the DC power supply 5 is operating normally while detecting the relative position signal. Therefore, it is easy to suppress that the abnormality of the DC power supply 5 affects the correction and improve the accuracy of the correction. Further, unlike the case where the power supply voltage is acquired at the timing when the relative position signal is detected, the interval for acquiring the power supply voltage can be arbitrarily set. Therefore, the power supply voltage can be acquired at the timing when the relative position signal is not detected. This makes it possible to determine whether or not the fluctuation of the power supply voltage has an effect when the relative position signal is not detected at the timing when the relative position signal should be detected.

第6実施形態
この実施形態は、先行する実施形態を基礎的形態とする変形例である。この実施形態では、相対位置信号を取得した時間の間隔が正常な間隔であるか否かを判定して補正に反映している。
Sixth Embodiment This embodiment is a modification based on the preceding embodiment. In this embodiment, it is determined whether or not the interval of the time when the relative position signal is acquired is a normal interval and reflected in the correction.

図10において、ステップS111で相対位置信号を検出した場合に、ステップS112で相対位置情報を取得し、ステップS113で絶対位置情報を取得するとともに、ステップS610で時間の情報を取得する。時間の情報とは、相対位置信号が検出されたタイミングを示す情報である。時間の情報を取得した後、ステップS114で実位置情報を設定し、ステップS115で実位置情報を補正する。ステップS115で実位置情報を補正した後、ステップS616に進む。 In FIG. 10, when the relative position signal is detected in step S111, the relative position information is acquired in step S112, the absolute position information is acquired in step S113, and the time information is acquired in step S610. The time information is information indicating the timing at which the relative position signal is detected. After acquiring the time information, the actual position information is set in step S114, and the actual position information is corrected in step S115. After correcting the actual position information in step S115, the process proceeds to step S616.

ステップS616では、記憶部58が補正後の実位置情報と時間とを記憶する。この時、補正後の実位置情報と相対位置信号を取得した時間の情報とがセットで記憶されることとなる。補正後の実位置情報と時間とを記憶した後、ステップS121に進み、出力軸部75が補正終了位置に到達したか否かを判定する。出力軸部75が補正終了位置に到達している場合には、ステップS622に進む。一方、出力軸部75が補正終了位置に到達していない場合には、ステップS111に戻る。 In step S616, the storage unit 58 stores the corrected actual position information and time. At this time, the corrected actual position information and the information of the time when the relative position signal is acquired are stored as a set. After storing the corrected actual position information and the time, the process proceeds to step S121, and it is determined whether or not the output shaft portion 75 has reached the correction end position. If the output shaft portion 75 has reached the correction end position, the process proceeds to step S622. On the other hand, if the output shaft portion 75 has not reached the correction end position, the process returns to step S111.

ステップS622では、記憶した時間の間隔が正常な間隔であるか否かを異常判定部59が判定する。ここで、判定に用いる時間の間隔は、相対位置信号を検出してから次の相対位置信号を検出するまでの時間の間隔である。相対位置信号を検出する度に時間を取得し、記憶しているため、複数の時間の間隔について判定することとなる。時間の間隔が適切である場合には、相対位置信号を適切に取得できたと判断して、ステップS123に進む。一方、時間の間隔が不適切である場合には、相対位置信号を適切に取得できていないと判断して、ステップS424に進む。ここで、時間の間隔が不適切である場合には、時間の間隔が適切な間隔に比べて短すぎる場合と長すぎる場合とが該当する。 In step S622, the abnormality determination unit 59 determines whether or not the stored time interval is a normal interval. Here, the time interval used for the determination is the time interval from the detection of the relative position signal to the detection of the next relative position signal. Since the time is acquired and stored each time the relative position signal is detected, the interval between a plurality of times is determined. If the time interval is appropriate, it is determined that the relative position signal has been appropriately acquired, and the process proceeds to step S123. On the other hand, if the time interval is inappropriate, it is determined that the relative position signal has not been properly acquired, and the process proceeds to step S424. Here, when the time interval is inappropriate, it corresponds to the case where the time interval is too short and the case where the time interval is too long as compared with the appropriate interval.

ステップS123では、検出した全ての相対位置信号が適切なタイミングで取得された信号であるとみなして適切な補正情報を記憶することとなる。適切な補正情報を記憶した後、補正に関する制御を終了する。一方、ステップS424では、検出した相対位置信号の中に不適切なタイミングで取得された誤った信号が含まれているとみなし、補正情報を削除して、補正に関する制御を終了する。 In step S123, all the detected relative position signals are regarded as signals acquired at appropriate timings, and appropriate correction information is stored. After storing the appropriate correction information, the control related to the correction is terminated. On the other hand, in step S424, it is considered that the detected relative position signal includes an erroneous signal acquired at an inappropriate timing, the correction information is deleted, and the control related to the correction is terminated.

上述した実施形態によると、相対位置信号を取得した時間の間隔が正常な間隔であるか否かを判定して補正に反映している。このため、相対位置信号を適切なタイミングで取得できているかを判断できる。したがって、本来であれば取得されないタイミングで検出された誤った信号に基づいて誤った補正が行われることを抑制できる。あるいは、本来であれば取得されるべきタイミングで信号を検出できておらず、誤った相対位置情報を用いて補正が行われることを抑制できる。 According to the above-described embodiment, it is determined whether or not the interval of the time when the relative position signal is acquired is a normal interval and reflected in the correction. Therefore, it can be determined whether the relative position signal can be acquired at an appropriate timing. Therefore, it is possible to prevent erroneous correction based on an erroneous signal detected at a timing that would not normally be acquired. Alternatively, it is possible to prevent the signal from being detected at the timing that should be acquired, and to prevent the correction from being performed by using erroneous relative position information.

他の実施形態
この明細書および図面等における開示は、例示された実施形態に制限されない。開示は、例示された実施形態と、それらに基づく当業者による変形態様を包含する。例えば、開示は、実施形態において示された部品および/または要素の組み合わせに限定されない。開示は、多様な組み合わせによって実施可能である。開示は、実施形態に追加可能な追加的な部分をもつことができる。開示は、実施形態の部品および/または要素が省略されたものを包含する。開示は、1つの実施形態と他の実施形態との間における部品および/または要素の置き換え、または組み合わせを包含する。開示される技術的範囲は、実施形態の記載に限定されない。開示されるいくつかの技術的範囲は、請求の範囲の記載によって示され、さらに請求の範囲の記載と均等の意味および範囲内での全ての変更を含むものと解されるべきである。
Other Embodiments The disclosure in this specification, drawings and the like is not limited to the exemplified embodiments. Disclosures include exemplary embodiments and modifications by those skilled in the art based on them. For example, the disclosure is not limited to the parts and / or combinations of elements shown in the embodiments. Disclosure can be carried out in various combinations. The disclosure can have additional parts that can be added to the embodiment. Disclosures include those in which the parts and / or elements of the embodiment are omitted. Disclosures include the replacement or combination of parts and / or elements between one embodiment and the other. The technical scope disclosed is not limited to the description of the embodiments. Some technical scopes disclosed are indicated by the claims description and should be understood to include all modifications within the meaning and scope equivalent to the claims description.

明細書および図面等における開示は、請求の範囲の記載によって限定されない。明細書および図面等における開示は、請求の範囲に記載された技術的思想を包含し、さらに請求の範囲に記載された技術的思想より多様で広範な技術的思想に及んでいる。よって、請求の範囲の記載に拘束されることなく、明細書および図面等の開示から、多様な技術的思想を抽出することができる。 Disclosure in the description, drawings, etc. is not limited by the description of the scope of claims. The disclosure in the description, drawings, etc. includes the technical ideas described in the claims, and further covers a wider variety of technical ideas than the technical ideas described in the claims. Therefore, various technical ideas can be extracted from the disclosure of the description, drawings, etc. without being bound by the description of the scope of claims.

本開示に記載の制御部およびその手法は、コンピュータプログラムにより具体化された1つないしは複数の機能を実行するようにプログラムされたプロセッサを構成する専用コンピュータにより、実現されてもよい。あるいは、本開示に記載の装置およびその手法は、専用ハードウェア論理回路により、実現されてもよい。もしくは、本開示に記載の装置およびその手法は、コンピュータプログラムを実行するプロセッサと1つ以上のハードウェア論理回路との組み合わせにより構成された1つ以上の専用コンピュータにより、実現されてもよい。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されていてもよい。 The controls and methods thereof described in the present disclosure may be realized by a dedicated computer constituting a processor programmed to perform one or more functions embodied by a computer program. Alternatively, the apparatus and method thereof described in the present disclosure may be realized by a dedicated hardware logic circuit. Alternatively, the apparatus and method thereof described in the present disclosure may be realized by one or more dedicated computers configured by a combination of a processor for executing a computer program and one or more hardware logic circuits. Further, the computer program may be stored in a computer-readable non-transitional tangible recording medium as an instruction executed by the computer.

1 車両用空調装置、 5 直流電源、 10 空調ケース、 21 内外気切り替えドア(ドア装置)、 23 エアミックスドア(ドア装置)、 25 デフロスタドア(ドア装置)、 26 フェイスドア(ドア装置)、 27 フットドア(ドア装置)、 50 モータ制御装置、 51 電圧取得部、 52 駆動部、 53 絶対位置取得部、 54 相対位置取得部、 55 タイマ、 56 実位置設定部、 57 実位置補正部、 58 記憶部、 59 異常判定部、 70 アクチュエータ、 71 直流モータ、 75 出力軸部、 76 ポテンショメータ、 100 モータシステム、 270 アクチュエータ 1 Vehicle air conditioner, 5 DC power supply, 10 Air conditioner case, 21 Inside / outside air switching door (door device), 23 Air mix door (door device), 25 Defroster door (door device), 26 Face door (door device), 27 Foot door (door device), 50 motor control device, 51 voltage acquisition unit, 52 drive unit, 53 absolute position acquisition unit, 54 relative position acquisition unit, 55 timer, 56 actual position setting unit, 57 actual position correction unit, 58 storage unit , 59 Abnormality determination unit, 70 actuator, 71 DC motor, 75 output shaft unit, 76 potential meter, 100 motor system, 270 actuator

Claims (12)

アクチュエータ(70、270)の出力軸部(75)と連動している直流モータ(71)の駆動を制御するモータ制御装置であって、
前記直流モータを回転させる際の電流変動を検出して前記出力軸部の相対位置情報を取得する相対位置取得部(54)と、
ポテンショメータ(76)を用いて前記出力軸部の絶対位置情報を取得する絶対位置取得部(53)と、
前記絶対位置情報と前記相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて、前記出力軸部の実位置情報を設定する実位置設定部(56)と、
前記絶対位置情報と前記相対位置情報との2つの位置情報のうち、少なくとも1つの位置情報に基づいて前記実位置情報を補正する実位置補正部(57)とを備えているモータ制御装置。
A motor control device that controls the drive of a DC motor (71) that is interlocked with the output shaft portion (75) of the actuator (70, 270).
A relative position acquisition unit (54) that detects current fluctuations when rotating the DC motor and acquires relative position information of the output shaft unit.
An absolute position acquisition unit (53) that acquires absolute position information of the output shaft unit using a potentiometer (76), and an absolute position acquisition unit (53).
An actual position setting unit (56) that sets the actual position information of the output shaft unit based on at least one position information out of the two position information of the absolute position information and the relative position information.
A motor control device including a real position correction unit (57) that corrects the real position information based on at least one of the two position information of the absolute position information and the relative position information.
前記実位置設定部は、前記絶対位置情報を用いて前記実位置情報を設定し、
前記実位置補正部は、前記相対位置情報を用いて前記実位置情報を補正する請求項1に記載のモータ制御装置。
The actual position setting unit sets the actual position information using the absolute position information, and sets the actual position information.
The motor control device according to claim 1, wherein the actual position correction unit corrects the actual position information by using the relative position information.
前記実位置補正部は、前記絶対位置情報と前記相対位置情報との差分を前記実位置情報に加えることで前記実位置情報を補正する請求項2に記載のモータ制御装置。 The motor control device according to claim 2, wherein the actual position correction unit corrects the actual position information by adding a difference between the absolute position information and the relative position information to the actual position information. 前記ポテンショメータの電圧と前記出力軸部の位置情報との関係を示す特性マップを記憶している記憶部(58)を備え、
前記記憶部は、前記ポテンショメータの電圧と補正後の前記実位置情報との関係を示す補正後マップ(Mc)を記憶する請求項3に記載のモータ制御装置。
A storage unit (58) that stores a characteristic map showing the relationship between the voltage of the potentiometer and the position information of the output shaft unit is provided.
The motor control device according to claim 3, wherein the storage unit stores a corrected map (Mc) showing a relationship between the voltage of the potentiometer and the corrected actual position information.
前記記憶部は、前記実位置情報の補正を行う前の前記特性マップである初期マップ(Mi)と、前記補正後マップとを記憶する請求項4に記載のモータ制御装置。 The motor control device according to claim 4, wherein the storage unit stores an initial map (Mi) which is the characteristic map before the correction of the actual position information and the corrected map. 複数の前記直流モータを駆動可能な駆動部(52)を備え、
前記駆動部は、前記相対位置取得部が1つの前記直流モータにおける前記相対位置情報を取得している間、残りの前記直流モータの駆動を停止している請求項1から請求項5のいずれかに記載のモータ制御装置。
A drive unit (52) capable of driving a plurality of the DC motors is provided.
Any one of claims 1 to 5, wherein the drive unit stops driving the remaining DC motor while the relative position acquisition unit acquires the relative position information in one DC motor. The motor control device according to.
前記絶対位置情報または前記相対位置情報における異常の有無を判定する異常判定部(59)を備え、
前記実位置補正部は、前記異常判定部で異常があると判定された場合に、異常の発生しているタイミングにおける前記絶対位置情報または前記相対位置情報を用いた前記実位置情報の補正を行わない請求項1から請求項6のいずれかに記載のモータ制御装置。
An abnormality determination unit (59) for determining the presence or absence of an abnormality in the absolute position information or the relative position information is provided.
When the abnormality determination unit determines that there is an abnormality, the actual position correction unit corrects the actual position information using the absolute position information or the relative position information at the timing when the abnormality occurs. The motor control device according to any one of claims 1 to 6.
時間の経過をカウントするタイマ(55)を備え、
前記実位置補正部は、前記異常判定部で異常があると判定された場合に、前記タイマを用いて取得した異常の発生しているタイミングにおける前記絶対位置情報または前記相対位置情報を用いた前記実位置情報の補正を行わない請求項7に記載のモータ制御装置。
Equipped with a timer (55) that counts the passage of time
When the abnormality determination unit determines that there is an abnormality, the actual position correction unit uses the absolute position information or the relative position information at the timing of occurrence of the abnormality acquired by the timer. The motor control device according to claim 7, wherein the actual position information is not corrected.
前記直流モータを駆動するための直流電源(5)における電圧を取得する電圧取得部(51)を備え、
前記異常判定部は、前記電圧取得部で取得している電圧の変動量が閾値以上である場合には、そのタイミングにおける前記相対位置情報には異常があると判定する請求項7または請求項8に記載のモータ制御装置。
A voltage acquisition unit (51) for acquiring a voltage in the DC power supply (5) for driving the DC motor is provided.
Claim 7 or claim 8 that the abnormality determination unit determines that there is an abnormality in the relative position information at that timing when the fluctuation amount of the voltage acquired by the voltage acquisition unit is equal to or greater than the threshold value. The motor control device according to.
前記出力軸部は、可動範囲の一端が機構的に突き当てられている突き当て位置に設定されており、
前記相対位置取得部は、少なくとも前記突き当て位置における前記相対位置情報を取得し、
前記絶対位置取得部は、少なくとも前記突き当て位置における前記絶対位置情報を取得し、
前記実位置設定部は、前記突き当て位置における前記出力軸部の前記実位置情報を設定し、
前記実位置補正部は、前記突き当て位置における前記実位置情報を補正する請求項1から請求項9のいずれかに記載のモータ制御装置。
The output shaft portion is set at an abutting position where one end of the movable range is mechanically abutted.
The relative position acquisition unit acquires at least the relative position information at the abutting position, and obtains the relative position information.
The absolute position acquisition unit acquires at least the absolute position information at the abutting position, and obtains the absolute position information.
The actual position setting unit sets the actual position information of the output shaft unit at the abutting position, and sets the actual position information.
The motor control device according to any one of claims 1 to 9, wherein the actual position correction unit corrects the actual position information at the abutting position.
前記実位置設定部は、前記出力軸部の回転位置が前記ポテンショメータの検出領域よりも外側に位置している場合に、前記相対位置情報を用いて前記実位置情報を設定し、前記絶対位置情報を用いた補正を行わない請求項1から請求項10のいずれかに記載のモータ制御装置。 When the rotation position of the output shaft portion is located outside the detection region of the potentiometer, the actual position setting unit sets the actual position information using the relative position information, and sets the absolute position information. The motor control device according to any one of claims 1 to 10, wherein no correction is performed using the above. 前記実位置設定部は、前記出力軸部の現在の回転位置から目標の回転位置までの回転移動量が所定移動量未満である場合に、前記相対位置情報を用いて前記実位置情報を設定し、前記絶対位置情報を用いた補正を行わない請求項1から請求項11のいずれかに記載のモータ制御装置。 The actual position setting unit sets the actual position information using the relative position information when the rotational movement amount from the current rotation position of the output shaft unit to the target rotation position is less than the predetermined movement amount. The motor control device according to any one of claims 1 to 11, wherein the correction using the absolute position information is not performed.
JP2020186668A 2020-11-09 2020-11-09 Motor controller Pending JP2022076309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020186668A JP2022076309A (en) 2020-11-09 2020-11-09 Motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020186668A JP2022076309A (en) 2020-11-09 2020-11-09 Motor controller

Publications (1)

Publication Number Publication Date
JP2022076309A true JP2022076309A (en) 2022-05-19

Family

ID=81606587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020186668A Pending JP2022076309A (en) 2020-11-09 2020-11-09 Motor controller

Country Status (1)

Country Link
JP (1) JP2022076309A (en)

Similar Documents

Publication Publication Date Title
US7719217B2 (en) Drive device for a brushless motor
JP6052028B2 (en) Motor control device
US20130221893A1 (en) Reset-to-zero and return processing method and device for stepping motor
KR101584016B1 (en) Stall diagnosis apparatus for motor of air conditioning actuator
JP2022076309A (en) Motor controller
JP7259657B2 (en) motor controller
CN104964388A (en) Air conditioner, indoor unit of air conditioner and power estimation control method and device for indoor fan
JPS6363403B2 (en)
CN111365823A (en) Air conditioning system and control method thereof
JP2024072501A (en) Control device
KR101309015B1 (en) Air conditioning system of automotive vehicle
JP2009050058A (en) Air conditioner for vehicles
KR101786243B1 (en) Device and method for controlling HVAC of vehicle
US11636961B2 (en) Variable resistor and electronic device
JP2500906Y2 (en) Mix door controller
JP5292979B2 (en) Electric actuator system
KR101117856B1 (en) Error correction method of actuator of air conditioning system for a car
JPH0542883Y2 (en)
KR20100009195A (en) Actuator control method of an air conditioning system for car and apparatus using the same
CN104964405A (en) Air conditioner, indoor unit of air conditioner and power estimation control method and device for indoor fan
JPS58206414A (en) Fault compensation method of air control door control unit for air conditioning
KR101210469B1 (en) Real-Time Diagnosis Method of PBR Type Actuator
JP2015174576A (en) Air-conditioning control device for vehicle and air-conditioning control method for vehicle
JP3814964B2 (en) Air conditioner for vehicles
KR101210470B1 (en) Realtime Diagnostic Method of Power Transistor for Blower Motor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230807

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240528