Method for controlling an electrical machine driven by an inverter controlled by a computer
By synchronizing switching and electrical frequencies with proportional integer coefficients, the method addresses asynchronism issues in synchronous electrical machines, reducing harmonics and ensuring stable, secure operation.
Patent Information
- Application Number
- FR2022012481
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-11-29
AI Technical Summary
Existing control methods for synchronous electrical machines face issues with asynchronism between switching frequency and electrical frequency, leading to harmful harmonic phenomena and reduced determinism, which compromises operational safety and stability.
A method that synchronizes the switching frequency with the electrical frequency and adjusts the calculation frequency of control functions to maintain deterministic control, using proportional integer coefficients to ensure harmonics are minimized and operational safety is ensured.
The method effectively reduces harmful harmonic phenomena and ensures stable, secure operation by synchronizing frequencies, enhancing the determinism and reliability of the control system.
Smart Images

Figure 00000019_0000 
Figure 00000019_0001 
Figure 00000019_0002
Abstract
Description
Title of the invention: Method for controlling an electrical machine driven by an inverter controlled by a computer Technical field
[0001] The present invention relates to a method for controlling a rotating electrical machine, preferably a synchronous electrical machine, for example of the synchro-reluctant or permanent magnet synchronous type.
[0002] The invention also relates to a control system implementing such a method.
[0003] It is known to use rotating electrical machines such as permanent magnet synchronous electrical machines or synchro-reluctant machines, in particular synchro-reluctant machines assisted by permanent magnets. Such electrical machines are, for example, used in the field of propulsion, for example for the generation of engine torques on board a vehicle such as a motor vehicle.
[0004] Document FR 3 051 296 A1 describes, for example, a synchro-reluctant machine assisted by permanent magnets.
[0005] In order to increase the power density of synchronous electrical machines in the transport sector, these operate at increasingly higher electrical frequencies and rotation frequencies. This increase in electrical frequency of electrical machines, controlled by power electronics with a limited switching frequency, can lead to the appearance of harmful harmonic phenomena.
[0006] Indeed, the so-called "chopping" method (or Pulse Width Modulation, PWM) is based on the idea that a sinusoid (in this case the control voltage of an electrical machine) can be "chopped" into a series of constant values, as illustrated in [Fig.l]. [Fig.l] is a curve of the voltage Vc in V as a function of time T in ms. The curve Vref is the optimal sinusoidal voltage curve, and the curve Vrec is a voltage curve obtained by a chopping method that approximates the reference curve. It can be seen that the approximation of the reference curve depends on the chopping period. In addition, when the number of values per period is reduced, the resultant Vrec is not identical from one electrical period Vref to another.This is due to the fact that the control sinusoid is necessarily of electrical frequency (associated with the rotation speed of the synchronous motor), while most often the "cutting" is carried out at a constant time frequency. For example, we can have a classic cutting frequency of 10kHz for an electric machine rotating at . 916Hz.
[0007] The asynchronism described here can in certain cases lead to the appearance of unwanted phenomena, such as the emergence of low frequencies in the control, or even instability of the controlled currents. Prior art
[0008] One solution is to synchronize the switching frequency and the electrical frequency, this is called the "synchronous" PWM method. Typically, it is ensured that the switching frequency adjusts dynamically to the electrical frequency of the electrical machine, so that the "stepped" result of the control is always identical from one period to the next. We can then write that: fd — K x / with fdec the switching frequency and fe the electrical frequency, where K is not necessarily constant, but always an integer.
[0009] The following document describes such a “synchronous” PWM method: “AO DI TOMMASO et al., Practical implementation of a synchronous PWM strategy for low switching frequency FOC of IM drives with ATSAM3X8E microcontroller, May 2021, 2021 Sixteenth International Conference on Ecological Vehicles and Renewable Energies (EVER)”.
[0010] Thus, synchronous PWM is also ideal for improving the management of harmonic phenomena naturally present elsewhere in synchronous electrical machines.
[0011] However, this approach raises a problem of asynchronism between the PWM calculations (synchronous with the electric machine) and other calculations at fixed time frequency within the electric machine control system.
[0012] Indeed, there are generally functions in the control algorithms of electrical machines which are executed at frequencies much lower than the switching frequency. For example, the calculation of current setpoints can conventionally be carried out at 1 kHz since it often depends on a torque or speed setpoint, associated with a mechanical system whose bandwidth is much lower than that of an electrical system. According to the same logic, the functions associated with thermal phenomena are intended to be executed at frequencies of the order of 100 Hz, or even 10 Hz.
[0013] It would be of little interest to execute these functions more quickly, or synchronously with the frequency of the electrical machine, since this would complicate the calculation code, or even represent a prohibitive calculation time for the microprocessor.
[0014] Thus, for the “synchronous PWM method”, the asynchronism classically present between the switching frequency and the electrical frequency is displaced between so-called “slow” and naturally temporal calculation functions and the function of “quick” cutting.
[0015] It is certain that the problem associated with asynchronism in this case is less immediately significant. However, this results in reduced determinism of the control, due to its dependence on the actual completion time of the calculations, which is by nature unpredictable. Indeed, a calculation function makes calculated variables available to another calculation function, which will therefore not always be "shared" at the same time, since they are when the calculation is finished.
[0016] Finally, this favors the appearance of random phenomena contradictory to the operational safety needs of the systems. Summary of the invention
[0017] The aim of the invention is to control an electrical machine, while limiting the occurrence of harmful harmonic phenomena and while meeting the safety needs of the systems. For this, the present invention relates to a method for controlling an electrical machine, which determines an electrical frequency, then deduces therefrom the switching frequency, then the calculation frequency of the “slow” calculation functions. Thus, the different frequencies are synchronous, which makes it possible to limit the occurrence of harmful harmonic phenomena, and while ensuring the proper functioning of the systems meeting the safety needs of the systems (without contradictory random phenomena).
[0018] The invention also relates to a control system implementing such a method.
[0019] The invention relates to a method for controlling an electrical machine driven by an inverter controlled by a computer, said control method being designed to cause said inverter to apply a chopping frequency of the electric current to said electrical machine, and to cause at least one function of said computer to perform a calculation at a calculation time frequency, each function of said computer having a reference calculation time frequency. For this method, the following steps are implemented: a. An electrical frequency is acquired from said electrical machine; b. A switching frequency is applied to said inverter such that said switching frequency is proportional to said determined electrical frequency, a coefficient of proportionality between said switching frequency and said electrical frequency being an integer; and c. A calculation time frequency is applied to at least one function of said calculator such that the switching frequency is proportional to said calculation time frequency, a coefficient of proportionality between said switching frequency and said calculation time frequency being a variable integer, and such that the average of the calculation time frequency is equal to said reference calculation time frequency.
[0020] According to one embodiment, said function of said calculator is chosen from a function for determining current setpoints, a thermal estimator, a magnetic flux estimator.
[0021] According to one implementation, said electrical frequency of said electrical machine is determined by means of a formula f = 2mve with f said electrical frequency, an electrical rotation speed of the rotor of said electrical machine.
[0022] Advantageously, said electrical rotation speed is determined by multiplying a mechanical rotation speed of the rotor of said electrical machine by the number of pairs of poles of said electrical machine.
[0023] Advantageously, said mechanical rotation speed of said electrical machine is measured by means of an angular position sensor or a rotation speed sensor.
[0024] According to one aspect, the average of the computational time frequency is determined over a time window.
[0025] The invention also relates to a control method according to one of the preceding characteristics, in which the following steps are implemented: a. By means of said calculator and at said calculation time frequency, current setpoints are determined as a function of at least one torque setpoint and / or one rotation speed setpoint; b. Voltage setpoints are determined using the said calculator from the determined current setpoints; c. A switching control signal for said inverter is generated by means of said calculator from said voltage setpoints, the frequency of said switching control signal being said switching frequency; and d. Said inverter is controlled by means of said switching signal.
[0026] Advantageously, at least one step of estimating at least one temperature and / or at least one magnetic flux within said electrical machine is further implemented, by means of said calculator and at said calculation time frequency.
[0027] Advantageously, said current setpoints and / or said voltage setpoints are determined by means of said estimation of at least one temperature and / or at least one magnetic flux within said electrical machine.
[0028] Furthermore, the invention relates to a control system for an electrical machine comprising an inverter provided with switching arms, a computer and a memory configured to implement the steps of the control method according to one of the preceding characteristics to apply said switching frequency of said inverter and to apply said time frequency for calculating at least one function of said calculator, preferably said electrical machine is a synchronous-reluctant machine assisted by permanent magnets or a synchronous machine with permanent magnets.
[0029] Other characteristics and advantages of the method and system according to the invention will appear on reading the following description of non-limiting examples of embodiments, with reference to the figures appended and described below. List of figures
[0030] [Fig.l]
[0031] [Fig.l], already described, illustrates sinusoidal voltage curves respectively of reference and obtained by a cutting method.
[0032] [Fig.2]
[0033] [Fig.2] illustrates a control system for implementing the control method according to one embodiment of the invention.
[0034] [Fig.3]
[0035] [Fig.3] illustrates a control system for implementing the control method according to one embodiment of the invention.
[0036] [Fig.4]
[0037] [Fig.4] illustrates the electrical, chopping, and calculation signals for a control method according to a prior art without synchronism.
[0038] [Fig.5]
[0039] [Fig.5] illustrates the electrical, chopping, and calculation signals for a control method according to a prior art with synchronism of the chopping frequency with the electrical frequency.
[0040] [Fig.6]
[0041] [Fig.6] illustrates the electrical, chopping, and calculation signals for a control method according to one embodiment of the invention.
[0042] [Fig.7]
[0043] [Fig.7] illustrates a rotational speed versus time curve for an example application.
[0044] [Fig. 8]
[0045] [Fig.8] illustrates a variation of the coefficient of proportionality as a function of time for the application example of [Fig.7].
[0046] [Fig.9]
[0047] [Fig.9] illustrates the period of the calculation signal as a function of time for the application example of Figures 7 and 8. Description of the embodiments
[0048] [Fig. 2] shows, schematically and in a non-limiting manner, an installation comprising a rotating electrical machine MEL associated, for its control, with a COM control system according to the invention (the COM control system implementing the control method according to the invention). The installation also comprises a DC source of electrical energy, such as a direct voltage bus.
[0049] The rotating electrical machine MEL is a rotating machine with several phases, preferably three phases (alternatively the electrical machine may comprise a number of phases that is a multiple of three, for example six, nine or twelve, or else four or five phases). Advantageously, the rotating electrical machine MEL may be a synchronous electrical machine. Preferably, the synchronous electrical machine MEL may be a permanent magnet or synchro-reluctant synchronous electrical machine, in particular a three-phase synchro-reluctant rotating machine assisted by permanent magnets.
[0050] For the illustrated example (non-limiting), the synchronous electric machine MEL has three inputs. Each input corresponds to a phase of a stator (not shown) of the rotating electric machine MEL.
[0051] The control system COM is intended to control, over time, the power supply of the rotating machine MEL as a function of target values and / or measured values of predetermined quantities. These target values and / or measured values are referred to in the remainder of the description as operating variables of the electrical machine. For the method and the system according to the invention, the control system COM takes into account a torque setpoint Cem* (which can conventionally come from a request from the user of the electrical machine, alternatively this torque setpoint can be calculated by speed regulation), and / or at least one other operating variable VAF which can be a measurement or a setpoint.An operating variable of the electric machine is a quantity that characterizes the operation of the electric machine. This may include an electrical variable, such as the voltage, current, or power of the electric machine, a mechanical variable such as the position, speed, or acceleration of the rotor of the electric machine, etc. The operating variables may, for example, be the electrical rotation speed coe of the rotor (not shown) of the electric machine (alternatively, this variable may also be the standard of the magnetic flux in the phases), the voltage amplitude of the electric machine, the current amplitude of the electric machine, a temperature of the electric machine, etc. It is recalled that the electrical rotation speed coe of the rotor corresponds to . to multiply the mechanical rotation speed com of the rotor by the number of pole pairs of the synchronous electric machine MEL. In other words, we can write: coe=p.com with p the number of pole pairs of the synchronous electric machine MEL. This electrical rotation speed makes it possible to determine the electrical frequency of the electric machine.
[0052] The COM control system comprises an OND inverter and a CAL computer. The COM control system may, if necessary, comprise a CAP sensor for the angular position and / or angular rotation speed of the rotor of the MEL electrical machine. Such a sensor makes it possible to determine the angular rotation speed com of the electrical machine either directly (in the case of a speed sensor) or by derivation (in the case of the position sensor). In addition, the COM control system may comprise means for measuring the currents (not shown) in the phases of the electrical machine, for example current sensors.
[0053] The inverter OND is configured to route electrical energy between the DC source and the synchronous electric machine MEL. More specifically, the inverter OND is configured to route electrical energy between the DC source and each phase of the stator of the synchronous electric machine MEL. The DC source (for example a battery) provides a DC bus voltage, denoted VDc-
[0054] The OND inverter comprises a first input connected to the DC source, and three outputs, each connected to a corresponding phase of the stator of the synchronous electrical machine MEL. The OND inverter further comprises a second input electrically connected to an output of the CAL computer, such that the OND inverter is configured to route electrical energy between the DC source and the synchronous electrical machine MEL according to a switching control signal applied by the CAL computer to the second input of the OND inverter.
[0055] Preferably, the switching control signal may be such that the inverter OND conveys electrical energy from the DC source to the synchronous electrical machine MEL so that the synchronous electrical machine MEL has an operation commonly called a "motor" and / or an operation commonly called a "generator". Conventionally, the inverter OND comprises several switching arms (not shown), preferably at least one switching arm for each phase of the electrical machine, to transform the DC signal from the DC source into an AC signal for the phases of the electrical machine MEL. Each switching arm comprises at least one controlled switch. Conventionally, each switch of the switching arms can be controlled by means of a pulse width modulation known by the acronym MLI (or PWM for Pulse Width Modulation).
[0056] The optional CAP angular position or angular rotation speed sensor can be configured to measure the angular mechanical position of a rotor (not shown) of the synchronous electric machine relative to the stator (not shown), and to deliver an angular position signal (respectively angular rotation speed) representative of the measured value of the angular position (respectively angular rotation speed) of the rotor of the synchronous electric machine.
[0057] Furthermore, the optional CAP angular position or angular rotation speed sensor can be configured to apply the angular position (respectively angular rotation speed) signal to a corresponding input of the CAL computer.
[0058] [Fig. 3] illustrates, schematically and in a non-limiting manner, an installation comprising a rotating electrical machine MEL associated, for its control, with a COM control system according to an embodiment of the invention (the COM control system implementing the control method according to the invention). [Fig. 3] is an exemplary embodiment of the control system of [Fig. 2]. Other implementations of the system of [Fig. 2] can be carried out without departing from the scope of the invention (for example the embodiments described in patent applications WO2021 / 259662 and WO2022 / 078778 or in patent applications bearing the filing numbers FR21 / 13962 and FR22 / 00475). Elements identical to [Fig. 2] are not re-described.
[0059] The CAL calculator uses current measurements ia, ib, ic in the phases of the MEL electric machine.In addition, the CAL calculator includes: - Means for transforming PARK into the Park reference frame of the measured currents, to determine measured currents expressed in direct current id mes and the quadrature current iqmes (as a reminder: the so-called “direct” and “quadrature” currents and voltages, also called “quadratic(s)”, are currents and voltages expressed in a rotating reference frame linked to the rotor), - Means for determining CONS the current setpoints idsP and iqsP, in particular from the torque setpoint Cem* and the operating variable setpoint VAF, the determination of the current setpoints CONS is carried out at a first calculation time frequency, - Means for determining FOC the voltage setpoints v / p and vqsP, in particular from the current setpoints idsP and iqsP, and the measured currents expressed in the Park reference frame idmes and iqmes, . - A space vector control SVM to generate a switching control signal for the OND inverter according to the voltage setpoints vdsp and vqsp, the inverter control signal is implemented at a switching frequency, and - Optionally an EST estimator, for example a thermal estimator or a magnetic flux estimator, for estimating at least one temperature and / or at least one magnetic flux of at least one component of the electrical machine from the measured currents expressed in the Park reference frame idmes and iqmes, the estimation implemented by the estimator is carried out at a second calculation time frequency.
[0060] The method for controlling an electrical machine according to the invention is designed to apply a switching frequency of the electric current by an inverter to the electrical machine, and to make at least one function of said calculator perform a calculation at a calculation time frequency (this frequency is also called “slow” calculation frequency). Each function of the calculator has a reference calculation time frequency. It is recalled that a frequency is defined by the number of periods per unit of time, and the period is the smallest duration during which a phenomenon is reproduced. The method for controlling an electrical machine comprises the following steps in real time: - Acquisition of an electrical frequency of the electrical machine, - Application of a switching frequency, so that the frequency of cutting is proportional to the electrical frequency, the coefficient of proportionality between these two frequencies being an integer, - Application of a calculation time frequency, such that the cutting frequency is proportional to the calculation time frequency, the coefficient of proportionality between these two frequencies being an integer, and such that the average of the calculation time frequency is equal to the reference calculation time frequency.
[0061] These steps can be implemented in particular by a computer and a dedicated computer memory for real times. These steps are detailed in the rest of the description. 1) Acquisition of the electrical frequency
[0062] During this step, an electrical frequency of the electric machine is acquired. In other words, the electrical frequency of the rotor of the electric machine is acquired.
[0063] According to one embodiment of the invention, the electrical frequency can be determined from the electrical rotation speed, by means of a formula of the type '■ f — ^(lûe with f the electrical frequency, an electrical rotation speed of the rotor of the electrical machine.
[0064] Advantageously, the electrical frequency can be acquired by multiplying a mechanical rotation speed by the number of pole pairs of the electrical machine. We can thus write: coe=p.com with p the number of pole pairs of the synchronous electrical machine MEL and com the mechanical rotation speed of the electric machine.
[0065] Advantageously, the mechanical rotation speed of the rotor can be measured, for example by means of an angular position sensor of the rotor of the electric machine, or an angular speed sensor of the rotor of the electric machine.
[0066] Alternatively, the mechanical rotation speed of the rotor can be estimated by means of an estimator, which can depend on the currents in the phases of the electrical machine and / or the current setpoints and / or the voltage setpoints. 2) Application of a switching frequency
[0067] In this step, a switching frequency is determined for the inverter and applied to the inverter control signal. The switching frequency is determined such that the switching frequency is proportional to the electrical frequency acquired in step 1. For this proportionality, the proportionality coefficient (i.e. the ratio between the switching frequency and the electrical frequency) is an integer. Thus, the switching frequency is synchronized with the electrical frequency, which avoids the presence of harmonics, the appearance of unwanted phenomena, such as the emergence of low frequencies in the control, or even instability of the controlled currents. The proportionality coefficient and the switching frequency may not be constant.
[0068] We can write the following formula:
[0069] fdgc = Kxfe
[0070] With fdec the switching frequency, K the coefficient of proportionality with K integer, and fe the electrical frequency.
[0071] 3) Application of a calculation time frequency
[0072] During this step, a calculation time frequency of at least one calculation function of the computer is determined, and it is applied to the calculation function of the computer. The calculation time frequency is determined such that the switching frequency determined in step 2 is proportional to the calculation time frequency. For this proportionality, the proportionality coefficient (i.e. the ratio between the switching frequency and the calculation time frequency) is an integer. Thus, the calculation time frequency is synchronized with the switching frequency, which promotes the proper operation of the control, and good security of the system (because of fewer contradictory random phenomena). In addition, the time frequency is determined such that the average of the calculation time frequency is equal to the reference calculation time frequency.Thus, the invention makes it possible to guarantee the control of the data exchanged between tasks of different frequencies, while maintaining the possibility of operating effectively at a fixed average time frequency. The coefficient of propor- . tionality and frequency of calculation may not be constant.
[0073] According to one embodiment, if the calculator has several calculator calculation functions having different calculation time frequencies, then a calculation time frequency can be determined per calculation function. Thus, each calculation function can be synchronized with the cutting function.
[0074] Alternatively, if the computer has several computer calculation functions having different calculation time frequencies, then a single calculation time frequency can be determined for a single calculation function (called the primary calculation function), and the calculation time frequency for the other calculation functions is determined by multiplying the calculation time frequency of the primary calculation function by a multiplier coefficient. The multiplier coefficient can be predetermined from the reference calculation time frequencies. This implementation reduces the number of proportionality coefficients to be determined, and allows temporal coordination of the calculation functions.
[0075] Thus, we can write for a considered calculation function:
[0076] f, = kj X f , LJJ dec ' 7 c« / (-
[0077] And
[0078] average( j = fca}re^
[0079] With i the calculation function considered of the computer, j the calculation time frequency of the function considered i of the computer, fdec the cutting frequency, k, the proportionality coefficient for the function considered i of the computer with k, integer, and re^ the reference calculation time frequency of the function i considered of the computer.
[0080] We can also write:
[0081] f -Lf J cal; k, J e
[0082] Figures 4 to 6 illustrate schematically and in a non-limiting manner the different synchronisms implemented in the invention. These figures illustrate the signals S normalized as a function of T in ms. The "sawtooth" here makes it possible to represent in time a periodic phenomenon, which begins again at each descent of the signal. It could well have been represented by a series of diracs. This is the electrical signal Vele representing the electrical frequency, the switching signal Vdec representing the switching frequency, and the calculation signal Vcal representing the calculation time frequency. In these figures, the signals are illustrated at different levels for better readability. In addition, the ends of the calculation and electrical periods are illustrated by circles. When the circles are in thick lines, then there is synchronism with the switching frequency. When the circles are in thin line, so there is no synchronization with the switching frequency.
[0083] [Fig.4] illustrates the curves for a prior art solution, in which no synchronism is provided between the switching frequency and the electrical frequency. For this configuration, it is noted that the ends of the electrical periods do not correspond to the same moment of the switching frequency, and that the ends of the calculation periods correspond to the ends of the switching periods.
[0084] [Fig. 5] illustrates the curves for a prior art solution, in which synchronism is provided between the switching frequency and the electrical frequency, which corresponds to the synchronous PWM method. For this configuration, it is noted that the ends of the electrical periods correspond to the ends of switching periods, while the ends of the calculation periods do not correspond to the ends of switching periods.
[0085] [Fig.6] illustrates the curves for a solution according to an embodiment of the invention, in which synchronism is provided between the switching frequency and the electrical frequency, as well as synchronism between the switching frequency and the calculation time frequency. For this configuration, it is noted that the ends of the electrical periods correspond to the ends of switching periods, and the ends of the calculation periods correspond to the ends of switching periods, but with an adaptive duration of the calculation time period. For the example illustrated, the first iteration of this calculation is implemented over eight switching periods (linked to the switching frequency), while the second iteration of this calculation is implemented over seven switching periods.
[0086] The calculation function of the calculator can be chosen in particular from a determination of the current setpoints (CONS in [Fig.3]), a thermal estimator which determines at least one temperature of a component of the electrical machine (EST in [Fig.3]), a magnetic flux estimator which determines at least one magnetic flux of a component of the electrical machine (EST in [Fig.3]), or any similar calculation function.
[0087] By way of example, the reference calculation time frequency for determining the current setpoints can be carried out at a frequency between 0.5 kHz and 5 kHz, and can be 1 kHz.
[0088] For example, the reference calculation time frequency of a thermal estimator or a magnetic flux estimator can be carried out at a frequency between 10Hz and 100Hz.
[0089] According to an implementation of the invention, the average of the calculation time frequency over a time window can be determined and / or verified. For example, the time window can be between 10 and 100 periods of the calculation time frequency. In another example, the time window can be between 10 ms and 100 ms. Alternatively, the average calculation time frequency can be determined and / or checked from the start of the signal; this is then an overall average.
[0090] In the following, an implementation of this step is described according to one embodiment. However, other embodiments are possible.
[0091] We can note: - Tsp: the reference of the “slow” calculation time period (linked to the calculation time frequency), for example 1 ms. - tisloK: the time past the start of execution of the current “slow” calculation - t: the “current” time (start of a cutting task) - tprev: the time of the start of the previous cutting task - Dt: the duration between tisloK and the next start of reference calculation (linked to the reference calculation time frequency), which could be noted Tsp*n if we were at the n-th calculation period.
[0092] The challenge here is to determine an algorithm that makes it possible to decide whether to trigger a new execution of a “slow” calculation on the basis of the latest data published by the fast slicing task.
[0093] We note that the duration Dt can be calculated by recurrence without worrying about the number of slow periods passed. Indeed:
[0094] Dt(n) = Tsp*ntistow(n) and therefore Dt(n+1) = Tsp*(n+1) - tisiow (n+1)
[0095] Therefore Dt(n+1) = Dt(n) + Tsp - (tislow (n+1) - tislow (n))
[0096] However, the decision to trigger a new “slow” calculation is made at the current moment, and only this decision justifies updating Dt. Thus:
[0097] Dt(n+1 ) = Dt + Tsp-(t - tisloK) performs this update as soon as the decision is made.
[0098] Dt represents the ideal duration that the current slow period should have to obtain a period on average equal to 1 ms (value for information purposes only). This is therefore the reference (also called target).
[0099] Finally, the decision algorithm according to this embodiment can be written: - If (t - tislmv) + (t- tprev) / 2 > Dt (Decision) • Then Dt(n+1 ) = Dt + Tsp-(t - tislow) (Conditional update) • And tistow = t (Conditional update) - tprev = t (Systematic update)
[0100] The term (t - tprev) / 2 corresponds to half the duration of the current fast task and makes it possible to target Dt as closely as possible, including by anticipation.
[0101] Furthermore, the method according to the invention can implement the following steps (illustrated in particular in Figures 2 and 3, or in patent applications WO2021 / 259662 and WO2022 / 078778, or in patent applications bearing the filing numbers FR21 / 13962 and FR22 / 00475), in real time: a. Current setpoints are determined, using the calculator and at the calculation time frequency, as a function of at least one torque setpoint and / or one rotation speed setpoint and / or one operating variable; b. Voltage setpoints are determined using the calculator from the determined current setpoints; c. A switching control signal for the inverter is generated by means of the computer from the determined voltage setpoints, the frequency of said switching control signal being the switching frequency; and d. The inverter is controlled by means of the generated switching signal.
[0102] Thus, the inverter is controlled with a switching frequency which limits the harmonics, and with calculations at a calculation time frequency which limits the control security problems (with a limitation of contradictory random phenomena).
[0103] According to one embodiment of the invention, it is also possible to implement at least one step of estimating at least one temperature and / or at least one magnetic flux within the electrical machine, by means of the calculator and at a calculation time frequency. The estimation step can be implemented at a calculation time frequency (which may be different from the calculation time frequency for determining the current setpoints).
[0104] For this embodiment, the current setpoints and / or the voltage setpoints can be determined as a function of the estimation of at least one temperature and / or at least one magnetic flux. Thus, the control determines a representation of a physical quantity of the electrical machine, and the control is therefore adapted to the operation of the electrical machine.
[0105] Furthermore, the invention relates to a system for controlling a synchronous electrical machine comprising an inverter provided with switching arms, a computer and a memory configured to implement the steps of the control method according to any one of the preceding variants or according to any one of the combinations of preceding variants, to apply the switching frequency to the inverter, and to apply said calculation time frequency of at least one calculation function of the computer.
[0106] Preferably, the electrical machine may be a permanent magnet assisted synchronous-reluctant machine or a permanent magnet synchronous machine.
[0107] According to one implementation, the control system may in particular be in accordance with the embodiments of Figures 2 and 3. However, the control system may be adapted to other embodiments, for example those described in patent applications WO2021 / 259662 and WO2022 / 078778, or in the patent applications bearing the filing numbers FR21 / 13962 and FR22 / 00475.
[0108] As goes without saying, the invention is not limited to the embodiments described above as examples; on the contrary, it encompasses all variant embodiments. Example of application:
[0109] The characteristics and advantages of the method according to the invention will appear more clearly on reading the application example below.
[0110] An example of implementation of the method according to an embodiment of the invention is given below, for a synchronous electrical machine with 4 pairs of poles, and with a “cutting” of the electrical frequency by a factor of 12 (in other words, for this example, we consider that fd = 12 x / J. The “slow” calculation task ideally has a period of one millisecond (in other words the reference calculation time frequency is 1 kHz).
[0111] A non-linear variation in speed (mechanical rotation speed) is applied to the electric machine from approximately 10000 rpm to 15000 rpm. [Fig.7] illustrates the speed of the electric machine co as a function of time T in ms.
[0112] The method according to the invention is applied, and a coefficient of proportionality kl is determined between the cutting speed and the time speed of calculation. [Fig.8] illustrates the coefficient of proportionality kl as a function of time T in ms. It can be seen that this coefficient is indeed dynamically adapted and systematically integer.
[0113] The determined calculation time frequency is applied. [Fig.9] illustrates the period D in ms of the calculation (linked to the calculation time frequency) as a function of time in ms. In this figure, the periods D are illustrated on three scales: Dins corresponds to the instantaneous period, i.e. the current calculation period, Dmi0 corresponds to the average of the instantaneous period over 10 ms, and Dm2oo corresponds to the average of the instantaneous period over 200 ms.
[0114] We can see that: - from the 10 ms scale, the effective period is less than 1% of the reference (1 ms). - from the 200 ms scale, the error is of the order of one in 10000 compared to the reference.
[0115] Consequently, the average of the calculation time frequency is very close to the reference calculation time frequency. Thus, the method according to the invention guarantees that on average, over a reduced duration, the effective period of the time task is at the chosen reference.
Claims
Claims
1. Method for controlling an electrical machine (MEL) driven by an inverter (OND) controlled by a computer (CAL), said control method being designed to apply a chopping frequency of the electric current by said inverter (OND) to said electrical machine, and to perform a calculation by at least one function of said computer at a calculation time frequency, each function of said computer having a reference calculation time frequency, characterized in that the following steps are implemented: a. An electrical frequency of said electrical machine (MEL) is acquired; b. A chopping frequency is applied to said inverter (OND) such that said chopping frequency is proportional to said determined electrical frequency, a coefficient of proportionality between said chopping frequency and said electrical frequency being an integer; and c.A calculation time frequency is applied to at least one function of said calculator (CAL) such that the switching frequency is proportional to said calculation time frequency, a coefficient of proportionality between said switching frequency and said calculation time frequency being a variable integer, and such that the average of the calculation time frequency is equal to said reference calculation time frequency.
2. Control method according to claim 1, wherein said function of said calculator (CAL) is chosen from a function for determining current setpoints (CONS), a thermal estimator (EST), a magnetic flux estimator (EST).
3. Control method according to one of the preceding claims, in which said electrical frequency of said electrical machine is determined by means of a formula f = 2^04, with f said electrical frequency, an electrical rotation speed of the rotor of said electrical machine.
4. Control method according to claim 3, wherein one determines said electrical rotation speed by multiplying a mechanical rotation speed of the rotor of said electrical machine by the number of pairs of poles of said electrical machine.
5. Control method according to claim 4, wherein said mechanical rotation speed of said electrical machine is measured by means of an angular position sensor (CAP) or a rotation speed sensor.
6. Control method according to one of the preceding claims, in which said average of the calculation time frequency is determined over a time window.
7. Control method according to one of the preceding claims, in which the following steps are implemented: a. Current setpoints are determined, by means of said calculator (CAL) and at said calculation time frequency, as a function of at least one torque setpoint and / or one rotation speed setpoint; b. Voltage setpoints are determined, by means of said calculator (CAL), from the determined current setpoints; c. A switching control signal for said inverter is generated, by means of said calculator (CAL), from said voltage setpoints, the frequency of said switching control signal being said switching frequency; and d. Said inverter (OND) is controlled by means of said switching signal.
8. Control method according to claim 7, in which at least one step of estimating (EST) at least one temperature and / or at least one magnetic flux within said electrical machine is further implemented, by means of said calculator (CAL) and at said calculation time frequency.
9. Control method according to claim 8, in which said current setpoints and / or said voltage setpoints are determined by means of said estimation of at least one temperature and / or at least one magnetic flux within said electrical machine.
10. Control system for an electrical machine (MEL) comprising an inverter (OND) provided with switching arms, a computer (CAL) and a memory configured to implement the steps of the control method according to one of the preceding claims to apply said switching frequency of said inverter (OND) and to apply said calculation time frequency of at least one function of said calculator (CAL), preferably said electrical machine (MEL) is a synchronous-reluctant machine assisted by permanent magnets or a permanent magnet synchronous machine.
