Robot system, robot control method, and servo system

By combining position control and torque control in the robot system, the torque command storage unit and current control unit are used to generate and execute torque commands, which solves the problems of high cost and difficulty in ensuring safety, and realizes the measurement without using external force sensors. Collaborate safely with people.

CN114126811BActive Publication Date: 2024-08-27YASKAWA DENKI KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980098482.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-18
Publication Date
2024-08-27
Estimated Expiration
2039-07-18

AI Technical Summary

Technical Problem

When existing robot systems collaborate with humans, the cost of installing a variety of external force measurement sensors is high, resulting in rising costs, and it is difficult to ensure safety without the use of external force measurement sensors.

Method used

Using a joint robot system driven by a motor, through a method of combining position control and torque control, the torque command storage part and the current control part are used to generate and execute torque commands, enabling the robot to operate without the use of external force measurement sensors. The security of collaborating with people.

Benefits of technology

While suppressing cost increases, it also enables safe movements of the robot system when in contact with people, reduces torque output that is harmful to people, and improves safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114126811B
    Figure CN114126811B
Patent Text Reader

Abstract

A robot system and a servo system are provided, which can operate in cooperation with a human while suppressing cost increases. The robot system (1) comprises: a robot (3) having a joint driven by a motor (M); and a robot controller (5) which controls the motor (M) to move the robot (3), wherein the robot controller (5) comprises: a position control unit 25, a speed control unit 27, and a current control unit (29) which perform position control of the motor M according to a position instruction; a torque instruction storage unit (33) which stores a torque instruction generated according to the position instruction in a time series when performing position control of the motor (M); and a current control unit (29) which performs torque control of the motor (M) according to the torque instruction stored in the torque instruction storage unit (33).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to a robot system, a robot control method, and a servo system. Background Art

[0002] Conventionally, robots that operate in cooperation with humans without safety barriers have been proposed. Robots that operate in cooperation with humans are expected to operate safely while in contact with humans.

[0003] As an example of such technology, Patent Document 1 records the following impedance control device for a horizontal multi-joint robotic arm: force sensors for measuring external forces and torque sensors for measuring torques acting on each joint axis are installed on a horizontal multi-joint robotic arm that performs various operations, and force control is performed on each joint based on the sensor information. As a result, appropriate avoidance actions can be achieved regardless of which part of the arm comes into contact with the environment.

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Application Publication No. 2001-38673 Summary of the invention

[0007] Problems to be solved by the invention

[0008] In the above-mentioned prior art, various external force measurement sensors are installed on the robot arm, but such sensors are expensive, thus becoming a major cause of cost increase. Therefore, a robot system that can cooperate with humans while suppressing cost increase is desired.

[0009] The present invention has been made in view of such a problem, and an object of the present invention is to provide a robot system, a robot control method, and a servo system that can operate in cooperation with a human while suppressing a cost increase.

[0010] Means for solving problems

[0011] In order to solve the above-mentioned problems, according to one aspect of the present invention, a robot system is applied, which comprises: a robot having joints driven by motors; and a controller, which controls the motors to make the robot move, and the controller comprises: a first control unit, which performs position control of the motor according to a position instruction; a torque instruction storage unit, which stores a torque instruction generated based on the position instruction in a time series when the position control of the motor is performed by the first control unit; and a second control unit, which performs torque control of the motor according to the torque instruction stored by the torque instruction storage unit.

[0012] In addition, according to another aspect of the present invention, a control method for a robot is applied, wherein the robot has joints driven by motors, and the control method has the following steps: performing position control of the motor according to a position instruction; when performing the position control of the motor, saving a torque instruction generated based on the position instruction in a time series; and performing torque control of the motor according to the saved torque instruction.

[0013] In addition, according to another aspect of the present invention, a servo system is applied, which comprises: a motor; and a controller, which controls the motor, and the controller comprises: a first control unit, which performs position control of the motor according to a position instruction; a torque instruction storage unit, which stores a torque instruction generated based on the position instruction in a time series when the position control of the motor is performed by the first control unit; and a second control unit, which performs torque control of the motor according to the torque instruction stored by the torque instruction storage unit.

[0014] Effects of the Invention

[0015] According to the present invention, it is possible to realize a robot system or the like that can operate in cooperation with a human while suppressing a cost increase. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a perspective view showing an example of the configuration of the robot system according to the first embodiment.

[0017] Figure 2 This is a block diagram showing an example of the functional configuration of the robot controller during torque teaching.

[0018] Figure 3 This is a block diagram showing an example of the functional configuration of the robot controller during torque playback.

[0019] Figure 4 This is a flowchart showing an example of the control content of the robot controller.

[0020] Figure 5 This is a graph showing an example of simulation results for verifying the effect of the first embodiment.

[0021] Figure 6 This is a graph showing another example of simulation results for verifying the effect of the first embodiment.

[0022] Figure 7 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0023] Figure 8 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0024] Fig. 9 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0025] Fig.10 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0026] Fig.11 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0027] Fig.12 This is a graph showing still another example of simulation results for verifying the effect of the first embodiment.

[0028] Fig.13 This is a block diagram showing an example of the functional configuration of the robot controller during torque teaching according to the second embodiment.

[0029] Fig.14 This is a block diagram showing an example of the functional configuration of the robot controller during torque playback according to the second embodiment.

[0030] Fig.15 This is a flowchart showing an example of the control content of the robot controller.

[0031] Fig.16 This is an explanatory diagram showing an example of the operation of a workpiece transfer operation performed by a robot in a modified example in which torque control is performed on a part of axes.

[0032] Fig.17 This is an explanatory diagram of another example of the operation of the workpiece transfer operation performed by the robot in a modified example in which torque control is performed on some axes.

[0033] Fig.18 This is an explanatory diagram showing still another example of the operation of the workpiece transfer operation performed by the robot in a modified example in which torque control is performed on some axes.

[0034] Fig.19 This is a block diagram showing an example of the functional configuration of the robot controller during torque playback in a modified example of switching from torque control to position control.

[0035] Fig. 20 This is a flowchart showing an example of control content of the robot controller in a modification example of switching from torque control to position control.

[0036] Fig.21 This is a block diagram showing an example of the functional configuration of a portion of a robot controller related to mode switching in a modification example in which mode switching can be performed.

[0037] Fig. 22 It is a perspective view showing an example of the configuration of a robot system in a modified example in which an external force measurement sensor is provided.

[0038] Fig.23 This is a block diagram showing an example of the functional configuration of a portion related to mode switching of a robot controller in a modified example in which an external force measurement sensor is provided.

[0039] Fig.24 This is a block diagram showing a hardware configuration example of a robot controller. DETAILED DESCRIPTION

[0040] <0. Background>

[0041] First, before describing the embodiments, the background and the like on which the inventors of the present application came up with the present invention will be described.

[0042] Generally speaking, the robot performs position control on each joint so that the fingertips move to the taught position. When the robot cooperates with a person, it is desirable to perform the operation safely without applying a large force even when the robot contacts the person during the operation based on the position control. Therefore, for example, the operation speed is set to be low, or a torque sensor is used to detect contact with the person and stop the robot.

[0043] However, when the robot is operated by position control, even if an external force is applied to the robot due to contact with a person, the robot is operated in a manner to reach the taught position. Therefore, the output of torque may increase and cause harm to the person. In addition, generally speaking, since the reverse drivability of each joint of the robot is low, even if an external force is applied to the robot due to contact with a person, it is sometimes difficult to detect the contact based on the current information of the motor. Therefore, in a robot that collaborates with a person, a force sensor for measuring external force and a torque sensor for measuring the torque acting on each joint axis are provided to detect contact with a person. However, since such an external force measuring sensor is expensive, it has become the main reason for the increase in the cost of robots that collaborate with people. Therefore, a robot that can safely operate in a manner that does not apply a large force even when in contact with a person without using an external force measuring sensor is desired.

[0044] Therefore, the inventors of the present application and others have thought of the following aspects through research. That is, the control of the motor can be roughly divided into position control and torque control. In addition, since the unit of force control is different from that of torque control, but the nature is the same, it is included in torque control. In addition, since the current command is obtained by multiplying the torque command by a constant, the nature of current control is also the same as that of torque control, and therefore, it is included in torque control. Position control is controlled in a manner to reach a position commanded by an arbitrary torque. On the other hand, torque control is controlled in a manner that a torque commanded at an arbitrary position occurs. Therefore, by controlling the torque of the motor in a manner that outputs a torque of a magnitude that does not cause harm to humans, the robot can safely operate in a manner that does not cause harm to humans even in the case of contact with humans. That is, it is thought that by realizing a robot that draws a desired trajectory (the taught trajectory) using torque control, a robot that can cooperate with humans without using an external force measurement sensor can be realized.

[0045] The inventors of the present application and others who thought of these situations have further conducted in-depth research, and as a result, have thought of the robot system of each embodiment described below. Below, these embodiments are described in detail. In addition, the topics, effects, etc. described here are only examples of each embodiment described below, and each embodiment will of course play a further role and effect.

[0046] <1. First Implementation Method>

[0047] First, a first embodiment will be described with reference to the drawings.

[0048] (1-1. Structure of the robot system)

[0049] First, refer to Figure 1 , an example of the structure of the robot system 1 according to the first embodiment is described.

[0050] like Figure 1 As shown, the robot system 1 includes: a robot 3, which is used to move a workpiece W (see Figure 16 to Figure 18 ) to perform specified operations; robot controller 5; and host controller 7.

[0051] The robot 3 is, for example, a vertical multi-joint type 6-axis robot having 6 joints driven by motors, and a hand 9 is installed at its front end as an end effector. The robot controller 5 is installed on, for example, a base 11 of the robot 3, and controls each motor to control the movement of the robot 3. In addition, the robot 3 may also be a robot other than a 6-axis robot (for example, a 5-axis, a 7-axis, etc.). In addition, the robot 3 may also be a robot other than a vertical multi-joint type such as a horizontal multi-joint type, a parallel linkage robot, etc. In addition, the robot controller 5 may be configured separately from the robot 3.

[0052] The robot 3 performs, for example, a workpiece transfer operation in which the workpiece W is grasped and transferred by the hand 9 as the above-mentioned predetermined operation. In addition, the operation performed by the robot 3 is not limited to the workpiece transfer operation, and the workpiece can also be used to perform, for example, assembly of parts and products. In addition, by appropriately changing the type of the end effector instead of the hand 9, for example, painting, welding, bolt tightening, machining (cutting, grinding, etc.) and other operations can also be performed.

[0053] The robot controller 5 (an example of a controller) calculates the target rotation angle of the servo motor (not shown) of each actuator Ac1 to Ac6 of the robot 3 required to move the hand 9 of the robot 3 to the position taught by teaching, based on the position command (teaching data) input from the host controller 7, and controls the driving power supplied to the servo motor of each actuator Ac1 to Ac6 based on the target rotation angle, so as to control the movement of the robot 3. The robot controller 5 and the host controller 7 are composed of, for example, a motion controller, a personal computer (PC), a programmable logic controller (PLC), etc. In addition, the robot controller 5 and the host controller 7 may be formed in one piece instead of being separated. In addition, at least one of the robot controller 5 or the host controller 7 may be formed by a plurality of control devices. In addition, the position command does not necessarily need to be input from the host controller 7, and may be stored in the robot controller 5.

[0054] (1-2. Robot structure)

[0055] Next, refer to Figure 1 An example of the structure of the robot 3 will be described.

[0056] like Figure 1 As shown, the robot 3 includes a base 11, a rotating portion 13, and an arm 15. The base 11 is fixed to, for example, a floor, a wall, a ceiling, or the like.

[0057] The rotating part 13 is supported on the upper end of the base 11 so as to be rotatable about the rotation axis Ax1 substantially parallel to the vertical direction. The rotating part 13 is driven to rotate about the rotation axis Ax1 relative to the upper end of the base 11 by driving the actuator Ac1 provided at the joint part between the base 11 and the rotating part 13.

[0058] The arm 15 is supported by one side portion of the rotating portion 13. The arm 15 includes a lower arm portion 17, an upper arm portion 19, an arm portion 21, and a flange portion 23.

[0059] The lower arm 17 is supported on one side of the rotating part 13 so as to be rotatable around a rotation axis Ax2 that is substantially perpendicular to the rotation axis Ax1. The lower arm 17 is driven to rotate around the rotation axis Ax2 relative to the side of the rotating part 13 by the actuator Ac2 provided at the joint between the lower arm 17 and the rotating part 13.

[0060] The upper arm 19 is supported on the front end side of the lower arm 17 in a manner that allows it to rotate around a rotation axis Ax3 that is substantially parallel to the rotation axis Ax2 and to rotate around a rotation axis Ax4 that is substantially perpendicular to the rotation axis Ax3. The upper arm 19 is driven to rotate around the rotation axis Ax3 relative to the front end side of the lower arm 17 by the drive of an actuator Ac3 provided at a joint portion between the upper arm 19 and the lower arm 17. In addition, the upper arm 19 is driven to rotate around the rotation axis Ax4 relative to the front end side of the lower arm 17 by the drive of an actuator Ac4 provided between the upper arm 19 and the actuator Ac3.

[0061] The arm portion 21 is supported on the front end side of the upper arm portion 19 in a manner that allows it to rotate around a rotation axis Ax5 that is approximately perpendicular to the rotation axis Ax4. The arm portion 21 is driven by an actuator Ac5 provided at a joint portion between the arm portion 21 and the upper arm portion 19, and is driven to rotate around the rotation axis Ax5 relative to the front end side of the upper arm portion 19.

[0062] The flange 23 is supported on the front end side of the arm 21 so as to be rotatable around the rotation axis Ax6 which is substantially perpendicular to the rotation axis Ax5. The flange 23 is driven to rotate around the rotation axis Ax6 relative to the front end side of the arm 32 by the actuator Ac6 provided at the joint between the arm 21.

[0063] The hand 9 is mounted on the front end of the flange 23 and rotates around the rotation axis Ax6 together with the rotation of the flange 23 around the rotation axis Ax6. The hand 9 has a pair of claw members 9a, 9a that can move in directions away from and approaching each other, and can perform various operations and works such as holding a workpiece W.

[0064] The robot 3 having the above structure is a 6-axis robot having 6 joints, and the 6 joints have 6 actuators Ac1 to Ac6. The actuators Ac1 to Ac6 driving the joints are composed of, for example, servo motors, reducers, brakes, etc. In addition, the servo motors, reducers, brakes, etc. do not necessarily need to be arranged on the rotation axes Ax1 to Ax6, and can also be arranged at positions separated from these rotation axes Ax1 to Ax6.

[0065] In the above, the rotation around the rotation axis along the length direction (or extension direction) of the arm 15 is referred to as "turning", and the rotation around the rotation axis approximately perpendicular to the length direction (or extension direction) of the arm 15 is referred to as "turning" to distinguish.

[0066] (1-3. Structure of robot controller)

[0067] Next, refer to Figure 2 and Figure 3 , which is divided into torque teaching and torque playback to illustrate an example of the functional structure of the robot controller 5. In addition, in the present embodiment, "torque teaching" means saving torque instructions for each motor when the robot 3 is moved by performing position control on the motors of each joint of the robot 3. In addition, "torque playback" means using the torque instructions saved in the torque teaching to perform torque control on the motors of each joint of the robot 3 to move the robot 3. In addition, the robot controller 5 has respective torque control functions for each motor of the above-mentioned six actuators Ac1 to Ac6. Figure 2 and Figure 3 The functionality shown, but in Figure 2 and Figure 3 In order to avoid complexity, the function of a single motor M is shown in the figure.

