How to control a robot

The robot control method addresses inefficiencies by setting determination criteria based on previous work results to adjust operation timings and use force control, ensuring accurate and efficient assembly despite variations in workpiece conditions.

JP7547940B2Active Publication Date: 2024-09-10SEIKO EPSON CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020183021
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-09-10
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Existing robot control methods are inefficient and prone to applying excessive loads due to variations in workpiece size, initial position, and installation, leading to prolonged work times.

Method used

A method for controlling a robot that includes setting determination criteria for terminating position or posture changes based on previous work results, adjusting operation switching timings to account for environmental changes, and utilizing force control to manage load application.

Benefits of technology

This approach allows for accurate and efficient robot operations by minimizing work time and preventing excessive loads, even with varying work environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000016_0000
    Figure 00000016_0000
  • Figure 00000016_0001
    Figure 00000016_0001
  • Figure 00000016_0002
    Figure 00000016_0002
Patent Text Reader

Abstract

To provide a control method of a robot which can accurately and rapidly carry out assembly work.SOLUTION: A control method of a robot having a robot arm includes: a first step in which the robot arm carries out work for holding a first object and assembling the first object and a second object while changing a position or posture of the first object; and a second step in which a determination reference as a reference to start changing the position or posture of the first object or finish changing the position or posture of the first object is set on the basis of information on the position or posture of the first object during the work in the first step.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for controlling a robot. [Background technology]

[0002] For example, as shown in Patent Document 1, a robot is known that has a robot arm and a force detection unit that detects a force applied to the robot arm, and performs force control to drive the robot arm based on the detection result of the force detection unit to perform a predetermined task. With such a robot, various tasks are realized by previously setting a position or posture where the moving direction, speed, etc. of the workpiece being held changes when performing the task. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 8-194521 Summary of the Invention [Problem to be solved by the invention]

[0004] However, when actually repeating the work, it is expected that various elements such as the workpiece size variation, the initial position of the workpiece, the installation position of the workpiece, etc. will vary from work to work. In the method described in Patent Document 1, the influence of such variations may result in a relatively long time required for the work or an excessive load being placed on the workpiece. [Means for solving the problem]

[0005] A method for controlling a robot of the present invention is a method for controlling a robot having a robot arm, comprising the steps of: a first step of performing an operation of assembling a first object and a second object by the robot arm while changing a position or a posture of the first object; and a second step of setting a judgment criterion that is a standard for starting to change the position or posture of the first object or for ending the change in the position or posture of the first object, based on information on the position or posture of the first object during the work in the first step. [Brief description of the drawings]

[0006] [Figure 1] FIG. 1 is a diagram showing the overall configuration of a robot system for executing a robot control method of the present invention. [Diagram 2] FIG. 2 is a block diagram of the robot system shown in FIG. [Diagram 3] 3A to 3C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Figure 4] 4A to 4C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Diagram 5] 5A to 5C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Figure 6] 6A to 6C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Figure 7] 7A to 7C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Figure 8] 8A to 8C are cross-sectional views for sequentially explaining an example of an operation executed by the robot system shown in FIG. [Figure 9] FIG. 9 is a flowchart for explaining a control operation executed by the robot system shown in FIG. [Figure 10] Figure 10 is a graph showing the work results for each task. [Figure 11] FIG. 11 is a block diagram for explaining the robot system with a focus on the hardware. [Figure 12] FIG. 12 is a block diagram showing Modification 1 focusing on the hardware of the robot system. [Figure 13] FIG. 13 is a block diagram showing Modification 2 focusing on the hardware of the robot system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] <Embodiment> Fig. 1 is a diagram showing the overall configuration of a robot system that executes a robot control method of the present invention. Fig. 2 is a block diagram of the robot system shown in Fig. 1. Figs. 3 to 8 are cross-sectional views for sequentially explaining an example of work executed by the robot system shown in Fig. 1. Fig. 9 is a flowchart for explaining the control operation executed by the robot system shown in Fig. 1. Fig. 10 is a graph showing the work results for each number of work attempts.

[0008] A method for controlling a robot will be described in detail below based on a preferred embodiment shown in the accompanying drawings. For ease of explanation, the +Z-axis direction in FIG. 1, i.e., the upper side, will be referred to as "upper", and the -Z-axis direction, i.e., the lower side, will be referred to as "lower". As for the robot arm, the base 11 side in FIG. 1 will be referred to as the "base end", and the opposite side, i.e., the end effector side, will be referred to as the "tip". The Z-axis direction in FIG. 1, i.e., the up-down direction, will be referred to as the "vertical direction", and the X-axis and Y-axis directions, i.e., the left-right direction, will be referred to as the "horizontal direction".

[0009] As shown in FIG. 1, a robot system 100 includes a robot 1, a control device 3 that controls the robot 1, and a teaching device 4, and executes the robot control method of the present invention.

[0010] First, the robot 1 will be described. 1 is a single-arm, six-axis vertical articulated robot in this embodiment, and includes a base 11 and a robot arm 10. An end effector 20 can be attached to the tip of the robot arm 10. The end effector 20 may or may not be a component of the robot 1.

[0011] The robot 1 is not limited to the configuration shown in the figure, and may be, for example, a dual-arm articulated robot or a horizontal articulated robot.

[0012] The base 11 is a support that drivably supports the robot arm 10 from below, and is fixed to, for example, a floor in a factory. The base 11 of the robot 1 is electrically connected to the control device 3 via a relay cable 18. Note that the connection between the robot 1 and the control device 3 is not limited to a wired connection as in the configuration shown in Fig. 1, and may be, for example, a wireless connection, or may be connected via a network such as the Internet.

