JP2020088928A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2020088928A
JP2020088928A JP2018215311A JP2018215311A JP2020088928A JP 2020088928 A JP2020088928 A JP 2020088928A JP 2018215311 A JP2018215311 A JP 2018215311A JP 2018215311 A JP2018215311 A JP 2018215311A JP 2020088928 A JP2020088928 A JP 2020088928A
Authority
JP
Japan
Prior art keywords
motor
output shaft
measurement value
initial position
position measurement
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
JP2018215311A
Other languages
Japanese (ja)
Inventor
文博 大澤
Fumihiro Osawa
文博 大澤
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2018215311A priority Critical patent/JP2020088928A/en
Publication of JP2020088928A publication Critical patent/JP2020088928A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

To precisely control the position of a target to be driven, by detecting deterioration in the operation accuracy of a motor.SOLUTION: An electronic control device (20) controls a vehicle control system including a motor (11) that moves an output shaft, a rotation sensor (13) that detects the motor rotation angle of the motor, and position sensors (18, 19) each of which outputs a sensor value according to the absolute position of the output shaft. The electronic control device includes a motor control unit (24) that controls the motor such that the output shaft is restored to an initial position immediately before termination of the system, a first measuring unit (21) that measures, on the basis of the motor rotation angle obtained by the rotation sensor, an output-shaft position measurement value the origin of which is set at a start-up position of a system start-up time, and a second measuring unit (22) that measures, on the basis of the sensor values obtained by the position sensors, an output-shaft position measurement value the origin of which is set at the initial position.SELECTED DRAWING: Figure 2

Description

本発明は電子制御装置に関する。 The present invention relates to an electronic control device.

一般的なモータの電子制御装置は、モータ回転速度やモータ回転角を回転センサで検出しながら駆動対象を目標位置に制御している。この場合、駆動対象の現在位置と目標位置のズレからモータ回転角が決定され、モータ回転角分だけモータが回転されることで駆動対象が目標位置まで移動される。電子制御装置は、回転センサによってモータの駆動状況をリアルタイムで把握することができ、必要に応じてフィードバック制御を実施している。このフィードバック制御はモータの位置制御として一般的に知られており、例えば特許文献1に記載されている。 A general motor electronic control device controls a drive target to a target position while detecting a motor rotation speed and a motor rotation angle with a rotation sensor. In this case, the motor rotation angle is determined from the difference between the current position of the drive target and the target position, and the drive target is moved to the target position by rotating the motor by the motor rotation angle. The electronic control device can grasp the drive status of the motor in real time by the rotation sensor, and performs feedback control as necessary. This feedback control is generally known as motor position control, and is described in, for example, Patent Document 1.

特開2016−193645号公報JP, 2016-193645, A

モータの位置制御にあたり、システム起動時のモータ回転角を原点にして、現在のモータ回転角に基づいて原点からの駆動対象の相対的な移動距離を算出することができる。モータ回転角からは相対的な移動距離は常時算出できるものの、駆動対象の位置基準となる初期位置からの絶対位置を検出できない。このため、システム終了後に駆動対象の位置ズレが生じたり、システム動作中にメモリ異常や回転センサの誤検出等が生じると、モータの動作精度が悪化するという問題があった。 In controlling the position of the motor, the relative rotation distance of the drive target from the origin can be calculated based on the current motor rotation angle, with the motor rotation angle at system startup as the origin. Although the relative movement distance can always be calculated from the motor rotation angle, the absolute position from the initial position which is the position reference of the drive target cannot be detected. For this reason, if the drive target is displaced after the system is terminated, or if a memory abnormality or an erroneous detection of the rotation sensor occurs during the system operation, there is a problem that the operation accuracy of the motor deteriorates.

本発明は前記課題を解決するもので、その目的とするところは、モータの動作精度の悪化を検出して駆動対象の位置を精度よく制御することができる電子制御装置を提供することである。 The present invention solves the above problems, and an object of the present invention is to provide an electronic control device capable of detecting deterioration of operation accuracy of a motor and accurately controlling the position of a drive target.

本発明の一態様の電子制御装置は、駆動対象を移動させるモータと、前記モータのモータ回転角を検出する回転センサと、前記駆動対象の絶対位置に応じたセンサ値を出力する位置センサと、を備えたシステムを制御する電子制御装置であって、システム終了直前に前記駆動対象を初期位置に戻すように前記モータを制御するモータ制御部と、前記回転センサのモータ回転角に基づいてシステム起動時の起動位置を原点にした前記駆動対象の位置測定値を測定する第1の測定部と、前記位置センサのセンサ値に基づいて初期位置を原点にした前記駆動対象の位置測定値を測定する第2の測定部と、を備えたことを特徴とする。 An electronic control device according to an aspect of the present invention includes a motor that moves a drive target, a rotation sensor that detects a motor rotation angle of the motor, and a position sensor that outputs a sensor value according to an absolute position of the drive target. An electronic control unit for controlling a system including: a motor control unit that controls the motor so as to return the drive target to an initial position immediately before the system ends; and a system start-up based on a motor rotation angle of the rotation sensor. A first measuring unit that measures the position measurement value of the driven object with the starting position at the time as the origin, and the position measurement value of the driven object with the initial position as the origin based on the sensor value of the position sensor. And a second measurement unit.

本発明によれば、システム終了直前に駆動対象が初期位置に戻されるため、次回のシステム起動時にはモータ回転角から測定される駆動対象の位置測定値の原点と位置センサのセンサ値から測定される駆動対象の位置測定値の原点が一致する。よって、原点を基準にしてモータ回転角から測定された駆動対象の位置測定値と位置センサのセンサ値から測定された駆動対象の位置測定値とのズレから、システム終了後の駆動対象の位置ズレや、システム動作中のメモリ異常、回転センサの誤検出等によるモータの動作精度の悪化が検出される。本発明に関連する更なる特徴は、本明細書の記述、添付図面から明らかになるものである。また、上記した以外の、課題、構成及び効果は、以下の実施形態の説明により明らかにされる。 According to the present invention, since the drive target is returned to the initial position immediately before the system is terminated, it is measured from the origin of the position measurement value of the drive target measured from the motor rotation angle and the sensor value of the position sensor at the next system startup. The origin of the position measurement value of the drive target matches. Therefore, from the deviation between the position measurement value of the drive target measured from the motor rotation angle with respect to the origin and the position measurement value of the drive target measured from the sensor value of the position sensor, the position deviation of the drive target after the system is terminated. It is also possible to detect the deterioration of the motor operation accuracy due to a memory abnormality during system operation, an erroneous detection of the rotation sensor, or the like. Further features related to the present invention will be apparent from the description of the present specification and the accompanying drawings. Further, problems, configurations and effects other than those described above will be clarified by the following description of the embodiments.

本実施形態に係る車両制御システムの構成図。The block diagram of the vehicle control system which concerns on this embodiment. 本実施形態に係る電子制御装置の制御ブロック図。The control block diagram of the electronic control unit concerning this embodiment. 本実施形態に係る電子制御装置のハードウェア構成図。The hardware block diagram of the electronic control unit which concerns on this embodiment. 本実施形態に係る出力軸の位置制御の説明図。Explanatory drawing of the position control of the output shaft which concerns on this embodiment. 本実施形態に係る出力軸の位置制御の説明図。Explanatory drawing of the position control of the output shaft which concerns on this embodiment. 本実施形態に係るモータの監視処理のフローチャート。The flowchart of the monitoring process of the motor which concerns on this embodiment. 本実施形態に係るシステム終了時のモータ制御処理のフローチャート。6 is a flowchart of a motor control process when the system according to the present embodiment ends. 本実施形態に係るシステム起動時のモータ制御処理のフローチャート。5 is a flowchart of a motor control process at system startup according to the present embodiment. 本実施形態に係るシステム起動時の位置補正処理のフローチャート。6 is a flowchart of position correction processing at system startup according to the present embodiment. 本実施形態に係るシステム動作中の位置補正処理のフローチャート。6 is a flowchart of position correction processing during system operation according to the present embodiment.

以下、本実施形態に係る電子制御装置20を備えた車両制御システム10について説明する。図1は、本実施形態に係る車両制御システム10の構成図である。なお、本実施形態では、本開示の電子制御装置20を車両制御システム10に適用する構成について説明するが、モータ11の回転によって駆動対象の位置が変化する他のシステムに適用することが可能である。なお、詳細は後述するが、本実施形態の電子制御装置20は、システム動作中にモータ11の動作状態を監視する機能と、システム起動時に駆動対象を初期位置に戻す機能とを有している。 Hereinafter, the vehicle control system 10 including the electronic control device 20 according to the present embodiment will be described. FIG. 1 is a configuration diagram of a vehicle control system 10 according to the present embodiment. In addition, in the present embodiment, a configuration in which the electronic control device 20 of the present disclosure is applied to the vehicle control system 10 will be described, but it is possible to apply the configuration to another system in which the position of a drive target is changed by rotation of the motor 11. is there. Although described in detail later, the electronic control unit 20 of the present embodiment has a function of monitoring the operating state of the motor 11 during system operation and a function of returning the drive target to the initial position when the system is activated. ..

図1に示すように、車両制御システム10は、ラックアンドピニオン機構によってモータ11の回転を駆動対象となる出力軸17の往復移動に変換している。モータ11の回転軸には減速機14を介してピニオンギア15が連結されており、ピニオンギア15には出力軸17が固定されている。ピニオンギア15に噛み合うラックギア16は基台12上に固定されており、ピニオンギア15の回転によって基台12が往復移動、すなわち出力軸17がラックギア16に対して相対移動される。モータ11には、モータ回転角を検出する回転センサ13が設けられている。基台12上には、ラックギア16上の出力軸17の位置を検出する一対の位置センサ18、19が固定されている。 As shown in FIG. 1, the vehicle control system 10 uses a rack-and-pinion mechanism to convert the rotation of the motor 11 into the reciprocating movement of the output shaft 17, which is a drive target. A pinion gear 15 is connected to a rotating shaft of the motor 11 via a speed reducer 14, and an output shaft 17 is fixed to the pinion gear 15. The rack gear 16 meshing with the pinion gear 15 is fixed on the base 12, and the rotation of the pinion gear 15 causes the base 12 to reciprocate, that is, the output shaft 17 to move relative to the rack gear 16. The motor 11 is provided with a rotation sensor 13 that detects a motor rotation angle. A pair of position sensors 18 and 19 for detecting the position of the output shaft 17 on the rack gear 16 are fixed on the base 12.

