Method of generating robot control axis position data

Information

  • Patent Grant
  • 5327057
  • Patent Number
    5,327,057
  • Date Filed
    Tuesday, January 19, 1993
    31 years ago
  • Date Issued
    Tuesday, July 5, 1994
    30 years ago
Abstract
The present invention relates to a method of generating data indicative of robot control axis position. The method has a step of inputting data specifying the shape of a workpiece (WK) and data (.alpha., .beta., .gamma.) specifying the attitude of a tool (TL) conforming to a task to be executed by a robot, a step of calculating a position (X, Y, Z) of a tip (P) of the tool in the workpiece coordinate system X-Y-Z by using the data specifying the workpiece shape, a step of specifying the position of each axis constituting the robot by using the tool tip position and the tool attitude data, and a step of successively specifying positions of each control axis of the robot along a tool path (PT).
Description

DESCRIPTION
Technical Field
This invention relates to a method of generating data indicative of robot control axis positions. More particularly, the invention relates to a robot control axis position data generating method through which universal robot control axis position data of the same format can be generated offline irrespective of the type of robot (cylindrical coordinate system robots, articulated robots, Cartesian coordinate system robots and other robots having different control axis configurations).
Background Art
A robot has its position controlled on the basis of robot control data created in advance and stored in memory and performs tasks at predetermined positions, such tasks including loading and unloading the workpiece of a machine tool or the like, attaching and detaching tools to and from the machine tool, and subjecting workpieces to painting, welding and sealing. Hereafter, an effector such as the robot hand, a welding torch or a paint spraying nozzle attached to the robot shall be referred to generically as a "tool".
Conventionally, the positions of the control axes constituting a robot or path data are created by a teaching operation in which the tool is moved manually along a desired path, and the data are stored in a robot control unit memory. When an actual task is performed, path control is executed using the position or path data created by the teaching operation and the tool is moved along the desired path or positioned at desired points to performed the predetermined task.
However, creating the position data and path data by teaching is troublesome and time-consuming, and the teaching operation is hazardous. Moreover, highly precise teaching of positions and paths cannot be performed, thus making it impossible to achieve highly precise painting, welding and sealing.
Accordingly, an object of the present invention is to provide a robot control axis position data generating method through which data indicative of robot control axis positions can be created simply and offline without teaching.
Another object of the present invention is to provide a robot control axis position data generating method through which data indicative of robot control axis positions can be created offline in the same format for robots of all kinds.
Still another object of the present invention is to provide a robot control axis position data generating method for specifying robot control axis positions in terms of the task the robot executes and tool attitude data determined by the tool shape, in addition to the tool tip position obtained from data specifying the shape of the workpiece.
A further object of the present invention is to provide a robot control axis position data generating method for creating data specifying robot control axis positions in the same format for robots of all kinds, subjecting these data to a coordinate transformation in dependence upon the robot being controlled, and controlling the position of each axis of the robot on the basis of the control axis position data obtained by the coordinate transformation.
According to the present invention, these objects are attained by inputting data specifying the shape of a workpiece and data specifying the attitude of a tool conforming to the task to be executed by a robot, calculating the position of the tool tip in the workpiece coordinate system by using the data specifying the workpiece shape, and specifying the position of each control axis of the robot along a tool path by using the tool tip position and the tool attitude data.
DISCLOSURE OF THE INVENTION
The method of the invention includes inputting data specifying the shape of a workpiece and data specifying the attitude of a tool conforming to the task to be executed by a robot, calculating the position (X, Y, Z) of the tool tip in the workpiece coordinate system by using the data specifying the workpiece shape, obtaining the position of each control axis constituting the robot by using the tool tip position and the tool attitude data, and successively obtaining positions of each control axis of the robot along a tool path. Further steps include inputting data specifying the shape of the workpiece and data specifying the tool path, and successively obtaining positions of each control axis of the robot along the tool path specified by the tool path data. The data specifying the tool attitude include angles .alpha., .beta. which indicate deviations of a tool central axis from the direction of a workpiece normal line at the tool tip position, and a twist angle .gamma. indicating an amount of tool tip twist.
Each control axis position is obtained by converting the tool attitude data into tool direction data (P, Q, R) in the workpiece coordinate system, and converting (X, Y, Z, P, Q, R) comprising the tool direction data and data specifying the tool tip position (X, Y, Z) into position data in the robot coordinate system on the basis of the type of robot used (cylindrical coordinate system robot, articulated robot, Cartesian coordinate system robot, etc.) and data specifying the dimensions of the robot.





BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a view for describing the general features of the present invention;
FIGS. 2 through 4 are views for describing the relationship between constraints .alpha., .beta., .gamma. and a robot task, in which FIG. 2 is a view for describing the constraints in a painting operation, FIG. 3 is a view for describing the constraints in arc welding and sealing operations, and FIGS. 4(a) and 4(b) are views for describing the constraints in a spot welding operation;
FIG. 5 is a view for describing tool direction data P, Q, R in a workpiece coordinate system;
FIGS. 6, 7, 8(a), 8(b) and 9 are views for describing a method of obtaining P, Q, R by using the constraints (.alpha., .beta., .gamma.);
FIGS. 10, 11(a) and 11(b) are views for describing a method of obtaining position data .theta..sub.1, .theta..sub.2, .theta..sub.3, .theta..sub.4, .theta..sub.5, .theta..sub.6 for each axis of a robot from X, Y, Z, P, Q, R in case of a Scheinman arm; and
FIG. 12 is a block diagram of an embodiment of the present invention.





BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a view for describing the general features of the present invention. TL represents a tool, and WK denotes a workpiece having a freely curved surface. To specify the freely curved surface of the workpiece, by way of example, data are given specifying several sections and section curves of the workpiece WK, a plurality of intermediate sections are generated in accordance with predetermined rules by using the section data and section curve data, and section curves (intermediate section curves) of the workpiece are obtained based on the intermediate sections. The freely curved surface of the workpiece is specified by a plurality of the generated intermediate section curves. For the details of this curved surface generating method, refer to the specification of Japanese Patent Application No. 55-78247 (U.S. Pat. No. 4,491,906).
Returning to FIG. 1, let a point P (the position of the tool tip) on a freely curved surface represent the origin, and let an S axis represent the direction of a normal line to the workpiece at the origin P, an H axis the direction along which the tool advances, and a V axis a third axis of a right-hand coordinate system in which the other two axes are so decided as to coincide with the S and H axes, respectively. Under these conditions, the position of each control axis of a robot in the workpiece coordinate system is specified by the position X, Y, Z of the origin P (namely the position of tip of the tool TL) in a Cartesian coordinate system (the workpiece coordinate system), angles of deviation .alpha., .beta. of the tool central axis T from the normal vector S, and a twist angle (angle of rotation) .gamma. of the tool TL.
It should be noted that .alpha., .beta. and .gamma. are attitude data specifying the attitude of the tool. These data are defined as follows:
.alpha. is an angle formed in the SV plane by an axis T' (dashed line), which is obtained by projecting the tool central axis T onto the VS plane, and the S axis. Accordingly, the S axis is superimposed on the axis T' when rotated .alpha..degree. about the H axis.
.beta. is an angle formed by an S' axis and the tool central axis T in an S'H plane, where S'V' is a new plane obtained by rotating the VS plane about the H axis until the S axis is superimposed on the axis T'. In other words, the S' axis is superimposed on the tool central axis T when rotated .beta..degree. about the V' axis.
.gamma. is a tool twist angle about an S" axis (tool central axis), where S"H' is a new plane obtained by rotating the S'H plane about the V' axis until the S' axis is superimposed on the tool central axis T. The counter-clockwise direction is taken as being positive for this angle.
The final attitude of the tool cannot be determined even when the coordinate values (X, Y, Z) of the tool tip P on the workpiece and the workpiece normal vector S at this position are given. The reason is that, depending upon the robot task, it is necessary to perform the task with the tool central axis T tilted from the normal vector S in the direction of advance, or with the tool tip pointed toward the workpiece at a fixed attitude at all times. Therefore, according to the present invention, the three elements (constraints) .alpha., .beta., .gamma. that determine the tool attitude are introduced, as set forth above. All tool states can be specified in terms of the three constraints (.alpha., .beta., .gamma.) and the coordinate values (X, Y, Z) of the tool tip position. Accordingly, if X, Y, Z, .alpha., .beta. and .gamma. are subjected to predetermined processing conforming to the robot used, position data for each control axis constituting the robot can be obtained. If each control axis is driven based on the position data obtained by the above processing, the tool tip will arrive at the positions designated by the coordinate values (X, Y, Z), the tool central axis will be displaced from the normal vector by .alpha. and .beta., and the tool tip will assume the state which results by being twisted by .gamma.. In other words, X, Y, Z, .alpha., .beta. and .gamma. are converted into the robot control axis position data by executing the predetermined processing in dependence upon the robot used and, hence, these are universal data good for all robots.
The coordinate values (X, Y, Z) of the origin P in the workpiece coordinate system are obtained based on the above-described curved surface generating method using data specifying the shape of the workpiece.
The constraints .alpha., .beta., .gamma. are determined based on the activity (painting, arc welding, spot welding, sealing, etc.) executed by the robot and the shape of the workpiece, as will be described below.
Accordingly, if discrete tool tip positions (positions indicated by the dots in FIG. 1) on the workpiece along the tool path PT are successively generated, then universal robot control axis position data will be generated based on the tool tip position (X, Y, Z) and the separately given constraints .alpha., .beta., .gamma..
Reference will now be had to FIGS. 2, 3 and 4 to describe the values which the constraints .alpha., .beta., .gamma. assume depending upon the task executed by the robot.
(A) Painting
In a painting operation, the central axis T of the tool (a paint spray nozzle) TL is constantly controlled so as to be directed along the normal line to the workpiece WK (painted surface), as illustrated in FIG. 2. Therefore, we have
.alpha.=.beta.=0
Since the shape of the paint spray nozzle has point symmetry in relation to the center of the nozzle, there is no change in the state of the nozzle with respect to the workpiece even if the nozzle is rotated about the central axis of the tool. Accordingly, .gamma. may be any angle. In other words, .gamma. need not be taken into consideration (in which case the constraint .gamma. will referred to as being arbitrary).
(B) Arc welding and sealing
In arc welding and sealing operations, we will have
.alpha.=-.theta., .beta.=0
where these operations are performed with the central axis T of the tool (torch) TL tilted clockwise at all times in the VS plane through an angle of .theta..sup.o with respect to the normal vector S to the workpiece WK (the surface being welded or sealed), as shown in FIG. 3. Since the shape of the tool tip has point symmetry in relation to the center of the tool, there is no change in the state of the tool with respect to the workpiece even if the tool is rotated about its central axis. Accordingly, .gamma. is arbitrary.
(C) Spot welding
In a spot welding operation, the workpiece WK is placed in a bifurcated portion at the tip of the tool TL and control is so executed that a straight line connecting electrodes P.sub.1, P.sub.2 of the bifurcated portion is directed along the normal line to the workpiece at all times, as shown in FIG. 4(A). Assume that the tool TL is in the state (initially set state) indicated by the solid line in FIG. 4(B) when .alpha.=.beta.=.gamma.=0 holds. In such case, the constraints should be
.alpha.=-90.degree., .beta.=0, .gamma.=0
to attain the attitude shown by the dotted line in FIG. 4(B), namely the attitude illustrated in FIG. 4(A).
The universal robot control axis position data X, Y, Z, .alpha., .beta., .gamma. obtained above are converted into robot position data based on the type of robot used and the dimensions thereof (the dimensions and arrangement of each robot axis).
First, the constraints .alpha., .beta., .gamma. are converted into direction data P, Q, R in the workpiece coordinate system. With reference to FIG. 5, the meanings of P, Q and R in the workpiece coordinate system are as follows: By rotating the central axis T of tool TL P.sup.o about the X axis in the advancing direction of a right-hand screw starting from the +Y axis (from a state in which the T is in coincidence with the Y axis), then rotating the axis T Q.degree. at this position about the Y axis in the advancing direction of a right-hand screw, and finally rotating the axis T R.sup.o in this state about the tool central axis, the tool will assume a state decided by (P, Q, R) at the tool tip position X, Y, Z). The transformation equations for transforming the constraints .alpha., .beta., .gamma. into P, Q, R will now be described. We shall assume that a coordinate system H.sub.i -V.sub.i -S.sub.i (referred to as an "initially set coordinate system") for the initial state of the tool (see FIG. 6) is known, and that the coordinates (X, Y, Z) of a positioning point P.sub.1 in the workpiece coordinate system X-Y-Z, a normal vector (i, j, k) at the point P.sub.1, and the constraints (.alpha., .beta., .gamma.) also are known, where a tool advance vector is presented by H.sub.i (first axial direction), a tool axis vector by S.sub.i (third axial direction), and the outer product of H.sub.i and S.sub.i (Hi*S.sub.i) by V.sub.i (second axial direction).
(a) First, an HVS coordinate system is created at the present point P.sub.1. Let this coordinate system be represented by H.sub.c -V.sub.c -S.sub.c (FIG. 6). Note that a vector S.sub.c is the tool axis vector obtained when the tool axis is made to coincide with the direction of the normal vector (i, j, k) at the present point P.sub.1, H.sub.c is the tool advance vector at the point P.sub.1, and V.sub.c the outer product (H.sub.c *S.sub.c) of the vectors H.sub.c and S.sub.c.
(b) Next, the HVS coordinate system is obtained upon being rotated by the constraints (.alpha., .beta., .gamma.). Let this coordinate system be represented by H.gamma..beta..alpha.-V.gamma..beta..alpha.-S.gamma..beta..alpha.. Note that the constraints (.alpha., .beta., .gamma.) control axis rotation of the kind shown in FIG. 7.
Axial vectors V.sub.1 ', V.sub.2 ', V.sub.3 ' obtained when one axial vector, e.g. a third axial vector V.sub.3 among three orthogonal unit vectors V.sub.1, V.sub.2, V.sub.3 is rotated by .theta. are as follows:
V.sub.1 '=cos.theta..times.V.sub.1 +sin.theta..times.V.sub.2 (1)
V.sub.3 '=V.sub.3 (2)
V.sub.2 '=V.sub.3 *V.sub.1 (3)
Note that * signifies an outer product. Accordingly, the HVS coordinate system (H.gamma..beta..alpha.-V.gamma..beta..alpha.-S.gamma..beta..alpha.) resulting from .alpha., .beta., .gamma. rotation in the following order is obtained by using Eqs. (1)-(3): First, a new coordinate system H.gamma.-V.gamma.-S.gamma. which results when the S.sub.c axis is rotated by .gamma. is obtained from Eqs. (1)-(3), where
.theta.=.gamma.
V.sub.1 =H.sub.c
V.sub.2 =V.sub.c
V.sub.3 =S.sub.c
Next, a new coordinate system H.gamma..alpha.-V.gamma..alpha.-S.gamma..alpha. which results when the H.gamma. axis is rotated by .alpha. is obtained from Eqs. (1)-(3), where
.theta.=.alpha.
V.sub.1 =V.gamma.
V.sub.2 =S.gamma.
V.sub.3 =H.gamma.
Finally, a new coordinate system H.gamma..alpha..beta.-V.gamma..alpha..beta.-S.gamma..alpha..beta. which results when the V.gamma..alpha. axis is rotated by .beta. is obtained from Eqs. (1)-(3), where
.theta.=.gamma.
V.sub.a =S.gamma..alpha.
V.sub.2 =H.gamma..alpha.
V.sub.3 =V.gamma..alpha.
Note that S.gamma..alpha..beta. is a tool axis vector (i.sub.t, j.sub.t, k.sub.t) at the positioning point P.sub.1, and that S.gamma..alpha..beta.=S.sub.c when the constraints are (0, 0, 0).
(c) Next, the H.gamma..alpha..beta.-V.gamma..alpha..beta.-S.gamma..alpha..beta. coordinate system obtained at step (b) is transformed into a coordinate system based on an initial setting by using the following formula: ##EQU1## The matrix M depends upon the initial state of the tool. FIG. 8 is a view illustrating the relationship between the initial state of the tool in the HVS coordinate system and the matrix M. Where the initial state is as shown in FIG. 6, the matrix is that of case 2 in FIG. 8.
(d) Thereafter, a matrix N is found for bringing the vector S.sub.i into coincidence with S'. The matrix N is obtained as set forth hereinbelow.
Let V.sub.VS represent a vector obtained by projecting the vector S' onto the S.sub.i -V.sub.i plane, and let V.sub.SH represent a vector obtained by projecting the vector S' onto the S.sub.i -H.sub.i plane, as shown in FIG. 9. An angle .theta. defined by vectors S.sub.i and V.sub.VS may then be obtained in accordance with the following equation:
.theta.=tan.sup.-1 (.vertline.S.sub.i *V.sub.VS .vertline./S.sub.i .multidot.V.sub.VS) (5)
where .multidot. signifies an inner product, and .vertline. .vertline. signifies absolute value. V.sub.VS is a normalized vector. Further, since Eq. (5) can be evaluated only when 0.ltoreq..theta..ltoreq..pi. holds, 0.ltoreq..theta..ltoreq..pi. shall hold when the inner products S.sub.i *(-V.sub.i) and S.sub.i *V.sub.VS are positive (same direction) and -.pi.<.theta..ltoreq.0 shall hold when these inner products are negative (opposite direction).
A matrix N.sub.1 for effecting rotation about the first axis (H.sub.i axis) by the angle .theta. is given by the equation ##EQU2##
Similarly, if the angle defined by the vector S.sub.i and the vector V.sub.SH is .theta.', a matrix N.sub.2 for effecting rotation about the second axis (V.sub.i axis) by the angle .theta.' is given by the equation ##EQU3##
Therefore, the matrix N for bringing the vector S.sub.i into coincidence with S' is as follows:
N=N.sub.1 .times.N.sub.2 (8)
(e) An H axis vector which results when the vectors S.sub.i and S' coincide is obtained from the equation
H.sub.i '=H.sub.i .times.N (9)
(f) If the angle defined by the vector H' and the vector H.sub.i ' is obtained by using Eq. (5), then this angle will be the twist angle R.
(g) When the angle R is obtained from the foregoing, the angles P, Q (FIG. 5) are calculated in accordance with the equation
.theta.=tan.sup.-1 (.vertline.S.sub.1 *S.sub.2 .vertline./S.sub.1 'S.sub.2) (10)
using the tool axis vector (i.sub.t, j.sub.t, k.sub.t). The angle P is .theta. when
S.sub.1 =(0, 1, 0), S.sub.2 =(0, j.sub.t, k.sub.t)
in Eq. (10), and the angle Q is .theta. when
S.sub.1 =(0, 0, 1), S.sub.2 =(i.sub.t, 0, k.sub.t)
in Eq. (10). The vector S.sub.2 uses a normalized vector, and .theta.=0 holds when .vertline.S.sub.2 .vertline.=0.
When P, Q, R are thus obtained, X, Y, Z, P, Q, R are subjected to a coordinate transformation, described below, to generate control axis position data for the robot used.
Assume that the robot is a so-called "Scheinman arm" having the six degrees of freedom shown in FIG. 10. In a Scheinman arm, the third degree of freedom is a sliding degree of freedom and the others are rotational degrees of freedom. Let the six link variables be expressed by .theta..sub.1, .theta..sub.2, S.sub.3, .theta..sub.4, .theta..sub.5 and .theta..sub.6. Let the coordinate system (workpiece coordinate system) that is fixed with respect to the floor be expressed by .SIGMA..sub.o (x.sub.o, y.sub.o, z.sub.o), and let the coordinate system that is fixed with respect to the hand be expressed by .SIGMA..sub.6 (x.sub.6, y.sub.6, z.sub.6).
In accordance with the present invention, the position data (.theta..sub.1, .theta..sub.2, S.sub.3, .theta..sub.4, .theta..sub.5 and .theta..sub.6) of the respective robot axes are obtained from the data (X, Y, Z, P, Q, R) by the following three transformations (first, second and third transformations): ##EQU4## where the vectors u, v, w are attitude vectors [the three fundamental axes of the tool coordinate system (X.sub.t, Y.sub.t, Z.sub.t)] of the tool attached to the hand, and the vectors l, m, n are the hand attitude vectors [the three fundamental axes of the hand coordinate system (X.sub.6, Y.sub.6, Z.sub.6)].
(a) Since P, Q, R are the angles of rotation about the respective axes, the tool attitude vectors are obtained in accordance with the following equation: ##STR1## The first transformation can be carried out by using Eq. (11). In the above equation, the alphabetic character C signifies the cosine value of the subscripts P, Q, R, and the alphabetic character S signifies the sine value of the subscripts P, Q, R. For example, C.sub.P means cosP, and S.sub.P means sinP.
(b) Matrix for transforming the tool coordinate system into the hand coordinate system
Since l.sub.o, m.sub.o, n.sub.o, which result when the respective axes attain setting values, can be calculated from setting values entered beforehand (here the metric values of each axis which prevail when the tool coordinate system becomes parallel to the robot coordinate system are entered), an inverse matrix (T).sup.-1 is obtained beforehand in accordance with the equation
(T).sup.-1 =(l.sub.o, m.sub.o, n.sub.o) (12)
The following will then hold at all times:
(u, v, w)=(l, m, n).times.(T)
(l, m, n)=(u, v, w).times.(T).sup.-1 (13)
Thus, the second transformation can be carried out in accordance Eq. (13). For the method of obtaining the above matrix T for a Scheinman arm, refer to the publication "bit Extra Edition", July, 1976 issue (Vol. 8, No. 8), pp. 99-102, published by Kyoritsu Shuppan K.K. on Jul. 15, 1976.
(c) If a position vector P of the origin O.sub.6 of the coordinate system (x.sub.6 -y.sub.6 -z.sub.6) fixed with respect to the hand of the Scheinman arm shown in FIG. 10 is expressed by ##EQU5## (the vector P is obtained from the tool tip position), then the mechanism of the Scheinman arm is one in which the rotational axes of the three links at the distal end portion pass through one point O.sub.5, as shown in FIG. 11(A). Therefore, from the relationships shown in FIG. 11(B), the robot axis position data .theta..sub.1, .theta..sub.2, S3 are given by the following set of equations: ##EQU6## where n is an attitude vector of the second axis of the hand coordinate system obtained from Eq. (13), and S.sub.1, S.sub.2, S.sub.6 are the lengths of the links. Further, the position data .theta..sub.4, .theta..sub.5, .theta..sub.6 of the other robot axes are readily obtained when .theta..sub.1, .theta..sub.2, S.sub.3 are been found. Accordingly, the third transformation can be carried out in accordance with Eq. (14).
FIG. 12 is a block diagram illustrating an embodiment of the present invention. Numeral 11 denotes a processor, 12 a ROM storing a control program, 13 a RAM, and 14 a CAD system which uses the shape of a workpiece and tool path data to calculate and output, offline, the position vector Pi (X.sub.i, Y.sub.i, Z.sub.i) of discrete tool tip positions on the workpiece along the tool path, as well as the workpiece normal line vector S.sub.i at the tool tip positions. Numeral 15 denotes an input unit for inputting the position vector P.sub.i and workpiece normal line vector S.sub.i created by the CAD system. Numeral 16 designates an operator's panel for inputting, in addition to other data, the constraints (attitude data) based on the type of robot task and the tool tip shape, 17 a non-volatile memory for storing parameters used to convert (X, Y, Z, .alpha., .beta., .gamma.) into the position data of the axes constituting the robot under control, 18 a pulse distributor, 19 the robot, 20 an interface circuit for supervising the exchange of data between the processor 11 and the robot 19, and 21 a servo circuit.
Data specifying the shape of the workpiece and data specifying the tool path are inputted to the CAD system 14, the position vector P.sub.i (X.sub.i, Y.sub.i, Z.sub.i) of the discrete tool tip positions on the workpiece along the tool path, and the workpiece normal line vector S.sub.i at the tool tip positions are calculated, and these are stored in advance on an external storage medium TPM, such as a floppy disc or magnetic bubble memory.
The data P.sub.i, S.sub.i stored on the external storage medium TPM are successively read out and stored in the RAM 13 by the input unit 15.
The constraints .alpha., .beta., .gamma. are decided by taking into consideration the task (painting, arc welding, sealing, spot welding, etc.) executed by the robot as well as the shape of the tool tip, these constraints are inputted from the operator's panel, and data specifying the initial state of the tool (the H.sub.i -V.sub.i -S.sub.i coordinate system based on the initial setting) are inputted and stored in the RAM 13.
All of the data specifying the robot control axis positions are stored in the RAM 13 through the foregoing steps.
If a start button (not shown) on the operator's panel 16 is now pressed, the processor 11 succussively reads the position vector P.sub.i, the normal vector S.sub.i, the constraints .alpha., .beta., .gamma. and the tool initial state data out of the RAM 13, and obtains the position data of each control axis of the robot by executing the calculations of Eqs. (1)-(14) using the parameters stored in the non-volatile memory 17.
Once the position data of each control axis of the robot have been obtained through the foregoing steps, the processor 11 uses these position data to obtain incremental quantities for each axis and then outputs these quantities to the pulse distributor 18. The latter executes a pulse distribution calculation to generate distributed pulses. The servo circuit 21 drives each control axis of the robot in response to these distributed pulses. When each control axis reaches a commanded position, the next position vector and normal line vector are read out of the RAM 13 and the tool is subsequently moved along the commanded tool path as set forth above.
In the case described above, the data (X.sub.i, Y.sub.i, Z.sub.i, .alpha., .beta., .gamma.) obtained offline along the tool path are successively fed into the robot control unit, in which these data are converted into the axis data of the robot to be controlled, whereby each axis is controlled. However, it is also possible to adopt an arrangement in which the data (X.sub.i, Y.sub.i, Z.sub.i, .alpha., .beta., .gamma.) are converted into the axis data of the robot to be controlled and each axis of the robot is controlled by using the data resulting from the conversion.
Furthermore, the constraints .alpha., .beta., .gamma. are not limited to the case indicated by the embodiment.
In the case described above, the robot control axis position data are obtained from the data (X, Y, Z, P, Q, R) for the Scheinman arm. However, robot control axis position data can be calculated using the data (X, Y, Z, P, Q, R) for robots having other constructions as well. Accordingly, it will suffice if the transformation equations conforming to the robot to be controlled are stored in the robot control unit in advance.
According to the present invention as described above, data specifying the shape of a workpiece and data specifying the attitude of a tool conforming to the task to be executed by a robot are entered, the position (X, Y, Z) of the tool tip in the workpiece coordinate system is calculated by using the data specifying the workpiece shape, the tool attitude data are converted into tool direction data (P, Q, R) in the workpiece coordinate system, and data (X, Y, Z, P, Q, R) comprising the direction data and the data specifying the tool tip position are converted into robot control axis data of the robot to be controlled. As a result, universal robot control axis position data can be created offline and without teaching. In addition, since the tool tip position from among the position data can be calculated automatically by a CAD system, and since the tool attitude is uniquely determined by the task which the robot executes or by the shape of the tool, position data that enable the task to be performed with uniform precision can be created more simply, and without danger, compared to the teaching method.
Claims
  • 1. A method of generating and storing robot control axis positions and controlling a robot therefrom, said method comprising the steps of:
  • a) receiving, input to a CAD system, a workpiece shape and a tool attitude conforming to a task to be executed by a robot and storing the workpiece shape and the tool attitude in a RAM;
  • b) calculating, by the CAD system, a tool tip portion in a workpiece coordinate system by using the workpiece shape;
  • c) specifying the position of each axis constituting the robot by using the tool tip position and the tool attitude and storing the position of each axis in the RAM;
  • d) successively specifying positions of each control axis of the robot along a tool path and storing the positions of each control axis along the tool path in the RAM; and
  • e) controlling the robot based on the positions of each control axis of the robot along the tool path stored in the RAM.
  • 2. A method according to claim 1, wherein said step d) comprises the substeps of:
  • (d1) receiving, input to the CAD system, the tool path, and
  • (d2) successively specifying the positions of each control axis of the robot along the tool path.
  • 3. A method of generating and storing robot control axis positions and controlling a robot therefrom, said method comprising the steps of:
  • a) receiving, input to a CAD system, a workpiece shape and a tool attitude conforming to a task to be executed by a robot and storing the workpiece shape and the tool attitude in a memory;
  • b) calculating, by the CAD system, a tool tip portion of a tip of the tool in a workpiece coordinate system by using the workpiece shape;
  • c) specifying the position of each axis constituting the robot by using the tool tip portion and the tool attitude and storing the position of each axis in a memory;
  • d) successively specifying positions of each control axis of the robot along a tool path and storing the positions of each control axis along the tool path in a memory, the positions of each control axis specifying the tool attitude including angles .alpha., .beta., which indicate deviations of a central axis of the tool from the direction of a workpiece normal line at the tool tip position and a twist angle .gamma. indicating an amount of tool tip twist; and
  • e) controlling the robot based on the positions of each control axis along the tool path stored in the memory in said step d).
  • 4. A method according to claim 3, further comprising the steps of:
  • f) converting the tool attitude into a tool direction data (P, Q, R) in the workpiece coordinate system; and
  • g) converting data (X, Y, Z, P, Q, R) comprising the tool direction data and data specifying the tool tip position (X, Y, Z) into position data in a coordinate system of the robot on the basis of the type of robot to be controlled and data specifying dimensions of the robot.
Priority Claims (1)
Number Date Country Kind
59-220081 Oct 1984 JPX
Parent Case Info

This application is a continuation of application No. 06/881,033, filed Jun. 16, 1986, now abandoned.

PCT Information
Filing Document Filing Date Country Kind 102e Date 371c Date
PCT/JP85/00585 10/18/1985 6/16/1986 6/16/1986
Publishing Document Publishing Date Country Kind
WO86/02469 4/24/1986
US Referenced Citations (5)
Number Name Date Kind
4429266 Tradt Jan 1984
4491906 Kishi et al. Jan 1985
4497029 Kiyokawa Dec 1985
4558977 Inoue et al. Dec 1985
4572998 Nozawa et al. Feb 1986
Foreign Referenced Citations (1)
Number Date Country
124357 Jan 1975 JPX
Continuations (1)
Number Date Country
Parent 881033 Jun 1986