[0068] Figure 2 An example of the functional structure of the robot controller 5 during torque teaching is shown. Figure 2 As shown, the robot controller 5 includes a position control unit 25, a speed control unit 27, a current control unit 29, a speed estimation unit 31, a torque command storage unit 33, a detection position storage unit 35, and a current sensor 37. In addition, each motor M of the actuators Ac1 to Ac6 includes an encoder E that detects the rotation position (also called the rotation angle) of the motor and a brake B that can brake the motor.

[0069] The position control unit 25 generates a speed command for generating a speed for causing the motor M to reach the command position by, for example, P control, PI control, or PID control, based on the position command output from the host controller 7 and the detected position detected by the encoder. The speed control unit 27 generates a torque command for generating a torque for causing the motor M to reach the command speed by, for example, P control, PI control, or PID control, based on the speed command generated by the position control unit 25 and the estimated speed calculated by the speed estimation unit 31. The current control unit 29 calculates a current command based on the torque command generated by the speed control unit 27, and determines a current value for generating the command torque for the motor M by, for example, P control, PI control, or PID control, based on the current command, the detected position detected by the encoder, and the current value detected by the current sensor 37, and supplies the current to the motor M. The speed estimation unit 31 estimates the speed by, for example, performing first-order differentiation of the detected position detected by the encoder E with time, or performing a predetermined time counting on the detection signal (e.g., pulse signal) of the encoder E. The position control unit 25 , the speed control unit 27 , and the current control unit 29 described above correspond to an example of a first control unit.

[0070] The torque instruction storage unit 33 stores the value of the torque instruction (an example of the torque instruction generated according to the position instruction) generated by the speed control unit 27 in a time series when the position control unit 25, the speed control unit 27, and the current control unit 29 perform position control of the motor M. In addition, as described above, the current instruction is obtained by multiplying the torque instruction by a constant, and has the same nature. Therefore, in this specification, in the case of "saving the torque instruction", "saving the current instruction" is included. In addition, the detection position storage unit 35 stores the detection position (an example of the first detection position) detected by the encoder E in a time series when the position control unit 25, the speed control unit 27, and the current control unit 29 perform position control of the motor M. That is, the robot 3 is taught the desired fingertip position, and when the track based on the teaching is played back to confirm, the position control unit 25, the speed control unit 27, and the current control unit 29 perform position control on the motor M of each joint. At this time, the torque instruction storage unit 33 stores the value of the torque instruction generated by the speed control unit 27 for the action of each joint for each motor M in a time series. Similarly, during playback based on the position control, the detected positions detected by the encoders E of the motors M are stored in time series by the detected position storage unit 35 for each motor M. In addition, in order to distinguish it from the torque playback described above, the playback based on the position control is referred to as "position playback".

[0071] Figure 3FIG. 5 shows an example of the functional structure of the robot controller 5 during torque playback. The torque instruction stored in the torque instruction storage unit 33 through the above-mentioned torque teaching is a torque instruction for moving the fingertips of the robot 3 to a desired position. Figure 3 As shown, when the torque control is performed on each motor M of the actuator Ac1 to Ac6 by the current control unit 29, with the torque command stored in the torque command storage unit 33 set as the command value, the fingertip of the robot 3 moves to the desired position without applying interference different from that during torque teaching to the robot 3. As a result, a robot that can draw a desired trajectory (the taught trajectory) by torque control can be realized. In addition, in this specification, the case of "interference" includes external forces acting on the robot 3, modeling errors (errors between the control model and the actual object), and internal interference forces of the robot 3.

[0072] On the other hand, during torque playback, due to contact with a person, etc., a disturbance beyond the assumed value may be applied to the robot 3. In order to determine whether such a disturbance is applied, Figure 3 As shown, the robot controller 5 has Figure 2 In addition to the structure shown, there is also a subtractor 39, a contact determination unit 41 and a stop processing unit 43. The detection position stored by the detection position storage unit 35 and the detection position (an example of the second detection position) detected by the encoder E when the current control unit 29 performs torque control of the motor M according to the torque command stored by the torque command storage unit 33 are input to the subtractor 39, and the subtractor 39 outputs their position deviation. The contact determination unit 41 determines whether there is contact with the robot 3 during the execution of the torque control. Specifically, the contact determination unit 41 compares the position deviation output by the subtractor 39 with the first threshold value. When the position deviation is larger than the first threshold value, it is determined that interference beyond the assumption is applied (the possibility of contact is high), and when the position deviation is less than the first threshold value, it is determined that the interference is within the assumption (the possibility of contact is low).

[0073] When the contact determination unit 41 determines that there is contact, the stop processing unit 43 (an example of the first stop processing unit) stops the supply of current to the motor M and operates the brake B to stop the motor M. In addition, the stop processing unit 43 may output a warning instead of stopping the motor M or in addition to the stopping of the motor M.

[0074] In addition, the processing of the torque instruction storage unit 33, the detection position storage unit 35, the contact determination unit 41, etc. is not limited to the example of sharing these processing, and can be processed by a smaller number of processing units (for example, one processing unit), or by further subdivided processing units. In addition, each processing unit of the robot controller 5 can also be equipped with only the part (servo amplifier, etc.) that supplies driving power to the motor M through an actual device, and the other functions are performed by the CPU 901 described later (refer to Fig.24 ) is installed by a program executed by the robot controller 5, and part or all of it can also be installed by an actual device such as an ASIC, an FPGA, or other circuits. In addition, the sharing of processing between the robot controller 5 and the host controller 7 is not limited to the above example. For example, the host controller 7 can perform processing such as the torque instruction storage unit 33, the detection position storage unit 35, and the contact determination unit 41, or the robot controller 5 and the host controller 7 can share the processing.

[0075] (1-4. Control contents of robot controller)

[0076] Next, refer to Figure 4 An example of the control content of the robot controller 5 is described. In addition, before executing this flowchart, the robot 3 is taught in advance using a teaching box or the like, and a position command corresponding to the teaching is stored in the host controller 7. In addition, in order to distinguish it from the torque teaching described above, the teaching performed at this time is called "position teaching".

[0077] In step S10 , the robot controller 5 performs position control on each motor M based on the position command from the host controller 7 , and performs position playback for causing the robot 3 to operate.

[0078] In step S20, the robot controller 5 stores the torque command (torque teaching) generated by the speed control unit 27 in the position playback in a time series through the torque command storage unit 33. In addition, the robot controller 5 stores the detection position detected by the encoder E in the position playback in a time series through the detection position storage unit 35.

[0079] In step S30 , the robot controller 5 uses the current control unit 29 to execute torque control on each motor M using the torque command stored in step S20 as a command value, thereby executing torque playback for operating the robot 3 .

[0080] In step S40 , the robot controller 5 calculates, by means of the subtractor 39 , the position deviation between the detection position during the torque teaching stored in step S20 and the detection position detected by the encoder E during the torque playback being executed.

[0081] In step S50, the robot controller 5 determines whether the position deviation calculated in the above step S40 is greater than the first threshold value through the contact determination unit 41. When the position deviation is less than the first threshold value (step S50: No), this process ends. On the other hand, when the position deviation is greater than the first threshold value (step S50: Yes), it transfers to step S60.

[0082] In step S60 , the robot controller 5 stops the supply of current to the motor M and actuates the brake B via the stop processing unit 43 , thereby stopping the motor M. Then, this flow ends.

[0083] (1-5. Simulation results)

[0084] Next, refer to Figure 5 to Figure 12 An example of simulation results for verifying the effect of the present embodiment will be described. Here, a simulation was performed as the operation of one axis using a rotary motor and a ball screw.

[0085] Figure 5 and Figure 6 An example of the operation and processing during torque teaching is shown below. Figure 5 As shown in FIG. 1 , the position command used in the position control during torque teaching is, for example, a sine wave with an amplitude of 18.84 rad and a frequency of 1 Hz. Figure 6 As shown, no external force is applied. In this case, Figure 5 As shown in Figure 1, the detected position of the encoder is roughly consistent with the position command. In addition, the position command generates Figure 6 The torque command shown is stored in time series.

[0086] Next, the effect obtained by torque playback is verified by comparing the actions of position playback (comparative example) and torque playback (implementation method). Here, in both position playback and torque playback, in order to make the motor the same as the torque teaching condition between 0s and 4s, it is set not to bear external force. In addition, below 4s, unlike the torque teaching, it is set to bear the reaction force received in the range greater than 0rad, for example, the reaction force received by contacting an object with a rigidity of 0.0372Nm / rad and a viscosity of 14.2Nm / (rad / s) as an external force.

[0087] Figure 7 and Figure 8 An example of the position and torque during position playback in this case is shown. Fig. 9 An example of the position deviation between the detection position during position teaching and the detection position during position playback is shown. Figure 7 As shown in FIG. 1 , when performing position playback of position control, even if the external force is different from that during position teaching, the detected position follows the position instruction and is roughly consistent. Fig. 9 As shown in FIG. 1 , the position deviation between the detection position during position teaching and the detection position during position playback is, for example, 0.05 rad at most. Compared with the amplitude of the position command of 18.84 rad, the position deviation is less than 1 / 100 of the command value. Figure 8 As shown in FIG. 1 , even if an external force is applied, the detection position follows the position command, so a torque greater than that during position teaching is output after 4 seconds. In addition, the maximum value of the external force indicating the torque applied to the contact object is 0.7 Nm in this example.

[0088] According to the above Figure 7 to Figure 9 In the position playback (comparative example), the motor operates in a manner that outputs a torque to overcome the external force and follows the taught position when subjected to an external force. Therefore, in the case of contact with a person, a large torque is output in a manner that follows the position instruction, and a force is applied to the person, which may cause harm to the person.

[0089] Fig.10 and Fig.11 An example of the position and torque during torque playback in this embodiment is shown. Fig.12 An example of the positional deviation between the detection position during torque teaching (≈ the detection position during position teaching) and the detection position during torque playback is shown. Fig.10 As shown in FIG. 1 , when performing torque playback of torque control, the detected position does not follow the taught position command when subjected to an external force different from that during torque teaching. Fig.12 As shown in FIG. 1 , when subjected to external force, the position deviation between the detection position during torque teaching and the detection position during torque playback exceeds 200 rad, which is more than 10 times the amplitude of the position command, 18.84 rad. Fig.11 As shown in FIG. 1 , the torque command during the torque playback is the same as the torque command during the torque teaching. In addition, the maximum value of the magnitude of the external force representing the torque applied to the contact object is 0.1 Nm in this example.

[0090] As mentioned above Figure 8 and Fig.11 As shown in the figure, the maximum values ​​of the external force during position playback and torque playback are 0.7Nm and 0.1Nm respectively. The external force applied to the contact object during torque playback is smaller than that during position playback. Therefore, in the case of contact with a person, the same torque as during torque teaching is output to apply force to the person. Therefore, compared with position playback, the external force applied to the person becomes smaller. Therefore, compared with position playback, the force applied to the person can be reduced, which can improve safety. In addition, as Fig. 9 and Fig.12As shown in the figure, when no external force is applied (0s to 4s), the detection position during teaching of either position playback or torque playback is roughly the same as the detection position during playback. Therefore, during torque playback, if the external force applied is the same as during torque teaching, the same action as during torque teaching is performed.

[0091] On the other hand, Fig. 9 As shown in FIG. 1 , the position deviation of the detection position when the external force is applied (after 4 seconds) is 0.05 rad at the maximum during the position playback. In contrast, Fig.12 As shown in FIG. 1 , the torque is over 200 rad during the torque playback, which is a significant difference. Therefore, it is possible to determine whether an external force is applied during the torque playback based on the positional deviation between the detection position during the torque teaching and the detection position during the torque playback.

[0092] As described above, in torque playback, when the same external force as in torque teaching is applied, the same action as in position playback is performed, and when a different external force than in torque teaching is applied, the action is performed in imitation of the external force. In addition, it is possible to estimate whether an external force is applied based on the position deviation between the detection position during torque teaching and the detection position during torque playback. Therefore, by using torque playback, a robot that can perform safe actions without causing harm to humans when in contact with humans can be realized without using an external force measurement sensor, and can collaborate with humans.

[0093] (1-6. Effects of the First Embodiment)

[0094] The robot system 1 of the first embodiment described above comprises: a robot 3 having joints driven by a motor M; and a robot controller 5, which controls the motor M to move the robot 3, the robot controller 5 comprising: a position control unit 25, a speed control unit 27 and a current control unit 29, which perform position control of the motor M according to the position instruction; a torque instruction storage unit 33, which stores the torque instruction generated according to the position instruction in a time series when performing position control of the motor M; and a current control unit 29, which performs torque control of the motor M according to the torque instruction stored by the torque instruction storage unit 33.

[0095] In the robot system 1 of the present embodiment, when teaching the desired fingertip position to the robot 3 and replaying, the robot controller 5 controls the position of the motor M of each joint through the position control unit 25 and the like to make the robot 3 move. At this time, the torque command calculated for the movement of each joint is saved along the time series by the torque command storage unit 33 (torque teaching). The saved torque command is a torque command for moving the fingertip of the robot 3 to the desired position. Therefore, when the torque control is performed by setting the saved torque command as the command value through the current control unit 29, the fingertip of the robot 3 can be moved to the desired position (torque playback). Moreover, the position control is the control to reach the position indicated by an arbitrary torque, and on the other hand, the torque control is the control to generate the torque indicated at an arbitrary position. Therefore, by performing torque control on the motor M in a manner that outputs a torque that does not cause harm to people, even if the robot 3 comes into contact with people, it can be safely operated in a manner that does not cause harm to people. As described above, by performing the torque playback, the robot 3 can safely operate in contact with a person even if no external force measuring sensor such as a torque sensor or a force sensor is provided (or even if the number is reduced). Therefore, a robot system 1 that can operate in cooperation with a person while suppressing cost increases can be realized.

[0096] In addition, in the present embodiment, in particular, the robot 3 has an encoder E which detects the position of the motor M, and the robot controller 5 has: a detection position storage unit 35 which stores, in time series, the detection position detected by the encoder E when the position control of the motor M is performed by the position control unit 25, etc.; and a contact determination unit 41 which determines whether there is contact with the robot 3 during the execution of the torque control based on the position deviation between the detection position stored by the detection position storage unit 35 and the detection position detected by the encoder E when the torque control of the motor M is performed by the current control unit 29.

[0097] During the process of torque control by the current control unit 29 (torque playback), the robot 3 moves in a manner corresponding to the external force applied. Therefore, it is possible to determine whether an external force is applied to the robot 3 (whether it is in contact with an external person or object) based on the position deviation between the detection position during torque teaching and the detection position during torque playback. Therefore, even if no external force measurement sensor such as a torque sensor or a force sensor is provided, it is possible to determine whether there is contact with the robot 3.

[0098] In addition, in the present embodiment, in particular, the contact determination unit 41 compares the position deviation with the first threshold value, and determines that there is contact when the position deviation is larger than the first threshold value. The robot controller 5 has a stop processing unit 43, and when the contact determination unit 41 determines that there is contact, the stop processing unit 43 stops the motor M.