また、車両制御システム10には、三相電流等によってモータ11を駆動制御する電子制御装置20が設けられている。電子制御装置20には回転センサ13が接続されており、回転センサ13から電子制御装置20にモータ回転角がリアルタイムで入力されて、電子制御装置20によってモータ11の回転状況が監視されている。回転センサ13としては、例えば、レゾルバやエンコーダが使用される。電子制御装置20は、ラックギア16上の出力軸17の起動位置と目標位置のズレからモータ回転角を決定し、モータ回転角だけモータ11を回転させることで出力軸17をラックギア16上の目標位置まで相対的に移動させている。 Further, the vehicle control system 10 is provided with an electronic control device 20 that controls driving of the motor 11 by using a three-phase current or the like. The rotation sensor 13 is connected to the electronic control unit 20, the motor rotation angle is input from the rotation sensor 13 to the electronic control unit 20 in real time, and the rotation state of the motor 11 is monitored by the electronic control unit 20. As the rotation sensor 13, for example, a resolver or an encoder is used. The electronic control unit 20 determines the motor rotation angle from the deviation between the starting position of the output shaft 17 on the rack gear 16 and the target position, and rotates the motor 11 by the motor rotation angle to move the output shaft 17 to the target position on the rack gear 16. Have moved relative to.

電子制御装置20は、減速機14のギア比、ピニオンギア15の歯数、ラックギア16のピッチ等の各種情報を持っており、モータ回転角によって出力軸17の起動位置からの移動距離を測定している。この場合、次式(1)によってモータ回転角からピニオンギア15のピニオン回転角が求められ、次式(2)によってピニオン回転角から出力軸17の起動位置からの移動距離が測定される。
ピニオン回転角=減速機のギア比×モータ回転角…(1)
移動距離=(ピニオンギアの歯数×ピニオン回転角/360)×ラックギアのピッチ…(2)
The electronic control unit 20 has various information such as the gear ratio of the speed reducer 14, the number of teeth of the pinion gear 15, the pitch of the rack gear 16, and the like, and measures the moving distance from the starting position of the output shaft 17 by the motor rotation angle. ing. In this case, the pinion rotation angle of the pinion gear 15 is obtained from the motor rotation angle by the following equation (1), and the movement distance from the starting position of the output shaft 17 is measured from the pinion rotation angle by the following equation (2).
Pinion rotation angle = reduction gear ratio × motor rotation angle (1)
Moving distance = (number of teeth of pinion gear x pinion rotation angle/360) x pitch of rack gear (2)

ただし、モータ回転角から測定される出力軸17の移動距離は、システム起動時の出力軸17の起動位置からの相対的な移動距離である。システム起動時の起動位置が変わると、モータ回転角からは出力軸17の初期位置を基準にした絶対位置が認識できない。このため、システム終了時には出力軸17を位置基準となる初期位置に戻してから電源を落としている。システム起動時の出力軸17の起動位置を初期位置に合わせることで、モータ回転角から出力軸17の絶対位置を測定することができる。これにより、システム起動時に出力軸17の初期位置を探索する必要がなくシステムの立ち上り時間を短縮できる。 However, the moving distance of the output shaft 17 measured from the motor rotation angle is a relative moving distance from the starting position of the output shaft 17 when the system is started. If the starting position at system startup changes, the absolute position based on the initial position of the output shaft 17 cannot be recognized from the motor rotation angle. Therefore, when the system ends, the output shaft 17 is returned to the initial position serving as the position reference, and then the power is turned off. The absolute position of the output shaft 17 can be measured from the motor rotation angle by matching the starting position of the output shaft 17 when the system is started up with the initial position. As a result, it is not necessary to search for the initial position of the output shaft 17 when the system is activated, and the system startup time can be shortened.

また、電子制御装置20には基台12に固定された一対の位置センサ18、19が接続されており、位置センサ18、19から電子制御装置20に出力軸17の絶対位置に応じたセンサ値がリアルタイムに出力されている。位置センサ18、19としては、例えば、センサ面から出力軸17までの距離をセンサ値として検出する距離センサが使用される。電子制御装置20は、センサ面から出力軸17までの距離に基づいて初期位置を原点にした出力軸17の絶対位置を測定する。単一の位置センサでも出力軸17の絶対位置を測定可能であるが、出力軸17の移動方向に離間した位置センサ18、19で出力軸17の絶対位置を測定することで測定精度が向上されている。 Further, a pair of position sensors 18 and 19 fixed to the base 12 are connected to the electronic control unit 20, and the sensor values corresponding to the absolute position of the output shaft 17 are transmitted from the position sensors 18 and 19 to the electronic control unit 20. Is being output in real time. As the position sensors 18 and 19, for example, distance sensors that detect the distance from the sensor surface to the output shaft 17 as a sensor value are used. The electronic control unit 20 measures the absolute position of the output shaft 17 with the initial position as the origin, based on the distance from the sensor surface to the output shaft 17. Although it is possible to measure the absolute position of the output shaft 17 with a single position sensor, the measurement accuracy is improved by measuring the absolute position of the output shaft 17 with the position sensors 18 and 19 that are separated in the moving direction of the output shaft 17. ing.

一対の位置センサ18、19を用いて出力軸17の初期位置を基準とした絶対位置が測定可能であるため、モータ回転角を用いて出力軸17を位置制御する代わりに、位置センサ18、19を用いて出力軸17を位置制御する構成が考えられる。位置センサ18、19を用いた位置測定は、移動中の出力軸17の実際の位置に対して、サンプリングタイミングによる分解能誤差と測定遅れ誤差が生じる。位置センサ18、19を用いた位置測定は、出力軸17の実際の位置に対して常に測定遅れを持つことから、出力軸17の移動中の過渡状態ではモータ回転角によって出力軸17を位置制御すべきである。 Since the absolute position based on the initial position of the output shaft 17 can be measured using the pair of position sensors 18 and 19, instead of controlling the position of the output shaft 17 using the motor rotation angle, the position sensors 18 and 19 are used. A configuration is conceivable in which the position of the output shaft 17 is controlled by using. Position measurement using the position sensors 18 and 19 causes a resolution error and a measurement delay error due to the sampling timing with respect to the actual position of the output shaft 17 during movement. Since the position measurement using the position sensors 18 and 19 always has a measurement delay with respect to the actual position of the output shaft 17, the position control of the output shaft 17 is performed by the motor rotation angle in the transient state during the movement of the output shaft 17. Should.

しかしながら、モータ回転角を用いた位置制御では、システム動作中に、いわゆるRAM化け等のメモリ異常や、回転センサ13の誤検出等が生じると、モータ回転角から測定した出力軸17の位置の測定値(以下、位置測定値とする)が実際の位置から乖離する。また、出力軸17を初期位置に戻してからシステムを終了しても、システム終了後に出力軸17が意図しない外力で動かされると、システム起動時の出力軸17の起動位置が初期位置から乖離する。モータ回転角を用いた位置制御は、出力軸17の実際の位置に対する測定遅れを減らすことができるものの、モータ11の動作精度が悪化するおそれがある。 However, in the position control using the motor rotation angle, if a memory abnormality such as a so-called RAM or an erroneous detection of the rotation sensor 13 occurs during system operation, the position of the output shaft 17 measured from the motor rotation angle is measured. The value (hereinafter referred to as the position measurement value) deviates from the actual position. Further, even if the system is terminated after returning the output shaft 17 to the initial position, if the output shaft 17 is moved by an unintended external force after the system is terminated, the activation position of the output shaft 17 at the time of system activation deviates from the initial position. .. The position control using the motor rotation angle can reduce the measurement delay with respect to the actual position of the output shaft 17, but may deteriorate the operation accuracy of the motor 11.

そこで、本実施形態の出力軸17の位置制御では、モータ回転角から測定された出力軸17の位置測定値と位置センサ18、19のセンサ値から測定された出力軸17の位置測定値のズレを監視している。出力軸17の実際の位置を2種類の測定方法で測定した時の位置測定値の違いから、システム動作中のメモリ異常等の不具合によるモータ11の動作精度の悪化を検出している。また、システム終了直前に出力軸17を初期位置に戻したうえで、出力軸17の位置を次回の初期位置としてメモリに記憶させている。これにより、システム終了後に出力軸17が動かされて起動位置が初期位置から位置ズレした場合でも、システム起動時にメモリから読み出した初期位置に出力軸17を戻すことが可能になっている。 Therefore, in the position control of the output shaft 17 of the present embodiment, there is a deviation between the position measurement value of the output shaft 17 measured from the motor rotation angle and the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19. Are watching. From the difference in the position measurement values when the actual position of the output shaft 17 is measured by the two types of measuring methods, the deterioration of the operation accuracy of the motor 11 due to a defect such as a memory abnormality during system operation is detected. Further, the output shaft 17 is returned to the initial position immediately before the end of the system, and the position of the output shaft 17 is stored in the memory as the next initial position. As a result, even if the output shaft 17 is moved after the system is finished and the starting position is displaced from the initial position, the output shaft 17 can be returned to the initial position read from the memory when the system is started.

図2及び図3を参照して、電子制御装置20の装置構成について説明する。図2は、本実施形態に係る電子制御装置20の制御ブロック図である。図3は、本実施形態に係る電子制御装置20のハードウェア構成図である。 The device configuration of the electronic control device 20 will be described with reference to FIGS. 2 and 3. FIG. 2 is a control block diagram of the electronic control unit 20 according to the present embodiment. FIG. 3 is a hardware configuration diagram of the electronic control unit 20 according to the present embodiment.

