A pump-used oil-immersed permanent magnet synchronous motor drive controller and control method thereof

By designing a pump-type oil-immersed permanent magnet synchronous motor drive controller and a sensorless algorithm, the problems of diverse bus communication and sensorless control were solved, achieving real-time control and high reliability in the event of mechanical sensor failure, while reducing algorithm complexity.

CN113595461BActive Publication Date: 2024-11-05BEIJING RES INST OF PRECISE MECHATRONICS CONTROLS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110770217.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-08
Publication Date
2024-11-05
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

Existing technologies cannot achieve diverse bus communication within a specified communication cycle and simultaneously realize sensorless control of permanent magnet synchronous motors for pumps. Furthermore, the use of filters leads to significant errors in rotor position information, affecting control performance.

Method used

The pump-type oil-immersed permanent magnet synchronous motor drive controller includes a core processor DSP, a 485 communication module, a three-channel CAN bus communication module, an Ethernet communication module, a rotary transformer signal detection circuit, a PWM isolation drive circuit, and a voltage and current sampling circuit. It combines a dual-redundant speed and current dual-closed-loop servo control method with mechanical sensors and sensorless sensors. It utilizes rotary transformers and sensorless algorithms to switch to sensorless control state when mechanical sensors fail. It adopts timing control and MIBSPI mode to reduce CPU load. The rotor position is estimated through low-speed sensorless algorithms and medium-to-high-speed sliding mode observers.

Benefits of technology

It enables sensorless control in the event of mechanical sensor failure, reduces code size and algorithm complexity, improves system reliability and control performance, and achieves real-time performance of diverse bus communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113595461B_ABST
    Figure CN113595461B_ABST
Patent Text Reader

Abstract

The present invention proposes a pump-used oil-immersed permanent magnet synchronous motor drive controller and a control method thereof, belonging to the technical field of motor drive control. The pump-used oil-immersed permanent magnet synchronous motor drive controller comprises a core processor DSP, a 485 communication module, a three-way CAN bus communication module, an Ethernet communication module, a rotary transformer signal detection circuit, a PWM isolation drive circuit, a voltage and current sampling circuit and a power drive module. The present invention also proposes a control method for a pump-used oil-immersed permanent magnet synchronous motor drive controller, which can simultaneously realize real-time communication in the form of multiple buses such as a 485 bus, a three-way redundant CAN bus, and an Ethernet. When a mechanical sensor fails, the speed closed-loop vector control of the permanent magnet synchronous motor can be realized by adopting a sensorless algorithm, and the sensorless algorithm adopted does not require the use of a filter. Compared with the prior art, the code amount and algorithm complexity are greatly reduced, and it has outstanding substantive characteristics and significant progress.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motor drive control, and in particular relates to an oil-immersed permanent magnet synchronous motor drive controller for a pump and a control method thereof. Background Art

[0002] With the rapid development of power electronics technology, material science, microelectronics technology and modern control theory, the power mechanism of the rudder control system has gradually transitioned from the traditional hydraulic system to the electric steering gear system. The electric steering gear system reduces or completely eliminates the centralized hydraulic oil source and the hydraulic pipelines throughout the hull, solving the problems of low efficiency, high cost, difficult maintenance, servo valves being easily contaminated by oil, and leakage and vibration caused by hydraulic pipelines in the traditional hydraulic system, enhancing the reliability, reducing the cost of repair and maintenance, and improving energy utilization.

[0003] With the gradual improvement of information warfare requirements, the communication interface of the electric servo control system has become more diversified, intelligent, and redundant. In addition, based on the motor-pump integrated design, the motor is in an oil-immersed working state, and the mechanical position sensor and rotary transformer inside the motor are also in an oil-immersed working state, which reduces its reliability. Therefore, it is necessary for the rudder control system to adopt motor sensorless control when the mechanical sensor fails. How to achieve diversified bus communication within the specified communication cycle and simultaneously achieve sensorless control of the permanent magnet synchronous motor for pumps becomes crucial.

[0004] Nowadays, there are many sensorless control methods to replace traditional mechanical position / speed sensors, but filters are used in the signal extraction process involving the rotor position. The use of filters will cause the observed rotor position information to have errors that change with the motor speed, which seriously affects the control performance of the permanent magnet synchronous motor sensorless control system, thereby limiting its application in the control system of the rudder, and needs to be improved. Summary of the invention

