ROBOT CONTROLLER

Abstract: The robot controller uses a simply constructed controller which performs feed forward compensation with nonlinear torque. Servo CPU's are provided for each of several drive axes of a robot arm connected to a common RAM via a bus line. Into the common RAM are written, via a main CPU the weight of a robot hand, the weight of a work, and position instructions for the drive axes, and are further written the present positions of the drive axes via the servo CPU. The servo CPU's calculate feedback control outputs based upon differences between the instruction values of the axes and the present value, and calculate feed forward compensation outputs with nonlinear torque based upon the weights of the robot hand and the work, positions of other drive axes and spped data, and send the outputs to inverters.

Description: This invention relates to a robot control apparatus equipped with a special-purpose control processor for calculating the equivalent inertia of a robot arm load to adjust the loop gain of a servomotor. Horizontal articulated-type robots each of whose arms move in two dimensions have recently come into use for semiconductor device assembly and simple palletizing operations. Fig. 3 is a simplified external view of an example of a horizontal articulated-type robot. As shown in the Figure, a manipulator 5 is provided on a wrist (hand) 4 at the distal end of a second arm 3. The second arm 3 is provided on the distal end of a first arm 2 so as to be freely pivotable in the horizontal direction. The first arm 2 is fixedly secured to the distal end of a post 1 so as to extend in the horizontal direction. The post 1 is provided on a base 11, which is installed on a floor, and is freely rotated by a drive motor. The first arm 2 accommodates a servomotor for rotating the second arm 3 back and forth, and the second arm 3 accommodates a servomotor for driving the wrist 4. Numeral 6 denotes a variety of cables such as power cables for supplying power to the servomotors, and signal cables for transmitting signals from various sensors. Numerals 22, 32 denote covers for covering the first arm 2 and second arm 3, respectively. When the respective arm drive systems are subjected to maintenance or inspection, these covers are removed by way of mounting screws. As shown in Fig. 4, the velocity control system of the servomotor for driving the robot arm 2, 3 or wrist 4 constitutes a feedback control system which comprises a position and velocity control loop and a current loop and which responds to an input of a predetermined position command. In the Figure, a position command signal formed by a main CPU, not shown, is altered into a predetermined postion control signal by a servo-control circuit before being sent to a servomotor together with an output signal of a current control loop constituted by a minor loop. A controller is connected to each servo-control circuit. A value indicative of the weight of the hand attached to the wrist 4 and values indicative of the weights of various workpieces gripped in accordance with motion of the manipulator are inputted to each controller from the main CPU. The servomotor controls the manipulator based on the applied control signal. At this time the rotational position of the load is sensed by a rotary encoder and is fed back to the servo-control circuit through a frequency-voltage converter (F/V). K₁ represents integration gain, and K₂ denotes proportional gain. The servomotor is provided for each axis, such as ϑ₁ and ϑ₂ axes, and the output signal from the rotary encoder for each axis is outputted to the aforementioned controller. The drive torque required for servomotor control is calculated, and a non-linear torque term is compensated by being fed forward to the servo-control circuit. The torque command u of each servomotor is generally expressed by the following equation: where J(ϑ) ϑ ″ : equivalent inertia of the load c(ϑ,ϑ ′) : centrifugal force, Coriolis force f(ϑ) : frictional force g(ϑ) : gravitational force T(ϑ,ϑ ′) : overall non-linear torque In accordance with conventional servomotor control, the load driving servomotor for each axis, which servomotor motor is connected to and controlled by the main CPU, is provided with a servo-control circuit, and an auxiliary CPU is provided for deciding the non-linear torque, which varies in dependence upon displacement of the manipulator. The auxiliary CPU performs the calculations necessary for feed-forward compensation and forms control signals. Since this auxiliary CPU for calculating drive torque is required separately of arithmetic means provided for every servo-control circuit for the purpose of calculating the position command, the cost of the control apparatus is high and the control of data between the CPUs is complicated. Each servo CPU calculates the equivalent inertia of the load and the non-linear torque required for controlling the servomotor in accordance with Eq. (a). At such time it is required that the CPU accept such information as the rotational angles about the other axes. In consequence, the current loop processing performed by each servo CPU is impeded and servomotor current control can no longer be carried out accurately. Furthermore, the hand and workpiece weight values inputted to the controller in order for drive torque to be calculated for the servo-control circuit of each servomotor are preset in the control program of the main CPU. Therefore, when processing is executed with regard to a workpiece having a weight other than that stipulated, the operator must modify the program. This requires a great deal of labor. The present invention has been devised to solve the aforementioned problems of the prior art and its object is to provide a robot control apparatus in which a servo CPU for controlling each servomotor is provided and drive torque is calculated by these servo CPUs. Another object of the invention is to provide a robot control apparatus in which an operator suitably inputs hand (if required) and workpiece weight values to a bus line interconnecting servo CPUs controlling respective servomotors, whereby drive torque is calculated Still another object of the invention is to provide a robot control apparatus in which information for every axis is stored in a shared RAM or the like and each servo CPU is capable of being accessed commonly. The following publication has made an attempt to achieve at least some of these objects, that is 19th Asilomar Conference on circuits, Systems & Computers, November 6-8 1985, Pacific Grove, California, US. Pages 149-153; D.O. Levan: "Multiple Processor Architecture for high performance Control of robotic Structures". In fact, this paper discloses a robot control system according to the precharacterising part of the attached claim 1. EP-A-0 062 076 also discloses a method and apparatus for controlling an industrial robot, but this is concerned with compensating for bending in the arm of a robot, and not with the interdependent control of robot axes as is the present invention. According to the present invention there is provided a robot control apparatus for controlling the attitude of a manipulator through the intermediary of a robot arm having a plurality of axes, comprising: servomotors of respective plural axes for driving said robot arm; a plurality of arithmetic means for calculating drive torques of respective servomotor control systems; a bus line interconnecting said arithmetic means with one another for making it possible to access, from said arithmetic means, information relating to other axes necessary for drive torque calculation; and memory means provided for holding information relating to other axes necessary for calculation of an equation of motion of said manipulator, said memory means being commonly accessible from each of said arithmetic means; characterised in that manually operable data input means is provided for inputting, to prescribed ones of the arithmetic means, the weight of a workpiece gripped by said manipulator, and each arithmetic means is a control processor operable to calculate the equivalent inertia of a robot arm load to adjust the loop gain of its servomotor. For a better understanding of the present invention and to show how it may be put into effect, reference will now be made by way of example to the accompanying drawings in which: Fig.1 is a block diagram illustrating the present invention, Fig.2 is a view illustrating an example of the mechanism of a horizontal articulated-type robot, Fig.3 is an external view of the same robot, and Fig. 4 is a block diagram showing the construction of the conventional apparatus. An embodiment of the invention will now be described in detail with reference to the drawings. Fig. 2 is a view illustrating the mechanism of a horizontal articulated-type robot having a link L₁ of length ℓ₁, a link L₂ of length ℓ₂, and a hand H of length ℓ₃. The link L1 is rotatable about an axis ϑ₁, the link L₂ about an axis ϑ₂, and the hand H about an axis ϑ₃. If the total weight of the link L1 is M₁ (M₁ = m₁₁ + m₁₂ + m₁₃) , the total weight of link L₂ is M₂ (M₂ = m₂₁ + m₂₂ + m₂₃) , the weight of the hand H and a workpiece W is M₃ (M₃ = mh + Mw) , and the positions of the centers of gravity of the links L₁, L₂ and hand H are W₁, W₂, and W₃, respectively, then the torques T₁, T₂, T₃ along the various axes of the manipulator may be obtained as shown hereinbelow, where mij indicates the weights of the links L₁, L₂ and the weights of the servomotors as a system of particles. The torque T₃ of the hand H about the ϑ₃ axis is obtained as follows: The coefficient A is expressed as follows: A = ℓ₃ - S₃ The distance S₃ from the distal end of hand H to the position of the center of gravity of the hand H when the hand is gripping a workpiece is calculated as follows: S₃ = (ℓ₃ - ℓ₃₁)mh/(mh + Mw) (2) J 3yy , obtained by expressing the inertia of the hand H about its center of gravity in a coordinate system fixed with respect to the hand H, is written as follows: J 3yy = mh(ℓ₃ - ℓ₃₁ - S₃)² + MwS₃ (3) However, when the hand H is not gripping a workpiece, Mw is made zero in each of the above equations. The torque T₂ of the link L₂ about the axis ϑ₂ is obtained as follows: The torque T₁ of the link L₁ about the axis ϑ₁ is obtained as follows: In these Eqs. (1), (4) and (5), the terms having ϑ ″ i represent the equivalent inertia of the load. These terms vary in dependence upon a change in the rotational angle ϑ i about each axis. Fig. 1 is a block diagram illustrating an example of a control system for a robot arm controlled by applying the apparatus of the present invention. Control loops for a servomotor 1 for driving a load about a ϑ₁ axis, a servomotor 2 for driving a load about a ϑ₂ axis and so on are provided with respective servo CPUs c₁, c₂ which calculate a non-linear torque T i (ϑ,ϑ ′) (i = 1, 2,...) about the respective axes. Each servo CPU is connected to a main CPU a by a bus line and is capable of executing, on line, equations of motion necessary for control along each axis in accordance with a control signal from the main CPU. Inverters d₁, d₂ control the currents of servomotors e₁, e₂. In the present invention, a shared RAM b is connected between the main CPU a and each of the servo CPUs c1, c2. The plurality of servo CPU's c₁, c₂... for controlling the loads driven about the axes ϑ₁, ϑ₂... of the robot arms upon receiving a manipulator control command from the main CPU a are connected via a bus line f so as to be capable of accessing the RAM. The servomotors e₁, e₂ are subjected to predetermined positioning control and current control by the servo CPUs c₁, c₂ and inverters d₁, d₂, respectively. The servo CPUs c₁, c₂... calculate drive torques conforming to the position command signals based on the aforementioned control commands. Information relating to rotational angles about the other axes is inputted to each of the servo CPUs c₁, c₂... for controlling the drive of the respective axes. These CPUs perform on-line processing for deciding torque commands in accordance with Eqs. (1), (4) and (5) and compensate the non-linear torque terms by feed-forward. The aforementioned shared RAM b stores information about each axis. When a servo CPU does not perform current loop control, the RAM is capable of being accessed by the servo CPU c₁, c₂... in order that the information may be read for the purpose of performing torque calculations. The shared RAM b has the following functions: When e.g. the torque T₁ about the ϑ₁ axis is calculated by the servo CPU c₁ in accordance with Eq. (5), information relating to the other axes ϑ₂, ϑ₃ is stored in the shared RAM b. At a time when current loop processing is not performed by the servo CPU c₁, the shared RAM b is accessed, the information about the other axes is fetched and the predetermined processing is executed. Accordingly, even if read-in loss occurs due to bus contention, current loop processing is not prevented and calculation of non-linear torque necessary for servomotor control can be carried out with assurance. Also connected to the shared RAM b is a CRT/MDI g controlled by the operator so that the operator can confirm manipulator operation in the form of picture data. Hand and workpiece weight can be set in advance by the CRT/MDI g. The operation of the apparatus of the invention will now be described. After the main CPU a is operated and the system is started up, the operator inputs the weight of the robot hand and the weight of a workpiece to the shared RAM b from the CRT/MDI g via the main CPU a. When the main CPU a outputs position commands for the servomotors e₁, e₂..., the robot arm starts to move and information relating to the load about each axis is stored in the shared RAM b. Next, the servo CPUs c₁, c₂... read the information for the other axes out of the shared RAM b at a time when current loop control is not being controlled, calculate the non-linear torque T(ϑ,ϑ ′) on line in accordance with the Eqs. (1), (4) and (5), and perform feed-forward compensation with respect to the servo-control system. It should be noted that since the weight value of the hand itself usually does not change, it may suffice to input solely the workpiece weight value. Further, upon confirming by a CRT or the like that the robot hand has moved to the predetermined position, the operator can change the workpiece weight value and input the same as the occasion demands. Industrial Applicability Thus, in accordance with the robot control apparatus of the present invention as described above, calculation of drive torque necessary for servomotor control is performed by each of the servo CPUs in a system where loads which are rotated about a plurality of drive shafts of robot arms are driven and controlled by manipulator driving servomotors in coordination with manipulator motion. As a result, it is unnecessary to provide auxiliary CPUs for drive torque calculation separately for every servo-control loop. This makes it possible to lower control loop cost. Further, a RAM capable of being accessed commonly by the servo CPUs controlling the respective servomotors is provided. Information about the other axes is fetched from the RAM and non-linear torque is calculated when a servo CPU is not performing current loop processing. As a result, current loop processing is not impededd and the servomotors can be controlled very accurately. In addition, the weight value of a workpiece gripped by the robot arm is modified, set and inputted to the servo CPUs at the required timing, and drive torque calculation necessary for servomotor control is performed. Accordingly, the operator is readily capable of dealing with a change in workpiece weight value, and the system can be readily modified in so far as processing for various workpieces is concerned. As a result, when the robot control apparatus of the invention is applied to a horizontal articulated-type robot, much more accurate positional control becomes possible and the robot can be controlled at high speed and in a highly precise manner.

Claims: A robot control apparatus for controlling the attitude of a manipulator (5) through the intermediary of a robot arm (2,3) having a plurality of axes (ϑ₁,ϑ₂), comprising: servomotors (1,2) of respective plural axes (ϑ₁,ϑ₂) for driving said robot arm (2,3); a plurality of arithmetic means (C1,C2) for calculating drive torques of respective servomotor control systems; a bus line (8) interconnecting said arithmetic means (C1,C2) with one another for making it possible to access, from said arithmetic means (C1,C2), information relating to other axes necessary for drive torque calculation; and memory means (6) provided for holding information relating to other axes (ϑ₁,ϑ₂) necessary for calculation of an equation of motion of said manipulator (5), said memory means (6) being commonly accessible from each of said arithmetic means (C1,C2); characterized in that manually operable data input means (9) is provided for inputting, to prescribed ones of the arithmetic means (C1,C2), the weight of a workpiece gripped by said manipulator (5), and each arithmetic means (C1,C2) is a control processor operable to calculate the equivalent inertia of a robot arm load to adjust the loop gain of its servomotor (1,2). A robot control apparatus according to claim 1, characterized in that said arithmetic means (C1,C2) includes, for every axis (ϑ₁,ϑ₂) of the robot arm (2,3), a servo microprocessor for performing feed-forward compensation of the servo-control systems of the servomotors (1,2). A robot control apparatus according to claim 1 or 2, characterized in that the robot arm (2,3) having the plurality of axes (ϑ₁,ϑ₂) is an arm of a horizonal articulated-type robot having a plurality of arm parts (2,3) each of which rotates in a horizontal plane. A robot control apparatus according to any preceding claim, wherein said manually operable data input means (9) can input with the workpiece weight, also the weight of a hand (4) at a distal end of the robot arm (2,3).

Inventors: IWAMOTO, TAKASHI, KURAKAKE, MITSUO, SAKAMOTO, KEIJI
Applicants: FANUC LTD.
Application year: 1987
Main classification: G05D3
IPC codes: G05B19