[0013] In this embodiment, the robot arm 10 has a first arm 12, a second arm 13, a third arm 14, a fourth arm 15, a fifth arm 16, and a sixth arm 17, which are connected in this order from the base 11 side. The number of arms of the robot arm 10 is not limited to six, and may be, for example, one, two, three, four, five, or seven or more. The size of each arm, such as the overall length, is not particularly limited, and can be set appropriately.

[0014] The base 11 and the first arm 12 are connected via a joint 171. The first arm 12 is rotatable about a first rotation axis parallel to the vertical direction with respect to the base 11. The first rotation axis coincides with the normal line of the floor to which the base 11 is fixed.

[0015] The first arm 12 and the second arm 13 are connected via a joint 172. The second arm 13 is rotatable about a second rotation axis parallel to the horizontal direction with respect to the first arm 12. The second rotation axis is parallel to an axis perpendicular to the first rotation axis.

[0016] The second arm 13 and the third arm 14 are connected via a joint 173. The third arm 14 is rotatable about a third rotation axis parallel to the horizontal direction as a rotation center with respect to the second arm 13. The third rotation axis is parallel to the second rotation axis.

[0017] The third arm 14 and the fourth arm 15 are connected via a joint 174. The fourth arm 15 is rotatable relative to the third arm 14 about a fourth rotation axis that is parallel to the central axial direction of the third arm 14. The fourth rotation axis is perpendicular to the third rotation axis.

[0018] The fourth arm 15 and the fifth arm 16 are connected via a joint 175. The fifth arm 16 is rotatable about a fifth rotation axis relative to the fourth arm 15. The fifth rotation axis is perpendicular to the fourth rotation axis.

[0019] The fifth arm 16 and the sixth arm 17 are connected via a joint 176. The sixth arm 17 is rotatable about a sixth rotation axis relative to the fifth arm 16. The sixth rotation axis is perpendicular to the fifth rotation axis.

[0020] The sixth arm 17 is a robot tip portion located at the most distal end side of the robot arm 10. The sixth arm 17 can rotate together with the end effector 20 by being driven by the robot arm 10.

[0021] The robot 1 includes motors M1, M2, M3, M4, M5, and M6 as driving units, and encoders E1, E2, E3, E4, E5, and E6. The motor M1 is built into the joint 171 and rotates the base 11 and the first arm 12 relative to each other. The motor M2 is built into the joint 172 and rotates the first arm 12 and the second arm 13 relative to each other. The motor M3 is built into the joint 173 and rotates the second arm 13 and the third arm 14 relative to each other. The motor M4 is built into the joint 174 and rotates the third arm 14 and the fourth arm 15 relative to each other. The motor M5 is built into the joint 175 and rotates the fourth arm 15 and the fifth arm 16 relative to each other. The motor M6 is built into the joint 176 and rotates the fifth arm 16 and the sixth arm 17 relative to each other.

[0022] Additionally, encoder E1 is built into joint 171 and detects the position of motor M1. Encoder E2 is built into joint 172 and detects the position of motor M2. Encoder E3 is built into joint 173 and detects the position of motor M3. Encoder E4 is built into joint 174 and detects the position of motor M4. Encoder E5 is built into joint 175 and detects the position of motor M5. Encoder E6 is built into joint 176 and detects the position of motor M6.

[0023] The encoders E1 to E6 are electrically connected to the control device 3, and position information of the motors M1 to M6, i.e., the amount of rotation, is transmitted as an electric signal to the control device 3. Then, based on this information, the control device 3 drives the motors M1 to M6 via a motor driver (not shown). In other words, controlling the robot arm 10 means controlling the motors M1 to M6.

[0024] In addition, a control point CP is set at the tip of the robot arm 10. The control point CP is a point that serves as a reference when controlling the robot arm 10. In the robot system 100, the position of the control point CP is grasped in the robot coordinate system, and the robot arm 10 is driven so that the control point CP moves to a desired position.

[0025] In addition, in the robot 1, a force detection unit 19 that detects a force is detachably installed on the robot arm 10. The robot arm 10 can be driven with the force detection unit 19 installed. In this embodiment, the force detection unit 19 is a six-axis force sensor. The force detection unit 19 detects the magnitude of the force on three mutually orthogonal detection axes and the magnitude of the torque around the three detection axes. That is, it detects the force components in the directions of the mutually orthogonal X-axis, Y-axis, and Z-axis, the force component in the Tx direction around the X-axis, the force component in the Ty direction around the Y-axis, and the force component in the Tz direction around the Z-axis. In this embodiment, the Z-axis direction is the vertical direction. In addition, the force components in the directions of the respective axes can be called "translational force components," and the force components around the respective axes can be called "rotational force components." In addition, the force detection unit 19 is not limited to a six-axis force sensor, and may have another configuration.

[0026] In this embodiment, the force detection unit 19 is installed on the sixth arm 17. The installation location of the force detection unit 19 is not limited to the sixth arm 17, i.e., the arm located at the most distal end, and may be, for example, on another arm, between adjacent arms, below the base 11, or at all joints.

[0027] An end effector 20 can be detachably attached to the force detection unit 19. The end effector 20 is configured as a hand that grips an object by moving a pair of claws toward and away from each other, but the present invention is not limited to this and may have two or more claws. It may also be a hand that grips an object by suction.

[0028] Also, in the robot coordinate system, a tool center point TCP is set at an arbitrary position of the tip of the end effector 20, preferably at the tip when the jaws are close to each other. As described above, in the robot system 100, the position of the control point CP is grasped in the robot coordinate system, and the robot arm 10 is driven so that the control point CP moves to a desired position. Also, by grasping the type of the end effector 20, particularly its length, the offset amount between the tool center point TCP and the control point CP can be grasped. Therefore, the position of the tool center point TCP can be grasped in the robot coordinate system. Therefore, the tool center point TCP can be used as a reference for control.