[0005] The present invention provides a pump oil-immersed permanent magnet synchronous motor drive controller and a control method thereof, aiming to solve the problem that the prior art cannot realize diversified bus communication within a prescribed communication cycle and simultaneously realize sensorless control of the pump permanent magnet synchronous motor.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A pump-used oil-immersed permanent magnet synchronous motor drive controller comprises a core processor DSP, a 485 communication module, a three-way CAN bus communication module, an Ethernet communication module, a rotary transformer signal detection circuit, a PWM isolation drive circuit, a voltage and current sampling circuit and a power module.

[0008] Furthermore, the oil-immersed permanent magnet synchronous motor drive controller for the pump uses TMS570LS1227 as the main control chip of the controller, the 485 communication module uses ADUM2682, the CAN bus communication module uses TJA1050, the Ethernet communication module uses WIZnet's Ethernet interface chip W5500 as the Ethernet controller, the transformer chip in the Ethernet module circuit uses HX1188NL, and the resolver decoding chip uses AD2S1210.

[0009] The present invention also proposes a control method for an oil-immersed permanent magnet synchronous motor drive controller for a pump, which adopts the above-mentioned oil-immersed permanent magnet synchronous motor drive controller for a pump, and adopts a speed and current dual closed-loop servo control method with mechanical sensors and sensorless dual redundancy. Under normal conditions, a rotary transformer is used to obtain the motor rotor position and motor speed for the motor speed dual closed-loop control. At the same time, a sensorless algorithm is also used to solve the rotor position and motor speed. The calculated position and speed are combined with the state information of the rotary transformer signal decoding circuit to judge the operating state of the rotary transformer. Once the rotary transformer is abnormal, the motor control system switches to the sensorless control state.

[0010] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, the 485 bus transmission, the CAN bus, and the Ethernet use a timing control method to control the timing of each communication;

[0011] Ethernet uses MibSPI mode to implement Ethernet data time-sharing writing and aggregate transmission to reduce CPU computing load;

[0012] The low-speed sensorless algorithm adopts the method of time-sharing injection of square wave voltage. The calculation cycle of vector control is twice the PWM chopping cycle, and the injected square wave voltage cycle is twice the PWM chopping cycle. In the 2kth PWM chopping cycle, a positive DC voltage is injected into the estimated d-axis, and in the 2k+1th PWM chopping cycle, a negative DC voltage is injected into the estimated d-axis. The Hall current sensor is used to detect the A and B two-phase stator currents. The fundamental current and high-frequency current of the motor are obtained through simple addition and subtraction calculations. The fundamental current is used for the current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize the sensorless control of the motor.

[0013] The medium and high speed sensorless algorithm uses a sliding mode observer to estimate the motor's alpha and beta axis back EMF to estimate the motor's rotor position;

[0014] The weighted average method is used to achieve a smooth transition from low speed to medium and high speed.

[0015] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for the pump, the speed and current closed-loop control period in the motor vector control algorithm is 200us, the PWM chopping period is 100us, the period of injected square wave voltage is 200us, and the control drive software periodically updates the servo status information. When 485 communication is adopted, the number of servo status information bytes is ≥20, and the data refresh period is 20ms. When CAN communication is adopted, the number of servo status information bytes is ≥100, the system key status data transmission period is 50ms, and the remaining data transmission period is 250ms. When Ethernet communication is adopted, the number of servo status information bytes is ≥100, and the data refresh period is 100ms. The timing of each communication is arranged by timing control.

[0016] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, the triple-redundant CAN communication priority is set as follows:

[0017] When the effective path is not determined, the determination order of the three CAN channels is CAN1>CAN2>CAN3;

[0018] If the current valid channel does not receive valid data for 200ms or receives invalid data, the valid channel will be re-screened;

[0019] If no valid data is received for 300ms, the CAN command is cleared;

[0020] If no valid data is received for 3 consecutive seconds, a CAN communication failure will be reported.

[0021] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, MibSPI technology is used to reduce the occupation of Ethernet communication on the closed-loop control cycle. The communication process of MibSPI is:

[0022] After the communication starts, the SPI module is initialized to enhanced mode, then the MibSPI clock is initialized, the transmission group is allocated and initialized according to the amount of transmission data, MibSPI is started, and the process ends.

[0023] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, the position and speed calculated by the sensorless algorithm are combined with the fault pin output state of AD2S1210 to determine whether the resolver is abnormal.

[0024] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump,

[0025] The low-speed sensorless algorithm adopts the square wave voltage time-sharing injection method. The current sampling time point is set to the PWM center time. The calculation cycle of the vector control is twice the PWM chopping cycle. The injected square wave voltage cycle is twice the PWM chopping cycle. In the 2kth PWM chopping cycle, a positive DC voltage is injected into the estimated d-axis. In the 2k+1th PWM chopping cycle, a negative DC voltage is injected into the estimated d-axis.

[0026] The Hall current sensor is used to detect the stator current of the A and B phases. The fundamental current and high-frequency current of the motor can be calculated through the high-frequency response current and fundamental current component expressions. The fundamental current is used for the current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize the sensorless control of the motor. The Luenberger observer based on the heterodyne method is used to obtain the final observed rotor position and observed speed.

[0027] The high frequency response current is obtained by the following formula:

[0028]

[0029] The fundamental current component is obtained by the following formula:

[0030]

[0031] In the formula, Δi αh , Δi βh It represents the difference between the high-frequency response current of the αβ axis at the previous moment and the next moment, i αh(2k+1) ,i αh(2k) ,i βh(2k+1) ,i βh(2k) represents the αβ axis high frequency response current at the 2k+1 and 2k moments, T represents the PWM chopping period, i α(2k+1) 、i β(2k+1) 、i αf(2k+1) 、i βf(2k+1) 、i α(2k) 、i β(2k) 、i αf(2k) 、i βf(2k) They represent the αβ axis current and fundamental current components at the 2k+1th and 2kth moments respectively.

[0032] Furthermore, in the control method of the oil-immersed permanent magnet synchronous motor drive controller for the pump, the medium and high speed sensorless algorithm uses a sliding mode observer to estimate the alpha-axis and beta-axis back electromotive force of the motor and then estimates the motor rotor position, and uses a weighted average method to achieve a smooth transition from low speed to medium and high speed.

[0033] The beneficial technical effects achieved by the present invention are:

[0034] It can realize real-time communication of 485 bus, three-way redundant CAN bus and Ethernet at the same time. When the mechanical sensor fails, the speed closed-loop vector control of the permanent magnet synchronous motor can be realized by adopting the sensorless algorithm. The sensorless algorithm does not need to use a filter. Compared with the existing technology, it greatly reduces the amount of code and algorithm complexity, and has outstanding substantive characteristics and significant progress. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a block diagram of the controller composition of one specific embodiment of the present invention;

[0036] Figure 2 It is a schematic diagram of a driver control system of one specific embodiment of the present invention;

[0037] Figure 3 is a communication timing arrangement diagram of one specific embodiment of the present invention;

[0038] Figure 4 It is a MibSPI communication flow chart of one specific embodiment of the present invention;

[0039] Figure 5 It is a schematic diagram of a square wave injection method according to one specific embodiment of the present invention;

[0040] Figure 6 It is a schematic diagram of the basic structure of a Luenberger observer according to one specific embodiment of the present invention;

[0041] Figure 7 It is a schematic diagram of the basic structure of a sliding mode observer according to one specific embodiment of the present invention. DETAILED DESCRIPTION

[0042] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection claimed by the present invention.

[0043] like Figure 1 As shown, a specific embodiment of a pump-used oil-immersed permanent magnet synchronous motor drive controller in a multi-bus form is shown, with DSP as the core processor, including a 485 communication module, a three-way CAN bus communication module, an Ethernet communication module, a rotary transformer signal detection circuit, a PWM isolation drive circuit, a voltage and current sampling circuit and a power module.

[0044] In terms of hardware, this specific embodiment uses TMS570LS1227 as the main control chip of the controller, ADUM2682 for 485 communication module, TJA1050 for CAN communication module, WIZnet's Ethernet interface chip W5500 as Ethernet controller for Ethernet communication module, HX1188NL for transformer chip in Ethernet module circuit, and AD2S1210 for resolver decoding chip.