図2に示すように、電子制御装置20は、モータ11の動作状態を監視しており、第1の測定部21と、第2の測定部22と、状態監視部23とを備えている。第1の測定部21は、回転センサ13のモータ回転角に基づいてシステム起動時の起動位置を原点にした出力軸17(図1参照)の位置測定値を測定する。モータ回転角によって起動位置からの移動距離が求められ、移動距離からラックギア16(図1参照)上の出力軸17の位置が測定される。第2の測定部22は、位置センサ18、19のセンサ値に基づいて初期位置を原点にした出力軸17の位置測定値を測定する。出力軸17の絶対位置に応じたセンサ値からラックギア16上の出力軸17の位置が測定される。 As shown in FIG. 2, the electronic control device 20 monitors the operating state of the motor 11, and includes a first measuring unit 21, a second measuring unit 22, and a state monitoring unit 23. The first measuring unit 21 measures the position measurement value of the output shaft 17 (see FIG. 1) whose origin is the starting position at system startup, based on the motor rotation angle of the rotation sensor 13. The moving distance from the starting position is obtained from the motor rotation angle, and the position of the output shaft 17 on the rack gear 16 (see FIG. 1) is measured from the moving distance. The second measuring unit 22 measures the position measurement value of the output shaft 17 whose origin is the initial position based on the sensor values of the position sensors 18 and 19. The position of the output shaft 17 on the rack gear 16 is measured from the sensor value according to the absolute position of the output shaft 17.

状態監視部23は、システム動作中に第1の測定部21で測定された出力軸17の位置測定値と第2の測定部22で測定された出力軸17の位置測定値とを比較してモータ11の動作精度を監視する。これら位置測定値のズレが許容範囲から外れた状態が一定期間以上継続する場合に、状態監視部23はシステム動作中にメモリ異常等が生じたとしてモータ11が異常であると判定する。また、位置測定値のズレが許容範囲内、または位置測定値のズレが許容範囲から外れた状態が一定期間継続しない場合に、状態監視部23はシステム動作中の不具合が生じていないとしてモータ11が正常であると判定する。 The state monitoring unit 23 compares the position measurement value of the output shaft 17 measured by the first measurement unit 21 and the position measurement value of the output shaft 17 measured by the second measurement unit 22 during system operation. The operation accuracy of the motor 11 is monitored. When the deviation of these position measurement values is out of the allowable range for a certain period or longer, the state monitoring unit 23 determines that the motor 11 is abnormal because a memory abnormality or the like occurs during the system operation. If the deviation of the position measurement value is within the allowable range, or if the deviation of the position measurement value is out of the allowable range does not continue for a certain period of time, the status monitoring unit 23 determines that the malfunction of the system is not occurring. Is determined to be normal.

また、電子制御装置20は、システム起動時に出力軸17を初期位置に合わせるようにモータ11を制御しており、モータ制御部24と、第1の記憶領域25と、第2の記憶領域26と、診断部27とを備えている。モータ制御部24は、システム終了直前に出力軸17を初期位置に戻すようにモータ11を制御している。また、モータ制御部24は、システム起動時の出力軸17の起動位置と初期位置のズレを補正するようにモータ11を制御して、システム終了後に意図しない外力等によって動かされた出力軸17を元の初期位置に戻している。 Further, the electronic control unit 20 controls the motor 11 so as to match the output shaft 17 to the initial position when the system is started, and includes a motor control unit 24, a first storage area 25, and a second storage area 26. , And a diagnosis unit 27. The motor control unit 24 controls the motor 11 so as to return the output shaft 17 to the initial position immediately before the system ends. Further, the motor control unit 24 controls the motor 11 so as to correct the deviation between the starting position and the initial position of the output shaft 17 at the time of system startup, so that the output shaft 17 moved by an unintended external force or the like after the system ends. It has returned to its original initial position.

第1の記憶領域25には、システム終了時に初期位置に戻された出力軸17の初期位置測定値が記憶される。システム終了の度に初期位置測定値が第1の記憶領域25に記憶されるため、最新の初期位置測定値によってバックラッシュ等の経年変化を初期位置に反映させることができる。第2の記憶領域26には、システム組み立て時に初期位置に調整された出力軸17の初期位置測定値が記憶されている。第2の記憶領域26の初期位置測定値は、第1の記憶領域25から初期位置測定値を読み出せない時の予備の初期位置測定値として使用される。第2の記憶領域26には書き換えが行われないメモリの領域が使用されて電子情報の破損が避けられている。 The first storage area 25 stores the initial position measurement value of the output shaft 17 returned to the initial position when the system is terminated. Since the initial position measurement value is stored in the first storage area 25 each time the system is terminated, the secular change such as backlash can be reflected in the initial position by the latest initial position measurement value. The second storage area 26 stores the initial position measurement value of the output shaft 17 adjusted to the initial position during system assembly. The initial position measurement value of the second storage area 26 is used as a preliminary initial position measurement value when the initial position measurement value cannot be read from the first storage area 25. The second storage area 26 uses an area of the memory that is not rewritten to avoid damage to electronic information.

診断部27は、システム起動時に第1の記憶領域25の初期位置測定値の記憶状態を診断する。例えば、診断部27は、チェックサム等の誤り検出機能を用いて、初期位置測定値の破損や第1の記憶領域25に対する書き込み不良から初期位置測定値の記憶状態を診断する。診断部27の診断結果が正常な場合には、第1の記憶領域25から前回のシステム終了時の初期位置測定値が読み出されて、モータ制御部24による出力軸17の位置補正に使用される。診断部27の診断結果が異常な場合に、第2の記憶領域26からシステム組み立て時の初期位置測定値が読み出されて、モータ制御部24による出力軸17の位置補正に使用される。 The diagnostic unit 27 diagnoses the storage state of the initial position measurement value in the first storage area 25 when the system is activated. For example, the diagnosis unit 27 uses an error detection function such as a checksum to diagnose the storage state of the initial position measurement value based on the damage of the initial position measurement value or the defective writing in the first storage area 25. When the diagnosis result of the diagnosis unit 27 is normal, the initial position measurement value at the time of the previous system termination is read from the first storage area 25 and used for the position correction of the output shaft 17 by the motor control unit 24. It When the diagnosis result of the diagnosis unit 27 is abnormal, the initial position measurement value at the time of system assembly is read from the second storage area 26 and used for the position correction of the output shaft 17 by the motor control unit 24.

すなわち、第1の記憶領域25の初期位置測定値の記憶状態が正常な場合に、モータ制御部24は、システム起動時に第2の測定部22で測定された出力軸17の起動位置測定値と第1の記憶領域25に記憶された初期位置測定値とのズレを補正するようにモータ11を制御する。第1の記憶領域25の初期位置測定値の記憶状態が異常な場合に、モータ制御部24は、システム起動時に第2の測定部22で測定された出力軸17の起動位置測定値と第2の記憶領域26に記憶された初期位置測定値とのズレを補正するようにモータ11を制御する。よって、第1の記憶領域25から初期位置測定値が読み出せなくても、第2の記憶領域26から初期位置測定値を読み出してモータ11を制御することができる。 That is, when the storage state of the initial position measurement value in the first storage area 25 is normal, the motor control unit 24 sets the start position measurement value of the output shaft 17 measured by the second measurement unit 22 at the time of system startup. The motor 11 is controlled so as to correct the deviation from the initial position measurement value stored in the first storage area 25. When the storage state of the initial position measurement value in the first storage area 25 is abnormal, the motor control unit 24 determines the start position measurement value of the output shaft 17 measured by the second measurement unit 22 during system startup and the second The motor 11 is controlled so as to correct the deviation from the initial position measurement value stored in the storage area 26 of FIG. Therefore, even if the initial position measurement value cannot be read from the first storage area 25, the motor 11 can be controlled by reading the initial position measurement value from the second storage area 26.

図3に示すように、電子制御装置20にはマイコン30が搭載されている。電子制御装置20の各部は、マイコン30に設けられたプロセッサ31、メモリ32、集積回路(不図示)等のハードウェアによって実現される。プロセッサ31としては、CPU(Central Processing Unit)、MPU(Micro Processing Unit)、GPU(Graphics Processing Unit)、DSP(Digital Signal Processor)等が使用される。メモリ32としては、RAM(Random Access Memory)35、EEPROM(Electrically Erasable Programmable Read Only Memory)36、ROM(Read Only Memory)37が設けられている。なお、EEPROM36はマイコン30外のものが使用されてもよい。 As shown in FIG. 3, a microcomputer 30 is mounted on the electronic control unit 20. Each unit of the electronic control unit 20 is realized by hardware such as a processor 31, a memory 32, and an integrated circuit (not shown) provided in the microcomputer 30. As the processor 31, a CPU (Central Processing Unit), an MPU (Micro Processing Unit), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), or the like is used. As the memory 32, a RAM (Random Access Memory) 35, an EEPROM (Electrically Erasable Programmable Read Only Memory) 36, and a ROM (Read Only Memory) 37 are provided. The EEPROM 36 may be one outside the microcomputer 30.

RAM35にはモータ回転角等のシステム動作中の情報が一時的に記憶される。EEPROM36にはシステム終了時に各種情報が書き込まれて、システム起動時にEEPROM36から各種情報が読み出される。EEPROM36は、システム終了時に位置センサ18、19のセンサ値から測定された出力軸17の初期位置測定値が書き込まれる。EEPROM36の書き込みデータは、チェックサム等の誤り検出機能で正当性がチェックされる。例えば、EEPROM36に書き込み中に電源喪失した場合には、チェックサムで正当性が確認できずに電子情報の破損と診断される。 The RAM 35 temporarily stores information such as a motor rotation angle during system operation. Various types of information are written in the EEPROM 36 when the system is terminated, and various types of information are read from the EEPROM 36 when the system is started. In the EEPROM 36, the initial position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19 is written when the system ends. The correctness of the write data of the EEPROM 36 is checked by an error detection function such as a checksum. For example, if the power supply is lost during writing to the EEPROM 36, the checksum cannot confirm the correctness, and the electronic information is diagnosed as damaged.

ROM37にはプログラム等が書き込まれている。ROM37にはシステム起動時及びシステム終了時に各種情報が書き込まれないため、EEPROM36のように電子情報の破損が発生しない。このROM37の特徴を利用して、システム組み立て時に初期位置に調整された出力軸17の初期位置測定値が書き込まれている。このように、EEPROM36は第1の記憶領域25として機能しており、ROM37は第2の記憶領域26として機能している。なお、EEPROM36は第2の記憶領域26として機能してもよい。この場合、EEPROM36のシステム終了時に書き込む領域を第1の記憶領域25として使用し、EEPROM36のシステム出荷後に書き換えない領域を第2の記憶領域26として使用する。 Programs and the like are written in the ROM 37. Since various information is not written in the ROM 37 at system startup and system termination, electronic information is not damaged unlike the EEPROM 36. Utilizing the characteristics of the ROM 37, the initial position measurement value of the output shaft 17 adjusted to the initial position during system assembly is written. In this way, the EEPROM 36 functions as the first storage area 25, and the ROM 37 functions as the second storage area 26. The EEPROM 36 may function as the second storage area 26. In this case, the area of the EEPROM 36 to be written when the system ends is used as the first storage area 25, and the area of the EEPROM 36 that is not rewritten after the system is shipped is used as the second storage area 26.

