Control method and control device based on dynamic torque compensation
The control method and device improve robot accuracy and performance by predicting load conditions and inputting feedforward compensation values before the integral compensator, addressing inaccuracies in dynamic torque feedforward compensation.
Patent Information
- Application Number
- JP2020129350
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-07-30
- Publication Date
- 2024-08-19
- Estimated Expiration
- 2040-07-30
AI Technical Summary
Existing robot control methods using dynamic torque feedforward compensation face a risk of decreased calculation accuracy and position control performance due to inaccuracies in calculating current command values.
A control method and device that calculates load disturbance torque compensation by predicting the load condition from the position or speed command, using a feedforward compensation value input before the integral compensator to prevent errors and maintain accuracy, employing a transfer function with a non-zero constant term to ensure bounded steady-state gain.
Maintains calculation accuracy and position control performance by preventing integral value increases in the integral compensator, allowing for stable and accurate robot operation even with load-side disturbance torque.
Smart Images

Figure 0007535885000012 
Figure 0007535885000006 
Figure 0007535885000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a control method and a control device based on dynamic torque compensation, which are used for controlling the operation of industrial robots (hereinafter also referred to as "robots") and the like. [Background technology]
[0002] Generally, a robot has a plurality of axes, and the links of each axis are connected in series to form a manipulator. When a robot is moved at high speed, the tip of the manipulator is likely to vibrate, and an error occurs in the trajectory of the tip of the manipulator due to the interference force between the axes. In order to reduce the trajectory error of the tip of the manipulator, it is necessary to make the responsiveness of each axis to a position command the same regardless of the movement of the other axes. Patent Document 1 discloses that the driving torque of each axis is made close to the nominal torque of the axis itself by dynamic torque feedforward compensation, and the position control responsiveness of all axes is made the same. The technology described in Patent Document 1 includes a load state quantity calculation unit that calculates a load state quantity (position, velocity, and acceleration of the load) by inputting a position command value based on a transfer function from the position command value to the load speed, an inverse dynamics calculation unit that calculates a torque compensation value on the load side by inputting the calculated load state quantity, and a conversion unit that converts the torque compensation value into a current command value compensation value for offsetting the response from the disturbance torque on the load side to the load side speed, and the current command compensation value is added to the current command value in the robot control device. Here, the torque compensation value is expressed as the sum of the interference force from other axes and the torque fluctuation amount, which is the change from the nominal torque of the moment of inertia of the own axis due to the change in posture. Non-Patent Document 1 discusses in detail the dynamic torque feedforward compensation used in Patent Document 1 and others, and discloses a method for suppressing axial torsional vibration. Patent Document 2 explains, as an example of the application of dynamic torque feedforward compensation in a robot, a control that enables the robot to move flexibly when an unexpected disturbance force acts. Patent Document 2 also shows that an integral compensator for control deviation is provided in a normal motor position and speed control system. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 4008207 [Patent Document 2] Japanese Patent Application Publication No. 10-180663 [Non-patent literature]
[0004] [Non-Patent Document 1] Toshimasa Miyazaki, Sakae Otaki, Somsawath Thampataratanawong, Kiyoshi Oishi, “High-speed motion control method for industrial robots based on dynamic torque compensation and two-degree-of-freedom control system”, IEEJ Transactions on Electrical Engineering, Vol. 123, No. 5, 2003, pp. 525-532 Summary of the Invention [Problem to be solved by the invention]
[0005] In the control of a robot in which a current command value compensation value is calculated using dynamic torque feedforward compensation and the calculated current command value compensation value is added to a current command value as shown in Patent Document 1, there is a risk that position control performance will be lost due to a decrease in calculation accuracy when the robot repeats positioning.
[0006] An object of the present invention is to provide a control method and a control device used for controlling a robot or the like, which can maintain calculation accuracy and position control performance when performing dynamic torque feedforward compensation for load-side disturbance torque. [Means for solving the problem]
[0007] The present invention 1. The control method is input from outside. Position command value A control method for controlling a motor based on a step of calculating a position error, which is a difference between a position command value and a motor position, calculating a speed error, which is a difference between a speed command value based on the position error and the motor speed, and generating a current command value for the motor using at least the speed error; and a step of calculating a load disturbance torque compensation value, which is a compensation value for compensating for a load side disturbance torque input to the plant, by dynamic torque feedforward compensation; The load disturbance torque compensation value is set to compensate for the response from the load disturbance input to the load speed in the plant. , a speed command for compensating for the speed command valueConvert to compensation value The process of , Speed command The compensation value is Position command value From the input position electric A section until a flow command value is generated. speed Input to the summing point before the integral compensator of the deviation and the step of calculating the load disturbance torque compensation value is a step of predicting a load state from a position command value, and calculating a load disturbance torque compensation value by obtaining a sum of an interference force from another axis and a change in the moment of inertia of the own axis from a nominal torque based on the predicted load state. It is characterized by:
[0008] The present invention 1. According to the control method, in the control system speed The feedforward compensation value is added to the summing point before the integral compensator of the deviation. The speed command compensation value is By inputting the above, it is possible to prevent an error from being included in the feedforward compensation value and an increase in the integral value of the integral compensator, and it is possible to maintain the calculation accuracy and position control performance when compensating for the load side disturbance torque. The load disturbance torque compensation value can be calculated with high accuracy by calculating the load disturbance torque compensation value by finding the sum of the change from the nominal torque of the moment of inertia of the shaft itself based on the predicted load state. By using the speed command compensation value as the feedforward compensation value, the order of the transfer function used in the calculation can be lowered compared to the case of finding the feedforward compensation value corresponding to the position command value, so that the calculation load can be reduced.
[0009] In the first control method, the speed command compensation value can be input to the summing point by any one of adding the speed command compensation value to the speed command value, adding the speed command compensation value to the speed deviation, and subtracting the speed command compensation value from the motor speed. By inputting the speed command compensation value to the control system in this way, the input process of the speed command compensation value can be simplified.
[0010] A second control method of the present invention is a control method for controlling a motor based on a position command value input from outside, comprising the steps of: calculating a position error, which is the difference between the position command value and the position of the motor, and generating a current command value for the motor using at least the position error; calculating a load disturbance torque compensation value which is a compensation value for compensating for the load side disturbance torque input to the plant by dynamic torque feedforward compensation; converting the load disturbance torque compensation value into a position command compensation value that compensates for the position command value in order to offset the response from the load side disturbance input to the load side speed in the plant; and inputting the position command compensation value to a summing point located upstream of the position error integral compensator in the section from the input position of the position command value to the generation of the current command value in the control system, wherein the step of calculating the load disturbance torque compensation value is characterized in that it is a step of predicting a load state from the position command value, and calculating the load disturbance torque compensation value by calculating the sum of an interference force from another axis and a change in the moment of inertia of the own axis from nominal torque based on the predicted load state.
[0011] According to the second control method of the present invention, by inputting the position command compensation value, which is the feedforward compensation value, to a summing point that is located before the integral compensator of the speed deviation in the control system, it is possible to prevent the feedforward compensation value from containing an error and to prevent the integral value of the integral compensator from increasing, and it is possible to maintain calculation accuracy and position control performance when compensating for the load side disturbance torque. By calculating the load disturbance torque compensation value by finding the sum of the change from the nominal torque of the moment of inertia of the own shaft based on the predicted load state, it is possible to find the load disturbance torque compensation value with high accuracy. By using the position command compensation value as the feedforward compensation value, it is possible to perform dynamic torque feedforward compensation for the load disturbance torque even in a control system where compensation using the speed command value is difficult.
[0012] In the second control method, the input of the position command compensation value to the summing point can be performed by any one of adding the position command compensation value to the position command value, adding the position command compensation value to the position deviation, adding the position command compensation value to the position deviation multiplied by the proportional gain, and subtracting the position command compensation value from the motor position. By inputting the position command compensation value to the control system in this manner, the input process of the position command compensation value can be simplified.
[0013] In the first and second control methods, the transfer function used when converting the load disturbance torque compensation value into the feedforward compensation value (speed command compensation value, position command compensation value) is preferably a transfer function from the load side disturbance input to a summing point where the feedforward compensation value is input in the control system, and includes a non-zero constant term in the denominator. By using such a transfer function, it is possible to sufficiently compensate the load disturbance torque while maintaining the calculation accuracy and position control performance.
[0015] The present invention 1. The control device receives input from outside. Position command value A control device that generates a current command value based on the current command value and controls a motor included in a plant, A position controller that calculates a position error, which is the difference between a position command value and a motor position, a speed controller that calculates a speed error, which is the difference between a speed command value based on an output of the position controller and the motor speed, and generates a current command value using at least the speed error, and an integral compensator that performs integral action on the deviation; a load state calculation unit which predicts a load state from a position command value, and an inverse dynamics calculation unit which obtains a sum of an interference force from another axis and a change in the moment of inertia of its own axis from a nominal torque by calculating a dynamic torque feedforward compensation based on the predicted load state, and calculates a load disturbance torque compensation value which is a compensation value which compensates for a load side disturbance torque to be input to the plant; The load disturbance torque compensation value is set to compensate for the response from the load disturbance input to the load speed in the plant. , a speed command for compensating for the speed command value and a command conversion means for converting the command into a compensation value, Speed command The compensation value is In the speed controller It is characterized in that the signal is input to a summing point located before the integral compensator.
[0016] The present invention 1. According to the control device, a feedforward compensation value is added to a summing point located before the integral compensator of the control deviation in the control device. Speed command compensation value By inputting the above, it is possible to prevent an error from being included in the feedforward compensation value and an increase in the integral value of the integral compensator, and it is possible to maintain the calculation accuracy and position control performance when compensating for the load side disturbance torque. In addition, by providing a load state calculation unit and an inverse dynamics calculation unit, it becomes possible to accurately calculate the load disturbance torque compensation value. By using the speed command compensation value as the feedforward compensation value, the order of the transfer function used in the calculation can be lowered compared to the case of calculating the feedforward compensation value corresponding to the position command value, so that the calculation load can be reduced.
[0017] The first control device can include any one of an addition element that adds a speed command compensation value to a speed command value, an addition element that adds a speed command compensation value to a speed deviation, and a subtraction element that subtracts the speed command compensation value from the motor speed. With this configuration, the speed command compensation value can be easily input by adding the addition element or the subtraction element.
[0018] In the first control device, the speed controller may include a precompensator that receives the output of the position controller to generate a speed command value. By providing a precompensator and making the speed control system a two-degree-of-freedom control system, the speed responses of the axes can be matched, thereby improving, for example, the trajectory tracking characteristics of a robot.
[0019] A second control device of the present invention is a control device that generates a current command value based on a position command value input from an external source to control a motor included in a plant, and includes: a position and speed controller that calculates a position deviation, which is a difference between the position command value and a position of the motor, and generates a current command value using at least the position deviation; an integral compensator that performs an integral action on the position deviation; a load state calculation unit that predicts a load state from the position command value; an inverse dynamics calculation unit that calculates a load disturbance torque compensation value that is a compensation value that compensates for a load side disturbance torque input to the plant by calculating a dynamics torque feedforward compensation based on the predicted load state; and a command conversion means that converts the load disturbance torque compensation value into a position command compensation value that compensates for a position command value in order to offset a response from a load side disturbance input to a load side speed in the plant, and is characterized in that the position command compensation value is input to a summing point in the position and speed controller that is located before the integral compensator. .
[0020] According to the second control device of the present invention, by inputting the position command compensation value, which is the feedforward compensation value, to a summing point in the control device that is located before the integral compensator of the control deviation, it is possible to prevent the feedforward compensation value from containing an error and to prevent the integral value of the integral compensator from increasing, and it is possible to maintain calculation accuracy and position control performance when compensating for load side disturbance torque. In addition, by providing a load state calculation unit and an inverse dynamics calculation unit, it is possible to accurately determine the load disturbance torque compensation value. By using the position command compensation value as the feedforward compensation value, dynamic torque feedforward compensation for the load disturbance torque can be performed even when compensation using the speed command value is difficult.
[0021] The second control device can include any one of an addition element that adds a position command compensation value to a position command value, an addition element that adds a position command compensation value to a position deviation, and a subtraction element that subtracts a position command compensation value from a motor position. With this configuration, the position command compensation value can be easily input by adding the addition element or the subtraction element.
[0022] A third control device of the present invention is a control device that generates a current command value based on a position command value input from outside to control a motor included in a plant, and includes a position controller that calculates a position error, which is the difference between the position command value and the position of the motor, a speed controller that calculates a speed error, which is the difference between a speed command value based on an output of the position controller and the speed of the motor, and generates a current command value using at least the speed error, an integral compensator that performs an integral operation on the speed error, a load state calculation unit that predicts a load state from the position command value, an inverse dynamics calculation unit that calculates a load disturbance torque compensation value, which is a compensation value that compensates for the load side disturbance torque input to the plant, by calculating dynamics torque feedforward compensation based on the predicted load state, and a command conversion means that converts the load disturbance torque compensation value into a position command compensation value that compensates for the position command value in order to offset the response from the load side disturbance input to the load side speed in the plant, and an adder element that adds the position command compensation value to the output of the position controller, and the output of the adder element is input to the speed controller.
[0023] According to the third control device of the present invention, by inputting a position command compensation value, which is a feedforward compensation value, to a summing point in a stage preceding the integral compensator of the control deviation in the control device, it is possible to prevent an error from being included in the feedforward compensation value and an increase in the integral value of the integral compensator, and it is possible to maintain calculation accuracy and position control performance when compensating for the load side disturbance torque. Also, the position command compensation value can be input to the summing point (i.e., the adding element) in the rear stage from the output of the position controller.
[0024] In the first to third control devices, the transfer function used when the command conversion means converts the load disturbance torque compensation value into the feedforward compensation value (speed command compensation value, position command compensation value) is preferably a transfer function from the load side disturbance input to the summing point where the feedforward compensation value is input in the control device, and includes a non-zero constant term in the denominator. By using such a transfer function, it is possible to sufficiently compensate the load disturbance torque while maintaining the calculation accuracy and position control performance. Effect of the Invention
[0025] As described above, the present invention provides a control method and a control device that can maintain calculation accuracy and position control performance when performing dynamic torque feedforward compensation for load side disturbance torque. [Brief description of the drawings]
[0026] [Figure 1] 1 is a block diagram showing a control device according to a first embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a conventional control device that generates a current command compensation value by dynamic torque feedforward compensation. [Diagram 3]FIG. 4 is a block diagram showing a modified example of the control device of the first embodiment. [Figure 4] FIG. 4 is a block diagram showing another modified example of the control device of the first embodiment. [Diagram 5] FIG. 4 is a block diagram showing still another modified example of the control device of the first embodiment. [Figure 6] FIG. 4 is a block diagram showing a control device according to a second embodiment of the present invention. [Figure 7] FIG. 11 is a block diagram showing a modified example of the control device of the second embodiment. [Figure 8] FIG. 11 is a block diagram showing another modified example of the control device of the second embodiment. [Figure 9] FIG. 11 is a block diagram showing yet another modified example of the control device of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] Next, preferred embodiments of the present invention will be described with reference to the drawings. Fig. 1 shows a block diagram of a control device according to a first embodiment of the present invention, and shows the configuration of each axis of a robot in the control device. This control device is used to control the position of the plant 50 based on an input position command value, assuming that a plant 50 consisting of a motor 53 and a load (link or arm) 59 is configured for each axis of the robot, and is roughly divided into a position controller 10 that receives a position command value and outputs a command based on a position deviation, a speed controller 20 that determines a speed command based on a command based on the position deviation, calculates a speed deviation, and outputs a current command value, and a dynamic torque compensation value calculation unit 40 that performs dynamic torque feedforward compensation to calculate a feedforward compensation value.
[0028] First, a description will be given of a plant 50 that is an object to be controlled by the control device. The illustrated plant 50 is expressed as a two-inertia resonant system consisting of a motor 53 and a load 58. A reduction ratio of R g The spring constant of the reducer is Ks In the figure, J m and D m are the moment of inertia and viscous friction resistance of the motor 53, respectively, and J L and D L are the moment of inertia and viscous friction resistance of the load 58, respectively. It is assumed that a load-side disturbance torque is also applied to the load 58. The load-side disturbance torque includes interference from other axes and a contribution due to a change from the nominal torque of the moment of inertia of the own axis accompanying a change in posture. Explaining this using the block diagram shown in FIG. 1, the current command value is expressed by the torque constant K t The torque is converted to torque by gain element 51, and the output from reduction element 62 corresponding to the reduction gear is subtracted by subtraction element 52 and added to motor 53. In the figure, the output of motor 53 is motor speed, which is converted to motor position by integral element 54. The output of motor 53 is converted to motor position by reduction element 55 corresponding to the reduction gear, subtraction element 56, integral element 60, and spring constant K s The output of the gain element 61 is passed through a gain element 61 corresponding to the load side disturbance torque, which is added by an adding element 57, and is applied to a load 58. The load speed, which is the output of the load 58, becomes a load side position through an integral element 59. The output of the gain element 61 is input to a subtraction element 62. The subtraction element 56 subtracts the load speed from the output of the deceleration element 55.
[0029] Next, the control device of this embodiment will be described in detail. A position command value is input to the position controller 10, and the motor position is also fed back. The position controller 10 includes a subtraction element 11 that subtracts the motor position from the position command value to calculate a position deviation, and a proportional gain K pp and a gain element 12 which multiplies the signal by a value obtained by multiplying ...
[0030] The speed controller 20 receives the motor speed, a command based on the position deviation from the position controller 10, and a speed command compensation value from a dynamic torque compensation value calculation unit 40. The dynamic torque compensation value calculation unit 40 and the speed command compensation value will be described later. The speed controller 20 includes a precompensator 21 that receives a command based on the position deviation and outputs a speed command, an addition element 31 that adds the speed command from the precompensator 21 and the speed command compensation value, a subtraction element 22 that subtracts the motor speed from the output of the addition element 31 and outputs a speed deviation, and a speed gain K v A gain element 23 multiplies the speed deviation by 1, an integral element 24 receives the speed deviation, and an integral gain K i and an addition element 26 that adds the output of the gain element 23 and the output of the gain element 25. The addition element 31 is a summing point for inputting a speed command compensation value. The speed controller 20 further comprises a state observer 27 to which the motor speed is input, a filter 28 provided at the output of the state observer 27, and a subtraction element 29 that subtracts the output of the filter 28 from the output of the addition element 26 to obtain a current command value. The gain elements 23, 25 and the integral element 24 are provided, and the transfer function combining these is (K v s+K i ) / s, the speed controller 20 performs PI (proportional-integral) control. The integral element 24 and the gain element 25 form an integral compensator for the speed deviation, which is a control deviation. The speed controller 20 also performs control by state feedback based on the state observer 27, and the subtraction element 29 subtracts a value by state feedback from the control amount by PI control to obtain a current command value. As is clear from general control theory, without integral compensation, it is not possible to make the motor position coincide with the position command value due to disturbances, so it is necessary to provide the integral element 24 or an integral compensator in the section from the calculation of the position deviation to the output of the current command value as PI control.
[0031] The precompensator 21 has, for example, a biquadratic (FF(s)) characteristic, and is provided to configure a vibration suppression control system by combining a PI control system and a state feedback control system as described in Non-Patent Document 1. By adopting a two-degree-of-freedom control system structure, the speed response of each axis is matched, improving the trajectory tracking characteristic of the robot. The precompensator 21 is not necessarily provided, and may have characteristics other than biquadratic depending on the configuration of the plant 50. When the precompensator 21 is not provided, a command based on the position deviation from the position controller 10 may be treated as a speed command.
[0032] Next, the dynamic torque compensation value calculation unit 40 will be described. The dynamic torque compensation value calculation unit 40 includes a load state calculation unit 41 that receives a position command value and calculates a predicted value of the load state, an inverse dynamics calculation unit 42 that generates a load disturbance torque compensation value from the load state predicted value, and a speed command conversion unit 43 that converts the load disturbance torque compensation value into a speed command compensation value. The speed command compensation value is one of the feedforward compensation values for offsetting the response from the input of the load side disturbance torque to the load side speed in the plant 50. Assuming that dynamic compensation is performed in the position closed loop of each axis in the robot and interference from other axes is completely canceled out, the load state calculation unit 41 receives a position command value as an input and calculates a transfer function W of the system from the position command value to the load speed. r Based on (s), the state of the load 58, i.e., the position, velocity and acceleration of the load, is calculated. The inverse dynamics calculation unit 42 is a part that actually performs calculations for dynamic torque feedforward compensation, and calculates the interference force from the other axes and the torque fluctuation amount, which is the change from the nominal torque of the moment of inertia of its own axis due to a change in posture, and calculates a load disturbance torque compensation value as the sum of the interference force from the other axes and the torque fluctuation amount. The calculations performed by the inverse dynamics calculation unit 42 are described in, for example, Patent Document 1 and Non-Patent Document 1.
[0033] The load disturbance torque compensation value output by the inverse dynamics calculation unit 42 corresponds to the load side disturbance torque applied to the plant 50. In this embodiment, the speed command conversion unit 43 converts the load side disturbance torque to a speed command using a transfer function Vtm Based on (s), the load disturbance torque compensation value is converted into a speed command compensation value to be added to the speed command value to cancel the change in the load side speed due to the load side disturbance torque. According to the control device of this embodiment, a speed command compensation value that cancels the change in the load side speed due to the load side disturbance torque is added to the speed command, and a current command value is generated based on the state feedback and the compensated speed command to drive the motor 53 and move the load 58, thereby reducing the influence of the load side disturbance torque and, for example, reducing the trajectory error of the tip of the manipulator. In this first embodiment, the speed command compensation value is generated by dynamic torque feedforward compensation, so the compensation method for the disturbance torque in the first embodiment is called a speed command compensation method.
[0034] In the control device of the first embodiment, the decrease in calculation accuracy and the loss of position control performance are prevented when the robot repeats positioning. Hereinafter, how the decrease in calculation accuracy and the loss of position control performance are prevented in the control device of this embodiment will be described. In the control device shown in FIG. 1, the transfer function V between the input of the load side disturbance torque and the input of the speed command, which is used by the speed command conversion unit 43 when converting the load disturbance torque compensation value into a speed command compensation value, is tm (s) is determined as shown in the following formula (1). In formula (1), a v0 ~a v5 ,b v0 ~b v3 is a parameter determined by the plant 50, etc. Here, b v0 ≠0.
[0035]
number
[0036] The important thing to note about equation (1) is the nonzero constant term b v0 As a result, in the limit where s → 0, the transfer function V tm (s) does not diverge. That is, the transfer function V tm The steady-state gain of (s) is bounded. Note that the transfer function Vtm (s) does not necessarily take the form shown in equation (1) depending on the configuration of the plant 50 and the configuration of the predistorter 21, and the order of s in both the numerator and denominator may differ from that shown in equation (1). However, in a feedback control system from the compensation value input to the load side speed, as long as the integral element 24 for PI control is included in the forward element from the compensation side input to the load side speed, the transfer function V tm The constant term in the denominator of (s) is a constant multiple of the gain of the integral compensator and is nonzero.
[0037] FIG. 2 shows the configuration of a control device described in Patent Document 1 or Non-Patent Document 1, which generates a current command compensation value by dynamic torque feedforward compensation. A plant 50, which is a control target of this control device, is the same as the plant 50 shown in FIG. 1. The control device shown in FIG. 2 generates a current command compensation value instead of the speed command compensation value in the control device shown in FIG. 1, so that a current command conversion unit 49 is provided instead of the speed command conversion unit 43 in the dynamic torque compensation value calculation unit 40, and an addition element 39 is provided instead of the addition element 31 that adds the speed command compensation value to the speed command value. The addition element 39 is provided between the speed controller 20 and the plant 50, and adds the current command compensation value to the current command value output by the speed controller 20. The current command conversion unit 49 is a transfer function T m Based on (s), the load disturbance torque compensation value is converted to a current command compensation value to be added to the current command value in order to cancel the load side disturbance torque. At this time, the transfer function T m (s) is determined as shown in the following formula (2). In formula (2), a t0 ~a v5 ,b t1 ~b t3 is a parameter determined by the plant 50, etc.
[0038]
number
[0039] Comparing equation (1) and equation (2), in equation (1), the transfer function V tm The denominator of the equation expressing (s) contains a nonzero constant term b s0 In contrast, in equation (2), the transfer function T m There is no nonzero constant term in the denominator of the equation expressing (s). m (s) does not converge but diverges in the limit of s → 0. That is, the transfer function T m The steady-state gain of (s) is unbounded. The transfer function T m The reason why the steady-state gain of (s) is not bounded is that in the feedback control system from the compensation value input to the load side speed, the integral compensator (integral element 24 and gain element 25) is included in the feedback elements from the load side speed to the addition point of the compensation value input, so the constant multiple of the gain of the integral compensator does not appear as a constant term in the denominator. The fact that the steady-state gain of the transfer function is not bounded can cause a decrease in calculation accuracy or a loss of position control performance in a control device such as that shown in Figure 2 when a robot repeats positioning.
[0040] If the steady-state gain is not bounded, the state variable (integral value) in the current command conversion unit 49 increases every time the robot repeats a positioning operation. When the robot is stopped and gravity is not acting in the direction of rotating the joints of the robot, the disturbance torque should be 0, and therefore the current command compensation value from the current command conversion unit 49 should also be 0. Here, if the current command compensation value does not become 0 because the steady-state gain is not bounded, this current command compensation value becomes a disturbance for the position control system. To suppress this disturbance, the integral value of the integral compensator (integral element 24 and gain element 25) of the control deviation is increased in the speed controller 20. The value of the state variable inside the current command conversion unit 49 and the integral value of the integral compensator of the speed controller 20 are held using a finite number of bits in the software that realizes the control device. Therefore, if the value of the state variable or the integral value increases, it may cause a decrease in calculation accuracy, saturation of the control signal, overflow, etc., and ultimately a state in which the position control performance cannot be exhibited.
[0041] In contrast, in the control device of the present embodiment shown in FIG. 1, the transfer function V tm (s) includes the contribution of an integral compensator provided in the speed controller 20, and has a bounded steady-state gain. Therefore, unlike the control device shown in FIG. 2, the disturbance torque compensation value when the robot is stopped is 0, the speed command compensation value is also 0, and the state variable (integral value) in the speed command conversion unit 43 does not increase. Also, an increase in the integral value of the integral compensator in the speed controller 20 is prevented. As a result, in the control device of this embodiment, even when the positioning operation of the robot is repeated, there is no decrease in calculation accuracy, saturation or overflow of the control signal, and the like, and the position control performance is maintained.
[0042] The control device of the first embodiment, which is a speed command compensation method, is not limited to the one shown in Fig. 1. Fig. 3 shows the main part of a modified example of the control device of the first embodiment. The device shown in Fig. 3 is basically the same as that shown in Fig. 1, but the order of arrangement of the subtraction element 22 for determining the speed deviation and the addition element 31 for adding the speed command compensation value is opposite to that shown in Fig. 1. Naturally, even if the order of arrangement of the addition element 31 and the subtraction element 22 is reversed, the transfer function is equivalent, and the control device shown in Fig. 4 can obtain the same effect as the control device shown in Fig. 1.
[0043] Fig. 4 shows the main part of another modified example of the control device of the first embodiment. In the control device shown in Fig. 4, compensation is performed by a speed command compensation value on the motor speed before it is input to the subtraction element 22 that calculates the speed deviation. Since the motor speed is subtracted from the speed command in calculating the speed deviation, a subtraction element 33 is provided that subtracts the speed command compensation value from the motor speed, and the output of the subtraction element 33 is added to the subtraction element 22 instead of the motor speed. The subtraction element 33 is also included in the summing point for inputting the speed command compensation value. This configuration is equivalent to the one shown in Fig. 1 in terms of transfer function, and has the same effect as the control device shown in Fig. 1.
[0044] FIG. 5 shows the main part of another modified example of the control device of the first embodiment. This control device is obtained by removing the precompensator 21 from the control device shown in FIG. 3, and a command based on the position deviation output from the gain element 12 of the position controller 10 is directly supplied as a speed command to a subtraction element 22 that calculates a speed deviation. In the control device shown in FIG. 5, the order of arrangement of the subtraction element 22 that calculates the speed deviation and the addition element 31 that adds the speed command compensation value may be reversed from that shown in FIG. 1. Even if the precompensator 21 is not provided, the effect of the present invention can be achieved by using dynamic torque feedforward compensation by the speed command compensation method. The transfer function V tm (s) is a transfer function from the input of the load disturbance torque to the input of the subtraction element 22, and is expressed as the following equation (3). Compared with equation (1), the influence of not providing the biquadratic precompensator 21 appears, and the order of both the numerator and denominator is reduced by 2. v0 ≠0.
[0045]
number
[0046] Next, a control device according to a second embodiment of the present invention will be described. The control device according to the first embodiment described above generates a speed command compensation value by dynamic torque feedforward compensation as a speed command compensation method, and performs compensation for the speed command value and speed deviation. However, the present invention is not limited to this, and also includes generating a position command compensation value by dynamic torque feedforward compensation as a position command compensation method and performing compensation based on this. Like the speed command compensation value, the position command compensation value is also included in the category of feedforward compensation values. Below, a control device using a position command compensation method will be described as the control device according to the second embodiment.
[0047] 6 shows a control device according to a second embodiment of the present invention. In this control device, instead of providing the position controller 10 and speed controller 20 in the control device according to the first embodiment, a position and speed controller 15 is provided that generates a current command value based on a position error and state feedback. The position and speed controller 15 comprises a subtraction element 11 that subtracts the motor position from the position command value to obtain and output a position error, an integral element 24 to which the position error is input, and an integral gain K i The dynamic torque compensation value calculation unit 40 includes a gain element 25 which multiplies the output of the gain element 25 by a current command value, a state observer 27 to which the motor speed is input, a filter 28 provided at the output of the state observer 27, and a subtraction element 29 which subtracts the output of the filter 28 from the output of the gain element 25 to obtain a current command value. The dynamic torque compensation value calculation unit 40 includes a position command conversion unit 44 in place of the speed command conversion unit 43 in the first embodiment. The position command conversion unit 44 converts a transfer function P tm Based on (s), the load disturbance torque compensation value is converted into a position command compensation value to be added to the position command value in order to cancel the load side disturbance torque. An addition element 32 is provided on the input side of the position and speed controller 15 for adding the position command compensation value to a position command value given from the outside, and the position command value to which the position command compensation value has been added in the addition element 32 is given to the subtraction element 11 in the position and speed controller 15. The addition element 32 is a summing point for inputting the position command compensation value.
[0048] 6, a position command compensation value that cancels the load-side disturbance torque is added to the position command, and a current command value is generated based on the state feedback and the compensated position command to drive the motor 53 and move the load 58. This reduces the influence of the load-side disturbance torque, and can reduce, for example, the trajectory error of the tip of the manipulator. tm (s) is determined as shown in the following formula (4). In formula (4), a p0 ~a p7 ,b p0 ~b v5 is a parameter determined by the plant 50, etc. Here, bp0 ≠0.
[0049]
number
[0050] In equation (4), there is also a nonzero constant term b p0 exists, and in the limit where s → 0, the transfer function P tm (s) does not diverge. In the control device of this embodiment, the transfer function P tm In (s), a constant multiple of the gain of the integral compensator appears as a constant term in the denominator, and it has a bounded steady-state gain. Therefore, unlike the control device shown in FIG. 2, the position command compensation value when the robot is stopped is 0, and an increase in the state variable (integral value) in the position command conversion unit 44 is prevented. Also, an increase in the integral value of the integral compensator in the position and speed controller 15 is prevented. As a result, in the control device of this embodiment, even when the positioning operation of the robot is repeated, a decrease in calculation accuracy, saturation of the control signal, overflow, etc. do not occur, and position control performance is maintained.
[0051] The control device of the second embodiment, which is a position command compensation method, is not limited to that shown in FIG. 6. FIG. 7 shows the main part of a modified example of the control device of the second embodiment. The device shown in FIG. 7 is basically the same as that shown in FIG. 6, but the order of arrangement of the subtraction element 11 for determining the position deviation and the addition element 32 for adding the position command compensation value is opposite to that shown in FIG. 7, and the addition element 32 is incorporated in the position speed controller 15. Naturally, even if the order of arrangement of the addition element 32 and the subtraction element 11 is reversed, the transfer function is equivalent, and the control device shown in FIG. 7 can obtain the same effect as the control device shown in FIG. 6.
[0052] Fig. 8 shows the main part of another modified example of the control device of the second embodiment. In the control device shown in Fig. 8, in the position speed controller 15, compensation is performed by the position command compensation value on the motor position before it is input to the subtraction element 11 that calculates the position deviation. Since the motor position is subtracted from the position command in calculating the position deviation, a subtraction element 34 is provided that subtracts the position command compensation value from the motor position, and the output of the subtraction element 34 is added to the subtraction element 11 instead of the motor position. The subtraction element 34 is also included in the summing point for inputting the position command compensation value. This configuration is equivalent to the one shown in Fig. 6 in terms of transfer function, and has the same effect as the control device shown in Fig. 6.
[0053] FIG. 9 shows the main part of a further modified example of the control device of the second embodiment. The control device shown in FIG. 9 shows how compensation is performed using a position command compensation value when a position controller 10 and a speed controller 20 are provided as in the first embodiment, and a precompensator 21 is provided in the speed controller 20. A precompensator 21 is provided between the output of the position controller 10 and the input of the speed controller 20. pp In this case, the transfer function P used in the position command conversion unit 44 is tm (s) is the input of the disturbance torque on the load side speed Since the transfer function is a transfer function up to the input of the controller 20 and the predistorter 21 is included in the path of the transfer function, the order of the transfer function is different from the order of the transfer function in the control device shown in Fig. 6. In the control device shown in Fig. 9, the position of the addition element 32 for adding the position command compensation value can be on the input side instead of the output side of the position controller 10. In that case, the transfer function P tm (s) is the proportional gain K pp The only difference is whether or not it includes the above. The control device shown in Fig. 9 also performs compensation based on the position command compensation value generated by the dynamic torque feedforward compensation, so that it is possible to obtain the same effect as the control device shown in Fig. 6.
[0054] As described above, the control device of each embodiment of the present invention controls the plant 50 based on a position command value, calculates a load disturbance torque compensation value by dynamic torque feedforward compensation, and converts the load disturbance torque compensation value into a feedforward compensation value (speed command compensation value or position command compensation value) for performing compensation at a summing point (any of the addition elements 31 and 32 and the subtraction elements 33 and 34) located on the input side of the position command value from the control deviation integral compensator for performing PI control in the control system. To convert the load disturbance torque compensation value into a feedforward compensation value, a transfer function from the input of the load side disturbance torque to the summing point where compensation by the feedforward compensation value is performed is used. Since this transfer function includes a non-zero constant term in its denominator, for example, when compensating for the load side disturbance torque by dynamic torque feedforward compensation for the purpose of reducing the trajectory error of the tip of a manipulator of a robot, an increase in the integral value in the control deviation integral compensator is prevented, and the feedforward compensation value becomes 0 when the robot stops operating. As a result, the control device shown in each embodiment can maintain the calculation accuracy and position control performance.
[0055] For example, when a control device based on the present invention is applied to an articulated robot for transportation, when the mass of the transported object is changed, the inverse dynamics calculation unit 42 can calculate the torque fluctuation value by changing the moment of inertia of the robot's hand. This makes it possible to control the articulated robot more easily and stably than by changing the nominal value of the moment of inertia of the position control system.
[0056] The robot targeted by the control device according to the present invention is not limited to a robot with two or more axes, and may be a robot with one axis. From the viewpoint of a robot with one axis and a position command value being given, for example, a single-axis belt conveyor is also included in the category of a single-axis robot, and the speed of the transported object on the belt of the belt conveyor can be treated as the speed of the tip of the manipulator. That is, the present invention can also be used to compensate for disturbance torque in a single-axis servo amplifier. If the control method according to the present invention is applied to a single-axis belt conveyor, when the load inertia varies due to loading and unloading of the transported object, the fluctuation of the inertia force for accelerating the moment of inertia in the control and the thrust for accelerating the actual moment of inertia are set as the load side force compensation value, and the load side force compensation value is converted into a speed command compensation value for offsetting the response from the load side external force to the load side speed, and is added to the speed command value. This makes it possible to control the single-axis belt conveyor more easily and stably than by switching the nominal value of the moment of inertia of the position control system. [Explanation of symbols]
[0057] 10...position controller, 15...position speed controller, 20...speed controller, 21...precompensator, 27...state observer, 28...filter, 40...dynamic torque compensation value calculation unit, 41...load state calculation unit, 42...inverse dynamics calculation unit, 43...speed command conversion unit, 44...position command conversion unit, 49...current command conversion unit, 50...plant, 53...motor, 58...load.
Claims
1. A control method for controlling a motor based on a position command value input from an external source, comprising the steps of: calculating a position error, which is a difference between the position command value and a position of the motor, calculating a speed error, which is a difference between a speed command value based on the position error and a speed of the motor, and generating a current command value for the motor using at least the speed error; A step of calculating a load disturbance torque compensation value which is a compensation value for compensating for a load side disturbance torque input to a plant by dynamic torque feedforward compensation; converting the load disturbance torque compensation value into a speed command compensation value that compensates the speed command value to offset a response from a load side disturbance input to a load side speed in the plant; inputting the speed command compensation value to a summing point located upstream of an integral compensator for a speed deviation in a section from an input position of the position command value to a position where the current command value is generated in a control system; having a load disturbance torque compensation value calculating step of calculating a load disturbance torque compensation value by predicting a load state from the position command value, and calculating the load disturbance torque compensation value by obtaining a sum of an interference force from another axis and a change in a moment of inertia of the own axis from a nominal torque based on the predicted load state.
2. 2. The control method according to claim 1, wherein a transfer function used when converting the load disturbance torque compensation value into the speed command compensation value is a transfer function from the load side disturbance input to the summing point where the speed command compensation value in the control system is input, and includes a non-zero constant term in a denominator.
3. 3. The control method according to claim 1, wherein the input of the speed command compensation value to the summing point is performed by any one of adding the speed command compensation value to the speed command value, adding the speed command compensation value to the speed deviation, and subtracting the speed command compensation value from the speed of the motor.
4. A control method for controlling a motor based on a position command value input from an external source, comprising: calculating a position deviation, which is a difference between the position command value and a position of the motor, and generating a current command value for the motor using at least the position deviation; A step of calculating a load disturbance torque compensation value which is a compensation value for compensating for a load side disturbance torque input to a plant by dynamic torque feedforward compensation; converting the load disturbance torque compensation value into a position command compensation value that compensates the position command value to offset a response from a load side disturbance input to a load side speed in the plant; inputting the position command compensation value to a summing point located upstream of an integral compensator for a position deviation in a section from an input position of the position command value to a section where the current command value is generated in a control system; having a load disturbance torque compensation value calculating step of calculating a load disturbance torque compensation value by predicting a load state from the position command value, and calculating the load disturbance torque compensation value by obtaining a sum of an interference force from another axis and a change in a moment of inertia of the own axis from a nominal torque based on the predicted load state.
5. A control method as described in claim 4, wherein a transfer function used when converting the load disturbance torque compensation value into the position command compensation value is a transfer function from the load side disturbance input to the summation point where the position command compensation value in the control system is input, and includes a non-zero constant term in the denominator.
6. 6. The control method according to claim 4, wherein the input of the position command compensation value to the summing point is performed by any one of adding the position command compensation value to the position command value, adding the position command compensation value to the position deviation, adding the position command compensation value to a product of the position deviation multiplied by a proportional gain, and subtracting the position command compensation value from the position of the motor.
7. A control device that generates a current command value based on a position command value input from an external device and controls a motor included in a plant, a position controller that calculates a position deviation that is a difference between the position command value and a position of the motor; a speed controller that calculates a speed deviation, which is a difference between a speed command value based on an output of the position controller and a speed of the motor, and generates the current command value using at least the speed deviation; an integral compensator that performs an integral action on the speed deviation; a load state calculation unit for predicting a load state from the position command value; an inverse dynamics calculation unit that obtains a sum of an interference force from another axis and a change in the moment of inertia of the axis from a nominal torque by calculating dynamic torque feedforward compensation based on the predicted load state, and calculates a load disturbance torque compensation value that is a compensation value for compensating for a load side disturbance torque to be input to the plant; a command conversion means for converting the load disturbance torque compensation value into a speed command compensation value for compensating the speed command value in order to offset a response from a load side disturbance input to a load side speed in the plant; having 2. A control device, comprising: a speed command compensation value input to a summing point in the speed controller, the summing point being located in a stage preceding the integral compensator.
8. 8. The control device according to claim 7, wherein a transfer function used when the command conversion means converts the load disturbance torque compensation value into the speed command compensation value is a transfer function from the load side disturbance input to the summing point where the speed command compensation value is input in the control device, and includes a non-zero constant term in a denominator.
9. 9. The control device according to claim 7, further comprising any one of an adding element that adds the speed command compensation value to the speed command value, an adding element that adds the speed command compensation value to the speed deviation, and a subtracting element that subtracts the speed command compensation value from the speed of the motor.
10. 10. The control device according to claim 7, wherein the speed controller includes a precompensator that receives an output value of the position controller and generates the speed command value.
11. A control device that generates a current command value based on a position command value input from an external source and controls a motor included in a plant, a position and speed controller that calculates a position deviation, which is a difference between the position command value and a position of the motor, and generates the current command value using at least the position deviation; an integral compensator that performs an integral action on the position error; a load state calculation unit for predicting a load state from the position command value; an inverse dynamics calculation unit that obtains a sum of an interference force from another axis and a change in the moment of inertia of the axis from a nominal torque by calculating dynamic torque feedforward compensation based on the predicted load state, and calculates a load disturbance torque compensation value that is a compensation value for compensating for a load side disturbance torque to be input to the plant; a command conversion means for converting the load disturbance torque compensation value into a position command compensation value for compensating the position command value in order to offset a response from a load side disturbance input to a load side speed in the plant; having 2. A control device comprising: a position command compensation value inputted to a summing point in a front stage of the integral compensator in the position and speed controller.
12. A control device as described in Claim 11, wherein a transfer function used when converting the load disturbance torque compensation value into the position command compensation value in the command conversion means is a transfer function from the load side disturbance input to the summation point where the position command compensation value is input in the control device, and includes a non-zero constant term in the denominator.
13. 13. The control device according to claim 11, further comprising: an addition element that adds the position command compensation value to the position command value; an addition element that adds the position command compensation value to the position deviation; and a subtraction element that subtracts the position command compensation value from a position of the motor.
14. A control device that generates a current command value based on a position command value input from an external source and controls a motor included in a plant, a position controller that calculates a position deviation that is a difference between the position command value and a position of the motor; a speed controller that calculates a speed deviation, which is a difference between a speed command value based on an output of the position controller and a speed of the motor, and generates the current command value using at least the speed deviation; an integral compensator that performs an integral action on the speed deviation; a load state calculation unit for predicting a load state from the position command value; an inverse dynamics calculation unit that obtains a sum of an interference force from another axis and a change in the moment of inertia of the axis from a nominal torque by calculating dynamic torque feedforward compensation based on the predicted load state, and calculates a load disturbance torque compensation value that is a compensation value for compensating for a load side disturbance torque to be input to the plant; a command conversion means for converting the load disturbance torque compensation value into a position command compensation value for compensating the position command value in order to offset a response from a load side disturbance input to a load side speed in the plant; an adding element that adds the position command compensation value to an output of the position controller; having The control device according to claim 1, wherein the output of said summing element is input to said speed controller.
15. A control device as described in Claim 14, wherein a transfer function used when converting the load disturbance torque compensation value into the position command compensation value in the command conversion means is a transfer function from the load side disturbance input to the addition element, and includes a non-zero constant term in the denominator.
Citation Information
Patent Citations
Controller for robot arm
JP1998180663A
Robot controlling method and device
JP2002331477A
Motor position control device
JP2008310603A
Position control device
JP2011152006A
Motor control system, control method for motor control system, and robot system
JP2018196266A