[0045] like Figure 2 As shown, in this specific embodiment, the control driver adopts a speed current dual closed-loop servo control method with mechanical sensors and sensorless dual redundancy. The sensorless algorithm module includes: Figure 2 The low-speed high-frequency signal injection estimation module, high-speed sliding mode observer estimation module and weighting factor calculation module are shown. Under normal conditions, the resolver is used to obtain the motor rotor position and motor speed for the motor speed double closed-loop control. At the same time, the sensorless algorithm is also used to solve the rotor position and motor speed. The calculated position and speed are combined with the resolver signal decoding circuit status information to determine the resolver operation status. Once the resolver is abnormal, the motor control system switches to the sensorless control state. The switching process is Figure 2 The position and speed signal selection module and the fundamental wave signal selection module in the sensor / sensorless mode are shown in the figure, which are mainly used to switch the motor speed at the feedback end required by the speed loop, the motor rotor position for PARK / IPARK conversion, and the fundamental wave current at the feedback end required by the current loop.

[0046] 485 bus transmission, CAN bus, and Ethernet use timing control to control the timing of each communication. In this specific embodiment, Ethernet uses MibSPI mode to implement Ethernet data time-sharing writing and summary transmission to reduce the CPU computing load; the low-speed sensorless algorithm uses square wave voltage time-sharing injection, the calculation cycle of vector control is twice the PWM chopping cycle, the injected square wave voltage cycle is twice the PWM chopping cycle, and a positive DC voltage is injected into the estimated d-axis in the 2kth PWM chopping cycle, and a negative DC voltage is injected into the estimated d-axis in the 2k+1st PWM chopping cycle. The Hall current sensor is used to detect the A and B two-phase stator currents, and the fundamental current and high-frequency current of the motor operation are obtained through simple addition and subtraction calculations. The fundamental current is used for the current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize the sensorless control of the motor. The medium- and high-speed sensorless algorithm uses a sliding mode observer to estimate the alpha-axis and beta-axis back electromotive force of the motor to estimate the motor rotor position. The weighted average method is used to achieve a smooth transition from low speed to medium and high speed.

[0047] Under normal conditions, a resolver is used to obtain the motor rotor position and motor speed for dual closed-loop control of the motor speed. At the same time, a sensorless algorithm is also used to calculate the rotor position and motor speed. The calculated position and speed are combined with the resolver signal decoding circuit status information to determine the resolver operating status. Once the resolver is abnormal, the motor control system switches to the sensorless control state.

[0048] In this specific embodiment, the motor control speed and current closed-loop control period is 200us, the PWM chopping period is 100us, the period of injected square wave voltage is 200us, and the control drive software periodically updates the servo status information. When using 485 communication, the number of servo status information bytes is ≥20, and the data refresh period is 20ms. When using CAN communication, the number of servo status information bytes is ≥100, the key system status data transmission period is 50ms, and the remaining data transmission period is 250ms. When using Ethernet communication, the number of servo status information bytes is ≥100, and the data refresh period is 100ms. In order to match the transmission period of each bus communication and fully reduce the pressure of the closed-loop control period, the timing control method is used to reasonably arrange the timing of each communication. The timing arrangement is as follows: Figure 3 As shown in the figure. Divide 1ms into 10 100us cycles and allocate the timing of each module according to the time required to execute the program. Figure 3 As shown, CAN message reception and parsing, Ethernet telemetry data return, and CAN telemetry information return are allocated two 100us cycles, and the rest are allocated one 100us cycle.

[0049] The triple-redundant CAN communication priority settings are as follows:

[0050] When the valid path is not determined, the judgment order of the three CAN channels is CAN1>CAN2>CAN3. If the current valid path does not receive valid data for 200ms or receives invalid data, the valid path will be re-screened. If no valid data is received for 300ms, the CAN command is cleared; if no valid data is received for 3s, a CAN communication fault is reported.