図4及び図5を参照して、電子制御装置20による出力軸17の位置制御の概要について説明する。図4及び図5は、本実施形態に係る出力軸17の位置制御の説明図である。図4及び図5には、出力軸17の実際の位置のタイムチャート、第1の測定部21によって測定された出力軸17の位置測定値のタイムチャート、第2の測定部22によって測定された出力軸17の位置測定値のタイムチャートを示している。 An outline of position control of the output shaft 17 by the electronic control unit 20 will be described with reference to FIGS. 4 and 5. 4 and 5 are explanatory views of the position control of the output shaft 17 according to the present embodiment. 4 and 5, a time chart of the actual position of the output shaft 17, a time chart of the position measurement value of the output shaft 17 measured by the first measuring unit 21, and a measurement by the second measuring unit 22. The time chart of the position measurement value of the output shaft 17 is shown.

図4には、出力軸17の起動位置と初期位置が一致した状態を示している。車両制御システム10が起動すると、モータ11の回転によって出力軸17が移動される。出力軸17の移動に合わせて回転センサ13によってモータ回転角が検出されて、第1の測定部21によってモータ回転角に応じた出力軸17の位置測定値が測定される。また、出力軸17の移動に合わせて位置センサ18、19からセンサ値が出力されて、第2の測定部22によって位置センサ18、19のセンサ値に応じた出力軸17の位置測定値が測定される。出力軸17の実際の位置の変化に、第1、第2の測定部21、22によって測定された出力軸17の位置測定値が追従している。 FIG. 4 shows a state where the starting position and the initial position of the output shaft 17 match. When the vehicle control system 10 is activated, the output shaft 17 is moved by the rotation of the motor 11. The rotation sensor 13 detects the motor rotation angle in accordance with the movement of the output shaft 17, and the first measurement unit 21 measures the position measurement value of the output shaft 17 according to the motor rotation angle. Further, the sensor values are output from the position sensors 18 and 19 in accordance with the movement of the output shaft 17, and the position measurement value of the output shaft 17 corresponding to the sensor values of the position sensors 18 and 19 is measured by the second measuring unit 22. To be done. The position measurement value of the output shaft 17 measured by the first and second measuring units 21 and 22 follows the change in the actual position of the output shaft 17.

第1の測定部21では起動位置を原点にした出力軸17の位置測定値が測定され、第2の測定部22では初期位置を原点にした出力軸17の位置測定値が測定される。図4では、初期位置と起動位置が常に一致している。第1、第2の測定部21、22には計測遅れがあるため、出力軸17の実際の位置から遅れて第1、第2の測定部21、22によって出力軸17の位置測定値が測定される。モータ11の回転が出力軸17に伝達してから出力軸17が動き出すため、出力軸17の位置を測定する第2の測定部22は第1の測定部21よりも計測遅れが大きくなっている。したがって、システム動作中は計測遅れが少ないモータ回転角を用いてモータ11が制御される。 The first measurement unit 21 measures the position measurement value of the output shaft 17 whose origin is the starting position, and the second measurement unit 22 measures the position measurement value of the output shaft 17 whose origin is the initial position. In FIG. 4, the initial position and the starting position always match. Since there is a measurement delay in the first and second measuring units 21 and 22, the position measurement value of the output shaft 17 is measured by the first and second measuring units 21 and 22 after the actual position of the output shaft 17. To be done. Since the output shaft 17 starts moving after the rotation of the motor 11 is transmitted to the output shaft 17, the second measuring unit 22 for measuring the position of the output shaft 17 has a larger measurement delay than the first measuring unit 21. .. Therefore, during system operation, the motor 11 is controlled using the motor rotation angle with a small measurement delay.

システム終了直前には、モータ制御部24によって出力軸17を初期位置に戻すようにモータ11が制御される。この場合、電子制御装置20からモータ11にシステム終了指示が出された時点で出力軸17が初回起動と同じ初期位置に向けて移動され、出力軸17が初期位置で停止してから電源が落とされる。これにより、次回起動時も初回起動時と同じ初期位置から出力軸17を移動させることができる。ここで、システム終了直前とは、システム終了時よりも前のシステム終了指示が出された時点である。また、システム終了時とは出力軸17がシステム終了後に初期位置に戻って停止した時点である。なお、システム終了指示からシステム終了時の期間は、出力軸17を初期位置に戻すのに十分な期間が確保されている。 Immediately before the end of the system, the motor controller 24 controls the motor 11 to return the output shaft 17 to the initial position. In this case, the output shaft 17 is moved toward the same initial position as the initial start-up at the time when the system end instruction is issued from the electronic control unit 20 to the motor 11, and the power is turned off after the output shaft 17 is stopped at the initial position. Be done. As a result, the output shaft 17 can be moved from the same initial position at the next startup as at the initial startup. Here, “immediately before the system is terminated” is the time when the system termination instruction is issued before the system termination. Further, when the system ends, the output shaft 17 returns to the initial position and stops after the system ends. The period from the system termination instruction to the system termination is secured for a period sufficient to return the output shaft 17 to the initial position.

システム終了後は、第1、第2の測定部21、22によって出力軸17の位置測定値を測定することができず、システム起動までは出力軸17の実際の位置を認識することはできない。図4の例ではシステム終了後に意図しない外力等によって出力軸17が動かされていないため、システム起動後は初回起動と同じ初期位置を原点にして出力軸17が動かされる。このように、システム起動時に出力軸17の起動位置と初期位置が一致している場合には、初期位置を原点にして、測定遅れが少ないモータ回転角に基づいて出力軸17を精度よく位置制御することができる。 After the system ends, the position measurement value of the output shaft 17 cannot be measured by the first and second measuring units 21 and 22, and the actual position of the output shaft 17 cannot be recognized until the system is activated. In the example of FIG. 4, since the output shaft 17 is not moved by an unintended external force or the like after the system ends, after the system is started, the output shaft 17 is moved with the same initial position as the initial start as the origin. In this way, when the starting position of the output shaft 17 and the initial position match at the time of system startup, the initial position is set as the origin and the output shaft 17 is accurately position-controlled based on the motor rotation angle with less measurement delay. can do.

図5には、システム終了後に意図しない外力等によって、出力軸17の起動位置が初期位置から動かされた状態を示している。システム終了後には、上記したように第1、第2の測定部21、22によって出力軸17の位置測定値を測定できない。システム終了後に出力軸17が動かされても、この出力軸17の移動距離がシステム起動時にモータ回転角に反映されない。このため、システム起動時には第1の測定部21によって前回起動時と同じ初期位置が出力軸17の初期位置測定値として測定される。この状態では、第1の測定部21の原点が初期位置にならないため、モータ回転角に基づいて出力軸17を位置制御することはできない。 FIG. 5 shows a state in which the starting position of the output shaft 17 is moved from the initial position by an unintended external force or the like after the system ends. After the system is finished, the position measurement value of the output shaft 17 cannot be measured by the first and second measuring units 21 and 22 as described above. Even if the output shaft 17 is moved after the system ends, the moving distance of the output shaft 17 is not reflected in the motor rotation angle at the time of system startup. Therefore, when the system is started up, the first measuring unit 21 measures the same initial position as that at the previous start up as the initial position measurement value of the output shaft 17. In this state, the origin of the first measuring unit 21 does not reach the initial position, so that the position of the output shaft 17 cannot be controlled based on the motor rotation angle.

これに対し、位置センサ18、19は出力軸17の絶対位置に応じたセンサ値を出力するため、システム終了後に出力軸17が動かされていても、システム起動時に第2の測定部22によって出力軸17の位置測定値を測定することができる。よって、第2の測定部22で測定された出力軸17の位置測定値を利用して、システム終了後に生じた出力軸17の位置ズレを位置補正することができる。出力軸17の位置補正では、システム終了時に記憶された出力軸17の初期位置測定値とシステム起動時に測定された起動位置測定値によって、出力軸17を起動位置から初期位置に戻すようにモータ11が制御される。 On the other hand, since the position sensors 18 and 19 output the sensor value according to the absolute position of the output shaft 17, even if the output shaft 17 is moved after the system is finished, it is output by the second measuring unit 22 when the system is started. A position measurement of the shaft 17 can be measured. Therefore, by using the position measurement value of the output shaft 17 measured by the second measuring unit 22, it is possible to correct the position deviation of the output shaft 17 that occurs after the system ends. In the position correction of the output shaft 17, the motor 11 is configured to return the output shaft 17 from the starting position to the initial position based on the initial position measured value of the output shaft 17 stored at the end of the system and the starting position measured value measured at the system startup. Is controlled.

この場合、システム終了時の出力軸17の初期位置測定値とシステム起動時の出力軸17の起動位置測定値のズレに基づいて、出力軸17を起動位置から初期位置に戻すのに必要なモータ回転角が算出される。モータ制御部24によってズレ分のモータ回転角だけモータ11が駆動されて、出力軸17の起動位置が初期位置に戻される。この位置補正の動きに第1の測定部21で測定された出力軸17の位置測定値が追従するため、出力軸17が初期位置に戻された時点で第1の測定部21の位置測定値がゼロクリアされる。なお、第1の測定部21の位置測定値をゼロクリアする代わりに、起動位置から初期位置までのモータ回転角をオフセットとして保持してもよい。 In this case, the motor required to return the output shaft 17 from the starting position to the initial position based on the deviation between the measured initial position value of the output shaft 17 at the system end and the measured starting position value of the output shaft 17 at the system start-up. The rotation angle is calculated. The motor control unit 24 drives the motor 11 by a motor rotation angle corresponding to the deviation, and the starting position of the output shaft 17 is returned to the initial position. Since the position measurement value of the output shaft 17 measured by the first measuring unit 21 follows this movement of position correction, the position measurement value of the first measuring unit 21 is returned when the output shaft 17 is returned to the initial position. Is cleared to zero. Instead of clearing the position measurement value of the first measuring unit 21 to zero, the motor rotation angle from the starting position to the initial position may be held as an offset.

