A motor control system control parameter self-tuning device and its tuning method
By integrating a variety of communication modules and touch screen self-tuning devices into the motor control system, the d-axis and q-axis current loop parameters and speed loop parameters are automatically adjusted, solving the problem of self-tuning parameters of multiple permanent magnet synchronous motor control systems. , realizing efficient parameter synchronous self-tuning and adapting to control drivers of different interface types.
Patent Information
- Application Number
- CN202110770364.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-08
AI Technical Summary
It is difficult to realize the self-tuning of control parameters of multiple permanent magnet synchronous motors with the existing technology. In particular, it is difficult to adjust the q-axis current loop parameters, and the manual adjustment efficiency is low, and it cannot adapt to control drivers of different interface types at the same time.
A self-tuning device for control parameters of a motor control system is designed, which integrates a main control chip, a variety of communication modules and a touch screen. It automatically adjusts the d-axis and q-axis current loop parameters and speed loop parameters through a step-by-step tuning method to achieve positioning The sensor has automatic zeroing and parameter self-tuning, supports multi-node communication, and is adapted to control drivers of different interface types.
It realizes automatic zero adjustment of the position sensor, self-tuning of d-axis and q-axis parameters, and self-tuning of speed loop parameters, solves the problem of difficult adjustment of q-axis current loop parameters, and can self-tune the control parameters of multiple permanent magnet synchronous motor systems at the same time. Improved efficiency and adaptability.
Smart Images