[0099] Thus, when the robot 3 comes into contact with a person or an object, the robot 3 can immediately stop its operation, thereby ensuring the safety of the person cooperating with the robot 3 and preventing damage to surrounding objects.

[0100] <2. Second Implementation Method>

[0101] Next, a second embodiment will be described with reference to the drawings. In the second embodiment, a disturbance observer is used to estimate disturbances during torque teaching and torque playback.

[0102] (2-1. Structure of robot controller)

[0103] First, refer to Fig.13 and Fig.14 An example of the functional structure of the robot controller 5A according to the second embodiment is described by dividing into a torque teaching time and a torque playback time.

[0104] Fig.13 An example of the functional structure of the robot controller 5A during torque teaching is shown. Fig.13 As shown, the robot controller 5A replaces the above-mentioned detection position storage unit 35 and has a disturbance observer 45 and an estimated disturbance storage unit 47. The disturbance observer 45 (an example of a disturbance estimation unit) estimates the disturbance based on the torque command generated by the speed control unit 27 and the detection position detected by the encoder E. The estimated disturbance storage unit 47 stores the value of the estimated disturbance (an example of the first estimated disturbance) estimated by the disturbance observer 45 when the position control of the motor M is performed by the position control unit 25, the speed control unit 27, and the current control unit 29 in a time series. That is, in the second embodiment, during position playback, the torque command generated by the speed control unit 27 for the movement of each joint is stored in a time series for each motor M by the torque command storage unit 33, and the estimated disturbance storage unit 47 stores the estimated disturbance estimated by the disturbance observer 45 for each motor M in a time series.

[0105] Fig.14 FIG. 5 shows an example of the functional structure of the robot controller 5A during torque playback. As described above, during torque playback, due to contact with a person, etc., a disturbance beyond the expected value may be applied to the robot 3. In order to determine whether such a disturbance is applied, Fig.14 As shown, the robot controller 5A has Fig.13 In addition to the illustrated configuration, the control circuit 50 further includes a subtractor 49 , a limiter 51 , an adder 53 , a contact determination unit 55 , and a stop processing unit 57 .

[0106] The estimated disturbance stored in the estimated disturbance storage unit 47 and the estimated disturbance (an example of the second estimated disturbance) estimated by the disturbance observer 45 when the current control unit 29 performs torque control of the motor M according to the torque command stored in the estimated disturbance storage unit 33 are input to the subtractor 49, and the subtractor 49 outputs their disturbance deviation. The limiter 51 limits the disturbance deviation to a value below the limit value set in advance according to the standard. Thus, it is possible to set a limit on the size of the disturbance to be corrected. In addition, the limiter 51 may not necessarily be set. The adder 53 (an example of a torque command correction unit) corrects the torque command by adding the disturbance deviation output by the subtractor 49 and limited by the limiter 51 to the torque command stored in the torque command storage unit 33. The current control unit 29 performs torque control of the motor M according to the corrected torque command.

[0107] The contact determination unit 55 determines whether or not there is contact with the robot 3 during the execution of the torque control. Specifically, the contact determination unit 55 compares the interference deviation output by the subtractor 49 with the second threshold value, and when the interference deviation is larger than the second threshold value, determines that interference greater than the assumption is applied (the possibility of contact is high), and when the interference deviation is less than the second threshold value, determines that interference is within the assumption (the possibility of contact is low).

[0108] When the contact determination unit 55 determines that there is contact, the stop processing unit 57 (an example of the second stop processing unit) stops the supply of current to the motor M and operates the brake B to stop the motor M. In addition, the stop processing unit 57 may output a warning instead of stopping the motor M or in addition to this.

[0109] In addition, the functions other than those described above of the robot controller 5A are similar to those described above. Figure 2 as well as Figure 3 The robot controller 5 shown is the same, so the description is omitted.

[0110] (2-2. Control contents of robot controller)

[0111] Next, refer to Fig.15 An example of the control content of the robot controller 5A will be described. Before executing this flowchart, the robot 3 is taught in advance using a teaching pendant or the like, and the host controller 7 stores position commands corresponding to the teaching.

[0112] In step S110 , the robot controller 5A performs position control on each motor M based on the position command from the host controller 7 , and performs position playback for causing the robot 3 to operate.

[0113] In step S120, the robot controller 5A stores the torque command (torque teaching) generated by the speed control unit 27 in the position playback in time series through the torque command storage unit 33. In addition, the robot controller 5A stores the estimated disturbance estimated by the disturbance observer 45 in the position playback in time series through the estimated disturbance storage unit 47.

[0114] In step S130 , the robot controller 5A uses the current control unit 29 to execute torque control on each motor M using the torque command stored in step S120 as a command value, thereby executing torque playback for operating the robot 3 .

[0115] In step S140, the robot controller 5A calculates the disturbance deviation between the estimated disturbance during the torque teaching stored in step S120 and the estimated disturbance estimated by the disturbance observer 45 during the torque playback being executed, by means of the subtractor 49. In addition, the robot controller 5A corrects the torque command by adding the calculated disturbance deviation to the torque command stored in step S120, by means of the adder 53. The current control unit 29 performs torque control according to the corrected torque command.

[0116] In step S150, the robot controller 5A determines whether the interference deviation calculated in step S140 is greater than the second threshold value by the contact determination unit 55. If the interference deviation is less than the second threshold value (step S150: No), the present process ends. On the other hand, if the interference deviation is greater than the second threshold value (step S150: Yes), the process moves to step S160.

[0117] In step S160 , the robot controller 5A stops the supply of current to the motor M and operates the brake B via the stop processing unit 57 , thereby stopping the motor M. Then, this flow ends.

[0118] (2-3. Effects of the Second Embodiment)

[0119] In the robot system 1 of the second embodiment described above, the robot controller 5A has: an interference observer 45, which estimates interference based on the torque command and the detected position of the encoder E; an estimated interference storage unit 47, which stores the estimated interference estimated by the interference observer 45 when the position control unit 25 etc. performs position control of the motor M in a time series; and an adder 53, which corrects the torque command stored in the torque command storage unit 33 based on the interference deviation between the estimated interference stored in the estimated interference storage unit 47 and the estimated interference estimated by the interference observer 45 when the torque control of the motor M is performed by the current control unit 29, and the current control unit 29 performs torque control of the motor M based on the torque command corrected by the adder 53.

[0120] According to the present embodiment, by obtaining the difference between the estimated disturbance during torque teaching and the estimated disturbance during torque playback, it is possible to eliminate items that are difficult to model, such as friction within the device, and extract the disturbance. As a result, it is possible to confirm the disturbance newly applied to the system of the robot system 1 (disturbance that was not present during torque teaching but was newly applied during torque playback), and to perform torque control corresponding to the disturbance. As a result, it is possible to reduce the deviation between the position reached during torque playback and the position reached during position playback.

[0121] Furthermore, in the present embodiment, in particular, the robot controller 5A includes a stop processing unit 57 that compares the disturbance deviation with the second threshold value and stops the motor M when the disturbance deviation is larger than the second threshold value.

[0122] As a result, when the newly applied disturbance during torque playback is large (such as when the robot 3 comes into contact with a person or an object), the action can be stopped immediately, thereby ensuring the safety of people cooperating with the robot 3 and preventing damage to surrounding objects.

[0123] In addition, in the second embodiment described above, in addition to saving the torque instructions and estimated interference during torque teaching, the detection position can also be saved in advance as in the first embodiment described above, and whether interference is applied to the robot 3 can be determined based on the position deviation between the saved detection position and the detection position during torque playback.

[0124] <3. Modifications>

[0125] Hereinafter, the first embodiment and the second embodiment are described with reference to the accompanying drawings. However, the scope of the technical concept described in the claims is not limited to the embodiments described herein. Obviously, a person with common knowledge in the technical field to which the present embodiment belongs can think of making various changes, modifications, combinations, etc. within the scope of the technical concept. Therefore, the technology after these changes, modifications, combinations, etc. are of course also within the scope of the technical concept.

[0126] (3-1. When torque control is performed on some axes)

[0127] In the above embodiment, torque teaching and torque playback are performed on the motors M of all joints of the robot 3 which is a six-axis robot. However, the present invention is not limited to this, and torque teaching and torque playback may be performed on only the motors M of some joints.

[0128] Figure 16 to Figure 18 FIG. 2 shows an example of a workpiece W transfer operation performed by the robot 3. First, Fig.16As shown, the robot 3 grasps the workpiece W placed on the worktable 59 of the transfer side with the hand 9, and for example, by driving the actuators Ac2 to Ac6 to raise the hand 9, the workpiece W is lifted from the worktable 59. Fig.17 As shown, the robot 3 rotates the rotating part 13 and the arm 15 by driving the actuator Ac1, for example, to move the workpiece W from the vicinity of the worktable 59 of the transfer side to the vicinity of the worktable 61 of the transfer destination. Fig.18 As shown, the robot 3 lowers the hand 9 by driving the actuators Ac2 to Ac6, for example, and places the workpiece W on the table 61. The tables 59 and 61 may be, for example, a conveyor for conveying the workpiece W.

[0129] In such a workpiece W transfer operation, Fig.17 In the rotational movement shown, the fingertips of the arm 15 move greatly, so it is easy to make contact with a person. Fig.16 , Fig.18 In the up and down movement shown, the fingertips of the arm 15 move slightly, so it is difficult to make contact with the person. Therefore, it is also possible to perform torque control (torque teaching and torque playback) only on the motor M of the actuator Ac1, and perform position control on the motors M of the other actuators Ac2 to Ac6.

[0130] Specifically, the robot 3 performs position playback. Fig.17 During the rotational movement shown in FIG. 1 , the torque instruction storage unit 33 stores the torque instruction (torque teaching) for the motor M of the actuator Ac1 in a time series. Then, the robot 3 performs torque playback. Fig.17 During the rotational motion shown in FIG. 1 , the current control unit 29 performs torque control on the motor M of the actuator Ac1 according to the torque command stored in the torque command storage unit 33. At this time, the position control unit 25 and the like perform position control on the motors M of the other actuators Ac2 to Ac6 based on the position command. Fig.16 , Fig.18 During the up and down movement shown, position control is performed on the motors M of all the actuators Ac1 to Ac6.

[0131] Thus, for example, safety can be ensured by performing torque control on the motors M of the joints corresponding to actions that easily cause contact with people or objects, such as actions that cause the hand 9 to rotate and move the workpiece W to a large extent. On the other hand, position accuracy of the operation of the robot 3 can be improved by performing position control on the motors M of the joints corresponding to other actions that are unlikely to cause contact with people or objects, such as actions that cause the hand 9 to move away from and approach the workpiece W. Thus, both safety and operation accuracy can be achieved.

[0132] The above is only an example, and instead of or in addition to the actuator Ac1, the torque control may be performed on the motor M of another actuator (may be one or more).

[0133] (3-2. Switching from torque control to position control)

[0134] As described above, by executing torque control with the torque command saved when executing position control as the command value, the robot 3 can be moved to a position substantially equal to that during position control without applying interference different from that during position control to the robot 3. However, since position control is not necessarily performed, position deviation may sometimes occur due to the influence of certain interference. Therefore, a third threshold value may also be set, and when the position deviation caused by torque control is larger than the third threshold value, the position deviation is regarded as being outside the allowable range, and the torque control is switched to the position control.

[0135] Fig.19 An example of the functional configuration of the robot controller 5B of this modification is shown. In addition, here, only the torque playback is described, and the functional configuration during the torque teaching is the same as that of the first embodiment described above, so the description is omitted.

[0136] like Fig.19 As shown, the robot controller 5B has the following features in addition to the above Figure 3 In addition to the structure of the robot controller 5 shown, it also has a control switching unit 63 and a switch unit 65. The control switching unit 63 connects the torque instruction storage unit 33 to the current control unit 29 via the switch unit 65 during torque playback. As a result, the current control unit 29 performs torque control based on the torque instruction stored in the torque instruction storage unit 33. In addition, the control switching unit 63 compares the position deviation output from the subtractor 39 with the third threshold value at a specified time during torque playback. Moreover, when the position deviation is less than the third threshold value, it is regarded as being within the allowable range, and the torque control is maintained. On the other hand, when the position deviation is larger than the third threshold value, it is regarded as being outside the allowable range, and the switch unit 65 is switched from the torque instruction storage unit 33 side to the speed control unit 27 side. As a result, the torque control is switched to the position control based on the position control unit 25, etc.

[0137] In addition, the above-mentioned "predetermined time" may be a time of a fixed cycle, or may be, for example, a time when the torque control is terminated. Figure 16 to Figure 18 In the case of the transfer operation of the workpiece W shown in FIG. Fig.17 That is, in the case of such a workpiece W transfer operation, at Fig.17In the swinging motion shown in FIG. 1 , there is a possibility that position deviation may occur at the fingertips of the arm 15 due to the influence of some disturbance. Therefore, at the end of the swinging motion, the position deviation is compared with the third threshold value by the control switching unit 63. When the position deviation is less than the third threshold value, it is considered that the position deviation is within the allowable range and the control is switched to the following Fig.18 On the other hand, if the position deviation is larger than the third threshold, the position deviation is considered to be outside the allowable range, and the Fig.18 Before the descending action shown in FIG. 1 , the torque control is switched to the position control. Thus, the position deviation of the fingertips of the arm 15 can be corrected according to the position command. Then, after eliminating the position deviation, the control is switched to the position control. Fig.18 The descending action shown.

[0138] Next, refer to Fig. 20 An example of the control content of the robot controller 5B is described. Figure 16 to Figure 18 In addition, before executing this flowchart, the transfer operation of the workpiece W of the robot 3 is taught in advance using a teaching pendant or the like, and the robot 3 performs the transfer operation of the workpiece W. Fig.17 During the swing operation shown, the torque command (torque teaching) for the motor M of the actuator Ac1 is stored in a time series by the torque command storage unit 33 .

[0139] In step S210 , the robot controller 5B grasps the workpiece W placed on the table 59 of the transfer side with the hand 9 , and raises the hand 9 by, for example, performing position control on the motors M of the actuators Ac2 to Ac6 , thereby lifting the workpiece W from the table 59 .

[0140] In step S220, the robot controller 5B performs torque control (torque playback) on the motor M of the actuator Ac1 according to the torque command stored in the torque command storage unit 33, so as to move the workpiece W from the vicinity of the worktable 59 of the transfer side to the vicinity of the worktable 61 of the transfer destination. At this time, the position control based on the position command is performed on the motors M of the other actuators Ac2 to Ac6 by the position control unit 25 and the like.

[0141] In step S230 , the robot controller 5B calculates, by means of the subtractor 39 , the positional deviation between the stored detection position during torque teaching and the detection position detected by the encoder E during the torque playback being executed.

[0142] In step S240, the robot controller 5B determines whether the position deviation calculated in step S230 is larger than the first threshold value by the contact determination unit 41. If the position deviation is larger than the first threshold value (step S240: Yes), the process proceeds to step S250.

[0143] In step S250 , the robot controller 5B stops the supply of current to the motor M through the stop processing unit 43 and operates the brake B to stop the motor M. Then, this flow ends.

[0144] On the other hand, in the above-mentioned step S240 , when the position difference is equal to or smaller than the first threshold value (step S240 : No), the process proceeds to step S260 .