このように、システム終了後に出力軸17が初期位置から起動位置に動かされた場合に、システム起動時に出力軸17を起動位置から初期位置に戻すことができる。よって、初期位置を原点にして測定遅れが少ないモータ回転角を用いて出力軸17を精度よく位置制御することができる。また、システム終了時の初期位置測定値にデータ破損等が生じた場合には、システムの組み立て時に設定された初期位置測定値を使用して出力軸17が位置補正される。 In this way, when the output shaft 17 is moved from the initial position to the starting position after the system ends, the output shaft 17 can be returned from the starting position to the initial position when the system is started. Therefore, the position of the output shaft 17 can be accurately controlled by using the motor rotation angle with a small measurement delay with the initial position as the origin. In addition, when data damage or the like occurs in the initial position measurement value at the end of the system, the position of the output shaft 17 is corrected using the initial position measurement value set when the system is assembled.

さらに、システム動作中にRAM内のモータ回転角に関する情報の破損や回転センサ13の誤検出が生じる場合がある。回転センサ13の誤検出については図5に一点鎖線で示している。本実施形態では、システム動作中に第1の測定部21で測定された出力軸17の位置測定値と第2の測定部22で測定された出力軸17の位置測定値とのズレが監視されている。これにより、モータ回転角から測定された出力軸17の位置測定値と位置センサ18、19のセンサ値から測定された出力軸17の位置測定値とのズレから、モータ11の動作精度の悪化が検出される。このように、システム起動時だけでなく、システム動作中のモータ11の動作精度の悪化が監視されている。 Further, during the operation of the system, the information about the motor rotation angle in the RAM may be damaged or the rotation sensor 13 may be erroneously detected. The erroneous detection of the rotation sensor 13 is shown by a dashed line in FIG. In the present embodiment, the deviation between the position measurement value of the output shaft 17 measured by the first measurement unit 21 and the position measurement value of the output shaft 17 measured by the second measurement unit 22 is monitored during system operation. ing. As a result, the operation accuracy of the motor 11 deteriorates due to the deviation between the position measurement value of the output shaft 17 measured from the motor rotation angle and the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19. To be detected. In this way, the deterioration of the operating accuracy of the motor 11 is monitored not only when the system is started but also when the system is operating.

図6を参照して、モータの監視処理について説明する。図6は、本実施形態に係るモータの監視処理のフローチャートである。 The motor monitoring process will be described with reference to FIG. FIG. 6 is a flowchart of the motor monitoring process according to the present embodiment.

図6に示すように、電子制御装置20は、回転センサ13のモータ回転角に基づいて出力軸17の位置測定値を測定すると共に、位置センサ18、19のセンサ値に基づいて出力軸17の位置測定値を測定する(ステップS01)。次に、電子制御装置20は、モータ回転角から測定した出力軸17の位置測定値と位置センサ18、19のセンサ値から測定した出力軸17の位置測定値とのズレを算出する(ステップS02)。この場合、電子制御装置20は、モータ回転角から測定した位置測定値と位置センサ18、19のセンサ値から測定した位置測定値の遅れ要素を考慮してズレを算出している。 As shown in FIG. 6, the electronic control unit 20 measures the position measurement value of the output shaft 17 based on the motor rotation angle of the rotation sensor 13, and the output shaft 17 of the output shaft 17 based on the sensor values of the position sensors 18 and 19. The position measurement value is measured (step S01). Next, the electronic control unit 20 calculates the deviation between the position measurement value of the output shaft 17 measured from the motor rotation angle and the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19 (step S02). ). In this case, the electronic control unit 20 calculates the deviation in consideration of the delay element between the position measurement value measured from the motor rotation angle and the position measurement value measured from the sensor values of the position sensors 18 and 19.

次に、電子制御装置20は、位置測定値のズレが第1の許容範囲外か否かを判定する(ステップS03)。位置測定値のズレが第1の許容範囲に収まる場合(ステップS03でNO)、電子制御装置20はシステム動作中に不具合が生じていないとしてモータ11が正常であると判定する(ステップS04)。一方で、位置測定値のズレが第1の許容範囲外の場合(ステップS03でYES)、電子制御装置20は位置測定値のズレが第1の許容範囲から外れた状態が一定期間継続しているか否かを判定する(ステップS05)。 Next, the electronic control unit 20 determines whether or not the deviation of the position measurement value is outside the first allowable range (step S03). When the deviation of the position measurement value falls within the first allowable range (NO in step S03), the electronic control unit 20 determines that the motor 11 is normal because there is no malfunction during system operation (step S04). On the other hand, when the deviation of the position measurement value is outside the first allowable range (YES in step S03), the electronic control unit 20 continues to keep the position measurement value deviation outside the first allowable range for a certain period. It is determined whether or not there is (step S05).

位置測定値のズレが第1の許容範囲から外れた状態が一定期間継続しない場合(ステップS05でNO)、電子制御装置20はシステム動作中の一過性の不具合であるとしてモータ11が正常であると判定する(ステップS04)。位置測定値のズレが第1の許容範囲から外れた状態が一定期間継続した場合(ステップS05でYES)、電子制御装置20はシステム動作中にメモリ異常等の不具合が生じているとしてモータ11が異常であると判定する(ステップS06)。なお、第1の許容範囲としては、過去データ等から実験的、経験的又は理論的に求められた値が使用される。 If the deviation of the position measurement value is out of the first permissible range and does not continue for a certain period (NO in step S05), the electronic control unit 20 determines that the motor 11 is normal because of a temporary failure during system operation. It is determined that there is (step S04). If the deviation of the position measurement value deviates from the first allowable range for a certain period of time (YES in step S05), the electronic control unit 20 determines that a malfunction such as a memory abnormality has occurred during the system operation, and the motor 11 It is determined to be abnormal (step S06). As the first allowable range, a value experimentally, empirically, or theoretically obtained from past data or the like is used.

このように、モータ回転角から測定される出力軸17の位置測定値と位置センサ18、19のセンサ値から測定される出力軸17の位置測定値のズレから、システム動作中のメモリ異常、回転センサの誤検出等によるモータの動作精度の悪化が監視されている。 In this way, due to the difference between the position measurement value of the output shaft 17 measured from the motor rotation angle and the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19, memory abnormality during the system operation, rotation Deterioration of motor operation accuracy due to erroneous detection of sensors is monitored.

図7を参照して、システム終了時のモータ制御処理について説明する。図7は、本実施形態に係るシステム終了時のモータ制御処理のフローチャートである。 With reference to FIG. 7, a motor control process at the time of ending the system will be described. FIG. 7 is a flowchart of the motor control process at the time of ending the system according to this embodiment.

図7に示すように、電子制御装置20は、システム終了直前に初期位置測定値を目標値に設定して、出力軸17の位置測定値を測定しながらモータ11を駆動する(ステップS11)。次に、電子制御装置20は、測定した出力軸17の位置測定値が初期位置測定値に一致するか否かを判定し(ステップS12)、出力軸17の位置測定値が初期位置測定値に一致するまで、ステップS11、S12の処理を繰り返す。これにより、システム終了直前に出力軸17が初期位置に戻される。なお、出力軸17の位置測定値は、位置センサ18、19のセンサ値から測定されてもよいし、モータ回転角から測定されてもよい。 As shown in FIG. 7, the electronic control unit 20 sets the initial position measurement value to the target value immediately before the system ends, and drives the motor 11 while measuring the position measurement value of the output shaft 17 (step S11). Next, the electronic control unit 20 determines whether or not the measured position measurement value of the output shaft 17 matches the initial position measurement value (step S12), and the position measurement value of the output shaft 17 becomes the initial position measurement value. The processes of steps S11 and S12 are repeated until they match. As a result, the output shaft 17 is returned to the initial position immediately before the system ends. The position measurement value of the output shaft 17 may be measured from the sensor values of the position sensors 18 and 19 or may be measured from the motor rotation angle.

出力軸17が初期位置に戻されると(ステップS12でYES)、電子制御装置20は、位置センサ18、19のセンサ値を読み取って、センサ値に応じた出力軸17の位置測定値を測定する(ステップS13)。次に、電子制御装置20は、位置センサ18、19のセンサ値に応じた出力軸17の位置測定値を次回の初期位置測定値として第1の記憶領域25に記憶する(ステップS14)。なお、第1の記憶領域25には、出力軸17の初期位置測定値として位置センサ18、19のセンサ値が記憶されてもよい。このように、システム終了時には、モータ11によって初期位置に戻された出力軸17の位置測定値が次回の初期位置測定値として第1の記憶領域25に記憶される。 When the output shaft 17 is returned to the initial position (YES in step S12), the electronic control unit 20 reads the sensor values of the position sensors 18 and 19 and measures the position measurement value of the output shaft 17 according to the sensor value. (Step S13). Next, the electronic control unit 20 stores the position measurement value of the output shaft 17 corresponding to the sensor values of the position sensors 18 and 19 in the first storage area 25 as the next initial position measurement value (step S14). The sensor values of the position sensors 18 and 19 may be stored in the first storage area 25 as the initial position measurement values of the output shaft 17. In this way, when the system ends, the position measurement value of the output shaft 17 returned to the initial position by the motor 11 is stored in the first storage area 25 as the next initial position measurement value.

図8を参照して、システム起動時のモータ制御処理について説明する。図8は、本実施形態に係るシステム起動時のモータ制御処理のフローチャートである。なお、システム組み立て時に出力軸17が理想的な初期位置に位置付けられ、この出力軸17の位置測定値が初期位置測定値として第2の記憶領域26に記憶されている。なお、第2の記憶領域26には、システム組み立て時の初期位置測定値として位置センサ18、19のセンサ値が記憶されてもよい。 With reference to FIG. 8, a motor control process at system startup will be described. FIG. 8 is a flowchart of the motor control process at system startup according to this embodiment. The output shaft 17 is positioned at an ideal initial position when the system is assembled, and the position measurement value of the output shaft 17 is stored in the second storage area 26 as the initial position measurement value. The second storage area 26 may store the sensor values of the position sensors 18 and 19 as initial position measurement values during system assembly.