[0051] W5500 supports high-speed four-wire SPI interface to communicate with the host, but in the state of large-capacity data transmission and reception, SPI communication will occupy a large amount of CPU resources, affecting the closed-loop control performance of the servo control driver. In this specific embodiment, MibSPI technology is used to reduce the occupancy of Ethernet communication in the closed-loop control cycle. The communication process of MibSPI is as follows Figure 4 As shown, the process mainly includes reset initialization, starting the communication port and data reading and writing operations. After the communication starts, the SPI module is initialized to enhanced mode, and then the MibSPI clock is initialized. The transmission group is allocated and initialized according to the amount of transmission data, and the MibSPI is started, and the process ends.

[0052] In order to improve the reliability of the oil-immersed permanent magnet synchronous electric drive controller, a mechanical sensor and a sensorless dual redundant control method are used in this specific embodiment. Under normal conditions, a rotary transformer is used to obtain the motor rotor position and motor speed for the motor speed dual closed-loop control. At the same time, a sensorless algorithm is also used to solve the rotor position and motor speed. The calculated position and speed are combined with the state information of the rotary transformer signal decoding circuit to determine the rotary transformer operation state. Once the rotary transformer is abnormal, the motor control system switches to the sensorless control state.

[0053] The AD2S1210 resolver excitation demodulation integrated chip can output the position and speed information of the rotor, and has the function of detecting system fault information, providing a detection and judgment basis for the redundancy switching control of the steering system. Its internal fault detection circuit can detect fault types including resolver signal loss, out-of-range input signal, input signal mismatch or position tracking loss, etc. Determine whether the resolver is abnormal based on the output status of the fault pin of the AD2S1210.

[0054] The low-speed sensorless algorithm uses a square wave voltage time-sharing injection method, such as Figure 5 As shown, the current sampling time point is set to the PWM center time, the calculation period of the vector control is twice the PWM chopping period, the injected square wave voltage period is twice the PWM chopping period, and a positive DC voltage is injected into the estimated d-axis in the 2kth PWM chopping period, and a negative DC voltage is injected into the estimated d-axis in the 2k+1th PWM chopping period. The expression is as follows:

[0055]

[0056] When the injected voltage signal is a high-frequency signal (the signal frequency is much greater than the fundamental frequency of the motor during normal operation), the stator resistance voltage drop, rotation voltage and back electromotive force caused by the high-frequency injection signal can be ignored, and the expression of the high-frequency current response can be obtained as follows:

[0057]

[0058] In the formula, Δi αh , Δi βh It represents the difference between the previous moment and the next moment of the αβ axis high frequency response current, and ΔT represents the sampling time interval.

[0059] The phase current sampling time point is set to the PWM center time, so the high-frequency current difference can be calculated according to the following formula:

[0060]

[0061]

[0062] In the formula, iαh(2k+1) ,i αh(2k) ,i βh(2k+1) ,i βh(2k) represents the αβ-axis high frequency response current at the 2k+1th and 2kth moments, and T represents the PWM chopping period.

[0063]

[0064]

[0065] In the formula, i α(2k+1) 、i β(2k+1) 、i αf(2k+1) 、i βf(2k+1) 、i α(2k) 、i β(2k) 、i αf(2k) 、i βf(2k) They represent the αβ axis current and fundamental current components at the 2k+1th and 2kth moments respectively.

[0066] Because during the period from injecting positive high-frequency voltage to injecting negative high-frequency voltage, the u obtained by closed-loop control α 、u β The fundamental current can be assumed to remain unchanged, and since the sampling time is consistent, the high-frequency response satisfies i αh(2k+1) =-i αh(2k) ,i βh(2k+1) =-i βh(2k) , so the high frequency response current can be obtained by the following formula:

[0067]

[0068] The fundamental current component can be obtained by the following formula:

[0069]

[0070] The Hall current sensor is used to detect the stator current of phases A and B. The fundamental current and high-frequency current of the motor can be calculated through the high-frequency response current and fundamental current component expressions. The fundamental current is used for current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize sensorless control of the motor. The Luenberger observer based on the heterodyne method is used to obtain the final observed rotor position and observed speed. Its basic structure is as follows: Figure 6 shown.

[0071] The medium and high speed sensorless algorithm uses a sliding mode observer to estimate the alpha and beta axis back electromotive force of the motor to estimate the motor rotor position. Its basic structure is as follows: Figure 7 shown.