[0145] In step S260, the robot controller 5B determines whether the moving motion of the workpiece W is completed. This determination is performed, for example, by whether all the torque commands stored in the torque command storage unit 33 are output. If the moving motion of the workpiece W is not completed (step S260: No), the process returns to the previous step S220 and repeats the same process. On the other hand, if the moving motion of the workpiece W is completed (step S260: Yes), the process transfers to step S270.

[0146] In step S270, the robot controller 5B determines whether the position deviation calculated in step S230 is greater than the third threshold value by controlling the switching unit 63. When the position deviation is less than the third threshold value (step S270: No), the process moves to step S290 described later. On the other hand, when the position deviation is greater than the third threshold value (step S270: Yes), the process moves to step S280.

[0147] In step S280, the robot controller 5B switches the switch unit 65 from the torque command storage unit 33 to the speed control unit 27 by controlling the switching unit 63 to switch the torque control to the position control. Thus, the position deviation of the fingertip of the arm 15 is corrected according to the position command.

[0148] In step S290 , the robot controller 5B performs position control on the motors M of the actuators Ac2 to Ac6 , for example, to lower the hand 9 and place the workpiece W on the table 61 . Then, this flow ends.

[0149] According to the variation example described above, the robot controller 5B has a control switching unit 63, which compares the position deviation with the third threshold at a specified time during the process of torque control performed by the current control unit 29, and switches to the position control of the position control unit 25, etc. when the position deviation is larger than the third threshold.

[0150] Thus, even when a positional deviation occurs due to torque playback, the positional deviation can be corrected by switching from torque control to position control, so that the positional accuracy after the torque playback is performed can be improved.

[0151] (3-3. Case where mode switching is possible)

[0152] For example, as the operation modes of the robot 3 , a normal mode for executing position playback and a human cooperation mode for executing torque playback may be set in advance, and the user may switch between these operation modes.

[0153] Fig.21 An example of the functional structure of the part related to the mode switching of the robot controller 5C of this modification is shown. Fig.21 As shown, the robot controller 5C has a mode switching unit 67, which has a "normal mode" and a "human cooperation mode" as the operation mode of the robot 3, and switches between these modes according to the user's selection operation. The normal mode (an example of the first mode) is a mode in which the position control unit 25 and the like perform position control on all motors M including the motor M for which the torque command is stored by the torque command storage unit 33 according to the position command. That is, it is a mode in which the position control (position playback) is performed on the motors M of all joints of the robot 3. On the other hand, the human cooperation mode (an example of the second mode) is a mode in which the current control unit 29 performs torque control (torque playback) on the motors M of at least a part of the joints of the robot 3 according to the torque command stored by the torque command storage unit 33. The mode switching unit 67 switches the operation mode to any one of the above-mentioned "normal mode" or "human cooperation mode" according to the user's selection command sent from the upper controller 7 or an appropriate terminal, etc. In addition, the functions of the robot controller 5C other than the above-mentioned are the same as those of the above-mentioned robot controller 5, etc., and therefore, the description is omitted.

[0154] According to this modification, the user can select the control of the robot 3 according to the operating environment, so that the robot 3 operates in the human cooperation mode when cooperating with a human, and operates in the normal mode when not cooperating with a human. Therefore, the versatility and flexibility of the robot system 1 can be improved.

[0155] (3-4. When installing an external force measurement sensor)

[0156] According to the above-mentioned embodiments, a human-cooperative robot that does not require an external force measurement sensor can be realized, but the external force measurement sensor can also be set at an appropriate position as needed.

[0157] Fig. 22 An example of the structure of the robot 3A of this modification is shown. Fig. 22 As shown, the robot 3A has an end effector 69 for performing a predetermined operation and an external force measurement sensor 71 for measuring the external force acting on the end effector 69. The end effector 69 is not particularly limited, and is, for example, a tool for performing operations such as painting, welding, bolt tightening, and machining (cutting, grinding, etc.). The external force measurement sensor 71 is, for example, a 6-axis force sensor.

[0158] Fig.23 An example of the functional structure of the part related to the command correction of the robot controller 5D of this modification is shown. Fig.23 As shown in FIG. 1 , the robot controller 5D includes a command correction unit 73, which corrects the torque command generated by the speed control unit 27 based on the external force measured by the external force measurement sensor 71. In addition, commands other than the torque command, such as the position command input from the host controller 7, may be corrected. In addition, the functions of the robot controller 5D other than the above are the same as those of the above-mentioned robot controller 5, etc., and therefore, the description thereof is omitted.

[0159] According to this modification, by correcting the torque command based on the detection result of the external force measurement sensor 71, a robot system 1 can be realized that can ensure the accuracy of the operation of the end effector 69 and perform cooperative operation with a person. This is particularly suitable for operations such as cutting and grinding where the end effector 69 is pressed against a workpiece.

[0160] (3-5. Others)

[0161] The above describes the application of torque teaching and torque playback to general-purpose robots such as vertical multi-joint robots, horizontal multi-joint robots, parallel robots, and robot systems with robot controllers, but the application objects are not limited to these. For example, it can also be applied to a work machine system having a dedicated work machine and a controller for controlling it, and the dedicated work machine has an actuator that can move in at least one direction of the XYZθ directions and is designed for a specific operation. In addition, it can also be applied to a servo system having a rotary motor, a linear motor, and a controller for controlling it.

[0162] <4. Example of hardware configuration of robot controller>

[0163] Next, refer to Fig.23 The hardware configuration example of the robot controller 5 (including 5A to 5C, and the same applies hereinafter) described above is described. Fig.23 In the figure, the structure related to the function of supplying driving power to the motor M of the robot controller 5 is omitted as appropriate. In addition, the host controller 7 may also have the same structure.

[0164] like Fig.23As shown, the controller 5 includes, for example, a CPU 901, a ROM 903, a RAM 905, a dedicated integrated circuit 907 such as an ASIC or FPGA for a specific purpose, an input device 913, an output device 915, a recording device 917, a drive 919, a connection port 921, and a communication device 923. These structures are connected via a bus 909 and an input / output interface 911 so as to be able to transmit signals to each other.

[0165] The program can be recorded in advance in, for example, the ROM 903, the RAM 905, or a recording device 917 such as a hard disk.

[0166] In addition, the program can be recorded temporarily or non-temporarily (permanently) on a removable recording medium 925 such as a floppy disk, various CD / MO disks / DVDs, or semiconductor memory. Such a recording medium 925 can also be provided as so-called packaged software. In this case, the program recorded on these recording media 925 can also be read by the drive 919 and recorded in the above-mentioned recording device 917 via the input / output interface 911, the bus 909, etc.

[0167] In addition, the program can also be recorded in advance to a download site / other computer / other recording device, etc. (not shown). In this case, the program is transmitted via a network NW such as a LAN or the Internet, and the communication device 923 receives the program. Moreover, the program received by the communication device 923 can also be recorded in the above-mentioned recording device 917 via the input / output interface 911, the bus 909, etc.

[0168] In addition, the program can also be recorded in advance in, for example, an appropriate external connection device 927. In this case, the program can be transferred via an appropriate connection port 921 and recorded in the recording device 917 via the input / output interface 911, the bus 909, and the like.

[0169] Furthermore, the CPU 901 can realize the processing of the position control unit 25, the speed control unit 27, the current control unit 29, the speed estimation unit 31, the torque instruction storage unit 33, and the detection position storage unit 35 by executing various processing according to the program recorded in the recording device 917. At this time, the CPU 901 can, for example, directly read out and execute the program from the recording device 917, or can execute the program after temporarily loading the program into the RAM 905. Furthermore, the CPU 901 can also directly execute the program without recording the received program into the recording device 917 when receiving the program via the communication device 923, the driver 919, or the connection port 921, for example.