図8に示すように、電子制御装置20は、システム起動時の位置センサ18、19のセンサ値から出力軸17の起動位置測定値を測定する(ステップS21)。次に、電子制御装置20は、第1の記憶領域25の初期位置測定値の記憶状態を診断する(ステップS22)。第1の記憶領域25の初期位置測定値の記憶状態が正常な場合(ステップS22でYES)、電子制御装置20は第1の記憶領域25から前回のシステム終了時の初期位置測定値を読み出す(ステップS23)。第1の記憶領域25の初期位置測定値の記憶状態が異常な場合(ステップS22でNO)、電子制御装置20は第2の記憶領域26からシステム組み立て時の初期位置測定値を読み出す(ステップS24)。 As shown in FIG. 8, the electronic control unit 20 measures the starting position measurement value of the output shaft 17 from the sensor values of the position sensors 18 and 19 at the time of system startup (step S21). Next, the electronic control unit 20 diagnoses the storage state of the initial position measurement value in the first storage area 25 (step S22). When the storage state of the initial position measurement value in the first storage area 25 is normal (YES in step S22), the electronic control unit 20 reads the initial position measurement value at the time of the last system shutdown from the first storage area 25 ( Step S23). When the storage state of the initial position measurement value in the first storage area 25 is abnormal (NO in step S22), the electronic control unit 20 reads the initial position measurement value at the time of system assembly from the second storage area 26 (step S24). ).

次に、電子制御装置20は、システム起動時に測定した出力軸17の起動位置測定値と第1の記憶領域25又は第2の記憶領域26から読み出した初期位置測定値のズレが第2の許容範囲外か否かを判定する(ステップS25)。位置測定値のズレが第2の許容範囲外の場合(ステップS25でYES)、電子制御装置20は出力軸17の起動位置測定値と初期位置測定値にズレが発生しているとして位置補正処理を実行する(ステップS26)。一方で、位置測定値のズレが第2の許容範囲に収まる場合(ステップS25でNO)、電子制御装置20は、出力軸17の起動位置と初期位置にズレが発生していないとして位置補正処理を実行せずに通常制御に移行する。なお、第2の許容範囲としては、過去データ等から実験的、経験的又は理論的に求められた値が使用される。 Next, the electronic control unit 20 allows the deviation of the measured value of the starting position of the output shaft 17 measured at system startup from the measured value of the initial position read from the first storage area 25 or the second storage area 26 to the second allowable value. It is determined whether it is out of the range (step S25). When the deviation of the position measurement value is out of the second allowable range (YES in step S25), the electronic control unit 20 determines that the deviation between the starting position measurement value of the output shaft 17 and the initial position measurement value has occurred, and performs the position correction process. Is executed (step S26). On the other hand, when the deviation of the position measurement value falls within the second permissible range (NO in step S25), the electronic control unit 20 determines that there is no deviation between the starting position and the initial position of the output shaft 17, and performs the position correction process. Shift to normal control without executing. As the second allowable range, a value experimentally, empirically or theoretically obtained from past data or the like is used.

このように、第1の記憶領域25から前回のシステム終了時の初期位置測定値が読み出せなくなった場合に、第2の記憶領域26からシステム組み立て時の初期位置測定値を読み出すことが可能になっている。また、第1の記憶領域25には、前回のシステム終了時に初期位置に戻された出力軸17の位置を初期位置測定値として記憶することで、経年変化が反映された初期位置を基準に位置補正処理を実施することができる。また、第2の記憶領域26は、書き換えが行われないため、システム組み立て時の初期位置測定値の破損を避けることができる。 In this way, when the initial position measurement value at the time of the previous system termination cannot be read from the first storage area 25, the initial position measurement value at the time of system assembly can be read from the second storage area 26. Is becoming In addition, the first storage area 25 stores the position of the output shaft 17 returned to the initial position at the time of the previous system termination as the initial position measurement value, so that the position based on the initial position reflecting the secular change is set as the reference. A correction process can be performed. Further, since the second storage area 26 is not rewritten, it is possible to avoid damage to the initial position measurement value at the time of system assembly.

また、システム起動時のモータ制御処理では、ステップS22、S24の処理を省略して、第1の記憶領域25に記憶された初期位置測定値を常に読み出すようにしてもよい。また、システム起動時のモータ制御処理では、ステップS22、S23の処理を省略して、第2の記憶領域26に記憶された初期位置測定値を常に読み出すようにしてもよい。 Further, in the motor control process at system startup, the processes of steps S22 and S24 may be omitted and the initial position measurement value stored in the first storage area 25 may be always read. Further, in the motor control process at system startup, the processes of steps S22 and S23 may be omitted and the initial position measurement value stored in the second storage area 26 may be always read.

図9を参照して、システム起動時の位置補正処理について説明する。図9は、本実施形態に係るシステム起動時の位置補正処理のフローチャートである。 The position correction process when the system is started up will be described with reference to FIG. 9. FIG. 9 is a flowchart of the position correction process at system startup according to this embodiment.

図9に示すように、電子制御装置20は、システム起動時に測定した出力軸17の起動位置測定値と第1の記憶領域25又は第2の記憶領域26から読み出した初期位置測定値のズレから目標モータ回転角を算出する(ステップS31)。次に、電子制御装置20は、回転センサ13でモータ回転角を検出し、回転センサ13で検出されたモータ回転角を目標回転角に近づけるようにモータ11を駆動する(ステップS32)。次に、電子制御装置20は、モータ回転角が目標モータ回転角に一致するか否かを判定し(ステップS33)、モータ回転角が目標モータ回転角に一致するまで、ステップS32、S33の処理を繰り返す。 As shown in FIG. 9, the electronic control unit 20 uses the deviation between the measured start position value of the output shaft 17 measured at system startup and the measured initial position value read from the first storage area 25 or the second storage area 26. The target motor rotation angle is calculated (step S31). Next, the electronic control unit 20 detects the motor rotation angle by the rotation sensor 13 and drives the motor 11 so that the motor rotation angle detected by the rotation sensor 13 approaches the target rotation angle (step S32). Next, the electronic control unit 20 determines whether or not the motor rotation angle matches the target motor rotation angle (step S33), and the processes of steps S32 and S33 are performed until the motor rotation angle matches the target motor rotation angle. repeat.

モータ回転角が目標モータ回転角に一致すると(ステップS33でYES)、電子制御装置20はモータ回転角をゼロクリアする(ステップS34)。これは、モータ回転角は、上記したようにシステム起動時のモータ回転角を原点とした相対角度情報だからである。モータ回転角をゼロクリアすることで、電子制御装置20はゼロクリア時のモータ回転角を原点として認識することができる。また、ゼロクリアせずに、目標モータ回転角をオフセットとして保持することも可能である。 When the motor rotation angle matches the target motor rotation angle (YES in step S33), the electronic control unit 20 clears the motor rotation angle to zero (step S34). This is because the motor rotation angle is relative angle information with the motor rotation angle at system startup as the origin, as described above. By clearing the motor rotation angle to zero, the electronic control unit 20 can recognize the motor rotation angle at the time of zero clear as the origin. It is also possible to hold the target motor rotation angle as an offset without performing zero clear.

このように、システム終了後に出力軸17が動かされて、出力軸17が初期位置から位置ズレした場合であっても、システム終了時の出力軸17の初期位置測定値とシステム起動時の出力軸17の起動位置測定値のズレ分だけ出力軸17が移動されて、システム起動時に出力軸17が初期位置に戻される。よって、システム起動後に初期位置を原点にしてモータ回転角によって駆動対象を精度よく位置制御することができる。 In this way, even if the output shaft 17 is moved after the system is terminated and the output shaft 17 is displaced from the initial position, the initial position measurement value of the output shaft 17 at the system termination and the output shaft at the system startup are output. The output shaft 17 is moved by an amount corresponding to the deviation of the measured start position value of 17, and the output shaft 17 is returned to the initial position when the system is started. Therefore, it is possible to accurately control the position of the drive target by the motor rotation angle with the initial position as the origin after the system is activated.

なお、本実施形態では、システム起動時の出力軸の位置補正処理について説明したが、通常動作中の出力軸の位置補正処理を実施することも可能である。モータ制御部24は、システム動作中にモータ回転角から測定された出力軸17の移動距離を、第2の記憶領域26に記憶された初期位置測定値から第2の測定部22で測定された位置測定値までの出力軸17の移動距離に一致させるようにモータ11を制御してもよい。以下、図10を参照して、システム動作中の位置補正処理について説明する。図10は、本実施形態に係るシステム動作中の位置補正処理のフローチャートである。 In the present embodiment, the output axis position correction processing at the time of system startup has been described, but the output axis position correction processing during normal operation can also be performed. The motor control unit 24 measures the moving distance of the output shaft 17 measured from the motor rotation angle during the system operation by the second measuring unit 22 from the initial position measurement value stored in the second storage area 26. The motor 11 may be controlled so as to match the moving distance of the output shaft 17 up to the position measurement value. Hereinafter, the position correction process during the system operation will be described with reference to FIG. FIG. 10 is a flowchart of position correction processing during system operation according to this embodiment.

図10に示すように、電子制御装置20は、システム動作中にモータ回転角から移動距離を測定すると共に、位置センサ18、19のセンサ値から移動距離を測定する(ステップS41)。この場合、回転センサ13に検出されたモータ回転角から出力軸17の移動距離が測定される。また、第2の記憶領域26に記憶されたシステム組み立て時の初期位置測定値と第2の測定部22で測定された出力軸17の位置測定値から出力軸17の移動距離が測定される。次に、電子制御装置20は、モータ回転角から測定される移動距離とシステム組み立て時の初期位置を基準とした移動距離とのズレを算出する(ステップS42)。 As shown in FIG. 10, the electronic control unit 20 measures the moving distance from the motor rotation angle during the system operation, and also measures the moving distance from the sensor values of the position sensors 18 and 19 (step S41). In this case, the moving distance of the output shaft 17 is measured from the motor rotation angle detected by the rotation sensor 13. Further, the moving distance of the output shaft 17 is measured from the initial position measurement value at the time of system assembly stored in the second storage area 26 and the position measurement value of the output shaft 17 measured by the second measuring unit 22. Next, the electronic control unit 20 calculates the deviation between the moving distance measured from the motor rotation angle and the moving distance based on the initial position at the time of system assembly (step S42).

次に、電子制御装置20は、移動距離のズレが第3の許容範囲外か否かを判定する(ステップS43)。移動距離のズレが第3の許容範囲外の場合(ステップS43でYES)、電子制御装置(モータ制御部)20はシステム動作中に不具合が生じているとして、移動距離のズレ分だけモータ回転角をオフセットする(ステップS44)。一方で、移動距離のズレが第3の許容範囲に収まる場合(ステップS43でNO)、システム動作中に不具合が生じていないとしてモータ11が正常であると判定して通常処理に移行する。 Next, the electronic control unit 20 determines whether or not the deviation of the moving distance is outside the third allowable range (step S43). If the deviation of the movement distance is outside the third allowable range (YES in step S43), the electronic control unit (motor control unit) 20 determines that a malfunction has occurred during system operation, and the motor rotation angle corresponds to the deviation of the movement distance. Is offset (step S44). On the other hand, when the deviation of the moving distance falls within the third allowable range (NO in step S43), it is determined that the motor 11 is normal and that there is no malfunction during the system operation, and the normal processing is performed.

このように、システム動作中にモータ回転角による移動距離と位置センサ18、19のセンサ値から移動距離を比較することで、システム動作中であっても位置補正処理を実施することができる。システム動作中に位置補正処理を実施することで、システム動作中に電源の瞬断やメモリ異常等によってシステム動作中にモータ回転角を喪失した際も速やかに初期位置を特定することができる。 In this way, by comparing the moving distance based on the motor rotation angle and the moving distance from the sensor values of the position sensors 18 and 19 during the system operation, the position correction processing can be performed even during the system operation. By performing the position correction process during the system operation, the initial position can be quickly specified even when the motor rotation angle is lost during the system operation due to a momentary power failure or memory abnormality during the system operation.

以上のように、本実施形態の電子制御装置20では、システム終了直前に出力軸17が初期位置に戻されるため、次回のシステム起動時にはモータ回転角から測定される出力軸17の位置測定値の原点と位置センサ18、19のセンサ値から測定される出力軸17の位置測定値の原点が一致する。よって、原点を基準にしたモータ回転角から測定された出力軸17の位置測定値と位置センサ18、19のセンサ値から測定された出力軸17の位置測定値とのズレから、システム動作中のメモリ異常、回転センサの誤検出等によるモータの動作精度の悪化が検出される。また、システム終了後に出力軸17が動かされた場合であっても、システム起動時に出力軸17が初期位置に戻されるため、システム起動後に初期位置を原点にしてモータ回転角によって出力軸17を精度よく位置制御することができる。 As described above, in the electronic control unit 20 of the present embodiment, the output shaft 17 is returned to the initial position immediately before the system is terminated. Therefore, at the next system startup, the position measurement value of the output shaft 17 measured from the motor rotation angle The origin coincides with the origin of the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19. Therefore, from the deviation between the position measurement value of the output shaft 17 measured from the motor rotation angle based on the origin and the position measurement value of the output shaft 17 measured from the sensor values of the position sensors 18 and 19, the system operation is being performed. Deterioration of motor operation accuracy due to memory abnormality, erroneous detection of rotation sensor, etc. is detected. Even if the output shaft 17 is moved after the system is finished, the output shaft 17 is returned to the initial position when the system is started. The position can be well controlled.

なお、上記した各実施形態では、駆動対象として車両制御システム10の出力軸17を例示したが、モータ11の駆動対象となるものであれば特に限定されない。 In each of the above-described embodiments, the output shaft 17 of the vehicle control system 10 is illustrated as the drive target, but the drive target of the motor 11 is not particularly limited.

以上の通り、本実施形態に記載の電子制御装置20は、駆動対象(出力軸17)を移動させるモータ11と、モータ11のモータ回転角を検出する回転センサ13と、駆動対象(出力軸17)の絶対位置に応じたセンサ値を出力する位置センサ18、19と、を備えたシステム(車両制御システム10)を制御する電子制御装置20であって、システム終了直前に駆動対象(出力軸17)を初期位置に戻すようにモータ11を制御するモータ制御部24と、回転センサ13のモータ回転角に基づいてシステム起動時の起動位置を原点にした駆動対象(出力軸17)の位置測定値を測定する第1の測定部21と、位置センサ18、19のセンサ値に基づいて初期位置を原点にした駆動対象(出力軸17)の位置測定値を測定する第2の測定部22と、を備えている。 As described above, the electronic control unit 20 described in the present embodiment is configured to operate the motor 11 that moves the drive target (output shaft 17), the rotation sensor 13 that detects the motor rotation angle of the motor 11, and the drive target (output shaft 17). ), which is an electronic control unit 20 for controlling a system (vehicle control system 10) including position sensors 18 and 19 that output sensor values according to the absolute position of the drive target (output shaft 17). ) To a motor control unit 24 for controlling the motor 11 to return to the initial position, and the position measurement value of the drive target (output shaft 17) whose origin is the starting position at the time of system startup based on the motor rotation angle of the rotation sensor 13. And a second measuring unit 22 for measuring the position measurement value of the drive target (output shaft 17) whose initial position is the origin based on the sensor values of the position sensors 18, 19. Is equipped with.

この構成によれば、モータ回転角から測定された駆動対象(出力軸17)の位置測定値と位置センサ18、19のセンサ値から測定された駆動対象(出力軸17)の位置測定値とのズレから、システム動作中のメモリ異常、回転センサの誤検出等によるモータの動作精度の悪化を監視することができる。 According to this configuration, the position measurement value of the drive target (output shaft 17) measured from the motor rotation angle and the position measurement value of the drive target (output shaft 17) measured from the sensor values of the position sensors 18 and 19 From the deviation, it is possible to monitor the deterioration of the operation accuracy of the motor due to the memory abnormality during the system operation, the false detection of the rotation sensor, and the like.

本実施形態に記載の電子制御装置20において、システム終了時に初期位置に戻された駆動対象(出力軸17)の初期位置測定値を記憶する第1の記憶領域25を備え、モータ制御部24は、システム起動時に第2の測定部22で測定された駆動対象(出力軸17)の起動位置測定値と第1の記憶領域25に記憶された初期位置測定値とのズレを補正するようにモータ11を制御する。 The electronic control unit 20 according to the present embodiment includes a first storage area 25 for storing the initial position measurement value of the drive target (output shaft 17) returned to the initial position when the system is terminated, and the motor control unit 24 , A motor for correcting the deviation between the measured start position value of the drive target (output shaft 17) measured by the second measurement unit 22 when the system is started and the initial position measured value stored in the first storage area 25. Control 11

この構成によれば、システム終了後に駆動対象(出力軸17)が動かされて起動位置が初期位置から位置ズレした場合であっても、システム終了時の初期位置測定値とシステム起動時の起動位置測定値のズレ分だけ駆動対象(出力軸17)が移動されて、システム起動時に駆動対象(出力軸17)が初期位置に戻される。よって、システム起動後に初期位置を原点にしてモータ回転角で駆動対象(出力軸17)を精度よく位置制御することができる。前回のシステム終了時に初期位置に戻された駆動対象(出力軸17)の位置を初期位置測定値として記憶することで、バックラッシュ等による経年変化を初期位置に反映させることができる。 According to this configuration, even if the drive target (output shaft 17) is moved after the system is finished and the starting position is displaced from the initial position, the initial position measurement value at the system ending and the starting position at the system starting are set. The drive target (output shaft 17) is moved by an amount corresponding to the deviation of the measured value, and the drive target (output shaft 17) is returned to the initial position when the system is started. Therefore, it is possible to accurately control the position of the drive target (output shaft 17) with the motor rotation angle with the initial position as the origin after the system is started. By storing the position of the driven object (output shaft 17) returned to the initial position at the time of the previous system termination as the initial position measurement value, it is possible to reflect the secular change due to backlash or the like in the initial position.

本実施形態に記載の電子制御装置20において、システム組み立て時に初期位置に調整された駆動対象(出力軸17)の初期位置測定値を記憶した第2の記憶領域26を備え、モータ制御部24は、システム起動時に第2の測定部22で測定された駆動対象(出力軸17)の起動位置測定値と第2の記憶領域26に記憶された初期位置測定値とのズレを補正するようにモータ11を制御する。 The electronic control unit 20 according to the present embodiment includes a second storage area 26 that stores the initial position measurement value of the drive target (output shaft 17) adjusted to the initial position during system assembly, and the motor control unit 24 includes , A motor for correcting the deviation between the measured start position value of the drive target (output shaft 17) measured by the second measurement unit 22 when the system is started and the initial position measured value stored in the second storage area 26. Control 11

この構成によれば、システム終了後に駆動対象(出力軸17)が動かされて起動位置が初期位置から位置ズレした場合であっても、システム終了時の初期位置測定値とシステム起動時の起動位置測定値のズレ分だけ駆動対象(出力軸17)が移動されて、システム起動時に駆動対象(出力軸17)が初期位置に戻される。よって、システム起動後に初期位置を原点にしてモータ回転角で駆動対象(出力軸17)を精度よく位置制御することができる。システム組み立て時に調整された初期位置を初期位置測定値として使用することができる。 According to this configuration, even if the drive target (output shaft 17) is moved after the system is finished and the starting position is displaced from the initial position, the initial position measurement value at the system ending and the starting position at the system starting are set. The drive target (output shaft 17) is moved by an amount corresponding to the deviation of the measured value, and the drive target (output shaft 17) is returned to the initial position when the system is started. Therefore, it is possible to accurately control the position of the drive target (output shaft 17) with the motor rotation angle with the initial position as the origin after the system is started. The initial position adjusted during system assembly can be used as the initial position measurement.

