METHOD OF CONTROLLING STOP OF INDUSTRIAL ROBOT

Abstract: A method of controlling stop of an industrial robot having a plurality of axes driven by servomotors in which the robot is stopped after sensing of colliding with a foreign object. The monitoring of a positional deviation value (S11) of the servomotor with respect to which a collision is sensed is stopped and a command to make the speed of the servomotor zero is issued (S12). Thereby, reverse torque is generated (S13) and the speed of the servomotor begins to decrease. After the predetermined lapse of time (S14), the monitoring of the positional deviation value is restarted (S15). When the positional deviation value exceeds a predetermined value (S31) an alarm is issued (S32). Then, the currents of all the servomotors are cut off (S33) and the operation of the robot is stopped in a short time.

Description: The present invention relates to a method of stopping an industrial robot after the industrial robot collides with an object, and more particularly to a method of stopping an industrial robot for increased safety. Background Art When an industrial robot (hereinafter referred to as a "robot") collides with foreign matter due to a teaching process error or the like, it is necessary to stop the operation of the robot for the safety of the operator and the protection of the robot. It is customary to apply a speed command of nil to the servomotor associated with each axis with respect to which the collision has been detected, thereby producing a reverse torque to stop the operation of the robot in as short a period of time as possible. For an axis with respect to which no collision is detected, an alarm is issued after a position deviation or error, which is the difference between a position command for the servomotor and an actual position thereof, takes a value greater than a predetermined value, thus cutting off the drive current supplied to the servomotor. According to the above conventional process, since a collision is detected with respect to each axis, and a reverse torque is applied to any axis with respect to which a collision is detected, the operation of the axis is stopped in a short period of time. For an axis with respect to which no collision is detected, however, its operation based on a motion command is continued until the position command for the axis exceeds a predetermined value and an alarm is issued. Therefore, the robot moves along a path different from a taught path, resulting in a safety failure. Inasmuch as the de-energization of the servomotor for the axis with respect to which no collision is detected is delayed, the complete stoppage of the robot is also delayed. GB-A-2106279 discloses a method for detecting an irregularity in the operation of an industrial robot. In view of the aforesaid drawbacks of the conventional industrial robots, it an object of the present invention to provide a method of stopping an industrial robot within a short period of time for an axis with respect to which no collision is detected. To accomplish the above object, there is provided in accordance with the present invention a method of stopping an industrial robot having a plurality of axes drivable by respective servomotors, after a collision of the industrial robot with foreign matter is detected, said method comprising the steps of: setting a speed command for the servomotor for the axis with respect to which the collision is detected, to "0", thereby producing reverse torque to stop rotation of said servomotor; calculating a position error as the difference between a position command applied to said servomotor and an actual position thereof, after the elapse of a predetermined period of time; activating an alarm if the position error of said servomotor exceeds a predetermined value, or if the position error of another servomotor exceeds the predetermined value; and cutting off currents supplied to all the servomotors, thereby stopping movement of said industrial robot. The monitoring of a position error of a servometer for the axis with respect to which the collision is detected is stopped, and a speed command is set to "0". A reverse torque is generated to decelerate and stop the servomotor. After elapse of a predetermined period of time, the monitoring of a position error is resumed. If the position error exceeds a predetermined value, then an alarm is activated. For the axis with respect to which the collision is not detected, the monitoring of a position error is continued, and an alarm is activated if the position error exceeds the predetermined value. Currents supplied to all the servomotors are cut off with whichever alarm is activated first. Generally, an alarm is generated earlier for an axis with respect to which a collision occurs, but an alarm for another axis may be generated earlier depending on the nature of the collision. When the collision is detected for an axis, a current supplied to the servomotor for that axis is cut off after elapse of a predetermined period of time, and the host processor is informed of the collision. The host processor produces a command to cut off currents supplied to other servomotors. The currents supplied to all the servomotors are thus cut off, stopping operation of the robot. Brief Description of the Drawings FIG. 1 is a flowchart of the processing sequence of a method of stopping an industrial robot according to an embodiment of the present invention; FIG. 2 is a flowchart of the processing sequence of a method of stopping an industrial robot according to another embodiment of the present invention; FIG. 3 is a perspective view of a horizontally articulated robot for a high-speed palletizing process; and FIG. 4 is a block diagram of a hardware arrangement of a robot control system to which the present invention is applicable. Best Mode for Carrying Out the Invention An embodiment of the present invention will hereinafter be described with reference to the drawings. FIG. 3 shows a horizontally articulated robot for a high-speed palletizing process. The horizontally articulated robot, generally denoted at 1, includes a robot base 1a having an Z-axis servomotor and a mechanism for vertically moving an arm 2 and components coupled thereto. The arm 2 can be rotated about a q-axis by a servomotor 3. An arm 4 rotatably coupled to the arm 2 can be rotated about a U-axis by a servomotor 5. The arm 4 supports on its distal end a wrist 6 that can be rotated about an a-axis. A hand attached to the wrist 6 for effecting a palletizing process is omitted from illustration. The robot 1 serves to palletize workpieces 8a, 8b, 8c, 8d on a table 7. The robot 1 is electrically connected to a robot control system 10 by a cable 10a, and a teach control panel 9 is electrically connected to the robot control system 10. FIG. 4 shows in block form the robot control system 10. The robot control system 10 includes a host processor 11 for controlling the robot control system 10 in its entirety. The host processor 11 writes robot position commands into a common RAM 12. A ROM, a RAM, and other devices connected to the host processor 11 are omitted from illustration in FIG. 4. A DSP (Digital Signal Processor) 13 operates according to a system program stored in a ROM 14, to read a position command from the common RAM 12 at predetermined time intervals, and applies the position command to an axis control circuit (AXC) 16. Necessary calculations or the like are carried out using a RAM 15. The AXC 16 calculates a speed command from a position error or deviation according to the difference between the position command and a position fed back from a pulse coder (not shown) in a servomotor 22. The AXC 16 also differentiates the position fed back from the pulse coder into a speed, and calculated a current command from the difference between the calculated speed and the speed command. The AXC 16 applies the calculated current command to a servoamplifier 21 to energize the servomotor 22. The DSP 13 detects a collision based on a change in the speed and the current of the servomotor 22, and cuts off the current supplied to the servomotor 22. Since the servomotors of the industrial robots are controlled by identical control systems, only the control system for one axis is illustrated in FIG. 4. The detection of a collision will be described below. According to a first process of detecting a collision, a collision is detected based on a change in the speed of the servomotor 22. Specifically, the change in the speed of the servomotor 22 in the event of a collision is large than a speed change caused by normal acceleration or deceleration. The collision is detected based on this change in the speed. The specific value of the change in the speed varies depending on the servomotor or the load on the servomotor. According to a second process of detecting a collision, a collision is detected based on a load current of the servomotor 22. In the event of a collision, the load on the servomotor 22 increases, and the load current of the servoamplifier 21 abruptly increases. When the load current exceeds a certain value, the condition is detected as a collision. When the servomotor 22 is accelerated or decelerated, since the load current is also increased by a load inertia, the load current due to the load inertia is deducted from the overall load current for determining a collision. FIG. 1 is a flowchart of the processing sequence of a method of stopping the industrial robot 1 according to an embodiment of the present invention. Numerals following the letter "S" in FIG. 1 represent step numbers. The processing sequence is executed by the DSP 13 shown in FIG. 4. [S1] Motion commands are issued to the respective servomotors. [S2] The servomotors are rotated to operate the robot 1. [S3] If a collision with foreign matter is detected, then control goes to a step S11 for an axis with respect to which the collision is detected, and to a step S21 for an axis with respect to which the collision is not detected. If no collision is detected in the step S3, then control goes back to the step S1 to repeat the sequence therefrom. [S11] For the axis with respect to which the collision is detected, the monitoring of a position error or deviation is stopped. If the monitoring of a position error were continued, a position error alarm would be activated, and it would not be able to stop the servomotor with a reverse torque in a short period of time. [S12] The speed command applied to the servomotor is set to "0". [S13] A reverse torque is generated to stop the servomotor in a short period of time. [S14] This step determines whether a time X counted by a timer exceeds a predetermined time T. If the time X exceeds the time T, then control proceeds to a step S15, and if the time X does not exceeds the time T, then control goes back to the step S12. [S15] The monitoring of a position error is resumed. Since the motion command is continuously applied to the servomotor, the position error is abruptly increased with the speed command being set to "0" to apply a reverse torque to the servomotor. [S21] For the axis with respect to which the collision is not detected, the monitoring of a position error is continued. [S31] This step determines whether the position error Ep exceeds a predetermined value E for both the axis with respect to which the collision is detected and the axis with respect to which the collision is not detected. If the position error Ep exceeds the predetermined value E, then control goes to a step S32. If the position error Ep does not exceed the predetermined value E, then control goes back to the step S11 for the axis with respect to which the collision is detected, and to the step S21 for the axis with respect to which the collision is not detected. [S32] Since the position error Ep exceeds the predetermined value E, an excess position error alarm is activated. Generally, an excess position error alarm is generated for an axis with respect to which a collision is detected. However, depending on the magnitude of a collision, an excess position error alarm may be generated in advance for an axis with respect to which a collision is not detected. At any rate, the same processing will follow for any axes regardless of whether a collision is detected or not with respect thereto. [S33] The currents supplied to the servomotors associated with all the axes are cut off by turning off power supply switches of the servoamplifiers. All the servomotors are now de-energized, stopping the operation of the robot. FIG. 2 is a flowchart of the processing sequence of a method of stopping the industrial robot 1 according to another embodiment of the present invention. [S41] Motion commands are issued to the respective servomotors. [S42] The servomotors are rotated to operate the robot 1. [S43] If a collision with foreign matter is detected, then control goes to a step S51 for an axis with respect to which the collision is detected. [S51] For the axis with respect to which the collision is detected, the monitoring of a position error or deviation is stopped. If the monitoring of a position error were continued, a position error alarm would be activated, and it would not be able to stop the servomotor with a reverse torque in a short period of time. [S52] The speed command applied to the servomotor is set to "0". [S53] A reverse torque is generated to stop the servomotor in a short period of time. [S54] This step determines whether a time X counted by a timer exceeds a predetermined time T. If the time X exceeds the time T, then control proceeds to a step S55, and if the time X does not exceeds the time T, then control goes back to the step S52. [S55] The current supplied to the servomotor for the axis with respect to which the collision is detected is cut off, i.e., the power supply switch of the servoamplifier is turned off, and control proceeds to a step S71. [S61] A host processor is informed of the detection of the collision. [S62] The host processor instructs the servoamplifiers through the respective DSPs to cut off the currents for the axes with respect to which the collision is not detected. [S63] The power supply switches of the servoamplifiers are turned off. [S71] The power supply switches of all the servoamplifiers are turned off, and a servo alarm is activated and displayed on a display unit. While the process of stopping the palletizing robot after it has collided with foreign matter has been described above, the present invention is also applicable to other robots such as welding robots and assembling robots. With the present invention, as described above, a reverse torque is applied to an axis with respect to which a collision is detected, and after a predetermined period of time has elapsed, an excess position error is detected for de-energizing all servomotors. Therefore, all the servomotors can be de-energized in a short period of time after the collision. Since the axis with respect to which the collision is detected is stopped after the predetermined period of time, and the other axes are also stopped through the host processor, all the servomotors can be de-energized in a short period of time after the collision.

Claims: A method of stopping an industrial robot (1) having a plurality of axes drivable by respective servomotors (22), after a collision of the industrial robot with foreign matter is detected, said method comprising the steps of: setting a speed command for the servomotor (22) for the axis with respect to which the collision is detected, to "0", thereby producing reverse torque to stop rotation of said servomotor; calculating a position error as the difference between a position command applied to said servomotor and an actual position thereof, after the elapse of a predetermined period of time; activating an alarm if the position error of said servomotor exceeds a predetermined value, or if the position error of another servomotor exceeds the predetermined value; and cutting off currents supplied to all the servomotors, thereby stopping movement of said industrial robot.

Inventors: HAMURA MASAYUKI, ITO SUSUMU, SAKAI TAMOTSU, TORII NOBUTOSHI, HAMURA, MASAYUKI, FANUC MANSION HARIMOMI 8-103, ITO, SUSUMU, FANUC MANSION HARIMOMI 7-204, SAKAI, TAMOTSU, TORII, NOBUTOSHI
Applicants: FANUC LTD
Application year: 1991
Main classification: B25J19
IPC codes: B25J9, B25J13, B25J19