[0029] The workpiece W1 is a rod-shaped body having a circular cross-sectional shape. The cross-sectional shape of the workpiece W1 may be a triangle, a rectangle, or a polygon having more than one side, and may be a connector for an electronic device, a plastic exterior part, or the like. In this embodiment, the workpiece W2 is in the shape of a block having an insertion hole 200 into which the workpiece W1 is inserted.

[0030] Next, the control device 3 and the teaching device 4 will be described. The control device 3 is disposed away from the robot 1 and can be configured with a computer or the like incorporating a CPU (Central Processing Unit), which is an example of a processor. The control device 3 may be incorporated in the base 11 of the robot 1.

[0031] The control device 3 is connected to the robot 1 via a relay cable 18 so as to be able to communicate with the robot 1. The control device 3 is also connected to the teaching device 4 via a cable or so as to be able to communicate wirelessly with the robot 1. The teaching device 4 may be a dedicated computer or a general-purpose computer in which a program for teaching the robot 1 is installed. For example, a teaching pendant or the like, which is a dedicated device for teaching the robot 1, may be used instead of the teaching device 4. Furthermore, the control device 3 and the teaching device 4 may have separate housings or may be configured as an integrated unit.

[0032] The teaching device 4 also provides the control device 3 with a target position and orientation S t and the target force f St A program for generating an execution program that uses the arguments and loads it into the control device 3 may be installed. The teaching device 4 includes a display, a processor, RAM, and ROM, and these hardware resources work together with the teaching program to generate the execution program.

[0033] 2, the control device 3 is a computer in which a control program for controlling the robot 1 is installed. The control device 3 includes a processor and RAM and ROM (not shown), and these hardware resources work in conjunction with the program to control the robot 1.

[0034] 2, the control device 3 has a target position setting unit 3A, a drive control unit 3B, a storage unit 3C, and a judgment criterion setting unit 3D. The storage unit 3C is composed of, for example, a volatile memory such as a random access memory (RAM), a non-volatile memory such as a read only memory (ROM), a removable external storage device, etc. The storage unit 3C stores operation programs for operating the robot 1, such as a program for executing the robot control method of the present invention.

[0035] The target position setting unit 3A sets a target position and posture S for performing a predetermined task on the workpiece W1. t The target position setting unit 3A sets the target position and orientation S based on the teaching information input from the teaching device 4. t and set the motion path.

[0036] The drive control unit 3B controls the drive of the robot arm 10, and includes a position control unit 30, a coordinate conversion unit 31, a coordinate conversion unit 32, a correction unit 33, a force control unit 34, and a command integration unit 35.

[0037] The position control unit 30 generates a position command signal, that is, a position command value, for controlling the position of the tool center point TCP of the robot 1 according to a target position specified by a command created in advance.

[0038] Here, the control device 3 is capable of controlling the operation of the robot 1 by force control or the like. "Force control" refers to control of the operation of the robot 1, such as changing the position of the end effector 20, i.e., the position of the tool center point TCP, and the attitudes of the first arm 12 to the sixth arm 17, based on the detection result of the force detection unit 19.

[0039] The force control includes, for example, force trigger control and impedance control. In the force trigger control, the force detection unit 19 detects a force, and the robot arm 10 is made to move or change its posture until the force detection unit 19 detects a predetermined force.

[0040] The impedance control includes tracking control. In the impedance control, the force applied to the tip of the robot arm 10 is maintained at a predetermined force as much as possible, that is, the force in a predetermined direction detected by the force detection unit 19 is controlled to be as close as possible to the target force f St The operation of the robot arm 10 is controlled so as to maintain the target force f. For example, when impedance control is performed on the robot arm 10, the robot arm 10 performs an operation to follow the target object or an external force applied by an operator in the predetermined direction. St The target force f includes 0. For example, in the case of a tracking operation, the target value can be set to "0". St can be a value other than 0. This target force f St can be appropriately set by the operator.

[0041] The storage unit 3C stores the correspondence between the combination of the rotation angles of the motors M1 to M6 and the position of the tool center point TCP in the robot coordinate system. t and the target force fSt At least one of the target position and orientation S t and the target force f St A command having the above as an argument, i.e., a parameter, is set for each work step to be performed by the robot 1.

[0042] The drive control unit 3B determines the set target position and attitude S t and the target force f St The first arm 12 to the sixth arm 17 are controlled so that the target force f coincides with the tool center point TCP. St is the detection force and torque of the force detection unit 19 to be achieved by the operation of the first arm 12 to the sixth arm 17. Here, the letter "S" represents one of the axial directions (X, Y, Z) that define the robot coordinate system. S also represents the position in the S direction. For example, when S=X, the X-direction component of the target position set in the robot coordinate system is S. t =X t and the X-direction component of the target force is f St =f Xt It becomes.

[0043] In the drive control unit 3B, when the rotation angles of the motors M1 to M6 are acquired, the coordinate conversion unit 31 shown in FIG. 2 converts the rotation angles into the position and posture S of the tool center point TCP in the robot coordinate system based on the corresponding relationship. Then, the coordinate conversion unit 32 converts the acting force f actually acting on the force detection unit 19 into the position and posture S of the tool center point TCP in the robot coordinate system based on the position and posture S of the tool center point TCP and the detection value of the force detection unit 19. S is specified in the robot coordinate system.

[0044] acting force f SThe point of application of the applied force f in the robot coordinate system is defined as a force detection origin separate from the tool center point TCP. The force detection origin corresponds to the point at which the force detection unit 19 detects the force. The control device 3 stores a correspondence relationship that specifies the direction of the detection axis in the sensor coordinate system of the force detection unit 19 for each position and posture S of the tool center point TCP in the robot coordinate system. Therefore, the control device 3 calculates the applied force f in the robot coordinate system based on the position and posture S of the tool center point TCP in the robot coordinate system and the correspondence relationship. S The torque acting on the robot can be expressed as the force f S and the distance from the contact point to the force detection unit 19, and is specified as a rotational force component. When the end effector 20 comes into contact with the workpiece W1 to perform work, the contact point can be regarded as the tool center point TCP.

[0045] The correction unit 33 calculates the acting force f S Gravity compensation is performed for the acting force f S The purpose of this is to remove the force and torque components due to gravity from the force f S can be considered a force other than gravity acting on the robot arm 10 or end effector 20.

[0046] In addition, the correction unit 33 calculates the acting force f S Inertia compensation is performed for the acting force f S The purpose of this is to remove the force and torque components caused by inertia from the force f S can be considered as a force other than the inertial force acting on the robot arm 10 or the end effector 20.

[0047] The force control unit 34 performs impedance control. The impedance control is active impedance control that realizes a virtual mechanical impedance by the motors M1 to M6. The control device 3 executes such impedance control in a process in a contact state where the end effector 20 receives a force from an object, such as a fitting operation, a screwing operation, a polishing operation, etc., and when performing direct teaching. Even in a process other than these, for example, by performing impedance control when a person comes into contact with the robot 1, safety can be improved.

[0048] In impedance control, the target force f St The rotation angles of the motors M1 to M6 are derived by substituting these into the equations of motion described below. The signals used by the control device 3 to control the motors M1 to M6 are PWM (Pulse Width Modulation) modulated signals.

[0049] In addition, the control device 3 sets the target position and posture S t Motors M1 to M6 are controlled with the rotation angle derived by linear calculation from the target position and orientation S t The mode in which motors M1 to M6 are controlled with the rotation angle derived by linear calculation from the above is called the position control mode.

[0050] The control device 3 determines the target force f St and the acting force f S The force-derived correction amount ΔS is determined by substituting the above into the equation of motion for impedance control. The force-derived correction amount ΔS is the amount of force that is proportional to the target force f when the tool center point TCP is subjected to mechanical impedance. St Force deviation Δf S This means the magnitude of the position and orientation S to which the tool center point TCP should move in order to eliminate (t). The following equation (1) is the equation of motion for impedance control.

[0051]

number

[0052] The left side of equation (1) is composed of the first term obtained by multiplying the second derivative of the position and orientation S of the tool center point TCP by a virtual mass coefficient m (hereinafter referred to as "mass coefficient m"); the second term obtained by multiplying the derivative of the position and orientation S of the tool center point TCP by a virtual viscosity coefficient d (hereinafter referred to as "viscosity coefficient d"); and the third term obtained by multiplying the position and orientation S of the tool center point TCP by a virtual elasticity coefficient k (hereinafter referred to as "elasticity coefficient k"). The right side of equation (1) is composed of the target force f St Force deviation Δf obtained by subtracting the actual force f from S (t). The derivative in formula (1) means the derivative with respect to time. In the process performed by the robot 1, the target force f St When a constant value is set as the target force f St In some cases, a function of time may be set as

[0053] The mass coefficient m means the mass that the tool center point TCP virtually has, the viscosity coefficient d means the viscous resistance that the tool center point TCP virtually experiences, and the elastic coefficient k means the spring constant of the elastic force that the tool center point TCP virtually experiences.

[0054] As the value of the mass coefficient m increases, the acceleration of the movement decreases, and as the value of the mass coefficient m decreases, the acceleration of the movement increases. As the value of the viscosity coefficient d increases, the speed of the movement decreases, and as the value of the viscosity coefficient d decreases, the speed of the movement increases. As the value of the elastic coefficient k increases, the springiness increases, and as the value of the elastic coefficient k decreases, the springiness decreases.

[0055] The mass coefficient m, viscosity coefficient d, and elasticity coefficient k may be set to different values ​​for each direction, or may be set to a common value regardless of the direction. Furthermore, the mass coefficient m, viscosity coefficient d, and elasticity coefficient k can be appropriately set by the worker before work.

[0056] The mass coefficient m, the viscosity coefficient d, and the elasticity coefficient k are force control parameters. The force control parameters are values ​​that are set before the robot arm 10 actually performs a task. The force control parameters include the mass coefficient m, the viscosity coefficient d, the elasticity coefficient k, the target force, etc.

[0057] In this way, in the robot system 100, during execution of force control, a correction amount is calculated from the detection value of the force detection unit 19, the preset force control parameters, and the preset target force. This correction amount is the above-mentioned force-derived correction amount ΔS, which is the difference between the position where the external force is applied and the position to which the tool center point TCP should be moved.

[0058] Then, the command integration unit 35 adds the force-derived correction amount ΔS to the position command value P generated by the position control unit 30. By performing this process as needed, the command integration unit 35 obtains a new position command value P′ from the position command value P that was used to move to the position where the external force was applied.

[0059] Then, the coordinate conversion unit 31 converts this new position command value P' into robot coordinates, and the execution unit 351 executes it, thereby moving the tool center point TCP to a position taking into account the force-derived correction amount ΔS, thereby responding to the external force and reducing any further load on the object that has come into contact with the robot 1.

[0060] According to such a drive control unit 3B, in a state where the workpiece W1 is being gripped, the tool center point TCP is set to the target position and posture S t While moving towards the target force f St The robot arm 10 can be driven so that the tool center point TCP moves until the target force f reaches a preset value. Specifically, the workpiece W1 is inserted into the insertion hole 200 of the workpiece W2, and the target force f St The insertion operation can be completed by performing the force control as described above during the insertion process, thereby preventing or suppressing excessive load from being applied to the workpieces W1 and W2.

[0061] As described later, the judgment criterion setting unit 3D shown in Fig. 2 sets a judgment criterion that is a criterion for starting to change the position or posture of the workpiece W1 during work or for ending the change in the position or posture of the workpiece W1. This will be described below, but first, an example of the work will be described. In the following, this work will be described using an insertion work of inserting the workpiece W1 into the insertion hole 200 of the workpiece W2 as an example. However, this is not limited to the insertion work, and the robot control method of the present invention can also be applied to other assembly work, such as screw tightening work.

[0062] In the following operation, as shown in Figs. 3 to 8, the position of the workpiece W1 is grasped as the position in the robot coordinate system of a control point CP' set at the midpoint of the tip surface of the workpiece W1, i.e., the bottom end surface, and the attitude of the workpiece W1 is grasped as the tilt angle of a central axis O1 passing through the control point CP'. Since the position of the workpiece W1 to be gripped is known, the position of the control point CP' in the robot coordinate system can be grasped by grasping the offset amount from the tool center point TCP. Also, the angle of the central axis O1 can be found from the angles of each joint of the robot arm 10.

[0063] The robot 1 performs an operation of gripping the workpiece W1, inserting it into the workpiece W2, and fitting them together. Here, "fitting" is used in a broad sense including not only fitting in the narrow sense, but also fitting, engagement, and the like. Therefore, depending on the configurations of the workpiece W1 and the workpiece W2, "fitting" can be read as "fitting in," "engagement," and the like. Note that the operation may also be to grip the workpiece W2 and insert the workpiece W1 into the workpiece W2.

[0064] The insertion operation includes a first operation as shown in Fig. 3 and Fig. 4, a second operation as shown in Fig. 5, a third operation as shown in Fig. 6, a fourth operation as shown in Fig. 7, and a fifth operation as shown in Fig. 8, and these operations are performed sequentially. Prior to performing these operations, the end effector 20 grips a predetermined position of the workpiece W1, and the workpiece W2 is placed at a predetermined position on a horizontal plane. The central axis O2 of the insertion hole 200 of the workpiece W2 is aligned vertically. As shown in Fig. 3, the workpiece W1 is positioned at the operation start position P1.

[0065] The first operation is an operation of lowering the workpiece W1 from the work start position P1 shown in FIG. 3 until the workpiece W1 contacts the workpiece W2 as shown in FIG. 4. The first operation is performed by force control. The posture of the workpiece W1 at the work start position P1 is a state in which the central axis O1 is inclined at a predetermined angle with respect to the vertical direction. Furthermore, when the workpiece W1 is located at the work start position P1, the control point CP' is spaced a predetermined distance from the workpiece W2. Furthermore, the control point CP' is located on one side of the central axis O2, on the left side in the illustrated configuration.

[0066] When the workpiece W1 is moved vertically downward from this state as shown by the arrow in FIG. 4, the lower end surface of the workpiece W1 comes into contact with the edge of the insertion hole 200 of the workpiece W2 on the left side of the central axis O2.

[0067] The second operation is an operation of moving the workpiece W1 toward the central axis O2 of the insertion hole 200 while maintaining the inclined state, as shown in Fig. 5. The starting position and posture of the second operation is the ending position and posture of the first operation. The second operation is performed by force control. Specifically, the second operation is performed until the workpiece W1 contacts a portion of the edge of the insertion hole 200 of the workpiece W2 that is to the right of the central axis O2.

[0068] As shown in FIG. 6, the third operation is an operation for changing the inclination angle of the workpiece W1 to eliminate the inclination of the workpiece W1. Specifically, it is an operation for rotating the workpiece W1 so that the central axis O1 of the workpiece W1 coincides with the central axis O2 of the insertion hole 200. The start position and posture of the third operation is the end position and posture of the second operation. The third operation may be performed by force control, may be performed by position control, or may be performed by force control and position control. By performing such a third operation, the workpiece W1 can be brought into the insertion start position and posture.

[0069] The fourth and fifth operations, as shown in FIGS. 7 and 8, are operations for inserting the workpiece W1 into the insertion hole 200 until the insertion is completed.

[0070] The fourth operation is an operation in which the workpiece W1 is inserted until just before the insertion is completed by force control or position control. The start position and posture of the fourth operation are the end position and posture of the third operation.

[0071] The fifth operation is an operation in which the workpiece W1 is inserted by force control until the insertion is completed, that is, until the workpiece W1 contacts the bottom of the insertion hole 200. The starting position and posture of the fifth operation are the ending position and posture of the fourth operation.

[0072] By repeating such an operation for a plurality of workpieces W1 and W2, a plurality of assemblies in which the workpiece W1 is inserted into the workpiece W2 and assembled can be produced.

[0073] Here, when repeating the above-mentioned tasks, it is assumed that various elements such as dimensional variations of the workpieces W1 and W2, the initial positions and orientations of the workpieces W1 and W2, and the workpieces W1 and W2 will vary from task to task. Therefore, the position and orientation of the workpiece W1 when switching between operations in the first task is not necessarily appropriate in the next or subsequent tasks. For this reason, the above-mentioned variations may cause the time required for the task to become relatively long or cause an excessive load to be applied to the workpiece.

[0074] Therefore, in the present invention, the above problem is solved by carrying out the following control, which will be described below with reference to the flowchart shown in FIG.

[0075] First, the first operation is started. The first operation may be a trial operation or a normal production operation. Specifically, in step S101, the workpiece W1 is grasped and moved to the operation start position P1 (see FIG. 3), and in step S102, the first operation is started, that is, the workpiece W1 is moved in the direction of the arrow in FIG. 4. Next, in step S103, it is determined whether or not the first operation is completed. This determination is made based on whether or not the value of the force received by the robot arm 10 has reached a predetermined value. The first operation is performed until it is determined in step S103 that it is completed.

[0076] Next, in step S104, the second operation is started. That is, the first operation is switched to the second operation. Specifically, the workpiece W1 is moved in the direction of the arrow in FIG. 5. Next, in step S105, it is determined whether or not the second operation is completed. This determination is made based on whether or not the value of the force in a predetermined direction received by the robot arm 10 has reached a predetermined value. The second operation is performed until it is determined in step S105 that it is completed.

[0077] Next, in step S106, the third operation is started. That is, the second operation is switched to the third operation. Specifically, the workpiece W1 is moved in the direction of the arrow in FIG. 6, that is, its posture is changed. Next, in step S107, it is determined whether the third operation is completed. This determination is made based on whether the posture of the robot arm 10 has become a preset posture. This third operation is performed until it is determined in step S107 that it is completed.

[0078] Next, in step S108, the fourth operation is started. That is, the third operation is switched to the fourth operation. Specifically, the workpiece W1 is moved in the direction of the arrow in FIG. 7. Next, in step S109, it is determined whether the fourth operation is completed. This determination is made based on whether the control point CP' has moved to a preset position. This fourth operation is performed until it is determined in step S109 that it is completed.

[0079] Next, in step S110, the fifth operation is started. That is, the fourth operation is switched to the fifth operation. Specifically, the workpiece W1 is moved in the direction of the arrow in FIG. 8. Next, in step S111, it is determined whether the fifth operation is completed. This determination is made based on whether the workpiece W1 has contacted the bottom of the insertion hole 200, that is, whether the force applied to the robot arm 10 has reached a predetermined value. This fifth operation is performed until it is determined in step S111 that it is completed.

[0080] The above-described steps S102 to S111 constitute the first step. The results of the first to fifth operations, i.e., the position and orientation of the workpiece W1 when the operation is switched, are stored in the memory unit 3C for each step. Note that the storage destination is not limited to the memory unit 3C, and may be the memory unit of the teaching device 4 or another storage device via a network.

[0081] Next, in step S112, a criterion is set as a criterion for starting or ending the change in the position and posture of the workpiece W1 based on the information on the position and posture of the workpiece W1 during the operation in steps S102 to S111. This criterion is used as a criterion for switching the position and posture of the workpiece W1 when steps S102 to S111 are executed for the second or subsequent times.

[0082] The criterion includes a first criterion, a third criterion, and a fourth criterion. The first judgment criterion is a criterion regarding the starting position of the first movement in the second or subsequent tasks. The first criterion is set based on the position P2 of the workpiece W1 at the end of the first first operation. Specifically, the position of the control point CP' shown in FIG. 4 is stored, and a work start position P1' is set so that the movement distance is shorter than the movement distance from the start position of the first first operation to the end position of the first first operation. That is, an arbitrary position between the work start position P1 of the first first operation and the end position of the first first operation is set as the first criterion. Then, when the control point CP' is moved to the work start position P1' to start the second first operation, it is determined whether the movement is completed based on the first criterion.

[0083] By setting such a first criterion and starting the first motion based on that setting, the moving distance of the second first motion can be made shorter, thereby shortening the work time.

[0084] In this way, the determination criteria include the first determination criterion regarding the start position of the first motion, which makes it possible to set a more appropriate start position for the next and subsequent first motions.

[0085] Moreover, the first judgment criterion is set based on the position of the workpiece W1, which is the first object, at the end of the first operation in the first task, which is the first step. This allows the second task to be performed taking into account the results of the first task. Also, the start position of the second first operation can be brought closer to the end position of the first task. This allows the task time to be shortened.

[0086] In the above, the case where the work start position P1 is replaced with the work start position P1' has been described, but the present invention is not limited to this, and in the second work, the work W1 may be moved to the work start position P1 at high speed once, and then moved to the work start position P1 by low-speed position control. In this case, it is possible to more reliably prevent the work W1 and the work W2 from accidentally colliding with each other, while shortening the time until the start of work.

[0087] The third criterion is a criterion for the end posture of the third operation in the second or subsequent operations. The third criterion is set based on the posture of the workpiece W1 at the end of the first third operation, i.e., the posture of the workpiece W1 at the completion of insertion. Specifically, the posture of the workpiece W1 shown in FIG. 6, i.e., the angle of the central axis O1, is stored, and a width of a predetermined angle is set with the stored central axis O1 as the center. That is, the area shown by hatching in FIG. 6 is set. Then, when the central axis O1 of the workpiece W1 enters the area shown by hatching in FIG. 8 in the second third operation, it is determined that the third operation is completed.

[0088] In addition, the third judgment criterion is not limited to a configuration in which it is set based on the posture of the workpiece W1 at the end of the first third operation, but may be a configuration in which it is set based on the posture of the workpiece W1 at the end of the first fourth operation.

[0089] In this way, the judgment criteria include a third judgment criterion regarding the ending posture of the third motion, which makes it possible to set a more appropriate ending posture for the third motion from the next time onwards.

[0090] In addition, the third judgment criterion is set based on the posture of the workpiece W1, which is the first object, at the time of completion of insertion in the first operation, which is the first step. This allows the second operation to be performed taking into account the results of the first operation. Therefore, the operation after switching the operation can be performed smoothly. As a result, the accuracy of the operation is improved and the operation time can be shortened.

[0091] The fourth criterion is a criterion regarding the end position of the fourth operation in the second or subsequent operations. The fourth criterion is set based on the end position P4 of the workpiece W1 at the end of the first fourth operation. Specifically, the end position P4 of the control point CP' of the workpiece W1 shown in FIG. 7 is stored, and the end position P4' is set so that the movement distance in the second fifth operation is shorter than the movement distance in the first fifth operation. That is, an arbitrary position between the end position P4 of the first fourth operation and the end position of the first fifth operation is set as the fourth criterion. Then, when the fourth operation is ended for the second time, it is determined whether the control point CP' has moved to the end position P4'. This criterion is the third criterion.

[0092] In this way, the judgment criteria include a fourth judgment criterion related to the end position of the fourth movement, which makes it possible to set a more appropriate ending posture for the fourth movement from the next time onwards.

[0093] Moreover, the fourth judgment criterion is set based on the position of the workpiece W1, which is the first object, at the end of the fourth operation in the first step. This allows the second operation to be performed taking into account the results of the first operation. Therefore, the operation after switching the operation can be performed smoothly. As a result, the accuracy of the operation is improved and the operation time can be shortened. Moreover, the travel distance in the fifth operation can be reduced, thereby shortening the operation time.

[0094] Step S112 of setting such a criterion, that is, obtaining and storing the criterion in the storage unit 3C, is the second step.

[0095] Next, in step S113, it is determined whether the program is completed. That is, it is determined whether the above-mentioned assembly work has been performed a predetermined number of times. If it is determined in step S113 that the program is not completed, the process returns to step S101 and the subsequent steps are repeated.

[0096] In this manner, in this embodiment, the judgment criteria to be used in the second task are set based on the result of the first task. Thereafter, the judgment criteria to be used in the third task are set based on the result of the second task, and so on, so that the (n+1)th task judgment criteria are set based on the result of the nth task (n is a positive integer). With this configuration, even if the work environment changes with each task, the judgment criteria can be reset according to the result of the immediately preceding task. Therefore, the timing of switching between operations can be appropriately adjusted in accordance with the changes in the work environment, and accurate and rapid work can be achieved.

[0097] In the above, a configuration has been described in which the (n+1)th judgment criterion is set based on the nth operation result, but the present invention is not limited to this, and the (m+1)th judgment criterion may be set based on the results of the first through mth operations (m is a positive integer). That is, assembly operations may be performed multiple times in the first step, and the judgment criterion may be set based on the results of these operations. In this case, the following patterns 1 to 3 may be mentioned.

[0098] In the case of pattern 1, for example, when setting the first criterion for the start position of the first movement, the first criterion is set to the average of the work start positions from the first to mth times plus a predetermined offset amount. This makes it possible to set the first criterion taking into account the tendency of the start position of the first movement so far.

[0099] In the case of pattern 2, for example, when setting the third criterion for the ending posture of the third movement, the average posture of the ending postures of the third movement from the first to the mth times is set as the third criterion, which allows the third criterion to be set taking into account the tendency of the ending postures of the third movement up to that point.

[0100] In the case of pattern 3, for example, when setting the fourth criterion for the end position of the fourth movement, the fourth criterion is set to a position obtained by adding a predetermined offset amount to the average of the end postures of the fourth movement from the first to the mth times. This makes it possible to set the fourth criterion taking into account the tendency of the end positions of the fourth movement so far.

[0101] In addition, in Pattern 1 to Pattern 3, the judgment criteria may be set based on the results of the most recent tasks among the first to mth task results. This makes it possible to set more accurate judgment criteria when the value of m becomes relatively large by avoiding the use of past data that is too old.

[0102] In this way, in the first step, the assembly work may be performed multiple times, and in the second step, the judgment criteria may be set based on information obtained from the multiple assembly work. This allows the judgment criteria to be set taking into account the tendencies of past work content, making it possible to perform work more accurately and quickly.

[0103] Moreover, Fig. 10 is a graph in which past start positions are plotted for each number of tasks when setting the first judgment criterion for the start position of the first movement. In Fig. 10, the vertical axis represents the task start position, and the horizontal axis represents the number of tasks. As shown in Fig. 10, the task start position changes relatively significantly from the 80th time onwards, which may indicate some kind of problem. By displaying such past data and informing the worker, the worker can carry out the work of identifying the cause.

[0104] In this way, if the average of information obtained from multiple assembly operations exceeds a predetermined range, a notice to that effect is given, enabling the worker to carry out work to identify the cause.

[0105] 10, the horizontal axis represents the number of tasks, but the present invention is not limited to this, and may represent the date. In this case, for example, the average of the task results for that day is plotted.

[0106] Moreover, even if such data is not presented, the judgment criteria may be set without taking into account the work results in which the amount of change exceeds a predetermined amount.

[0107] As described above, the control method of the robot of the present invention is a control method of the robot 1 having the robot arm 10, and includes a first step in which the robot arm 10 grasps the workpiece W1, which is a first object, and performs an operation of assembling the workpiece W1 and the workpiece W2, which is a second object, while changing the position or posture of the workpiece W1, and a second step in which a judgment criterion is set as a criterion for starting to change the position or posture of the workpiece W1 or for ending the change in the position or posture of the workpiece W1, based on the information on the position or posture of the workpiece W1 during the operation in the first step. As a result, even if the work environment changes with each operation, the judgment criterion can be reset according to the result of the immediately preceding operation. Therefore, the timing of switching the operation can be appropriately adjusted according to the change in the work environment, and accurate and rapid operation can be achieved.

[0108] The assembly work is a work of inserting the workpiece W1, which is a first object, into the insertion hole 200 provided in the workpiece W2, which is a second object, and includes a first operation of contacting the edge of the insertion hole 200 of the workpiece W2 in an inclined state in which the workpiece W1 is inclined with respect to the insertion hole 200, a second operation of moving the workpiece W1 toward the central axis O2 of the insertion hole 200 while maintaining the inclined state, a third operation of changing the inclination angle of the workpiece W1, and a fourth operation of pushing the workpiece W1 toward the central axis O2 of the insertion hole 200. When performing such a complex work, it is necessary to accurately set the switching timing of each operation, and therefore the control method of the present invention is particularly effective.

[0109] <Other examples of robot system configurations> FIG. 11 is a block diagram for explaining the robot system with a focus on the hardware.

[0110] 11 shows the overall configuration of a robot system 100A in which a robot 1, a controller 61, and a computer 62 are connected. The robot 1 may be controlled by a processor in the controller 61 reading out instructions in a memory and executing the instructions, or a processor in the computer 62 reading out instructions in a memory and executing the instructions via the controller 61.

[0111] Therefore, either or both of the controller 61 and the computer 62 can be considered as a "control device."

[0112] <Variation 1> FIG. 12 is a block diagram showing Modification 1 focusing on the hardware of the robot system.

[0113] 12 shows the overall configuration of a robot system 100B in which a computer 63 is directly connected to the robot 1. The control of the robot 1 is directly executed by a processor in the computer 63 reading out commands from a memory. Therefore, computer 63 can be considered as a "control device."

[0114] <Variation 2> FIG. 13 is a block diagram showing Modification 2 focusing on the hardware of the robot system.

[0115] 13 shows the overall configuration of a robot system 100C in which a robot 1 having a built-in controller 61 is connected to a computer 66, and the computer 66 is connected to a cloud 64 via a network 65 such as a LAN. The robot 1 may be controlled by a processor present in the computer 66 reading and executing instructions in a memory, or may be controlled by a processor present on the cloud 64 reading and executing instructions in a memory via the computer 66.

[0116] Therefore, any one, two, or three of the controller 61, computer 66, and cloud 64 can be considered as a "control device."

[0117] Although the control method for the robot of the present invention has been described above with reference to the illustrated embodiment, the present invention is not limited to this. Furthermore, each part constituting the robot system can be replaced with any other part capable of exerting the same function. Furthermore, any other component can be added. [Explanation of symbols]

[0118] 1...robot, 3...control device, 3A...target position setting unit, 3B...drive control unit, 3C...storage unit, 3D...criterion setting unit, 4...teaching device, 10...robot arm, 11...base, 12...first arm, 13...second arm, 14...third arm, 15...fourth arm, 16...fifth arm, 17...sixth arm, 18...relay cable, 19...force detection unit, 20...end effector, 30...position control unit, 31...coordinate conversion unit, 32...coordinate conversion unit, 33...correction unit, 34...force control unit, 35...command integration unit, 61...controller, 62...computer, 63...computer, 64...cloud, 65...network, 66...computer, 100...robot system, 100A...robot system system, 100B...robot system, 100C...robot system, 171...joint, 172...joint, 173...joint, 174...joint, 175...joint, 176...joint, 200...insertion hole, 351...execution part, O1...center axis, O2...center axis, P1...operation start position, P1'...operation start position, P2...position, P4...end position, P4'...end position, CP...control point, CP'...control point, E1...encoder, E2...encoder, E3...encoder, E4...encoder, E5...encoder, E6...encoder, M1...motor, M2...motor, M3...motor, M4...motor, M5...motor, M6...motor, TCP...tool center point, W1...work, W2...work

Claims

1. A method for controlling a robot having a robot arm, comprising the steps of: a first step of performing an assembly operation in which the robot arm grasps a first object and assembles the first object and a second object while changing a position or a posture of the first object; a second step of setting a criterion that is a standard for starting to change the position or orientation of the first object or for ending the change in the position or orientation of the first object, based on information on the position or orientation of the first object during the assembly work in the first step; In the first step, the assembly operation is performed a plurality of times; In the second step, the judgment criteria are set based on information obtained from a plurality of times of the assembly work, A robot control method comprising the steps of: when an average of information obtained from said plurality of said assembly operations exceeds a predetermined range, notifying the user that the average has exceeded the predetermined range.

2. A method for controlling a robot having a robot arm, comprising the steps of: a first step of performing an n-th assembly operation (n is a positive integer) in which the robot arm grasps a first object and assembles the first object and a second object while changing a position or a posture of the first object; a second step of setting a judgment criterion to be used in the (n+1)th assembly operation, the judgment criterion being a reference for starting to change the position or posture of the first object or for terminating the change in the position or posture of the first object, based on information on the position or posture of the first object during the nth assembly operation in the first step.

3. 3. The robot control method according to claim 1 or 2, wherein the assembly work is a work of inserting the first object into an insertion hole provided in the second object, and includes a first operation of contacting the first object with an edge of the insertion hole of the second object in an inclined state with respect to the insertion hole, a second operation of moving the first object toward the central axis of the insertion hole while maintaining the inclined state, a third operation of changing the inclination angle of the first object, and a fourth operation of pushing the first object in the central axis direction of the insertion hole.

4. The method for controlling a robot according to claim 3 , wherein the judgment criteria include a first judgment criterion related to a start position of the first movement.

5. The method for controlling a robot according to claim 4 , wherein the first judgment criterion is set based on a position of the first object at the end of the first motion in the first step.

6. The method for controlling a robot according to claim 3 , wherein the judgment criteria include a third judgment criterion related to a finishing posture of the third motion.

7. The method for controlling a robot according to claim 6 , wherein the third judgment criterion is set based on a posture of the first object at the time when the insertion is completed in the first step.

8. The method for controlling a robot according to claim 3 , wherein the determination criteria include a fourth determination criterion related to an end position of the fourth movement.

9. The method for controlling a robot according to claim 8 , wherein the fourth judgment criterion is set based on a position of the first object at the end of the fourth motion in the first step.

Citation Information

Patent Citations

  • Fitting data acquisition method using force control robot

    JP1996194521A

  • Robot control device and robot control method for setting control point of robot

    JP2019048350A

  • Robot system, method for controlling robot system, method for assembling article using robot system, control program and recording medium

    JP2019217593A