本実施形態に記載の電子制御装置20において、システム起動時に第1の記憶領域25の初期位置測定値の記憶状態を診断する診断部27を備え、診断部27の診断結果が正常な場合に、モータ制御部24は、システム起動時に第2の測定部22で測定された駆動対象(出力軸17)の起動位置測定値と第1の記憶領域25に記憶された初期位置測定値とのズレを補正するようにモータ11を制御し、診断部27の診断結果が異常な場合に、モータ制御部24は、システム起動時に第2の測定部22で測定された駆動対象(出力軸17)の起動位置測定値と第2の記憶領域26に記憶された初期位置測定値とのズレを補正するようにモータ11を制御する。 In the electronic control unit 20 according to the present embodiment, a diagnostic unit 27 that diagnoses the storage state of the initial position measurement value of the first storage area 25 at the time of system startup is provided, and when the diagnostic result of the diagnostic unit 27 is normal, The motor control unit 24 shifts the start position measurement value of the drive target (output shaft 17) measured by the second measurement unit 22 at the time of system startup from the initial position measurement value stored in the first storage area 25. When the motor 11 is controlled to be corrected and the diagnosis result of the diagnosis unit 27 is abnormal, the motor control unit 24 starts the drive target (output shaft 17) measured by the second measurement unit 22 at the time of system startup. The motor 11 is controlled so as to correct the deviation between the position measurement value and the initial position measurement value stored in the second storage area 26.

この構成によれば、第1の記憶領域25から初期位置測定値が読み出せなくなっても、第2の記憶領域26から初期位置測定値を読み出してモータ11を制御することができる。 According to this configuration, even if the initial position measurement value cannot be read from the first storage area 25, the motor 11 can be controlled by reading the initial position measurement value from the second storage area 26.

本実施形態に記載の電子制御装置20において、モータ制御部24は、システム動作中にモータ回転角から測定された駆動対象(出力軸17)の移動距離を、第2の記憶領域26に記憶された初期位置測定値から第2の測定部22で測定された位置測定値までの駆動対象(出力軸17)の移動距離に一致させるようにモータ11を制御する。 In the electronic control device 20 according to the present embodiment, the motor control unit 24 stores the moving distance of the drive target (output shaft 17) measured from the motor rotation angle during system operation in the second storage area 26. The motor 11 is controlled so as to match the moving distance of the drive target (output shaft 17) from the initial position measurement value to the position measurement value measured by the second measuring unit 22.

この構成によれば、システム動作中に電源の瞬断やメモリ異常等によってシステム動作中にモータ回転角を喪失した際も速やかに初期位置を特定することができる。 With this configuration, it is possible to quickly specify the initial position even when the motor rotation angle is lost during system operation due to a momentary power failure or memory abnormality during system operation.

以上、本発明の実施形態について詳述したが、本発明は、前記の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の精神を逸脱しない範囲で、種々の設計変更を行うことができるものである。例えば、前記した実施の形態は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施形態の構成の一部を他の実施形態の構成に置き換えることが可能であり、また、ある実施形態の構成に他の実施形態の構成を加えることも可能である。さらに、各実施形態の構成の一部について、他の構成の追加・削除・置換をすることが可能である。 Although the embodiments of the present invention have been described in detail above, the present invention is not limited to the above-described embodiments, and various designs can be made without departing from the spirit of the present invention described in the claims. It is something that can be changed. For example, the above-described embodiments have been described in detail in order to explain the present invention in an easy-to-understand manner, and are not necessarily limited to those having all the configurations described. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment. Furthermore, it is possible to add/delete/replace other configurations with respect to a part of the configurations of the respective embodiments.

10 車両制御システム(システム)
11 モータ
13 回転センサ
17 出力軸(駆動対象)
18 位置センサ
19 位置センサ
20 電子制御装置(モータ制御部)
21 第1の測定部
22 第2の測定部
24 モータ制御部
25 第1の記憶領域
26 第2の記憶領域
27 診断部
10 Vehicle control system (system)
11 Motor 13 Rotation Sensor 17 Output Shaft (Drive Target)
18 Position Sensor 19 Position Sensor 20 Electronic Control Device (Motor Control Unit)
21 1st measurement part 22 2nd measurement part 24 Motor control part 25 1st storage area 26 2nd storage area 27 Diagnostic part

Claims (5)

駆動対象を移動させるモータと、前記モータのモータ回転角を検出する回転センサと、前記駆動対象の絶対位置に応じたセンサ値を出力する位置センサと、を備えたシステムを制御する電子制御装置であって、
システム終了直前に前記駆動対象を初期位置に戻すように前記モータを制御するモータ制御部と、
前記回転センサのモータ回転角に基づいてシステム起動時の起動位置を原点にした前記駆動対象の位置測定値を測定する第1の測定部と、
前記位置センサのセンサ値に基づいて初期位置を原点にした前記駆動対象の位置測定値を測定する第2の測定部と、を備えたことを特徴とする電子制御装置。
An electronic control device for controlling a system including a motor for moving a drive target, a rotation sensor for detecting a motor rotation angle of the motor, and a position sensor for outputting a sensor value according to an absolute position of the drive target. There
A motor control unit that controls the motor so as to return the drive target to the initial position immediately before the system ends;
A first measuring unit that measures a position measurement value of the driven object with the starting position at system startup as the origin, based on the motor rotation angle of the rotation sensor;
An electronic control device comprising: a second measurement unit that measures a position measurement value of the driven object with an initial position as an origin based on a sensor value of the position sensor.
システム終了時に初期位置に戻された前記駆動対象の初期位置測定値を記憶する第1の記憶領域を備え、
前記モータ制御部は、システム起動時に前記第2の測定部で測定された前記駆動対象の起動位置測定値と前記第1の記憶領域に記憶された初期位置測定値とのズレを補正するように前記モータを制御することを特徴とする請求項1に記載の電子制御装置。
A first storage area for storing the initial position measurement value of the driven object returned to the initial position when the system ends;
The motor control unit corrects the deviation between the measured starting position of the driven object measured by the second measuring unit and the initial position measured value stored in the first storage area when the system is started. The electronic control device according to claim 1, which controls the motor.
システム組み立て時に初期位置に調整された前記駆動対象の初期位置測定値を記憶した第2の記憶領域を備え、
前記モータ制御部は、システム起動時に前記第2の測定部で測定された前記駆動対象の起動位置測定値と前記第2の記憶領域に記憶された初期位置測定値とのズレを補正するように前記モータを制御することを特徴とする請求項2に記載の電子制御装置。
A second storage area storing the initial position measurement value of the driven object adjusted to the initial position when the system is assembled,
The motor control unit corrects the deviation between the measured start position value of the drive target measured by the second measurement unit and the initial position measurement value stored in the second storage area when the system is started. The electronic control device according to claim 2, which controls the motor.
システム起動時に前記第1の記憶領域の初期位置測定値の記憶状態を診断する診断部を備え、
前記診断部の診断結果が正常な場合に、前記モータ制御部は、システム起動時に前記第2の測定部で測定された前記駆動対象の起動位置測定値と前記第1の記憶領域に記憶された初期位置測定値とのズレを補正するように前記モータを制御し、
前記診断部の診断結果が異常な場合に、前記モータ制御部は、システム起動時に前記第2の測定部で測定された前記駆動対象の起動位置測定値と前記第2の記憶領域に記憶された初期位置測定値とのズレを補正するように前記モータを制御することを特徴とする請求項3に記載の電子制御装置。
A diagnostic unit for diagnosing the storage state of the initial position measurement value of the first storage area at system startup,
When the diagnosis result of the diagnosis unit is normal, the motor control unit stores the start position measurement value of the drive target measured by the second measurement unit at system startup and the first storage area. Control the motor to correct the deviation from the initial position measurement value,
When the diagnosis result of the diagnosis unit is abnormal, the motor control unit stores the start position measurement value of the drive target measured by the second measurement unit at the time of system startup and the second storage area. The electronic control device according to claim 3, wherein the motor is controlled so as to correct the deviation from the initial position measurement value.
前記モータ制御部は、システム動作中にモータ回転角から測定された前記駆動対象の移動距離を、前記第2の記憶領域に記憶された初期位置測定値から前記第2の測定部で測定された位置測定値までの前記駆動対象の移動距離に一致させるように前記モータを制御することを特徴とする請求項4に記載の電子制御装置。 The motor control unit measures the moving distance of the driven object measured from the motor rotation angle during system operation by the second measurement unit from the initial position measurement value stored in the second storage area. The electronic control device according to claim 4, wherein the motor is controlled so as to match a movement distance of the drive target up to a position measurement value.
JP2018215311A 2018-11-16 2018-11-16 Electronic control device Pending JP2020088928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018215311A JP2020088928A (en) 2018-11-16 2018-11-16 Electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018215311A JP2020088928A (en) 2018-11-16 2018-11-16 Electronic control device

Publications (1)

Publication Number Publication Date
JP2020088928A true JP2020088928A (en) 2020-06-04

Family

ID=70909239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018215311A Pending JP2020088928A (en) 2018-11-16 2018-11-16 Electronic control device

Country Status (1)

Country Link
JP (1) JP2020088928A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220321038A1 (en) * 2021-03-31 2022-10-06 Minebea Mitsumi Inc. Rotating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220321038A1 (en) * 2021-03-31 2022-10-06 Minebea Mitsumi Inc. Rotating device

Similar Documents

Publication Publication Date Title
JP5720765B2 (en) Encoder system and signal processing method
US10259121B2 (en) Robot apparatus, and measuring method of rotation driving apparatus
JP5400473B2 (en) Robot equipment
KR101363665B1 (en) Abnormality diagnosing method for torque detecting device and electric power steering device
JP6754743B2 (en) In-vehicle electronic control unit and its abnormal processing method
US20080210033A1 (en) Shift control system, shift control method, and shift switching device
JP6512268B2 (en) Steering angle detection device for vehicle and electric power steering device equipped with the same
US7375487B2 (en) Geared motor
US11307057B2 (en) Encoder abnormality detection method
KR20170064609A (en) Failure dignosis method for vehicle
JP2010101741A (en) Temperature measuring circuit, encoder system and temperature measuring method
JP2008148412A (en) Motor control device
US8798861B2 (en) Electric power steering apparatus
US11708896B2 (en) Shift range control device
US20170197655A1 (en) Control apparatus and control method of on-vehicle electronic equipment
JP6879776B2 (en) Rotation control device
JP2005180653A (en) Abnormality diagnostic device of motor driving system
US20190308316A1 (en) Robot system for performing learning control by using motor encoder and sensor
JP2006271189A (en) Gear motor
US20190386590A1 (en) Drive device for correcting angular deviation between shafts
JP2020088928A (en) Electronic control device
US11130232B2 (en) Robot system
JP4229823B2 (en) Gear breakage detection device and gear breakage detection method
CN112682504B (en) Gear position identification method, device and system and automobile
KR20170005225A (en) Failure diagnosis method for hall sensor of vehicle