A permanent magnet synchronous motor resolver fault detection and control method
By performing fault detection and switching control mode on the rotary change decoding chip in a permanent magnet synchronous motor, the problem of motor operation interruption caused by rotary change failure is solved, ensuring the stable operation of the motor.
Patent Information
- Application Number
- CN202210589655.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-05-26
Smart Images

Figure CN114865989B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of permanent magnet synchronous motor control, and in particular to a permanent magnet synchronous motor resolver fault detection and control method. Background Art
[0002] The resolver (resolver for short) is a commonly used position sensor for permanent magnet synchronous motors, which is used to provide rotor position information to permanent magnet synchronous motors. The controller performs motor control based on the position information provided by the resolver. Once the resolver fails, the motor control system will not be able to operate normally. Summary of the invention
[0003] The object of the present invention is to provide a permanent magnet synchronous motor resolver fault detection and control method, comprising the following steps:
[0004] 1) Before starting the permanent magnet synchronous motor, use the controller to perform fault detection on the resolver decoding chip to determine whether the resolver decoding chip has an initial fault;
[0005] The steps for fault detection of the resolver decoding chip include:
[0006] 1.1) Initialize the fault counter k=0;
[0007] 1.2) The controller determines whether the resolver decoding chip uploads fault information. If so, it proceeds to step 1.4), otherwise it proceeds to step 1.3);
[0008] 1.3) Determine whether the output pins LOT and DOS of the resolver decoding chip are both at low level. If so, proceed to step 1.4), otherwise proceed to step 1.5);
[0009] 1.4) Reset the resolver decoding chip, set the fault counter k=k+1, and proceed to step 1.6);
[0010] 1.5) Determine whether the current fault counter k is greater than 0. If so, set the fault counter k=k-1 and proceed to step 1.6);
[0011] 1.6) Determine whether the current fault counter k is greater than the threshold kmax. If so, determine that the resolver decoding chip has an initial fault. Otherwise, proceed to step 7);
[0012] 1.7) Determine whether the controller receives the permanent magnet synchronous motor start signal. If so, determine that the resolver decoding chip does not have an initial fault. Otherwise, return to step 2).
[0013] 2) When the controller receives the permanent magnet synchronous motor start signal, if there is an initial fault in the resolver decoding chip, the permanent magnet synchronous motor is controlled to run in a sensorless control mode, otherwise, proceed to step 3);
[0014] The sensorless control mode includes a pulse high frequency injection sensorless control mode and a sliding mode sensorless control mode.
[0015] The steps of controlling the operation of a permanent magnet synchronous motor using a sensorless control mode include:
[0016] 2.1) Inject high-frequency pulse voltage into the d-axis of the permanent magnet synchronous motor in the estimated synchronous rotating coordinate system, and sample the current of the q-axis in the estimated synchronous rotating coordinate system. Calculate the high-frequency ripple current component
[0017] 2.2) Estimation of the Q-axis high-frequency current in the synchronous rotating coordinate system based on the permanent magnet synchronous motor Calculate the speed through PI Speed Integral calculation of rotor position When the Q-axis high-frequency current is equal to zero, the estimated rotor position coincides with the actual rotor position.
[0018] 2.3) Determine the polarity of the permanent magnet synchronous motor and correct the rotor position of the permanent magnet synchronous motor. The correction steps include:
[0019] 2.3.1) At time t0, a positive high-frequency voltage is injected into the D axis for a period of Δt until time t1, and the peak current Imax1 is collected at time t1;
[0020] 2.3.2) Stop voltage injection until time t2, then start injecting negative high-frequency voltage into the D axis for a period of Δt until time t3, and collect the peak current Imax2 at time t3;
[0021] 2.3.3) Determine whether the peak current Imax1 is greater than the peak current Imax2. If so, the magnetic pole polarity is correct and no magnetic pole position correction is performed. Otherwise, the rotor position is increased by 180° electrical angle.
[0022] 2.4) After obtaining the position of the permanent magnet synchronous motor, the pulse high-frequency injection sensorless control mode is used to control the operation of the permanent magnet synchronous motor. After the speed of the permanent magnet synchronous motor is greater than h1rpm, the sliding mode observer is started. When the speed of the permanent magnet synchronous motor is greater than h3rpm, it is switched to the sliding mode sensorless control mode; after entering the sliding mode sensorless control mode, when the speed of the permanent magnet synchronous motor is lower than h2rpm, it is switched to the pulse high-frequency injection sensorless control mode; the speed of the permanent magnet synchronous motor in the sensorless control mode is obtained by the observer.
[0023] 0<parameter h1<parameter h2<parameter h3.
[0024] 3) Using the sensor control mode to control the operation of the permanent magnet synchronous motor, and performing permanent magnet synchronous motor resolver fault detection, if there is no permanent magnet synchronous motor resolver fault, the motor position is calculated using the resolver decoding position, if there is a permanent magnet synchronous motor resolver fault, then go to step 4);
[0025] The method for detecting a resolver fault of a permanent magnet synchronous motor comprises: determining whether at least one of the following conditions is met, if so, the permanent magnet synchronous motor has a resolver fault, and if none of the following conditions are met, the permanent magnet synchronous motor does not have a resolver fault;
[0026] Condition 1: The controller receives the fault information sent by the resolver decoding chip, and the fault information is not zero;
[0027] Condition 2: The output pins LOT and DOS of the resolver decoding chip are both at low level;
[0028] Condition three: The absolute value of the difference between the current position of the permanent magnet synchronous motor and the previous position is greater than the threshold dmax.
[0029] 4) Determine whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault. If it is an occasional fault, perform a fault reset. If it is a continuous fault, switch the sensorless control mode to the sensorless control mode.
[0030] The steps for determining whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault include:
[0031] 4.1) When a resolver fault is detected in the permanent magnet synchronous motor, the resolver decoding chip fault reset is performed;
[0032] 4.2) Re-detect the permanent magnet synchronous motor resolver fault and return to step 1) until a detection cycle is completed. After a detection cycle, calculate the value p of the permanent magnet synchronous motor resolver fault counter. If the permanent magnet synchronous motor resolver fault counter p is greater than the threshold value pmax, the permanent magnet synchronous motor fault is judged to be a continuous fault, otherwise it is an occasional fault.
[0033] The method for calculating the value p of the permanent magnet synchronous motor resolver fault counter includes:
[0034] If the detection result shows that the permanent magnet synchronous motor has a resolver fault, then p=p+1;
[0035] If the detection result shows that the permanent magnet synchronous motor does not have a resolver fault and p>0, then p=p-1.
[0036] When the permanent magnet synchronous motor fault is an occasional fault, the current rotor position is deduced based on inertia, and the resolver decoding chip fault reset is performed;
[0037] The current rotor position is equal to the previous position data plus the position increment filter output value Δθr (n).
[0038] Among them, the position increment filter output value Δθ r (n) is as follows:
[0039] Δθ r (n) = (1-a) * Δθ r (n-1)+a*[θ r (n)-θ r (n-1)] (1)
[0040] In the formula, θ r (n) is the rotor position sampled in the current loop cycle; θ r (n-1) is the rotor position sampled in the last current loop cycle; a is the low-pass filter coefficient.
[0041] The steps to switch the sensorless control mode to the sensorless control mode include:
[0042] a) Adjust the speed command slope to h4rpm / s; parameter h4 is smaller than parameter h1.
[0043] b) Check whether the current speed is less than or equal to h2rpm; if the current speed is greater than h2rpm, enter the sliding mode sensorless control mode; if the current speed is ≤h2rpm, enter the high-frequency injection sensorless control mode.
[0044] The technical effect of the present invention is unquestionable. The present invention monitors the fault status of the resolver decoding chip in real time before and during the operation of the motor, and when a fault occurs, determines whether it is a startup fault (initial fault), an occasional fault or a continuous fault, and enters the corresponding operation mode to ensure that the motor can continue to run when the resolver fails. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the process of the present invention;
[0046] Figure 2 This is a flow chart of the rotary transformer fault detection before startup in the present invention;
[0047] Figure 3 This is a flow chart of the non-sensing control in the present invention;
[0048] Figure 4 This is a failure mode determination flow chart of the present invention;
[0049] Figure 5 This is a flow chart of switching from sensory control to non-sensing control in the present invention;
[0050] Figure 6 Flow chart for calculating high frequency ripple current component;
[0051] Figure 7 Flow chart for rotor position calculation;
[0052] Figure 8 The figure is a flow chart for correcting the rotor position of a permanent magnet synchronous motor. DETAILED DESCRIPTION
[0053] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments. Without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the art, which should all be included in the protection scope of the present invention.
[0054] Embodiment 1:
[0055] See also Figures 1 to 8 , a permanent magnet synchronous motor resolver fault detection and control method, comprising the following steps:
[0056] 1) Before starting the permanent magnet synchronous motor, use the controller to perform fault detection on the resolver decoding chip to determine whether the resolver decoding chip has an initial fault;
[0057] The steps for fault detection of the resolver decoding chip include:
[0058] 1.1) Initialize the fault counter k=0;
[0059] 1.2) The controller determines whether the resolver decoding chip uploads fault information. If so, it proceeds to step 1.4), otherwise it proceeds to step 1.3);
[0060] 1.3) Determine whether the output pins LOT and DOS of the resolver decoding chip are both at low level. If so, proceed to step 1.4), otherwise proceed to step 1.5);
[0061] 1.4) Reset the resolver decoding chip, set the fault counter k=k+1, and proceed to step 1.6);
[0062] 1.5) Determine whether the current fault counter k is greater than 0. If so, set the fault counter k=k-1 and proceed to step 1.6);
[0063] 1.6) Determine whether the current fault counter k is greater than the threshold kmax. If so, determine that the resolver decoding chip has an initial fault. Otherwise, proceed to step 7);
[0064] 1.7) Determine whether the controller receives the permanent magnet synchronous motor start signal. If so, determine that the resolver decoding chip does not have an initial fault. Otherwise, return to step 2).
[0065] 2) When the controller receives the permanent magnet synchronous motor start signal, if there is an initial fault in the resolver decoding chip, the permanent magnet synchronous motor is controlled to run in a sensorless control mode, otherwise, proceed to step 3);
[0066] The sensorless control mode includes a pulse high frequency injection sensorless control mode and a sliding mode sensorless control mode.
[0067] The steps of controlling the operation of a permanent magnet synchronous motor using a sensorless control mode include:
[0068] 2.1) See Figure 6 , inject high-frequency pulse voltage into the d-axis of the permanent magnet synchronous motor in the estimated synchronous rotating coordinate system, and sample the current of the q-axis in the estimated synchronous rotating coordinate system Calculate the high-frequency ripple current component
[0069] 2.2) See Figure 7 , based on the permanent magnet synchronous motor, the Q-axis high-frequency current in the synchronous rotating coordinate system is estimated Calculate the speed through PI Speed Integral calculation of rotor position When the Q-axis high-frequency current is equal to zero, the estimated rotor position coincides with the actual rotor position.
[0070] 2.3) Determine the polarity of the permanent magnet synchronous motor and correct the rotor position of the permanent magnet synchronous motor. The correction method is as follows: Figure 8 As shown, the steps include:
[0071] 2.3.1) At time t0, a positive high-frequency voltage is injected into the D axis for a period of Δt until time t1, and the peak current Imax1 is collected at time t1;
[0072] 2.3.2) Stop voltage injection until time t2, then start injecting negative high-frequency voltage into the D axis for a period of Δt until time t3, and collect the peak current Imax2 at time t3;
[0073] 2.3.3) Determine whether the peak current Imax1 is greater than the peak current Imax2. If so, the magnetic polarity is correct and no magnetic pole position correction is performed. Otherwise, the magnetic pole position is increased by 180°.
[0074] 2.4) After obtaining the position of the permanent magnet synchronous motor, the pulse high-frequency injection sensorless control mode is used to control the operation of the permanent magnet synchronous motor. After the speed of the permanent magnet synchronous motor is greater than 500rpm, the sliding mode observer is started. When the speed of the permanent magnet synchronous motor is greater than 800rpm, it is switched to the sliding mode sensorless control mode; after entering the sliding mode sensorless control mode, when the speed of the permanent magnet synchronous motor is lower than 600rpm, it is switched to the pulse high-frequency injection sensorless control mode; the speed of the permanent magnet synchronous motor in the sensorless control mode is obtained by the observer.
[0075] 3) Using the sensor control mode to control the operation of the permanent magnet synchronous motor, and performing permanent magnet synchronous motor resolver fault detection, if there is no permanent magnet synchronous motor resolver fault, the motor position is calculated using the resolver decoding position, if there is a permanent magnet synchronous motor resolver fault, then go to step 4);
[0076] The method for detecting a resolver fault of a permanent magnet synchronous motor comprises: determining whether at least one of the following conditions is met, if so, the permanent magnet synchronous motor has a resolver fault, and if none of the following conditions are met, the permanent magnet synchronous motor does not have a resolver fault;
[0077] Condition 1: The controller receives the fault information sent by the resolver decoding chip, and the fault information is not zero;
[0078] Condition 2: The output pins LOT and DOS of the resolver decoding chip are both at low level;
[0079] Condition three: The absolute value of the difference between the current position of the permanent magnet synchronous motor and the previous position is greater than the threshold dmax.
[0080] 4) Determine whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault. If it is an occasional fault, perform a fault reset. If it is a continuous fault, switch the sensorless control mode to the sensorless control mode.
[0081] The steps for determining whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault include:
[0082] 4.1) When a resolver fault is detected in the permanent magnet synchronous motor, the resolver decoding chip fault reset is performed;
[0083] 4.2) Re-detect the permanent magnet synchronous motor resolver fault and return to step 1) until a detection cycle is completed. After a detection cycle, calculate the value p of the permanent magnet synchronous motor resolver fault counter. If the permanent magnet synchronous motor resolver fault counter p is greater than the threshold value pmax, the permanent magnet synchronous motor fault is judged to be a continuous fault, otherwise it is an occasional fault.
[0084] The method for calculating the value p of the permanent magnet synchronous motor resolver fault counter includes:
[0085] If the detection result shows that the permanent magnet synchronous motor has a resolver fault, then p=p+1;
[0086] If the detection result shows that the permanent magnet synchronous motor does not have a resolver fault and p>0, then p=p-1.
[0087] When the permanent magnet synchronous motor fault is an occasional fault, the current rotor position is deduced based on inertia, and the resolver decoding chip fault reset is performed;
[0088] The current rotor position is equal to the previous position data plus the position increment filter output value.
[0089] Position incremental filter output value Δθ r (n) Calculation method: When there is no fault in the resolver position, the rotor position θ sampled in the current loop cycle r (n) and the rotor position θ sampled in the last current loop cycle r The specific formula is as follows, where a is the low-pass filter coefficient.
[0090] Δθ r (n) = (1-a) * Δθ r (n-1)+a*[θ r (n)-θ r (n-1)]
[0091] The steps to switch the sensorless control mode to the sensorless control mode include:
[0092] a) Adjust the speed command slope to 300 rpm / s.
[0093] b) Check whether the current speed is less than or equal to 600rpm; if the current speed is greater than 600rpm, enter the sliding mode sensorless control mode; if the current speed is ≤600rpm, enter the high-frequency injection sensorless control mode.
[0094] Embodiment 2:
[0095] See also Figures 1 to 5 , a permanent magnet synchronous motor resolver fault detection and control method, comprising the following steps:
[0096] S1. Perform initial fault detection of resolver decoding chip before startup;
[0097] S2. Detect whether there is an initial fault in the resolver decoding chip;
[0098] S3. After receiving the startup information, if there is an initial failure of the resolver decoding chip, enter the non-sensing control mode
[0099] S4. After receiving the startup information, if there is no initial failure of the resolver decoding chip, enter the sensor control mode;
[0100] S5. In the sensor control mode, perform resolver fault detection;
[0101] S6, when there is no fault in the resolver, the position of the motor is calculated using the position decoded by the resolver;
[0102] S7. When the resolver fails, determine whether it is an occasional failure or a continuous failure;
[0103] S8. If it is an occasional fault, use the rotor position derived from inertia and perform fault reset; after receiving fault-free information for 5 consecutive times, use the resolver to calculate the output position as the motor rotor position;
[0104] S9: If the fault persists, switch directly to the sensorless control mode.
[0105] In S2, the detection of the initial fault adopts reading fault information and resetting. If the fault information is continuously received within 100ms and any one of the LOT and DOS signals is low, it is judged as an initial fault of the resolver.
[0106] In S3, a pulse square wave with an amplitude of 20% of the bus voltage is first injected into the D axis, the motor position is calculated according to the high-frequency current of the Q axis, and then the motor polarity is judged. After the polarity is judged and the position is corrected, the high-frequency square wave injection senseless control mode is entered; when the speed is greater than 500rpm, the sliding mode observer is started; after the speed is higher than 800rpm, it is switched to the sliding mode senseless control mode; after entering the sliding mode senseless control mode, when the speed is lower than 600rpm, it is switched to the pulse high-frequency injection senseless control mode.
[0107] In S4, the sliding mode observer is started when the rotation speed is greater than 500 rpm.
[0108] In S5, if the fault information read is not zero, any of the LOT and DOS signals is low, and the absolute value of the difference between the position information read this time and the last position is greater than 5000, it is determined that there is a fault in the resolver decoding within the current loop cycle.
[0109] In S7, when a resolver fault is detected, a fault reset is performed in the main loop. If the resolver fault is detected for 10 ms continuously, it is determined that there is a long-term fault, otherwise it is determined to be an occasional fault.
[0110] In S8, a first-order low-pass filter is performed on each position increment, and the filter coefficient is set to 0.125; if a fault is detected, the current position data is equal to the previous position data plus the position increment filter output value.
[0111] In S9, the speed command slope is first reduced to 300rpm / s. If the current speed is less than 600rpm, the control mode is switched to the pulse high-frequency injection senseless control mode; otherwise, the control mode is switched to the sliding mode senseless control mode. After entering the sliding mode senseless control mode, when the speed is lower than 600rpm, the control mode is switched to the pulse high-frequency injection senseless control mode.
[0112] Embodiment 3:
[0113] See also Figures 1 to 5 , a permanent magnet synchronous motor resolver fault detection and control method, comprising the following steps:
[0114] S1, motor controller initialization;
[0115] S2. Detect whether there is an initial fault in the resolver decoding chip;
[0116] S3. After receiving the startup information, if there is an initial failure of the resolver decoding chip, enter the non-sensing control mode
[0117] S4. After receiving the startup information, if there is no initial failure of the resolver decoding chip, enter the sensor control mode;
[0118] S5. In the sensor control mode, perform resolver fault detection;
[0119] S6, when there is no fault in the resolver, the position of the motor is calculated using the position decoded by the resolver;
[0120] S7. When the resolver fails, determine whether it is an occasional failure or a long-term failure;
[0121] S8. If it is an occasional fault, use the rotor position derived from inertia and perform fault reset; after receiving fault-free information for 5 consecutive times, use the resolver to calculate the output position as the motor rotor position;
[0122] S9: If the fault persists, switch to the sensorless control mode.
[0123] Embodiment 4:
[0124] See also Figure 2 , a permanent magnet synchronous motor resolver fault detection and control method, the main steps are shown in Example 3, wherein the resolver fault detection process before startup is as follows:
[0125] a1. Read the resolver information once every 1ms to check whether the resolver decoding chip fault information read is not zero;
[0126] a2. Read the output pins LOT and DOS of the resolver decoding chip to see if they are at a low level;
[0127] a3. When a1 or a2 is satisfied, it is determined that a resolver fault has occurred in this cycle, the fault register of the resolver decoding chip is read, and the resolver decoding chip fault reset is performed;
[0128] a4. When a1 or a2 is satisfied, add 1 to the fault counter;
[0129] a5. When a1 or a2 is not satisfied, and the fault counter is greater than 0, the counter is reduced by 1;
[0130] a6. Determine whether the fault counter is greater than 100;
[0131] a7. If the fault counter is greater than 100, it is determined that a resolver startup fault has been detected;
[0132] a8. When the start signal is received, the fault counter is less than 100;
[0133] a9. Exit the resolver startup fault detection.
[0134] Embodiment 5:
[0135] See also Figure 3 , a permanent magnet synchronous motor resolver fault detection and control method, the main steps are shown in Example 3, wherein the non-sensing control process is as follows:
[0136] b1. Inject a pulse voltage into the assumed D-axis and perform initial position detection through the high-frequency response current of the Q-axis;
[0137] b2. Perform magnetic pole identification by injecting positive and negative pulse voltages on the D axis and detecting the D axis current response to determine the magnetic pole polarity. After the identification is completed, perform magnetic pole correction.
[0138] b3. Enter the pulse high frequency injection non-sensing control mode;
[0139] b4. Start the sliding mode observer when the speed is greater than 500 rpm;
[0140] b5. When the speed is greater than 800rpm, it enters the sliding mode sensorless control mode;
[0141] b6. After entering the sliding mode sensorless control mode, the speed is less than 600rpm and enters the pulse high frequency injection sensorless control mode.
[0142] Embodiment 6:
[0143] See also Figure 4 , a permanent magnet synchronous motor resolver fault detection and control method, the main steps are shown in Example 3, wherein the fault mode judgment process is as follows:
[0144] c1. After the motor starts running, read the resolver information once every 200us to check whether the resolver decoding chip fault information read is not zero;
[0145] c2. Read whether the output pins LOT and DOS of the resolver decoding chip are at low level;
[0146] c3. When c1 or c2 is satisfied, it is determined that a resolver fault has occurred in this cycle, the fault register of the resolver decoding chip is read, and the resolver decoding chip fault reset is performed;
[0147] c4. When a1 or a2 is satisfied, add 1 to the fault counter;
[0148] c5. When neither a1 nor a2 is satisfied and the fault counter is greater than 0, the counter is reduced by 1;
[0149] c6. Determine whether the fault counter is not equal to 0;
[0150] c7. Determine whether the fault counter is greater than or equal to 50;
[0151] c8, the fault counter is equal to 0, and it is determined that the resolver has no fault;
[0152] c9. The fault counter is greater than 0 and less than 50, indicating that the resolver has an occasional fault;
[0153] c10. If the fault counter is greater than or equal to 50, it is determined that the resolver has a continuous fault.
[0154] Embodiment 7:
[0155] See also Figure 5 , a permanent magnet synchronous motor resolver fault detection and control method, the main steps are shown in Example 3, wherein the inductive to non-inductive switching process is as follows:
[0156] d1. When the speed command slope is adjusted to 300rpm / s;
[0157] d2. Check whether the current speed is less than or equal to 600rpm;
[0158] d3. The current speed is greater than 600rpm, and the sliding mode sensorless control mode is entered;
[0159] d4. When the current speed is ≤600rpm, the system enters high-frequency injection sensorless control mode.
Claims
1. A method for detecting and controlling a permanent magnet synchronous motor resolver fault. It is characterized in that The following steps are involved: 1) Before starting the permanent magnet synchronous motor, use the controller to perform fault detection on the resolver decoding chip to determine whether the resolver decoding chip has an initial fault; 2) When the controller receives the permanent magnet synchronous motor start signal, if there is an initial fault in the resolver decoding chip, the permanent magnet synchronous motor is controlled to run in a sensorless control mode, otherwise, proceed to step 3); 3) Using the sensor control mode to control the operation of the permanent magnet synchronous motor, and performing permanent magnet synchronous motor resolver fault detection, if there is no permanent magnet synchronous motor resolver fault, the motor position is calculated using the resolver decoding position, if there is a permanent magnet synchronous motor resolver fault, then go to step 4); 4) Determine whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault. If it is an occasional fault, perform a fault reset. If it is a continuous fault, switch the sensed control mode to the non-sensing control mode; When the permanent magnet synchronous motor fault is an occasional fault, the current rotor position is deduced based on inertia, and the resolver decoding chip fault reset is performed; The current rotor position is equal to the previous position data plus the position increment filter output value Δθ r (n); Among them, the position increment filter output value Δθ r (n) is as follows: Dth r (n)=(1-a)*Δθ r (n-1)+a*[θ r (n)-θ r (n-1)](1) In the formula, θ r (n) is the rotor position sampled in the current loop cycle; θ r (n-1) is the rotor position sampled in the last current loop cycle; a is the low-pass filter coefficient.
2. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The steps for fault detection of the resolver decoding chip include: 1) Initialize the fault counter k=0; 2) The controller determines whether the resolver decoding chip uploads fault information. If so, it proceeds to step 4), otherwise it proceeds to step 3); 3) Determine whether the output pins LOT and DOS of the resolver decoding chip are both at low levels. If so, proceed to step 4), otherwise proceed to step 5); 4) Reset the resolver decoding chip, set the fault counter k=k+1, and go to step 6); 5) Determine whether the current fault counter k is greater than 0. If so, set the fault counter k=k-1 and proceed to step 6); 6) Determine whether the current fault counter k is greater than the threshold kmax. If so, determine that the resolver decoding chip has an initial fault. Otherwise, proceed to step 7); 7) Determine whether the controller receives the permanent magnet synchronous motor start signal. If so, determine that the resolver decoding chip does not have an initial fault. Otherwise, return to step 2).
3. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The sensorless control mode includes a pulse high frequency injection sensorless control mode and a sliding mode sensorless control mode.
4. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The steps of controlling the operation of a permanent magnet synchronous motor using a sensorless control mode include: 1) Inject high-frequency pulse voltage into the d-axis of the permanent magnet synchronous motor in the estimated synchronous rotating coordinate system, and sample the current of the q-axis in the estimated synchronous rotating coordinate system. Calculate the high-frequency ripple current component 2) Estimate the Q-axis high-frequency current in the synchronous rotating coordinate system based on the permanent magnet synchronous motor Calculate the speed through PI Speed Integral calculation of rotor position When the Q-axis high-frequency current is equal to zero, the estimated rotor position coincides with the actual rotor position; 3) Determine the polarity of the permanent magnet synchronous motor and correct the rotor position of the permanent magnet synchronous motor. The correction steps include: 3.1) At time t0, a positive high-frequency voltage is injected into the D axis for a period of Δt until time t1, and the peak current Imax1 is collected at time t1; 3.2) Stop voltage injection until time t2, then start injecting negative high-frequency voltage into the D axis for a period of Δt until time t3, and collect the peak current Imax2 at time t3; 3.3) Determine whether the peak current Imax1 is greater than the peak current Imax2. If so, the magnetic pole polarity is correct and no magnetic pole position correction is performed. Otherwise, the rotor position is increased by 180° electrical angle. 4) After obtaining the position of the permanent magnet synchronous motor, the pulse high-frequency injection sensorless control mode is used to control the operation of the permanent magnet synchronous motor. After the speed of the permanent magnet synchronous motor is greater than h1rpm, the sliding mode observer is started. When the speed of the permanent magnet synchronous motor is greater than h3rpm, it is switched to the sliding mode sensorless control mode; after entering the sliding mode sensorless control mode, when the speed of the permanent magnet synchronous motor is lower than h2rpm, it is switched to the pulse high-frequency injection sensorless control mode; the speed of the permanent magnet synchronous motor in the sensorless control mode is obtained by the observer.
5. A permanent magnet synchronous motor resolver fault detection and control method according to claim 4, It is characterized in that 0<parameter h1<parameter h2<parameter h3.
6. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The method for detecting a resolver fault of a permanent magnet synchronous motor comprises: determining whether at least one of the following conditions is met, if so, the permanent magnet synchronous motor has a resolver fault, and if none of the following conditions are met, the permanent magnet synchronous motor does not have a resolver fault; Condition 1: The controller receives the fault information sent by the resolver decoding chip, and the fault information is not zero; Condition 2: The output pins LOT and DOS of the resolver decoding chip are both at low level; Condition three: The absolute value of the difference between the current position of the permanent magnet synchronous motor and the previous position is greater than the threshold value dmax.
7. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The steps for determining whether the fault of the permanent magnet synchronous motor is an occasional fault or a continuous fault include: 1) When a resolver fault is detected in the permanent magnet synchronous motor, the resolver decoding chip fault reset is performed; 2) Re-perform permanent magnet synchronous motor resolver fault detection and return to step 1) until a detection cycle is completed. After a detection cycle is completed, calculate the value p of the permanent magnet synchronous motor resolver fault counter. If the permanent magnet synchronous motor resolver fault counter p is greater than the threshold value pmax, the permanent magnet synchronous motor fault is judged to be a continuous fault, otherwise it is an occasional fault.
8. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, It is characterized in that The method for calculating the value p of the permanent magnet synchronous motor resolver fault counter includes: If the detection result shows that the permanent magnet synchronous motor has a resolver fault, then p=p+1; If the detection result shows that the permanent magnet synchronous motor does not have a resolver fault and p>0, then p=p-1.
9. A permanent magnet synchronous motor resolver fault detection and control method according to claim 1, Features: The steps to switch from sensory control mode to non-sensing control mode include: 1) Adjust the speed command slope to h4rpm / s; parameter h4 is less than parameter h1; 2) Check whether the current speed is less than or equal to h2rpm; if the current speed is greater than h2rpm, enter the sliding mode sensorless control mode; if the current speed is ≤h2rpm, enter the high-frequency injection sensorless control mode.
