CN111049448A - Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor - Google Patents

Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor Download PDF

Info

Publication number
CN111049448A
CN111049448A CN201911420766.4A CN201911420766A CN111049448A CN 111049448 A CN111049448 A CN 111049448A CN 201911420766 A CN201911420766 A CN 201911420766A CN 111049448 A CN111049448 A CN 111049448A
Authority
CN
China
Prior art keywords
double
permanent magnet
synchronous motor
magnet synchronous
shift
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201911420766.4A
Other languages
Chinese (zh)
Other versions
CN111049448B (en
Inventor
朱元
肖明康
陆科
吴志红
张幸福
李亦舟
安浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongji University
Original Assignee
Tongji University
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 Tongji University filed Critical Tongji University
Priority to CN201911420766.4A priority Critical patent/CN111049448B/en
Publication of CN111049448A publication Critical patent/CN111049448A/en
Application granted granted Critical
Publication of CN111049448B publication Critical patent/CN111049448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • 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
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • H02P21/18Estimation of position or speed
    • 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
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • H02P21/20Estimation of torque
    • 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
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/022Synchronous motors
    • 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
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/34Modelling or simulation for control purposes
    • 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
    • H02P2207/00Indexing scheme relating to controlling arrangements characterised by the type of motor
    • H02P2207/05Synchronous machines, e.g. with permanent magnets or DC excitation

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

The invention discloses a method and a device for simulating hardware of a permanent magnet synchronous motor with double Y-shift of 30 degrees in an in-loop real-time manner, wherein the method comprises the following steps: not less than two simulation cycles; wherein, each simulation cycle comprises the following steps: acquiring conduction states of six bridge arms of an inverter in a permanent magnet synchronous motor with double Y shift of 30 degrees in a current simulation period and phase current direction information of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees; inquiring the six-phase voltage of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period in a bridge arm state information table; and (3) sequentially carrying out space vector decoupling transformation and park transformation on the six-phase voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period to obtain the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period. The method effectively reduces delay caused by converting the voltage analog signal into the digital signal for operation under the condition of real-time simulation, avoids model rushing caused by errors in the calculation process, and improves the robustness of the hardware simulation model.

Description

Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor
Technical Field
The invention relates to a motor hardware-in-loop real-time simulation technology, in particular to a method and a device for hardware-in-loop real-time simulation of a double-Y-shift 30-degree permanent magnet synchronous motor.
Background
A Permanent Magnet Synchronous Motor (PMSM) with 30 degrees of double Y shift is concerned because of the advantages of high power density, low torque ripple, high reliability and the like, and the simulation condition of the PMSM can be closer to the real condition by applying hardware-in-the-loop simulation, so that the performance of the designed controller can be accurately checked and debugged, the development of an algorithm is facilitated, and the field debugging frequency is reduced.
The current real-time simulation technology is as follows: the control panel inputs six voltage signals to the real-time simulation model, and the simulation model converts the voltage analog signals into digital signals for operation through ADC sampling, so that large delay is caused. In addition, in the model operation process, the voltage needs to be converted from a three-phase stationary coordinate system to a rotating coordinate system through coordinate transformation, and the floating point multiplication and division operation needs a certain operation time and also causes a certain delay.
In summary, limited by the development level of hardware technology, the model resolving time of the hardware-in-the-loop real-time simulation technology needs several microseconds to tens of microseconds, which means that the motor real-time simulation technology has a delay of at least several microseconds to tens of microseconds, and the response delay of the hardware itself may cause serious distortion of the model simulation.
Therefore, it is necessary to research a simple, reliable and practical hardware-in-loop real-time simulation method and system for a double-Y-shift 30-degree permanent magnet synchronous motor, so as to accelerate the real-time simulation speed and improve the accuracy of model calculation.
Disclosure of Invention
The technical problem to be solved by the invention is that when the existing double-Y30-degree-shift permanent magnet synchronous motor is subjected to in-loop real-time simulation, a simulation model has larger delay when converting a voltage simulation signal, and when the voltage is converted from a three-phase static coordinate system to a rotating coordinate system, certain operation time is required for the floating point multiplication and division operation, and certain delay is also caused.
In order to solve the technical problem, the invention provides a hardware-in-loop real-time simulation method for a double-Y-shift 30-degree permanent magnet synchronous motor, which comprises the following steps: not less than two simulation cycles;
wherein each simulation cycle comprises the following steps:
acquiring conduction states of six bridge arms of an inverter in a double-Y30-degree-shift permanent magnet synchronous motor in a current simulation period and phase current direction information of six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
inquiring the phase voltage of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period in a bridge arm state information table according to the conduction states of six bridge arms of an inverter in the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the phase current direction information of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
calculating the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and calculating the angle of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period; based on the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, carrying out space vector decoupling transformation and park transformation on the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period sequentially to obtain the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and calculating d-axis current and q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electric angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period and d-axis voltage and q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and acquiring electromagnetic torque of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period.
Preferably, the step of calculating the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double Y shift by 30 degrees in the current simulation period, and calculating the angle of the rotor of the permanent magnet synchronous motor with the double Y shift by 30 degrees in the current simulation period according to the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double Y shift by 30 degrees in the current simulation period includes:
calculating the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current true period according to the electromagnetic torque of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period and the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period;
and calculating the angle of the rotor of the permanent magnet synchronous motor moving 30 degrees in the current simulation period according to the angle of the rotor of the permanent magnet synchronous motor moving 30 degrees in the last simulation period, the electrical angular speed of the rotor of the permanent magnet synchronous motor moving 30 degrees in the last simulation period and the electrical angular speed of the rotor of the permanent magnet synchronous motor moving 30 degrees in the current simulation period.
Preferably, the step of calculating the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double-Y shift of 30 degrees in the current true period according to the electromagnetic torque of the permanent magnet synchronous motor with the double-Y shift of 30 degrees in the previous simulation period and the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double-Y shift of 30 degrees in the previous simulation period comprises:
calculating the electrical angular speed of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current true period according to the following equation:
Figure BDA0002352327670000021
wherein, ω isr(n) represents the electrical angular velocity, omega, of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current true periodr(n-1) represents the electrical angular speed p of the rotor of the double-Y-shift permanent magnet synchronous motor in the last simulation period by 30 degreesnRepresents the pole pair number of the permanent magnet synchronous motor with 30 degrees of double Y shift, and T representsSampling period, Te(n-1) represents the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the last simulation period, TLAnd (n-1) represents the load torque of the double-Y30-degree-shift permanent magnet synchronous motor in the last simulation period, and J represents the total rotational inertia of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor.
Preferably, the step of calculating the angle of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the angle of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the previous simulation period, the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the previous simulation period, and the electrical angular velocity of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period includes:
and (3) calculating the angle of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current true period according to the following angle iterative equation:
Figure BDA0002352327670000031
wherein, thetae(n) represents the angle of the rotor of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period, thetae(n-1) represents the angle, omega, of the rotor of the permanent magnet synchronous motor which is shifted by 30 degrees in the double Y mode in the last simulation periode(n) represents the electrical angular velocity, omega, of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current simulation periode(n-1) represents the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the last simulation period, and T represents a sampling period.
Preferably, based on the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle, the step of obtaining the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle by sequentially performing space vector decoupling transformation and park transformation on the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle comprises the following steps of:
converting the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period into three mutually orthogonal static coordinate systems through space vector decoupling transformation to obtain α shaft voltage and β shaft voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and inquiring a corresponding sine value and a corresponding cosine value in a sine and cosine change table according to the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current true period, and acquiring the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to α -axis voltage and β -axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the inquired sine value and cosine value.
Preferably, the step of converting the phase voltage of the six-phase of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle into three orthogonal stationary coordinate systems through space vector decoupling transformation to obtain α -axis voltage and β -axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle comprises the following steps of:
converting the phase voltage of the six phases of the double Y-shift 30-degree permanent magnet synchronous motor in the current simulation period into α - β subspace, x-Y subspace and zero sequence subspace which are orthogonal to each other according to the following equation:
Figure BDA0002352327670000032
wherein, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, of the double Y-shifted 30 degree PMSM for the current simulation cyclex(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage of o1 and the shaft voltage of o2 of the permanent magnet synchronous motor with 30 degrees of double Y shift in the current simulation period, UA(n)、UB(n)、UC(n)、UU(n)、UV(n) and UWAnd (n) respectively represents the phase voltage of the six phases of the double-Y-shift permanent magnet synchronous motor with 30 degrees in the current simulation period.
Preferably, the obtaining d-axis voltage and q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to α -axis voltage and β -axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the queried sine value and cosine value comprises:
calculating the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the following formula:
Figure BDA0002352327670000041
wherein, Ud(n) and Uq(n) represents d-axis voltage and q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Ux(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage of o1 and the shaft voltage of o2 of the permanent magnet synchronous motor with 30 degrees of double Y shift in the current simulation period, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, of the double Y-shifted 30 degree PMSM for the current simulation cyclex(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the o1 and o2 shaft voltages, sin θ, respectively, for the double Y-shifted 30 degree PMSM for the current simulation cyclee(n) and cos θe(n) represents the sine and cosine values queried.
Preferably, calculating the d-axis current and the q-axis current of the double-Y-shift-by-30-degree permanent magnet synchronous motor in the current simulation period according to the electrical angular velocity of the rotor of the double-Y-shift-by-30-degree permanent magnet synchronous motor in the current simulation period and the d-axis voltage and the q-axis voltage of the double-Y-shift-by-30-degree permanent magnet synchronous motor in the current simulation period comprises:
calculating d-axis current and q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, d-axis voltage and q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and d-axis current and q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period;
calculating d-axis current and q-axis current of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period according to the following current iterative algorithm:
Figure BDA0002352327670000051
Figure BDA0002352327670000052
wherein id(n) and iq(n) d-axis output current and q-axis output current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, id(n-1) and iq(n-1) respectively representing d-axis output current and q-axis output current of the double-Y-shift-30-degree permanent magnet synchronous motor in the last simulation period, and ud(n) and uq(n) respectively representing d-axis voltage and q-axis voltage, omega, of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation periode(n) represents the electrical angular velocity of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, T represents the sampling period, and L representsdAnd LqRespectively representing the d-axis and q-axis inductances of the double-Y30-degree-shift permanent magnet synchronous motor, RsRepresenting the resistance of the stator in said double-Y30-degree-shifted PMSM, psifAnd the permanent magnet flux linkage value of the double Y-shift 30-degree permanent magnet synchronous motor is represented.
Preferably, the obtaining of the electromagnetic torque of the double-Y-shift permanent magnet synchronous motor of the current simulation period includes:
calculating the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period based on the d-axis current and the q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
calculating the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the following equation:
Figure BDA0002352327670000053
wherein, Te(n) represents the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, pnRepresenting the pole pair number, psi, of the double Y-shifted 30-degree PMSMfRepresenting the permanent magnet flux linkage value of the double-Y-shift 30-degree permanent magnet synchronous motor,id(n) and iq(n) represents d-axis output current and q-axis output current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, and LdAnd LqAnd respectively representing the d-axis inductance and the q-axis inductance of the double-Y-shift 30-degree permanent magnet synchronous motor.
In order to solve the technical problem, the invention also provides a hardware-in-loop real-time simulation device of the double-Y-shift 30-degree permanent magnet synchronous motor, which comprises a basic quantity acquisition module, a bridge arm state information acquisition module, a rotor angle acquisition module, a d-axis voltage and q-axis voltage acquisition module and other simulation quantity acquisition modules which are sequentially connected;
the basic quantity obtaining module is used for obtaining conduction states of six bridge arms of an inverter in a permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period and phase current direction information of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees;
the bridge arm state information acquisition module is used for inquiring the phase voltage of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period in a bridge arm state information table according to the conduction states of the six bridge arms of the inverter in the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the phase current direction information of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
the rotor angle obtaining module is used for calculating the electrical angular speed of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period and calculating the angle of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period according to the electrical angular speed of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period;
the d-axis voltage and q-axis voltage obtaining module is used for obtaining the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period through space vector decoupling transformation and park transformation of the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period based on the angle of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and the other simulation quantity acquisition module is used for calculating the d-axis current and the q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, and acquiring the electromagnetic torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
by applying the hardware-in-loop real-time simulation method for the double-Y30-degree-shift permanent magnet synchronous motor, provided by the embodiment of the invention, a complex calculation process is replaced by a table look-up mode in the hardware-in-loop real-time simulation method, so that delay caused by operation of converting voltage analog signals into digital signals under the condition of real-time simulation is effectively reduced, and the update speed of a motor model calculation result can be increased by at least one order of magnitude; meanwhile, the calculation process of the rotor angle value sine and cosine values in the process of converting the voltage from the three-phase static coordinate system to the rotating coordinate system is replaced by a table look-up mode, so that model collapse caused by errors in the calculation process can be effectively avoided, and the robustness of the hardware simulation model is effectively improved. Meanwhile, the table look-up method has lower requirements on hardware performance, and can use a high-speed signal processing unit with lower cost and achieve higher model simulation performance; therefore, the cost of the motor hardware-in-loop simulation system can be effectively reduced on the premise of achieving the specified motor hardware-in-loop simulation performance.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart showing a simulation cycle in a double-Y-shift 30-degree permanent magnet synchronous motor hardware-in-loop real-time simulation method according to an embodiment of the present invention;
FIG. 2 shows a schematic structural diagram of a hardware-in-the-loop real-time simulation device of a double-Y-shift 30-degree permanent magnet synchronous motor according to an embodiment of the invention;
fig. 3 shows a schematic structural diagram of a four-terminal according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
In the existing hardware-in-loop real-time simulation process of the double-Y30-degree-shift permanent magnet synchronous motor, six voltage signals are input to a real-time simulation model by a control board, and the simulation model converts voltage analog signals into digital signals for operation through ADC (analog-to-digital converter) sampling, so that large delay is caused. In addition, in the model operation process, the voltage needs to be converted from a three-phase stationary coordinate system to a rotating coordinate system through coordinate transformation, and the floating point multiplication and division operation needs a certain operation time and also causes a certain delay.
Example one
In order to solve the technical problems in the prior art, the embodiment of the invention provides a hardware-in-loop real-time simulation method of a double-Y-shift 30-degree permanent magnet synchronous motor,
fig. 1 is a schematic flow chart showing a simulation cycle in a double-Y-shift 30-degree permanent magnet synchronous motor hardware-in-loop real-time simulation method according to an embodiment of the present invention; the whole double-Y30-degree-shift permanent magnet synchronous motor hardware-in-loop real-time simulation process actually comprises a plurality of double-Y30-degree-shift permanent magnet synchronous motor hardware-in-loop real-time simulation cycles, and each cycle comprises all the following steps. Therefore, referring to fig. 1, a simulation cycle of a double-Y-shift 30-degree permanent magnet synchronous motor hardware-in-loop real-time simulation method according to an embodiment of the present invention includes the following steps.
Step S101, acquiring conduction states of six bridge arms of an inverter in the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period and phase current direction information of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees.
The specific double-Y30-degree-shift permanent magnet synchronous motor can be seen to be composed of two sets of three-phase symmetrical windings with isolated neutral points, and the two sets of windings have an electrical angle difference of 30 degrees in space; in each simulation period, the conducting state of upper and lower switching devices of each bridge arm of the inverter in the double-Y30-degree-shift permanent magnet synchronous motor and the six-phase current direction information of the double-Y30-degree-shift permanent magnet synchronous motor need to be inquired. It should be noted that, if the on-state and phase current direction information of the upper and lower switching devices of the bridge arm pass through the single chip microcomputer, the PWM signal is inquired in a capture mode; if the on-state and phase current direction information of the upper and lower switching devices of the bridge arm are inquired about the PWM signal through an FPGA (Field-Programmable Gate Array), the level is only required to be inquired.
Step S102, according to the conduction states of six bridge arms of an inverter in the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period and the phase current direction information of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees, phase voltage of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period is inquired in a bridge arm state information table.
Specifically, the bridge arm state information table includes an upper bridge arm voltage and a lower bridge arm voltage of a single bridge arm of the inverter, phase current direction information of six phases of the double-Y-shifted 30-degree permanent magnet synchronous motor, and fault information of the bridge arm of the double-Y-shifted 30-degree permanent magnet synchronous motor inverter. Table 1 below is a bridge arm status information table.
TABLE 1 bridge arm status information Table
S1 1 1 0 0 1 1 0 0
S2 1 0 1 0 1 0 1 0
cur 1 1 1 1 -1 -1 -1 -1
Phase voltage X 1 0 0 X 1 0 1
Fault of 1 0 0 0 1 0 0 0
Referring to table 1, S1 in the arm state information table in the table indicates the upper arm voltage, S2 indicates the lower arm voltage, 1 corresponding to S1 and S2 indicates that the voltage is the bus voltage (relative to the negative pole of the bus, and the conduction voltage drops of the IGBT and the diode are not considered), and 0 corresponding to S1 and S2 indicates no voltage; cur represents the phase current direction of six phases of the double Y-shift permanent magnet synchronous motor with 30 degrees, wherein 1 represents inflow current, and-1 represents outflow current; the phase voltage is a voltage relative to the negative pole of the bus, wherein 1 corresponding to the phase voltage represents a voltage, 0 represents no voltage, and X represents a short circuit; and 1 corresponding to the fault information represents fault, and 0 represents no fault. And respectively inquiring the phase voltage and the fault information of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period in the bridge arm state information table based on the conduction states of the six bridge arms and the phase current directions of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor acquired in the step S101. The six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period is obtained in a table look-up mode, and the time for looking up the table is shorter than the time for calculating, so that the time for obtaining the state information of each bridge arm of the inverter is greatly reduced in the period of the hardware-in-loop real-time simulation method of the double-Y30-degree-shift permanent magnet synchronous motor in the step.
Step S103, calculating the electrical angular speed of the permanent magnet synchronous motor rotor with the current simulation period of double Y shift of 30 degrees, and calculating the angle of the permanent magnet synchronous motor rotor with the current simulation period of double Y shift of 30 degrees according to the electrical angular speed of the permanent magnet synchronous motor rotor with the current simulation period of double Y shift of 30 degrees.
Specifically, the electric angular speed of the current real-period double-Y-shift 30-degree permanent magnet synchronous motor rotor is calculated according to the electromagnetic torque of the last simulation period double-Y-shift 30-degree permanent magnet synchronous motor and the electric angular speed of the last simulation period double-Y-shift 30-degree permanent magnet synchronous motor rotor; further, the electrical angular speed of the permanent magnet synchronous motor with the double Y shifts of 30 degrees in the current simulation period can be calculated according to the following formula:
Figure BDA0002352327670000081
wherein, ω isr(n) represents the electrical angular velocity, omega, of the rotor of the current true period double-Y-shift permanent magnet synchronous motor by 30 degreesr(n-1) represents the electrical angular velocity of the rotor of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the last simulation period, pnThe pole pair number of the permanent magnet synchronous motor with 30 degrees of double Y shift is shown, T represents the sampling period, Te(n-1) represents the torque of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the last simulation period, TLAnd (n-1) represents the load torque of the permanent magnet synchronous motor with double Y shifts by 30 degrees in the last simulation period, and J represents the total rotational inertia of the rotor of the permanent magnet synchronous motor with double Y shifts by 30 degrees.
After the electrical angular velocity of the permanent magnet synchronous motor rotor with the double Y shift of 30 degrees in the current simulation period is obtained, the angle of the permanent magnet synchronous motor rotor with the double Y shift of 30 degrees in the current simulation period can be further calculated according to the obtained electrical angular velocity of the permanent magnet synchronous motor rotor with the double Y shift of 30 degrees in the previous simulation period, and the electrical angular velocity of the permanent magnet synchronous motor rotor with the double Y shift of 30 degrees in the previous simulation period; further, the angle of the rotor of the permanent magnet synchronous motor with the current true period and double Y shifts by 30 degrees can be calculated according to the following angle iterative equation:
Figure BDA0002352327670000091
wherein, thetae(n) represents the current simulation period double Y shift 30 degree permanent magnet synchronous motorAngle of rotor, thetae(n-1) represents the angle, omega, of the rotor of the permanent magnet synchronous motor which is shifted by 30 degrees in double Y in the last simulation periode(n) represents the electrical angular velocity, omega, of the rotor of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation periode(n-1) represents the electrical angular speed of the rotor of the permanent magnet synchronous motor which is shifted by 30 degrees in double Y in the last simulation period, and T represents the sampling period.
And step S104, based on the angle of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation cycle, sequentially subjecting the six-phase voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation cycle to space vector decoupling transformation and park transformation to obtain the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation cycle.
Specifically, the six-phase voltage of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period can be mapped into three mutually orthogonal static coordinate systems through space vector decoupling transformation, wherein the three mutually orthogonal static coordinate systems are α - β subspace, x-Y subspace and zero sequence subspace, and α -axis voltage and β -axis voltage of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period are obtained from the α - β -subspace static coordinate system, and further, the six-phase voltage of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period can be converted into a mutually orthogonal α - β static coordinate system, an x-Y static coordinate system and a zero sequence static coordinate system according to the following formula:
Figure BDA0002352327670000101
wherein, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, for a permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation cyclex(n) and Uy(n) respectively represent the x-axis voltage and the Y-axis voltage of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage o1 and the shaft voltage o2 of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period, UA(n)、UB(n)、UC(n)、UU(n)、UV(n) and UW(n) respectively represents the phases of the six phases of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation periodA voltage.
Then, according to the angle of the rotor of the permanent magnet synchronous motor with the current true period and the double Y shift of 30 degrees, which is obtained in step S103, a corresponding sine value and a corresponding cosine value are inquired in a sine and cosine change table, and according to α shaft voltage and β shaft voltage of the permanent magnet synchronous motor with the current simulation period and the double Y shift of 30 degrees, and the inquired sine value and cosine value, d shaft voltage and q shaft voltage of the permanent magnet synchronous motor with the current simulation period and the double Y shift of 30 degrees are obtained.
It should be noted that the sine and cosine change table is obtained in advance, that is, the rotor angle in [ 02 pi ] is discretized into 4096 points in advance, the sine value and the cosine value corresponding to each discrete point are respectively calculated, and then all the discrete points and the corresponding sine value and cosine value are constructed into the sine and cosine change table. Since the sine and cosine change table has too much data, the table is not displayed here.
And finally, acquiring the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the α -axis voltage and β -axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period and the inquired sine value and cosine value.
Specifically, the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y-shifts of 30 degrees in the current simulation period can be calculated according to the following formula, and the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y-shifts of 30 degrees in the current simulation period can be further calculated according to the following formula:
Figure BDA0002352327670000102
wherein, Ud(n) and Uq(n) represents d-axis voltage and q-axis voltage of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, Ux(n) and Uy(n) respectively represent the x-axis voltage and the Y-axis voltage of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage o1 and the shaft voltage o2 of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, for a permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation cyclex(n)And Uy(n) respectively represent the x-axis voltage and the Y-axis voltage of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, Uo1(n) and Uo2(n) represent the o1 shaft voltage and the o2 shaft voltage of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation cycle, respectively. sin thetae(n) and cos θeAnd (n) shows that the angle of the rotor of the permanent magnet synchronous motor with the current real period and the double Y shift of 30 degrees inquires corresponding sine value and cosine value in a sine and cosine change table.
Step S105, calculating d-axis current and q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electric angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period and d-axis voltage and q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and obtaining electromagnetic torque of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period.
Specifically, the d-axis current and the q-axis current of the permanent magnet synchronous motor with double Y shifts by 30 degrees in the current simulation period are calculated according to the electric angular speed of the rotor of the permanent magnet synchronous motor with double Y shifts by 30 degrees in the current simulation period, the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with double Y shifts by 30 degrees in the current simulation period, and the d-axis current and the q-axis current of the permanent magnet synchronous motor with double Y shifts by 30 degrees in the previous simulation period, which are obtained in the above steps. Furthermore, the d-axis current and the q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period can be calculated according to the following current iterative algorithm:
Figure BDA0002352327670000111
wherein id(n) and iq(n) d-axis output current and q-axis output current of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, id(n-1) and iq(n-1) respectively represent d-axis output current and q-axis output current of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the last simulation period, and ud(n) and uq(n) respectively represent d-axis voltage and q-axis voltage, omega, of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation periode(n) represents the electrical angular velocity of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, T represents the sampling period, and L representsdAnd LqAre respectively provided withInductance, R, representing d-and q-axes of a double Y-shifted 30-degree PMSMsRepresenting the resistance of the stator in a double Y-shifted 30-degree PMSM, psifThe permanent magnet flux linkage value of the permanent magnet synchronous motor with double Y shift of 30 degrees is shown.
And then calculating the torque of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the obtained d-axis current and q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period. Further, the torque of the permanent magnet synchronous motor with the double Y-shift of 30 degrees in the current simulation period can be calculated according to the following equation:
Figure BDA0002352327670000121
wherein, Te(n) represents the torque of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, pnRepresenting the pole pair number, psi, of a double Y-shifted 30-degree PMSMfPermanent magnet flux linkage value i of permanent magnet synchronous motor with double Y-shift of 30 degreesd(n) and iq(n) d-axis output current and q-axis output current of the permanent magnet synchronous motor with double Y shifts of 30 degrees in the current simulation period, LdAnd LqRespectively showing the d-axis inductance and the q-axis inductance of the permanent magnet synchronous motor with 30-degree shift in the double Y direction.
According to the hardware-in-loop real-time simulation method for the double-Y30-degree-shift permanent magnet synchronous motor, the complex calculation process is replaced by a table look-up mode in the hardware-in-loop real-time simulation method, so that delay caused by operation of converting voltage analog signals into digital signals under the condition of real-time simulation is effectively reduced, and the update speed of a motor model calculation result can be increased by at least one order of magnitude; meanwhile, the calculation process of the rotor angle value sine and cosine values in the process of converting the voltage from the three-phase static coordinate system to the rotating coordinate system is replaced by a table look-up mode, so that model collapse caused by errors in the calculation process can be effectively avoided, and the robustness of the hardware simulation model is effectively improved. Meanwhile, the table look-up method has lower requirements on hardware performance, and can use a high-speed signal processing unit with lower cost and achieve higher model simulation performance; therefore, the cost of the motor hardware-in-loop simulation system can be effectively reduced on the premise of achieving the specified motor hardware-in-loop simulation performance.
Example two
In order to solve the technical problems in the prior art, the embodiment of the invention provides a hardware-in-loop simulation device of a permanent magnet synchronous motor.
FIG. 2 shows a schematic structural diagram of a hardware-in-the-loop real-time simulation device of a double-Y-shift 30-degree permanent magnet synchronous motor according to an embodiment of the invention; referring to fig. 2, the hardware-in-the-loop real-time simulation device for the double-Y-shift 30-degree permanent magnet synchronous motor according to the embodiment of the invention includes a basic quantity acquisition module, a bridge arm state information acquisition module, a rotor angle acquisition module, a d-axis voltage and q-axis voltage acquisition module, and other simulation quantity acquisition modules, which are connected in sequence.
The basic quantity obtaining module is used for obtaining conduction states of six bridge arms of an inverter in the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and phase current direction information of six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
the bridge arm state information acquisition module is used for inquiring the phase voltage of the six phases of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period in a bridge arm state information table according to the conduction states of the six bridge arms of the inverter in the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period and the phase current direction information of the six phases of the double-Y-shift 30-degree permanent magnet synchronous motor;
the rotor angle acquisition module is used for calculating the electrical angular speed of the permanent magnet synchronous motor rotor with double Y shifts by 30 degrees in the current simulation period and calculating the angle of the permanent magnet synchronous motor rotor with double Y shifts by 30 degrees in the current simulation period according to the electrical angular speed of the permanent magnet synchronous motor rotor with double Y shifts by 30 degrees in the current simulation period;
the d-axis voltage and q-axis voltage obtaining module is used for obtaining the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period through space vector decoupling transformation and park transformation of the six-phase voltage of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period based on the angle of the rotor of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period;
and the other simulation quantity acquisition module is used for calculating the d-axis current and the q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electric angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period and the d-axis voltage and the q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and acquiring the electromagnetic torque of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period.
According to the hardware-in-loop real-time simulation device for the double-Y30-degree-shift permanent magnet synchronous motor, a complex calculation process is replaced by a table look-up mode in the hardware-in-loop real-time simulation method, so that delay caused by operation of converting voltage analog signals into digital signals under the condition of real-time simulation is effectively reduced, and the update speed of a motor model calculation result can be increased by at least one order of magnitude; meanwhile, the calculation process of the rotor angle value sine and cosine values in the process of converting the voltage from the three-phase static coordinate system to the rotating coordinate system is replaced by a table look-up mode, so that model collapse caused by errors in the calculation process can be effectively avoided, and the robustness of the hardware simulation model is effectively improved. Meanwhile, the table look-up method has lower requirements on hardware performance, and can use a high-speed signal processing unit with lower cost and achieve higher model simulation performance; therefore, the cost of the motor hardware-in-loop simulation system can be effectively reduced on the premise of achieving the specified motor hardware-in-loop simulation performance.
EXAMPLE III
In order to solve the above technical problems in the prior art, an embodiment of the present invention further provides a storage medium, which stores a computer program, and when the computer program is executed by a processor, all steps of the hardware-in-loop real-time simulation method for a double-Y-shift permanent magnet synchronous motor by 30 degrees in the first embodiment can be implemented.
The specific steps of the double-Y-shift 30-degree permanent magnet synchronous motor hardware-in-the-loop real-time simulation method and the beneficial effects obtained by applying the readable storage medium provided by the embodiment of the invention are the same as those of the embodiment one, and are not described herein again.
It should be noted that: the storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Example four
In order to solve the technical problems in the prior art, the embodiment of the invention also provides a terminal.
Fig. 3 is a schematic structural diagram of a four-terminal according to an embodiment of the present invention, and referring to fig. 3, the terminal according to this embodiment includes a processor and a memory, which are connected to each other; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory, so that the terminal can realize all the steps in the hardware-in-the-loop real-time simulation method of the double-Y-shift 30-degree permanent magnet synchronous motor in the embodiment when being executed.
The specific steps of the double-Y-shift 30-degree permanent magnet synchronous motor hardware-in-the-loop real-time simulation method and the beneficial effects obtained by applying the terminal provided by the embodiment of the invention are the same as those of the embodiment one, and the detailed description thereof is omitted here.
It should be noted that the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Similarly, the Processor may also be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A hardware-in-loop real-time simulation method for a double-Y-shift 30-degree permanent magnet synchronous motor comprises the following steps: not less than two simulation cycles;
wherein each simulation cycle comprises the following steps:
acquiring conduction states of six bridge arms of an inverter in a double-Y30-degree-shift permanent magnet synchronous motor in a current simulation period and phase current direction information of six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
inquiring the phase voltage of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period in a bridge arm state information table according to the conduction states of six bridge arms of an inverter in the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the phase current direction information of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
calculating the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and calculating the angle of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period;
based on the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, carrying out space vector decoupling transformation and park transformation on the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period sequentially to obtain the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and calculating d-axis current and q-axis current of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period according to the electric angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period and d-axis voltage and q-axis voltage of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period, and acquiring electromagnetic torque of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the current simulation period.
2. The method of claim 1, wherein the step of calculating the electrical angular velocity of the double-Y-shifted 30-degree PMSM rotor for the current simulation cycle, and the step of calculating the angle of the double-Y-shifted 30-degree PMSM rotor for the current simulation cycle based on the electrical angular velocity of the double-Y-shifted 30-degree PMSM rotor for the current simulation cycle comprises:
calculating the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current true period according to the electromagnetic torque of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period and the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period;
and calculating the angle of the rotor of the permanent magnet synchronous motor moving 30 degrees in the current simulation period according to the angle of the rotor of the permanent magnet synchronous motor moving 30 degrees in the last simulation period, the electrical angular speed of the rotor of the permanent magnet synchronous motor moving 30 degrees in the last simulation period and the electrical angular speed of the rotor of the permanent magnet synchronous motor moving 30 degrees in the current simulation period.
3. The method of claim 2, wherein the step of calculating the electrical angular velocity of the rotor of the double-Y-shifted 30-degree permanent magnet synchronous motor in the current true period according to the electromagnetic torque of the double-Y-shifted 30-degree permanent magnet synchronous motor in the previous simulation period and the electrical angular velocity of the rotor of the double-Y-shifted 30-degree permanent magnet synchronous motor in the previous simulation period comprises:
calculating the electrical angular speed of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current true period according to the following equation:
Figure FDA0002352327660000011
wherein, ω isr(n) represents the electrical angular velocity, omega, of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current true periodr(n-1) represents the electrical angular speed p of the rotor of the double-Y-shift permanent magnet synchronous motor in the last simulation period by 30 degreesnRepresenting the pole pair number of the permanent magnet synchronous motor with 30 degrees of double Y shift, T representing the sampling period, Te(n-1) represents the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the last simulation period, TLAnd (n-1) represents the load torque of the double-Y30-degree-shift permanent magnet synchronous motor in the last simulation period, and J represents the total rotational inertia of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor.
4. The method of claim 2, wherein the step of calculating the angle of the rotor of the permanent magnet synchronous motor with double Y shift by 30 degrees in the current simulation cycle according to the angle of the rotor of the permanent magnet synchronous motor with double Y shift by 30 degrees in the previous simulation cycle, the electrical angular velocity of the rotor of the permanent magnet synchronous motor with double Y shift by 30 degrees in the previous simulation cycle and the electrical angular velocity of the rotor of the permanent magnet synchronous motor with double Y shift by 30 degrees in the current simulation cycle comprises:
and (3) calculating the angle of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current true period according to the following angle iterative equation:
Figure FDA0002352327660000021
wherein, thetae(n) represents the angle of the rotor of the permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period, thetae(n-1) represents the angle, omega, of the rotor of the permanent magnet synchronous motor which is shifted by 30 degrees in the double Y mode in the last simulation periode(n) represents the electrical angular velocity, omega, of the rotor of the double-Y30-degree permanent magnet synchronous motor in the current simulation periode(n-1) represents the electrical angular speed of the rotor of the permanent magnet synchronous motor with the double Y shift of 30 degrees in the last simulation period, and T represents a sampling period.
5. The method of claim 1, wherein the step of obtaining the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle by sequentially performing space vector decoupling transformation and park transformation on the phase voltage of the six-phase of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle based on the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation cycle comprises the following steps:
converting the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period into three mutually orthogonal static coordinate systems through space vector decoupling transformation to obtain α shaft voltage and β shaft voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and inquiring a corresponding sine value and a corresponding cosine value in a sine and cosine change table according to the angle of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current true period, and acquiring the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to α -axis voltage and β -axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the inquired sine value and cosine value.
6. The method of claim 5, wherein the step of converting the phase voltage of six phases of the double Y-shift 30-degree permanent magnet synchronous motor in the current simulation cycle into three static coordinate systems which are orthogonal to each other through a space vector decoupling transformation to obtain α shaft voltage and β shaft voltage of the double Y-shift 30-degree permanent magnet synchronous motor in the current simulation cycle comprises the following steps of:
converting the phase voltage of the six phases of the double Y-shift 30-degree permanent magnet synchronous motor in the current simulation period into α - β subspace, x-Y subspace and zero sequence subspace which are orthogonal to each other according to the following equation:
Figure FDA0002352327660000031
wherein, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, of the double Y-shifted 30 degree PMSM for the current simulation cyclex(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage of o1 and the shaft voltage of o2 of the permanent magnet synchronous motor with 30 degrees of double Y shift in the current simulation period, UA(n)、UB(n)、UC(n)、UU(n)、UV(n) and UWAnd (n) respectively represents the phase voltage of the six phases of the double-Y-shift permanent magnet synchronous motor with 30 degrees in the current simulation period.
7. The method of claim 5, wherein obtaining d-axis voltage and q-axis voltage of the double Y-shifted 30 degree PMSM for a current simulation cycle based on α -axis voltage and β -axis voltage of the double Y-shifted 30 degree PMSM and the queried sine value and cosine value comprises:
calculating the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the following formula:
Figure FDA0002352327660000032
wherein, Ud(n) and Uq(n) represents d-axis voltage and q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Ux(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the shaft voltage of o1 and the shaft voltage of o2 of the permanent magnet synchronous motor with 30 degrees of double Y shift in the current simulation period, Uα(n) and Uβ(n) represent α and β shaft voltages, U, respectively, of the double Y-shifted 30 degree PMSM for the current simulation cyclex(n) and Uy(n) respectively representing the x-axis voltage and the Y-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, Uo1(n) and Uo2(n) represents the o1 and o2 shaft voltages, sin θ, respectively, for the double Y-shifted 30 degree PMSM for the current simulation cyclee(n) and cos θe(n) represents the sine and cosine values queried.
8. The method of claim 1, wherein calculating the d-axis current and the q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor for the current simulation period according to the electrical angular velocity of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor for the current simulation period and the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor for the current simulation period comprises:
calculating d-axis current and q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, d-axis voltage and q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and d-axis current and q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the previous simulation period;
calculating d-axis current and q-axis current of the double-Y-shift 30-degree permanent magnet synchronous motor in the current simulation period according to the following current iterative algorithm:
Figure FDA0002352327660000041
Figure FDA0002352327660000042
wherein id(n) and iq(n) d-axis output current and q-axis output current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, id(n-1) and iq(n-1) respectively representing d-axis output current and q-axis output current of the double-Y-shift-30-degree permanent magnet synchronous motor in the last simulation period, and ud(n) and uq(n) respectively representing d-axis voltage and q-axis voltage, omega, of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation periode(n) represents the electrical angular velocity of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, T represents the sampling period, and L representsdAnd LqRespectively representing the d-axis and q-axis inductances of the double-Y30-degree-shift permanent magnet synchronous motor, RsRepresenting the resistance of the stator in said double-Y30-degree-shifted PMSM, psifAnd the permanent magnet flux linkage value of the double Y-shift 30-degree permanent magnet synchronous motor is represented.
9. The method of claim 1, wherein obtaining the electromagnetic torque of the double-Y30 degree-shifted PMSM for a current simulation cycle comprises:
calculating the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period based on the d-axis current and the q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
calculating the torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the following equation:
Figure FDA0002352327660000043
wherein, Te(n) represents that the double Y moves by 30 degrees in the current simulation periodTorque of step motor, pnRepresenting the pole pair number, psi, of the double Y-shifted 30-degree PMSMfRepresents the permanent magnet flux linkage value i of the double-Y-shift 30-degree permanent magnet synchronous motord(n) and iq(n) represents d-axis output current and q-axis output current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, and LdAnd LqAnd respectively representing the d-axis inductance and the q-axis inductance of the double-Y-shift 30-degree permanent magnet synchronous motor.
10. A hardware-in-loop real-time simulation device of a double-Y-shift 30-degree permanent magnet synchronous motor is characterized by comprising a basic quantity acquisition module, a bridge arm state information acquisition module, a rotor angle acquisition module, a d-axis voltage and q-axis voltage acquisition module and other simulation quantity acquisition modules which are sequentially connected;
the basic quantity obtaining module is used for obtaining conduction states of six bridge arms of an inverter in a permanent magnet synchronous motor with double Y shift of 30 degrees in the current simulation period and phase current direction information of six phases of the permanent magnet synchronous motor with double Y shift of 30 degrees;
the bridge arm state information acquisition module is used for inquiring the phase voltage of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period in a bridge arm state information table according to the conduction states of the six bridge arms of the inverter in the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the phase current direction information of the six phases of the double-Y30-degree-shift permanent magnet synchronous motor;
the rotor angle obtaining module is used for calculating the electrical angular speed of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period and calculating the angle of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period according to the electrical angular speed of the double-Y-shift 30-degree permanent magnet synchronous motor rotor in the current simulation period;
the d-axis voltage and q-axis voltage obtaining module is used for obtaining the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period through space vector decoupling transformation and park transformation of the six-phase voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period based on the angle of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period;
and the other simulation quantity acquisition module is used for calculating the d-axis current and the q-axis current of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period according to the electric angular speed of the rotor of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period and the d-axis voltage and the q-axis voltage of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period, and acquiring the electromagnetic torque of the double-Y30-degree-shift permanent magnet synchronous motor in the current simulation period.
CN201911420766.4A 2019-12-31 2019-12-31 Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor Active CN111049448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911420766.4A CN111049448B (en) 2019-12-31 2019-12-31 Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911420766.4A CN111049448B (en) 2019-12-31 2019-12-31 Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor

Publications (2)

Publication Number Publication Date
CN111049448A true CN111049448A (en) 2020-04-21
CN111049448B CN111049448B (en) 2022-03-01

Family

ID=70243206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911420766.4A Active CN111049448B (en) 2019-12-31 2019-12-31 Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor

Country Status (1)

Country Link
CN (1) CN111049448B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555688A (en) * 2020-05-12 2020-08-18 中国电子科技集团公司第四十三研究所 High-bandwidth current loop digital control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931352A (en) * 2010-07-14 2010-12-29 中国人民解放军海军航空工程学院 Double-motor cascade system of double Y-shift 30-degree six-phase permanent magnet synchronous motors driven by single inverter and control method thereof
CN103762916A (en) * 2014-01-03 2014-04-30 哈尔滨工程大学 VBR simulation method of double-Y six-phase synchronous generator capable of being shifted by 30 degrees
CN105827176A (en) * 2016-04-22 2016-08-03 湖南大学 Space vector modulation method capable of suppressing common-mode voltage of dual-Y shift 30-degree six-phase motor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931352A (en) * 2010-07-14 2010-12-29 中国人民解放军海军航空工程学院 Double-motor cascade system of double Y-shift 30-degree six-phase permanent magnet synchronous motors driven by single inverter and control method thereof
CN103762916A (en) * 2014-01-03 2014-04-30 哈尔滨工程大学 VBR simulation method of double-Y six-phase synchronous generator capable of being shifted by 30 degrees
CN105827176A (en) * 2016-04-22 2016-08-03 湖南大学 Space vector modulation method capable of suppressing common-mode voltage of dual-Y shift 30-degree six-phase motor

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
LINGSHUN LIU等: ""Mathematical model and simulation of double Y shift 30° PMSM series-connected system with embed rotor"", 《2017 IEEE TRANSPORTATION ELECTRIFICATION CONFERENCE AND EXPO, ASIA-PACIFIC (ITEC ASIA-PACIFIC)》 *
史友倩: ""双Y移30°六相永磁同步电机矢量控制策略研究"", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *
杨奇逊: "《微型机继电保护基础》", 31 August 2007, 中国电力出版社 *
郝琦: ""电力牵引传动***微秒级硬件在环实时仿真"", 《电工技术学报》 *
高瑾: ""车用电机硬件在环实时仿真与测试平台"", 《电工技术学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555688A (en) * 2020-05-12 2020-08-18 中国电子科技集团公司第四十三研究所 High-bandwidth current loop digital control method and system
CN111555688B (en) * 2020-05-12 2023-11-21 中国电子科技集团公司第四十三研究所 Digital control method and system for high-bandwidth current loop

Also Published As

Publication number Publication date
CN111049448B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
Wang et al. A low-complexity optimal switching time-modulated model-predictive control for PMSM with three-level NPC converter
CN111049446B (en) Permanent magnet synchronous motor hardware-in-loop simulation method and device, storage medium and terminal
CN107994820B (en) Voltage response type permanent magnet synchronous motor and simulator of driving system thereof
CN111049448B (en) Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor
WO2023240844A1 (en) Electromagnetic transient modeling method and system for high-efficiency synchronous machine, and device
CN110112974A (en) Motor control method, controller, storage medium and motor driven systems
CN111478633A (en) Dead-beat prediction control method for permanent magnet synchronous motor
CN113325334A (en) Open-circuit fault diagnosis method for three-phase permanent magnet synchronous motor driving system
CN113691182B (en) Resistance identification method, system, medium and terminal of permanent magnet synchronous motor
CN113872484B (en) Three-phase current reconstruction method, device, equipment and storage medium
CN103595320A (en) High speed positionless operation technology for three-phase electrical excitation double salient pole motor
CN111241659B (en) Hardware-in-loop real-time simulation method and device for surface-mounted permanent magnet synchronous motor and terminal
CN113595458A (en) Space vector pulse width modulation method for multi-phase motor fault
CN111049445B (en) Hardware-in-loop real-time simulation method and device for double-Y-shift 30-degree permanent magnet synchronous motor
CN113872486B (en) Three-phase current reconstruction method, device, equipment and storage medium
CN110829929A (en) Motor static initial angle positioning method and device and motor equipment
CN112821832A (en) Control method and device of permanent magnet synchronous motor and motor controller
Sandre-Hernandez et al. Implementation of direct torque control for a PM synchronous machine based on FPGA
CN114337431B (en) Permanent magnet synchronous motor flux linkage identification method, system, medium and terminal
Yang et al. Design and implementation of a FPGA-based AC servo system
CN110966729A (en) Compressor wiring reverse connection identification method and device, compressor and air conditioner
CN113300655B (en) Error compensation-based switched reluctance motor position sensorless control method
CN109831136B (en) Method, system and device for driving three-phase alternating current motor
CN115333427A (en) Permanent magnet synchronous motor three-phase short circuit transient modeling method and device
CN114034921B (en) Bus current sampling circuit and method based on single-resistor sampling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant