SLIDING MODE CONTROL METHOD WITH FEEDFORWARD COMPENSATION FUNCTION

Abstract: A sliding mode control method with feedforward compensation function which realizes control response adapted to varying system parameters and which always normalizes the operation quantity added to the control object. Position deviation (ε), speed deviation (ε), estimated maximum and minimum inertias (Jmax, J0), estimated maximum and minimum gravity loads (GRmax, GRmin), switch-over variable (s), integration element (∫( ε + C.ε)), the second differential (Θr) of an instructed position, and an actual speed (Θ) are periodically calculated based upon the instructed position (Θr), an actual position (Θ), inertia data and gravity load data (100 to 102, 104, 107, 110, 114, 117, 120, 123, 127). Based upon a switch-over quantity (T1) obtained by adding up five terms calculated depending on positive or negative sign of the switch-over variable, position deviation, integration element, second differential and actual speed, a proper torque instruction (T) is periodically calculated as an operation quantity even when nonlinear system parameters such as inertia are changed (105, 106, 108, 109, 111 to 113, 115, 116, 118, 119, 121, 122, 124 to 126, 128 to 131).

Description: The present invention relates to a sliding mode control method with a feedforward compensation function. A conventional control system for controlling the operation of a robot, machine tool, etc. is generally arranged to carry out proportional-plus-integral control using a fixed gain. In this case, if a system parameter greatly varies, the response characteristic of the control system is likely to become maladapted. In this respect, sliding mode control, etc. have recently been proposed. The conventional sliding mode control, however, entails a drawback such that a steady-state deviation from a control target value is likely to occur. If the conventional sliding mode control is applied to a control system, which is provided with a feedforward compensation function for improvement of the control response characteristic, the manipulated variable (control input to a controlled object) is likely to become maladapted to the operating state of the controlled object, due to a compensation effect of a feedforward term associated with a nonlinear parameter (e.g., inertia, dynamical friction force, or gravitational term of the robot), when the nonlinear system parameter varies. If the manipulated variable is maladaptive, the controlled variable to be adjusted to a target value oscillates around the target value. In other words, an energy loss occurs in the controlled object. For example, the torque command (manipulated variable) supplied to the controlled object including a servomotor as a drive source oscillatorily varies with a change of the nonlinear parameter. Thus, a driving current flowing through the servomotor periodically becomes excessive, thereby heating the motor. According to the conventional method neglecting a variation of the nonlinear system parameter in determining the manipulated variable as described above, the manipulated variable is likely to become maladaptive, causing inconveniences. The object of the present invention is to provide a sliding mode control method with a feedforward compensation function, which is capable of achieving a control response characteristic adapted to varying system parameters, and of permitting a manipulated variable which affects a controlled object to be kept to an appropriate value. The present invention thereby aims to improve upon known sliding control methods such as that disclosed in the article "Tracking Control of Robot Manipulators Using Sliding Mode" contained in IEEE Transactions on Power Electronics Vol. PE-2, No. 2, April 1987. According to the present invention there is provided a sliding mode control method with a feedforward compensation function, comprising the step of: (b) calculating a manipulated variable which permits a characteristic of a control system to be converged on a switching plane, in accordance with a preselected value of an operation parameter representative of an operating state of a controlled object and a preselected value of a nonlinear system parameter which varies in dependence on the operating state of the controlled object; and wherein said step (b) includes steps of: (b1) periodically detecting a command position, actual position, inertia data, and gravity load data; (b2) periodically calculating a position deviation and speed deviation, on the basis of the command position and actual position thus detected; and (b3) periodically calculating the manipulated variable on the basis of the periodically calculated position deviation and speed deviation, and said detected inertia data and gravity load data; characterised in that: step (b2) further comprises periodically calculating a predicted maximum inertia, predicted minimum inertia, predicted maximum gravity load and predicted minimum gravity load on the basis of said detected inertia data and gravity load data; and in step (b3) the periodic calculation of the manipulated variable is effected on the basis of the periodically calculated predicted maximum inertia and periodically calculated predicted minimum inertia, and on the basis of the periodically calculated predicted maximum gravity load and periodically calculated predicted minimum gravity load. According to the present invention, as described above, when the sliding mode control with the feedforward compensation function is carried out, a manipulated variable which permits the characteristic of the control system to be converged on the switching plane is calculated in accordance with the detected value of the operation parameter, which represents the operating state of the controlled object, and the detected value of the nonlinear system parameter, which varies in dependence on the operating state of the controlled object. Accordingly, control stability achieved by the sliding mode control and control response characteristic achieved by the feedforward compensation function can be enjoyed. Moreover, it is possible to eliminate the maladaptation of the manipulated variable which would be otherwise likely to be caused due to the feedforward compensation effect associated with the nonlinear parameter when the nonlinear parameter varies. This makes it possible to reduce an energy loss in the controlled object. Brief Description of the Drawings Fig. 1 is a block diagram showing a servomotor control system to which a sliding mode control method of an embodiment of the present invention is applied; Fig. 2 is a schematic block diagram illustrating, by way of example, a digital servo control system for embodying the sliding mode control method of the present invention; and Figs. 3A to 3C are flowcharts showing a sliding mode control process executed by the digital servo circuit shown in Fig. 2. A control system to which a sliding mode control method according to an embodiment of the present invention is applied is mounted, e.g., to a robot having a plurality of links, and comprises servomotor control systems which correspond in number to robot operating axes and one of which is shown in Fig. 1. The control system is arranged to control the drive of each link with respect to an associated one or more operating axes by means of one or more control systems associated therewith. Referring to Fig. 1, each servomotor control system comprises a first transfer element 10 associated with a position control loop and having a proportional gain of Kp. In the transfer element 10, the difference (position deviation) ε between a command position r and an output from a fourth transfer element 16 representing an actual position  is multiplied by the proportional gain Kp to produce a command speed, and the command position r is differentiated in a first feedforward term 18. A feedforward output is added to the difference (speed deviation) between the command speed and an actual speed  ˙, whereby a feedforward compensation for speed is effected. Then, a torque command corresponding to the sum of the speed deviation and the first feedforward term output is obtained in a second transfer element 12 associated with a speed loop for carrying out proportional-plus-integral control and having integral and differential gains of Ks and Kp', respectively. Further, the output of the first feedforward term 18 is differentiated in a second feedforward term 20, and also the product of the result of the differentiation and the inertia J of the link concerned is obtained. The output of the second feedforward term is added to the torque command from the second transfer element 12, whereby a feedforward compensation for acceleration is effected. A driving current corresponding to the compensated torque command (hereinafter referred to as torque command T) is supplied to a servomotor indicated by a third transfer element 14, such that the servomotor is rotated at the speed . A sliding mode control method according to one embodiment of the present invention will now be described. If the inertia, dynamical friction, and gravity load are considered as nonlinear system parameters, a relationship given by equation (1) is fulfilled in the control system of Fig. 1. Also, relationships given by equations (2) to (4) are fulfilled between the position deviation ε, command position r, and actual position . J ·  + A ·  + GR = T ε = r -  ε =  r -  ε =  r -  where A and GR represent a coefficient of dynamical friction and an equivalent torque (hereinafter referred to as gravity load) of the gravity load, respectively. Further,  ˙,  ˙r and ε ˙ represent first differentials of , r and ε, respectively, and  ¨,  ¨r and ε ¨ represent second differentials of , r and ε, respectively. If a switching variable (switching plane) s and a switching input (torque command) T for the sliding mode control are expressed by equations (5) and (6), respectively, a Liapunov function V (always positive and having its minimum at 0), associated with the switching variable s and given by equation (7), uniformly converges to 0, in other words, the characteristic of the servomotor control system converges on the switching plane (s = 0) when the differential thereof V ˙ is negative. s = ε + C · ε + D · ∫( ε + C · ε) T = J0 · ωc · ε + C · J0 · ωc · ε + T1 V = (1/2) · s 2 where C, D, and ωc individually represent constants, J0 represents the predicted minimum inertia of a controlled object (link), and T1 represents a switching amount (nonlinear input) described in detail later. By substituting equation (9) obtained from equations (1), (4) and (6) into equation (8) which is obtained by differentiating both sides of equation (5), equation (10) is derived. s = ε + (C + D) · ε + C · D · ε ε =  r + (A/J) ·  + GR/J - (J0/J) · ωc · ε - C ·(J0/J) · ωc · ε - T1/J s = (C + D - ωc · J0/J) · ε - (C · D - C · ωc · J0/J) · ε - T1/J +  r + (A/J) ·  + GR/J Then, by substituting equation (12) obtained from equations (5) and (10) into equation (11) which is obtained by differentiating both sides of equation (7), equation (13) indicating the differential V ˙ of the Liapunov function is obtained. V = s · s s = (C + D - ωc · J0/J) · s - [C 2 · ε + (C · D + D 2 - D · ωc · J0/J) · ∫( ε + C · ε) + T1/J -  r - (A/J) ·  - GR/J] V = (C + D - ωc · J0/J) · s 2 - [C 2 · ε + (C · D + D 2 - D · ωc · J0/J) · ∫( ε + C · ε) + T1/J -  r - (A/J) ·  ] · s Then, a condition for the relationship V ˙ < 0 is obtained. If the constant ωc is determined such that equation (14) is fulfilled, the first term of the right side of equation (13) is negative, as indicated by equation (15). In equation (14), symbol Jmax represents the predicted maximum inertia which varies depending on the operating state. ωc = (C + D) · Jmax/J0 First term of the right side of equation (13) = C + D · (1 - Jmax/J) · s 2 < 0 In this case, if the sum of the second and third terms of equation (11) is negative, as indicated by equation (16), V ˙ < 0 is fulfilled. -[C 2 · ε + (C · D + D 2 - D · ωc · J0/J) · ∫( ε + C · ε) + T1/J - r - (A/J) ·  - GR/J] · s < 0 Thus, in order to converge the characteristic of the servomotor control system on the switching plane (s = 0) for the sliding mode control, thereby making the characteristic of the control system adapted to variations of the system parameters, it is necessary only that the switching amount T1 fulfilling equation (16) be calculated, the torque command T be calculated using the calculated switching amount T1 and in accordance with equation (6), and the servomotor be controlled by using the calculated torque command T. According to the present embodiment, in determining the switching amount T1 which meets the condition for V ˙ < 0, the switching amount T1 is divided, as indicated by equation (17), in five; a first term K1(ε) given as a function of the position deviation ε, a second term K2(∫( ε + C · ε)) given as a function of an integral value ∫( ε + C · ε) , a third term K3( ¨r) associated with the feedforward compensation for acceleration and given as a function of the second differential  ¨r of the command position, a fourth term K4(GR) associated with gravity compensation and given as a function of the gravity load GR, and a fifth term K5() associated with dynamical friction compensation and given as a function of the actual speed  ˙. T1 = K1(ε) + K2(∫( ε + C · ε)) + K3(r) + K4(GR) + K5() Further, the first term K1(ε) is calculated according to a calculation formula which is determined in dependence on the respective signs of the switching variable s and the position deviation ε, and the second term K2(∫( ε + C · ε)) is calculated according to a calculation formula which is determined depending on the respective signs of the variable s and the integral value ∫( ε + C · ε) . The third term K3(r) is calculated in accordance with a calculation formula which is determined depending on the respective signs of the switching variable s and the second differential  ¨r of the command position, and a fourth term K4(GR) is calculated according to a calculation formula which is determined in dependence on the sign of the variable s , Further, the fifth term K5() is calculated according to a calculation formula which is determined depending on the respective signs of the variable s and the actual speed  ˙. More specifically, equation (16) holds if equation (18) holds when s ≧ 0, or if equation (19) holds when s < 0. T1 > -C 2 · J · ε - {J · (C · D + D 2 ) - D · ωc · J0} · ∫( ε + C · ε) - J ·  r - A ·  - GR T1 < -C 2 · J · ε - {J · (C · D + D 2 ) - D · ωc · J0] · ∫( ε + C · ε) - J ·  r - A ·  - GR Therefore, the first term K(ε) of the switching amount T1 is calculated using equation (20) when s ≧ 0 and ε ≧ 0 or when s < 0 and ε < 0, and using equation (21) when s ≧ 0 and ε < 0 or when s < 0 and ε ≧ 0. K1(ε) = -C 2 · J0 · ε K1(ε) = -C 2 · Jmax · ε Then, the second term K2(∫( ε + C · ε)) of the switching amount T1 is calculated using equation (22) when s ≧ 0 and ∫( ε + C · ε) ≧ 0 or when s < 0 and ε < 0, and using equation (23) when s ≧ 0 and ε < 0 or when s < 0 and ∫( ε + C · ε) ≧ 0 . K2(∫( ε + C · ε)) = -{(C · D + D 2 ) - D · ωc} · J0 K2(∫( ε + C · ε)) = -{(C · D + D 2 ) · Jmax - D · ωc · J0} Further, the third term K3( ˙r) of the switching amount T1 is calculated using equation (24) when s ≧ 0 and r ≧ 0 or when s < 0 and r < 0, and using equation (25) when s ≧ 0 and r < 0 or when s < 0 and  ≧ 0. K3(  r) = Jmax ·  r K3(  r) = J0 ·  r The fourth term K4(GR) of the switching amount T1 is calculated using equation (26) when s ≧ 0, and using equation (27) when s < 0. K4(GR) = GRmax K4(GR) = GRmin where GRmax and GRmin respectively represent equivalent torques (hereinafter referred to as predicted maximum and minimum gravity loads) of the predicted maximum and minimum gravity loads which vary in dependence on the operating state of the robot. Furthermore, the fifth term K5( ˙) of the switching amount T1 is calculated using equation (28) when s ≧ 0 and  ≦ 0 or when s < 0 and  < 0, and using equation (29) when s ≧ 0 and  < 0 or when s < 0 and  ≧ 0. K5(  ) = Amax ·  K5(  ) = Amin ·  where Amax and Amin represent the maximum and minimum coefficients of dynamical friction, respectively. Then, the switching amount T1 fulfilling the condition for V ˙ < 0 is obtained by adding together the first to fifth terms K1(ε) to K5( ˙) calculated individually in the aforesaid manner, the torque command T which can make the characteristic of the servomotor control system adapted to the variations of the system parameters including the nonlinear parameters is calculated in accordance with equation (6) using the calculated switching amount T1, and the motor is operated in accordance with the calculated torque command T. In this case, the Liapunov stability condition (V ˙ < 0) is fulfilled, whereby the characteristic of the servomotor control system of Fig. 1 converges on the switching plane (s = 0), and the response characteristic of the control system is determined in accordance with the switching plane. In other words, the stability of the control system can be maintained even if a nonlinear system parameter, e.g., the inertia J, greatly varies. Further, since the switching variable s contains an integral element, a steady-state deviation from the control target can be reduced to 0. In some cases, the inertia J in a workpiece-held state is about six times as large as that in a workpiece-released state. Referring now to Fig. 2, a digital servo (software servo) control system, corresponding to the servomotor control system shown in Fig. 1, for embodying the aforementioned sliding mode control method will be described. This control system comprises a digital servo circuit 3 which contains a digital signal processor (not shown) and a memory for storing setting values of various constants mentioned later. The digital servo circuit 3 is arranged to execute position, speed and current control of the servomotors for the individual axes (not shown, corresponding to the third transfer element 14 in Fig. 1) of the robot 5 by software processing. In other words, the servo control system comprises a position control loop, a speed control loop, and a current control loop. Further, the servo control system comprises a shared memory 2 formed by a RAM which is accessible from both the processor (hereinafter referred to as the first processor) of the digital servo circuit 3 and a processor (not shown, hereinafter referred to as the second processor) of a host computer, e.g., a numerical control device 1 for distributing movement commands, current detectors (not shown) for detecting the actual driving currents flowing through the servomotors, and servo amplifiers (not shown) for driving the servomotors of the individual axes in accordance with current commands from the digital servo circuit 3 and outputs from the current detectors. Furthermore, the control system comprises pulse coders (not shown) attached respectively to the servomotors and corresponding to the fourth transfer element 16 in Fig. 1, a feedback signal register 4 for storing the results of detection by the pulse coders and the current detectors under the control of the processor, and a manual data input device (not shown) for inputting various constants. Referring now to Fig. 3, the operation of the servo control system of Fig. 2 will be described. Before operating the robot, the respective setting values of the aforementioned constants C, D and the maximum and minimum dynamical friction coefficients Amax and Amin are input individually through the manual data input device. Also, coefficients M1, M2, N1 and N2 (not shown) used individually for the calculation (mentioned later) of the predicted maximum and minimum inertias Jmax and J0 and the predicted maximum and minimum gravity loads GRmax and GRmin, respectively, are manually input. The coefficients M1 and M2 are set, for example, to "1.2" and "0.8," respectively. The aforesaid various setting values are stored in the built-in memory in the digital servo circuit 3 of the servo control system. Instead of the manual inputting mentioned above, the setting values of the constants and the dynamical friction coefficients may be previously described in a program for robot control, for example. During an operation of the robot, the first processor executes the sliding mode control process shown in Fig. 3 at intervals of the same period as the execution period for the movement command distribution by the second processor. More specifically, in each control period, the first processor reads out from the shared RAM 2 the command position r, which is written in the shared RAM 2 by the second processor at intervals of the movement command distribution period, and inertia data and gravity load data, which are written at suitable timing in the shared RAM 2 by the second processor, and also reads out the actual position  from the feedback signal register 4 (Step 100). Then, the first processor calculates the position deviation ε (= r - ) , speed deviation ε ˙, predicted maximum and minimum inertias Jmax and J0, predicted maximum and minimum gravity loads GRmax and GRmin, and constant ωc, and causes various registers accommodated therein to store the calculated values, respectively (Step 101). The coefficients M1, M2, N1 and N2 are used for the calculation of the values Jmax, J0, Gmax and Gmin. Subsequently, the first processor calculates the value of the switching variable s in accordance with equation (5) (Step 102), and determines whether or not the calculated value s is positive or "0" (Step 103). If s ≧ 0, the first processor determines whether or not the position deviation ε is "0" or positive (Step 104). If ε ≧ 0, the processor calculates the first term K1 (ε) of the switching amount T1 in accordance with equation (20), and stores the calculated value in a register R1 contained in the first processor (Step 105). On the other hand, if the result of the determination in Step 104 is negative (ε < 0), the processor calculates the value K1(ε) in accordance with equation (21), and stores the calculated value in the register R1 (Step 106). In Step 107 following Step 105 or 106, the first processor calculates the integral value ∫( ε + C · ε) associated with the switching amount T1, and determines whether or not the calculated value is "0" or positive. If the result of the determination in Step 107 is affirmative (∫( ε + C · ε) ≧ 0), the value of the second term K2(∫( ε + C · ε)) of the switching amount T1 is calculated in accordance with equation (22), and the result is stored in a register R2 contained in the first processor (Step 108). If the result of the determination in Step 107 is negative, the value of the second term K2(∫( ε + C · ε)) is calculated in accordance with equation (23), and the calculated value is stored in the register R2 (Step 109). In Step 110 following Step 108 or 109, the first processor calculates the second differential r of the command position. At this time, the first processor calculates the difference between the command position r for the preceding processing period and that for the present processing period, as the first differential  ˙r of the command position, and then calculates, as the second differential  ¨r, the difference between the first differential thus calculated and the first differential obtained in a similar manner in the preceding processing period. Further, the first processor determines whether or not the second differential  ¨r is positive or "0" (Step 110). If the result of the determination is affirmative ( ¨r ≧ 0), the first processor calculates the value of the third term K3( ¨r) of the switching amount T1 in accordance with equation (24), and stores the result in a built-in register R3 (Step 111). On the other hand, if the result of the determination in Step 110 is negative ( ¨r < 0), the first processor stores the value of the third term, calculated in accordance with equation (25), in the register R3 (Step 112). In Step 113 following Step 111 or 112, the first processor stores the predicted maximum gravity load GRmax calculated in Step 101 in a built-in register R4, and then determines whether or not the actual speed  ˙ is positive or "0" (Step 114). If the result of the determination is affirmative ( ˙ ≧ 0), the value of the fifth term K5( ˙) of the switching amount T1 is calculated in accordance with equation (28), using the maximum dynamical friction coefficient Amax manually set before the robot is started, and the calculated value is stored in a built-in register R5 (Step 115). If  ˙ < 0, on the other hand, the value K5() calculated in accordance with equation (29) and using the minimum dynamical friction coefficient Amin is stored in the register R5 (Step 116). If the result of the determination in Step 103 is negative (s < 0), the first processor calculates the value K1(ε) in accordance with equation (20) or (21). depending on the result of the determination in Step 117 corresponding to Step 104, namely, depending on whether the position deviation ε is positive or negative, and stores the result in the register R1 (Step 118, 119). Then, the value K2(∫( ε + C · ε)) which is calculated in accordance with equation (22) or (23), depending on the result of the determination in Step 120, i.e., depending on whether the integral value ∫( ε + C · ε) is positive or negative, is stored in the register R2 (Step 121, 122). Further, the value K3( ¨r) which is calculated in accordance with equation (24) or (25), depending on the result of the determination in Step 123, i.e., depending on whether  ¨r is positive or negative, is stored in the register R3 (Step 124, 125), and the predicted minimum gravity load GRmin calculated in Step 101 is stored in the register R4 (Step 126). Then, the value K5( ˙) which is calculated in accordance with equation (28) or (29), depending on the result of the determination in Step 127, namely, depending on whether  ˙ is positive or negative, is stored in the register R5 (Step 128, 129). In Step 130 following Step 115, 116, 128 or 129, the first processor adds together the respective values of the first to fifth terms of the switching amount T1 read out individually from the registers R1 to R5, thereby obtaining the switching amount T1 (= K1(ε) + K2(∫( ε + C · ε) + K3(  r) + K4(GR) + K5(  )) , and also calculates the torque command T in accordance with equation (6) (Step 131). Based on the calculated torque command T and the current detector outputs representing the actual servomotor driving currents, the first processor executes the current control loop processing, and sends the resulting current command to the servo amplifiers (Step 132). The servo amplifiers supply the servomotors of corresponding axes with driving currents corresponding to the current commands from the digital servo circuit 3, to thereby drive the motors. For the reasons mentioned above, no steady-state deviation occurs in the digital servo system during operation of the robot. and a proper manipulated variable (torque command T) can be produced even if one or more nonlinear system parameters greatly vary.

