The invention relates to a method and device for determining an angle difference between a zero position of a rotor position sensor of an electric machine and an orientation of the permanent magnets of the electric machine. The invention further relates to a powertrain with a corresponding device and a vehicle with a powertrain, as well as a computer program and a computer-readable medium.
In electric and hybrid vehicles, electric machines, preferably synchronous machines, are often used as traction or drive machines. To efficiently control an electric machine, especially its drive torque, the angle difference, or offset angle, between the zero position of a rotor position sensor and the orientation of the permanent magnets of the electric machine's rotor must be known. The more precisely this value is known, the more accurately the machine can be controlled. Preferably, the orientation of the permanent magnets of the rotor can thus be aligned with the d-axis of the rotating coordinate system of the field-oriented control for the control of the electric machine. A resolver or an incremental encoder or other position sensor is preferably used as the position sensor for determining the rotor position.
A variety of approaches are known from the prior art in order to determine this offset angle.
One well-known method for doing so is zero current control. In these methods, when a machine is rotating, the current is controlled to zero amps. To control the current to zero amps, the current controller must compensate for the voltage induced in the rotating electric machine, or rotor. Depending on the control deviation of the setpoint current reference variable and the actual current feedback, setpoint voltages result in the steady-state operation as the output variable of the current controller as the manipulated variable, the phase angle of which corresponds to the induced voltage and thus also to the orientation of the permanent magnets of the rotor or the direction of the positive flux direction of the permanent magnets. When determining the offset angle by way of zero current control, disturbance variables falsify the result. One of the most relevant disturbance variables are the differences between the setpoint voltage (Udq_Soll) determined by the current controller and the actual voltage (Udq_Ist) actually applied to the windings of the electric machine. The difference between the determined setpoint voltage (Udq_Soll) and the actual voltage (Udq_Ist) is also called error voltage (Udq_error).
In the zero current control method, at the operating point where the current is controlled to zero amps, the fault voltage is insufficiently known. The latter can therefore not be compensated for at this operating point.
An alternative method is disclosed in DE 10 2008 001 408 A1. The offset angle is determined as a function of the difference between a field angle, an impressed stator magnetic field and a determined sensor angle.
There is a need for methods and devices to calibrate the offset angle.
Provided is method for determining an angle difference between a zero position of a rotor position sensor of an electric machine and an orientation of the permanent magnets of the electric machine, the electric machine being controlled by way of a field-oriented control, with the rotor of the electric machine rotating. The method comprises the following steps: specifying a first d setpoint current value not equal to zero amps and specifying a first q setpoint current value; determining a resulting first d setpoint voltage and first q setpoint voltage; specifying a second d setpoint current value, whereby the second d setpoint current value corresponds to the value of the first d setpoint current value with complementary mathematical signs, and specifying a second q setpoint current value, whereby the second q setpoint current value corresponds to the value of the first q setpoint current value with complementary mathematical signs; determining a resulting second d setpoint voltage and a second q setpoint voltage; determining an angle error as a function of the determined first d setpoint voltage, the first q setpoint voltage, the second d setpoint voltage and the second q setpoint voltage; determining the angle difference as a function of the angle error.
Provided thereby is a method for determining the angle difference between a zero position of a rotor position sensor of an electric machine and the orientation of the permanent magnets of the electric machine is provided. The electric machine is controlled by way of a field-oriented control. Field-oriented control of electric machines are well known. In this context, alternating variables assumed to be largely sinusoidal (for example, alternating voltages and alternating currents) are not controlled directly in their temporal instantaneous value, but in an instantaneous value adjusted for the phase angle within the period. For this purpose, the recorded alternating variables, for example the actual phase currents of the electric machine, are each transferred to a coordinate system rotating with the frequency of the alternating variables. Within the rotating coordinate system, the alternating variables in the steady-state operation of the electric machine then result in DC variables to which all the usual methods of control engineering can be applied. To determine the position of the rotor, position encoders or rotor position sensors are used, which output an angle signal to determine the rotor relative to the stator. Due to the multiphase phase-shifted alternating currents impressed in the stator, a rotating magnetic field results when the electric machine is operated. The direction of this rotating magnetic field corresponds to the direction of the resulting total flux, which is produced by superimposing the rotor flux generated by the permanent magnets and the stator flux generated by the stator currents. For the control, an exact knowledge of the deviation, i.e., the offset angle or the angle difference, between the angle signal of the rotor position sensor and the actual rotor flux direction, or the orientation of the permanent magnets of the electric machine, is important, since for the control of the electric machine the rotor flux direction is calculated from the angle signal and the offset angle. Within the rotating coordinate system, the d/q coordinate system, which rotates synchronously with the rotor flux and whose d-axis points in the direction of the rotor flux, a stator current is represented as a stator current vector Is, which is characterized by its magnitude and direction. This current vector rotates synchronously with the rotating stator or rotor flux of the electric machine. In the d/q coordinate system, the current vector can be broken down into two components Isd and Isq, which are constant quantities in the steady-state operation. In the case of field-oriented regulation, the actual phase currents Iu, Iv, Iw are consequently recorded, e.g., by means of current sensors. By means of d/q transformation or Park transformation, the three-phase variables are converted into a two-axis coordinate system with the axes d and q. A setpoint current is determined and specified as a reference variable for the control, usually as a function of a desired torque. In the d/q system, a control deviation is determined from the difference between the setpoint current and the d/q actual currents and is made available to the current controller as an input variable. The controller outputs d/q setpoint voltages as the manipulated variable. These d/q setpoint voltages are transformed back into the three-phase system. These three-phase setpoint voltages are provided by means of an inverter for energizing the electric machine and are applied to the individual phases of the electric machine. The rotor of the electric machine rotates during the method of determining the angle difference. For this purpose, the rotor is preferably driven externally, preferably, for example, when a drive axle of a vehicle is coasting under no load or on a test stand, preferably load-free, preferably decoupled from the powertrain.
The method comprises the steps of: specifying a first setpoint current value as a reference variable, with a first d setpoint current value not equal to zero amps being specified in the d/q system and a first q setpoint current value. determining a first resulting or resulting d/q setpoint voltage as a manipulated variable of the current controller, a first d setpoint voltage and a first q setpoint voltage being determined in the d/q system. specifying a second setpoint current value as a reference variable, with a second d setpoint current value and a second q setpoint current value being specified in the d/q system. The second d setpoint current value corresponds to the value of the first d setpoint current value with a complementary mathematical sign, and the second q setpoint current value also corresponds to the value of the first q setpoint current value with a complementary mathematical sign. A second set or resulting d/q setpoint voltage is determined as the manipulated variable of the current controller, with a second d setpoint voltage and a second q setpoint voltage being determined in the d/q system. The setpoint currents are preferably specified by means of constant setpoint current values. The setpoint currents can preferably also be specified as alternating variables, the mean values of which correspond to a specified setpoint current value. Alternating variables can then preferably also be set as setpoint voltages, the mean values of which are determined as setpoint voltage. Furthermore, an angle error is determined as a function of the determined first d setpoint voltage, the first q setpoint voltage, the second d setpoint voltage and the second q setpoint voltage. Finally, the angle difference is determined as a function of the angle error. The angle difference determined is preferably fed to the current controller for further regulation of the electric machine.
A method for determining an angle difference between a zero position of a rotor position sensor of an electric machine and an orientation of the permanent magnets of the electric machine is advantageously provided. A closed-loop control solution enables the angle difference to be determined precisely without measuring the phase voltages. The higher quality compared to the known methods results from the fact that the error voltages and the setpoint current are point-symmetrical to the origin for small currents. By specifying two setpoint currents with opposite mathematical signs ((Id_soll_1, Iq_soll_1), (−Id_soll_1, −Iq_soll_1)), error voltages also result (Udq_error(Id_soll_1, Iq_soll_1), Udq_error(−Id_soll_1, −Iq_soll_1)) with opposite mathematical signs:
In mathematical terms, the following results for the error voltages:
For the actual applied actual stresses, the result is:
When the two actual voltages are added together, the symmetrical error voltages approximately cancel each other out. The result is:
When taking these relationships into account when determining the angle difference, the error influence of the error voltage is minimized as a result of this.
In another embodiment of the invention, the first q setpoint current value equal to zero amps is specified.
When the first setpoint current value is specified as the reference variable, the first d setpoint current value is specified as not equal to zero amps in the d/q system and the first q setpoint current value is specified as equal to zero amps.
Advantageously, an alternative method is provided which generates no torque or only a small torque during execution.
In another embodiment of the invention, the angle error is determined as a function of the arctangent of the quotient of a first sum of the first d setpoint voltage and the second d setpoint voltage and a second sum of the first q setpoint voltage and the second q setpoint voltage.
To determine the angle error, an arc tangent of a quotient is formed. The numerator of the quotient is a first sum of the first d setpoint voltage and the second d setpoint voltage. The denominator of the quotient is a second sum of the first q setpoint voltage and the second q setpoint voltage.
Mathematically, this results in:
Advantageously, a calculation rule is provided for determining the angle error as a function of the variables of the current controller.
In another embodiment of the invention, the method comprises a further step: determining the angle difference as a function of a specified angle difference.
In the event that a specified angle difference, in particular a somewhat less precise specified angle difference, is already known in the system, the angle difference is calculated as a function of the specified angle difference.
Advantageously, a method for a more accurate determination of the angle difference is provided.
In another embodiment of the invention, the predetermined angle difference is specified as a function of a predetermined angle error. In particular, the specified angle difference is determined as a function of a difference of a sensor angle difference and a predetermined angle error. For example, a sensor angle difference is a value that describes the mounting position of a rotor position sensor relative to the orientation of the permanent magnets of the electric machine or a zero position of the rotor, or a value specific to the rotor position sensor that describes a sensor signal deviation relative to the orientation of the permanent magnets of the electric machine or a zero position of the rotor.
Advantageously provided is a method for determining the specified angle difference.
In another embodiment of the invention, the determination of the specified angle error is performed as a function of a zero current control or test pulse method.
A zero current control is described by way of example in the introduction, and a test pulse method is known, e.g., from publication DE 10 2008 042 360 A1.
Advantageously provided a method for determining the specified angle error.
In another embodiment of the invention, the angle difference is determined as a function of the difference between the specified angle difference and the angle error.
The invention further relates to a device for determining an angle difference between the zero position of a rotor position sensor of an electric machine and the orientation of the permanent magnets of the electric machine, whereby the electric machine is controlled by way of a field-oriented control, and the rotor of the electric machine rotates, with a logic unit being configured to perform a method described hereinabove.
The device for determining an angle difference between the zero position of a rotor position sensor of an electric machine and the orientation of the permanent magnets of the electric machine comprises a logic unit which is configured to both preset the reference variables, preferably the setpoint current values, to the current controller and to determine or read out the manipulated variable of the current controller, preferably the setpoint voltages, and to perform the calculations described for determining the angle difference.
Advantageously provided is a device for determining an angle difference between the zero position of a rotor position sensor of an electric machine and the orientation of the permanent magnets of the electric machine. The achievable accuracy is very high compared to known solutions and does not require measurement of phase voltages on the electric machine.
Furthermore, the invention relates to a powertrain comprising a device as described. In particular, the powertrain comprises power electronics, an electric drive and/or a battery for supplying the electric drive with electrical energy. Such a powertrain is used, e.g., to drive an electrical vehicle. Safe operation of the powertrain is enabled by means of the method and the device.
The invention further relates to a vehicle having a powertrain as described. Advantageously thus provided is a vehicle which comprises a device for determining an angle difference between the zero position of a rotor position sensor of an electric machine and the orientation of the permanent magnets of the electric machine.
The invention further relates to a computer program comprising instructions which cause the described device to perform the method steps described. Or, the computer program comprises instructions that, when performed by a computer, cause the computer to perform the method steps described thus far.
Furthermore, the invention relates to a computer-readable medium on which the computer program is stored. Or, a computer-readable storage medium comprises instructions that, when performed by a computer, cause the computer to perform the steps of the method described thus far.
It is understood that the features, properties, and advantages of the method according to the invention apply or are correspondingly applicable to the device, or to the powertrain and vehicle, and vice versa.
Further features and advantages of embodiments of the invention follow from the subsequent description with reference to the accompanying drawings.
The invention will be explained in further detail hereinafter with reference to the drawings:
Number | Date | Country | Kind |
---|---|---|---|
10 2021 205 258.4 | May 2021 | DE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2022/061437 | 4/29/2022 | WO |