MOTOR CONTROL DEVICE AND MOTOR CONTROL METHOD
The motor control device and method address speed limitation issues by calculating a speed command based on torque and a speed limit, ensuring stable and precise motor control with minimal overshoot, regardless of torque command direction.
Patent Information
- Application Number
- JP2020179897
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-27
- Filing Date
- 2020-10-27
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2040-10-27
AI Technical Summary
Existing motor control systems face issues with slow response, large speed overshoots, and unstable behavior due to the inability to effectively limit speed in both directions of the torque command, especially when the torque command is zero, leading to repeated overshoots and vibrations.
A motor control device and method that calculates a speed command based on the torque command and sets a speed limit using a speed deviation calculator and adder, allowing for speed limitation regardless of torque command polarity or direction, with a simple configuration that avoids the need for special control parameters.
The solution enables precise speed control with minimal overshoot and stable operation, allowing the motor to follow the torque command when speed is not limited, and supports both forward and reverse rotation without requiring complex parameter adjustments.
Smart Images

Figure 0007532207000001 
Figure 0007532207000002 
Figure 0007532207000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device and a control method for controlling the torque of a motor while limiting the motor speed based on a torque command and a speed limit command. [Background technology]
[0002] In the manufacture of paper, film, etc., tension control devices are used to improve quality by preventing wrinkles, sagging, etc. In controlling the unwinding motor with such tension control devices, the unwinding motor is driven with a constant torque according to the winding diameter to keep the tension constant.
[0003] In addition, in order to prevent the speed of the unwinding motor from increasing when the workpiece is cut, torque control with a speed limiting function is implemented. In the case of a spot welding servo gun, the workpiece is clamped with the welding tips of the electrode part of the welding gun, and pressure is applied by controlling the torque of the motor, and electricity is passed between the electrode tips to weld the workpiece.
[0004] Even with this type of welding gun, the gun is moved to the point just before contacting the object to be pressed using position control and speed control, and torque control with a speed limiting function is implemented to prevent excessive speeds from occurring and causing collision with the object to be pressed when switching to torque control.
[0005] An example of such torque control having a speed limiting function is disclosed in Patent Document 1.
[0006] Patent document 1 describes a motor control device that controls a motor based on external input, and includes a motor that rotates based on an applied voltage, a magnetic pole position sensor that detects the magnetic pole position of the motor, a speed calculation unit that calculates the rotational speed of the motor based on a position signal output by the magnetic pole position sensor, a conversion unit that converts the external input into a torque current command, a torque current correction unit that corrects the torque current command based on the motor's limit rotational speed and the motor rotational speed calculated by the speed calculation unit, a vector calculation unit that calculates a voltage command using the corrected torque current command, and an applied voltage creation unit that creates a voltage to be applied to the motor based on the voltage command.
[0007] However, in a method in which the torque command is corrected by the output of a torque current correction unit, it is necessary to output a torque current correction that cancels out the torque command when the speed is limited. When the torque command is large, the cancellation signal also becomes large, resulting in problems such as slow response and large speed overshoot. When operating near the speed limit, the speed limit control is turned on and off, causing repeated large overshoots and making the behavior unstable. Also, since only one speed limit command can be input, the speed can only be limited in the direction of the torque command. Furthermore, when the torque command is 0, the direction is not determined and so the speed cannot be limited.
[0008] Patent Document 2 is an example that solves the problems of only being able to limit the speed in the direction of the torque command as described above, and of not being able to limit the speed when the torque command is 0 because the direction is not determined.
[0009] Patent document 2 describes a motor control device that controls a motor that drives a driven object and presses the driven object against a pressurized object with a pressure corresponding to a target torque, and includes a speed controller that calculates a torque command for the motor and a regression torque for compensating for the torque command based on a speed detection value of the motor, and a regression torque controller that calculates a first speed command corresponding to the deviation between the target torque and the regression torque calculated by the speed controller, wherein the regression torque controller limits and outputs the calculated first speed command with a desired speed limit value determined based on the contact speed between the driven object and the pressurized object, and the speed controller calculates the torque command so that the speed detection value follows the first speed command output by the regression torque controller.
[0010] In the method of Patent Document 2, the speed limit value can be set for both the forward and reverse rotation sides of the motor, and the speed can be limited regardless of the polarity of the torque command, which solves the problems of only being able to limit the speed in the direction of the torque command, and of not being able to limit the speed when the torque command is 0 because the direction is not determined. However, in a method in which such a torque command is compared with the regression torque to calculate a speed command with a regression torque controller and compensates for the torque command for the motor (motor torque command), the motor torque command that matches the torque command cannot be generated unless the gain of the regression torque controller is made considerably high.
[0011] However, the regression torque control loop is composed of two controllers, a speed controller composed of a proportional-integral controller, and a regression torque controller also composed of a proportional-integral controller, and since the integral element is doubled, the control system is prone to become unstable, and when the control gain is increased, the regression torque oscillates. When the regression torque oscillates, the motor torque command also oscillates. For this reason, it is not possible to use a high gain, and there is a problem that only a motor torque slightly smaller than the torque command can be output.
[0012] In particular, increasing the proportional gain of the regression torque controller makes it prone to vibration, and since it is not possible to use it with the proportional gain increased, depending on the control parameters, recovery from the speed limit state may not work properly, making adjustments difficult and limiting the parameter range for stable operation to a narrow range.
[0013] In addition, since the integrator of the speed controller also functions as an integrator of the regression torque controller, if the torque command changes suddenly, the integrator of the speed controller also operates, resulting in problems such as large speed overshoot. In addition, when operating near the speed limit, the speed limit control is turned on and off, causing repeated large overshoots, resulting in unstable behavior. [Prior art documents] [Patent documents]
[0014] [Patent Document 1] JP 2003-33068 A [Patent Document 2] International Publication No. 2011 / 145366 Summary of the Invention [Problem to be solved by the invention]
[0015] The present invention has been made to solve the above-mentioned problems, and its object is to provide a motor control device and a motor control method which allow easy adjustment of control parameters, can limit the speed during torque control regardless of the polarity of the torque command or the direction of motor rotation, has small overshoot when the speed is limited, and can output motor torque according to the torque command when the speed limit is not reached. [Means for solving the problem]
[0016] The present invention provides a motor control device as follows.
[0017] A motor control device that controls a torque of a motor while limiting a speed based on a torque command and a speed limit command, The motor control device includes: a speed detection unit for detecting a speed of the motor; a speed limiting unit that calculates a speed command based on the torque command based on the torque command, and outputs a motor speed command that is limited by the speed command based on the torque command; the speed limiting unit includes a speed command calculation unit that calculates a speed command based on the torque command from the torque command, and a speed limiter that adds a speed limit based on the speed limit command to the speed command based on the torque command and outputs the motor speed command, The torque command-based speed command calculation unit includes a speed deviation calculator that calculates a speed deviation based on the torque command, and an adder that adds the speed deviation to the speed and outputs a speed command based on the torque command. A motor control device comprising:
[0018] The present invention also provides a motor control method as follows.
[0019] A motor control method for controlling a torque of a motor while limiting a speed based on a torque command and a speed limit command, comprising: Calculating a speed deviation based on the torque command; outputting a speed command based on a torque command by adding the speed deviation to the speed of the motor; a speed limit based on the speed limit command is added to a speed command based on the torque command to output a motor speed command; A motor control method comprising:
[0020] The motor control device and motor control method of the present invention can be implemented in various aspects as shown in the dependent claims of the appended claims, and these and other details and advantages will be described in detail in the detailed description of the embodiments of the invention described below. Effect of the Invention
[0021] With the above configuration, the present invention realizes speed limiting during torque control with a simple configuration in which a speed command based on a torque command is calculated based on the torque command using a method of performing reverse calculation of a calculation to calculate a motor torque command from a motor speed command in a speed control loop, a speed command based on the torque command is obtained by performing speed limiting, and the motor speed command is controlled based on the motor speed command. Therefore, it is possible to realize a motor control device that does not require special parameter adjustment, can limit the speed regardless of the polarity of the torque command or the rotation direction of the motor, has a small overshoot during speed limiting, and can output motor torque according to the torque command when the speed limit is not reached. [Brief description of the drawings]
[0022] [Figure 1] FIG. 1 is a block diagram illustrating one embodiment of a motor control device and method. [Diagram 2] FIG. 2 is a block diagram illustrating another embodiment of a motor controller and method. [Diagram 3] FIG. 3 is a graph showing a speed change simulation result of one embodiment (speed proportional control) of a motor control device and method. [Figure 4] FIG. 4 is a graph showing simulation results of speed change for another embodiment of the motor control and method (speed proportional-integral control). [Diagram 5] FIG. 5 is a graph showing a simulation result of a speed change in an operation example of a method for correcting a torque command. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] The following describes in detail the embodiments of the motor control device and method according to the present invention with reference to the drawings. Note that the scope of the present invention is not limited by the description of the embodiments, and any embodiment is included in the scope of the present invention as long as it falls within the technical scope of the invention according to each claim of the claims.
[0024] FIG. 1 illustrates one embodiment of a motor control device and method.
[0025] The motor control device A of the present invention, which controls the motor torque T of the motor M, is roughly composed of an encoder EN for determining the motor speed S, a differentiator Dif, a speed deviation calculator 1, an adder 2, a subtractor 3, a speed limiter 4, a speed controller 5, a motor torque controller 6, etc.
[0026] Here, the encoder EN and the differentiator Dif for determining the motor speed S together constitute a speed detection unit B that detects the motor speed S. Note that the components of the speed detection unit B are not limited to the encoder EN and the differentiator Dif, and may be any components that can detect the speed.
[0027] The speed deviation calculator 1 and the adder 2 constitute a speed command calculation unit C based on a torque command, and the speed command calculation unit C based on the torque command and the speed limiter 4 constitute a speed limiting unit D.
[0028] The motor control device A configured in this manner is externally given a torque command Tc for controlling the motor torque T of the motor M and a speed limit command Suc for limiting the motor speed S of the motor M, and the motor M is operated under the desired torque and a certain speed limit.
[0029] A desired torque command Tc given from the outside is input to a speed deviation calculator 1, which calculates and outputs a speed deviation Sd1 based on the torque command Tc.
[0030] The motor speed S output from the speed detection unit B is added to the speed deviation Sd1 based on the torque command Tc in the adder 2, and a speed command Sc based on the torque command is output. This speed command Sc based on the torque command is input to the speed limiter 4, which performs speed limitation based on a desired speed limit command Suc given from the outside, thereby calculating a motor speed command Smc. The speed of the motor M is controlled based on this motor speed command Smc.
[0031] Specifically, the motor speed S is obtained by differentiating the position signal generated by the encoder EN attached to the motor M with a differentiator Dif. A speed deviation Sd2 signal obtained by subtracting the motor speed command Smc and the motor speed S in a subtractor 3 is input to a speed controller 5, which calculates a motor torque command Tmc. Based on the motor torque command Tmc, a motor torque T according to the motor torque command Tmc is output from the motor M by a motor torque controller 6. The position rotated by the motor torque T output from the motor M is detected by the encoder EN, and a speed control loop is configured so that it coincides with the motor speed command Smc.
[0032] When the speed controller 5 is configured with a proportional controller and its gain is G, the calculation of the speed control loop is performed based on the following equations (1) and (2).
[0033] Motor speed command Smc - motor speed S = speed deviation Sd2 (1) Speed deviation Sd2 × proportional controller gain G = motor torque command Tmc (2)
[0034] From these two equations, the motor speed command Smc can be calculated backwards from the motor torque command Tmc as follows:
[0035] Speed deviation Sd2 = Motor torque command Tmc / Proportional controller gain G (3) Motor speed command Smc = Speed deviation Sd2 + Motor speed S (4)
[0036] In the present invention, first, a speed command Sc based on an externally applied torque command Tc is calculated using the relationship of the above equations (3) and (4).
[0037] Speed deviation based on torque command Sd1 = torque command Tc / G (5) Speed command based on torque command Sc = Speed deviation based on torque command Sd1 + Motor speed S (6)
[0038] Then, the speed command Sc based on the obtained torque command is subjected to speed limitation in the speed limiter 4 based on the speed limit command Suc to obtain the motor speed command Smc.
[0039] When the motor speed is controlled based on this motor speed command Smc,
[0040] Motor torque command Tmc = speed deviation Sd2 x G = (Motor speed command Smc - Motor speed S) x G
[0041] Here, when the speed limit is not applied, that is, when the speed command Sc based on the torque command is smaller than the speed limit command Suc, the motor speed command Smc=the speed command Sc based on the torque command.
[0042] Motor torque command Tmc = (speed command Sc based on torque command - motor speed S) x G = {(Speed deviation based on torque command Sd1 + motor speed S) -Motor speed {S}×G = (Speed deviation based on torque command Sd1) × G = Torque command Tc / G×G = Torque command Tc
[0043] The motor torque command Tmc coincides with the torque command Tc, and the motor M is torque-controlled based on this motor torque command Tmc.
[0044] When the speed limit is reached, that is, when the speed command Sc based on the torque command is equal to or greater than the speed limit command Suc, the motor speed command Smc becomes the speed limit command Suc, and the speed of the motor M is controlled based on the speed limit command Suc. Since the speed is limited only by adding the motor speed S to the speed deviation Sd1 based on the torque command, there is no torque control loop for realizing the speed limit above the speed control loop, and no special control parameters are required to configure the control loop.
[0045] In addition, the speed limit command Suc may be a single input that limits both the CW (clockwise rotation) side and the CCW (counterclockwise rotation) side, or two speed limit commands may be provided to limit the CW side and the CCW side independently.
[0046] Furthermore, the speed limit command Suc may determine the upper limit of the motor speed S based on a predetermined threshold value, a predetermined table value, a predetermined function value, etc. In this case, "predetermined" naturally includes the possibility of being arbitrarily determined, and further includes the possibility of being arbitrarily set at any time, such as when the motor control device A, etc. is manufactured, when it is tested, when it is shipped, when it is used, etc.
[0047] As described above, in the present invention, the speed command Sc based on the torque command is calculated based on the torque command Tc by inverse calculation of the calculation for calculating the motor torque command Tmc from the motor speed command Smc in the speed control system, the speed command Smc is obtained by performing speed limiting, and the motor torque command Tmc is calculated based on the motor speed command Smc.
[0048] Furthermore, even if the gain G of the speed controller 5 is low, when the speed is not limited, the motor torque command Tmc is calculated according to the torque command Tc and is not affected by the gain G of the proportional controller of the speed controller 5. The gain G of the speed controller 5 may be adjusted in the usual manner so that the speed loop is stable when controlling the speed of the motor M under normal operating conditions.
[0049] FIG. 2 illustrates another embodiment of a motor control device and method.
[0050] In this embodiment, in the motor control device and method shown in Fig. 1, in certain cases where resonance occurs in the mechanical system such as the motor M or the shaft and winding device connected thereto, a filter such as a notch filter NF or a low-pass filter LPF can be provided on the output side of the speed controller 5. In that case, the response to the torque command Tc will be reduced by the amount of the addition of a filter such as a low-pass filter LPF. The remaining configuration is the same as that of the first embodiment.
[0051] When the speed controller 5 is configured as a proportional controller, there is no overshoot. If the workpiece is cut during tension control by the motor M, the load torque is small due to only the rotational friction of the unwinding section, and even with proportional control, the error that occurs in the limited motor speed is small.
[0052] Two aspects have been described above, but depending on the application of the present invention, the load torque Tb of the load may be large, and a speed error may occur with respect to the speed limit command Suc, which is the load torque Tb divided by the speed control gain G.
[0053] In this case, the speed controller 5 is configured as a proportional-integral controller, which operates as a proportional controller when the speed limit is not reached, and activates the integral controller when the speed limit is reached. When the speed limit is reached, the influence of the load torque Tb is suppressed by the integral controller. However, since the value output from the integral controller is only a value that compensates for the load torque Tb, the compensation amount of the integral controller is small, and the overshoot of the motor speed is small.
[0054] In addition, when the load torque Tb is large and regeneration is also performed, the integral controller of the proportional-integral controller is turned off when the speed limit is reached during regeneration. Although a speed error occurs, this has the effect of preventing the integral controller from repeatedly turning on and off during regeneration, causing pulsation in the motor torque T.
[0055] 3 and 4 show simulation results of speed change for multiple aspects of motor control and its method, and Fig. 5 shows simulation results of speed change for an example of operation of a method for correcting a torque command. In each case, the vertical axis shows the magnitude of speed and the horizontal axis shows the passage of time. Both graphs are based on the same speed limit command Suc.
[0056] FIG. 3 shows the results when there is no load torque when time T is 0≦T≦0.25 in one embodiment of motor control and method thereof. In this time range, it appears that the speed is limited according to the setting of the speed limit command Suc. Also, in the range of 0.25≦T, the results are shown when there is a load torque. In this time range, as will be described later, a speed error occurs with respect to the speed limit command Suc, which is the load torque Tb divided by the speed control gain G. This example is merely an example, but in the case of 29.4 min -1 During powering, the voltage is limited to be lower by the amount of the error, and during regeneration, the voltage is limited to be higher by the amount of the error.
[0057] Jumping ahead to Fig. 5, an example of the operation of the method for correcting the torque command in Patent Document 1 is shown for comparison with the motor control and method described above. The results are shown for the case where there is no load torque when time T is 0≦T≦0.25. Also, the results are shown for the case where there is a load torque in the range of 0.25≦T. In any case of power running, when the speed rises, the torque command is increased by 290 min -1 , 265min -1 Also, when the torque command becomes 0 during regeneration, the speed is not limited. The reason for the large overshoot is that there is a time delay before a large canceling torque command is issued, since the speed is limited by a torque command output from the speed loop that is large enough to cancel the torque command.
[0058] Figure 4 shows the results of simulating speed changes in another embodiment of motor control and its method. In this embodiment, the speed controller is configured to perform proportional-integral control (PI control), and can operate as proportional control (P control) when the speed limit value is not reached, and when the speed limit is reached, the integral controller is enabled to perform speed proportional-integral control (PI control). This shows an example of operation of such a controller. The results are shown for a case where there is no load torque when time T is 0≦T≦0.25. In this time range, the integral controller operates when the speed limit is reached, but since torque cancellation is not performed, the speed remains constant for 30 min -1 The overshoot is limited to 0.25 T. Also, in the range of 0.25≦T, the results are shown assuming that there is a load torque. Even in this time range, an overshoot occurs because the integral controller operates when the speed limit is reached, but the amount of overshoot is considerably smaller than in the operation example of the method that corrects the torque command shown in Figure 5.
[0059] As described above, in all of the aspects of the present invention, it is possible to realize a motor control device that does not require any special parameter adjustment, can limit the speed regardless of the polarity of the torque command or the direction of motor rotation, has small overshoot when the speed is limited, and can output motor torque according to the torque command when the speed limit is not reached.
[0060] Each of the above-mentioned embodiments shows one embodiment of the present invention, and the present invention itself is not limited to the specific configurations shown by those embodiments. The scope of the present invention includes everything that a person skilled in the art can imagine based on the matters described in the claims. [Explanation of symbols]
[0061] M···Motor S Motor speed T Motor torque A Motor control device EN ···Encoder Dif...Differentiator 1...Speed deviation calculator 2 Adder 3. Subtractor 4. Speed limiter 5. Speed controller 6 Motor torque controller B Speed detection section C: Speed command calculation section based on torque command D Speed limiter Tc: Torque command Suc...Speed limit command Sd1, Sd2...Speed deviation Sc: Speed command based on torque command SMC: Motor speed command G: Speed controller gain Tmc: Motor torque command Tb: Load torque NF ···Notch filter LPF: Low-pass filter
Claims
1. A motor control device that controls the torque of a motor while limiting its speed based on an externally provided torque command and a speed limit command, comprising: The motor control device includes: a speed detection unit for detecting a speed of the motor; a speed limiting unit that calculates a speed command based on the torque command based on the torque command, and outputs a motor speed command that is limited by the speed command based on the torque command; the speed limiting unit includes a speed command calculation unit that calculates a speed command based on the torque command from the torque command, and a speed limiter that adds a speed limit based on the speed limit command to the speed command based on the torque command and outputs the motor speed command, the torque command-based speed command calculation unit includes a speed deviation calculator that calculates a speed deviation based on the torque command, and an adder that adds the speed deviation to the speed and outputs a speed command based on the torque command, a speed controller that calculates a motor torque command based on a speed deviation between the motor speed command and the speed of the motor; a motor torque controller for controlling a motor torque based on the motor torque command; A motor control device comprising:
2. 2 . The motor control device according to claim 1 , wherein the speed limit command is a command in which an upper limit of the speed of the motor is determined based on a predetermined threshold value, a predetermined table value, or a predetermined function value.
3. The motor control device according to claim 1 , wherein the speed controller has at least one of a proportional controller and a proportional-integral controller.
4. A motor control method for controlling a torque of a motor while limiting a speed based on a torque command and a speed limit command given from an external source, comprising: Calculating a speed deviation based on the torque command; outputting a speed command based on a torque command by adding the speed deviation to the speed of the motor; a speed limit based on the speed limit command is added to a speed command based on the torque command to output a motor speed command; calculating a motor torque command by a speed controller based on a speed deviation between the motor speed command and the speed of the motor; controlling a motor torque based on the motor torque command; A motor control method comprising:
5. 5. The motor control method according to claim 4, wherein the speed limit command is a command in which an upper limit of the speed of the motor is determined based on a predetermined threshold value, a predetermined table value, or a predetermined function value.
6. 6. The motor control method according to claim 4, wherein the speed controller performs proportional control during torque control and proportional-integral control during speed limiting.
Citation Information
Patent Citations
Complete follow-up servo system
JP1987212801A
Control device for driving of rotary machine for tension
JP1991045183A
Torque controller equipped with speed limiter function
JP1995010339A
Injection shaft control apparatus and method of electromotive injection molding machine
JP1997220740A
Motor controller and electric driver using it
JP2003033068A
