Control device for servo motor

Abstract: A control device for a servo motor comprises feedforward means for correcting a speed reference obtained by a position control device by a correction amount obtained on the basis of an objective position or an objective speed of the servo motor so that a response delay of the position control device for obtaining a reference speed necessary to control a rotation angle position of the servo motor to an objective rotation angle position is compensated for while restricting vibration.

Description: BACKGROUND OF THE INVENTION Field of the invention The present invention relates to a control device for a servo motor according to the preamble of claim 1 and 3, respectively. Description of the Prior Art In order to move a top portion of an industrial robot, such as an arm thereof, along a predetermined passage at a desired speed by a servo motor, it has been usual to control the servo motor on the basis of objective values of a position or angle to which the arm is to be settled, and a moving speed of the arm, which is obtained by calculations. In a conventional control device for driving such industrial robot, a positional deviation ΔP is obtained by integrating a difference Δω = ω* - ω m between a measured value ω m of rotational speed of the servo motor for driving a mechanical system composed of the arm, etc., and an objective rotational speed ω* thereof and a reference value ωp* of rotational speed of the servo motor at which the positional deviation ΔP becomes zero, is obtained in a position control device by multiplying a signal indicative of the positional deviation ΔP with a predetermined gain K i . Then, a reference torque value T* of the servo motor at which a difference between the reference speed value ωp* and the measured speed value ω m of the servo motor becomes zero, is obtained by a speed control device. An armature current i of the servo motor is regulated by a power converter on the basis of the reference torque T* to drive the mechanical system of the robot. Gains of respective control elements are regulated such that a dynamic characteristics of the mechanical system becomes optimum. In the case of a robot having multiple articulates, the moment of inertia of the arm around the root portion thereof is large due to the cantilever type of support structure, and the natural frequency of vibration becomes smaller, to facilitate vibration of the mechanical system comprising the arm, etc. In order to restrict such vibration, it has been usual to make the gain K i of the position control device smaller to thereby reduce the control response or to make time dependency of variation of the objective input ω* smaller. In the former solution, not only does the operation time of the mechanical system becomes longer, but also the positional deviation during operation increases, resulting in the accuracy of continuous interpolation for moving passage being lowered. O. Rubin, "The Design of Automatic Control Systems", Artech House Inc. 1986, describes a feedback control System that may be stabilized by a "lead predictor" having a feed-forward path for pole-zero cancelation. However the system according to this reference has a drawback in that it still can easily be brought into an unstable condition, when there is a ripple or the like in a feedback signal. This is due to the fact that the feed-forward component directly acts on the feedback signal. SUMMARY OF THE INVENTION An object of the present invention is to provide a control device for a servo motor by which vibration of a mechanical system to be driven by the servo motor is restricted while making the delay of the control response smaller and operating under stable condition. The above object can be achieved according to the present invention by the provision of a servo motor control device including the features of claim 1 or 3, respectively BRIEF DESCRIPTION OF THE DRAWING Fig. 1 is a block circuit diagram showing a first embodiment of a control device for a servo motor, according to the present invention; Fig. 2 is an explanatory block diagram for an operation of a feedforward element of the control device shown in Fig. 1; Fig. 3 is a graph showing a step response of the feedforward element of the control device shown in Fig. 1; Fig. 4 is a block circuit diagram of a second embodiment of the present control device; Fig. 5 is a block circuit diagram of a third embodiment of the present control device; Fig. 6 is an explanatory block diagram for an operation of a feedforward element of the device shown in Fig. 5; and Fig. 7 is a block circuit diagram of a fourth embodiment of the present control device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present control device is shown in Fig. 1. The control device according to this embodiment includes an adder 1, a position control device 2, a feedforward element 6, adders 8 and 9, a speed control device 10, a damper element 11 and a power converter 13. The adder 1 calculates a deviation Δω between an objective rotational speed value ω* and a measured speed value ω m of a servo motor 14 for driving a mechanical system 15 including an arm of a robot, etc. In the position control device 2, the deviation Δω obtained by the adder 1 is integrated to obtain a position deviation which is multiplied with a suitable gain K i to obtain a rotational speed reference value ω i of the servo motor 14 at which the position deviation becomes zero. In order to compensate for response delay of the position control device 2, a correction amount ω f for the reference value ω i of rotational speed of the servo motor 14 is obtained, at the same time, by the feedforward element 6 on the basis of the objective rotational speed value ω*. The transfer function G f (S) of the feedforward element 6 is represented by the following equation (1). G f (S) = (1 - K f + T f ·S)/(1 + T f ·S) (1) where S is a Laplace variable, K f is a coefficient satisfying 0 ≦ K f ≦ 1 and T f is a positive coefficient. A summation of the reference value ω i of rotational speed obtained by the position control device 2 and the correction amount ω f from the feedforward element 6 is performed in the adder 8, the result being used as a corrected reference rotational speed value ω p *. A deviation between the corrected reference value ω p * and the measured rotational speed value ω m of the servo motor 14 is obtained by the adder 9. On the basis of the deviation, a torque instruction Tp for the servo motor 14 at which the deviation becomes zero is obtained by the speed control device 10. On the other hand, the speed and acceleration of the robot arm of the mechanical system 15 are estimated by the damper element 11 on the basis of the corrected reference rotational speed value ω p * and the measured rotational speed ω m of the servo motor 14 and, then, on the basis of the estimations, a torque instruction T d for improving the damping characteristics of the robot arm is obtained by the damper element 11. A summation of the torque instruction T d and an output Tp of the speed control device 10 is performed by the adder 12, the output of which becomes a reference torque T* of the servo motor 14. On the basis of T*, an armature current i of the servo motor 14 is controlled by the power converter 13, so that the speed ω r of the robot arm of the mechanical system 15 is regulated to a desired value. In such control device as above, the compensation for response delay of control of the position control device 2 is performed as shown in Fig. 2. In Fig. 2, a reference numeral 19 shows a control loop from the adder 9 in Fig. 1 to the servo motor 14, which has a transfer function Q. A symbol G f shows a transfer function of the feedforward element 6. A transfer function Ωp*/Ω* from the aimed rotation speed ω* to a corrected reference rotation speed value ω p * can be represented as follows: Ω p */Ω* = (G f + K i /S)/(1 + K i ·Q/S) (2) where it is assumed that Q can be approximated to the following primary delay factor. Q = 1/(1 + T q ·S) (3) By inserting the equations (1) and (3) into the equation (2), the following is obtained: Ω p */Ω* = (K i +(1-K f +K i ·T f )S + T f ·S²)(1+T q ·S)/[(K i +S+T q S²)(1+T f ·S)] (4) Assuming T f = T q and K f = K i ·T f , the equation (4) can be written as: Ω p */Ω* = 1 (5) Therefore, by suitably selecting the feedforward element 6, the control response delay of the position control device 2 can be compensated for. A step response of the feedforward element 6 selected as above is shown in Fig. 3. From this step response, it is clear that a compensation of transient deviation of the primary delay system having an arbitrary time constant and adjustment of the normal feedforward amount are possible by suitably changing the coefficients T f and K f of the transfer function G f of the feedforward element 6 (cf. the equation (1)). For example, when K f = 1, only the transient deviation of the primary delay system can be compensated for. According to this embodiment in which the response delay of the position control element 2 can be compensated for by means of the feedforward element 6, it is possible to reduce the positional deviation and increase the control response speed. Further, with the feedforward element capable of not only compensating transient deviation of the primary delay system having an arbitrary time constant but also of arbitrarily setting the normal feedforward amount, it is possible to prevent overshoot due to excessive feedforward. In addition, it is possible to restrict undesired vibration by estimating the speed and acceleration of the robot arm to be driven by the servo motor and feedback-controlling it on the basis of the estimations. Although, in the first embodiment, the feedback control is performed by the damper element, the damper element can be substituted by any other means. Or, when the damping characteristics of the mechanical system itself are acceptable, such damper element can be omitted. Fig. 4 shows a second embodiment of the present invention. A control device according to the second embodiment includes an integrator 3, an adder 4, a position control device 5, a feedforward element 7, adders 8 and 9, a speed control device 10, a damper element 11, an adder 12 and a power converter 13. Since all components of the second embodiment except the integrator 3, the adder 4, the position control device 5 and the feedforward element 7 are the same as those shown in Fig. 1, details thereof are omitted for avoidance of duplication. The measured rotational speed value ω m of the servo motor 14 is integrated in the integrator 3 to obtain a rotation angle ϑ m of the servo motor 14, which is subtracted from the objective rotation angle ϑ* thereof in the adder 4 to obtain a positional deviation Δϑ therebetween. The positional deviation Δϑ thus obtained is multiplied with the gain K i by the position control device 5 and a reference rotational speed value ω i of the servo motor 14 at which the deviation Δϑ becomes zero is obtained. On the other hand, in order to compensate for the response delay of the position control device 5 on the basis of the objective rotation angle value ϑ*, a correction value ω f for the speed of the servo motor 14 with respect to the reference value ω i is obtained by the feedforward element 7. The transfer function G f (S) of the feedforward element 7 in this case becomes as follows: G f (S) = [S(1-K f +T f ·S)]/(1+T f ·S) (6) where K f is a coefficient satisfying 0 ≦ K f ≦ 1 and T f is a positive coefficient. A sum of the reference value ω i from the position control device 5 and the correction value ω f from the feedforward element 7 is obtained in the adder 8 as a corrected reference rotational speed value ω p *. Then, as in the first embodiment, the servo motor 14 is controlled through the speed control device 10, the damper element 11 and the power converter 13, on the basis of the corrected reference value ω p * and the measured speed value ω m . The response delay of the position control device 5 is also compensated for by the feedforward element 7 as in the same manner as described with reference to the first embodiment. According to the second embodiment, it is possible to reduce the positional deviation and speed-up the control response due to the fact that the response delay of the position control device 5 is compensated by the feedforward element 7. Further, since the feedforward element 7 compensates for a transient deviation of the primary delay system having an arbitrary time constant and makes the normal feedforward amount possible to set arbitrarily, it is possible to prevent overshoot due to an excess amount of feedforward from occurring. In addition, since the feedback control is performed by using estimated speed and acceleration of the robot arm, it is possible to prevent vibration from occurring. Fig. 5 shows a third embodiment of the control device for a servo motor. The embodiment includes outside the position control loop, a correction loop for correcting a position with respect to the objective position, which has means including an adder 21 and a coordinate transformer 22, for totally controlling an operation of a whole robot, and means including an adder 4, a position control device 5, a feedforward element 7, an adder 8, a speed control device 5 and a power converter 13, for controlling servo motors 14 of respective articulates of the robot, although Fig. 5 shows a construction for one articulate. A difference P er between a position P r of a tool of the robot and a desired work point P j with respect to a work is detected by a distance sensor 20 mounted on a top end of the robot and a deviation between the difference P er and an aimed position P o * obtained from a predetermined instruction data is obtained by an adder 21 as a corrected objective position P*. The corrected objective position P* is transformed into an objective rotation angle of an i-th servo motor of the servo motors 14 of the respective drive shafts of the robot and ϑ* is obtained as an objective rotation angle of the servo motor 14 of an i-th drive shaft. The measured rotational speed ω m of the servo motor 14 is integrated by the integrator 3 to obtain the measured rotation angle ϑ m which is processed by the adder 4 to obtain a deviation (ϑ* - ϑ m ) of it with respect to the objective value ϑ*. A resulting positional deviation is multiplied with a suitable gain K i by the position control device 5 so that a reference rotational speed ω i of the servo motor 14 at which the above positional deviation becomes zero is obtained. On the basis of the objective rotation angle ϑ*, a correction amount ω f for the reference rotational speed ω i of the servo motor 14 is obtained by the feedforward element 7 upon which the compensation of the response delay of the position control device 5 is realized. The transfer function G f (S) of the feedforward element 7 for this case is represented by the aforementioned equation (6). A sum of the reference rotational speed ω i from the position control device 5 and the correction amount ω f for the reference value ω i , which is provided by the feedforward element 7 is obtained by the adder 8 as a corrected reference rotational speed ω p *. A difference (ω p * - ω m ) between the corrected reference value ω p * and the measured rotational speed ω m of the servo motor 14 is obtained by the adder 9 and a torque instruction T* of the servo motor 14 at which the difference becomes zero is obtained by the speed control device 10. On the basis of this torque instruction T*, an armature current of the servo motor 14 is controlled by the power converter 13 to drive the mechanical system 15 of the robot. Fig. 6 shows how to compensate for the response delay of the position control device 5 in the construction shown in Fig. 5. In Fig. 6, a reference numeral 19 depicts the whole control elements effective in obtaining the rotational speed of the servo motor 14 from the output of the adder 8 in Fig. 5 and the control object, which has a transfer function Q. The transfer function of the feedforward element 7 is also depicted by G f . The transfer function Ω*/ϑ* from the reference rotation angle ϑ* to the corrected reference rotational speed ω p * can be represented as follows: Ω*/ϑ* = (K i + G f )/(1 + K i ·Q/S) (7) where it is assumed that Q can be approximated by the primary delay element such as shown by the equation (3). By using the equations (1) and (3) in the equation (7), it can be rewritten as follow: Ω*/ϑ* = [K i + (1-K f +K i ·T f )S + T f ·S²](1+T q ·S)·S/[(K i + S + T q ·S²)(1 + T f ·S)] (8) Assuming T f = T q and K f = K i ·T f , the equation (8) can be rewritten as follows: Ω*/ϑ* = S (9) Therefore, it is possible to compensate the response delay of the position control device 5 by suitably selecting the feedforward element 7. According to this embodiment by which the response delay of the control device 5 can be compensated for by the feedforward element 7 and in which the feedforward element allows a arbitrary setting of the normal feedforward amount, it is possible to reduce the positional deviation of the robot etc. to thereby shorten the control response for contour turning, to compensate for transient deviation of the primary delay system having an arbitrary time constant and to prevent overshoot due to excess feedforward. Fig. 7 shows a fourth embodiment of the present invention. A control device according to this embodiment corresponds substantially to the third embodiment shown in Fig. 5 having no coordinate transformer and is used in cases where a moving direction of a machine to be driven by a servo motor coincides with a detecting direction of a distance sensor. A distance sensor 23 mounted on a top end of a robot detects a distance between a position P r of a tool of the robot and a desired work point P j as a deviation which is converted into an angle deviation ϑ er corresponding to a rotation angle of the servo motor 14. A difference between the angle deviation ϑ er and an aimed rotation angle ϑ o * of the servo motor obtained by an instruction is obtained by an adder 24 to obtain a corrected aimed rotation angle ϑ*. Constructive components other than the distance sensor 23 and the adder 24 function similarly to the third embodiment shown in Fig. 5 and perform a contour turning control. Also, in this embodiment by which the response delay of the control device 5 can be compensated for by the feedforward element 7 and in which an output of the distance sensor 23 is input to the servo system without coordinate transformation, it is possible to reduce positional deviation to thereby quicker control response for contour turning, to simplify the construction of the control device and to reduce time delays due to the coordinate transformation.

