WO2009049501A1 - A motor control method and device by using space vector pulse width modulation - Google Patents

A motor control method and device by using space vector pulse width modulation Download PDF

Info

Publication number
WO2009049501A1
WO2009049501A1 PCT/CN2008/070145 CN2008070145W WO2009049501A1 WO 2009049501 A1 WO2009049501 A1 WO 2009049501A1 CN 2008070145 W CN2008070145 W CN 2008070145W WO 2009049501 A1 WO2009049501 A1 WO 2009049501A1
Authority
WO
WIPO (PCT)
Prior art keywords
phase
motor
current
value
carrier cycle
Prior art date
Application number
PCT/CN2008/070145
Other languages
French (fr)
Chinese (zh)
Inventor
Meijuan Xie
Weiyi Lin
Yunzhou Fang
Original Assignee
Chery Automobile Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chery Automobile Co., Ltd. filed Critical Chery Automobile Co., Ltd.
Publication of WO2009049501A1 publication Critical patent/WO2009049501A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P27/00Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
    • H02P27/04Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage
    • H02P27/06Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using dc to ac converters or inverters
    • H02P27/08Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using dc to ac converters or inverters with pulse width modulation
    • H02P27/12Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using dc to ac converters or inverters with pulse width modulation pulsing by guiding the flux vector, current vector or voltage vector on a circle or a closed curve, e.g. for direct torque control

Definitions

  • the present invention relates to motor control techniques, and more particularly to a motor control method and apparatus employing space vector pulse width modulation.
  • the following describes the method of space vector control by taking a three-phase bridge voltage type inverter as an example.
  • the basic function of the three-phase bridge voltage type inverter is to convert the DC bus voltage Ud into a three-phase AC voltage for driving a three-phase motor, and the rotating magnetic field generated by the alternating three-phase AC voltage causes the motor to rotate at a certain speed. .
  • FIG. 1 shows the basic circuit structure of a three-phase bridge voltage type inverter.
  • the inverter mainly comprises a three-phase motor having a three-phase winding Z, and the three-phase winding has three pairs of bridge arms, respectively labeled as A phase, B phase, and C phase; each pair of bridge arms includes an upper arm and a lower bridge.
  • the arm and each arm are controlled by the controllable high-power switching device to control the opening and closing of the bridge arm.
  • the midpoints a, b and c of the upper and lower arms of each phase are connected to one end of the corresponding phase winding of the motor, and the motor phase windings
  • the other end point is the common junction n of the three-phase winding.
  • the DC bus voltage U d can be converted into an AC voltage having a certain frequency, which flows into the three-phase motor to rotate the three-phase motor.
  • the DC bus voltage Ud is expressed as two Ud/2, and the midpoint is zero.
  • the vector control method is used to control the three-phase motor, that is, each arm of the inverter is controlled to be turned on according to a certain frequency and sequence; in order to indicate different working states of the inverter, the on-off state of each bridge arm is used in a three-dimensional manner.
  • Space vector to represent Since the upper arm and the lower arm of each pair of bridge arms cannot be simultaneously turned on, the three-dimensional space vector is sufficient to indicate the working state of all the bridge arms, and further indicates the working state of the inverter, which indicates the inverter.
  • the three-dimensional space vector of the working state of the device is called a voltage space vector.
  • the motion of the three-dimensional space vector corresponding to the three-phase windings of A, B, and C is represented on the three-dimensional coordinates, and the three coordinate axes of the three-dimensional coordinates are respectively A, B corresponding to the three phases of A, B, and C,
  • the C-axis is 120 degrees from each other on the graph.
  • the voltage vectors corresponding to the respective axes are ⁇ , u b , and u c , respectively .
  • the three-phase inverter will have a total of eight working states, and the eight working states include six effective vectors.
  • S VPWM space vector pulse width modulation
  • SPWM space vector pulse width modulation
  • the use of space vector theory to control the inverter can reduce the switching times of switching devices by one-third, and the DC voltage utilization rate is increased by one percent. Fifteen, can get better harmonic suppression effect, and easy to achieve digital control.
  • the space vector pulse width modulation method provided by the prior art directly uses the switching state hexagon based on the calculation of the space vector modulation signal in FIG. 2, which requires complicated online sine function and inverse tangent function operation, resulting in The computational complexity is large, and its complex algorithm has a negligible impact on high-precision real-time control.
  • some methods for simplifying the space vector pulse width modulation have also appeared. For example, the method of patent number US6, 819, 078 B2 "SPACE VECTOR PWM MODULATOR FOR PERMANENT MAGNET MOTOR DRIVE", although Some improvements are conventional, but since the modulation based on the hexagonal state of the switch state is still inevitable, the modulation steps are inevitably complicated and complicated.
  • the space vector pulse width modulation software is implemented based on a single chip microcomputer or a digital signal processor (DSP). Many instructions need to be executed. The code length, especially the execution time of software instructions, cannot meet the high performance control system in some applications. Design requirements.
  • the switching state of the power transistor is usually driven by an interrupt.
  • the microprocessor or DSP considering the execution delay time of the CPU and the code execution time in the interrupt, the above-mentioned voltage space vector control requires a higher performance microprocessor or DSP. The above problems cause the cost of the space vector control device to be increased, and the high-performance real-time control requirements cannot be met.
  • the technical problem to be solved by the present invention is to provide a motor control method and apparatus using space vector pulse width modulation to simplify the prior art space vector pulse width modulation calculation process and meet the requirements of high performance real time control.
  • the present invention provides a motor control method using space vector pulse width modulation, including:
  • a PWM driving signal corresponding to the upper and lower arms of each phase of the inverter is generated, and the on and off of the respective arms of the inverter in the current carrier cycle are controlled.
  • the method of calculating the SPWM vector modulated signal comprises the steps of:
  • the calculating the sinusoidal pulse width modulation SPWM vector modulation signal of each phase of the current carrier cycle is:
  • the motor operating state detection data and the command data are obtained by triggering an interrupt update sampling value at a midpoint of the carrier cycle.
  • the motor running state detection data includes: a motor rotor position angle, a motor rotor angular velocity, and a motor current; the motor rotor position angle is detected by a rotor position detector to obtain a rotor rotor position angle, and the motor rotor angular velocity is according to the adjacent The rotor position angle difference is obtained by dividing the sampling time.
  • The zero sequence ⁇ * is recorded by the following formula
  • M * - :max ⁇ *, M *, M *)-(l- :).min ⁇ *, M *, M *)+(2 :-l);
  • is a zero-order component;
  • is The SPWM vector modulation signal of each phase in the carrier cycle;
  • K is a constant greater than or equal to zero and less than or equal to 1.
  • the obtaining a duty ratio of each phase in the carrier period according to the SVPWM vector modulation signal is specifically calculated by using the following formula:
  • ⁇ ⁇ ⁇ is the on-time of each phase
  • M d is the DC bus voltage, and is the sampling period
  • T s is the corresponding phase The duty Than.
  • the generating according to the determined duty ratio of each phase in the current carrier cycle, generating a PWM control signal corresponding to each phase, specifically: counting a carrier period by using a counting register, where the counting register value is a time base period The value stored in the register TBPRD; a carrier cycle includes the value of the count register increasing from 0 to the value saved by TBPRD, and then counting down from the value held by TBPRD to 0 symmetrical process; calculating according to the duty ratio of each phase A count compares the value of register A, where the calculated formula is:
  • the invention also provides a motor control device using space vector pulse width modulation, comprising: an SPWM vector modulation signal calculation unit, configured to receive motor running state detection data and instruction data obtained in a current carrier cycle, and calculate correspondingly according to the calculation SPWM vector modulated signal of carrier period;
  • An SVPWM vector modulation signal calculation unit configured to receive an SPWM vector modulation signal output by the SPWM vector modulation signal calculation unit, and add a zero sequence component corresponding to a carrier period to the vector modulation signal to obtain an SVPWM vector modulation in the carrier period Signal
  • a duty ratio calculation unit configured to receive the output of the SVPWM vector modulation signal calculation unit
  • the SVPWM vector modulates the signal, and calculates a duty ratio of each phase in the current carrier cycle according to the SVPWM vector modulation signal;
  • a PWM control signal generating unit configured to receive a duty ratio of each phase in a current carrier period output by the duty ratio calculating unit, and accordingly generate a PWM control signal corresponding to each phase duty ratio in the carrier period;
  • the SPWM vector modulation signal calculation unit includes:
  • the current command value determining subunit is configured to receive the motor rotor angular velocity of the current carrier cycle obtained by the detection, and the current motor torque command value, and obtain the current command value i d x of the synchronous rotating coordinate system d-axis and the q-axis through the motor characteristic table. , i q x ;
  • a fixed/synchronous coordinate converter configured to receive a motor current detection value of a current carrier cycle, and a rotor position detection value, and calculate an actual current value i d , iq of the d-axis and the q-axis of the synchronous rotating coordinate system according to the above value;
  • a current controller for receiving the current command value /, of the d-axis and the q-axis, and the actual current value i q of the d-axis and the q-axis, and calculating the d-axis voltage of the synchronous rotating coordinate system in combination with the motor rotor angular velocity obtained by the detection Command value and q-axis voltage command value V d *; V*;
  • a synchronous or fixed coordinate converter for receiving the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value, and converting the same into a three-phase voltage command value output in a stationary coordinate system; the stationary coordinate system
  • the lower three-phase voltage command value is the desired SPWM vector modulation signal.
  • the motor rotor angular velocity, the motor current, and the current motor torque command value are all sampled at the midpoint of the carrier cycle.
  • a duty ratio calculation unit is obtained by calculation using the following equation ;; h and the phases in the current duty cycle of the carrier cycle:
  • the PWM control signal generating unit includes:
  • the counting register is configured to perform frequency counting on each carrier cycle to implement time measurement of the carrier cycle;
  • the register value of the counting register is a value saved by TBPRD, and the timing of one carrier cycle includes counting from 0 to TBPRD. Value, then two symmetrical processes that count down from the value held by TBPRD to 0;
  • the comparison value calculation unit is configured to receive each phase duty ratio in the current carrier cycle output by the duty ratio calculation unit, and calculate a comparison value according to each phase duty ratio; the specific calculation formula is:
  • CMPA TBPRD * J1 / 2 -
  • comparison result output unit configured to receive the comparison value of each phase output by the comparison value calculation unit, and compare the comparison value with the current count value of the count register, and generate the result according to the comparison result
  • the rotor position detector is a resolver or a Hall position sensor.
  • the method and the device provided by the invention add the zero-sequence component of the corresponding carrier period to the SPWM vector modulation signal of each carrier cycle, that is, obtain the SVPWM vector modulation signal, and the method for obtaining the SVPWM signal has fewer steps and is simple to calculate.
  • Real-time control of the motor can be realized with a cheaper control chip.
  • the prior art uses an SVPWM vector modulation signal based on a switch state hexagon to calculate each carrier cycle, and the calculation method requires calculation using a plurality of trigonometric functions. The process is complicated, if the control chip is used, the control chip will not achieve good real-time control effect.
  • the method and device provided by the invention simplify the calculation process of the SVPWM vector modulation signal, thereby reducing the requirement of the control chip required for implementing the SVPWM control, and expanding the application range of the SVPWM vector modulation signal motor control mode. .
  • 1 is a basic circuit structure of a three-phase bridge voltage type inverter in the prior art
  • FIG. 3 is a flow chart of a motor control method using space vector pulse width modulation according to a first embodiment of the present invention
  • FIG. 4 is a flow chart showing a typical method for calculating an SPWM vector modulated signal w a *, u b M c * in the present invention
  • FIG. 5 is a schematic diagram of the space vector required for combining the effective vector and the zero vector in the present invention
  • FIG. 6 is a method for obtaining a required space vector using the SVPWM modulated signal in the present invention
  • FIG. 7 is a timing chart of the carrier period in the present invention. Schematic diagram of implementation principle
  • Figure 8 is a schematic view showing the control of the three-phase bridge arm on and off using the comparative value CMPA in the present invention
  • Figure 9 is a block diagram showing the structure of the second embodiment of the present invention.
  • the first embodiment of the present invention provides a motor control method using space vector pulse width modulation, which is used to provide a PWM control signal to the three-phase bridge inverter shown in Fig. 1.
  • the PWM control signal is provided to enable the three-phase bridge inverter to output three-phase alternating current, which obtains a circular rotating magnetic field of a desired speed on the stator of the motor, so that the rotor of the motor outputs a corresponding speed.
  • the control method provided by this embodiment is as follows: First, the three-phase vector modulation signal Ma *, u b u c ⁇ is calculated according to the current motor running detection data and the command data to the three-phase vector modulation signal Ma *, u b Me * zero sequence component was added, to obtain the cycle carrier-phase SVPWM modulation signal u * u b * u **; according to the three-phase SVPWM modulation signal w a **, u * is obtained in the respective phases of the carrier cycle Duty cycle; according to the obtained duty cycle of each phase, each arm of the control inverter is turned on and off in turn.
  • the method of implementing the above various steps will be specifically described below.
  • FIG. 3 illustrates a space vector pulse width modulation according to a first embodiment of the present invention.
  • Flowchart of the motor control method The following is a detailed introduction with the figure.
  • the motor driven in this embodiment is a three-phase 7jC magnetic synchronous motor.
  • Step S301 calculating, according to the motor running state detection data and the command data of the current carrier cycle, each phase SPWM vector modulation signal w a *, u b u c corresponding to the carrier cycle.
  • the vector modulation signal SPWM w a *, u b M c * and the motor control requirements of the state detector is obtained by calculation obtained.
  • the prior art has provided a variety of specific calculation methods, and a typical calculation method is briefly described below.
  • FIG. 4 there is shown a flow diagram of a typical method of calculating SPWM vector modulated signals w a *, u b u c *.
  • step 401 the three-phase current, the DC bus voltage, and the rotor running speed of the motor are detected.
  • the three-phase current of the motor is obtained by detecting a current sensor mounted on any two phases of the motor. Since the sum of the currents flowing into the same node is zero, the current value of the other phase can be calculated according to the two-phase current obtained by the detection.
  • the DC bus voltage is obtained by detecting a DC bus by a voltage sensor.
  • the rotor running speed is obtained by detecting the rotor position angle of the adjacent sampling time and then calculating it.
  • the rotor position angle can be obtained by a resolver or Hall element detection.
  • the rotor angular difference value of the adjacent sampling interval is divided by the sampling time to obtain the rotor angular velocity ⁇ ; the above calculation formula is expressed as follows: , where 0 represents the rotor position obtained at the current sampling time K detection
  • 0 7 represents the rotor position angle obtained at the previous sampling time (K-1); it is the sampling interval.
  • Step 402 Receive a command value for the motor torque.
  • the motor torque command value is a motor torque command value determined according to the demand of the load, and the motor torque command value is related to the magnitude of the external load and the rotational speed requirement of the motor, and is calculated according to the basic torque formula.
  • Step 403 According to the rotor position angle of the motor, the rotor angular velocity, and the motor torque command value, the current command value of the d-axis and the q-axis is obtained by providing a maximum torque characteristic table by the unit current of the motor, that is, id i q
  • the d-axis and the q-axis are coordinate axes of the synchronously rotated coordinate system of the transformed motor, and the transformation process
  • the motor stationary coordinate system is transformed into a synchronous synchronous coordinate system of the motor, and the static three-axis coordinate is transformed into two-axis coordinates, which is called 3/2 transformation or fixed/synchronous coordinate transformation.
  • the motor torque command value reflects the expectation of the motor torque
  • the rotor position angle and the rotor angular speed of the motor reflect the actual running condition of the motor.
  • the current required for the d-axis and the q-axis when the motor is operated as needed can be known.
  • the current is the current command values i d x , iq x of the d-axis and the q-axis.
  • Step S404 using the current detection value of the step S401, calculating an actual current value of the synchronous rotating coordinate system.
  • the three-phase current obtained by the detection can be converted into the actual current value of the coordinate axis on the synchronous rotating coordinate system, that is, the d-axis current value i d and the q-axis on the synchronous rotating coordinate system.
  • Step S405 Calculate the d-axis voltage command value and the q-axis voltage command value according to the calculation results of the above steps.
  • step S404 obtains the d-axis current value q-axis current value iq on the synchronous rotating coordinate system, the value
  • the actual current values of the d-axis and the q-axis are expressed, and based on the above results, the d-axis voltage command value M and the q-axis voltage command value M can be calculated, and the above values represent expected values for the d-axis and q-axis voltages.
  • the specific calculation method is as follows:
  • the d-axis voltage vector is the product of the PI control output value of the pair / i d minus the motor pole pair, the rotor angular velocity ", the q-axis inductance ⁇ and the q-axis voltage vector u is the pair i and
  • Step S406 converting the d-axis voltage command value M and the q-axis voltage command value in the synchronous rotating coordinate system into a three-phase voltage command value in a stationary coordinate system: u a u h u * , that is, SPWM three-phase vector modulation
  • the signal command value that is, the SPWM vector modulation signal.
  • the transformation process of this step is the inverse of the above 3/2 transformation process, called 2/3 transformation, or synchronous or fixed coordinate transformation.
  • the above method of obtaining the SPWM vector modulation signals M a *, M e * has existed in the prior art, and there are various ways in the prior art to obtain the above SPWM vector modulation based on the speed or torque command value and the detected rotor operating speed.
  • the method of the signals w a *, u b M c * since no special improvement is made in this process in the present invention, the above process will not be described in detail herein.
  • a set of SPWM vector modulated signals w a *, u b u c can be obtained by the prior art or even various methods that may be generated in the future.
  • CTR (Counter value) 0 is used.
  • Step 302 Add a zero sequence component corresponding to the carrier period to the SPWM vector modulation signals u a *, u b *, u e *, respectively, to obtain each phase SVPWM vector modulation signal Ma **, u b in the carrier cycle. * c .
  • the three-phase vector modulation signals M a *, u b M e * are three-phase vector modulated signals obtained according to the SPWM principle, the number of switchings controlled using the above three-phase vector modulated signals is more than that of using SVPWM three-phase vector modulated signals.
  • the utilization of the DC voltage is correspondingly low, and more harmonic components are generated.
  • Purpose of this example is the three-phase vector modulation signals * ⁇ * into three-phase space vector, the specific method used is the three-phase vector modulation signal M a A zero sequence component is added to M C * to obtain an SVPWM vector modulation signal corresponding to the SPWM vector modulation signal.
  • PWM modulation a vector required for synthesis, such as the space vector shown in Fig. 2, is obtained.
  • FIGS. 5 and 2 For the space vector shown in Fig.
  • the above-mentioned action time is symmetrically distributed on the carrier period T s , that is, a time distribution diagram corresponding to the effective vector 2 and the zero vector ⁇ sum shown in FIG. 5 is obtained, and the horizontal axis of the graph represents the effective vector, 2 and zero vectors ⁇
  • the space vector can be synthesized; the above-mentioned effective vector, u 2 and zero vector ⁇ /.
  • the action time of ⁇ and ⁇ needs to be implemented to the A, B, C three-phase conduction time to achieve control.
  • the action time T ⁇ . 7 is shown symmetrically in Figure 5, which is for ease of calculation. The above is obtained by theoretical derivation
  • the three-phase conduction of A, B, and C required for the inter-vector ab it can be seen that the three-phase conduction time of A, B, and C can be expressed as follows:
  • Fig. 6 shows a method of obtaining the above-described space vector using the SVPWM three-phase modulation signals C/ a **, C/ b **, C/ c **. Due to the carrier period; very short, the voltage value of C/ a **, U b * in the period can be considered to be fixed, that is, the line parallel to the horizontal axis shown in Fig. 6, the above SVPWM three-phase modulation signal U *
  • the action time ⁇ ⁇ , T b , 7 of U b * C/ c ** is the action time of the three phases A, B and C calculated according to formula (3).
  • K is a constant greater than or equal to 0 and less than or equal to 1, and the constant can be taken as needed.
  • the value of ⁇ is often taken as 0.5 to obtain the effect of simplifying the equation (6).
  • Step S303 obtaining duty ratios of the phases in the current carrier cycle according to the SVPWM three-phase modulation signals C/ a **, U*U*.
  • step S303 the current SVPWM three-phase modulation signals C/ a **, U b * U * have been obtained and brought into the formula (4), and the duty ratios of the three phases A, B, and C can be obtained:
  • the duty cycle is the duty cycle corresponding to one carrier cycle.
  • Step S304 ⁇ is determined by the duty ratio of each phase, and a PWM control signal corresponding to each phase is generated.
  • FIG. 7 shows the implementation principle of timing the carrier period. Since it is necessary to control the duty ratio of the on-time of each phase in one carrier cycle, it is necessary to have a time unit capable of measuring the carrier cycle, and specifically, the clock frequency of the control system can be used.
  • the carrier frequency of the PWM signal is ⁇ , that is, one carrier period is ⁇ , and the carrier period can be timed by the clock frequency of the control system of 100 Mhz.
  • the minimum count time step T TBCLK value is 0. 01 ⁇ 8 , that is, one carrier cycle contains 10000 time units.
  • TBPRD a register value of TBPRD
  • Fig. 8 shows a method of controlling the on and off of a three-phase bridge arm using the comparison value CMPA. In conjunction with the figure, the phase A is taken as an example to illustrate the control process of the phase.
  • the design number is directly CTR.
  • CTR 0, the current carrier cycle starts. At this time, CTR ⁇ CMPA, PWM control signal & keeps low.
  • CTR CMPA, and the count register is in the up counting phase, PWM is generated.
  • Step S305 generating a driving signal for the upper and lower arms of each phase of the inverter according to the PWM control signal.
  • the above process causes the PM control signal output to obtain the required duty cycle in the carrier cycle, most preferably into the space vector required in the carrier cycle.
  • the process of implementing the duty cycle control is a relatively simple implementation in the prior art. In fact, other methods can be used to obtain the required duty cycle. Those skilled in the art can perform the steps according to this step. Control the requirements, design other forms of control, so that the PWM control signal The duty cycle output.
  • a second embodiment of the present invention provides a motor control apparatus that implements space vector pulse width modulation.
  • FIG. 9 there is shown a block diagram of the unit composition of the second embodiment of the present invention.
  • the motor control apparatus using space vector pulse width modulation includes an SPWM vector modulation signal calculation unit 91, an SVPWM vector modulation signal calculation unit 92, a duty ratio calculation unit 93, a PWM control signal generation unit 94, a drive signal generation unit 95, and a rotor. Position detector 96 and speed calculator 97.
  • the figure also shows the controlled object motor 90, and the inverter 98.
  • the motor 90 is specifically a 7 j synchronous electrode.
  • the SPWM vector modulation signal calculation unit 91 is configured to receive motor running state detection data and command data obtained in a current carrier cycle, and calculate an SPWM vector modulation signal corresponding to a carrier cycle accordingly. Since there are various calculation methods for calculating the SPWM vector modulation signal in the prior art, different calculation methods may require different motor state detection parameters, and thus the motor running state detection data is different according to different SPWM vector modulation signals, generally
  • the motor running state detection data mainly includes data such as a motor rotor position angle, a motor rotor angular speed, and a motor current. As shown in FIG. 9, the rotor position detector 96 is used to detect the rotor position angle of the motor.
  • the rotor position detector 96 generally uses a spin-on transformer or a Hall position sensor, and the direct detection result is the sine value of the rotor position angle.
  • the cosine value can be obtained by trigonometric function calculation and the rotor position angle can be obtained.
  • the speed calculator 97 receives the rotor position angle detection result output from the rotor position detector 96, and calculates the motor rotor angular speed ⁇ using the formula ⁇ , which is explained in the first embodiment.
  • the current of the two phases of the three-phase input of the motor 90 can be detected by various methods, as shown in FIG. , i c .
  • the SPWM vector modulation signal calculation unit 91 includes a current command value determination subunit 911, a fixed/synchronous coordinate converter 912, a current controller 913, and a synchronous or fixed coordinate transformation subunit 914.
  • the current command value determining subunit 911 is configured to receive the motor rotor angular velocity ⁇ of the current carrier cycle obtained by the detection, and the current motor torque command value ⁇ , and the maximum torque characteristic table can be provided by the unit current of the motor 90 to obtain synchronous rotation.
  • the motor torque command value comes from the demand of the main control unit for the motor torque, and the command value determines the working demand for the motor.
  • the unit current can provide a maximum torque characteristic table which is a data table reflecting the characteristics of the motor, and each permanent magnet synchronous motor has a corresponding data table.
  • the fixed/synchronous coordinate converter 912 is configured to receive a motor current detection value of a current carrier cycle, and use the current detection value, and the rotor position detector 96 detects the rotor position angle of the motor, and obtains a synchronous rotation coordinate system d.
  • a current controller 913 configured to receive current command values /, i q of the d-axis and q-axis and actual current values i d , iq of the d-axis and the q-axis, and calculate a synchronous rotating coordinate system d-axis voltage command accordingly Value and q-axis voltage command value ⁇ , ⁇ M , d-axis voltage vector is the product of the PI control output value of the pair/and minus the motor pole pair, the rotor angular velocity, and the q-axis inductance; the q-axis voltage vector u is the pair The sum of the PI control output value of i and the product of the motor pole pair, rotor angular velocity, q-axis inductance and id, and the motor pole pair P, ⁇ , permanent magnet flux m.
  • the synchronous or fixed coordinate converter 914 is configured to receive the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value M / u q and convert it into a three-phase voltage command value output M in a stationary coordinate system.
  • the three-phase voltage command value ⁇ ⁇ *, ' M C * in the stationary coordinate system is the desired SPWM vector modulation signal.
  • a vector modulation signal SPWM 91 receives the output from the vector modulation signal SPWM calculation unit ⁇ , ⁇ u b u should be added to the carrier cycle c to vector modulation signal Obtaining the SVPWM vector modulation signal ⁇ *, ⁇ u b * u c * in the carrier period.
  • the value calculated by the SPWM vector modulation signal calculation unit 91 is brought into the above zero sequence component calculation formula to obtain zero for the carrier cycle.
  • Order component Since the SPWM vector modulation signal u of the current carrier cycle; u b M c * depends on the calculation result of the detection signal obtained by sampling in the current carrier cycle, the sampling of the current carrier cycle has not been performed just after entering the carrier cycle, so actually, The SPWM vector modulation signal ⁇ , ⁇ u b u * used for the above calculation is performed using the sample value obtained in the previous carrier cycle. Since the state of the motor in the adjacent carrier cycle does not change much, the result of such calculation can satisfy the demand. ,
  • the duty ratio calculation unit 93 is configured to receive the SVPWM vector modulation signal calculation unit
  • the output SVPWM vector modulated signal u a ** / u b * u * and the duty cycle of each phase in the current carrier cycle is calculated according to the SVPWM vector modulation signal ⁇ *, ⁇ u b * O.
  • the duty ratio of each phase can be calculated according to the following formula: ' a. , b, c:
  • Nf + represents the SVPWM three-phase modulation signal at the sampling time.
  • the PWM control signal generating unit 94 is configured to receive the duty ratios of the phases in the current carrier cycle output by the duty ratio calculating unit 93, and generate PWM control signals &, S h corresponding to the respective phases according to the PWM control signals S c .
  • the unit includes a count register 941, a comparison value calculation unit 942, and a comparison result output unit 943.
  • the counting register 941 is configured to perform frequency division counting on each carrier cycle to implement time measurement of the carrier cycle. There are many ways to time meter the carrier cycle. A typical approach is provided below.
  • the register value of the count register 941 is set to a value saved by TBPRD. From the time of entering the carrier cycle, the counter is incremented from 0 to the value saved by TBPRD, and then subtracted from the value saved by TBPRD. Counting to 0, just ending a carrier cycle. During this timing, one carrier cycle includes two symmetric counting processes.
  • the counter unit of the counter generally adopts the minimum clock frequency of the system. After the minimum clock frequency is determined, the value saved by the time base period register TBPRD can be calculated according to the value of the carrier period;
  • the comparison value calculation unit 942 is configured to receive each phase duty ratio in the current carrier cycle output by the duty ratio calculation unit 93; 7 / a, b, c , and calculate corresponding to each phase duty ratio
  • the comparison value of the phase is as follows: ⁇ ⁇ t / 2.
  • the comparison result output unit 943 is configured to receive the comparison values of the phases output by the comparison value calculation unit 942, compare the comparison value with the current count value of the count register 941, and generate corresponding PWM control according to the comparison result. signal.
  • Corresponding to each phase is &, S b , S c .
  • the comparison value of the corresponding A phase duty is the comparison comparison register A (CMPA, A counter compare register).
  • CMPA comparison comparison register
  • the driving signal generating unit 95 receives the PWM control signal generating unit 94 to output a PWM control signal corresponding to each phase, thereby generating complementary two PWM driving signals corresponding to the respective phases, respectively driving the upper and lower arms of the phase.
  • the PWM drive signal includes PWM a , PWM a Down, PWM b , PWM b , PWM C , PWM C , corresponding to the upper and lower arms of A, B, C three phases.
  • the dead zone is not set, the upper and lower arms of each phase are complementarily turned on.
  • the dead zone setting is adopted, the lower arm has a delay or a complementary stagnation of the upper arm.
  • the motor control device provided in this embodiment can be implemented by using a DSP TMS320f2808 chip. It should be noted that the register value and the value saved by TBPRD in the present invention are generally equivalent.

Abstract

A motor control method and device by using space vector pulse width modulation. The method comprises computing a SPWM vector modulation signal of each phase in the current carrier period; adding the SPWM vector modulation signal of each phase to the zero sequence component corresponding to the carrier period in order to obtain a SVPWM vector modulation signal of each phase in the carrier period; obtaining duty ratio of each phase in the current carrier period according to the SVPWM vector modulation signal of each phase; generating a PWM control signal of each phase according to the determined duty ratio of each phase in the current carrier period; and generating PWM drive signals for the corresponding upper and lower arms of each phase of an inverter according to the PWM control signal in order to control on and off of each arm of the inverter in the current carrier period.

Description

一种采用空间矢量脉冲宽度调制的电机控制方法和装置 本申请要求于 2007 年 10 月 19 日提交中国专利局、 申请号为 200710163379.8、 发明名称为"一种采用空间矢量脉冲宽度调制的电机控制方 法和装置"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  A motor control method and device using space vector pulse width modulation. The present application claims to be submitted to the Chinese Patent Office on October 19, 2007, the application number is 200710163379.8, and the invention name is "a motor control method using space vector pulse width modulation". The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference. Technical field
本发明涉及电机控制技术,具体地说涉及一种采用空间矢量脉冲宽度调制 的电机控制方法和装置。  The present invention relates to motor control techniques, and more particularly to a motor control method and apparatus employing space vector pulse width modulation.
背景技术 Background technique
近几年来, 电机的空间矢量理论被引入到逆变器及其控制中, 其基本原理 就是利用逆变器各桥臂开关控制信号的不同组合,使逆变器的输出电压空间矢 量的运行轨迹尽可能接近圆形, 使用该输出电压为电机提供电源,使电机按照 需要的速度平滑运行。  In recent years, the space vector theory of electric motors has been introduced into inverters and their control. The basic principle is to use the different combinations of inverter bridge switch control signals to make the output trajectory of the output voltage space vector of the inverter. As close as possible to the circle, use this output voltage to power the motor so that the motor runs smoothly at the required speed.
以下以三相桥式电压型逆变器为例说明其空间矢量控制的方法。所述三相 桥式电压型逆变器的基本功能是将直流母线电压 Ud转化为驱动三相电机的三 相交流电压 , 该三相交流电压交变产生的旋转磁场使电机以一定的速度旋转。  The following describes the method of space vector control by taking a three-phase bridge voltage type inverter as an example. The basic function of the three-phase bridge voltage type inverter is to convert the DC bus voltage Ud into a three-phase AC voltage for driving a three-phase motor, and the rotating magnetic field generated by the alternating three-phase AC voltage causes the motor to rotate at a certain speed. .
请参看图 1 , 该图示出三相桥式电压型逆变器的基本电路结构。 该逆变器 主要包括对应三相电机具有三相绕组 Z, 对应该三相绕组具有三对桥臂, 分别 标记为 A相、 B相、 C相; 每对桥臂包括上桥臂、 下桥臂, 各桥臂均由可控的 大功率开关器件控制桥臂的通断, 各相上、 下桥臂的中点 a、 b、 c则连接电动 机相应相绕组的一个端点,电机各相绕组的另一个端点为三相绕组的公共接点 n。 通过控制六个桥臂的通断, 可以将直流母线电压 Ud转换为具有一定频率的 交流电压, 该交流电压流入三相电机, 使三相电机旋转。 图中直流母线电压 Ud表示为两个 Ud/2, 中点为 0。 Please refer to FIG. 1, which shows the basic circuit structure of a three-phase bridge voltage type inverter. The inverter mainly comprises a three-phase motor having a three-phase winding Z, and the three-phase winding has three pairs of bridge arms, respectively labeled as A phase, B phase, and C phase; each pair of bridge arms includes an upper arm and a lower bridge. The arm and each arm are controlled by the controllable high-power switching device to control the opening and closing of the bridge arm. The midpoints a, b and c of the upper and lower arms of each phase are connected to one end of the corresponding phase winding of the motor, and the motor phase windings The other end point is the common junction n of the three-phase winding. By controlling the on and off of the six bridge arms, the DC bus voltage U d can be converted into an AC voltage having a certain frequency, which flows into the three-phase motor to rotate the three-phase motor. In the figure, the DC bus voltage Ud is expressed as two Ud/2, and the midpoint is zero.
采用矢量控制方法对三相电机进行控制,就是控制逆变器各个桥臂按照一 定的频率和顺序依次导通; 为了表示逆变器的不同工作状态, 将各个桥臂的通 断状态用一个三维空间矢量来表示。 由于每一对桥臂的上桥臂、 下桥臂不能同 时导通, 因此, 该三维空间矢量足以表示所有桥臂的工作状态, 并进而表示该 逆变器的工作状态,这一表示逆变器工作状态的三维空间矢量称为电压空间矢 量。 在该电压空间矢量中, 采用 "1"表示上桥臂的导通, 下桥臂截至; 采用" 0" 表示上桥臂截至、 下桥臂导通; 该三维空间矢量的各个分量分别表示对应于电 机 、 B、 C三相的桥臂。 这样, 在进行交流逆变的过程中, 逆变器的工作过 程可以表示为一个如图 2所示的空间矢量六边形。 The vector control method is used to control the three-phase motor, that is, each arm of the inverter is controlled to be turned on according to a certain frequency and sequence; in order to indicate different working states of the inverter, the on-off state of each bridge arm is used in a three-dimensional manner. Space vector to represent. Since the upper arm and the lower arm of each pair of bridge arms cannot be simultaneously turned on, the three-dimensional space vector is sufficient to indicate the working state of all the bridge arms, and further indicates the working state of the inverter, which indicates the inverter. The three-dimensional space vector of the working state of the device is called a voltage space vector. In the voltage space vector, "1" is used to indicate the conduction of the upper arm, and the lower arm is closed; using "0" The upper arm is terminated and the lower arm is turned on; the respective components of the three-dimensional space vector respectively represent the bridge arms corresponding to the three phases of the motor, B, and C. Thus, in the process of performing AC inverter, the working process of the inverter can be expressed as a space vector hexagon as shown in FIG. 2.
图 2中, 在三维坐标上表示对应于 A、 B、 C三相绕组的三维空间矢量的 运动, 该三维坐标的三个坐标轴分别为对应于 A、 B、 C三相的 A、 B、 C轴, 相互之间在该图上呈 120度。 各轴对应的电压矢量分别为^、 ub、 uc。 该三相 逆变器总共会出现 8种工作状态, 这 8种工作状态包括六个有效矢量 In FIG. 2, the motion of the three-dimensional space vector corresponding to the three-phase windings of A, B, and C is represented on the three-dimensional coordinates, and the three coordinate axes of the three-dimensional coordinates are respectively A, B corresponding to the three phases of A, B, and C, The C-axis is 120 degrees from each other on the graph. The voltage vectors corresponding to the respective axes are ^, u b , and u c , respectively . The three-phase inverter will have a total of eight working states, and the eight working states include six effective vectors.
( )和两个零矢量( U oU 7 ), 可以看出图 2的六个有效矢量 ( ) and two zero vectors ( U o , U 7 ), we can see the six effective vectors of Figure 2.
( U - U e )形成一个开关状态空间六边形。在上述定义的矢量空间中可以用 各轴对应的电压矢量表示一个任意的空间矢量: (U - U e ) forms a switch state space hexagon. In the vector space defined above, an arbitrary space vector can be represented by the voltage vector corresponding to each axis:
9 9
U r = —( u a + e π u b + e ] " π U c ) U r = —( ua + e π u b + e ] " π U c )
3 ( 1 ) 进行空间矢量脉冲宽度调制 ( S VPWM , Space vector pulse width modulation ),就是依据该开关状态六边形获得以上述矢量表达式表示的一系列 以一定速率变化的旋转矢量, 该旋转矢量的终点形成一个圆形, 其实际效果就 是使电机定子形成一个圆形旋转磁场, 使电机按照要求的速率稳定运动。 与传 统的正弦脉宽调制 ( SPWM, Sine pulse width modulation )相比, 采用空间矢 量理论对逆变器进行控制, 可以使开关器件的开关次数减少三分之一, 直流电 压利用率提高百分之十五, 能获得较好的谐波抑止效果, 并易于实现数字化控 制。 3 ( 1 ) performing space vector pulse width modulation (S VPWM ), which is a series of rotation vectors obtained by the above vector expression and varying at a certain rate according to the switch state hexagon, the rotation vector The end point forms a circle, and the actual effect is to form a circular rotating magnetic field on the motor stator to stabilize the motor at the required rate. Compared with the traditional Sine pulse width modulation (SPWM), the use of space vector theory to control the inverter can reduce the switching times of switching devices by one-third, and the DC voltage utilization rate is increased by one percent. Fifteen, can get better harmonic suppression effect, and easy to achieve digital control.
现有技术提供的空间矢量脉冲宽度调制方法,均直接采用基于图 2中的开 关状态六边形进行空间矢量调制信号的计算,这种方法需要进行复杂的在线正 弦函数、反正切函数运算, 导致计算量大, 其复杂的算法对高精度实时控制产 生了不可忽视的影响。 目前, 也出现了一些对空间矢量脉冲宽度调制进行简化 的方法。 如在专利号为 US6 , 819 , 078 B2 "SPACE VECTOR PWM MODULATOR FOR PERMANENT MAGNET MOTOR DRIVE"的方法, 虽然较 常规的有些改进,但是由于依然是基于开关状态六边形的调制, 不可避免导致 调制步骤多而复杂。 The space vector pulse width modulation method provided by the prior art directly uses the switching state hexagon based on the calculation of the space vector modulation signal in FIG. 2, which requires complicated online sine function and inverse tangent function operation, resulting in The computational complexity is large, and its complex algorithm has a negligible impact on high-precision real-time control. At present, some methods for simplifying the space vector pulse width modulation have also appeared. For example, the method of patent number US6, 819, 078 B2 "SPACE VECTOR PWM MODULATOR FOR PERMANENT MAGNET MOTOR DRIVE", although Some improvements are conventional, but since the modulation based on the hexagonal state of the switch state is still inevitable, the modulation steps are inevitably complicated and complicated.
通常空间矢量脉冲宽度调制软件实现是基于单片机或者数字信号处理器 ( DSP, digital signal processor, ), 需要执行许多指令, 代码长度特别是软件指 令的执行时间不能满足某些应用中的高性能控制系统的设计要求。功率晶体管 的转换状态通常是由中断驱动的, 在微处理器或者 DSP中, 考虑到 CPU执行 中断延迟时间以及中断中代码执行时间,使得实现上述电压空间矢量控制需要 更高性能的微处理器或者 DSP。 上述问题造成空间矢量控制装置的成本提高 , 以及不能满足高性能的实时控制的要求。  Usually, the space vector pulse width modulation software is implemented based on a single chip microcomputer or a digital signal processor (DSP). Many instructions need to be executed. The code length, especially the execution time of software instructions, cannot meet the high performance control system in some applications. Design requirements. The switching state of the power transistor is usually driven by an interrupt. In the microprocessor or DSP, considering the execution delay time of the CPU and the code execution time in the interrupt, the above-mentioned voltage space vector control requires a higher performance microprocessor or DSP. The above problems cause the cost of the space vector control device to be increased, and the high-performance real-time control requirements cannot be met.
发明内容 Summary of the invention
针对上述缺陷, 本发明解决的技术问题在于,提供一种采用空间矢量脉冲 宽度调制的电机控制方法及装置,以简化现有技术的空间矢量脉冲宽度调制计 算过程, 满足高性能实时控制的要求。  In view of the above drawbacks, the technical problem to be solved by the present invention is to provide a motor control method and apparatus using space vector pulse width modulation to simplify the prior art space vector pulse width modulation calculation process and meet the requirements of high performance real time control.
为解决上述技术问题,本发明提供一种采用空间矢量脉冲宽度调制的电机 控制方法, 包括:  In order to solve the above technical problem, the present invention provides a motor control method using space vector pulse width modulation, including:
计算当前载波周期的各相 SPWM矢量调制信号;  Calculating each phase of the current carrier cycle SPWM vector modulation signal;
将所述各相 SPWM矢量调制信号, 加入对应该载波周期的零序分量, 获 得该载波周期内的各相 SVPWM矢量调制信号;  Adding each phase SPWM vector modulation signal to a zero sequence component corresponding to a carrier period, and obtaining each phase SVPWM vector modulation signal in the carrier period;
根据所述各相 SVPWM矢量调制信号, 获得当前载波周期内各相占空比; 根据所确定的当前载波周期内各相占空比,产生对应于各相的 PWM控制 信号;  Obtaining a duty ratio of each phase in a current carrier cycle according to each phase SVPWM vector modulation signal; generating a PWM control signal corresponding to each phase according to the determined duty ratio of each phase in the current carrier cycle;
根据所述 PWM控制信号, 产生对应于逆变器各相的上下桥臂的 PWM驱 动信号, 控制当前载波周期内逆变器各个桥臂的导通和关断。  According to the PWM control signal, a PWM driving signal corresponding to the upper and lower arms of each phase of the inverter is generated, and the on and off of the respective arms of the inverter in the current carrier cycle are controlled.
优选地, 计算所述 SPWM矢量调制信号的方法包括下述步骤:  Preferably, the method of calculating the SPWM vector modulated signal comprises the steps of:
检测获得当前载波周期内电机的三相电流、直流母线电压以及转子运行速 度, 以及根据所述转子运行速度计算得到电机的转子角速度;  Detecting the three-phase current, the DC bus voltage, and the rotor running speed of the motor in the current carrier cycle, and calculating the rotor angular velocity of the motor according to the rotor operating speed;
接收当前对电机扭矩的指令值;  Receiving the current command value for the motor torque;
根据所述转子角速度和所述电机扭矩指令值,通过电机特性表获得同步旋 转坐标系 d轴和 q轴的电流指令值 id x、 iqx; 使用当前载波周期电机电流检测值, 计算获得同步旋转坐标系 d轴和 q 轴的实际电流值 id、 iq; Obtaining current command values i d x , iq x of the d-axis and q-axis of the synchronous rotating coordinate system by the motor characteristic table according to the rotor angular velocity and the motor torque command value; Using the current carrier cycle motor current detection value, calculating the actual current values i d , iq of the synchronous rotating coordinate system d-axis and q-axis;
根据 d轴和 q轴的电流指令值 id x、 iqx和 d轴和 q轴的实际电流值 id、 iq, 计算得到同步旋转坐标系 d轴电压指令值和 q轴电压指令值; Calculating the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value according to the current command values i d x , iq x of the d-axis and the q-axis and the actual current values i d , i q of the d-axis and the q-axis;
将所述同步旋转坐标系中的 d轴电压指令值、 q轴电压指令值变换为静止 坐标系下的三相电压指令值; 所述三相电压指令值为各相的所述 SPWM矢量 调制信号。  Converting the d-axis voltage command value and the q-axis voltage command value in the synchronous rotating coordinate system into a three-phase voltage command value in a stationary coordinate system; and the three-phase voltage command value is the SPWM vector modulated signal of each phase .
优选地, 所述计算当前载波周期的各相正弦脉宽调制 SPWM矢量调制信 号的具体为:  Preferably, the calculating the sinusoidal pulse width modulation SPWM vector modulation signal of each phase of the current carrier cycle is:
根据接收到当前载波周期的电机运行状态检测数据以及指令数据计算当 前载波周期的各相正弦脉宽调制 SPWM矢量调制信号;  Calculating each phase sinusoidal pulse width modulation SPWM vector modulation signal of the current carrier cycle according to the motor running state detection data and the command data receiving the current carrier cycle;
所述电机运行状态检测数据和指令数据以载波周期中点处触发中断更新 采样值获得。  The motor operating state detection data and the command data are obtained by triggering an interrupt update sampling value at a midpoint of the carrier cycle.
优选的, 电机运行状态检测数据包括: 电机转子位置角、 电机转子角速度 以及电机电流;所述电机转子位置角采用转子位置检测器检测获得转子的转子 位置角 , 所述电机转子角速度为根据相邻转子位置角差值除以采样时间获得。 ^ 所述零序^ *通过下式錄  Preferably, the motor running state detection data includes: a motor rotor position angle, a motor rotor angular velocity, and a motor current; the motor rotor position angle is detected by a rotor position detector to obtain a rotor rotor position angle, and the motor rotor angular velocity is according to the adjacent The rotor position angle difference is obtained by dividing the sampling time. ^ The zero sequence ^ * is recorded by the following formula
M* =- :max^*,M*,M*)-(l- :).min^*,M*,M*)+(2 :-l);其中, ^为 零序分量; ^为该载波周期下各相的 SPWM矢量调制信号; K为大于等于 零并且小于等于 1的常数。 M * =- :max^*, M *, M *)-(l- :).min^*, M *, M *)+(2 :-l); where ^ is a zero-order component; ^ is The SPWM vector modulation signal of each phase in the carrier cycle; K is a constant greater than or equal to zero and less than or equal to 1.
优选地, 所述根据 SVPWM矢量调制信号, 获得该载波周期内各相占空 比, 具体是采用下述公式计算获得:  Preferably, the obtaining a duty ratio of each phase in the carrier period according to the SVPWM vector modulation signal is specifically calculated by using the following formula:
**  **
T +0-5U d T +0 - 5 U d
其中, Τα ^为各相导通时间, Md为直流母线电压, ;为采样周期; 一个 采样周期内各相导通时间 Τα, 除以所述采样周期 Ts即为对应各相的所述占空 比。 Where Τ α ^ is the on-time of each phase, M d is the DC bus voltage, and is the sampling period; the on-time Τ α of each phase in one sampling period, divided by the sampling period T s is the corresponding phase The duty Than.
优选地, 所述根据所确定的当前载波周期内各相占空比,产生对应于各相 的 PWM控制信号, 具体是: 采用计数寄存器对载波周期进行计数, 所述计数 寄存器值为时基周期寄存器 TBPRD保存的值; 一个载波周期中包括该计数寄 存器从 0增计数到 TBPRD保存的值, 再从 TBPRD保存的值减计数到 0两个 对称的过程; 根据所述各相占空比计算出一计数比较寄存器 A的数值, 其中 计算的公式为:  Preferably, the generating, according to the determined duty ratio of each phase in the current carrier cycle, generating a PWM control signal corresponding to each phase, specifically: counting a carrier period by using a counting register, where the counting register value is a time base period The value stored in the register TBPRD; a carrier cycle includes the value of the count register increasing from 0 to the value saved by TBPRD, and then counting down from the value held by TBPRD to 0 symmetrical process; calculating according to the duty ratio of each phase A count compares the value of register A, where the calculated formula is:
CMPA 二 TBPRD " I I ; 当计数寄存器的值 CTR = 0时,开始 ¾ 当前载波周期, 此时 CTR<CMPA, 该相 PWM控制信号保持为低电平; 当 CTR = CMPA, 并且计数寄存器处于增计数阶段, 则该相 PWM控制信号跳变为高电 平输出; 当 CTR = CMPA, 并且计数寄存器处于减计数阶段, 则该相 PWM控 制信号跳变为低电平输出。 CMPA 2 TBPRD " II ; When the value of the count register CTR = 0, start the current carrier cycle, when CTR < CMPA, the phase PWM control signal remains low; when CTR = CMPA, and the count register is incremented In the phase, the phase PWM control signal transitions to a high level output; when CTR = CMPA, and the count register is in the down counting phase, the phase PWM control signal transitions to a low level output.
本发明还提供一种采用空间矢量脉冲宽度调制的电机控制装置, 包括: SPWM 矢量调制信号计算单元, 用于接收当前载波周期内获得的电机运 行状态检测数据以及指令数据, 并据此计算对应该载波周期的 SPWM矢量调 制信号;  The invention also provides a motor control device using space vector pulse width modulation, comprising: an SPWM vector modulation signal calculation unit, configured to receive motor running state detection data and instruction data obtained in a current carrier cycle, and calculate correspondingly according to the calculation SPWM vector modulated signal of carrier period;
SVPWM矢量调制信号计算单元, 用于接收所述 SPWM矢量调制信号计 算单元输出的 SPWM矢量调制信号, 向该矢量调制信号中加入对应该载波周 期的零序分量, 获得该载波周期内的 SVPWM矢量调制信号;  An SVPWM vector modulation signal calculation unit, configured to receive an SPWM vector modulation signal output by the SPWM vector modulation signal calculation unit, and add a zero sequence component corresponding to a carrier period to the vector modulation signal to obtain an SVPWM vector modulation in the carrier period Signal
占空比计算单元, 用于接收所述 SVPWM 矢量调制信号计算单元输出的 a duty ratio calculation unit, configured to receive the output of the SVPWM vector modulation signal calculation unit
SVPWM矢量调制信号,并根据该 SVPWM矢量调制信号计算当前载波周期内 的各相占空比; The SVPWM vector modulates the signal, and calculates a duty ratio of each phase in the current carrier cycle according to the SVPWM vector modulation signal;
PWM控制信号产生单元, 用于接收所述占空比计算单元输出的当前载波 周期内的各相占空比,并据此在该载波周期产生对应于各相占空比的 PWM控 制信号;  a PWM control signal generating unit, configured to receive a duty ratio of each phase in a current carrier period output by the duty ratio calculating unit, and accordingly generate a PWM control signal corresponding to each phase duty ratio in the carrier period;
驱动信号产生单元, 用于接收所述 PWM控制信号产生单元输出的 PWM 控制信号, 并根据各相的 PWM控制信号产生两路驱动信号, 该驱动信号输出 到逆变器各相的上、 下桥臂, 控制逆变器各个桥臂的导通和关断。 优选地, 所述 SPWM矢量调制信号计算单元包括: a driving signal generating unit, configured to receive a PWM control signal output by the PWM control signal generating unit, and generate two driving signals according to the PWM control signals of the respective phases, and the driving signal is output to the upper and lower bridges of each phase of the inverter The arm controls the turning on and off of each arm of the inverter. Preferably, the SPWM vector modulation signal calculation unit includes:
电流指令值确定子单元,用于接收检测获得的当前载波周期的电机转子角 速度, 以及当前的电机扭矩指令值, 通过电机特性表获得同步旋转坐标系 d 轴和 q轴的电流指令值 id x、 iq x; The current command value determining subunit is configured to receive the motor rotor angular velocity of the current carrier cycle obtained by the detection, and the current motor torque command value, and obtain the current command value i d x of the synchronous rotating coordinate system d-axis and the q-axis through the motor characteristic table. , i q x ;
固定 /同步坐标变换器, 用于接收当前载波周期的电机电流检测值, 以及 转子位置检测值,并根据上述值计算获得同步旋转坐标系 d轴和 q轴的实际电 流值 id、 iq; a fixed/synchronous coordinate converter, configured to receive a motor current detection value of a current carrier cycle, and a rotor position detection value, and calculate an actual current value i d , iq of the d-axis and the q-axis of the synchronous rotating coordinate system according to the above value;
电流控制器, 用于接收所述 d轴和 q轴的电流指令值 /、 , 以及 d轴 和 q轴的实际电流值 iq, 结合检测获得的电机转子角速度, 计算同步旋转 坐标系 d轴电压指令值和 q轴电压指令值 Vd*; V*; a current controller for receiving the current command value /, of the d-axis and the q-axis, and the actual current value i q of the d-axis and the q-axis, and calculating the d-axis voltage of the synchronous rotating coordinate system in combination with the motor rotor angular velocity obtained by the detection Command value and q-axis voltage command value V d *; V*;
同步或固定坐标变换器,用于接收所述同步旋转坐标系 d轴电压指令值和 q轴电压指令值, 并将其变换为静止坐标系下的三相电压指令值输出; 所述静 止坐标系下的三相电压指令值即为所需的 SPWM矢量调制信号。  a synchronous or fixed coordinate converter for receiving the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value, and converting the same into a three-phase voltage command value output in a stationary coordinate system; the stationary coordinate system The lower three-phase voltage command value is the desired SPWM vector modulation signal.
优选地,对所述电机转子角速度、 电机电流以及获得当前电机扭矩指令值 等都是在载波周期的中点处采样获得。  Preferably, the motor rotor angular velocity, the motor current, and the current motor torque command value are all sampled at the midpoint of the carrier cycle.
优选地, 所述 SVPWM矢量调制信号计算单元使用的当前载波周期的零 序分量具体通过下式获得: u] = -kmax{u ,u ,ul)-(l-k)*mm{u ,u ,ul)+ (2k-l);其中, ^即 为所述零序分量; 为该载波周期下各相的 SPWM矢量调制信号; K为大 于等于零并且小于等于 1的常数。 Preferably, the zero sequence component of the current carrier cycle used by the SVPWM vector modulation signal calculation unit is specifically obtained by: u] = -km a x{ u , u , u l)-(lk)*mm{ u , u , u l) + (2k - l); wherein ^ is the zero sequence component; is the SPWM vector modulation signal of each phase in the carrier cycle; K is a constant greater than or equal to zero and less than or equal to 1.
优选地,所述占空比计算单元具体采用下述公式计算获得当前载波周期内 的各相占空比;; hPreferably, a duty ratio calculation unit is obtained by calculation using the following equation ;; h and the phases in the current duty cycle of the carrier cycle:
Τ + 0-5U dΤ + 0 - 5 U d;
7" TTd ' 其中, Τ。„为各相导通时间, Md为直流母线电压, ;为采样周期; ¾^ 即为对应各相的所述占空比;7 b e。 优选地, 所述 PWM控制信号产生单元包括: 7" TT d ' where Τ. „ is the conduction time of each phase, M d is the DC bus voltage; is the sampling period; 3⁄4^ That is, the duty ratio corresponding to each phase; 7 be . Preferably, the PWM control signal generating unit includes:
计数寄存器, 用于对各个载波周期进行分频计数, 以实现对载波周期的时 间计量; 该计数寄存器的寄存器值为 TBPRD保存的值, 对一个载波周期的计 时包括从 0增计数到 TBPRD保存的值, 再从 TBPRD保存的值减计数到 0的 两个对称过程;  The counting register is configured to perform frequency counting on each carrier cycle to implement time measurement of the carrier cycle; the register value of the counting register is a value saved by TBPRD, and the timing of one carrier cycle includes counting from 0 to TBPRD. Value, then two symmetrical processes that count down from the value held by TBPRD to 0;
比较数值计算单元,用于接收占空比计算单元输出的当前载波周期中的各 相占空比, 并根据各相占空比计算出比较数值; 具体计算公式为:  The comparison value calculation unit is configured to receive each phase duty ratio in the current carrier cycle output by the duty ratio calculation unit, and calculate a comparison value according to each phase duty ratio; the specific calculation formula is:
CMPA = TBPRD * J1 / 2 -CMPA = TBPRD * J1 / 2 -
/ a,b,c ' 比较结果输出单元, 用于接收所述比较数值计算单元输出的各相比较数 值, 并将该比较数值与所述计数寄存器的当前计数值相比较,根据比较状结果 产生不同的输出信号作为 PWM控制信号; CTR = 0时, ¾ 新的载波周期, 此 时 CTR<CMPA, 该单元输出的 P M控制信号为低电平; 当 CTR = CMPA, 并且 所述计数寄存器处于增计数阶段, 则该单元对应该相输出的 PWM控制信号跳 变为高电平; 当 CTR = CMPA, 并且计数寄存器处于减计数阶段, 则该单元对 应该相输出的 PWM控制信号跳变为低电平。 / a, b, c ' comparison result output unit, configured to receive the comparison value of each phase output by the comparison value calculation unit, and compare the comparison value with the current count value of the count register, and generate the result according to the comparison result Different output signals are used as PWM control signals; when CTR = 0, 3⁄4 new carrier period, when CTR<CMPA, the PM control signal output by the unit is low; when CTR = CMPA, and the counting register is increasing In the counting phase, the PWM control signal corresponding to the phase output of the unit jumps to a high level; when CTR = CMPA, and the counting register is in the down counting phase, the PWM control signal corresponding to the phase output of the unit jumps to low power. level.
优选地, 所述电^ ¾行状态检测数据包括电机转子位置角、 电机转子角速 度以及电机电流;所述电机转子位置角采用转子位置检测器检测获得转子的转 子位置角, 所述电机转子角速度根据相邻转子位置角的检测值, 采用下式计算 获得: ω=^ 。 Preferably, the electrical line state detection data includes a motor rotor position angle, a motor rotor angular velocity, and a motor current; the motor rotor position angle is detected by a rotor position detector to obtain a rotor rotor position angle, and the motor rotor angular velocity is determined according to The detected value of the adjacent rotor position angle is obtained by the following formula: ω = ^ .
Δί  Δί
优选地, 所述转子位置检测器为旋转变压器或者霍尔位置传感器。  Preferably, the rotor position detector is a resolver or a Hall position sensor.
本发明提供的方法和装置, 在每一个载波周期的 SPWM矢量调制信号上 加上对应该载波周期的零序分量, 即获得了 SVPWM矢量调制信号,此种获得 SVPWM信号的方式步骤少, 计算简单, 可以用价格更为低廉的控制芯片实现 对电机的实时控制。 与之相比, 现有技术采用基于开关状态六边形计算各个载 波周期的 SVPWM矢量调制信号,其计算方式需要使用多种三角函数,计算过 程复杂, 如果使用性能普通的将控制芯片则达不到良好的实时控制效果。 The method and the device provided by the invention add the zero-sequence component of the corresponding carrier period to the SPWM vector modulation signal of each carrier cycle, that is, obtain the SVPWM vector modulation signal, and the method for obtaining the SVPWM signal has fewer steps and is simple to calculate. Real-time control of the motor can be realized with a cheaper control chip. In contrast, the prior art uses an SVPWM vector modulation signal based on a switch state hexagon to calculate each carrier cycle, and the calculation method requires calculation using a plurality of trigonometric functions. The process is complicated, if the control chip is used, the control chip will not achieve good real-time control effect.
综上所述, 本发明提供的方法和装置, 简化了 SVPWM 矢量调制信号的 计算过程, 从而降低了实现 SVPWM控制所需要使用的控制芯片的要求, 扩 大了 SVPWM矢量调制信号电机控制方式的应用范围。  In summary, the method and device provided by the invention simplify the calculation process of the SVPWM vector modulation signal, thereby reducing the requirement of the control chip required for implementing the SVPWM control, and expanding the application range of the SVPWM vector modulation signal motor control mode. .
附图说明 DRAWINGS
图 1是现有技术中三相桥式电压型逆变器的基本电路结构;  1 is a basic circuit structure of a three-phase bridge voltage type inverter in the prior art;
图 2是现有技术中逆变器工作状态形成的空间矢量六边形;  2 is a space vector hexagon formed by an operating state of an inverter in the prior art;
图 3 是本发明第一实施例提供的采用空间矢量脉冲宽度调制的电机控制 方法的流程图;  3 is a flow chart of a motor control method using space vector pulse width modulation according to a first embodiment of the present invention;
图 4是本发明中一种典型的计算 SPWM矢量调制信号 wa*、 ub Mc*方法的 流程图; 4 is a flow chart showing a typical method for calculating an SPWM vector modulated signal w a *, u b M c * in the present invention;
图 5是本发明中采用有效矢量和零矢量合成所需空间矢量的示意图; 图 6是本发明中采用 SVPWM调制信号获得所需空间矢量的方法; 图 7是本发明中对载波周期进行计时的实现原理示意图;  5 is a schematic diagram of the space vector required for combining the effective vector and the zero vector in the present invention; FIG. 6 is a method for obtaining a required space vector using the SVPWM modulated signal in the present invention; FIG. 7 is a timing chart of the carrier period in the present invention. Schematic diagram of implementation principle;
图 8是本发明中使用比较数值 CMPA控制三相桥臂通断的示意图; 图 9是本发明第二实施例的结构框图。  Figure 8 is a schematic view showing the control of the three-phase bridge arm on and off using the comparative value CMPA in the present invention; and Figure 9 is a block diagram showing the structure of the second embodiment of the present invention.
具体实施方式 detailed description
本发明第一实施例提供一种采用空间矢量脉冲宽度调制的电机控制方法, 该实施例用于向图 1 所示的三相桥式逆变器提供 PWM控制信号。 所提供的 PWM控制信号能够使所述三相桥式逆变器输出三相交流电, 该三相交流电在 电动机定子上获得所需速度的圆形旋转磁场, 使电动机的转子输出相应的转 速。  The first embodiment of the present invention provides a motor control method using space vector pulse width modulation, which is used to provide a PWM control signal to the three-phase bridge inverter shown in Fig. 1. The PWM control signal is provided to enable the three-phase bridge inverter to output three-phase alternating current, which obtains a circular rotating magnetic field of a desired speed on the stator of the motor, so that the rotor of the motor outputs a corresponding speed.
该实施例提供的控制方法的具体步骤如下: 首先,根据当前的电机运行检 测数据和指令数据计算三相矢量调制信号 Ma*、 ub uc\ 向上述三相矢量调制 信号 Ma*、 ub Me*中加入零序分量, 获得该载波周期的 SVPWM三相调制信号 u * ub* u **; 根据所述 SVPWM三相调制信号 wa**、 u * 获得该载波周 期内的各相占空比;根据所获得的各相占空比,控制逆变器的各个桥臂依次导 通和关断。 以下具体介绍实现上述各个步骤的方法。 The specific steps of the control method provided by this embodiment are as follows: First, the three-phase vector modulation signal Ma *, u b u c \ is calculated according to the current motor running detection data and the command data to the three-phase vector modulation signal Ma *, u b Me * zero sequence component was added, to obtain the cycle carrier-phase SVPWM modulation signal u * u b * u **; according to the three-phase SVPWM modulation signal w a **, u * is obtained in the respective phases of the carrier cycle Duty cycle; according to the obtained duty cycle of each phase, each arm of the control inverter is turned on and off in turn. The method of implementing the above various steps will be specifically described below.
请参看图 3 , 该图为本发明第一实施例提供的采用空间矢量脉冲宽度调制 的电机控制方法的流程图。 以下结合该图进行伴细的介绍。该实施例中被驱动 的电机为三相 7jC磁同步电机。 Please refer to FIG. 3, which illustrates a space vector pulse width modulation according to a first embodiment of the present invention. Flowchart of the motor control method. The following is a detailed introduction with the figure. The motor driven in this embodiment is a three-phase 7jC magnetic synchronous motor.
步骤 S301 , 根据当前载波周期的电机运行状态检测数据以及指令数据, 计算对应该载波周期的各相 SPWM矢量调制信号 wa*、 ub uc Step S301, calculating, according to the motor running state detection data and the command data of the current carrier cycle, each phase SPWM vector modulation signal w a *, u b u c corresponding to the carrier cycle.
所述 SPWM矢量调制信号 wa*、 ub Mc*根据控制需求以及检测获得的电机 状态通过计算获得。现有技术已经提供了多种具体计算方式, 以下简要介绍其 中一种典型的计算方式。 The vector modulation signal SPWM w a *, u b M c * and the motor control requirements of the state detector is obtained by calculation obtained. The prior art has provided a variety of specific calculation methods, and a typical calculation method is briefly described below.
请参看图 4, 该图示出一种典型的计算 SPWM矢量调制信号 wa*、 ub uc* 方法的流程图。 Referring to Figure 4, there is shown a flow diagram of a typical method of calculating SPWM vector modulated signals w a *, u b u c *.
步骤 401, 检测获得电机的三相电流、 直流母线电压以及转子运行速度。 所述电机的三相电流通过安装在电机任意两相上的电流传感器检测获得, 由于流入同一节点的电流之和为零,可以根据检测获得的上述两相电流计算获 得另一相的电流值。所述直流母线电压通过电压传感器检测直流母线获得。转 子运行速度是通过检测相邻采样时间的转子位置角, 然后通过计算获得。所述 转子位置角可以通过旋转变压器或者霍尔元件检测获得。 设定速度采样频率 后, 将相邻采样间隔的转子位置角差值除以采样时间, 获得转子角速度 ω; 上 述计算公式表示如下: , 其中, 0 表示在当前采样时刻 K检测获得的转子位
Figure imgf000011_0001
In step 401, the three-phase current, the DC bus voltage, and the rotor running speed of the motor are detected. The three-phase current of the motor is obtained by detecting a current sensor mounted on any two phases of the motor. Since the sum of the currents flowing into the same node is zero, the current value of the other phase can be calculated according to the two-phase current obtained by the detection. The DC bus voltage is obtained by detecting a DC bus by a voltage sensor. The rotor running speed is obtained by detecting the rotor position angle of the adjacent sampling time and then calculating it. The rotor position angle can be obtained by a resolver or Hall element detection. After setting the speed sampling frequency, the rotor angular difference value of the adjacent sampling interval is divided by the sampling time to obtain the rotor angular velocity ω; the above calculation formula is expressed as follows: , where 0 represents the rotor position obtained at the current sampling time K detection
Figure imgf000011_0001
置角; 0 7 表示在前次采样时刻 (K-1 )检测获得的转子位置角; 为采 样间隔时间。 Angle; 0 7 represents the rotor position angle obtained at the previous sampling time (K-1); it is the sampling interval.
步骤 402, 接收对电机扭矩的指令值。  Step 402: Receive a command value for the motor torque.
该电机扭矩指令值是根据负载的需求确定的电机扭矩指令值,该电机扭矩 指令值与外部负载的大小以及电机的旋转速度需求相关,根据基本转矩公式计 算获得。  The motor torque command value is a motor torque command value determined according to the demand of the load, and the motor torque command value is related to the magnitude of the external load and the rotational speed requirement of the motor, and is calculated according to the basic torque formula.
步骤 403 , 根据电机的转子位置角、 转子角速度和所述电机扭矩指令值, 通过电机的单位电流可提供最大扭矩特性表获得 d轴和 q轴的电流指令值,即 id iq Step 403: According to the rotor position angle of the motor, the rotor angular velocity, and the motor torque command value, the current command value of the d-axis and the q-axis is obtained by providing a maximum torque characteristic table by the unit current of the motor, that is, id i q
所述 d轴和 q轴为经过变换后电机同步旋转坐标系的坐标轴 ,该变换过程 将电机静止坐标系变换为电机同步旋转坐标系 ,将静止的三轴坐标变换为两轴 坐标,称为 3/2变换或者固定 /同步坐标变换。 由于电机扭矩指令值体现对电机 扭矩的期望, 电机的转子位置角和转子角速度体现电机的实际运转状况,根据 上述两个值可以获知使电机按需要运转时, d轴和 q轴所需要的电流, 该电流 即为所述 d轴和 q轴的电流指令值 id x、 iqx。 上述计算以及坐标变换过程, 为本 领域技术人员公知技术 , 在此不予详述。 The d-axis and the q-axis are coordinate axes of the synchronously rotated coordinate system of the transformed motor, and the transformation process The motor stationary coordinate system is transformed into a synchronous synchronous coordinate system of the motor, and the static three-axis coordinate is transformed into two-axis coordinates, which is called 3/2 transformation or fixed/synchronous coordinate transformation. Since the motor torque command value reflects the expectation of the motor torque, the rotor position angle and the rotor angular speed of the motor reflect the actual running condition of the motor. According to the above two values, the current required for the d-axis and the q-axis when the motor is operated as needed can be known. The current is the current command values i d x , iq x of the d-axis and the q-axis. The above calculations and coordinate transformation processes are well known to those skilled in the art and will not be described in detail herein.
步骤 S404, 使用所述步骤 S401的电流检测值, 计算获得同步旋转坐标系 的实际电流值。  Step S404, using the current detection value of the step S401, calculating an actual current value of the synchronous rotating coordinate system.
通过上一步骤提及的 3/2变换过程, 可以将检测获得的三相电流转换为同 步旋转坐标系上坐标轴的实际电流值, 即同步旋转坐标系上 d轴电流值 id、 q 轴电流值 iq。 Through the 3/2 transformation process mentioned in the previous step, the three-phase current obtained by the detection can be converted into the actual current value of the coordinate axis on the synchronous rotating coordinate system, that is, the d-axis current value i d and the q-axis on the synchronous rotating coordinate system. Current value iq.
步骤 S405 , 根据以上各步骤的计算结果, 分别计算 d轴电压指令值和 q 轴电压指令值。  Step S405: Calculate the d-axis voltage command value and the q-axis voltage command value according to the calculation results of the above steps.
由于步骤 S403中获得了电流指令值 /、 iqx , 该值表示对 d轴和 q轴电流 的期望值; 而步骤 S404获得了该同步旋转坐标系上 d轴电流值 q轴电流 值 iq, 该值表示 d轴和 q轴的实际电流值, 根据上述结果可以计算出 d轴电压 指令值 M 、 q轴电压指令值 M , 上述值表示对 d轴和 q轴电压的期望值。 其 具体的计算方式为: d轴电压矢量 为 对 /与 id的 PI控制输出值减去电机 极对数 、 转子角速度《、 q轴电感 ^以及 的乘积; q轴电压矢量 u 为对 i 与 的 PI控制输出值与电机极对数 、转子角速度《、 q轴电感 以及 的 乘积以及电机极对数 、 ω、 永磁磁链^ ^的乘积之和。 步骤 S406, 将上述同步旋转坐标系中的 d轴电压指令值 M 、 q轴电压指 令值 变换为静止坐标系下的三相电压指令值: ua uh u * , 即为 SPWM 三相矢量调制信号指令值, 即 SPWM矢量调制信号。 Since the current command value /, iq x is obtained in step S403, the value represents an expected value for the d-axis and the q-axis current; and step S404 obtains the d-axis current value q-axis current value iq on the synchronous rotating coordinate system, the value The actual current values of the d-axis and the q-axis are expressed, and based on the above results, the d-axis voltage command value M and the q-axis voltage command value M can be calculated, and the above values represent expected values for the d-axis and q-axis voltages. The specific calculation method is as follows: The d-axis voltage vector is the product of the PI control output value of the pair / i d minus the motor pole pair, the rotor angular velocity ", the q-axis inductance ^ and the q-axis voltage vector u is the pair i and The sum of the PI control output value and the motor pole pair, the rotor angular velocity, the q-axis inductance, and the product of the motor pole pair, ω, and the permanent magnet flux ^ ^ . Step S406, converting the d-axis voltage command value M and the q-axis voltage command value in the synchronous rotating coordinate system into a three-phase voltage command value in a stationary coordinate system: u a u h u * , that is, SPWM three-phase vector modulation The signal command value, that is, the SPWM vector modulation signal.
本步骤的变换过程是上述 3/2变换过程的逆过程, 称为 2/3变换, 或者同 步或固定坐标变换。 上述获得 SPWM矢量调制信号 Ma*、 Me*的方法在现有技术已经存在, 并且现有技术中有多种方式根据速度或者转矩指令值以及检测获得的转子运 行速度获得上述 SPWM矢量调制信号 wa*、 ub Mc*的方法, 由于本发明中并没 有对这一过程提出特别改进, 所以在此对上述过程不做详细的描述。 总之, 通 过现有技术甚至将来可能产生的各种方法, 可以获得一组 SPWM矢量调制信 号 wa*、 ub uc 利用上述指令值可以进行后续步骤。 The transformation process of this step is the inverse of the above 3/2 transformation process, called 2/3 transformation, or synchronous or fixed coordinate transformation. The above method of obtaining the SPWM vector modulation signals M a *, M e * has existed in the prior art, and there are various ways in the prior art to obtain the above SPWM vector modulation based on the speed or torque command value and the detected rotor operating speed. The method of the signals w a *, u b M c *, since no special improvement is made in this process in the present invention, the above process will not be described in detail herein. In summary, a set of SPWM vector modulated signals w a *, u b u c can be obtained by the prior art or even various methods that may be generated in the future.
在上述步计算 SPWM矢量调制信号 wa*、 ub Me*的步骤中, 为了后续处理 的便利, 采用载波周期的起始时刻即 CTR ( Counter value ) =0时触发对检测 数据的模数转换, 中点时刻即 00=时基周期寄存器 (TBPRD, Time base module period register )保存的值时刻触发 PWM中断, 在中断中更新模数转换 后的采样值, 从而获得检测采样数据。 In the step of calculating the SPWM vector modulation signals w a *, u b M e * in the above steps, for the convenience of subsequent processing, the modulus of the detected data is triggered when the start time of the carrier cycle, that is, CTR (Counter value) = 0 is used. At the midpoint, the value stored in the 00=Time base module period register (TMPRD) triggers the PWM interrupt, and the sampled value after the analog-to-digital conversion is updated in the interrupt, thereby obtaining the detected sample data.
步骤 302, 向所述 SPWM矢量调制信号 ua*、 ub*、 ue*分别加入对应该载波 周期的零序分量, 获得该载波周期内的各相 SVPWM矢量调制信号 Ma**、 ub* c 。 Step 302: Add a zero sequence component corresponding to the carrier period to the SPWM vector modulation signals u a *, u b *, u e *, respectively, to obtain each phase SVPWM vector modulation signal Ma **, u b in the carrier cycle. * c .
由于三相矢量调制信号 Ma*、 ub Me*是根据 SPWM原理获得的三相矢量调 制信号 ,使用上述三相矢量调制信号进行控制的开关次数会较使用 SVPWM三 相矢量调制信号多, 直流电压的利用率相应也比较低, 并且会产生较多的谐波 分量。 本实施例的目的就是将上述三相矢量调制信号^ *、 *转换为三相 空间矢量, 采用的具体方法是向所述三相矢量调制信号 Ma
Figure imgf000013_0001
MC*中加入零 序分量,获得对应 SPWM矢量调制信号的 SVPWM矢量调制信号。该零序分量为: u] = -km^ii^[,ul,ul)-(l-k)*mmi^[,ul,ul)+(2k-l)。 以下详细说明采用该方法的原理。 首先需要说明, 现有技术是采用图 2 所示的开关状态六边形,根据矢量指令判断所在扇区,根据所在扇区信息通过 三角函数经过一系列计算确定各相导通时间即占空比, 从而通过 PWM调制, 获得合成所需矢量, 例如图 2所示的空间矢量 。 以下结合图 5和图 2说明 上述计算过程。 对于图 2所示的空间矢量 , 其位于第 I象限, 这一象限中的矢量是由 有效矢量 、 2合成的, 还需要适当加入零矢量 ^和 。 因此, 在该载波 周期中,存在有效矢量 、 u2和零矢量 ^和^;等矢量,其中零矢量 ^和 根据需要选用。根据开关状态六边形的原理,可以计算出在该载波周期内对应 于有效 、 和零矢量^ /。和 ^的各自的时间 T Τ。Ί 。 上述作用时 间的有效矢量 、 U2和零矢量^ /。和 最终可以合成为空间矢量^。 将上 述作用时间对称分布在该载波周期 Ts上, 即获得图 5所示的对应于有效矢量 . 2和零矢量 ^和 的时间分布图, 该图横轴表示有效矢量 、 2和 零矢量 ^和^;的作用时间, 由于各个矢量是由 A、 B、 C三相的导通时间合 成的, 图中对应绘出 A、 B、 C三相的导通时间。 实际上在电路中具体可以控 制的量是 、 B、 C相是否导通, 因此,获得该载波周期所需要的空间矢量^; , 首先是计算出有效矢量 、 和零矢量^/。和 各自在 ;载波周期的适当 作用时间,确定之后即可合成获得空间矢量 ;上述涉及的有效矢量 、 u2 和零矢量^ /。和^;的作用时间需要落实到 A、 B、 C三相的导通时间, 以实现 控制。 上述有效矢量 、 和零矢量^ /。和 的作用时间 T Γ。7在 图 5中对称绘出,这是为了便于进行后序计算。 以上是通过理论推导出获得空 间矢量 a b所需的 A、 B、 C三相的导通情况, 可知 A、 B、 C三相导通时间可 以表示:^下:
Since the three-phase vector modulation signals M a *, u b M e * are three-phase vector modulated signals obtained according to the SPWM principle, the number of switchings controlled using the above three-phase vector modulated signals is more than that of using SVPWM three-phase vector modulated signals. The utilization of the DC voltage is correspondingly low, and more harmonic components are generated. Purpose of this example is the three-phase vector modulation signals * ^ * into three-phase space vector, the specific method used is the three-phase vector modulation signal M a
Figure imgf000013_0001
A zero sequence component is added to M C * to obtain an SVPWM vector modulation signal corresponding to the SPWM vector modulation signal. The zero sequence component is: u] = -km^ii^[, u l, u l)-(lk)*mmi^[, u l, u l)+(2k-l). The principle of adopting this method will be described in detail below. First of all, the prior art is to adopt the switch state hexagon shown in FIG. 2, and determine the sector according to the vector instruction, and determine the on-time of each phase, that is, the duty ratio, through a series of calculations according to the sector information. Thus, by PWM modulation, a vector required for synthesis, such as the space vector shown in Fig. 2, is obtained. The above calculation process will be described below with reference to FIGS. 5 and 2. For the space vector shown in Fig. 2, it is located in the first quadrant, and the vector in this quadrant is synthesized by the effective vector, 2 , and the zero vector ^ and the sum are also added. Therefore, in this carrier cycle, there are vectors such as the effective vector, u 2 and zero vector ^ and ^;, where the zero vector ^ and optionally are selected. According to the principle of the switch state hexagon, it can be calculated that the valid, and zero vector ^ / in the carrier period. And ^ respective time T Τ. Oh . The effective vector of the above action time, U 2 and zero vector ^ /. And eventually can be synthesized into a space vector ^. The above-mentioned action time is symmetrically distributed on the carrier period T s , that is, a time distribution diagram corresponding to the effective vector 2 and the zero vector ^ sum shown in FIG. 5 is obtained, and the horizontal axis of the graph represents the effective vector, 2 and zero vectors ^ The action time of ^ and ^;, since each vector is synthesized by the three-phase conduction time of A, B, C, the corresponding three-phase conduction time of A, B, C is plotted. In fact, the specific controllable quantity in the circuit is whether the B and C phases are turned on. Therefore, the space vector ^^ required for the carrier period is obtained. First, the effective vector and the zero vector ^/ are calculated. And the respective time; the appropriate action time of the carrier cycle, after the determination, the space vector can be synthesized; the above-mentioned effective vector, u 2 and zero vector ^ /. The action time of ^ and ^; needs to be implemented to the A, B, C three-phase conduction time to achieve control. The above effective vector, and zero vector ^ /. And the action time T Γ. 7 is shown symmetrically in Figure 5, which is for ease of calculation. The above is obtained by theoretical derivation The three-phase conduction of A, B, and C required for the inter-vector ab, it can be seen that the three-phase conduction time of A, B, and C can be expressed as follows:
上式表示出 A、 B、 C三相的导通时间和有效矢量 、 ^/2和零矢量 。和 的作用时间 T T : Γ。7之间的关系。 图 6示出采用 SVPWM三相调制信号 C/a**、C/b**、C/c**获得上述空间矢量 的方法。 由于载波周期 ;很短, 该周期内 C/a**、 Ub* 的电压值可以认为 固定不变, 即为图 6所示的平行于横轴的直线, 上述 SVPWM三相调制信号 U * Ub* C/c**的作用时间 Γα、 Tb、 7;即为根据公式(3 )计算的 A、 B、 C三 相的作用时间。 The above equation shows the on-time and effective vector, ^/ 2 and zero vector of the three phases A, B, and C. And the action time TT: Γ. 7 relationship between. Fig. 6 shows a method of obtaining the above-described space vector using the SVPWM three-phase modulation signals C/ a **, C/ b **, C/ c **. Due to the carrier period; very short, the voltage value of C/ a **, U b * in the period can be considered to be fixed, that is, the line parallel to the horizontal axis shown in Fig. 6, the above SVPWM three-phase modulation signal U * The action time Γ α , T b , 7 of U b * C/ c ** is the action time of the three phases A, B and C calculated according to formula (3).
根据图 6中的相似三角形, 可以获知下式成立:  According to the similar triangle in Figure 6, it can be known that the following formula holds:
c/a**、c/b**、
Figure imgf000015_0001
c/ a **, c/ b **,
Figure imgf000015_0001
¼ 。  1⁄4.
将式(3 ) 带入式(4 ), 获得
Figure imgf000015_0002
(2 1) ( 5 )
Bring equation (3) into equation (4) and get
Figure imgf000015_0002
(2 1) ( 5 )
以上公式(5 )是针对图 2中空间矢量^获得的, 其中 Mz*是空间矢量^ 对应的零序分量。上述推导过程,对于图 2所示的开关六边形结构上的任意类 似空间矢量^;的其它空间矢量, 都可以通过上述推导方式获得类似于式(5 ) 的结果。 对应于不同的空间矢量采用的零序分量不同, 在一个完整的周期内, 所述零序分量 MZ*可以表示为
Figure imgf000016_0001
The above formula (5) is obtained for the space vector ^ in Fig. 2, where M z * is the zero sequence component corresponding to the space vector ^. The above derivation process, for any class on the switch hexagonal structure shown in FIG. For other space vectors like the space vector ^;, the result similar to equation (5) can be obtained by the above derivation. Corresponding to different zero-sequence components used by different spatial vectors, the zero-sequence component M Z * can be expressed as a complete period
Figure imgf000016_0001
该式中, K为大于等于 0小于等于 1的常数, 该常数可以按需要取值, 实 际上常常取 Κ的值为 0.5, 以获得化简该式(6 ) 的效果。  In the formula, K is a constant greater than or equal to 0 and less than or equal to 1, and the constant can be taken as needed. In practice, the value of Κ is often taken as 0.5 to obtain the effect of simplifying the equation (6).
通过上述推导过程可知, 只需要在 Ae中加入相应的零序分量^ , 即可 将 SPWM三相矢量调制信号指令值 t/a*、 Uh C/e*转化为相应的 SVPWM三相 调制信号 c/a**、 c/b**、 u; 这种方式不需要如现有技术一样进行复杂的三角 计算, 可以节省控制器的运算时间, 有利于进行实时控制。 Through the above derivation process, it can be known that only the corresponding zero sequence component ^ is added to Ae , and the SPWM three-phase vector modulation signal command values t/ a *, Uh C/ e * can be converted into corresponding SVPWM three-phase modulation signals. c/ a **, c/ b **, u; This method does not require complex triangulation as in the prior art, which saves the computation time of the controller and facilitates real-time control.
步骤 S303 , 根据所述 SVPWM三相调制信号 C/a**、 U * U * 获得当前 载波周期内各相占空比。 Step S303, obtaining duty ratios of the phases in the current carrier cycle according to the SVPWM three-phase modulation signals C/ a **, U*U*.
由步骤 S303已经获得了当前的 SVPWM三相调制信号 C/a**、 Ub* U * 将其带入公式(4 ), 就可以获得 A、 B、 C三相的占空比: By the step S303, the current SVPWM three-phase modulation signals C/ a **, U b * U * have been obtained and brought into the formula (4), and the duty ratios of the three phases A, B, and C can be obtained:
该占空比是对应一个载波周期的占空比。The duty cycle is the duty cycle corresponding to one carrier cycle.
Figure imgf000016_0002
步骤 S304, ^居所确定的各相占空比, 产生对应于各相的 PWM控制信 号。
Figure imgf000016_0002
Step S304, ^ is determined by the duty ratio of each phase, and a PWM control signal corresponding to each phase is generated.
所述各相占空比确定后, 只需要根据该占空比输出 PWM控制信号, 控制 逆变器各个桥臂的依次导通和关断, 即可实现 SVPWM控制。 具体根据占空 比实现 SVPWM控制的方法在现有技术中存在多种方案, 以下提供其中一种 方案。 该方案直接基于图 5所示的 A、 B、 C各相在一个载波周期内的导通情 况, 即采用中心对称的方式实现所述的占空比控制。对占空比中时间长度的计 量则采用计数方式实现。  After the duty ratio of each phase is determined, it is only necessary to output a PWM control signal according to the duty ratio to control the sequential turn-on and turn-off of the respective bridge arms of the inverter, so that SVPWM control can be realized. A method for realizing SVPWM control based on duty ratio is known in the prior art. One of the solutions is provided below. The scheme is based on the conduction of each phase of A, B, and C in one carrier cycle as shown in FIG. 5, that is, the duty ratio control is implemented in a center symmetric manner. The measurement of the length of time in the duty cycle is implemented by counting.
请参看图 7, 该图示出对载波周期进行计时的实现原理。 由于需要对一个 载波周期中的各相导通时间的占空比进行控制, 因此, 需要具有一个能够对载 波周期进行计量的时间单位,具体可以使用控制系统的时钟频率。在本实施例 中, PWM信号的载波频率为 ΙΟΚΗζ, 即一个载波周期为 ΙΟΟμε, 可以用控制 系统的 lOOMhz的时钟频率对该载波周期进行计时。 此时, 最小计数时间步长 TTBCLK值为 0.01 μ8, 即一个载波周期包含 10000个时间单位。 对载波周期进行 计量的方式是使用寄存器值 TBPRD = 5000 的计数寄存器对载波周期进行计 数, 由 0增计数到 5000, 再由 5000减计数到 0。 图 7中, 示出对载波周期 采用 8个脉冲计数的例子。 Please refer to FIG. 7, which shows the implementation principle of timing the carrier period. Since it is necessary to control the duty ratio of the on-time of each phase in one carrier cycle, it is necessary to have a time unit capable of measuring the carrier cycle, and specifically, the clock frequency of the control system can be used. In this embodiment The carrier frequency of the PWM signal is ΙΟΚΗζ, that is, one carrier period is ΙΟΟμε, and the carrier period can be timed by the clock frequency of the control system of 100 Mhz. At this time, the minimum count time step T TBCLK value is 0. 01 μ8 , that is, one carrier cycle contains 10000 time units. The carrier period is measured by counting the carrier period using a count register with a register value of TBPRD = 5000, incrementing from 0 to 5000, and then counting down to 5000 by 5000. In Fig. 7, an example in which eight pulse counts are used for the carrier cycle is shown.
在上述方式下,根据所确定的该载波周期中的各相占空比,在比较寄存器 中存储与各相占空比相应的比较数值,以所述计数寄存器计数数值与所述比较 数值相比较, 并根据比较结果确定各相的通断。 由于采用增减数值产生对称的 波形, 其具体计算比较数值的公式为 = βΤ^Ζ) *;; , / 2。 图 8示 出使用该比较数值 CMPA控制三相桥臂通断的方法, 结合该图, 以 A相为例, 说明该相的控制过程。 In the above manner, according to the determined duty ratio of each phase in the carrier cycle, a comparison value corresponding to the duty ratio of each phase is stored in the comparison register, and the count value of the count register is compared with the comparison value. And determine the continuity of each phase based on the comparison result. Since the symmetrical waveform is generated by increasing or decreasing the value, the formula for calculating the comparative value is = βΤ^Ζ) *;; , / 2 . Fig. 8 shows a method of controlling the on and off of a three-phase bridge arm using the comparison value CMPA. In conjunction with the figure, the phase A is taken as an example to illustrate the control process of the phase.
设计数 直为 CTR, CTR = 0时,开始 ϋΤ 当前的载波周期,此时 CTR<CMPA, PWM控制信号&保持为低电平; 当 CTR = CMPA, 并且计数寄存器处于增计数 阶段, 则产生 PWM控制信号&跳变为高电平输出; 当 CTR = CMPA, 并且计 数寄存器处于减计数阶段, 则 PWM控制信号&跳变为低电平输出。  The design number is directly CTR. When CTR = 0, the current carrier cycle starts. At this time, CTR<CMPA, PWM control signal & keeps low. When CTR = CMPA, and the count register is in the up counting phase, PWM is generated. The control signal & jumps to a high level output; when CTR = CMPA, and the count register is in the down counting phase, the PWM control signal & jumps to a low level output.
步骤 S305, 根据所述 PWM控制信号, 产生对逆变器各相上下桥臂的驱 动信号。  Step S305, generating a driving signal for the upper and lower arms of each phase of the inverter according to the PWM control signal.
以 A相为例, 当无死区时间设置时, 驱动信号 PWMa上、 PWMa下互补动 作; 当 & = 1 时, 所述 PWMa上输出高电平, 所述 A相上桥臂导通, PWMa下 输出低电平, 所述 A相下桥臂关断; 当& = 0时, 所述 PWM^输出低电平, 所述 A相上桥臂关断, PWMa T输出高电平, 所述 A相下桥臂导通; 当采用死 区设置时, 下桥臂相对于上桥臂存在延迟或前滞互补导通。 无论何种情况, 确 保上下桥臂不会同时导通。 上述过程使 P M控制信号输出在该载波周期中获得 所需要的占空比, 最^^成该载波周期中所需要的空间矢量。 Taking phase A as an example, when there is no dead time setting, the driving signal PWM a and PWM a are complementary actions; when & = 1, the PWM a outputs a high level, and the A phase upper arm guide Pass, PWM a output low level, the A phase lower arm is turned off; when & = 0, the PWM ^ output low level, the A phase upper arm is turned off, PWM a T output is high Level, the A-phase lower arm is conducting; when the dead zone setting is adopted, the lower arm has a delay or a complementary lag with respect to the upper arm. In either case, make sure that the upper and lower arms are not turned on at the same time. The above process causes the PM control signal output to obtain the required duty cycle in the carrier cycle, most preferably into the space vector required in the carrier cycle.
以上实现占空比控制即 PWM 调制的过程,是现有技术中的一种较为简易 的实现方式, 实际上还可以采用其它方式获得所需要的占空比,本领域技术人员可 以根据本步骤的控制需求,设计其它形式的控制方式,使所述 PWM控制信号以所 述占空比输出。 The process of implementing the duty cycle control, that is, the PWM modulation, is a relatively simple implementation in the prior art. In fact, other methods can be used to obtain the required duty cycle. Those skilled in the art can perform the steps according to this step. Control the requirements, design other forms of control, so that the PWM control signal The duty cycle output.
上述实施例虽然针对三相永磁同步电机, 实质上该技术方案同样适用于其 他类型的三相电机。  Although the above embodiment is directed to a three-phase permanent magnet synchronous motor, substantially the same technical solution is applicable to other types of three-phase motors.
本发明第二实施例提供一种实现空间矢量脉冲宽度调制的电机控制装置。 请参看图 9, 该图示出本发明第二实施例的单元组成框图。  A second embodiment of the present invention provides a motor control apparatus that implements space vector pulse width modulation. Referring to Figure 9, there is shown a block diagram of the unit composition of the second embodiment of the present invention.
该采用空间矢量脉冲宽度调制的电机控制装置, 包括 SPWM矢量调制信 号计算单元 91、SVPWM矢量调制信号计算单元 92、占空比计算单元 93、PWM 控制信号产生单元 94、驱动信号产生单元 95,转子位置检测器 96以及速度计 算器 97。 该图还示出被控制对象电机 90, 以及逆变器 98。 本实施例中, 所述 电机 90具体为 7j 兹同步电极。 The motor control apparatus using space vector pulse width modulation includes an SPWM vector modulation signal calculation unit 91, an SVPWM vector modulation signal calculation unit 92, a duty ratio calculation unit 93, a PWM control signal generation unit 94, a drive signal generation unit 95, and a rotor. Position detector 96 and speed calculator 97. The figure also shows the controlled object motor 90, and the inverter 98. In this embodiment, the motor 90 is specifically a 7 j synchronous electrode.
所述 SPWM矢量调制信号计算单元 91 , 用于接收当前载波周期内获得的 电机运行状态检测数据以及指令数据, 并据此计算对应该载波周期的 SPWM 矢量调制信号。 由于现有技术中存在多种计算 SPWM矢量调制信号的计算方 法, 不同的计算方法可能需要不同的电机状态检测参数, 因此上述电机运行状 态检测数据依据不同的 SPWM矢量调制信号而有所不同, 一般的, 所述电机 运行状态检测数据主要包括电机转子位置角、电机转子角速度以及电机电流等 数据。 如图 9所示, 采用转子位置检测器 96检测获得电机的转子位置角, 该 转子位置检测器 96—般采用旋装变压器或者霍尔位置传感器, 其直接检测结 果是转子位置角的正弦值和余弦值,通过三角函数计算可以获得转子位置角并 输出。所述速度计算器 97接收该转子位置检测器 96输出的转子位置角检测结 果, 并使用公式^ 计算出电机转子角速度 ω, 对该公式的说明参 见第一实施例。 对于电机电流, 可以采用多种方法检测获得电机 90的三相输 入中两相的电流, 如图 9所示的 。、 ic。 在现有技术中已经提供了许多具体的 电流检测方法, 例如采用电阻法或者采用电流互感器等进行检测,在此不予详 述。 在测出 。、 ^两相电流后, 另外一相 的电流则 ^居电机三相电流之和为 零的关系计算获得。上述转子位置角、电机电流等以一定的采用频率检测获得, 其中最佳采样频率取载波频率, 并以载波周期的中点作为采样点, 一个载波周 期获得的检测结果在下一个载波周期的计算中使用。 该 SPWM矢量调制信号计算单元 91包括电流指令值确定子单元 911、 固 定 /同步坐标变换器 912、 电流控制器 913、 同步或固定坐标变换子单元 914。 The SPWM vector modulation signal calculation unit 91 is configured to receive motor running state detection data and command data obtained in a current carrier cycle, and calculate an SPWM vector modulation signal corresponding to a carrier cycle accordingly. Since there are various calculation methods for calculating the SPWM vector modulation signal in the prior art, different calculation methods may require different motor state detection parameters, and thus the motor running state detection data is different according to different SPWM vector modulation signals, generally The motor running state detection data mainly includes data such as a motor rotor position angle, a motor rotor angular speed, and a motor current. As shown in FIG. 9, the rotor position detector 96 is used to detect the rotor position angle of the motor. The rotor position detector 96 generally uses a spin-on transformer or a Hall position sensor, and the direct detection result is the sine value of the rotor position angle. The cosine value can be obtained by trigonometric function calculation and the rotor position angle can be obtained. The speed calculator 97 receives the rotor position angle detection result output from the rotor position detector 96, and calculates the motor rotor angular speed ω using the formula ^, which is explained in the first embodiment. For the motor current, the current of the two phases of the three-phase input of the motor 90 can be detected by various methods, as shown in FIG. , i c . Many specific current detecting methods have been provided in the prior art, for example, using an electric resistance method or using a current transformer or the like, and will not be described in detail herein. In the measurement. After the two-phase current, the current of the other phase is calculated by the relationship between the sum of the three-phase currents of the motor and zero. The above rotor position angle, motor current, etc. are obtained by using a certain frequency, wherein the optimal sampling frequency is taken as the carrier frequency, and the midpoint of the carrier period is taken as the sampling point, and the detection result obtained in one carrier period is calculated in the next carrier period. use. The SPWM vector modulation signal calculation unit 91 includes a current command value determination subunit 911, a fixed/synchronous coordinate converter 912, a current controller 913, and a synchronous or fixed coordinate transformation subunit 914.
所述电流指令值确定子单元 911 , 用于接收检测获得的当前载波周期的电 机转子角速度 ω , 以及当前的电机扭矩指令值 τ,通过电机 90的单位电流可提 供最大扭矩特性表, 获得同步旋转坐标系 d轴和 q轴的电流指令值 /、 iq 所 述电机扭矩指令值来自主控单元对电机扭矩的需求,该指令值确定了对电机的 工作需求。 所述单位电流可提供最大扭矩特性表是反映电机的特性的数据表, 每一个永磁同步电机都有对应的数据表。 The current command value determining subunit 911 is configured to receive the motor rotor angular velocity ω of the current carrier cycle obtained by the detection, and the current motor torque command value τ, and the maximum torque characteristic table can be provided by the unit current of the motor 90 to obtain synchronous rotation. The current command value of the d-axis and the q-axis of the coordinate system /, i q The motor torque command value comes from the demand of the main control unit for the motor torque, and the command value determines the working demand for the motor. The unit current can provide a maximum torque characteristic table which is a data table reflecting the characteristics of the motor, and each permanent magnet synchronous motor has a corresponding data table.
所述固定 /同步坐标变换器 912 , 用于接收当前载波周期的电机电流检测 值, 并使用该电流检测值, 以及转子位置检测器 96检测获得电机的转子位置 角, 计算获得同步旋转坐标系 d轴和 q轴的实际电流值^ ^并输出。  The fixed/synchronous coordinate converter 912 is configured to receive a motor current detection value of a current carrier cycle, and use the current detection value, and the rotor position detector 96 detects the rotor position angle of the motor, and obtains a synchronous rotation coordinate system d. The actual current value of the axis and q axis ^ ^ and output.
电流控制器 913, 用于接收所述 d轴和 q轴的电流指令值 /、 iq 以及 d 轴和 q轴的实际电流值 id、 iq, 并据此计算同步旋转坐标系 d轴电压指令值和 q轴电压指令值 Μ ,· M , d轴电压矢量 为 对 /与 的 PI控制输出值减去 电机极对数 、 转子角速度《、 q轴电感 以及 的乘积; q轴电压矢量 u 为对 i 与 的 PI控制输出值与电机极对数 、 转子角速度《、 q轴电感 以 及 id的乘积以及电机极对数 P、 ω、 永磁磁链 m的乘积之和。 a current controller 913, configured to receive current command values /, i q of the d-axis and q-axis and actual current values i d , iq of the d-axis and the q-axis, and calculate a synchronous rotating coordinate system d-axis voltage command accordingly Value and q-axis voltage command value Μ , · M , d-axis voltage vector is the product of the PI control output value of the pair/and minus the motor pole pair, the rotor angular velocity, and the q-axis inductance; the q-axis voltage vector u is the pair The sum of the PI control output value of i and the product of the motor pole pair, rotor angular velocity, q-axis inductance and id, and the motor pole pair P, ω, permanent magnet flux m.
同步或固定坐标变换器 914 , 用于接收所述同步旋转坐标系 d轴电压指令 值和 q轴电压指令值 M / uq 并将其变换为静止坐标系下的三相电压指令值 输出 M。
Figure imgf000019_0001
所述静止坐标系下的三相电压指令值 ΜΑ*,' MC*即为所 需的 SPWM矢量调制信号。
The synchronous or fixed coordinate converter 914 is configured to receive the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value M / u q and convert it into a three-phase voltage command value output M in a stationary coordinate system.
Figure imgf000019_0001
The three-phase voltage command value Μ Α *, ' M C * in the stationary coordinate system is the desired SPWM vector modulation signal.
所述 SVPWM矢量调制信号计算单元 92,用于接收所述 SPWM矢量调制 信号计算单元 91输出的 SPWM矢量调制信号 Μ ,· ub uc 向该矢量调制信 号中加入对应该载波周期的零序分量, 获得该载波周期内的 SVPWM矢量调 制信号 Μ *,· ub* uc* 所述 SVPWM矢量调制信号计算单元 92使用的当前 载波周期的零序分量具体通过下式获得: u] =
Figure imgf000019_0002
即 为所述零序分量; 为该载波周期下各相的 SPWM矢量调制信号; K为大 于等于零并且小于等于 1的常数。该零序分量随着载波周期的不同而不同,在 每个载波周期中, 将所述 SPWM 矢量调制信号计算单元 91 计算获得的 值带入上述零序分量计算式计算获得对该载波周期的零序分量。 由 于当前载波周期的 SPWM矢量调制信号 u ; ub Mc*依赖于当前载波周期中采 样获得的检测信号的计算结果,而当前载波周期的采样在刚进入载波周期时尚 未进行, 所以实际上, 进行上述计算使用的 SPWM矢量调制信号 Μ ,· ub u * 是采用上一个载波周期获得的采样值进行,由于相邻载波周期中电机状态的变 化不大, 因此, 这样计算的结果可以满足需求,
Zero sequence component of the SVPWM modulation signal vector calculation unit 92, a vector modulation signal SPWM 91 receives the output from the vector modulation signal SPWM calculation unit Μ, · u b u should be added to the carrier cycle c to vector modulation signal Obtaining the SVPWM vector modulation signal 该 *, · u b * u c * in the carrier period. The zero sequence component of the current carrier period used by the SVPWM vector modulation signal calculation unit 92 is specifically obtained by the following equation: u] =
Figure imgf000019_0002
which is The zero sequence component; is the SPWM vector modulation signal of each phase in the carrier cycle; K is a constant greater than or equal to zero and less than or equal to 1. The zero sequence component is different with the carrier period. In each carrier cycle, the value calculated by the SPWM vector modulation signal calculation unit 91 is brought into the above zero sequence component calculation formula to obtain zero for the carrier cycle. Order component. Since the SPWM vector modulation signal u of the current carrier cycle; u b M c * depends on the calculation result of the detection signal obtained by sampling in the current carrier cycle, the sampling of the current carrier cycle has not been performed just after entering the carrier cycle, so actually, The SPWM vector modulation signal Μ , · u b u * used for the above calculation is performed using the sample value obtained in the previous carrier cycle. Since the state of the motor in the adjacent carrier cycle does not change much, the result of such calculation can satisfy the demand. ,
所述占空比计算单元 93 , 用于接收所述 SVPWM矢量调制信号计算单元 The duty ratio calculation unit 93 is configured to receive the SVPWM vector modulation signal calculation unit
92输出的 SVPWM矢量调制信号 ua**/ ub* u * 并根据该 SVPWM矢量调 制信号 Μ *,· ub* O算当前载波周期内的各相占空比。 根据所述 SVPWM 矢量信号, 可以依据下式计算出各相占空比; ' a. ,b,c: The output SVPWM vector modulated signal u a ** / u b * u * and the duty cycle of each phase in the current carrier cycle is calculated according to the SVPWM vector modulation signal Μ *, · u b * O. According to the SVPWM vector signal, the duty ratio of each phase can be calculated according to the following formula: ' a. , b, c:
Figure imgf000020_0001
该式中 , Nf + 表示该采样时刻的 SVPWM三相调制信号
Figure imgf000020_0001
In the formula, Nf + represents the SVPWM three-phase modulation signal at the sampling time.
所述 PWM控制信号产生单元 94, 用于接收所述占空比计算单元 93输出 的当前载波周期内的各相占空比, 并据此产生对应于各相的 PWM控制信号 &、 Sh , Sc。 该单元的具体实现方法有多种, 本实施例中, 该单元包括计数寄 存器 941、 比较数值计算单元 942、 比较结果输出单元 943。 The PWM control signal generating unit 94 is configured to receive the duty ratios of the phases in the current carrier cycle output by the duty ratio calculating unit 93, and generate PWM control signals &, S h corresponding to the respective phases according to the PWM control signals S c . There are various implementation methods of the unit. In this embodiment, the unit includes a count register 941, a comparison value calculation unit 942, and a comparison result output unit 943.
所述计数寄存器 941 , 用于对各个载波周期进行分频计数, 以实现对载波 周期的时间计量。对载波周期进行时间计量有多种方式, 以下提供一种典型的 方式。 设定该计数寄存器 941的寄存器值为 TBPRD保存的值, 从进入载波周 期开始 , 计数器从 0增计数到 TBPRD保存的值, 再从 TBPRD保存的值减计 数到 0, 正好结束一个载波周期。 在该计时过程中, 一个载波周期包括两个对 称的计数过程。计数器的计数单位一般采用系统的最小时钟频率,在最小时钟 频率确定后, 根据载波周期 ;的值可以计算确定所述时基周期寄存器 TBPRD 保存的值。 The counting register 941 is configured to perform frequency division counting on each carrier cycle to implement time measurement of the carrier cycle. There are many ways to time meter the carrier cycle. A typical approach is provided below. The register value of the count register 941 is set to a value saved by TBPRD. From the time of entering the carrier cycle, the counter is incremented from 0 to the value saved by TBPRD, and then subtracted from the value saved by TBPRD. Counting to 0, just ending a carrier cycle. During this timing, one carrier cycle includes two symmetric counting processes. The counter unit of the counter generally adopts the minimum clock frequency of the system. After the minimum clock frequency is determined, the value saved by the time base period register TBPRD can be calculated according to the value of the carrier period;
所述比较数值计算单元 942, 用于接收占空比计算单元 93输出的当前载 波周期中的各相占空比; 7 / a,b,c , 并根据各相占空比计算出对应于各相的比较数 值, 具体计 式为: 。ΜΡΛ
Figure imgf000021_0001
η t / 2。 比较结果输出单元 943 , 用于接收所述比较数值计算单元 942输出的各相 比较数值, 并将该比较数值与所述计数寄存器 941的当前计数值相比较,根据 比较状结果产生相应的 PWM控制信号。 对应各相分别为 &、 Sb、 Sc
The comparison value calculation unit 942 is configured to receive each phase duty ratio in the current carrier cycle output by the duty ratio calculation unit 93; 7 / a, b, c , and calculate corresponding to each phase duty ratio The comparison value of the phase is as follows: ΜΡΛ
Figure imgf000021_0001
η t / 2. The comparison result output unit 943 is configured to receive the comparison values of the phases output by the comparison value calculation unit 942, compare the comparison value with the current count value of the count register 941, and generate corresponding PWM control according to the comparison result. signal. Corresponding to each phase is &, S b , S c .
以下以一个具体的比较过程的实例说明上述比较过程。 设某个载波周期 中, 对应 A相占空比的比较数值为计数比较寄存器 A ( CMPA, A counter compare register ), 当当前计数值 CTR = 0时, 表明 ¾ 新的载波周期, 此时, 由于 CTR<CMPA, 该单元输出的 A相 PWM控制信号&为低电平, 即& = 0; 当 CTR = CMPA, 并且所述计数寄存器处于增计数阶段, 则该单元对应该相输出 的 PWM控制信号跳变为高电平, 即由& = 0变化为& = 1; 当 CTR = CMPA, 并且计数寄存器处于减计数阶段,则该单元对应该相输出的 PWM控制信号跳 变为低电平, 即由& = 1变化为& = 0, 直到该载波周期结束。 上述过程可以实 现& = 1在一个载波周期中的占空比为 。 一个载波周期结束后, 进入下一个 载波周期, 根据新的载波周期中的各相占空比, 计算新的 CMPA值, 并重新 开始计数。这样从一个载波周期到下一个载波周期, 最终形成一个完整的电机 控制过程。  The above comparison process is illustrated by an example of a specific comparison process. In a certain carrier cycle, the comparison value of the corresponding A phase duty is the comparison comparison register A (CMPA, A counter compare register). When the current count value CTR = 0, it indicates that the new carrier cycle is 3⁄4, at this time, CTR<CMPA, the A-phase PWM control signal & output of the unit is low, that is, & = 0; when CTR = CMPA, and the counting register is in the up counting phase, the unit corresponds to the PWM control signal output by the phase Jump to high level, that is, change from & = 0 to & = 1; When CTR = CMPA, and the count register is in the down counting phase, the unit's PWM control signal corresponding to the phase output jumps low, ie Change from & = 1 to & = 0 until the end of the carrier cycle. The above process can achieve a duty cycle of & = 1 in one carrier cycle. After the end of one carrier cycle, the next carrier cycle is entered, and the new CMPA value is calculated according to the duty cycle of each phase in the new carrier cycle, and the counting is restarted. This results in a complete motor control process from one carrier cycle to the next.
所述驱动信号产生单元 95, 接收所述 PWM控制信号产生单元 94输出对 应各相的 PWM控制信号 , 据此产生对应各相的互补的两路 PWM驱动信号 , 分别驱动该相的上下桥臂。 如图 9所示, PWM驱动信号包括 PWMa 、 PWMa 下、 PWMb上、 PWMb下、 PWMC上、 PWMC下, 分对应 A、 B、 C三相的上下桥臂。 不设置死区区间时, 每一相的上下桥臂之间互补导通。 以 A相为例, 在不存 在死区时间设置时, 当所接收的 PWM控制信号& = 1时, 则所述 PWMa 输出 高电平, 使 A相上桥臂导通, 同时所述 PWMa T输出低电平, 使 A相下桥臂截 至。 当所接收的 PWM控制信号& = 0时, 则所述 PWM^输出低电平, 使 A相 上桥臂截至, 同时所述 PWMa下输出高电平, 使 A相下桥臂导通。 当然, 也可 以对 &信号作相反的解读。 在采用死区区间设置时, 下桥臂对上桥臂存在延 迟或者前滞互补导通。 The driving signal generating unit 95 receives the PWM control signal generating unit 94 to output a PWM control signal corresponding to each phase, thereby generating complementary two PWM driving signals corresponding to the respective phases, respectively driving the upper and lower arms of the phase. As shown in Figure 9, the PWM drive signal includes PWM a , PWM a Down, PWM b , PWM b , PWM C , PWM C , corresponding to the upper and lower arms of A, B, C three phases. When the dead zone is not set, the upper and lower arms of each phase are complementarily turned on. Taking the phase A as an example, when there is no dead time setting, when the received PWM control signal & = 1, the PWM a outputs a high level, so that the A-phase upper arm is turned on, and the PWM a T outputs a low level, causing the A-phase lower arm to end. When the received PWM control signal & = 0, the PWM ^ outputs a low level, so that the A-phase upper arm is turned off, and the PWM a outputs a high level, so that the A-phase lower arm is turned on. Of course, you can also interpret the & signal in reverse. When the dead zone setting is adopted, the lower arm has a delay or a complementary stagnation of the upper arm.
本实施例提供的电机控制装置可以采用 DSP TMS320f2808芯片实现。 需要说明的是, 本发明中所述寄存器值和 TBPRD保存的值一般情况下可 以等同。  The motor control device provided in this embodiment can be implemented by using a DSP TMS320f2808 chip. It should be noted that the register value and the value saved by TBPRD in the present invention are generally equivalent.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。  The above is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims

权 利 要 求 Rights request
1、 一种采用空间矢量脉冲宽度调制的电机控制方法, 其特征在于, 包括: 计算当前载波周期的各相正弦脉宽调制 SPWM矢量调制信号;  A motor control method using space vector pulse width modulation, comprising: calculating a sinusoidal pulse width modulation SPWM vector modulation signal of each phase of a current carrier cycle;
将所述各相 SPWM矢量调制信号, 加入该载波周期的零序分量, 获得该 载波周期内的各相电压空间矢量脉冲宽度调制 SVPWM矢量调制信号;  Adding each phase SPWM vector modulation signal to the zero sequence component of the carrier cycle to obtain each phase voltage space vector pulse width modulation SVPWM vector modulation signal in the carrier cycle;
根据所述各相 SVPWM矢量调制信号, 获得当前载波周期内各相占空比; 根据所确定的当前载波周期内各相占空比, 产生对应于各相的脉宽调制 PWM控制信号;  Obtaining a duty ratio of each phase in a current carrier cycle according to each phase SVPWM vector modulation signal; generating a pulse width modulation PWM control signal corresponding to each phase according to the determined duty ratio of each phase in the current carrier cycle;
根据所述 PWM控制信号, 产生对应于逆变器各相的上下桥臂的 PWM驱 动信号, 控制当前载波周期内逆变器各个桥臂的导通和关断。  According to the PWM control signal, a PWM driving signal corresponding to the upper and lower arms of each phase of the inverter is generated, and the on and off of the respective arms of the inverter in the current carrier cycle are controlled.
2、根据权利要求 1所述的方法, 其特征在于, 计算所述 SPWM矢量调制 信号包括步骤:  2. The method of claim 1 wherein calculating the SPWM vector modulated signal comprises the steps of:
检测获得当前载波周期内电机的三相电流、直流母线电压以及转子运行速 度, 以及根据所述转子运行速度计算得到电机的转子角速度;  Detecting the three-phase current, the DC bus voltage, and the rotor running speed of the motor in the current carrier cycle, and calculating the rotor angular velocity of the motor according to the rotor operating speed;
接收当前对电机扭矩的指令值;  Receiving the current command value for the motor torque;
根据所述转子角速度和所述电机扭矩指令值,通过电机特性表获得同步旋 转坐标系 d轴和 q轴的电流指令值 id x、 iqx; Obtaining current command values i d x , iq x of the d-axis and q-axis of the synchronous rotating coordinate system by the motor characteristic table according to the rotor angular velocity and the motor torque command value;
使用当前载波周期电机电流检测值, 计算获得同步旋转坐标系 d轴和 q 轴的实际电流值 id、 iq; Using the current carrier cycle motor current detection value, calculating the actual current values i d , iq of the synchronous rotating coordinate system d-axis and q-axis;
根据 d轴和 q轴的电流指令值 id x、 iqx和 d轴和 q轴的实际电流值 id、 iq, 计算得到同步旋转坐标系 d轴电压指令值和 q轴电压指令值; Calculating the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value according to the current command values i d x , iq x of the d-axis and the q-axis and the actual current values i d , i q of the d-axis and the q-axis;
将所述 d轴电压指令值、 q轴电压指令值变换为静止坐标系下的三相电压 指令值; 所述三相电压指令值为各相的所述 SPWM矢量调制信号。  The d-axis voltage command value and the q-axis voltage command value are converted into a three-phase voltage command value in a stationary coordinate system; and the three-phase voltage command value is the SPWM vector modulation signal of each phase.
3、 根据权利要求 1或者 2所述的电机控制方法, 其特征在于, 所述计算 当前载波周期的各相正弦脉宽调制 SPWM矢量调制信号的具体为:  The motor control method according to claim 1 or 2, wherein the calculating the sinusoidal pulse width modulation SPWM vector modulation signal of each phase of the current carrier cycle is:
根据接收到当前载波周期的电机运行状态检测数据以及指令数据计算当 前载波周期的各相正弦脉宽调制 SPWM矢量调制信号;  Calculating each phase sinusoidal pulse width modulation SPWM vector modulation signal of the current carrier cycle according to the motor running state detection data and the command data receiving the current carrier cycle;
所述电机运行状态检测数据和指令数据以载波周期中点处触发中断更新 采样值获得。 The motor running state detection data and the command data are obtained by triggering an interrupt update sampling value at a midpoint of a carrier cycle.
4、 根据权利要求 3所述的电机控制方法, 其特征在于, 4. The motor control method according to claim 3, wherein
电机运行状态检测数据包括: 电机转子位置角、 电机转子角速度以及电机 电流; 所述电机转子位置角采用转子位置检测器检测获得转子的转子位置角, 所述电机转子角速度为根据相邻转子位置角的差值除以采样时间获得。  The motor running state detection data includes: a motor rotor position angle, a motor rotor angular velocity, and a motor current; the motor rotor position angle is detected by a rotor position detector to obtain a rotor rotor position angle, and the motor rotor angular velocity is based on an adjacent rotor position angle The difference is divided by the sampling time.
5、 根据权利要求 1所述的方法, 其特征在于, 所述零序分量通过下式获 得: z z =— max (^,W:, (丄― ) * min (w:, W:, ¾:)+ (2 — ; 其中, ^为 零序分量; ¾ £为该载波周期下各相的 SPWM矢量调制信号; K为大于等于 零并且小于等于 1的常数。 5. The method according to claim 1, wherein the zero sequence component is obtained by: z z = - max (^, W:, (丄 - ) * min (w:, W:, 3⁄4 :) + ( 2 — ; where ^ is a zero-order component; 3⁄4 £ is the SPWM vector modulation signal of each phase in the carrier period; K is a constant greater than or equal to zero and less than or equal to 1.
6、 根据权利要求 1所述的方法, 其特征在于, 所述根据 SVPWM矢量调 制信号, 获得该载波周期内各相占空比, 具体是采用下述公式计算获得: The method according to claim 1, wherein the determining the duty ratio of each phase in the carrier period according to the SVPWM vector modulation signal is specifically calculated by using the following formula:
T + 0-5 U d T + 0 - 5 U d
其中, T。^为各相导通时间, Md为直流母线电压, ;为采样周期; 一个 采样周期内各相导通时间 T。, c除以所述采样周期 Ts即为对应各相的所述占空 比。 Among them, T. ^ is the conduction time of each phase, M d is the DC bus voltage, which is the sampling period; the conduction time T of each phase in one sampling period. The dividing of c by the sampling period T s is the duty ratio corresponding to each phase.
7、 根据权利要求 1所述的方法, 其特征在于, 所述根据所确定的当前载 波周期内各相占空比, 产生对应于各相的 PWM控制信号, 具体是:  The method according to claim 1, wherein the generating, according to the determined duty ratio of each phase in the current carrier period, generating a PWM control signal corresponding to each phase, specifically:
采用计数寄存器对载波周期进行计数,所述计数寄存器值为时基周期寄存 器 TBPRD保存的值;  The carrier period is counted by a count register, and the count register value is a value held by the time base period register TBPRD;
一个载波周期中包括该计数寄存器从 0增计数到 TBPRD保存的值 ,再从 TBPRD保存的值减计数到 0两个对称的过程;  One carrier cycle includes the count register incrementing from 0 to the value saved by TBPRD, and then counting down from the value saved by TBPRD to 0 symmetrical process;
根据所述各相占空比通过公式计算出计数比较寄存器 A的数值, 所述公 式为: CMPA = TBPRD / 2; 当计数值 CTR = 0时,开始 ϋΤ 当前载波周期,此时 CTR<CMPA,该相 PWM 控制信号保持为低电平; 当 CTR = CMPA, 并且计数寄存器处于增计数阶段, 则 该相 PWM控制信号跳变为高电平输出; 当 CTR = CMPA, 并且计数寄存器处 于减计数阶段, 则该相 PWM控制信号跳变为低电平输出。 The value of the count comparison register A is calculated according to the duty ratio of each phase by the formula, and the formula is: CMPA = TBPRD / 2; when the count value CTR = 0, the current carrier cycle starts, and CTR <CMPA, The phase PWM control signal remains low; when CTR = CMPA, and the count register is in the up count phase, the phase PWM control signal transitions to a high level output; when CTR = CMPA, and the count register During the down counting phase, the phase PWM control signal transitions to a low level output.
8、 根据权利要求 1所述的方法, 其特征在于, 所述控制当前载波周期内 逆变器各个桥臂的导通和关断具体为:  8. The method according to claim 1, wherein the controlling the turning on and off of each arm of the inverter in the current carrier cycle is specifically:
当对应某一相的 PWM控制信号为高电平时,向该相上桥臂输出高电平信 号, 使该桥臂导通, 向该相下桥臂输出低电平信号, 使该桥臂截至;  When the PWM control signal corresponding to a certain phase is at a high level, a high level signal is output to the upper arm of the phase, so that the bridge arm is turned on, and a low level signal is output to the lower arm of the phase, so that the bridge arm is turned off. ;
当该相 PWM控制信号为低电平时, 向该相上桥臂输出低电平信号, 使上 桥臂截至, 向该相下桥臂输出高电平信号, 使该相下桥臂导通。  When the phase PWM control signal is low, a low level signal is output to the upper arm of the phase, so that the upper arm is turned off, and a high level signal is output to the lower arm of the phase, so that the lower arm of the phase is turned on.
9、一种采用空间矢量脉冲宽度调制的电机控制装置, 其特征在于, 包括: SPWM 矢量调制信号计算单元, 用于接收当前载波周期内获得的电机运 行状态检测数据以及指令数据, 并据此计算对应该载波周期的 SPWM矢量调 制信号;  9. A motor control apparatus using space vector pulse width modulation, comprising: an SPWM vector modulation signal calculation unit, configured to receive motor running state detection data and instruction data obtained in a current carrier cycle, and calculate according to the same SPWM vector modulated signal corresponding to the carrier period;
SVPWM矢量调制信号计算单元, 用于接收所述 SPWM矢量调制信号计 算单元输出的 SPWM矢量调制信号, 向该矢量调制信号中加入对应该载波周 期的零序分量, 获得该载波周期内的 SVPWM矢量调制信号;  An SVPWM vector modulation signal calculation unit, configured to receive an SPWM vector modulation signal output by the SPWM vector modulation signal calculation unit, and add a zero sequence component corresponding to a carrier period to the vector modulation signal to obtain an SVPWM vector modulation in the carrier period Signal
占空比计算单元, 用于接收所述 SVPWM 矢量调制信号计算单元输出的 a duty ratio calculation unit, configured to receive the output of the SVPWM vector modulation signal calculation unit
SVPWM矢量调制信号,并根据该 SVPWM矢量调制信号计算当前载波周期内 的各相占空比; The SVPWM vector modulates the signal, and calculates a duty ratio of each phase in the current carrier cycle according to the SVPWM vector modulation signal;
PWM控制信号产生单元, 用于接收所述占空比计算单元输出的当前载波 周期内的各相占空比,并据此在该载波周期产生对应于各相占空比的 PWM控 制信号;  a PWM control signal generating unit, configured to receive a duty ratio of each phase in a current carrier period output by the duty ratio calculating unit, and accordingly generate a PWM control signal corresponding to each phase duty ratio in the carrier period;
驱动信号产生单元, 用于接收所述 PWM控制信号产生单元输出的 PWM 控制信号, 并根据各相的 PWM控制信号产生两路驱动信号, 该驱动信号输出 到逆变器各相的上、 下桥臂, 控制逆变器各个桥臂的导通和关断。  a driving signal generating unit, configured to receive a PWM control signal output by the PWM control signal generating unit, and generate two driving signals according to the PWM control signals of the respective phases, and the driving signal is output to the upper and lower bridges of each phase of the inverter The arm controls the turning on and off of each arm of the inverter.
10、 根据权利要求 9所述的电机控制装置, 其特征在于, 所述 SPWM矢 量调制信号计算单元包括:  10. The motor control apparatus according to claim 9, wherein the SPWM vector modulation signal calculation unit comprises:
电流指令值确定子单元,用于接收检测获得的当前载波周期的电机转子角 速度, 以及当前的电机扭矩指令值, 通过电机特性表获得同步旋转坐标系 d 轴和 q轴的电流指令值 id x、 iq x; The current command value determining subunit is configured to receive the motor rotor angular velocity of the current carrier cycle obtained by the detection, and the current motor torque command value, and obtain the current command value i d x of the synchronous rotating coordinate system d-axis and the q-axis through the motor characteristic table. , i q x ;
固定或同步坐标变换器, 用于接收当前载波周期的电机电流检测值, 以及 转子位置检测值,并根据所述检测值计算获得同步旋转坐标系 d轴和 q轴的实 际电:^值 id、 iq; a fixed or synchronous coordinate converter for receiving motor current detection values for the current carrier cycle, and a rotor position detection value, and calculating an actual electric power of the d-axis and the q-axis of the synchronous rotating coordinate system according to the detected value: ^ value i d , iq;
电流控制器, 用于接收所述 d轴和 q轴的电流指令值 /、 iqx , 以及 d轴 和 q轴的实际电流值^ iq , 结合检测获得的电机转子角速度, 计算同步旋转 坐标系 d轴电压指令值和 q轴电压指令值 Vd*; V *; a current controller for receiving the current command value /, iq x of the d-axis and the q-axis, and an actual current value ^ i q of the d-axis and the q-axis, and calculating a synchronous rotating coordinate system in combination with the obtained motor rotor angular velocity D-axis voltage command value and q-axis voltage command value V d *; V *;
同步或固定坐标变换器,用于接收所述同步旋转坐标系 d轴电压指令值和 q轴电压指令值, 并将所述 d轴电压指令值、 q轴电压指令值变换为静止坐标 系下的三相电压指令值输出; 所述静止坐标系下的三相电压指令值为所需的 SPWM矢量调制信号。  a synchronous or fixed coordinate converter for receiving the synchronous rotating coordinate system d-axis voltage command value and the q-axis voltage command value, and converting the d-axis voltage command value and the q-axis voltage command value into a stationary coordinate system The three-phase voltage command value output; the three-phase voltage command value in the static coordinate system is a desired SPWM vector modulation signal.
11、 根据权利要求 9或者 10所述的电机控制装置, 其特征在于, 对所述 电机转子角速度、电机电流以及获得当前电机扭矩指令值等都是在载波周期的 中点处采样获得。  11. A motor control apparatus according to claim 9 or 10, wherein the motor rotor angular velocity, the motor current, and the current motor torque command value are all sampled at a midpoint of the carrier cycle.
12、 根据权利要求 10所述的电机控制装置, 其特征在于, 所述 SVPWM 矢量调制信号计算单元使用的当前载波周期的零序分量具体通过下式获得: ] =
Figure imgf000026_0001
(2k ~ 1); 其中, 即为 所述零序分量; 为该载波周期下各相的 SPWM矢量调制信号; Κ为大于 等于零并且小于等于 1的常数。
12. The motor control apparatus according to claim 10, wherein the zero sequence component of the current carrier cycle used by the SVPWM vector modulation signal calculation unit is specifically obtained by:
Figure imgf000026_0001
( 2k ~ 1 ); wherein, the zero sequence component; is the SPWM vector modulation signal of each phase in the carrier cycle; Κ is a constant greater than or equal to zero and less than or equal to 1.
13、根据权利要求 9所述的电机控制装置, 其特征在于, 所述占空比计算 单元具体采用下述公式计算获得当前载波周期内的各相占空比; 7 b e: ** The motor control device according to claim 9, wherein the duty ratio calculation unit specifically calculates the duty ratio of each phase in the current carrier cycle by using the following formula; 7 be : **
T = + 0-5 U dT = + 0 - 5 U d ;
其中, T。, 为各相导通时间, Md为直流母线电压, ;为采样周期; Among them, T. , for each phase conduction time, M d is the DC bus voltage, and is the sampling period;
丄 s 即为对应各相的所述占空比; 。  丄 s is the duty cycle corresponding to each phase;
14、 根据权利要求 9所述的电机控制装置, 其特征在于, 所述 PWM控制 信号产生单元包括: 计数寄存器, 用于对各个载波周期进行分频计数, 以实现对载波周期的时 间计量; 该计数寄存器的寄存器值为 TBPRD保存的值, 对一个载波周期的计 时包括从 0增计数到 TBPRD保存的值, 再从 TBPRD保存的值减计数到 0的 两个对称过程; The motor control device according to claim 9, wherein the PWM control signal generating unit comprises: The counting register is configured to perform frequency counting on each carrier cycle to implement time measurement of the carrier cycle; the register value of the counting register is a value saved by TBPRD, and the timing of one carrier cycle includes counting from 0 to TBPRD. Value, then two symmetrical processes that count down from the value held by TBPRD to 0;
比较数值计算单元,用于接收占空比计算单元输出的当前载波周期中的各 相占空比, 并根据各相占空比计算出比较数值; 具体计算公式为:  The comparison value calculation unit is configured to receive each phase duty ratio in the current carrier cycle output by the duty ratio calculation unit, and calculate a comparison value according to each phase duty ratio; the specific calculation formula is:
CMPA = TBPRD *†1 1 2 -CMPA = TBPRD *†1 1 2 -
I a,b ,c ' 比较结果输出单元, 用于接收所述比较数值计算单元输出的各相比较数 值, 并将该比较数值与所述计数寄存器的当前计数值 CTR相比较, 根据比较 状结果产生不同的输出信号作为 PWM控制信号; CTR = 0时, ¾ 新的载波周 期, 此时 CTR<CMPA, 该单元输出的 PWM控制信号为低电平; 当 CTR = CMPA, 并且所述计数寄存器处于增计数阶段, 则该单元对应该相输出的 PWM控制信 号跳变为高电平; 当 CTR = CMPA, 并且计数寄存器处于减计数阶段, 则该单 元对应该相输出的 PWM控制信号跳变为低电平。 I a, b , c ' comparison result output unit, configured to receive the comparison value of each phase output by the comparison value calculation unit, and compare the comparison value with the current count value CTR of the count register, according to the comparison result Generate different output signals as PWM control signals; when CTR = 0, 3⁄4 new carrier cycle, at this time CTR<CMPA, the PWM control signal of the unit output is low; when CTR = CMPA, and the counting register is In the up counting phase, the unit jumps to the high level of the PWM control signal corresponding to the phase output; when CTR = CMPA, and the counting register is in the down counting phase, the unit jumps to the PWM control signal corresponding to the phase output. Level.
15、根据权利要求 9所述的电机控制装置, 其特征在于, 所述电机运行状 态检测数据包括电机转子位置角、 电机转子角速度以及电机电流; 所述电机转 子位置角采用转子位置检测器检测获得转子的转子位置角 ,所述电机转子角速 度根据相邻转子位置角的检测值, 采用下式计算获得: , ø (κ)
Figure imgf000027_0001
The motor control device according to claim 9, wherein the motor running state detection data comprises a motor rotor position angle, a motor rotor angular velocity, and a motor current; and the motor rotor position angle is detected by a rotor position detector. The rotor position angle of the rotor, which is calculated according to the detected value of the adjacent rotor position angle by the following formula: , ø (κ)
Figure imgf000027_0001
表示在当前采样时刻 Κ检测获得的转子位置角; Θ -7 表示在前次采样时刻 ( K-1 )检测获得的转子位置角; 为采样间隔时间。 Indicates the rotor position angle obtained by the 采样 detection at the current sampling time; Θ -7 indicates the rotor position angle obtained at the previous sampling time (K-1); it is the sampling interval time.
16、 根据权利要求 15所述的电机控制装置, 其特征在于, 所述转子位置 检测器为旋转变压器或者霍尔位置传感器。  The motor control device according to claim 15, wherein the rotor position detector is a resolver or a Hall position sensor.
PCT/CN2008/070145 2007-10-19 2008-01-21 A motor control method and device by using space vector pulse width modulation WO2009049501A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007101633798A CN101174811B (en) 2007-10-19 2007-10-19 Electric motor control method and device adopting space vector pulse width modulation
CN200710163379.8 2007-10-19

Publications (1)

Publication Number Publication Date
WO2009049501A1 true WO2009049501A1 (en) 2009-04-23

Family

ID=39423127

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070145 WO2009049501A1 (en) 2007-10-19 2008-01-21 A motor control method and device by using space vector pulse width modulation

Country Status (2)

Country Link
CN (1) CN101174811B (en)
WO (1) WO2009049501A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102522912A (en) * 2012-01-06 2012-06-27 西安龙腾新能源科技发展有限公司 Bipolar SPWM (Sinusoidal Pulse Width Modulation) type adaptive dead-zone compensation method
CN103107763A (en) * 2013-01-28 2013-05-15 万高(杭州)科技有限公司 Compensation method of motor load pulsation based on nonlinear space vector pulse width modulation
CN112803858A (en) * 2021-01-19 2021-05-14 大连海事大学 Improved current hysteresis control method of permanent magnet fault-tolerant motor based on H-bridge inverter
CN113285636A (en) * 2021-05-17 2021-08-20 南京工程学院 Voice coil motor control method and control system
CN113359671A (en) * 2019-11-01 2021-09-07 郑州嘉晨电器有限公司 Safe operation control system of alternating current motor controller
CN113676114A (en) * 2021-07-23 2021-11-19 山东省科学院自动化研究所 Three-phase motor direct torque control method based on voltage vector action time adjustment
CN114123908A (en) * 2021-11-26 2022-03-01 沈阳工业大学 Virtual space voltage vector pulse width modulation method for double three-phase motor
CN114337409A (en) * 2020-10-10 2022-04-12 广东美的环境电器制造有限公司 Motor control method, circuit, device and storage medium
CN116155129A (en) * 2023-04-18 2023-05-23 湖南大学 Simplified voltage modulation model, method and device based on virtual voltage vector
CN117394708A (en) * 2023-12-13 2024-01-12 四川大学 Current-mode PWM rectifier control system and method suitable for input unbalance
CN117491721A (en) * 2023-12-28 2024-02-02 锦浪科技股份有限公司 Zero sequence voltage control method and device, electronic equipment and storage medium

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100557943C (en) * 2008-06-13 2009-11-04 株洲南车时代电气股份有限公司 A kind of synchronous modulation method based on space vector
DE102008040144A1 (en) * 2008-07-03 2010-01-07 Robert Bosch Gmbh Method and device for optimizing a space vector pulse width modulation
CN101442290B (en) * 2009-01-04 2010-12-29 株洲南车时代电气股份有限公司 Overmodulation method and system for bi-level space vector pulse duration modulation
CN101667262B (en) * 2009-09-19 2012-08-22 宁波双林汽车部件股份有限公司 Error-free counting method for rotator revolutions of orthogonally distributed dual sensor
CN102215024B (en) * 2010-04-09 2013-02-20 中国科学院微电子研究所 Difference voltage spatial vector modulation method with selector
CN102045012A (en) * 2010-09-15 2011-05-04 苏州凌创电子系统有限公司 Controller for permanent magnet synchronous brushless motor
CN102122915B (en) * 2011-04-08 2013-03-06 中国科学院微电子研究所 Device for closed-loop control of permanent magnet synchronous motor
CN102223132B (en) * 2011-06-22 2013-09-18 中国科学院光电技术研究所 Method for controlling multi-stator arc motor for large telescope
CN102882399B (en) * 2012-06-13 2015-08-05 上海晟矽微电子股份有限公司 For the control algolithm of variable-frequency motor at the circuit implementing method of inverter
JP6081734B2 (en) * 2012-08-13 2017-02-15 ラピスセミコンダクタ株式会社 Semiconductor device, electronic device, and control signal generation method
US9500466B2 (en) * 2013-03-12 2016-11-22 Steering Solutions Ip Holding Corporation Electrical power steering phase voltage output diagnosis
CN103929110B (en) * 2014-04-09 2017-09-15 东南大学 Using the M phase magneto control methods of dutycycle direct solution pulsewidth modulation
CN104485865B (en) * 2014-11-28 2017-02-22 四川长虹电器股份有限公司 Control method based on output voltage linear control for linear zone
CN104579037B (en) * 2014-12-02 2018-12-04 常州大学 A kind of driving algorithm that synchronous motor is new
CN105007016B (en) * 2015-07-24 2018-02-09 北京控制工程研究所 A kind of permagnetic synchronous motor speed-measuring method based on rotary transformer
CN106953578B (en) * 2017-05-04 2019-11-29 上海航天控制技术研究所 Rotation becomes the transposition control system of location information combination hall position sensor
CN107147343A (en) * 2017-06-02 2017-09-08 深圳市奇诺动力科技有限公司 Brushless electric machine Field orientable control drive system and control method
CN108449003B (en) * 2018-05-09 2020-07-07 青岛海尔智能技术研发有限公司 Control method and device of three-phase inverter, driving system and storage medium
CN112019128A (en) * 2019-05-31 2020-12-01 北京车和家信息技术有限公司 Duty ratio determination method and device in SVPWM control
CN112886849B (en) * 2019-11-29 2022-08-16 北京华航无线电测量研究所 Output current harmonic suppression method for seven-phase current source type converter
CN112994579B (en) * 2021-03-10 2023-10-10 苏州汇川联合动力系统股份有限公司 Inverter driving signal modulation method, apparatus and computer readable storage medium
CN113075895B (en) * 2021-03-26 2022-09-09 江苏城乡建设职业学院 High-speed centrifuge interrupt program instruction distribution method
CN112994505B (en) * 2021-04-29 2021-07-30 新誉集团有限公司 Current transformer and SVPWM modulation system and method thereof
CN113381658B (en) * 2021-06-21 2022-06-10 北京理工大学 Variable weight superposition type overmodulation method for electric vehicle motor controller
CN114362607B (en) * 2022-01-14 2023-03-21 晟矽微电子(南京)有限公司 Motor driving device, driving assembly and electric tool

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902813A (en) * 2004-01-07 2007-01-24 三菱电机株式会社 Motor controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3707244B2 (en) * 1998-04-03 2005-10-19 富士電機機器制御株式会社 Induction motor speed control device
KR100374832B1 (en) * 2000-10-19 2003-03-04 엘지전자 주식회사 Velocity control apparatus of synchronous reluctance motor
KR100421376B1 (en) * 2001-07-10 2004-03-09 엘지전자 주식회사 Apparatus for rotary velocity control of synchronous reluctance motor
CN1194464C (en) * 2002-11-15 2005-03-23 清华大学 Method for directly controlling structure-change torque of inductive motor modulated by space vector

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902813A (en) * 2004-01-07 2007-01-24 三菱电机株式会社 Motor controller

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TAN, GUOJUN ET AL.: "Carrier-based Space Vector Pulse-width Modulation Technique Based on Zero-sequence Offset Time.", ELECTRIC TRANSMISSION., vol. 37, no. 2, 2007, pages 32 - 35 *
ZHU, ZHIKUN ET AL.: "The Comparison and Analysis of Two Methods to Produce SVPWM by DSP.", JOURNAL OF ARMORED FORCE ENGINEERING INSTITUTE., vol. 16, no. 1, March 2002 (2002-03-01), pages 73 - 77 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102522912A (en) * 2012-01-06 2012-06-27 西安龙腾新能源科技发展有限公司 Bipolar SPWM (Sinusoidal Pulse Width Modulation) type adaptive dead-zone compensation method
CN103107763A (en) * 2013-01-28 2013-05-15 万高(杭州)科技有限公司 Compensation method of motor load pulsation based on nonlinear space vector pulse width modulation
CN113359671A (en) * 2019-11-01 2021-09-07 郑州嘉晨电器有限公司 Safe operation control system of alternating current motor controller
CN114337409A (en) * 2020-10-10 2022-04-12 广东美的环境电器制造有限公司 Motor control method, circuit, device and storage medium
CN114337409B (en) * 2020-10-10 2024-01-05 广东美的环境电器制造有限公司 Motor control method, circuit, device and storage medium
CN112803858A (en) * 2021-01-19 2021-05-14 大连海事大学 Improved current hysteresis control method of permanent magnet fault-tolerant motor based on H-bridge inverter
CN112803858B (en) * 2021-01-19 2023-02-03 大连海事大学 Improved current hysteresis control method of permanent magnet fault-tolerant motor based on H-bridge inverter
CN113285636B (en) * 2021-05-17 2022-08-30 南京工程学院 Voice coil motor control method and control system
CN113285636A (en) * 2021-05-17 2021-08-20 南京工程学院 Voice coil motor control method and control system
CN113676114A (en) * 2021-07-23 2021-11-19 山东省科学院自动化研究所 Three-phase motor direct torque control method based on voltage vector action time adjustment
CN113676114B (en) * 2021-07-23 2023-09-12 山东省科学院自动化研究所 Direct torque control method of three-phase motor based on voltage vector acting time adjustment
CN114123908A (en) * 2021-11-26 2022-03-01 沈阳工业大学 Virtual space voltage vector pulse width modulation method for double three-phase motor
CN114123908B (en) * 2021-11-26 2023-10-17 沈阳工业大学 Virtual space voltage vector pulse width modulation method for double three-phase motor
CN116155129A (en) * 2023-04-18 2023-05-23 湖南大学 Simplified voltage modulation model, method and device based on virtual voltage vector
CN117394708A (en) * 2023-12-13 2024-01-12 四川大学 Current-mode PWM rectifier control system and method suitable for input unbalance
CN117394708B (en) * 2023-12-13 2024-02-20 四川大学 Current-mode PWM rectifier control system and method suitable for input unbalance
CN117491721A (en) * 2023-12-28 2024-02-02 锦浪科技股份有限公司 Zero sequence voltage control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101174811A (en) 2008-05-07
CN101174811B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
WO2009049501A1 (en) A motor control method and device by using space vector pulse width modulation
JP5593310B2 (en) Space vector based synchronous modulation method and system
JP2000350489A (en) Position sensorless motor controller
JP2003111472A (en) Switching method for ground referenced voltage controlled electric machine
CN104767434A (en) Rotor phase commutation position detection and phase commutation control method for brushless direct current motor
CN112436772A (en) Model prediction decomposition control method and device for open-winding five-phase permanent magnet synchronous motor
WO2015027558A1 (en) Method for controlling three-phase dc brushless motor using single hall effect sensor
KR100960043B1 (en) Apparatus and method for controlling space voltage vector in two-phase synchronous permanent magnet motor
US20160352269A1 (en) Apparatus for controlling rotary electric machine
CN108696207A (en) The control method and control system of high-speed brushless DC electromotor
CN105846745A (en) Brushless DC motor direct torque control system and control method
KR101618722B1 (en) Motor drive system
JP2002051580A (en) Position-sensorless control method for synchronous motor, and position-sensorless controller
TW201818644A (en) A control chip, system and method for a motor
JP6348779B2 (en) Synchronous motor drive system
CN110649844A (en) Brushless direct current motor vector control system and method based on alpha beta current controller
Toliyat et al. DSP-based control of variable speed drives
CN111934588B (en) Rotor position detection system and method under static state of brushless direct current motor without position sensor
JP2003111490A (en) Method and apparatus of controlling inverter
JP7130143B2 (en) Estimation device and AC motor drive device
WO2019216074A1 (en) Rotary machine control device
CN205545043U (en) Brushless DC motor direct torque control system based on hall signal
CN113872478B (en) Motor rotation speed adjusting method, device, equipment and storage medium
CN110808704B (en) Low control frequency control method of high switching frequency inverter
CN114337389B (en) Method, equipment and medium for predictive control of torque of brushless DC motor with hollow cup

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08700802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08700802

Country of ref document: EP

Kind code of ref document: A1