Method for diagnosing abnormality in rotational angle detection device, and rotational angle detection device
The method simplifies the detection of abnormalities in rotation angle detection devices by converting analog signals to digital formats and comparing synchronized motor rotation angles, enhancing accuracy and preventing motor malfunctions.
Patent Information
- Application Number
- JP2023022008
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
AI Technical Summary
Existing rotation angle detection devices face complexity in determining abnormalities due to the synchronization and conversion of analog signals from multiple sensors, leading to a cumbersome configuration.
A method involving a resolver that outputs analog signals, which are converted into digital signals by an RD converter and AD converter, allowing for the detection of motor rotation angles and comparison between first and second angles to diagnose abnormalities without requiring multiple sensors.
This approach simplifies the configuration by converting analog signals into digital formats, enabling accurate diagnosis of abnormalities in the rotation angle detection device, preventing motor malfunctions by comparing synchronized motor rotation angles.
Smart Images

Figure 2024116026000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a method for diagnosing an abnormality in a rotation angle detection device and to a rotation angle detection device. [Background technology]
[0002] Patent Document 1 discloses a rotation angle detection device equipped with multiple rotation angle sensors. In this rotation angle detection device, the analog signals output by each rotation angle sensor are synchronized and converted into analog form, and the converted digital signals are compared to determine whether there is an abnormality in the rotation angle detection device. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6555062 Summary of the Invention [Problem to be solved by the invention]
[0004] The rotation angle detection device described in Patent Document 1 has a configuration in which analog signals output by multiple rotation angle sensors are synchronized and acquired by multiple AD converters, and a controller compares the digital signals converted by the multiple AD converters to determine whether there is an abnormality within the rotation angle detection device, which has the problem of making the configuration complicated.
[0005] The present invention has been made in consideration of the above-mentioned problems, and has an object to provide a method for diagnosing an abnormality in a rotation angle detection device, and a rotation angle detection device, which can more accurately determine abnormality in the rotation angle detection device. [Means for solving the problem]
[0006] According to one aspect of the present invention, there is provided a method for diagnosing an abnormality in a rotation angle detection device including a rotation angle sensor that detects a rotation state of a motor and outputs analog signals, a sine signal, a cosine signal, and an excitation voltage, in accordance with the rotation state of the motor, an angle detector that converts the sine signal and the cosine signal output from the rotation angle sensor into digital signals including rotation angle information of the motor and outputs an excitation signal based on the excitation voltage, and AD conversion means that converts the sine signal and the cosine signal output by the rotation angle sensor into sin and cosine digital signals, respectively. This method for diagnosing an abnormality in the rotation angle detection device detects a first rotation angle of the motor based on the digital signal converted by the angle detector, detects a second rotation angle of the motor based on the sine digital signal and the cosine digital signal converted by the AD conversion means and the excitation signal, and compares the first rotation angle with the second rotation angle, thereby diagnosing an abnormality in the rotation angle detection device. Effect of the Invention
[0007] According to the present invention, an analog signal output from a rotation angle sensor is converted by an angle detector and an AD conversion means into a digital signal and an excitation signal, and a sine and cosine digital signal, respectively. Then, a first rotation angle of the motor detected based on the digital signal converted by the angle detector is compared with a second rotation angle of the motor detected based on the sine digital signal and the cosine digital signal converted by the AD conversion means and the excitation signal converted by the angle detector, to diagnose an abnormality in the rotation angle detection device. That is, an analog signal output from one rotation angle sensor is converted by the angle detector and the AD conversion means, respectively, and the rotation angles of the motor are detected and compared, so that an abnormality in the rotation angle detection device can be diagnosed with a simple configuration without using multiple rotation angle sensors. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a schematic diagram of a rotation angle detection device common to all the embodiments. [Diagram 2] FIG. 2 is a timing chart illustrating the timing of acquiring the R / D converted digital signal and the AD converted value. [Diagram 3] FIG. 3 is a flowchart illustrating synchronization control in the rotation angle detection device of the first embodiment. [Figure 4] FIG. 4 is a timing chart illustrating the timing of acquiring the R / D converted digital signal and the AD converted value in the rotation angle detection device of the second embodiment. [Diagram 5] FIG. 5 is a timing chart illustrating the timing of acquiring the R / D converted digital signal and the AD converted value in the rotation angle detection device of the third embodiment. [Figure 6] FIG. 6 is a timing chart illustrating the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device of the fourth embodiment. [Figure 7] FIG. 7 is a timing chart illustrating the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device of the fifth embodiment. [Figure 8] FIG. 8 is a timing chart illustrating the acquisition timing of the AD converted value in the rotation angle detection device of the sixth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0010] [First embodiment] 1 is a schematic diagram of a rotation angle detection device 100 that employs a method for diagnosing an abnormality in a rotation angle detection device according to each embodiment of the present invention. The rotation angle detection device 100 is a device that includes a resolver (rotation angle sensor) 1 that detects the rotation state of a motor and outputs an analog signal, and a controller 20 that converts the analog signal from the resolver (rotation angle sensor) 1 into a digital signal to detect the rotation angle of the motor and control the motor based on the rotation angle.
[0011] The controller 20 is equipped with a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM) and an input / output interface (I / O interface), and the central processing unit executes specific programs to perform processing to realize specific controls.
[0012] As shown in FIG. 1, the controller 20 includes an RD converter (angle detector) 2, an AD converter (AD conversion means) 3, a clock supply unit 4, a first rotation angle acquisition unit (first rotation state detection means) 5, an AD conversion value acquisition unit (second rotation state detection means) 6, a second rotation angle acquisition unit (second rotation state detection means) 7, an angle acquisition synchronization unit 8, a main control unit 9, an abnormality detection unit (abnormality detection means) 10, and a motor control signal cut-off unit 11.
[0013] The resolver (rotation angle sensor) 1, the RD converter (angle detector) 2, and the AD converter (AD conversion means) 3 are configured as hardware. Meanwhile, the clock supply unit 4, the first rotation angle acquisition unit (first rotation state detection means) 5, the AD conversion value acquisition unit (second rotation state detection means) 6, the second rotation angle acquisition unit (second rotation state detection means) 7, the angle acquisition synchronization unit 8, the main control unit 9, the abnormality detection unit (abnormality detection means) 10, and the motor control signal cutoff unit 11 are realized by the central processing unit through software. Also, the microcomputer of the controller 20 includes a plurality of timers (first reference timer, second reference timer, and common timer) for defining the timing for detecting (obtaining) the rotation angle of the motor. Although the RD converter 2 and the AD converter 3 are configured as hardware, it is also possible to change the configuration so that the central processing unit realizes these functions through software, or to configure some of the functions realized by the central processing unit through software through hardware.
[0014] A resolver (rotation angle sensor) 1 is disposed near a motor (not shown) and detects the rotation state of the motor. The resolver 1 outputs a sine signal and a cosine signal, which are analog signals corresponding to the detected rotation state of the motor, to an RD converter (angle detector) 2 and an AD converter (AD conversion means) 3, and outputs an excitation voltage to the RD converter (angle detector) 2.
[0015] The RD converter (angle detector) 2 converts the sine signal and cosine signal output from the resolver 1 into a digital signal including motor rotation angle (rotation angle) information, and outputs it to a first rotation angle acquisition unit (first rotation state detection means) 5. The RD converter 2 also sets an excitation signal based on the excitation voltage output from the resolver 1, and outputs it to an AD conversion value acquisition unit (second rotation state detection means) 6.
[0016] The AD converter (AD conversion means) 3 converts the sine signal and the cosine signal output from the resolver 1 into a sine digital signal and a cosine digital signal, respectively. The AD-converted sine digital signal and the cosine digital signal are output to an AD conversion value acquisition unit 6.
[0017] The clock supply unit 4 supplies the RD converter 2 with a reference clock for operating the RD converter 2. The RD converter 2 acquires analog signals (sine signal, cosine signal, and excitation voltage) from the resolver 1 in accordance with the reference clock supplied from the clock supply unit 4, and outputs a digital signal.
[0018] The first rotation angle acquisition unit (first rotation state detection means) 5 detects (acquires) the rotation angle of the motor (first rotation angle, hereinafter also referred to as Digital θ) based on a digital signal including motor rotation angle information converted by the RD converter (angle detector) 2. The first rotation angle acquisition unit 5 acquires the first rotation angle (Digital θ) at a timing according to an angle acquisition synchronization signal input from an angle acquisition synchronization unit 8 described below. The acquired first rotation angle (Digital θ) is output to a main control unit 9 and an abnormality detection unit (abnormality detection means) 10.
[0019] The AD conversion value acquisition unit 6 acquires the sin digital signal and cos digital signal AD converted by the AD converter 3 in accordance with the timing of the excitation signal output from the RD converter 2, and outputs them to a second rotation angle acquisition unit (second rotation state detection means) 7.
[0020] The second rotation angle acquisition unit 7 detects (acquires) the rotation angle of the motor (second rotation angle, hereinafter also referred to as Analog θ) based on the sine digital signal and cosine digital signal output from the AD conversion value acquisition unit 6. That is, the AD conversion value acquisition unit 6 and the second rotation angle acquisition unit 7 constitute a rotation state detection means (second rotation state detection means) that detects the second rotation angle (Analog θ) of the motor based on the sine digital signal, the cosine digital signal and the excitation signal. The second rotation angle (Analog θ) of the motor acquired by the second rotation angle acquisition unit 7 is output to the abnormality detection unit (abnormality detection means) 10.
[0021] The angle acquisition synchronization unit 8 generates an angle acquisition synchronization signal for synchronizing the timing at which the first rotation angle acquisition unit 5 acquires the rotation angle of the motor (first rotation angle) with the timing at which the second rotation angle acquisition unit 7 acquires the rotation angle of the motor (second rotation angle). The angle synchronization signal generated by the angle acquisition synchronization unit 8 is output to the first rotation angle acquisition unit 5, and the first rotation angle acquisition unit 5 acquires the first rotation angle (Digital θ) at a timing according to the angle acquisition synchronization signal. Details of the acquisition timing of the first rotation angle and the second rotation angle will be described later.
[0022] The main control unit 9 calculates a motor control signal based on the first rotation angle (Digital θ) acquired by the first rotation angle acquisition unit 5 , and outputs the calculated motor control signal to the motor control signal cutoff unit 11 .
[0023] The abnormality detection unit (abnormality detection means) 10 compares the value of the first rotation angle (Digital θ) with the value of the second rotation angle (Analog θ) to detect an abnormality in the rotation angle detection device 100. The abnormality detection unit 10 calculates a diagnosis result signal according to the difference between the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) and outputs it to the motor control signal cutoff unit 11. For example, when the difference between Digital θ and Analog θ is greater than the error range, the abnormality detection unit 10 judges that there is an abnormality and outputs a diagnosis result signal indicating that there is an abnormality. On the other hand, when the difference between Digital θ and Analog θ is within the error range, the abnormality detection unit 10 judges that there is a normality and outputs a diagnosis result signal indicating that there is a normality.
[0024] Based on the diagnosis result signal from the abnormality detection unit 10, the motor control signal cut-off unit 11 determines whether to pass or cut off the motor control signal output from the main control unit 9. That is, if an abnormality is detected by the abnormality detection unit 10, the motor control signal cut-off unit 11 cuts off the motor control signal. On the other hand, if no abnormality is detected by the abnormality detection unit 10 (normal), the motor control signal cut-off unit 11 passes the motor control signal. If the motor control signal cut-off unit 11 passes the motor control signal, the operation of the motor is controlled based on the motor control signal. On the other hand, if an abnormality is detected, the motor control signal is cut off, thereby preventing malfunction of the motor.
[0025] As described above, in the rotation angle detection device 100 of this embodiment, an analog signal output from one resolver (rotation angle sensor) 1 is RD converted and AD converted by the RD converter (angle detector) 2 and the AD converter (AD conversion means) 3, respectively, to detect the rotation angles (digital θ, analog θ) of the first and second motors, respectively. Then, the first motor rotation angle and the second motor rotation angle are compared to diagnose an abnormality in the rotation angle detection device 100. In this way, the rotation angle detection device 100 of this embodiment can diagnose an abnormality in the rotation angle detection device 100 without using multiple rotation angle sensors.
[0026] The timing of acquiring the first rotation angle (Digital θ) and the second rotation angle (Analog θ) will be described in detail below.
[0027] 2 is a timing chart for explaining the timing of acquiring the R / D converted digital signal and the AD converted values of the sine signal and the cosine signal. The timing of acquiring the first rotation angle and the second rotation angle is synchronized by synchronizing the timing of acquiring the R / D converted digital signal by the first rotation angle acquisition unit 5 with the timing of acquiring the AD converted values of the sine signal and the cosine signal by the second rotation angle acquisition unit 7. Hereinafter, the timing of acquiring the R / D converted digital signal is also referred to as the timing of acquiring the first rotation angle (Digital θ), and the timing of acquiring the AD converted values of the sine signal and the cosine signal is also referred to as the timing of acquiring the second rotation angle (Analog θ).
[0028] The rotation angle detection device 100 includes a first reference timer, a second reference timer, and a common timer. The first reference timer is a timer for determining the timing of acquiring the second rotation angle (Analog θ), and the second reference timer is a timer for determining the timing of acquiring the first rotation angle (Digital θ). The common timer is a timer for measuring the time difference between the operation timings of the first reference timer and the second reference timer, and is, for example, a free-running timer with a period equal to or longer than that of the first and second reference timers.
[0029] The first reference timer is set to operate in synchronization with the period of the excitation signal output from the RD converter 2. The AD converted value acquisition unit 6 outputs AD converted sin digital signals and cos digital signals in accordance with the first reference timer that operates with a period corresponding to the period of the excitation signal, and the second rotation angle acquisition unit 7 periodically acquires a second rotation angle (Analog θ) in accordance with the first reference timer.
[0030] The second reference timer is set to operate with the same clock as the first reference timer. The clock supply unit 4 supplies a reference clock to the RD converter 2 so that the RD converter 2 outputs a digital signal that has been RD converted according to the second reference timer. As a result, the first rotation angle acquisition unit 5 periodically acquires the first rotation angle (Digital θ) according to the second reference timer. As will be described later, the acquisition timing of the first rotation angle (Digital θ) is corrected so as to be synchronized with the acquisition timing of the second rotation angle (Analog θ). A command for this correction is output to the first rotation angle acquisition unit 5 by an angle acquisition synchronization signal from the angle acquisition synchronization unit 8, and the first rotation angle acquisition unit 5 acquires the first rotation angle (Digital θ) at a timing according to the angle acquisition synchronization signal.
[0031] However, the start timing of the first reference timer and the second reference timer is not uniquely determined due to variations in hardware, software processing load, etc. Also, the start timing of the first reference timer cannot be arbitrarily specified because it is determined by the operation of the RD converter 2. For this reason, in many cases, a time difference occurs between the operation timing of the first reference timer and the second reference timer.
[0032] Therefore, in this embodiment, the time difference Δt between the acquisition timing of the second rotation angle (Analog θ) and the acquisition timing of the first rotation angle (Digital θ) is measured, and the period (clock) of the second reference timer is shortened once by that time difference, thereby synchronizing the acquisition timing of the first rotation angle with the acquisition timing of the second rotation angle.
[0033] Specifically, the second rotation angle acquisition unit 7 acquires the count value of the common timer at the same time as acquiring the AD converted value (sine digital signal and cosine digital signal), and sets this as the acquisition timing value t of the second rotation angle (Analog θ). a In addition, the first rotation angle acquisition unit 5 acquires the count value of the common timer at the same time as acquiring the RD converted value (digital signal), and sets this as the acquisition timing value td Then, the angle acquisition synchronization unit 8 sets the acquisition timing value t a and the acquisition timing value t of the first rotation angle (Digital θ) d The period T2 of the second reference timer is shortened by the difference Δt between corr At the same time, the angle acquisition synchronization unit 8 controls the first rotation angle acquisition unit 5 to operate at the corrected second reference timer period T corr The second reference timer outputs an angle acquisition synchronization signal so that the first rotation angle (Digital θ) is acquired at a timing according to the timing. This eliminates the time difference between the acquisition timing of the first rotation angle (Digital θ) and the acquisition timing of the second rotation angle (Analog θ), and the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized. In this way, by shortening the period of the second reference timer once by the time difference Δt, the difference in the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is eliminated, and an abnormality in the rotation angle detection device 100 can be determined more accurately.
[0034] 3 is a flowchart for explaining a control (hereinafter also referred to as a synchronization control) for synchronizing the timing of acquiring the second rotation angle (Analog θ) with the timing of acquiring the first rotation angle (Digital θ). The following controls are all executed by the controller 20.
[0035] In step S11, the controller 20 sets the clock of each timer. The first reference timer is set to operate in synchronization with the period of the excitation signal output from the RD converter 2. For example, the first reference timer is operated so as to be cleared to zero in synchronization with the zero crossing of the excitation signal. The second reference timer is set to operate with the same clock as the first reference timer. The common timer is set to have a longer period than the first and second reference timers.
[0036] In step S12, the controller 20 detects the acquisition timing of the second rotation angle (Analog θ). As described above, the AD converter 3 and the AD conversion value acquisition unit 6 periodically AD convert the sine signal and the cosine signal in accordance with the first reference timer and acquire the AD conversion values (sine digital signal and cosine digital signal). The second rotation angle acquisition unit 7 calculates the second rotation angle (Analog θ) based on the AD conversion value. Then, at the same time as acquiring the AD conversion value, the controller 20 (AD conversion value acquisition unit 6) acquires the count value of the common timer, for example, by DMA transfer, and determines this as the acquisition timing value t of the second rotation angle (Analog θ). a Let us assume that.
[0037] The second rotation angle (Analog θ) is calculated by the following formula (1) using the inverse trigonometric function atan. The AD conversion value may be acquired at any timing of the first reference timer as long as it is acquired at the cycle of the first reference timer.
number
[0038] In step S13, the controller 20 detects the acquisition timing of the first rotation angle (Digital θ). As described above, the RD converter 2 converts the sine signal and the cosine signal into an RD signal, and the first rotation angle acquisition unit 5 calculates the first rotation angle (Digital θ) based on the RD converted digital signal. Here, the first rotation angle (Digital θ) is assumed to be ABZθ calculated based on an ABZ pulse consisting of an AB pulse indicating a relative angle and a Z pulse indicating a reference angle output from the RD converter 2, for example. In this case, the first rotation angle acquisition unit 5 acquires an ABZ pulse value from a register storing the ABZ pulse, for example by DMA transfer, in synchronization with the zero clear timing of the second reference timer, and calculates ABZθ from the ABZ pulse value. In addition, the first rotation angle acquisition unit 5 acquires the count value of the common timer, for example by DMA transfer, at the same time as acquiring the ABZ pulse value, and calculates this as the acquisition timing value t of the first rotation angle (Digital θ). d Let us assume that.
[0039] In step S14, the controller 20 (angle acquisition synchronization unit 8) synchronizes the acquisition timing value t a and the acquisition timing value t of the first rotation angle (Digital θ) d This makes it possible to obtain a time difference Δt between the acquisition timing of the second rotation angle (Analog θ) and the acquisition timing of the first rotation angle (Digital θ). The controller 20 (angle acquisition synchronization unit 8) calculates the difference between the acquisition timing value t d and the acquisition timing value t of the second rotation angle (Analog θ) a The time difference Δt is calculated by determining which of the two is larger and subtracting the smaller one from the larger one. In FIG. 2, the acquisition timing value t d The second rotation angle (Analogθ) acquisition timing value t a The figure shows the case where θ is larger than θ.
[0040] After calculating the time difference Δt, in step S15, the controller 20 (angle acquisition synchronization unit 8) calculates a correction time t corr Calculate the correction time t corr is the acquisition timing value t of the first rotation angle (Digital θ) d and the acquisition timing value t of the second rotation angle (Analogθ) a The time difference Δt between the first rotation angle (Digital θ) and the period T2 of the second reference timer is calculated by a remainder operation (Mod) of the difference Δt between the first rotation angle (Digital θ) and the period T2 of the second reference timer. d The second rotation angle (Analogθ) acquisition timing value t a If it is greater than t corr is calculated by the following formula (2).
number
[0041] On the other hand, the acquisition timing value t a The acquisition timing value t d If it is greater than t corr is calculated using the following formula (3).
number
[0042] Correction time t corr After calculating the period T2, in step S16, the controller 20 corrects the period T2 of the second reference timer to synchronize the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). corr The second reference timer is adjusted once for the period T2 of the second reference timer as a correction time t corr The correction period T has been shortened by 1 minute. corr Here, the correction period T corr is calculated by the following formula (4).
number
[0043] The second reference timer is set once for the correction period T corr By operating in this manner, the time difference between the timing of acquiring the first rotation angle (Digital θ) and the timing of acquiring the second rotation angle (Analog θ) is eliminated, and the timing of acquiring the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized.
[0044] When the timing of acquiring the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is synchronized, the controller 20 starts the second reference timer at a correction period T corrThe first reference timer and the second reference timer are operated by the same clock, so by returning the period of the second reference timer to the original period T2, there is no time difference between the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). Therefore, when detecting an abnormality in the rotation angle detection device 100, the abnormality detection unit 10 can directly compare the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) without correcting the angle difference due to the time difference in the acquisition timing. Therefore, the accuracy of calculating the difference between the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is improved, misdiagnosis and misdetection of rotation angle abnormality are prevented, and the abnormality of the rotation angle detection device 100 can be determined more accurately.
[0045] Preferably, the above-described synchronization control is performed before the start of calculations in the main control unit 9 and the abnormality detection unit 10. This shortens the period of the second reference timer, thereby preventing the main control unit 9 and the abnormality detection unit 10 from completing their calculations within the period and causing a breakdown in the processing load.
[0046] According to the rotation angle detection device 100 and the method for diagnosing an abnormality in the rotation angle detection device 100 of the first embodiment described above, the following effects can be obtained.
[0047] According to the method for diagnosing an abnormality in the rotation angle detection device 100 of this embodiment, an analog signal output from a resolver (rotation angle sensor) 1 is converted by an RD converter (angle detector) 2 into a digital signal including rotation angle information of the motor and an excitation signal, and then converted by an AD converter (AD conversion means) 3 into sin and cos digital signals. A first rotation angle of the motor is detected based on the digital signal converted by the RD converter (angle detector) 2, and a second rotation angle of the motor is detected based on the sin digital signal and the cos digital signal converted by the AD converter (AD conversion means) 3 and the excitation signal. Then, the first rotation angle of the motor is compared with the second rotation angle of the motor to diagnose an abnormality in the rotation angle detection device 100. That is, since an analog signal output from one resolver (rotation angle sensor) 1 is converted by the RD converter (angle detector) 2 and the AD converter (AD conversion means) 3, respectively, and the rotation angles of the motor are detected and compared, an abnormality in the rotation angle detection device 100 can be diagnosed without using multiple rotation angle sensors.
[0048] According to the method for diagnosing an abnormality of the rotation angle detection device 100 of this embodiment, the second rotation angle (Analog θ) is periodically acquired according to a first reference timer that operates with a clock corresponding to the period of the excitation signal, and the first rotation angle (Digital θ) is periodically acquired according to a second reference timer that operates with the same clock as the first reference timer, and the time difference Δt between the acquisition timing of the second rotation angle and the acquisition timing of the first rotation angle is measured. Then, the clock of the second reference timer is shortened once by the time difference Δt to synchronize the acquisition timing of the first rotation angle and the acquisition timing of the second rotation angle. In this way, by shortening the clock of the second reference timer once by the time difference Δt, the difference between the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is eliminated, and the abnormality of the rotation angle detection device 100 can be determined more accurately.
[0049] The rotation angle detection device 100 of this embodiment includes a first rotation angle acquisition unit (first rotation state detection means) 5 that detects a first rotation angle (Digital θ) of the motor based on a digital signal converted by an RD converter (angle detector) 2. The rotation angle detection device 100 also includes a second rotation angle acquisition unit (second rotation state detection means) 7 that detects a second rotation angle (Analog θ) of the motor based on a sine digital signal and a cosine digital signal converted by an AD converter (AD conversion means) 3 and an excitation signal. The rotation angle detection device 100 also includes an abnormality detection unit (abnormality detection means) 10 that detects an abnormality of the rotation angle detection device 100 by comparing the first rotation angle (Digital θ) with the second rotation angle (Analog θ), and a motor control signal cutoff unit 11 that cuts off a motor control signal when an abnormality is detected by the abnormality detection unit (abnormality detection means) 10. This makes it possible to diagnose an abnormality in the rotation angle detection device 100 without using multiple rotation angle sensors, and when an abnormality is detected, the motor control signal is cut off. Therefore, an abnormality in the rotation angle detection device 100 can be determined more accurately, and malfunction of the motor can be prevented.
[0050] In this embodiment, the first rotation angle (Digital θ) is ABZθ, but the present invention is not limited to this. For example, the first rotation angle (Digital θ) may be Serial θ acquired based on communication data including rotation angle information output from the RD converter 2 by serial communication. In this case, if an angle latch signal is necessary for the RD converter 2 to latch the Serial θ, the angle latch signal is output from the RD converter 2 by, for example, DMA transfer at the timing of acquiring the first rotation angle (Digital θ), and the pre-latched Serial θ is acquired by serial communication performed thereafter. In addition, if the time required for serial communication causes a delay in the start timing of the calculation in the main control unit 9 and the abnormality detection unit 10, and there is a risk of affecting the processing load and causing the processing load to collapse, the Serial θ may be acquired in the next calculation task from the serial communication receiving register in which the reception result of the serial communication is stored, and compared with the second rotation angle (Analog θ) acquired in the previous calculation task. That is, an abnormality may be detected by comparing the acquired Serial θ (first rotation angle (Digital θ)) with the second rotation angle (Analog θ) acquired in the previous calculation task (one cycle before). In this case, the time difference between the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) to be compared may be compared after performing a calculation to correct it from, for example, the rotation speed of the motor rotation angle.
[0051] [Second embodiment] A method of diagnosing an abnormality in the rotation angle detection device 100 of the second embodiment will be described with reference to Fig. 4. Note that the same elements as those in the first embodiment are given the same reference numerals, and the description thereof will be omitted.
[0052] 4 is a timing chart explaining the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device 100 of the second embodiment. In this embodiment, the method of synchronizing the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is different from the first embodiment.
[0053] As shown in FIG. 4, in this embodiment, the time difference Δt between the acquisition timing of the second rotation angle (Analog θ) and the acquisition timing of the first rotation angle (Digital θ) is measured, and the period (clock) of the second reference timer is extended once by the time difference Δt, thereby synchronizing the acquisition timing of the first rotation angle with the acquisition timing of the second rotation angle.
[0054] Specifically, the controller 20 calculates a correction time t from a time difference Δt between the acquisition timing of the second rotation angle (Analog θ) and the acquisition timing of the first rotation angle (Digital θ). corr Then, the second reference timer is adjusted once to obtain a correction time t corr The correction period T2 of the second reference timer is extended by the amount of corr This eliminates the time difference between the acquisition timing of the first rotation angle (Digital θ) and the acquisition timing of the second rotation angle (Analog θ), and the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized. Here, the correction period T corr is calculated by the following formula (5). As shown in formula (5), the correction period T corr is a correction time t for twice the period T2 of the second reference timer. corr It can be calculated by shortening the
number
[0055] When the timing of acquiring the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is synchronized, the controller 20 sets the second reference timer to a correction period T corris returned to the original period T2 before it was set. As a result, there will continue to be no time difference between the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). Therefore, it is possible to diagnose an abnormality in the rotation angle detection device 100 by directly comparing the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) without correcting the angle difference due to the time difference in the acquisition timing. This improves the accuracy of calculating the difference between the first rotation angle (Digital θ) and the second rotation angle (Analog θ), prevents erroneous diagnosis and detection of rotation angle abnormality, and allows for more accurate determination of an abnormality in the rotation angle detection device 100.
[0056] Preferably, the synchronization control in the second embodiment described above is performed before the start of calculations in the main control unit 9 and the abnormality detection unit 10. This prevents the need to consider adding correction calculations and the like due to the longer period T2 of the second reference timer, which destroys the constancy of the calculation period in the main control unit 9 and the abnormality detection unit 10 and destroys the premise of the calculation that the timer period is constant.
[0057] [Third embodiment] A method of diagnosing an abnormality in the rotation angle detection device 100 of the third embodiment will be described with reference to Fig. 5. Note that the same elements as those in the other embodiments are given the same reference numerals, and the description thereof will be omitted.
[0058] 5 is a timing chart illustrating the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device 100 of the third embodiment. In this embodiment, the method of synchronizing the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is different from the other embodiments.
[0059] As shown in FIG. 5, in this embodiment, the second reference timer is cleared in accordance with the timing of acquiring the second rotation angle (Analog θ), thereby synchronizing the timing of acquiring the first rotation angle with the timing of acquiring the second rotation angle.
[0060] Specifically, the controller 20 (AD conversion value acquisition unit 6) acquires the count value of the common timer by, for example, DMA transfer at the same time as acquiring the AD conversion value, and sets this as the acquisition timing value t a In addition, at the same time as acquiring the AD conversion value, the second reference timer is cleared to zero, for example, by DMA transfer. This eliminates the time difference between the acquisition timing of the first rotation angle (Digital θ) and the acquisition timing of the second rotation angle (Analog θ), and the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized.
[0061] Since the first reference timer and the second reference timer operate on the same clock, after the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized by clearing the second reference timer to zero, there continues to be no time difference between the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). Therefore, it is possible to diagnose an abnormality in the rotation angle detection device 100 by directly comparing the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) without correcting the angle difference due to the time difference in the acquisition timing. Therefore, the calculation accuracy of the difference between the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is improved, erroneous diagnosis and detection of rotation angle abnormality is prevented, and an abnormality in the rotation angle detection device 100 can be determined more accurately.
[0062] [Fourth embodiment] A method of diagnosing an abnormality in the rotation angle detection device 100 of the fourth embodiment will be described with reference to Fig. 6. Note that the same elements as those in the other embodiments are given the same reference numerals, and the description thereof will be omitted.
[0063] 6 is a timing chart illustrating the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device 100 of the fourth embodiment. In this embodiment, the method of synchronizing the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is different from the other embodiments.
[0064] As shown in FIG. 6, in this embodiment, the second reference timer is started in synchronization with the acquisition timing of the second rotation angle (Analog θ), thereby synchronizing the acquisition timing of the first rotation angle with the acquisition timing of the second rotation angle.
[0065] Specifically, the controller 20 (AD conversion value acquisition unit 6) acquires an AD conversion value in a state in which the operation of the second reference timer is not started, and at the same time as acquiring the AD conversion value, acquires the count value of the common timer by, for example, DMA transfer, and sets this as the acquisition timing value t of the second rotation angle (Analog θ). a At the same time as acquiring the AD converted value, the second reference timer is started to operate, for example, by DMA transfer. This eliminates the time difference between the acquisition timing of the first rotation angle (Digital θ) and the acquisition timing of the second rotation angle (Analog θ), and the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized.
[0066] Since the first reference timer and the second reference timer operate on the same clock, the operation of the second reference timer is started in accordance with the acquisition timing of the second rotation angle (Analog θ), and after the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized, there continues to be no time difference between the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). Therefore, it is possible to diagnose an abnormality in the rotation angle detection device 100 by directly comparing the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) without correcting the angle difference due to the time difference in the acquisition timing. Therefore, the calculation accuracy of the difference between the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is improved, erroneous diagnosis and detection of rotation angle abnormality is prevented, and the abnormality in the rotation angle detection device 100 can be determined more accurately.
[0067] [Fifth embodiment] A method of diagnosing an abnormality in the rotation angle detection device 100 of the fifth embodiment will be described with reference to Fig. 7. Note that the same elements as those in the other embodiments are given the same reference numerals, and the description thereof will be omitted.
[0068] 7 is a timing chart illustrating the acquisition timing of the R / D converted digital signal and the AD converted value in the rotation angle detection device 100 of the fifth embodiment. In this embodiment, the method of synchronizing the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is different from the other embodiments.
[0069] As shown in FIG. 7, in this embodiment, the time difference Δt between the acquisition timing of the second rotation angle (Analog θ) and the acquisition timing of the first rotation angle (Digital θ) is measured, and the second reference timer is started with a delay of the time difference Δt, thereby synchronizing the acquisition timing of the first rotation angle with the acquisition timing of the second rotation angle.
[0070] Specifically, the controller 20 (AD conversion value acquisition unit 6) acquires the count value of the common timer by, for example, DMA transfer at the same time as acquiring the AD conversion value, and sets this as the acquisition timing value t a In addition, the count value of the common timer is acquired at the same time as the RD conversion value (digital signal) is acquired, and this is set as the acquisition timing value t d However, at this time, the second reference timer is not started. Next, the controller 20 sets the acquisition timing value t a and the acquisition timing value t of the first rotation angle (Digital θ) d Similarly to the first embodiment, the controller 20 calculates the difference Δt between the correction time t corr and the correction time t corr Based on this, the correction period T corr Then, the controller 20 calculates the correction period T corr The timing of calculation (t d ) to obtain the correction period T corrAfter the (timer wait time) has elapsed, the second reference timer is started to operate. This eliminates the time difference between the acquisition timing of the first rotation angle (Digital θ) and the acquisition timing of the second rotation angle (Analog θ), and the acquisition timing of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized.
[0071] Since the first reference timer and the second reference timer operate on the same clock, after the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ) are synchronized by delaying the start of the operation of the second reference timer, there continues to be no time difference between the acquisition timings of the first rotation angle (Digital θ) and the second rotation angle (Analog θ). Therefore, it is possible to diagnose an abnormality in the rotation angle detection device 100 by directly comparing the value of the first rotation angle (Digital θ) and the value of the second rotation angle (Analog θ) without correcting the angle difference due to the time difference in the acquisition timing. Therefore, the calculation accuracy of the difference between the first rotation angle (Digital θ) and the second rotation angle (Analog θ) is improved, erroneous diagnosis and detection of rotation angle abnormality is prevented, and the abnormality in the rotation angle detection device 100 can be determined more accurately.
[0072] For example, the correction period T corr If the period is less than the time required to execute the process, the correction period T corr In such a case, the process of operating the second reference timer may not be completed within the time period T corr Alternatively, the second reference timer may be started after a time period equal to, for example, the period T2 of the second reference timer has elapsed.
[0073] [Sixth embodiment] A method of diagnosing an abnormality in the rotation angle detection device 100 of the sixth embodiment will be described with reference to Fig. 8. Note that the same elements as those in the other embodiments are given the same reference numerals, and the description thereof will be omitted.
[0074] 8 is a timing chart illustrating the acquisition timing of the AD converted value (second rotation angle) in the rotation angle detection device 100 of the sixth embodiment. In this embodiment, the acquisition timing of the second rotation angle (Analog θ) is different from the other embodiments.
[0075] As shown in FIG. 8, in this embodiment, the AD converted value (second rotation angle (Analog θ)) is calculated based on the zero cross timing t zero The AD conversion value is periodically acquired at a timing delayed by 1 / 4 or 3 / 4 of a cycle from the first rotation angle (FIG. 8 shows a case where the digital signals are periodically acquired at a timing delayed by 1 / 4 of a cycle, but the digital signals may be periodically acquired at a timing delayed by 3 / 4 of a cycle). This makes it possible to acquire the sine and cosine digital signals at the peak where the amplitude of the excitation signal, which is a signal that varies sinusoidally, is the largest, and a large S / N ratio can be obtained as noise resistance. In other words, when the AD conversion value is acquired at a point where the amplitude of the excitation signal, which is a signal that varies sinusoidally, is large, even if the acquisition timing is slightly shifted, the error is smaller than when the AD conversion value is acquired at a point where the amplitude of the excitation signal is small. Therefore, a highly accurate second rotation angle (Analog θ) can be acquired. This further improves the accuracy of abnormality diagnosis of the rotation angle detection device 100.
[0076] In this embodiment, the AD conversion value is acquired at a timing delayed by 1 / 4 or 3 / 4 of a cycle from the zero crossing of the excitation signal, but this is not necessarily limited to this. For example, the timing of acquiring the AD conversion value may be shifted appropriately taking into account hardware delays, the effects of noise, etc.
[0077] In addition, in each embodiment, three timers, namely, a common timer, a first reference timer, and a second reference timer, are used, but the number of timers is not necessarily limited to this. For example, if the timing (trigger) of DMA transfer or AD conversion cannot be realized by only the above three timers, more timers may be used, such as using another timer synchronized with these timers.
[0078] Furthermore, the controls described in each embodiment may be realized by one CPU, or may be realized by multiple CPUs.
[0079] The synchronization control described in the first to fifth embodiments is an example of a method for synchronizing the timing of acquiring the first rotation angle (Digital θ) and the timing of acquiring the second rotation angle (Analog θ), but the synchronization method is not limited to this. That is, the timing of acquiring the first rotation angle (Digital θ) and the timing of acquiring the second rotation angle (Analog θ) may be synchronized using any known method.
[0080] Although the embodiments of the present invention have been described above, the above-mentioned embodiments merely show some of the application examples of the present invention, and it is not intended that the technical scope of the present invention be limited to the specific configurations of the above-mentioned embodiments.
[0081] Although the above-mentioned embodiments have been described as independent embodiments, they may be combined as appropriate. For example, the timing of acquiring the second rotation angle (Analog θ) described in the sixth embodiment is preferably also applied to the method of diagnosing an abnormality in the rotation angle detection device 100 of the first to fifth embodiments. [Explanation of symbols]
[0082] 1, resolver (rotation angle sensor), 2, RD converter (angle detector), 3, AD converter (AD conversion means), 4, clock supply unit, 5, first rotation angle acquisition unit (first rotation state detection means), 6, AD conversion value acquisition unit (second rotation state detection means), 7, second rotation angle acquisition unit (second rotation state detection means), 8, angle acquisition synchronization unit, 9, main control unit, 10, abnormality detection unit (abnormality detection means), 11, motor control signal cutoff unit, 20, controller, 100, rotation angle detection device
Claims
1. A method for diagnosing an abnormality in a rotation angle detection device including a rotation angle sensor that detects a rotation state of a motor and outputs analog signals, a sine signal, a cosine signal, and an excitation voltage, in accordance with the rotation state of the motor, and an angle detector that converts the sine signal and the cosine signal output from the rotation angle sensor into digital signals including rotation angle information of the motor and outputs an excitation signal based on the excitation voltage, comprising: the rotation angle detection device includes an AD conversion means for converting a sine signal and a cosine signal output by the rotation angle sensor into a sine digital signal and a cosine digital signal, respectively; Detecting a first rotation angle of the motor based on the digital signal converted by the angle detector; detecting a second rotation angle of the motor based on the sine digital signal and the cosine digital signal converted by the AD conversion means and the excitation signal; by comparing the first rotation angle with the second rotation angle, a malfunction of the rotation angle detection device is diagnosed. A method for diagnosing an abnormality in a rotation angle detection device.
2. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired according to a first reference timer that operates in accordance with a period of the excitation signal; The first rotation angle is periodically acquired in accordance with a second reference timer that operates at the same cycle as the first reference timer; measuring a time difference between an acquisition timing of the second rotation angle and an acquisition timing of the first rotation angle; shortening the period of the second reference timer once by the time difference, thereby synchronizing the acquisition timing of the first rotation angle with the acquisition timing of the second rotation angle; A method for diagnosing an abnormality in a rotation angle detection device.
3. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired according to a first reference timer that operates in accordance with a period of the excitation signal; The first rotation angle is periodically acquired in accordance with a second reference timer that operates at the same cycle as the first reference timer; measuring a time difference between an acquisition timing of the second rotation angle and an acquisition timing of the first rotation angle; a period of the second reference timer is lengthened once by the time difference, and a timing of acquiring the first rotation angle and a timing of acquiring the second rotation angle are synchronized; A method for diagnosing an abnormality in a rotation angle detection device.
4. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired according to a first reference timer that operates in accordance with a period of the excitation signal; The first rotation angle is periodically acquired in accordance with a second reference timer that operates at the same cycle as the first reference timer; clearing the second reference timer in accordance with a timing at which the second rotation angle is acquired, thereby synchronizing the timing at which the first rotation angle is acquired with the timing at which the second rotation angle is acquired; A method for diagnosing an abnormality in a rotation angle detection device.
5. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired according to a first reference timer that operates at a period corresponding to a period of the excitation signal; The first rotation angle is periodically acquired in accordance with a second reference timer that operates at the same cycle as the first reference timer; starting the second reference timer in accordance with a timing at which the second rotation angle is acquired, and synchronizing the timing at which the first rotation angle is acquired with the timing at which the second rotation angle is acquired; A method for diagnosing an abnormality in a rotation angle detection device.
6. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired according to a first reference timer that operates in accordance with a period of the excitation signal; The first rotation angle is periodically acquired in accordance with a second reference timer that operates at the same cycle as the first reference timer; measuring a time difference between an acquisition timing of the second rotation angle and an acquisition timing of the first rotation angle; starting the second reference timer with a delay of the time difference, thereby synchronizing a timing of acquiring the first rotation angle with a timing of acquiring the second rotation angle; A method for diagnosing an abnormality in a rotation angle detection device.
7. A method for diagnosing an abnormality in the rotation angle detection device according to claim 1, comprising: The second rotation angle is periodically acquired at a timing delayed from a zero crossing of the excitation signal by ¼ or ¾ of a period of the excitation signal. A method for diagnosing an abnormality in a rotation angle detection device.
8. a rotation angle sensor that detects a rotation state of the motor and outputs an analog sine signal, a cosine signal, and an excitation voltage in response to the rotation state; a rotation angle detector that converts the sine signal and the cosine signal output from the rotation angle sensor into a digital signal including rotation angle information of the motor, and outputs an excitation signal based on the excitation voltage, a first rotation state detection means for detecting a first rotation angle of the motor based on the digital signal converted by the angle detector; an AD conversion means for converting the sine signal and the cosine signal output by the rotation angle sensor into sine and cosine digital signals, respectively, and outputting the sine and cosine digital signals; a second rotation state detection means for detecting a second rotation angle of the motor based on the sine digital signal and the cosine digital signal converted by the AD conversion means and the excitation signal; an abnormality detection means for detecting an abnormality in the rotation angle detection device by comparing the first rotation angle with the second rotation angle; a motor control signal cutoff unit that cuts off a motor control signal when an abnormality is detected by the abnormality detection means; Equipped with Rotation angle detection device.
Citation Information
Patent Citations
Rotation Angle Detection Device
JP6555062B2