Figure CN113595462B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of motor control, and in particular relates to a motor control system control parameter self-tuning device and a tuning method thereof. Background Art
[0002] Permanent magnet synchronous motors are widely used in aerospace and marine fields due to their advantages such as high power density, high efficiency and good controllability. Permanent magnet synchronous motor systems have the characteristics of multivariable, strong coupling and high-order nonlinearity. In the vector control of synchronous motors, different flux vectors can be selected as the oriented coordinate axis. There are usually three methods: rotor flux orientation, air gap flux orientation and stator flux orientation. Rotor flux orientation vector control is generally adopted. The basic principle of rotor flux orientation vector control is to use various coordinate transformations to divide the stator current of the motor into two components, the excitation current and the torque current, according to the rotor flux orientation. The two components are independent and perpendicular to each other, thereby realizing the decoupling of the stator current vector, and then adjusting each current component to control the electromagnetic torque and flux of the motor respectively, and then controlling the motor.
[0003] From the expression of the electromagnetic torque equation, it can be seen that when the permanent magnet ψ m And the AC-DC inductance L d and L q After the determination, the motor torque can be controlled by controlling the stator current. Figure 1 The speed and current dual closed-loop vector control method is shown.
[0004] To realize the magnetic field oriented control of permanent magnet synchronous motor, it is necessary to obtain the rotor position information and speed information of the motor. Common position sensors include photoelectric encoder, magnetic encoder, rotary transformer, Hall position sensor, etc. The sensor output signal is processed by the corresponding hardware circuit and converted into digital quantity and sent to the main control unit for PARK and anti-PARK transformation in vector control.
[0005] Depend on Figure 1 It can be seen that the control parameters in the permanent magnet synchronous motor vector control system mainly include speed loop parameters, dq axis current loop parameters and rotor initial position values.
[0006] Most of the existing parameter adjustment methods are based on manual adjustment, which requires repeated modification of parameters and programs, which is quite time-consuming and laborious. Moreover, when there are a large number of motors, manual adjustment of the motors is even more inefficient. In addition, for built-in permanent magnet synchronous motors with asymmetric dq axis parameters, the adjustment of the q axis parameters is a difficult problem, because when current is applied to the q axis, the motor will generate electromagnetic torque to make the motor rotate. At this time, the q axis current adjustment cannot be completed. It is necessary to improve the q axis current loop parameter adjustment method. Summary of the invention
[0007] The present invention provides a motor control system control parameter self-tuning device and a tuning method thereof, wherein a novel q-axis current regulation method is integrated therein, and the self-tuning of the q-axis current loop parameters can be completed conveniently, safely and efficiently. Meanwhile, the integrated multiple bus forms can meet the requirements of control drivers of different interface types, and the purpose is to solve the problem that the prior art cannot realize the self-tuning of the control system parameters of multiple permanent magnet synchronous motors at the same time.
[0008] The objective of the present invention is achieved through the following technical solutions:
[0009] A motor control system control parameter self-tuning device, comprising a main control chip TMS570LS1227, an RS232 serial communication module, a CAN communication module, an Ethernet communication module and a touch display screen, wherein the RS232 serial communication module, the CAN communication module and the Ethernet communication module are integrated inside the tuning device, and the touch display screen is integrated outside the tuning device;
[0010] The RS232 serial communication module, the CAN communication module, and the Ethernet communication module are independent of each other, and the CAN bus and Ethernet modules have multi-node communication capabilities.
[0011] The present invention also provides a method for adjusting the control parameter self-tuning device of a motor control system, which uses the above-mentioned motor control system control parameter self-tuning device and comprises the following steps:
[0012] S1, overshoot and adjustment time index setting;
[0013] S2, position sensor zero adjustment;
[0014] S3, d-axis current loop parameter setting:
[0015] S4, q-axis current loop parameter setting:
[0016] S5, speed loop parameter self-tuning:
[0017] At this point, the control parameter self-tuning of the permanent magnet synchronous motor is completed.
[0018] Furthermore, the control parameter self-tuning device sends a parameter self-tuning instruction to the control driver through the touch button on the display screen. The control driver executes a preset tuning program according to the received self-tuning instruction. Then the self-tuning device automatically tunes the parameters that meet the user's needs according to the return variable value of the control driver. After confirmation by the user, the parameters are automatically bound to the control driver.
[0019] Furthermore, in step S1, the overshoot and adjustment time index settings are achieved by selecting the corresponding function button K1, in which the overshoot and adjustment time of the d-axis current loop parameter setting, the overshoot and adjustment time of the q-axis current loop parameter setting, and the overshoot and adjustment time of the speed loop parameter setting can be set.
[0020] Further, in step S2, the position sensor is zeroed by selecting the corresponding function button K2. In the setting procedure, given A increases gradually from 0 with a step length of 0.005 until the read position sensor code value remains unchanged, and then the value is bound to the control driver as a compensation value.
[0021] Further, in step S3, the d-axis current loop parameter tuning is achieved by selecting the corresponding function button K3. In the tuning procedure, on the basis of the motor position sensor zeroing, the d-axis current loop parameter adjustment is firstly preset to 0 for the d-axis PID parameters KP_id and KI_id, the d-axis current loop is given a square wave with an amplitude of 0.2 and a frequency of 1 Hz, and then the angle value of the PARK / IPARK conversion is given to 0, and at the same time When the busbar is powered on, KP_id is gradually increased from 0 with a step size of 0.001 until the d-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, KI_id is gradually increased with a step size of 0.001 until the d-axis current meets the preset overshoot and adjustment time. At this time, the d-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0022] Further, in step S4, the q-axis current loop parameter tuning is achieved by selecting the corresponding function button K4. In the tuning procedure, after the motor position sensor is zeroed and the d-axis current loop parameter tuning and binding are completed, the following modifications are made based on the original state of the current loop vector control algorithm:
[0023] The AB phase current I obtained by sampling A ,I B , calculate the C phase current I C =-(I A +I B ), Clark transformation is performed using the following formula:
[0024]
[0025] Then, in the SVPWM generation module, Tb and Tc are interchanged, that is, the value calculated by Tb is used as the comparison value of the C-phase PWM wave, and the value calculated by Tc is used as the comparison value of the B-phase PWM wave;
[0026] Preset the q-axis PID parameters KP_iq and KI_iq to 0, the d-axis current loop given value to 0, the q-axis current loop given value to a square wave with an amplitude of 0.2 and a frequency of 1Hz. When the bus is powered on, KP_iq is gradually increased from 0 with a step size of 0.001 until the d-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, KI_iq is gradually increased with a step size of 0.001 until the q-axis current meets the preset overshoot and adjustment time. At this time, the q-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0027] Further, in step S5, the speed loop parameter self-tuning is realized by selecting the corresponding function button K5, and on the basis of the motor position sensor zeroing, the dq axis current loop parameter tuning and binding, the speed current dual closed-loop vector control algorithm remains unchanged;
[0028] Preset the speed loop PID parameters KP_speed and KI_speed to 0, and set the speed loop reference value to a square wave with an amplitude of 0.2 and a frequency of 0.1Hz. When the bus is powered on, KP_speed is gradually increased from 0 with a step size of 0.001 until the speed feedback reaches a fast rising state without overshoot, and the rise time is ≤0.2s. At this time, KI_speed is gradually increased with a step size of 0.001 until the speed feedback meets the preset overshoot and adjustment time. At this time, the speed loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0029] The beneficial technical effects achieved by the present invention are:
[0030] It can realize automatic zeroing of position sensors, self-tuning of d-axis and q-axis parameters, self-tuning of speed loop parameters, and synchronous self-tuning of control parameters of multiple permanent magnet synchronous motor systems with different interface types. It solves the problem of difficult adjustment of built-in motor q-axis current loop parameters and the problem that the existing technology cannot realize self-tuning of control system parameters of multiple permanent magnet synchronous motors at the same time, and has outstanding substantive characteristics and significant progress. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of the speed and current dual closed-loop vector control algorithm of the permanent magnet synchronous motor;
[0032] Figure 2 It is a schematic diagram of the connection between a setting device and a controlled system in one specific embodiment of the present invention;
[0033] Figure 3 It is a touch screen interface of one specific embodiment of the present invention;
[0034] Figure 4It is a control flow diagram of one specific embodiment of the present invention;
[0035] Figure 5 It is a connection diagram of a setting device and a plurality of control drivers in one specific embodiment of the present invention;
[0036] Figure 6 It is a block diagram illustrating the effectiveness of the q-axis parameter setting method in the present invention. DETAILED DESCRIPTION
[0037] 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.
[0038] like Figure 2 As shown, a specific embodiment of a control parameter self-tuning device for a permanent magnet synchronous motor includes a main control chip TMS570LS1227, an RS232 serial communication module, a CAN communication module, an Ethernet communication module and a touch display screen. The RS232 serial communication module, the CAN communication module and the Ethernet communication module are integrated inside the tuning device, and the touch display screen is integrated outside the tuning device.
[0039] In this specific embodiment, the RS232 serial communication module, the CAN communication module, and the Ethernet communication module are independent of each other, and the CAN bus and the Ethernet module have multi-node communication capabilities. The setting device can realize simultaneous self-setting of control parameters of multiple permanent magnet synchronous motor systems, which is more convenient and efficient.
[0040] like Figure 3 As shown, a touch screen interface of a specific embodiment includes a text box for inputting the number of controllers, a setting index setting button K1, a position sensor zeroing function button K2, a d-axis current loop parameter setting function button K3, a q-axis current loop parameter setting function button K4, a speed loop parameter setting function button K5 and a curve display window.
[0041] The control parameter self-tuning device of the permanent magnet synchronous motor sends the parameter self-tuning instruction to the control driver through the touch button on the display screen. The control driver executes the preset tuning program according to the received self-tuning instruction, and then the self-tuning device automatically tunes the parameters that meet the user's needs according to the return variable value of the control driver. After the user confirms, the parameters can be bound to the control driver by itself, such as Figure 4 As shown in the figure, the control parameter self-tuning is carried out in the following steps:
[0042] S1, overshoot and adjustment time index setting;
[0043] The overshoot and adjustment time index settings are achieved by selecting the corresponding function button K1, in which you can set the overshoot and adjustment time of the d-axis current loop parameter setting, the overshoot and adjustment time of the q-axis current loop parameter setting, the overshoot and adjustment time of the speed loop parameter setting and other indicators.
[0044] S2, position sensor zero adjustment:
[0045] This is done by selecting the corresponding function button. In the setting procedure, A increases gradually from 0 with a step length of 0.005 until the read position sensor code value remains unchanged, and then the value is bound to the control driver as a compensation value.
[0046] S3, d-axis current loop parameter setting:
[0047] It is realized by selecting the corresponding function button. Based on the zeroing of the motor position sensor, in the tuning program, for the adjustment of the d-axis current loop parameters, first preset the d-axis PID parameters KP_id and KI_id to 0, set the d-axis current loop to a square wave with an amplitude of 0.2 and a frequency of 1Hz, then set the angle value of the PARK / IPARK conversion to 0, and set When the busbar is powered on, KP_id is gradually increased from 0 with a step size of 0.001 until the d-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, KI_id is gradually increased with a step size of 0.001 until the d-axis current meets the preset overshoot and adjustment time. At this time, the d-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0048] S4, q-axis current loop parameter setting:
[0049] This is done by selecting the corresponding function button. In the tuning procedure, after the motor position sensor is zeroed, the d-axis current loop parameters are tuned and bound, the following modifications are made based on the original state of the current loop vector control algorithm:
[0050] The AB phase current I obtained by sampling A ,I B , calculate the C phase current I C =-(I A +I B ), the Clark transformation is performed using equation (1), that is, the positions of the B-phase and C-phase currents are interchanged, and then Tb and Tc are interchanged in the SVPWM generation module, that is, the value calculated by Tb is used as the comparison value of the C-phase PWM wave, and the value calculated by Tc is used as the comparison value of the B-phase PWM wave.
[0051]
[0052] Preset the q-axis PID parameters KP_iq and KI_iq to 0, the d-axis current loop given value to 0, the q-axis current loop given value to a square wave with an amplitude of 0.2 and a frequency of 1Hz, and turn on the bus. KP_iq gradually increases from 0 with a step size of 0.001 until the q-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, gradually increase KI_iq with a step size of 0.001 until the q-axis current meets the preset overshoot and adjustment time. At this time, the q-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0053] S5, speed loop parameter self-tuning:
[0054] This is achieved by selecting the corresponding function button. In the tuning procedure, after the motor position sensor is zeroed, the dq axis current loop parameters are tuned and bound, the speed current dual closed loop vector control algorithm is maintained. Figure 1 The status of the Central Plains remains unchanged.
[0055] Preset the speed loop PID parameters KP_speed and KI_speed to 0, and set the speed loop reference value to a square wave with an amplitude of 0.2 and a frequency of 0.1Hz. When the bus is powered on, KP_speed is gradually increased from 0 with a step size of 0.001 until the speed feedback reaches a fast rising state without overshoot, and the rise time is ≤0.2s. At this time, KI_speed is gradually increased with a step size of 0.001 until the speed feedback meets the preset overshoot and adjustment time. At this time, the speed loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are bound to the control driver.
[0056] At this point, the control parameter self-tuning of the permanent magnet synchronous motor is completed.
[0057] This specific embodiment can realize the synchronous self-tuning function of control parameters of multiple permanent magnet synchronous motor systems with different interface types. The specific connection scheme is as follows: Figure 5 shown.
[0058] The self-tuning device in this specific embodiment also has the following characteristics:
[0059] 1. The self-tuning device integrates multiple communication interfaces, including RS232, Ethernet port, CAN bus, etc., which can be adapted to different controllers for parameter tuning.
[0060] 2. The self-tuning device is equipped with a touch screen, which can display the motor rotor position, motor speed, d-axis current command, d-axis current feedback, q-axis current command, and q-axis current feedback in real time. On the other hand, touch buttons are set to complete the issuance of functional instructions and parameter confirmation such as motor position zeroing, d-axis current loop parameter tuning, q-axis current loop parameter tuning, and speed loop parameter tuning, with good human-computer interaction.
[0061] 3. Select the corresponding function button, and the self-tuning device can complete the parameter tuning under the condition of meeting the performance indicators such as overshoot and adjustment time according to the user's requirements, and display it.
[0062] 4. After each set of parameter adaptive tuning is completed and confirmed by the user, the self-tuning device can realize the parameter binding function and then continue to adjust the subsequent parameters;
[0063] 5. In Ethernet port and CAN bus mode, the self-tuning device can realize the self-tuning of multiple device parameters at the same time, which is convenient and efficient.
[0064] 6. The position sensor zeroing function can realize the position sensor code value compensation adjustment or code value zeroing alignment of multiple motors according to user selection.
[0065] In order to better understand the beneficial technical effects achieved by this specific embodiment, the effectiveness of achieving q-axis current loop parameter tuning by exchanging BC phases is derived as follows:
[0066] Normal motor three-phase stationary coordinate system, two-phase stationary coordinate system, three-phase rotating coordinate system Figure 6 shown.
[0067] Assume that the motor rotor position at this time is θ e Under normal circumstances, the q-axis current i q The components on the αβ axis are i α 、i β ,Right now At this time, the Clark transformation is performed according to equation (2). If the B and C phases are swapped, the Clark transformation is performed according to equation (1). The new αβ axis component i α1 、i β1 satisfy The resultant q-axis current i q1 and i q They are symmetrical about the α axis and have equal amplitudes.
[0068]
[0069] in i q1 Under the action of, the motor quickly pulls into the d-axis, at this time i q1 Parallel to the direction of the magnetic field, the motor achieves positioning.
[0070] satisfy The rotor position Because I q1 and i q The amplitudes are equal and can also be used to achieve q-axis current regulation. Compared with the traditional q-axis current regulation method, this method avoids motor stalling and is safer.
[0071] The final motor pull-in position is related to the motor initial position, which satisfies the nearest pull-in. The derivation method is similar to the previous one and will not be repeated here.
[0072] In summary, the beneficial technical effects achieved by this specific embodiment are:
[0073] It can realize automatic zeroing of position sensors, self-tuning of d-axis and q-axis parameters, self-tuning of speed loop parameters, and synchronous self-tuning of control parameters of multiple permanent magnet synchronous motor systems with different interface types. The new q-axis current regulation method integrated inside it can conveniently, safely and efficiently complete the self-tuning of q-axis current loop parameters, and solve the problem that the existing technology cannot realize the self-tuning of control system parameters of multiple permanent magnet synchronous motors at the same time, which has outstanding substantive characteristics and significant progress.
Claims
1. A method for adjusting a control parameter self-tuning device of a motor control system, It is characterized in that A motor control system control parameter self-tuning device is used, and the motor control system control parameter self-tuning device includes a main control chip TMS570LS1227, an RS232 serial communication module, a CAN communication module, an Ethernet communication module and a touch display screen, wherein the RS232 serial communication module, the CAN communication module and the Ethernet communication module are integrated inside the tuning device, and the touch display screen is integrated outside the tuning device; The RS232 serial communication module, CAN communication module, and Ethernet communication module are independent of each other, and the CAN bus and Ethernet modules have multi-node communication capabilities; The control parameter self-tuning device sends a parameter self-tuning instruction to the control driver through a touch button on the display screen. The control driver executes a preset tuning program according to the received self-tuning instruction. Then the self-tuning device automatically tunes the parameters that meet the user's needs according to the return variable value of the control driver. After the user confirms, the parameters are automatically loaded into the control driver. The tuning method of the motor control system control parameter self-tuning device comprises the following steps: S1, overshoot and adjustment time index setting; The overshoot and adjustment time index setting is realized by selecting the corresponding function button K1, in which the overshoot and adjustment time of the d-axis current loop parameter setting, the overshoot and adjustment time of the q-axis current loop parameter setting, and the overshoot and adjustment time of the speed loop parameter setting are set; S2, position sensor zero adjustment; The position sensor zeroing is achieved by selecting the corresponding function button K2. In the setting procedure, A increases gradually from 0 with a step length of 0.005 until the position sensor code value read remains unchanged, and then the value is loaded into the control driver as the compensation value; S3, d-axis current loop parameter setting: The d-axis current loop parameter tuning is achieved by selecting the corresponding function button K3. In the tuning program, on the basis of the motor position sensor zeroing, the d-axis current loop parameter adjustment is firstly preset to 0 for the d-axis PID parameters KP_id and KI_id, the d-axis current loop is given a square wave with an amplitude of 0.2 and a frequency of 1Hz, and then the angle value of the PARK / IPARK conversion is given to be 0, and at the same time When the busbar is powered on, KP_id is gradually increased from 0 with a step size of 0.001 until the d-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, KI_id is gradually increased with a step size of 0.001 until the d-axis current meets the preset overshoot and adjustment time. At this time, the d-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for the user to confirm and load the parameters into the control driver; S4, q-axis current loop parameter setting: The q-axis current loop parameter tuning is achieved by selecting the corresponding function button K4. In the tuning procedure, after the motor position sensor is zeroed and the d-axis current loop parameter tuning and loading are completed, the following modifications are made based on the original state of the current loop vector control algorithm: The AB phase current I obtained by sampling A ,I B , calculate the C phase current I C =-(I A +I B ), Clark transformation is performed using the following formula: Then, in the SVPWM generation module, Tb and Tc are interchanged, that is, the value calculated by Tb is used as the comparison value of the C-phase PWM wave, and the value calculated by Tc is used as the comparison value of the B-phase PWM wave; Preset the q-axis PID parameters KP_iq and KI_iq to 0, the d-axis current loop set value to 0, the q-axis current loop set value to a square wave with an amplitude of 0.2 and a frequency of 1Hz, apply bus power, and gradually increase KP_iq from 0 with a step size of 0.001 until the d-axis current reaches a rapid rise state without overshoot, and the rise time t≤0.2s. At this time, gradually increase KI_iq with a step size of 0.001 until the q-axis current meets the preset overshoot and adjustment time. At this time, the q-axis current loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for the user to confirm and load the parameters into the control driver; S5, speed loop parameter self-tuning: At this point, the control parameter self-tuning of the permanent magnet synchronous motor is completed.
2. A method for adjusting a control parameter self-tuning device of a motor control system according to claim 1, Features: In the step S5, the speed loop parameter self-tuning is realized by selecting the corresponding function button K5. On the basis of the motor position sensor zeroing, the dq axis current loop parameter tuning and loading, the speed and current dual closed-loop vector control algorithm remains unchanged; Preset the speed loop PID parameters KP_speed and KI_speed to 0, and set the speed loop reference value to a square wave with an amplitude of 0.2 and a frequency of 0.1Hz. When the bus is powered on, KP_speed is gradually increased from 0 with a step size of 0.001 until the speed feedback reaches a fast rising state without overshoot, and the rise time is ≤0.2s. At this time, KI_speed is gradually increased with a step size of 0.001 until the speed feedback meets the preset overshoot and adjustment time. At this time, the speed loop parameter adjustment is completed, and a dialog box pops up and the final step tracking curve is drawn for user confirmation and the parameters are loaded into the control driver.
Citation Information
Patent Citations
Permanent magnet synchronous motor rotary transformer zero position detection method and device
CN110798111A