[0170] Furthermore, the CPU 901 may perform various processes as necessary based on signals and information input from an input device 913 such as a mouse, keyboard, or microphone (not shown).

[0171] Moreover, the CPU 901 can output the result after executing the above-mentioned processing from an output device 915 such as a display device, a voice output device, etc., and the CPU 901 can also send the processing result via the communication device 923 and the connection port 921 as needed, and can also record the processing result in the above-mentioned recording device 917 and the recording medium 925.

[0172] In addition, in the above description, when there are records such as "vertical", "parallel", "plane", etc., these are not records in a strict sense. That is, these "vertical", "parallel", and "plane" allow for tolerances and errors in design and manufacturing, and mean "substantially vertical", "substantially parallel", and "substantially plane".

[0173] In addition, in the above description, when there are descriptions of "same", "equal", "different" and the like in terms of apparent dimensions and sizes, these are not strictly defined. In other words, these "same", "equal", and "different" allow for tolerances and errors in design and manufacturing, and mean "substantially the same", "substantially equal", and "substantially different".

[0174] However, for example, in the case of a threshold value (see Figure 4 , Fig.15 , Fig. 20 In the case of flow charts), reference values, etc. as values ​​used as prescribed judgment criteria or as records of separator values, the terms "same", "equal", "different", etc. for these values ​​are different from those described above and have strict meanings.

[0175] Description of symbols

[0176] 1: Robot system; 3: Robot; 3A: Robot; 5: Robot controller (controller); 5A: Robot controller (controller); 5B: Robot controller (controller); 5C: Robot controller (controller); 9: Hand (end effector); 25: Position control unit (first control unit); 27: Speed ​​control unit (first control unit); 29: Current control unit (first control unit, second control unit); 33: Torque instruction storage unit; 35: Detection position storage unit; 41: Contact determination unit; 43: Stop processing unit (first stop processing unit); 45: Disturbance observer (disturbance estimation unit); 47: Disturbance estimation storage unit; 53: Adder (torque instruction correction unit); 57: Stop processing unit (second stop processing unit); 63: Control switching unit; 67: Mode switching unit; 69: End effector; 71: External force measurement sensor; 73: Instruction correction unit; E: Encoder; M: Motor.

Claims

1. A robot system comprising: A robot having joints driven by motors; and a controller that controls the motor to cause the robot to move, The controller has: a first control unit that performs position control of the motor to reach a position commanded by an arbitrary torque according to a position command during position playback; a torque instruction storage unit that stores, in time series, a torque instruction generated for the position control of the motor based on the position instruction in the position playback; and A second control unit performs torque control of the motor so as to generate the commanded torque at an arbitrary position based on the torque command stored in the torque command storage unit during the torque playback after the position playback.

2. The robot system according to claim 1, wherein: The robot has an encoder that detects the position of the motor. The controller also has: a detection position storage unit that stores, in time series, a first detection position of the motor detected by the encoder during a period in which the first control unit performs the position control of the motor; as well as A contact determination unit determines whether or not the robot is in contact during the execution of the torque control based on a position deviation between a first detection position stored in the detection position storage unit and a second detection position of the motor detected during the period in which the second control unit executes the torque control of the motor.

3. The robot system according to claim 2, wherein: The robot further includes an encoder that detects the first detection position and the second detection position.

4. The robot system according to claim 2, wherein: The controller includes a stop processing unit configured to stop the motor in response to the contact determination unit determining that there is contact with the robot.

5. The robot system according to claim 1, wherein: The controller also has: a detection position storage unit that stores a first detection position of the motor detected during execution of the position control; and A stop processing unit stops the motor in response to determining that a position deviation between a first detection position stored in the detection position storage unit and a second detection position of the motor detected during execution of the torque control is greater than a predetermined threshold.

6. The robot system according to claim 1, wherein: The robot has an encoder for detecting the position of the motor, The controller also has: a disturbance estimating unit that estimates a disturbance acting on the motor based on the torque command and a detected position of the motor detected by the encoder; an estimated disturbance storage unit that stores, in time series, a first estimated disturbance that acts on the motor and is estimated by the disturbance estimation unit when the first control unit performs position control of the motor; and a torque command correction unit that corrects the torque command stored in the torque command storage unit based on a disturbance deviation between the first estimated disturbance stored in the estimated disturbance storage unit and a second estimated disturbance estimated by the disturbance estimation unit when the second control unit performs torque control of the motor, The second control unit performs the torque control based on the torque command corrected by the torque command correction unit.

7. The robot system according to claim 6, wherein: The controller further includes a contact determination unit configured to determine whether or not there is contact with the robot while the torque control is being executed based on the disturbance deviation.

8. The robot system according to claim 7, wherein: The controller further includes a stop processing unit configured to stop the motor in response to the contact determination unit determining that there is contact with the robot.

9. The robot system according to claim 6, wherein: The controller further includes a stop processing unit that compares the disturbance deviation with a second threshold value and stops the motor in response to determining that the disturbance deviation is larger than the second threshold value.

10. The robot system according to claim 1, wherein: The controller also has: A control switching unit compares the position deviation with a third threshold value at a specified time during the process in which the second control unit performs the torque control, and switches the torque control of the second control unit to the position control of the first control unit in response to determining that the position deviation is greater than the third threshold value.

11. The robot system according to claim 2, wherein: The controller also has: a detection position storage unit that stores a first detection position of the motor detected during execution of the position control; a stop processing unit that stops the motor in response to determining that a position deviation between a first detection position stored in the detection position storage unit and a second detection position of the motor detected during the period in which the second control unit performs the torque control is greater than a first threshold value; as well as A control switching unit switches the torque control of the second control unit to the position control of the first control unit in response to determining that the position deviation calculated at a predetermined time during the torque control of the second control unit is larger than a third threshold.

12. The robot system according to claim 1, wherein: The robot comprises a plurality of joints driven by a plurality of motors respectively. The first control unit further performs position control of each of the plurality of motors. The torque command storage unit stores, in a time series, torque commands generated for some of the plurality of motors based on the position commands when the first control unit executes the position control of the plurality of motors. The second control unit further executes the torque control of the part of the motors according to the torque command stored in the torque command storage unit. The first control unit performs the position control on each of the motors other than the part of the motors among the plurality of motors while the second control unit performs the torque control on the part of the motors.

13. The robot system according to claim 1, wherein: The controller also has a mode switching unit, which switches between a first mode and a second mode according to a user's selection operation. In the first mode, the first control unit performs the position control of the motor based on the position instruction instead of the torque control. In the second mode, the second control unit performs the torque control based on the torque instruction stored in the torque instruction storage unit.

14. The robot system according to claim 1, wherein: The robot has: an end effector for performing a specified operation; and an external force measuring sensor, which measures the external force acting on the end effector, The controller includes a command correction unit that corrects at least one of the position command and the torque command based on the external force measured by the external force measurement sensor.

15. A control method for a robot, the robot having joints driven by motors, the control method comprising: In position playback, position control of the motor is performed according to the position command to reach the position commanded at an arbitrary torque; saving, in time series, a torque command generated for the position control of the motor based on the position command in the position playback; as well as In the torque playback after the position playback, the torque control of the motor is performed according to the stored torque command so as to generate the commanded torque at an arbitrary position.

16. A servo system comprising: Motors; and a controller for controlling the motor, The controller has: a first control unit that performs position control of the motor to reach a position commanded by an arbitrary torque according to a position command during position playback; a torque instruction storage unit that stores, in time series, a torque instruction generated for the position control of the motor based on the position instruction in the position playback; and A second control unit performs torque control of the motor so as to generate the commanded torque at an arbitrary position based on the torque command stored in the torque command storage unit during the torque playback after the position playback.