Claims: A control device for a servo motor having position control means (2) for obtaining a reference speed (ω i ) necessary to control a rotational angle position of the servo motor (14) to an objective rotational angle position, the position control means (2) including an integrating component to obtain the reference speed (ω i ) on the basis of a speed deviation between an actual speed (ω m ) and an objective speed (ω*) of the servo motor (14), speed contol means (10) for obtaining a reference torque (T p ) necessary to reduce to zero a deviation between the actual speed (ω m ) of the servo motor (14) and the reference speed (ω i ) obtained by the position control means (2); and a power converter (13) for controlling an armature current of the servo motor (14) on the basis of the reference torque (T p ) obtained by the speed contol means (10) characterized by feedforward means (6) for obtaining a correction amount (ω f ) necessary to compensate for the response delay of the position control means (2), the feedforward means (6) functioning to obtain the correction amount (ω f ) on the basis of the objective speed (ω*) and having a transfer function G f (S) represented by the following equation G f (S)=(1-K f +T f ·S)/(1+T f ·S) wherein S is a Laplace variable, K f is a coefficient satisfying 0 ≦ K f ≦ 1 and T f is a positive coefficient, and correction means (8) for correcting the reference speed (ω i ) obtained by the position control means (2) by the correction amount (ω f ) obtained by the feedforward means (6), and for delivering a corrected reference speed (ω p *) to the speed contol means (10). The control device as claimed in claim 1, characterized by damper means (11) for obtaining a torque instruction (T d ) necessary to improve the damping characteristics of a mechanical system (15) as a load of the servo motor (14) on the basis of the corrected reference speed (ω p *) and the actual speed (ω m ) of the servo motor (14), and for correcting the reference torque (T p ) by the torque instruction (T d ). A control device for a servo motor having integration means (3) for obtaining a rotation angle (ϑ m ) of the servo motor (14) on the basis of an actual speed (ω m ) of the servo motor (14), position control means (5) for obtaining a reference speed (ω i ) necessary to control a rotational angle position (P er ) of the servo motor (14) to an objective rotational angle position, on the basis of an angle deviation between an objective angle (ϑ*) and the rotation angle (ϑ m ) for obtaining the reference speed (ω i ) at which an angle deviation between the objective rotation angle (ϑ*) and the rotation angle (ϑ m ) obtained by the integration means (3) reduces to zero, speed contol means (10) for obtaining a reference torque (T p ) necessary to reduce to zero a deviation between the actual speed (ω m ) of the servo motor (14) and the reference speed (ω p *) obtained by the position control means (2); and a power converter (13) for controlling an armature current of the servo motor (14) on the basis of the reference torque (T p ) obtained by the speed contol means (10) characterized by feedforward means (7) for obtaining a correction amount (ω f ) necessary to compensate for the response delay of the position control means (2), the feedforward means (6) functioning to obtain the correction amount (ω f ) on the basis of the objective rotation angle (ϑ*) and having a transfer function G f (S) represented by the following equation, G f (S)=S(1-K f +T f S)/(1+T f S) wherein S is a Laplace variable, K f is a coefficient satisfying 0 ≦ K f ≦ 1 and T f is a positive coefficient, and correction means (8) for correcting the reference speed (ω i ) obtained by the position control means (2) by the correction amount (ω f ) obtained by the feedforward means (6), and for delivering a corrected reference speed (ω p *) to the speed contol means (10). The control device as claimed in claim 3, characterized by damper means (11) for obtaining a torque instruction (T d ) necessary to improve the damping characteristics of a mechanical system (15) as a load of the servo motor (14) on the basis of the corrected reference speed (ω p *) and the actual speed (ω m ) of the servo motor (14), and for correcting the reference torque (T p ) by the torque instruction (T d ). The control device as claimed in claim 3, characterized by position deviation detection means (20) for detecting a position deviation between a position of a mechanical system (15) as a load of the servo motor (14) and a desired position thereof, and objective position correction means (21, 22) for correcting the objective rotational angle position of the servo motor (14) on the basis of the position deviation detected by the position deviation detection means (20). The control device as claimed in claim 5, characterized in that the objective position correction means includes; means (20, 21) for correcting the position of the mechanical system (15) by the position deviation detected by the position deviation detection means (20), and coordinate conversion means (22) for converting the corrected position into an objective rotation angle. The control device as claimed in claim 3, characterized by position deviation detection means (23) for detecting a rotation angle deviation on the basis of a positional deviation between a position of a mechanical system (15) as a load of the servo motor (14) and a desired position thereof, and objective position correction means (24) for correcting the position of the mechanical system (15) by the rotation angle deviation detected by the position deviation detection means (23).

Inventors: KUROSAWA RYOICHI, MURAKAMI SHIN, KUROSAWA, RYOICHI, MURAKAMI, SHIN
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1988
Main classification: G05B19
IPC codes: H02P29, B25J9, G05B19