METHOD OF CONTROLLING A ROBOT

Abstract: A moving component of a robot, such as a robot arm, is controlled to return from a given position (D) to an original point (A) after the moving component has traced paths established respectively by a group of successive motion data blocks (1,2,3,4) including positional data representative of positions of the moving component. The moving component is moved on the basis of positional data in one of the motion data blocks which precedes a present position of said moving component, and then is moved on the basis of positional data in one of said motion data blocks which precedes said first-mentioned one of the motion data blocks. Therefore, the moving component is moved successively backwards along the paths based on the positional data in the motion data blocks (1,2,3,4).

Description: The present invention relates to a method of controlling a robot, and more particularly to a method of controlling a playback robot of the type in which major points or positions in space are instructed or recorded to establish a path that the robot should trace, the method being capable of moving the robot back to the original point or position along a predetermined path. From FR-A-1549627 there is known a method of controlling the movement of the toolholder of an automatic machine tool from a point of tool failure to a fixed reference point and returning the toolholder along the same path to the point of failure. Positional data is encoded on an information carrier in the form of a series of primary and auxiliary data sets, the auxiliary data sets being selected when tool failure occurs to move the toolholder to the fixed reference point. The toolholder may then be returned to the failure point along the same path by driving the data carrier in the opposite direction. Speed of movement may be increased by increasing the speed at which the data carrier is driven. Playback robots which are generally used as robots for repeating certain operations operate on the information which they have previously been taught. According to one method of instructing such a playback robot, items of information such as positions in space and speeds of travel are successively stored in a computer, and when a command is given to start the operation, the stored items of information are successively read out from the computer to enable the robot to carry out the operation based on the stored information. Controlling such a playback robot will be described by way of example with reference to FIGS. 1 and 2 of the accompanying drawings. For moving a moving component or an end effector of a robot, such as an arm, from a position A to a position D while avoiding an obstacle 2 as shown in FIG. 1, the moving component may be instructed to move from the position A to a position B, to a position C and then to the position D without hitting the obstacle 2. For such robot control, a control mechanism for controlling the movement of the moving component is required to store at least positional data representing the positions A through D as target points. More specifically, when teaching the robot, a teaching device such as a teaching box or teaching pendant is operated by a human operator to establish motion data for each step of travel of the moving component. The motion data thus established is schematically illustrated in FIG. 2. Data for instructing a position or a movement step for the moving component is referred to as a motion data block, which will be employed in the following description. The moving component starts moving from the position A, and hence the position A is essentially equivalent to an original point. Positional data P A for positioning the moving component in the original point A constitutes a motion data block 1. A motion data block 2 for moving the moving component from the original point A to the position B includes positional data P B for indicating a target point and velocity data V B for indicating a velocity at which the moving component is to travel from the original point A to the position B. A motion data block 3 for moving the moving component from the position B to the position C includes positional data P C for indicating a target point and velocity data V C for indicating a velocity at which the moving component is to travel from the position B to the position C. Similarly, a motion data block 4 includes positional data P D corresponding to the position D and velocity data V D for indicating a velocity for movement from the position C to the position D. Therefore, the moving component of the robot is displaced according to the group of the successive motion data blocks 1 through 4. Paths of travel between the positions A through D are automatically determined by calculations using predetermined interpolation formulas. Each of the motion data blocks is executed to ascertain whether the data contents thus taught are appropriate or not. If an error is found, the motion data block including the error is corrected. For example, when changing the path from the original point A to the position D after the moving component has been moved to the position D, the moving component is moved back to the original point A and new motion data blocks are established. With a command to return the moving component from the position D to the original point A, the moving component would generally move along a straight line from the position D to the original point A as indicated by the dotted line in FIG. 1, resulting in a collision between the moving component and the obstacle 2. In reality, therefore, it is necessary to first move the moving component to a position E from which it could reach the origin A along a straight line without hitting the obstacle 2, and then to command the moving component to return to the original point A. To move the moving component from the position D to the position E, the robot must be driven sequentially through manual operation of a human operator. However, where an obstacle of a complex shape or a plurality of obstacles are located closely to the robot, it is difficult to control the robot manually. It is highly complex to manually operate the robot which has a plurality of degrees of freedom. Unless such manual operation were properly carried out, the robot would be highly likely to collide with the obstacle. Therefore, the operator is required to strain to manually operate the robot and has to be highly skilled in the manual operation of the robot. It is a major object of the present invention to provide a method of controlling a robot which is operable based on motion data blocks to return automatically to an original point by moving back along an established path without an accident such as a collision with an obstacle. Accordingly the present invention provides a method of controlling the moving component of a robot to return from a given position (D) to an original point (A), after the moving component has traced paths in moving from original point (A) to given position (D), established respectively by a group of successive motion data blocks (1,2,3,4), each said motion data block including positional data representative of positions of the moving component, the moving component being sequentially moved back along said paths from the given position (D) to the original point (A), characterised in that each said motion data block (2,3,4), except for the motion data block (1) corresponding to the original point (A), further includes velocity data for indicating a velocity at which said moving component is to travel up to the position indicated by the positional data in each said motion block, movement of the moving component from the given position (D) to the original point (A) being based on positional data in the motion block which immediately precedes, when the order of the data blocks is considered in the same order as in moving the component from point (A) to position (D), the present position of said moving component and at a velocity based on the velocity data in the motion data block corresponding to the present position, whereby the moving component arrives at said original point based on the positional and velocity data in said motion data blocks. The above and other objects, features and advantages of the present invention will become more apparent from the following description when taken in conjunction with the accompanying drawings in which a preferred embodiment of the present invention is shown by way of illustrative example. FIG. 1 is a schematic view showing, by way of example, paths traced by a moving component of a robot; FIG. 2 is a diagram of a group of motion data blocks for moving the moving component along one of the paths shown in FIG. 1; and FIG. 3 is a flowchart of a subroutine for carrying out a robot control method according to the present invention. FIG. 3 shows a subroutine which is programmed in a computer for carrying out a method of the present invention. For starting the returning to an original point of a moving component of a robot which has been moved to a desired position based on a group of motion data blocks, a command is issued in a step a to read out the positional data in a motion data block preceding the finally executed motion data block, i.e., the motion data block corresponding to the present position of the moving component. Then, a step b ascertains whether the positional data has been read in the step a or not. If the positional data has been read, then the velocity data in the motion data block corresponding to the present position of the moving component and the positional data in the preceding motion data block are issued in a step c . Thereafter, a step d ascertains whether the movement of the moving component based on the velocity data and the positional data that have been issued in the step c has been completed or not. If the movement of the moving component has been completed, then the processing returns to the step a and executes the above steps. If not completed, then the step d is repeated until the movement of the moving component is completed. If no positional data has been read out in the step b , then the entire process of returning the moving component to the original point is finished. The robot control method according to the present invention is essentially effected according to the above procedure. A process of returning a moving component of a robot from the motion data block 4 (FIG. 2) to the original point according to the robot control method of the invention, using the motion data blocks of FIG. 2, will be described below. For returning the moving component to the original point A after the moving component has been moved to the position D based on the motion data blocks shown in FIG. 2, the step a is executed first, i.e., a command is issued to read out the positional data in the preceding motion data block which is the motion data block 3. Then, the step b determines whether the positional data has been read out or not as a result of the execution of the step a . Since the positional data P C has been read out in the step a , the step b is followed by the step c which issues the velocity data V D in the motion data block 4 and the positional data P C in the motion data block 3. As a result, the moving component is moved from the position D to the position C based on the velocity data V D . When the movement is completed, then the processing goes from the step d back to the step a . The step a then reads out the positional data P B in the motion data block 2. The processing goes from the step a via the step b to the step c which issues the velocity data V C in the motion data block 3 and the positional data P B in the motion data block 2. The moving component is now moved from the position C to the position B based on the velocity data V C . If the step d determines that the movement has been completed, then the step a is executed again. The positional data P A in the motion data block a is read out in the step a , which is followed successively by the steps b and c . The step c issues the velocity data V B in the motion data block 2 and the positional data P A in the motion data block 1. The moving component now returns from the position B to the original point A based on the velocity data V B . The step d is then followed by the successive steps a and b . Since no motion data block is present before the motion data block 1, the result of the decision in the step b is NO, and the processing of returning to the original point is finished. Inasmuch as the moving component of the robot moves from the position D to the position C to the position B to the position A, the moving component is prevent from being colliding with the obstacle 2. No complex manual operation of the robot is required because the processing of returning to the original point can automatically be effected simply by executing the program based on the flowchart of FIG. 3. While in the illustrated embodiment the velocities at which the moving component returns to the origin are successively established by issuing the velocity data corresponding to the respective movement zones, it is possible to uniformize the velocities in the respective movement zones during returning movement to the origin. With the arrangement of the present invention, for moving back to an original point a moving component of a robot which is moved according to a group of motion data blocks, individual positional data in the motion data blocks are successively read out backwards. Therefore, the moving component is moved back to the original point by tracing back the preset path, without hitting any obstacle. The robot control method of the present invention is also quite simple, not requiring the conventional manual complex operation, since the method can automatically be effected by a simple program subroutine. Although a certain preferred embodiment has been shown and described, it should be understood that many changes and modifications may be made therein without departing from the scope of the appended claims.

Claims: A method of controlling the moving component of a robot to return from a given position (D) to an original point (A), after the moving component has traced paths in moving from original point (A) to given position (D), established respectively by a group of successive motion data blocks (1,2,3,4), each said motion data block including positional data representative of positions of the moving component, the moving component being sequentially moved back along said paths from the given position (D) to the original point (A), characterised in that each said motion data block (2,3,4), except for the motion data block (1) corresponding to the original point (A), further includes velocity data for indicating a velocity at which said moving component is to travel up to the position indicated by the positional data in each said motion block, movement of the moving component from the given position (D) to the original point (A) being based on positional data in the motion block which immediately precedes, when the order of the data blocks is considered in the same order as in moving the component from point (A) to position (D), the present position of said moving component and at a velocity based on the velocity data in the motion data block corresponding to the present position, whereby the moving component arrives at said original point based on the positional and velocity data in said motion data blocks. A method according to claim 1, wherein the velocities at which the robot returns to the original point (A) are uniform in respective movement zones.

Inventors: NAKAMOTO, TOSHINORI, TAKEYAMA, KOSEI
Applicants: TOSHIBA KIKAI KABUSHIKI KAISHA
Application year: 1986
Main classification: G05B19
IPC codes: B25J9, G05B19