Motor driving apparatus
11190122 · 2021-11-30
Assignee
Inventors
Cpc classification
H02P21/50
ELECTRICITY
H02P21/24
ELECTRICITY
International classification
H02P21/00
ELECTRICITY
H02P6/10
ELECTRICITY
Abstract
A torque ripple and a position error caused by an offset error of the current sensor affects an electrical angle frequency of a motor. In an apparatus of the present disclosure, a computation device executes a power spectrum computing process when a three-phase alternating current motor is at a constant speed, and a value obtained by subtracting a position command value from a position detected by a position detector is fast Fourier transformed, to compute a power spectrum of a position error signal at the electrical angle frequency. Then, the computation device executes an offset correction computing process, to evaluate the power spectrum and to update an offset correction amount. By repeatedly executing these processes when the three-phase alternating current motor is driven at a constant speed, the torque ripple and position error caused by the offset error are reduced.
Claims
1. A motor driving apparatus comprising: a current sensor that detects a current supplied to a motor; and a computation device, wherein the computation device is configured to execute: a power spectrum computing process to determine a power spectrum based on an electrical angle and a position error indicative of a difference between a position command value and a rotational angle; an offset correction computing process to compute an offset correction amount of the current sensor based on the power spectrum determined by the power spectrum computing process, an offset timing process to compute a timing of the offset correction and inputs the timing into the offset correction computing process; and the power spectrum computing process includes a process to compute a power spectrum indicative of an electrical angle frequency component of the position error when a rotational speed of the motor is a constant speed.
2. The motor driving apparatus according to claim 1, wherein the offset correction computing process includes: a process to evaluate the power spectrum determined by the power spectrum computing process; a process to update an offset correction amount of the current sensor by an algorithm based on a gradient method; and a process to compute the offset correction amount of the current sensor, which reduces a value of the power spectrum determined by the power spectrum computing process.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) Embodiment(s) of the present disclosure will be described based on the following figures, wherein:
(2)
(3)
(4)
(5)
(6)
DESCRIPTION OF EMBODIMENTS
(7) A torque ripple caused by an offset error of a current sensor and an evaluation method thereof will be briefly described. As a three-phase alternating current motor (motor), an SPM (Surface Permanent Magnet) motor may be employed.
(8) A parameter τ represents a motor torque [N.Math.m], a parameter K.sub.e represents a torque constant [N.Math.m/A], and a parameter i.sub.q represents a q-axis current [A]. A generation formula of torque in this case is as follows.
(9) [Equation 1]
τ=K.sub.e.Math.i.sub.q (1)
(10) In the SPM motor, the torque does not change even when a current is applied to a d axis, and the SPM motor has a characteristic in that the q-axis current i.sub.q and the torque are in a relationship of proportionality.
(11) When a current of U phase, a current of V phase, and a current of W phase are respectively i.sub.u, i.sub.v, and i.sub.w, and an electrical angle is θ.sub.re, the following relationship is true for the q-axis current i.sub.q.
(12)
(13) Here, a case is considered in which, of the U phase, the V phase, and the W phase, current sensors are attached only for the U phase and the W phase. When offset errors of the current sensors of the U phase and the V phase are d.sub.u and d.sub.w, the currents i.sub.u0 and i.sub.wo detected in the U phase and the W phase are respectively i.sub.uo=i.sub.u−d.sub.u and i.sub.wo=i.sub.w−d.sub.w.
(14) In place of attaching a current sensor for the V phase, an estimated value i.sub.vo of the V phase current i.sub.v is determined by the following equation.
(15) [Equation 3]
i.sub.vo=−i.sub.uo−i.sub.wo (3)
(16) An offset error d.sub.v of the V phase current estimation value is described as follows.
(17) [Equation 4]
d.sub.v=−d.sub.u−d.sub.w (4)
(18) From Equation (2), the q-axis current i.sub.q is determined as follows.
(19)
(20) A second term on the right side of Equation (5) shows an error component due to the offset of the current sensor.
(21) If a ripple component of the torque caused by the offset error of the current sensor is described as τ.sub.rip, due to linearity of i.sub.q as shown in Equation (1), the following equation can be obtained.
(22)
(23) Further, using the relationship of Equation (4), Equation (6) can be rewritten in the following form.
(24)
(25) From this equation, it can be seen that τ.sub.rip oscillates at an electrical angle frequency.
(26) Therefore, when the offset correction amounts of the currents detected in the U phase and the W phase are respectively a and b, and a power spectrum of the electrical angle frequency of a position error signal at the time of constant speed driving of the three-phase alternating current motor is P(θ.sub.re), P(θ.sub.re) can be expected to monotonically decrease with decreases of the offset errors d.sub.u and d.sub.w. Thus, it is possible to evaluate the torque ripple caused by the offset error of the current sensor by measuring P(θ.sub.re) during the constant speed driving.
(27) Based on the above-described study, the problem of reducing the torque ripple by correcting the offset can be replaced with a problem of determining the offset correction amounts a and b which would reduce the power spectrum P(θ.sub.re) during the constant speed driving.
(28) If the rotational speed of the three-phase alternating current motor is not a constant speed, the change of P(θ.sub.re) due to the offset error would depend on time. Specifically, because the position error due to τ.sub.rip appears in a plurality of frequency components, it becomes difficult to accurately determine the evaluation value, caused by the torque ripple, for the current offset error.
(29) An embodiment of the present disclosure will now be described.
(30) Of the constituting elements shown in
(31) The three-phase alternating current motor driving apparatus is connected to a position detector 107, receives an electrical signal from the position detector 107, and detects an angle θ.sub.m as a rotational position of the three-phase alternating current motor. A control current is computed according to the detected angle θ.sub.m and an angular speed ω.sub.m (not shown) obtained by time-differentiating the angle θ.sub.m, and the control current is supplied through the inverter 104 to the three-phase alternating current motor 106. The three-phase alternating current motor 106 may be a synchronous motor having a rotor with a permanent magnet. For the rotor, a two-phase rotation (d and q axes) coordinate system is defined.
(32) The current control device 101 computes a d-axis voltage command value v.sub.d and a q-axis voltage command value v.sub.q using a PI control and based on the d-axis current command value i.sub.d* and the q-axis current command value i.sub.q* which are input, and a difference between the d-axis current value i.sub.d and the q-axis current value i.sub.q converted by the three-phase-to-dq converter 108, and outputs the voltage command values to the dq-to-three-phase converter 102.
(33) The dq-to-three-phase converter 102 computes voltage command values v.sub.u, v.sub.v, and v.sub.w for the U phase, the V phase, and the W phase based on the d-axis voltage command value v.sub.d and the q-axis voltage command value v.sub.q which are input, and the electrical angle θ.sub.re of a rotor of the three-phase alternating current motor 106 detected by the position detector 107, and outputs the voltage command values to the PWM signal computation unit 103.
(34) The PWM signal computation unit 103 computes a duty ratio corresponding to the U-phase voltage command value v.sub.u, the V-phase voltage command value v.sub.v, and the W-phase voltage command value v.sub.w, and outputs a pulse signal of the computed duty ratio to the inverter 104.
(35) In the inverter 104, a ratio of ON times of a bridge upper semiconductor and a bridge lower semiconductor is controlled by the pulse signal, so as to apply alternating current voltages equal to the U-phase voltage command value v.sub.u, the V-phase voltage command value v.sub.v, and the W-phase voltage command value v.sub.w to three-phase windings (not shown) of the three-phase alternating current motor 106.
(36) The current sensor 105 outputs detection values i.sub.uo and i.sub.wo of the U-phase current and the W-phase current, respectively, of the three-phase alternating current motor 106. The estimation value i.sub.vo of the V-phase current is computed as i.sub.vo=−i.sub.uo−i.sub.wo. The electrical angle θ.sub.re is computed by multiplying the rotational angle θ.sub.m by a number of pole pairs using the electrical angle converter 109. The three-phase-to-dq converter 108 computes and outputs the d-axis current i.sub.d and the q-axis current i.sub.q by coordinate conversion, based on the electrical angle θ.sub.re, the U-phase current i.sub.uo, and the W-phase current i.sub.wo.
(37) The power spectrum computation unit 111 receives, as inputs, the electrical angle θ.sub.re and a position error obtained by subtracting the angle θ.sub.m from the commanded angle θ.sub.m* (position command value), and computes and outputs a power spectrum P(θ.sub.re) of a position error signal at the electrical angle frequency by fast Fourier transform.
(38) The correction timing computation unit 112 judges a timing of correction based on the motor speed, a number of samplings necessary for the Fourier transform, or the like, and notifies the timing to the offset correction computation unit 110.
(39) The offset correction computation unit 110 receives, as inputs, the power spectrum P(θ.sub.re), and detection values and i.sub.uo and i.sub.wo the estimation value i.sub.vo of the phase currents, evaluates the power spectrum P(θ.sub.re), and outputs an offset correction amount of the current sensor 105. An embodiment of the offset correction computation will now be described.
(40)
(41) Next, the power spectrum is reduced by an algorithm similar to a gradient method. A reference sign tmp in
(42) According to the value of the counter, i=1, 2, and 3, numerical value gradients grad.sub.a and grad.sub.b for the offset correction amounts a and b are sequentially computed. Then, based on updating rules, a(n+1)=a(n)−κ.Math.grad.sub.a and b(n+1)=b(n)−κ.Math.grad.sub.b, of the gradient method, the offset correction amounts a and b are updated. A reference sign n (not shown) indicates a number of updates of the offset correction amounts a and b. When the counter i reaches the count of 3, the counter i is initialized to 1.
(43) The flowchart of
(44) The offset correction computation unit 110 executes a process corresponding to the value i of the counter (S4, S21, S31). Specifically, the offset correction computation unit 110 executes step S5 when i=1, executes step S22 and then step S5 when i=2, and executes step S32 and then step S5 when i=3.
(45) When i=1, the offset correction computation unit 110 determines the power spectrum P(θ.sub.re) under a condition that the offset correction amounts a and b are initial values (S5). This process is executed by applying fast Fourier transform to the position error signal and determining a value of the spectrum at the electrical angle frequency.
(46) When i=2, the offset correction computation unit 110 stores the value of the offset correction amount a in the variable tmp, and increases the offset correction amount a by the difference h (S22). In addition, when i=3, the offset correction computation unit 110 stores the value of the offset correction amount b in the variable tmp, and increases the offset correction amount b by the difference h (S32). The offset correction computation unit 110 determines the power spectrum P(θ.sub.re) based on the offset correction amounts a and b which are set in step S22 or S32 (S5).
(47) When i=1, the offset correction computation unit 110 sets the power spectrum P(θ.sub.re), determined under the condition that the offset correction amounts a and b are initial values, as P.sub.1 (S6, S7). When i=2, the offset correction computation unit 110 sets the value of the offset correction amount a to the value stored in the variable tmp in step S22 (S23, S24). In addition, a numerical value gradient grad.sub.a of the offset correction amount a is determined based on an equation of grad.sub.a=(P(θ.sub.re)−P.sub.1)/h (S24). When i=3, the offset correction computation unit 110 determines a numerical value gradient grad.sub.b of the offset correction amount b based on an equation of grad.sub.b=(P(θ.sub.re)−P.sub.1)/h (S33, S34). In addition, the offset correction amount a is updated based on a formula of a=a−κ.Math.grad.sub.a (S34). Further, the offset correction amount b is updated based on a formula of b=tmp−κ.Math.grad.sub.b (S34).
(48) The offset correction computation unit 110 judges whether or not the value i of the counter is 3 or greater (S8), and, when the value i of the counter is 3 or greater, i is set to 1, and the process proceeds to a process of step S11 (S9). On the other hand, when the value i of the counter is 1 or 2, the offset correction computation unit 110 increments the value i of the counter by 1, and the process proceeds to the process of step S11 (S10). The offset correction computation unit 110 judges whether or not the position error is within an allowable range, that is, whether or not an absolute value of the position error is less than or equal to an allowable value (S11). When the position error is within the allowable range, the offset correction computation unit 110 completes the process, and, when the position error is outside of the allowable range, the process returns to the process of step S3.
(49)
(50) As shown in
(51) Further, as shown in
(52) If the correction amount is to be updated once every 8 ms when the rotational speed of the three-phase alternating current motor is a constant speed, the value sufficiently converges when the constant speed section is 320 ms. Thus, according to the present method, the current offset is corrected in a simple manner without an in-advance adjustment or learning in each machine tool.
(53) In the above-described embodiment, an algorithm similar to the steepest descent among the gradient method is used. Alternatively, the section method or other gradient methods may be used from the viewpoint of quickly reducing the power spectrum.