[0072] The weighted average method is used to achieve a smooth transition from low speed to medium and high speed. are the estimated values ​​of rotor speed and position at low speed and high speed respectively, then the estimated values ​​of motor speed and rotor position in the transition area from low speed to medium and high speed are the linear combination of the estimated values ​​of rotor speed and position at low speed and medium and high speed. The specific expression is shown in the following formula.

[0073]

[0074] Where α is the weighting factor, that is

[0075]

[0076] Where ω1 and ω2 represent the low-speed point and high-speed point in the transition region, respectively.

[0077] The technical solution proposed in this specific embodiment has the following characteristics:

[0078] 1. Realize real-time communication in various bus forms through timing control, solving the problem of execution timeout due to excessive program volume during the interrupt cycle;

[0079] 2. Ethernet uses MibSPI mode to implement Ethernet data time-sharing writing, and the aggregate transmission method reduces the CPU computing load;

[0080] 3. Use mechanical position sensors and sensorless algorithm redundant control methods to improve the reliability of the oil-immersed permanent magnet synchronous motor system for pumps.

[0081] 4. Compared with the traditional low-speed sensorless algorithm, the sensorless method of square wave voltage time-sharing injection removes the filter and obtains the fundamental current and high-frequency current including the rotor position through simple mathematical calculations;

[0082] 5. Setting the control period to twice the PWM chopping period can ensure that the fundamental current remains unchanged when the positive high-frequency voltage is injected in the first chopping period and the negative high-frequency voltage is injected in the second chopping period;

[0083] 6. After obtaining the high-frequency current containing the rotor position information through mathematical calculation, the Luenberger observer based on the heterodyne method is used to obtain the final observed rotor position and observed speed, avoiding the divergence of directly using tangent calculation.

[0084] In summary, the beneficial technical effects achieved by this specific embodiment are:

[0085] A controller and control method for an oil-immersed permanent magnet synchronous motor for a pump with diversified bus integration that meets real-time control requirements are provided. Real-time communication of 485 bus, three-way redundant CAN bus, and Ethernet can be realized simultaneously. When a mechanical sensor fails, the speed closed-loop vector control of the permanent magnet synchronous motor can be realized by adopting a sensorless algorithm, and the sensorless algorithm does not require the use of a filter. Compared with the prior art, the code volume and algorithm complexity are greatly reduced, and the controller has outstanding substantive characteristics and significant progress.

Claims