Claims: A sliding mode control method with a feedforward compensation function, comprising the step of: (b) calculating a manipulated variable (T) which permits a characteristic of a control system to be converged on a switching plane (s=O), in accordance with a preselected value of an operation parameter representative of an operating state of a controlled object and a preselected value of a nonlinear system parameter which varies in dependence on the operating state of the controlled object; and wherein said step (b) includes steps of: (b1) periodically detecting a command position (r), actual position (), inertia data (J), and gravity load data (GR); (b2) periodically calculating a position deviation (ε) and speed deviation (ε ˙), on the basis of the command position (r) and actual position () thus detected; and (b3) periodically calculating the manipulated variable (T) on the basis of the periodically calculated position deviation (ε) and speed deviation (ε ˙), and said detected inertia data (J) and gravity load data (GR); characterised in that: step (b2) further comprises periodically calculating a predicted maximum inertia (Jmax), predicted minimum inertia (JO), predicted maximum gravity load (GRmax) and predicted minimum gravity load (GRmin) on the basis of said detected inertia data (J) and gravity load data (GR); and in step (b3) the periodic calculation of the manipulated variable (T) is effected on the basis of the periodically calculated predicted maximum inertia (Jmax) and periodically calculated predicted minimum inertia (JO), and on the basis of the periodically calculated predicted maximum gravity load (GRmax) and periodically calculated predicted minimum gravity load (GRmin). A sliding mode control method with a feedforward compensation function according to claim 1, wherein said method is applied to a control system including a speed control loop for carrying out proportional-plus-integral control to periodically calculate a torque command, and wherein said torque command is periodically calculated as the manipulated variable (T) in said step (b). A sliding mode control method with a feedforward compensation function according to claim 1 or 2, further including a step of: (c) setting a switching variable including an integral element before execution of said step (b); wherein said step (b3) includes steps of: (b4) calculating a value of the switching variable and a value of the integral element of the switching variable, on the basis of the calculated position deviation and the calculated speed deviation; (b5) calculating a second differential value of the command position on the basis of the detected command position; and (b6) calculating the manipulated variable in accordance with respective positive or negative signs of the calculated value of the switching variable, the calculated value of the integral element, the calculated value of the second differential of the command position, and the calculated position deviation.

Inventors: KATO TETSUAKI, NIHEI RYO, TORII NOBUTOSHI, KATO, TETSUAKI, NIHEI, RYO, TORII, NOBUTOSHI, KATO, Tetsuaki R. 8-101, NIHEI, Ryo R.7-201, TORII, NOBUTOSHI ROOM 308
Applicants: FANUC LTD, FANUC LTD.
Application year: 1990
Main classification: B25J9
IPC codes: G05B19, G05B13