1. A control method for a pump oil-immersed permanent magnet synchronous motor drive controller, It is characterized in that A pump-used oil-immersed permanent magnet synchronous motor drive controller is used, and the pump-used oil-immersed permanent magnet synchronous motor drive controller includes a core processor DSP, a 485 communication module, a three-way CAN bus communication module, an Ethernet communication module, a rotary transformer signal detection circuit, a PWM isolation drive circuit, a voltage and current sampling circuit, and a power module; The pump oil-immersed permanent magnet synchronous motor drive controller uses TMS570LS1227 as the main control chip of the controller, the 485 communication module uses ADUM2682, the CAN bus communication module uses TJA1050, the Ethernet communication module uses WIZnet's Ethernet interface chip W5500 as the Ethernet controller, the transformer chip in the Ethernet communication module circuit uses HX1188NL, and the resolver decoding chip uses AD2S1210; The control method of the pump oil-immersed permanent magnet synchronous motor drive controller adopts a mechanical sensor and a sensorless dual redundant speed current dual closed-loop servo control method. Under normal conditions, a rotary transformer is used to obtain the motor rotor position and motor speed for the motor speed dual closed-loop control. At the same time, a sensorless algorithm is also used to solve the rotor position and motor speed. The calculated position and speed are combined with the state information of the rotary transformer signal decoding circuit to determine the rotary transformer operation state. Once the rotary transformer is abnormal, the motor control system switches to the sensorless control state. In the control method of the oil-immersed permanent magnet synchronous motor drive controller for the pump, the 485 bus transmission, the CAN bus, and the Ethernet use a timing control method to control the timing of each communication; Ethernet communication uses MibSPI mode to implement Ethernet data time-sharing writing and aggregate transmission communication to reduce CPU computing load; The low-speed sensorless algorithm adopts the method of time-sharing injection of square wave voltage. The calculation cycle of vector control is twice the PWM chopping cycle, and the injected square wave voltage cycle is twice the PWM chopping cycle. In the 2kth PWM chopping cycle, a positive DC voltage is injected into the estimated d-axis, and in the 2k+1th PWM chopping cycle, a negative DC voltage is injected into the estimated d-axis. The Hall current sensor is used to detect the A and B two-phase stator currents. The fundamental current and high-frequency current of the motor are obtained through simple addition and subtraction calculations. The fundamental current is used for the current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize the sensorless control of the motor. The medium and high speed sensorless algorithm uses a sliding mode observer to estimate the alpha and beta axis back EMF of the motor to estimate the motor rotor position and motor speed; The weighted average method is used to achieve a smooth transition from low speed to medium and high speed; In the control method of the oil-immersed permanent magnet synchronous motor drive controller for the pump, the speed and current closed-loop control period in the motor vector control algorithm is 200us, the PWM chopping period is 100us, the period of injecting square wave voltage is 200us, the control drive software regularly updates the servo status information, when 485 communication is adopted, the number of servo status information bytes is ≥20, the data refresh period is 20ms, when CAN communication is adopted, the number of servo status information bytes is ≥100, the key status data of the system is transmitted back in a period of 50ms, and the remaining data is transmitted back in a period of 250ms, when Ethernet communication is adopted, the number of servo status information bytes is ≥100, the data refresh period is 100ms, and the timing of each communication is arranged in a timing control manner; In the control method of the pump oil-immersed permanent magnet synchronous motor drive controller, the triple-redundant CAN communication priority is set as follows: When the effective path is not determined, the determination order of the three CAN channels is CAN1>CAN2>CAN3; If the current valid channel does not receive valid data for 200ms or receives invalid data, the valid channel will be re-screened; If no valid data is received for 300ms, the CAN command is cleared; If no valid data is received for 3 consecutive seconds, a CAN communication fault will be reported; In the control method of the oil-immersed permanent magnet synchronous motor drive controller for the pump, MibSPI technology is used to reduce the occupation of Ethernet communication on the closed-loop control cycle. The communication process of MibSPI is as follows: After the communication starts, the SPI module is initialized to enhanced mode, then the MibSPI clock is initialized, the transmission group is allocated and initialized according to the amount of transmission data, MibSPI is started, and the process ends.

2. The control method of a pump oil-immersed permanent magnet synchronous motor drive controller according to claim 1, Features: In the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, the position and rotation speed calculated by the sensorless algorithm are combined with the fault pin output state of AD2S1210 to determine whether the resolver is abnormal.

3. The control method of a pump oil-immersed permanent magnet synchronous motor drive controller according to claim 2, Features: In the control method of the oil-immersed permanent magnet synchronous motor drive controller for a pump, The low-speed sensorless algorithm adopts the square wave voltage time-sharing injection method. The current sampling time point is set to the PWM center time. The calculation cycle of the vector control is twice the PWM chopping cycle. The injected square wave voltage cycle is twice the PWM chopping cycle. In the 2kth PWM chopping cycle, a positive DC voltage is injected into the estimated d-axis. In the 2k+1th PWM chopping cycle, a negative DC voltage is injected into the estimated d-axis. The Hall current sensor is used to detect the stator current of the A and B phases. The fundamental current and high-frequency current of the motor can be calculated through the high-frequency response current and fundamental current component expressions. The fundamental current is used for the current closed-loop control of the d-axis and q-axis, and the high-frequency current is used to extract the rotor position of the motor to realize the sensorless control of the motor. The Luenberger observer based on the heterodyne method is used to obtain the final observed rotor position and observed speed. The high frequency response current is obtained by the following formula: The fundamental current component is obtained by the following formula: In the formula, Δi αh , Δi βh It represents the difference between the high-frequency response current of the αβ axis at the previous moment and the next moment, i αh(2k+1) ,i αh(2k) ,i βh(2k+1) ,i βh(2k) represents the αβ axis high frequency response current at the 2k+1 and 2k moments, T represents the PWM chopping period, i α(2k+1) 、i β(2k+1) 、i αf(2k+1) 、i βf(2k+1) 、i α(2k) 、i β(2k) 、i αf(2k) 、i βf(2k) They represent the αβ axis current and fundamental current components at the 2k+1th and 2kth moments respectively.