Device, method, and computer program for restricting movement of robot

JPWO2024201671A1Pending Publication Date: 2024-10-03
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025509297
Authority / Receiving Office
JP · JP
Patent Type
Applications
Filing Date
2023-03-27
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing robot movement restriction methods fail to effectively prevent robots from moving outside predetermined allowable motion ranges, potentially leading to safety hazards and operational inefficiencies.

Method used

A system that includes a position acquisition unit, a direction setting unit, and a movement restriction section to generate and enforce movement commands, ensuring the robot moves within permissible boundaries by determining first and second directions based on the current position and boundary of the allowable motion range, and restricting or permitting movements accordingly.

Benefits of technology

Effectively prevents robots from moving outside allowable motion ranges, enhancing safety and operational efficiency by allowing controlled movement along boundaries while restricting unsafe excursions.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

There is a need to move a robot along a boundary of an allowable operation range while preventing the robot from moving outside the allowable operation range, for example, when causing the robot to execute a predetermined task or when teaching an operation to the robot for the task. This device includes: a position acquisition unit that acquires the current position of a robot; a direction setting unit that determines a first direction toward the outside and a second direction orthogonal to the first direction on the basis of the current position acquired by the position acquisition unit and a boundary of an allowable operation range close to the current position; a command generation unit that, in order to move the robot, generates a first movement command for moving the robot in the first direction determined by the direction setting unit and a second movement command for moving the robot in the second direction determined by the direction setting unit; and a movement restriction unit for restricting the movement of the robot according to the first movement command while permitting the movement of the robot according to the second movement command.
Need to check novelty before this filing date? Find Prior Art

Description

Apparatus, method, and computer program for restricting robot movement

[0001] The present disclosure relates to an apparatus, method, and computer program for restricting movement of a robot outside of an allowable operating range.

[0002] There is a known method for restricting the movement of a robot outside a predetermined allowable operating range (for example, see Patent Document 1).

[0003] Japanese Patent Application Laid-Open No. 2020-49592

[0004] For example, when making a robot perform a specified task or when teaching the robot to perform an action for that task, there is a demand to move the robot along the boundary of the allowable operating range while avoiding the robot from moving outside the allowable operating range.

[0005] In one aspect of the present disclosure, an apparatus for restricting movement of a robot outside a predetermined allowable operating range includes a position acquisition unit that acquires the current position of the robot; a direction setting unit that determines a first direction toward the outside and a second direction perpendicular to the first direction based on the current position acquired by the position acquisition unit and a boundary of the allowable operating range adjacent to the current position; a command generation unit that generates, in order to move the robot, a first movement command for moving the robot in the first direction determined by the direction setting unit and a second movement command for moving the robot in the second direction determined by the direction setting unit; and a movement restriction unit that restricts movement of the robot according to the first movement command while allowing movement of the robot according to the second movement command.

[0006] A method for restricting movement of a robot outside a predetermined allowable operating range includes a processor acquiring the current position of the robot, determining a first direction outward and a second direction perpendicular to the first direction based on the acquired current position and a boundary of the allowable operating range adjacent to the current position, generating a first movement command for moving the robot in the determined first direction and a second movement command for moving the robot in the determined second direction, and restricting movement of the robot according to the first movement command while allowing movement of the robot according to the second movement command.

[0007] 1 is a schematic diagram of a robot system according to an embodiment. It is a block diagram of the robot system shown in FIG. 1. It shows an example of an allowable operating range. It is a flowchart showing an example of an operation flow of the robot system shown in FIG. 2. It shows a state in which the robot is placed within a proximity area. It is a flowchart showing an example of the flow of step S5 in FIG. 4. It shows a reference point set in step S11 in FIG. 6. It shows an operating range coordinate system, a first direction, and a second direction set in step S12 in FIG. 6. It shows a target position acquired in step S13 in FIG. 6. It shows an example of an image generated as a notification signal in step S14 in FIG. 6. It shows a first movement command and a second movement command generated in step S16 in FIG. 6. It is a block diagram schematically showing a signal transmission path in the movement restriction processing executed in steps S18 and S19 in FIG. 6. It is a block diagram showing other functions of the robot system shown in FIG. 1. It is a flowchart showing an example of step S5 executed by the robot system shown in FIG. 13. It shows a first force component and a second force component calculated in step S21 in FIG. It is a block diagram schematically showing a signal transmission path in the movement restriction processing executed in steps S22 to S25 in FIG. 14. 20 is a block diagram showing further functions of the robot system shown in FIG. 1; FIG. 21 shows the position and movement path of the robot during restricted movement; FIG. 22 shows a newly set allowable operating range; FIG. 23 shows another example of the allowable operating range; and FIG. 24 shows a first direction and a second direction set based on the boundaries of the allowable operating range shown in FIG.

[0008] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In various embodiments described below, like elements will be designated by like reference numerals, and duplicated descriptions will be omitted. First, a robot system 10 according to one embodiment will be described with reference to FIGS. 1 and 2. The robot system 10 includes a robot 12, a control device 14, and a teaching device 16.

[0009] In this embodiment, the robot 12 is a vertical articulated robot and includes a robot base 18, a rotating body 20, a lower arm 22, an upper arm 24, a wrist 26, and an end effector 28. The robot base 18 is fixed to the floor of a work cell or to an automated guided vehicle (AGV). The rotating body 20 is attached to the robot base 18 so as to be rotatable about a vertical axis. The base end of the lower arm 22 is attached to the rotating body 20 so as to be rotatable about a horizontal axis.

[0010] The upper arm 24 has a base end rotatably attached to the tip of the lower arm 22. The wrist 26 has a wrist base 26a attached to the tip of the upper arm 24 so as to be rotatable about two axes that are perpendicular to each other, and a wrist flange 26b rotatably attached to the wrist base 26a. The end effector 28 is detachably attached to the wrist flange 26b. The end effector 28 is, for example, a robot hand, a welding torch, a cutting tool, or a laser processing head, and performs a predetermined operation (workpiece handling, welding, cutting, or laser processing) on ​​a workpiece (not shown).

[0011] Each component of the robot 12 (robot base 18, rotating body 20, lower arm 22, upper arm 24, wrist 26) is provided with a servo motor 30 ( FIG. 2 ). These servo motors 30 rotate the drive shafts of the robot 12 in accordance with commands from the control device 14, thereby rotating the movable components of the robot 12, such as the rotating body 20, lower arm 22, upper arm 24, wrist base 26 a, and wrist flange 26 b (i.e., end effector 28), around the drive shafts. This allows the robot 12 to move the workpiece W gripped by the end effector 28 to any position.

[0012] The robot 12 is also provided with a force sensor 32 ( FIG. 2 ) that detects a force F applied to the robot 12. The force sensor 32 may be, for example, a six-axis force sensor provided on any component of the robot 12 (e.g., the robot base 18 or the wrist 26), or a torque sensor provided on each of the drive axes of the robot 12 that are driven by the servo motors 30, and supplies detection data Df of the detected force F to the control device 14.

[0013] 1, a robot coordinate system C1 and a tool coordinate system C2 are set for the robot 12. The robot coordinate system C1 is a fixed coordinate system for controlling the operation of each movable component of the robot 12. In this embodiment, the robot coordinate system C1 is set with respect to the robot base 18 so that its origin is located at the center of the robot base 18 and its z axis is parallel to (specifically, coincides with) the rotation axis of the rotating body 20.

[0014] On the other hand, the tool coordinate system C2 is a moving coordinate system that defines the position of the end effector 28 in the robot coordinate system C1. In this embodiment, the tool coordinate system C2 is set with respect to the end effector 28 so that its origin (so-called TCP) is located at the working position (workpiece gripping position, welding position, cutting position, or laser emission port) of the end effector 28. Note that the tool coordinate system C2 may be located at any position.

[0015] When moving the end effector 28 in the robot coordinate system C1, the control device 14 sets a tool coordinate system C2 in the robot coordinate system C1 and generates commands to each servo motor 30 to place the end effector 28 at a position represented by the set tool coordinate system C2. In this manner, the control device 14 can position the end effector 28 at any position in the robot coordinate system C1 by driving each servo motor 30. In this document, the term "position" may refer to both position and orientation.

[0016] The control device 14 is a computer having a processor 34, a memory 36, an I / O interface 38, a display device 40, and an input device 42. The processor 34 has a CPU or a GPU, etc., and is communicatively connected to the memory 36, the I / O interface 38, the display device 40, and the input device 42 via a bus 43, and performs arithmetic processing to realize various functions described below while communicating with these components.

[0017] The memory 36 includes RAM, ROM, or the like, and temporarily or permanently stores various data. The memory 36 may be a non-transitory computer-readable recording medium, such as a semiconductor memory, a magnetic recording medium, or an optical recording medium. The I / O interface 38 includes, for example, an Ethernet (registered trademark) port, a USB port, an optical fiber connector, or an HDMI (registered trademark) terminal, and communicates data with external devices via wired or wireless connection under instructions from the processor 34.

[0018] The display device 40 has a liquid crystal display, an organic EL display, or the like, and visibly displays various data under instructions from the processor 34. The input device 42 has a push button, a switch, a keyboard, a mouse, a touch panel, or the like, and receives data input from an operator. The display device 40 and the input device 42 may be integrally incorporated into the housing of the control device 14, or may be connected to the I / O interface 38 as a single computer (PC, etc.) separate from the housing of the control device 14.

[0019] The teaching device 16 teaches the robot 12 how to move. Specifically, the teaching device 16 is a computer having a processor 44, a memory 46, an I / O interface 48, a display device 50, and an input device 52. The teaching device 16 may be any type of computer, such as a teaching pendant or a notebook or tablet PC.

[0020] The processor 44 is communicatively connected to the memory 46, the I / O interface 48, the display device 50, and the input device 52 via a bus 53. Note that the configurations of the processor 44, the memory 46, the I / O interface 48, the display device 50, and the input device 52 are similar to those of the processor 34, the memory 36, the I / O interface 38, the display device 40, and the input device 42 described above, and therefore redundant explanations will be omitted.

[0021] In this embodiment, the processor 34 of the control device 14 is configured to be able to execute a jog mode MD1 and a direct teach mode MD2 as operation modes MD of the robot 12. In the jog mode MD1, the processor 34 moves the movable component of the robot 12 in a direction input to the input device 52 by the operator, in accordance with a jog command Cj input by the operator operating the input device 52 of the teaching device 16.

[0022] On the other hand, in the direct teach mode MD2, the processor 34 moves any movable component (e.g., the wrist 26 or the end effector 28) of the robot 12 in the direction of the operating force Fh applied by the operator to the movable component to which the operating force Fh is applied, by operating the input device 42 of the teaching device 16. The operator can select the jog mode MD1 or the direct teach mode MD2 as the operation mode MD.

[0023] To ensure the safety of the robot 12 when performing a task or when teaching the robot 12 to perform the task, an allowable operating range 100 is defined in advance for the robot 12. An example of the allowable operating range 100 is shown in FIG. 3. In the example shown in FIG. 3, the allowable operating range 100 is defined as a substantially circular (e.g., cylindrical) range within a predetermined distance from the robot base 18 (i.e., the origin of the robot coordinate system C1). The outer edge of this allowable operating range 100 is defined by a cylindrical boundary 100a, and the processor 34 restricts movement of the robot 12 outside the allowable operating range 100.

[0024] A method for restricting the movement of the robot 12 will be described below with reference to Fig. 4. The processor 34 starts the flow of Fig. 4 when it receives an operation start command from an operator, a host controller, or the computer program PG. At the start of the flow of Fig. 4, the robot 12 (i.e., the end effector 28) is within the allowable operating range 100.

[0025] In step S1, the processor 34 determines whether or not a command to move the robot 12 has been received. As an example, when the jog mode MD1 is being executed, the processor 34 determines YES when the above-mentioned jog command Cj is received from the teaching device 16. As another example, when the direct teach mode MD2 is being executed, the processor 34 continuously (e.g., periodically) calculates the magnitude and direction of the operating force Fh that the operator applied to the movable component of the robot 12 to move the robot 12, based on the detection data Df of the force sensor 32.

[0026] In this way, the processor 34 functions as a force acquisition unit 62 ( FIG. 2 ) that acquires the operating force Fh based on the detection data Df. The processor 34 determines YES when the acquired operating force Fh exceeds a predetermined threshold Fth (Fh≧Fth). If the processor 34 determines YES, the process proceeds to step S2, whereas if the processor 34 determines NO, the process proceeds to step S6. Below, a case will be described in which the operator issues a command (jog command Cj or operating force Fh) to the processor 34 to move the end effector 28 of the robot 12 outside the allowable operating range 100.

[0027] In step S2, the processor 34 acquires the current position Pc of the robot 12. Specifically, the processor 34 obtains the coordinate Qc (x c , y c , z c) as position data of the current position Pc. In this way, the processor 34 functions as a position acquisition unit 64 (FIG. 2) that acquires the current position Pc of the robot 12.

[0028] In step S3, the processor 34 determines whether the robot 12 is within a proximity region 100b that is close to the boundary 100a of the allowable operating range 100. This proximity region 100b is defined in advance by the operator, using the boundary 100a of the allowable operating range 100 as a reference. An example of the proximity region 100b is shown in FIG. 5. In the example shown in FIG. 5, the proximity region 100b is defined such that the distance d from the boundary 100a to the inside of the allowable operating range 100 (e.g., the origin of the robot coordinate system C1) is in the range of 0≦d≦d1.

[0029] If the current position Pc acquired in the most recent step S2 is outside the proximity region 100b (i.e., further inside the allowable operating range 100 than the proximity region 100b), the processor 34 determines the answer as NO and proceeds to step S4, whereas if the current position Pc is within the proximity region 100b, the processor 34 determines the answer as YES and proceeds to step S5. Figure 5 shows an example of the position of the robot 12 (end effector 28) when the answer is YES in step S3.

[0030] In step S4, the processor 34 causes the robot 12 to perform a normal operation. For example, when the jog mode MD1 is being executed, the processor 34 moves the end effector 28 of the robot 12 in accordance with the jog command Cj received in the most recent step S1. Alternatively, when the direct teach mode MD2 is being executed, the processor 34 moves the end effector 28, to which the operating force Fh has been applied, in the direction of the operating force Fh, in accordance with the operating force Fh acquired in the most recent step S1.

[0031] On the other hand, if the determination in step S3 is YES, in step S5, the processor 34 executes a movement restriction process. This step S5 will be described with reference to Fig. 6. In step S11, the processor 34 determines a point on the boundary 100a that is close to the current position Pc acquired in the most recent step S2 as a reference point Pr.

[0032] Specifically, the processor 34 identifies a point Pr on the boundary 100a at which the distance δ from the most recently acquired current position Pc is the smallest. FIG. 7 shows a point Pr at which the distance δ is the smallest value δ0. The processor 34 determines this point Pr as a reference point Pr, and calculates the coordinate Qr (x r , y r , z r ) is obtained. In this manner, the processor 34 functions as a reference point setting unit 66 (FIG. 2) that determines the reference point Pr.

[0033] In step S12, the processor 34 determines a first direction DR1 toward the outside of the allowable operating range 100 and a second direction DR2 perpendicular to the first direction DR1, based on the current position Pc acquired in the most recent step S2 and the boundary 100a of the allowable operating range 100 that is close to the current position Pc. In this embodiment, the processor 34 determines the first direction DR1 and the second direction DR2 based on the reference point Pr that was determined on the boundary 100a that is close to the current position Pc in the immediately preceding step S11.

[0034] More specifically, as shown in FIG. 8 , the processor 34 sets a movement range coordinate system C3, which defines the first direction DR1 and the second direction DR2, in the robot coordinate system C1. The origin of the movement range coordinate system C3 is located at the reference point Pr determined in the previous step S11. The y-axis of the movement range coordinate system C3 is parallel to the normal direction of the boundary 100a at the reference point Pr, and the positive y-axis direction is directed outward from the allowable movement range 100 (i.e., in a direction away from the origin of the robot coordinate system C1). The z-axis of the movement range coordinate system C3 may be parallel to the z-axis of the robot coordinate system C1.

[0035] In this way, the processor 34 sets a working range coordinate system C3 with the reference point Pr as its origin. The y-axis direction of this working range coordinate system C3 defines a first direction DR1, and the x-axis direction and z-axis direction of the working range coordinate system C3 (in other words, the x-z plane) define a second direction DR2. That is, in this embodiment, the first direction DR1 is parallel to the normal direction of the boundary 100a at the reference point Pr. The processor 34 calculates the coordinate Qo(x r , y r , z r , w o , p o , r o ) to obtain the

[0036] Among the coordinates Qo, (x r , y r , z r ) indicates the coordinate of the origin (i.e., reference point Pr) of the motion range coordinate system C3 in the robot coordinate system C1, and (w o , p o , r o ) indicates the orientation of the movement range coordinate system C3 with respect to the robot coordinate system C1 (i.e., the direction of each axis). In this way, the processor 34 determines the first direction DR1 and the second direction DR2 by setting the movement range coordinate system C3 based on the reference point Pr determined based on the current position Pc and the boundary 100a. Therefore, the processor 34 functions as a direction setting unit 68 ( FIG. 2 ) that determines the first direction DR1 and the second direction DR2 based on the current position Pc and the boundary 100a.

[0037] In step S13, the processor 34 acquires a target position Pt to which the robot 12 is to be moved from the current position Pc acquired in the most recent step S2. As an example, when the jog mode MD1 is being executed, the processor 34 calculates the target position Pt based on the jog command Cj received in the most recent step S1 and the current position Pc acquired in the most recent step S2. The jog command Cj includes information that specifies the movement direction DRm and the movement amount Δ in which the end effector 28 is to be moved.

[0038] As another example, when the direct teach mode MD2 is being executed, the processor 34 calculates the target position Pt based on the operating force Fh acquired in the most recent step S1 and the current position Pc acquired in the most recent step S2. For example, the relationship R between the magnitude of the operating force Fh and the movement amount Δ by which the robot 12 (e.g., the end effector 28) is moved in accordance with the operating force Fh is Fh_Δ may be predetermined and stored in advance in the memory 36 (or 46). For example, this relationship R Fh_Δ may be determined as a mathematical formula: Δ=f(Fh)=α×Fh (α is a predetermined coefficient). Note that each term of the function f(Fh) of the operating force Fh can be determined arbitrarily by the operator.

[0039] The processor 34 calculates the operating force Fh obtained in the most recent step S1 based on the relationship R Fh_Δ (i.e., a mathematical formula) to determine the corresponding movement amount Δ. Then, the processor 34 calculates the target position Pt based on the determined movement amount Δ, the direction of the operating force Fh obtained in the most recent step S1, and the current position Pc. An example of the target position Pt determined in this manner is shown in FIG. 9.

[0040] In this embodiment, since the operator has moved the robot 12 (end effector 28) outside the allowable operating range 100, the calculated target position Pt is located outside the allowable operating range 100 (in other words, closer to the boundary B) than the current position Pc. In this way, the processor 34 functions as a position calculation unit 70 (FIG. 2) that calculates the target position Pt.

[0041] In step S14, the processor 34 generates a notification signal Sn. This notification signal Sn notifies the operator of the movement direction DRm ( FIG. 9 ) from the current position Pc to the target position Pt and the distance δ between the target position Pt and the boundary 100a. For example, the processor 34 generates an image 110 shown in FIG. 10 as the notification signal Sn. This image 110 is a graphical user interface (GUI) for visually notifying the operator of the movement direction DRm and the distance δ.

[0042] Specifically, the image 110 three-dimensionally displays a robot model 12M (e.g., a 3D CAD model) that is a model of the robot 12, and the allowable operating range 100 (boundary 100a). The image 110 also displays the operating range coordinate system C3 (i.e., the first direction DR1 and the second direction DR2) that was set in the most recent step S12, together with the reference point Pr, superimposed on the robot model 12M that is placed at the current position Pc.

[0043] The image 110 displays the target position Pt and movement direction DRm acquired in the immediately preceding step S13 superimposed on the robot model 12M, and also displays the distance δ between the target position Pt and the boundary 100a in a distance display field 112. The processor 34 displays the generated image 110 on the display device 40 (or 50). In this way, the processor 34 functions as the notification signal generation unit 72 ( FIG. 2 ) that generates the notification signal Sn (image 110).

[0044] The processor 34 may further display the distance δ between the current position Pc and the boundary 100a in the distance display field 112. The processor 34 may further display at least one of the robot coordinate system C1 and the tool coordinate system C2, the coordinate Qc of the current position Pc, the coordinate Qr of the reference point Pr, and the coordinate Qo of the movement range coordinate system C3 on the image 110. The processor 34 may display only either the movement direction DRm or the distance δ on the image 110. The processor 34 may also generate, as the notification signal Sn, an audio signal that audibly describes the movement direction DRm or the distance δ, instead of the image 110.

[0045] In step S15, the processor 34 generates a movement command Cm for moving the robot 12 (end effector 28) from the current position Pc to the target position Pt outside the allowable operating range 100. The movement command Cm is, for example, a position command Cm p , speed command Cm v , torque command Cm q , or acceleration command Cm aand drives each servo motor 30 of the robot 12 to move the end effector 28 to the target position Pt. In this way, the processor 34 functions as a command generator 74 (FIG. 2) that generates the movement command Cm.

[0046] In step S16, the processor 34 functions as the command generator 74 and generates a first movement command Cm based on the movement range coordinate system C3 set in the most recent step S12. 1 and the second movement command Cm 2 The first movement command Cm 1 is a command to move the robot 12 (specifically, the end effector 28) in the first direction DR1 (i.e., the positive direction of the y-axis of the motion range coordinate system C3) determined in the most recent step S12. 2 is a command to move the end effector 28 in the second direction DR2 (that is, the direction along the xz plane of the working range coordinate system C3) determined in the most recent step S12.

[0047] In this embodiment, the processor 34 calculates the component Cm of the movement command Cm in the y-axis plus direction (i.e., the first direction DR1) of the movement command Cm based on the coordinate Qo of the movement range coordinate system C3 in the robot coordinate system C1 and the movement command Cm generated in the most recent step S15. 1 This calculation will be described with reference to Fig. 11. In Fig. 11, vector Cm represents the movement vector of the end effector 28 according to the movement command Cm generated in step S15.

[0048] In Fig. 15, the movement vector according to the movement command Cm is expressed in the movement range coordinate system C3 set in the most recent step S12. 1 is Cm 1 = Cm sin θ, where θ is the angle between the movement command Cm (movement vector) and the xz plane of the movement range coordinate system C3 (i.e., the second direction DR2). The processor 34 calculates the component Cm expressed in the movement range coordinate system C3. 1 is converted into the robot coordinate system C1, and the first movement command Cm 1 Generate it as:

[0049] First movement command Cm 1 is, for example, the first position command Cm p1 , first speed command Cm v1 , first torque command Cm q1 , or the first acceleration command Cm a1 The first position command Cm p1 is a movement of the end effector 28 in the y-axis plus direction (first direction DR1) of the working range coordinate system C3 to the position Pt y This is a command to move to (Fig. 11).

[0050] First speed command Cm v1 is the movement of the end effector 28 in the positive y-axis direction of the working range coordinate system C3 to the position Pt y The first torque command Cm includes a speed command value V1 that specifies the speed V1 at which the first torque command Cm is moved to the target position. q1 is the end effector 28 at the position Pt y The first acceleration command Cm includes a torque command value q1 that defines the torque q1 that drives each servo motor 30 when moving the servo motor 30 to the first acceleration command Cm. a1 is the end effector 28 at the position Pt y The acceleration command value a1 defines the acceleration a1 when moving the object to the target position.

[0051] Furthermore, the processor 34 calculates the component Cm of the movement command Cm in the xz plane (i.e., the second direction DR2) of the motion range coordinate system C3 based on the coordinate Qo and the movement command Cm. 2 In the example shown in FIG. 2 is Cm 2 The processor 34 calculates the component Cm expressed in the operating range coordinate system C3. 2 is converted into the robot coordinate system C1, and the second movement command Cm 2 The second movement command Cm 2 is the second position command Cm p2 , second speed command Cm v2 , second torque command Cm q2 , or the second acceleration command Cm a2 etc.

[0052] In the example shown in FIG. 11, the second position command Cm p2 is a movement of the end effector 28 in the positive x-axis direction (second direction DR2) of the working range coordinate system C3 to the x-coordinate position Pt of the target position Pt in the working range coordinate system C3. x The second speed command Cm v2 is the position Pt x The speed command value V2 specifies the speed V2 at which the object is moved to the target position.

[0053] Second torque command Cm q2 is the end effector 28 at the position Pt x The second acceleration command Cm includes a torque command value q2 that defines the torque q2 that drives each servo motor 30 when moving the servo motor 30 to the second acceleration command Cm. a2 is the end effector 28 at the position Pt x In this way, the processor 34 functions as a command generator 74 and generates the first movement command Cm based on the motion range coordinate system C3. 1 and the second movement command Cm 2 Generate.

[0054] In step S17, the processor 34 determines whether or not the target position Pt acquired in the most recent step S13 is outside the allowable operating range 100. If the target position Pt is outside the allowable operating range 100, the processor 34 determines YES and proceeds to step S19, whereas if the processor determines NO, the processor 34 proceeds to step S18.

[0055] In step S18, the processor 34 restricts the movement of the robot 12. Specifically, the processor 34 restricts the movement of the robot 12 based on the first movement command Cm generated in the most recent step S16. 1 By decreasing the command values ​​(for example, the speed command value V1, the torque command value q1, and the acceleration command value a1) of the first movement command Cm 1 The robot 12 (specifically, the end effector 28) is restricted from moving due to the force.

[0056] As an example, the processor 34 may generate a first movement command Cm 1The speed command value V1, torque command value q1, or acceleration command value a1 included in the above formula (1) may be multiplied by a predetermined coefficient β (e.g., β<1) (i.e., β·V1, β·q1, or β·a1) to reduce the command value V1, q1, or a1. The coefficient β may be determined as a function of the distance δ from the boundary 100a to the current position Pc: β=f(δ).

[0057] This function β=f(δ) may be determined so that the coefficient β decreases as the distance δ decreases (in other words, as the current position Pc approaches the boundary 100a), and β=0 when δ=0 (when the current position Pc is on the boundary 100a). That is, in this case, when the end effector 28 reaches the boundary 100a, the first movement command Cm 1 The command value V1, q1 or a1 becomes zero, and as a result, the movement of the end effector 28 in the first direction DR1 is prohibited.

[0058] As another example, the processor 34 may generate the first movement command Cm 1 The first position command Cm p1 For example, the processor 34 may limit the movement of the end effector 28 in the first direction DR1 by correcting the first position command Cm p1 The target position Pt of the end effector 28 in the first direction DR1 y The first position command Cm p1 may be corrected.

[0059] In this way, the processor 34 calculates the first movement command Cm generated in step S15. 1 Multiplication of coefficient β or position command Cm p1 By adding calculation processing such as correction of the first movement command Cm 1 ' and supplied to each servo motor 30. As a result, the first movement command Cm 1 The movement of the robot 12 can be restricted by the

[0060] On the other hand, the processor 34 outputs the second movement command Cm 2As an example, the processor 34 allows the robot 12 to move in accordance with the second movement command Cm 2 is supplied to each servo motor 30 without any change. In other words, in this case, the processor 34 supplies the second movement command Cm 2 The second position command Cm p2 , second speed command Cm v2 (speed command value V2), second torque command Cm q2 (torque command value q2), or second acceleration command Cm a2 (acceleration command value a2) is supplied to each servo motor 30 without being changed.

[0061] Therefore, in this case, the second movement command Cm 2 The command values ​​V2, q2, or a2 of the second movement command Cm 2 In accordance with (command value V2, q2 or a2), the end effector 28 is moved in the second direction DR2 (in the example of FIG. 11, the positive direction of the x-axis of the movement range coordinate system C3).

[0062] As another example, the processor 34 may generate a second movement command Cm 2 The velocity command value V2, torque command value q2, or acceleration command value a2 included in the second movement command Cm is set to a constant Vc (≧V2), qc (≧q2), or ac (≧a2) that is equal to or greater than the value acquired in step S16. 2 ' may be supplied to each servo motor 30. That is, in this case, the processor 34 moves the end effector 28 in the second direction DR2 at a constant velocity Vc, torque qc, or acceleration ac.

[0063] As yet another example, the processor 34 may generate a second movement command Cm 2 The velocity command value V2, torque command value q2, or acceleration command value a2 included in 2 ' and may be supplied to each servo motor 30. Here, the coefficient γ may be defined as a function of the distance δ: γ=f(δ).

[0064] This function γ=f(δ) may be determined so that the coefficient γ increases as the distance δ decreases. 2 The command values ​​γ·V2, γ·q2, or γ·a2 do not decrease with distance δ; rather, as the end effector 28 approaches boundary 100a, the movement of the end effector 28 in the second direction DR2 is promoted (accelerated).

[0065] Thus, the processor 34 generates the second movement command Cm 2 In this way, the processor 34 allows (or does not restrict) the movement of the robot 12 according to the first movement command Cm 1 While restricting the movement of the robot 12 by the second movement command Cm 2 4. After step S18, processor 34 proceeds to step S6 in FIG.

[0066] On the other hand, if the determination in step S17 is YES, in step S19, the processor 34 functions as the movement restriction unit 76 to restrict the movement of the robot 12. Specifically, the processor 34 prohibits the movement of the robot 12 in the first direction DR1. For example, the processor 34 prohibits the movement of the robot 12 in the first direction DR1 by issuing the first movement command Cm 1 Alternatively, the processor 34 prohibits the robot 12 from moving in the first direction DR1 by setting the velocity command value V1, torque command value q1, or acceleration command value a1 included in the first movement command Cm to zero. 1 The first position command Cm p1 The target position Pt in the first direction DR1 y The first position command Cm is set so that it is on (or inside) the boundary 100a. p1 may be corrected.

[0067] In this way, the processor 34 calculates the first movement command Cm generated in step S15. 1 , the command value V1, q1 or a1 is changed to zero, or the position command Cm p1 By performing calculation processing such as correcting the first movement command Cm 1' and supplies it to each servo motor 30. This makes it possible to prohibit the end effector 28 from moving in the first direction DR1. Meanwhile, the processor 34 changes the second movement command Cm 2 The robot 12 is allowed to move (or not restricted) by the

[0068] The movement restriction process in steps S18 and S19 is shown in Fig. 12. As shown in Fig. 12, the first movement command Cm generated by the command generating unit 74 in step S15 1 is sent to the first signal processing line PL1 and input to the calculator 80 by the movement limiting unit 76. Then, in step S18 or S19, the movement limiting unit 76 calculates the first movement command Cm 1 Calculation processing for limiting movement, such as multiplication by a coefficient β, is performed on the first movement command Cm 1 Then, the first movement command Cm 1 ' is output to the servo motor 30, and the servo motor 30 outputs the first movement command Cm 1 ', the robot 12 is moved in a restricted manner. 1 The movement of the robot 12 is restricted as described above.

[0069] On the other hand, the second movement command Cm generated by the command generating unit 74 in step S15 2 is sent to a second signal processing line PL2 separate from the first signal processing line PL1, and is input to a calculator 82 by the movement limiting unit 76. Then, in step S18 or S19, the movement limiting unit 76 outputs the second movement command Cm 2 is supplied to each servo motor 30 without any change, or is subjected to arithmetic processing such as multiplication by a coefficient γ to obtain the second movement command Cm 2 ' and supplied to each servo motor 30.

[0070] As a result, the second movement command Cm 2 In this embodiment, the robot 12 is permitted to move in accordance with the first movement command Cm 1 and the second movement command Cm 2are sent to separate signal processing lines PL1 and PL2, respectively, and are subjected to different signal processing by the movement restrictor 76.

[0071] In step S20, the processor 34 generates an alarm AL. For example, the processor 34 generates an alarm AL in the form of a visual or audio message stating, "Movement of the robot outside the allowable operating range is prohibited." The processor 34 then displays the generated alarm AL on the display device 40 (or 50) or outputs it through a speaker (not shown).

[0072] Alternatively, the control device 14, the teaching device 16, or the robot 12 may be provided with a light-emitting device (such as a rotating light or an LED lamp), and the processor 34 may generate an alarm AL that causes the light-emitting device to emit light. Alternatively, the teaching device 16 or the robot 12 may be provided with a vibrator (or a tactile generation device), and the processor 34 may generate an alarm AL that causes the vibrator to vibrate. After step S20, the processor 34 proceeds to step S6 in FIG. 4.

[0073] 4 again, in step S6, processor 34 determines whether or not an operation end start command has been received from an operator, a higher-level controller, or computer program PG. If processor 34 determines YES, it ends the flow of FIG. 4, but if it determines NO, it returns to step S1.

[0074] As described above, in this embodiment, the processor 34 functions as the force acquisition unit 62, position acquisition unit 64, reference point setting unit 66, direction setting unit 68, position calculation unit 70, notification signal generation unit 72, command generation unit 74, and movement restriction unit 76 to restrict movement of the robot 12 toward the outside of the allowable operating range 100. Therefore, the force acquisition unit 62, position acquisition unit 64, reference point setting unit 66, direction setting unit 68, position calculation unit 70, notification signal generation unit 72, command generation unit 74, and movement restriction unit 76 constitute a device 60 ( FIG. 2 ) that restricts movement of the robot 12 toward the outside of the allowable operating range 100.

[0075] In this device 60, the position acquisition unit 64 acquires the current position Pc of the robot 12 (step S2), and the direction setting unit 68 determines a first direction DR toward the outside of the allowable operating range 100 and a second direction DR2 perpendicular to the first direction DR1 based on the current position Pc acquired by the position acquisition unit 64 and the boundary 100a of the allowable operating range 100 close to the current position Pc (step S12).

[0076] Furthermore, the command generating unit 74 generates a first movement command Cm to move the robot 12 in the first direction DR1 determined by the direction setting unit 68. 1 and a second movement command Cm for moving the robot 12 in the second direction DR2 determined by the direction setting unit 68. 2 Then, the movement limiting unit 76 generates the first movement command Cm 1 While restricting the movement of the robot 12 by the second movement command Cm 2 The robot 12 is permitted to move by the robot control unit 11 (steps S18 and S19).

[0077] This configuration reliably prevents the robot 12 from moving outside the allowable operating range 100, thereby ensuring the safety of the operation of the robot 12. On the other hand, for example, when performing the above-described teaching, the operator may want to move the robot 12 (end effector 28) along the boundary 100a of the allowable operating range 100 (i.e., in the second direction DR2). In such a case, the operator can move the robot 12 effectively.

[0078] In the device 60, the reference point setting unit 66 sets a point Pr on the boundary 100a that is close to the current position Pc acquired by the position acquisition unit 64 as the reference point Pr (step S11). Then, the direction setting unit 68 sets a first direction DR1 and a second direction DR2 based on the reference point Pr set by the reference point setting unit 66 (step S12). With this configuration, the first direction DR1 and the second direction DR2 can be appropriately set on the boundary 100a in accordance with the current position Pc of the robot 12. As a result, the first movement command Cm 1 This allows the movement of the robot 12 in the first direction DR1 to be appropriately restricted.

[0079] Furthermore, in the device 60, the reference point setting unit 66 sets the point Pr on the boundary 100a that has the shortest distance δ from the current position Pc as the reference point Pr. With this configuration, the reference point Pr, which is used as the basis for the first direction DR1 and the second direction DR2, can be appropriately set in accordance with the current position Pc. Furthermore, in the device 60, the direction setting unit 68 sets the normal direction of the boundary 100a at the reference point Pr set by the reference point setting unit 66 as the first direction DR1. With this configuration, even if the boundary 100a is curved (e.g., circular), for example, the first direction DR1 can be appropriately set in accordance with the current position Pc of the robot 12.

[0080] In the device 60, the direction setting unit 68 sets a movement range coordinate system C3 having the reference point Pr set by the reference point setting unit 66 as the origin, a first axis (y-axis) that defines the first direction DR1, and second axes (x-axis, z-axis) that define the second direction DR1. Then, the command generating unit 74 generates a first movement command Cm in the direction of the first axis (y-axis direction) based on the movement range coordinate system C3. 1 and a second movement command Cm in the direction of the second axis (direction of the xz plane). 2 According to this configuration, the first movement command Cm is generated based on the motion range coordinate system C3. 1 and the second movement command Cm 2 Since the above arithmetic processing can be performed in parallel independently of each other, the efficiency of the arithmetic processing can be improved.

[0081] In the device 60, the command generator 74 generates a movement command Cm for moving the robot 12 outside the allowable operating range 100 (step S15), and calculates the component Cm of the movement command Cm in the first direction DR1. 1 is the first movement command Cm 1 and the component Cm in the second direction DR1 of the movement command Cm is generated as 2 is the second movement command Cm 2 According to this configuration, the first movement command Cm 1 and the second movement command Cm 2 can be generated from the movement command Cm using a relatively simple algorithm.1 and the second movement command Cm 2 This can speed up the calculation process for generating

[0082] In addition, in the device 60, the first movement command Cm 1 and the second movement command Cm 2 includes command values ​​V1 and V2, a1 and a2, or q1 and q2 that define the velocities V1 and V2 of the robot 12, the accelerations a1 and a2 of the robot, or the torques q1 and q2 that drive the robot 12. The movement limiting unit 76 then calculates the first movement command Cm 1 By decreasing the command value V1, a1 or q1 of the first movement command Cm 1 The movement of the robot 12 is restricted by the

[0083] On the other hand, the movement limiting unit 76 receives the second movement command Cm 2 The second movement command Cm 2 According to this configuration, the movement of the robot 12 is permitted by the first movement command Cm 1 The movement restriction of the robot 12 based on the second movement command Cm can be realized by a simple algorithm, and more diverse movement restrictions can be designed by appropriately setting the coefficient β described above, for example. 2 The second movement command Cm is set to a value that allows the robot 12 to move according to the 2 Alternatively, the command value V2, a2 ​​or q2 may be slightly decreased.

[0084] In the device 60, the position calculation unit 70 calculates a target position Pt to which the robot 12 is to be moved from the current position Pc, and the notification signal generation unit 72 generates a notification signal Sn that notifies the operator of the direction of movement DRm from the current position Pc to the target position Pt or the distance δ between the target position Pt and the boundary 100a (step S14). This configuration allows the operator to intuitively recognize the direction of movement DRm or the distance δ.

[0085] In addition, in the device 60, if the target position Pt calculated by the position calculation unit 70 is outside the allowable operating range 100 (YES in step S17), the movement restriction unit 76 prohibits the movement of the robot 12 in the first direction DR1 (step S19). This configuration can reliably prevent the robot 12 from moving outside the allowable operating range 100.

[0086] 4 and 6 are merely examples, and various modifications can be made to these flows. For example, after starting the flow shown in FIG. 6, the processor 34 may first execute steps S13 and S15, then execute steps S11, S12, and S14, and then execute steps S16 to S20 in sequence.

[0087] In this embodiment, the processor 34 determines, as the reference point Pr in step S11, the point P on the boundary 100a that is closest to the current position Pc, and the point Pr on the boundary 100a that has the smallest distance δ from the current position Pc (δ=δ0). However, the present invention is not limited to this, and the point P on the boundary 100a that is closest to the current position Pc may be determined using any other algorithm.

[0088] For example, in step S11, the processor 34 may determine the intersection P between the direction of one axis of the tool coordinate system C2 at this time (e.g., the z axis of the tool coordinate system C2 in FIG. 9 ) and the boundary 100 a as the reference point Pr. Alternatively, in the case where steps S13 and S15 are executed first and then step S11 is executed in the flow of FIG. 6 , the processor 34 may determine the movement direction Dm ( FIG. 9 ) in step S13 or S15, and then determine the intersection P between the determined movement direction Dm and the boundary 100 a as the reference point Pr in step S11.

[0089] In the present embodiment, the processor 34 determines the normal direction of the boundary 100a at the reference point Pr as the first direction DR1 (the y-axis direction of the working range coordinate system C3) in step S12. However, the present invention is not limited to this. The processor 34 may determine the first direction DR1 (the y-axis direction of the working range coordinate system C3) using any other algorithm. For example, in step S12, the processor 34 may determine the direction from the origin ( FIG. 8 ) of the tool coordinate system C2 at this time to point Pr on the boundary 100a at which the distance δ from the origin is the smallest as the first direction DR1 (the positive y-axis direction of the working range coordinate system C3).

[0090] In the present embodiment, the processor 34 sets the movement range coordinate system C3 in step S12. However, the present invention is not limited to this. The processor 34 may set the first direction DR1 and the second direction DR2 based on the reference point Pr in step S12 without setting the movement range coordinate system C3.

[0091] Note that step S14 may be omitted from the flow of FIG. 6 . That is, in this case, the notification signal generation unit 72 may be omitted from the device 60. Also, step S20 may be omitted from the flow of FIG. 6 . Note that in the above embodiment, the processor 34 is described as being capable of executing both the jog mode MD1 and the direct teach mode MD2. However, this is not limiting, and the processor 34 may be capable of executing only the jog mode MD1 without executing the direct teach mode MD2. That is, in this case, the force sensor 32 may be omitted from the robot 12, and the force acquisition unit 62 may be omitted from the device 60.

[0092] Next, other functions of the robot system 10 will be described with reference to Fig. 13. In this embodiment, the processor 34 functions as the device 60, which further includes the function of a force component calculation unit 78. Below, the functions of the robot system 10 shown in Fig. 13 will be described with reference to Figs. 4 and 14. In this embodiment, the processor 34 executes the flow of Fig. 4 under the above-mentioned direct teach mode MD2.

[0093] Therefore, in step S1, the processor 34 determines whether or not a command (operational force Fh) to move the robot 12 has been received, based on the operation force Fh acquired by functioning as the force acquisition unit 62. In this embodiment, the processor 34 executes the flow of Fig. 14 as step S5 (movement restriction process). In the flow shown in Fig. 14, processes similar to those in the flow of Fig. 6 are assigned the same step numbers, and duplicated explanations will be omitted.

[0094] In step S5 of FIG. 14, after executing the above-described steps S11 to S14, in step S21, the processor 34 calculates the first force component Fh in the first direction DR1 of the operating force Fh acquired in the most recent step S1. 1 and a second force component Fh in a second direction DR2. 2 The calculation of the force components will be described with reference to FIG.

[0095] 15, the vector (i.e., magnitude and direction) of the operating force Fh acquired in the most recent step S1 is represented in the operating range coordinate system C3 set in the most recent step S12. In FIG. 15, the component Fh of the operating force Fh in the y-axis direction (i.e., the first direction DR1) of the operating range coordinate system C3 is 1 Is, Fh 1 The processor 34 calculates the component Fh expressed in the movement range coordinate system C3 based on the coordinate Qo of the movement range coordinate system C3 in the robot coordinate system C1 and the operating force Fh acquired in the most recent step S1. 1 is calculated and transformed into the robot coordinate system C1 to obtain the first force component Fh 1 Obtain as.

[0096] On the other hand, the component Fh of the operating force Fh in the xz plane of the operating range coordinate system C3 (that is, the second direction DR2) 2 Is, Fh 2 The processor 34 calculates the component Fh expressed in the operating range coordinate system C3 based on the coordinate Qo and the operating force Fh. 2 is calculated and transformed into the robot coordinate system C1 to obtain the second force component Fh 2In this way, the processor 34 obtains the component Fh of the operating force Fh in the first direction DR1 as 1 The first force component Fh 1 and the component Fh of the operating force Fh in the second direction DR2 2 The second force component Fh 2 The force component calculation unit 78 (FIG. 13) calculates the force component as follows:

[0097] After step S21, the processor 34 executes step S17. If the determination in step S17 is NO, the processor 34 functions as the movement restriction unit 76 in step S22 to restrict the movement of the robot 12. Specifically, the processor 34 restricts the movement of the robot 12 by using the first force component Fh calculated in the most recent step S21. 1 By reducing the first movement command Cm 1 The movement of the robot 12 is restricted by the

[0098] As an example, processor 34 may calculate a first force component Fh 1 is multiplied by a predetermined coefficient ε (for example, ε<1) (i.e., ε·Fh 1 ) to obtain the first force component Fh 1 , thereby reducing the first force component Fh 1 The coefficient ε may be determined as a function of the distance δ from the current position Pc to the boundary 100a: ε=f(δ).

[0099] This function: ε = f(δ) may be determined so that the coefficient ε becomes smaller as the distance δ becomes smaller, and when δ = 0, ε = 0. That is, in this case, when the end effector 28 reaches the boundary 100a, the first movement command Cm generated in the subsequent step S23 1 becomes zero, and as a result, movement of the end effector 28 in the first direction DR1 is prohibited.

[0100] On the other hand, the processor 34 calculates the second force component Fh 2 Without reducing the second movement command Cm 2As an example, the processor 34 may allow (or not restrict) the movement of the robot 12 by the second force component Fh 2 As another example, processor 34 may modify second force component Fh 2 is set to a constant Fhc (≧Fh 2 ), the second force component Fh 2 ' may be changed to '.

[0101] As yet another example, processor 34 may calculate the second force component Fh 2 is multiplied by a predetermined coefficient ζ to obtain a second force component Fh 2 ' (=ζ Fh 2 ) where the coefficient ζ may be defined as a function of the distance δ: ζ=f(δ). This function: ζ=f(δ) may be defined such that the coefficient ζ increases as the distance δ decreases.

[0102] That is, in this case, the second force component Fh 2 does not decrease according to the distance δ, but rather increases as the end effector 28 approaches the boundary 100a, and the second movement command Cm generated in a later step S23 2 Thus, the processor 34 promotes the movement of the end effector 28 in the second direction DR2 according to the second movement command Cm 2 The robot 12 is allowed to move (or not restricted) by the

[0103] In step S23, the processor 34 functions as the command generator 74 to generate a first movement command Cm 1 and the second movement command Cm 2 Specifically, the processor 34 generates the first force component Fh obtained as a result of the immediately preceding step S22. 1 ' (= ε Fh 1 ) according to the first movement command Cm 1 and supplies it to each servo motor 30. In the immediately preceding step S22, the first force component Fh obtained in step S21 is 1 is the first force component Fh 1 Since the first movement command Cm1 The movement of the end effector 28 in the first direction DR1 is restricted by the

[0104] The processor 34 also calculates the second force component Fh obtained as a result of the immediately preceding step S22. 2 , Fhc or ζ·Fh 2 In response to the second movement command Cm 2 In the immediately preceding step S22, the second force component Fh calculated in step S21 is generated. 2 Since the second movement command Cm 2 is allowed (or is not restricted) to move the end effector 28 in the second direction DR2.

[0105] On the other hand, if the determination in step S17 is YES, in step S24, the processor 34 functions as the movement restriction unit 76 to restrict the movement of the robot 12. Specifically, the processor 34 restricts the movement of the robot 12 by using the first force component Fh calculated in the most recent step S21. 1 By setting to zero, the first movement command Cm generated in step S25 is 1 In this way, the processor 34 prohibits the robot 12 from moving in the first direction DR1 due to the first force component Fh calculated in step S21. 1 the first force component Fh 1 On the other hand, the processor 34 changes the second movement command Cm 2 The robot 12 is allowed to move (or not restricted) by the

[0106] In step S25, the processor 34 functions as the command generator 74 to generate a first movement command Cm 1 and the second movement command Cm 2 Specifically, the processor 34 generates the first force component Fh obtained as a result of the immediately preceding step S24. 1 ' (=0), the first movement command Cm 1 and supplies it to each servo motor 30. This prohibits the end effector 28 from moving in the first direction DR1.

[0107] The processor 34 also calculates the second force component Fh obtained as a result of the immediately preceding step S24. 2 , Fhc or ζ·Fh 2 In response to the second movement command Cm 2 This allows (or does not restrict) movement of the end effector 28 in the second direction DR2. After step S25, the processor 34 proceeds to step S20 described above.

[0108] The movement restriction process in steps S21 to S25 is shown in Fig. 16. As shown in Fig. 16, the first force component Fh calculated by the force component calculation unit 78 in step S21 1 is sent to the first signal processing line PL1 and input to the calculator 80 by the movement limiting unit 76. Then, in steps S22 and S24, the movement limiting unit 76 calculates the first force component Fh 1 , and a calculation process for restricting movement, such as multiplication by a coefficient ε, is performed to obtain the first force component Fh 1 '.

[0109] And the first force component Fh 1 ' is input to the command generating unit 74, and in step S23 or S25, the command generating unit 74 generates the first force component Fh 1 ', the first movement command Cm 1 The first movement command Cm 1 The movement of the robot 12 is restricted as described above.

[0110] On the other hand, the second force component Fh calculated by the force component calculation unit 78 in step S21 2 is sent to the second signal processing line PL2 and input to the calculator 82 of the movement limiting unit 76. Then, in step S22 or S24, the movement limiting unit 76 calculates the second force component Fh 2 is supplied to the command generating unit 74 without any change, or is subjected to arithmetic processing such as multiplication by a coefficient ζ to obtain the second force component Fh 2 ' to the command generating unit 74.

[0111] In step S23 or S25, the command generator 74 calculates the second force component Fh2 or Fh 2 ', the second movement command Cm 2 The second movement command Cm 2 Thus, in this embodiment, the first force component Fh generated by the force component generating unit 78 is 1 and the second force component Fh 2 are sent to separate signal processing lines PL1 and PL2, respectively, and are subjected to different signal processing by the movement restrictor 76.

[0112] 13, the force acquisition unit 62 acquires the operation force Fh applied to the robot 12 to move the robot 12 based on the detection data Df of the force sensor 32 that detects the force F applied to the robot 12 (step S1). In addition, the force component calculation unit 78 calculates the component Fh in the first direction DR1 of the operation force Fh acquired by the force acquisition unit 62. 1 The first force component Fh 1 and the component Fh of the operating force Fh in the second direction DR2 2 The second force component Fh 2 (step S21).

[0113] Then, the command generating unit 74 calculates the first force component Fh calculated by the force component calculating unit 78. 1 The first movement command Cm 1 and generates the second force component Fh calculated by the force component calculation unit 78. 2 The second movement command Cm 2 (steps S23 and S25). With this configuration, for example, when the operator applies an operating force Fh to the robot 12 in the direct teach mode MD2, the robot 12 can be accurately moved in each of the first direction DR1 and the second direction DR2 by an amount corresponding to the operating force Fh.

[0114] In the device 60 shown in FIG. 13, the movement limiting unit 76 applies the first force component Fh 1 By reducing the first movement command Cm 1While restricting the movement of the robot 12 by the second force component Fh 2 Without reducing the second movement command Cm 2 (Steps S22 and S24). 1 The movement restriction of the robot 12 based on the second movement command Cm can be realized by a simple algorithm, and more diverse movement restrictions can be designed by appropriately setting the coefficient ε, for example. 2 The second force component Fh is applied to the robot 12 to the extent that the robot 12 is allowed to move by the second force component Fh. 2 may be decreased slightly.

[0115] Next, with reference to FIG. 17 , further functions of the robot system 10 will be described. In this embodiment, the processor 34 functions as the device 60, which further includes the functions of a motion range setting unit 84. Below, functions of the robot system 10 shown in FIG. 13 will be described. In this embodiment, the processor 34 executes the flow of FIG. 6 or FIG. 14 , and functions as the movement limiting unit 76 in the above-mentioned steps S18, S19, S22, or S24 to limit the movement of the robot 12 (i.e., limiting movement in the first direction DR1 while allowing movement in the second direction DR2).

[0116] While this restricted movement is being performed, the processor 34 repeatedly executes step S2 described above, functions as the position acquisition unit 64, and acquires the current position Pc of the robot 12 (i.e., the end effector 28). n (n=1, 2, 3, ...) is repeatedly acquired. FIG. 18 shows the current position Pc of the end effector 28 acquired during the limited movement. 1 , Pc 2 and Pc 3 In this embodiment, the processor 34 calculates the current position Pc obtained during the limited movement. n As an example, the processor 34 sets a new allowable operating range 120 based on the current position Pc 1 , Pc 2 and Pc 3A new allowable operating range 120 is set in the robot coordinate system C1 so as to pass through the coordinate system C1.

[0117] As another example, the processor 34 may calculate the current position Pc 1 , Pc 2 and Pc 3 Based on this, the current position Pc 1 , Pc 2 and Pc 3 In this manner, in the present embodiment, the processor 34 generates a movement path MP that passes through the current position Pc obtained during the restricted movement, and sets a new allowable movement range 120 in the robot coordinate system C1 so as to be tangent to the generated movement path MP. n The operating range setting unit 84 (FIG. 17) sets a new allowable operating range 120 based on the above.

[0118] An example of the allowable operating range 120 set in this manner is shown in Fig. 19. As shown in Fig. 19, the allowable operating range 120 is positioned inside the boundary 100a of the predetermined allowable operating range 100, and the boundary 120a of the allowable operating range 120 extends along (e.g., parallel to) the boundary 100a. The processor 34 stores data of the newly set allowable operating range 120 (e.g., coordinates in the robot coordinate system C1) in the memory 36 (or 46). Thereafter, the processor 34 may execute the flow of Fig. 4 based on the new allowable operating range 120.

[0119] As described above, in the device 60 shown in FIG. 17, the position acquisition unit 64 acquires the current position Pc of the robot 12 when the movement restriction unit 76 restricts the movement of the robot 12. n Then, the movement range setting unit 84 repeatedly acquires the current position Pc acquired by the position acquisition unit 64 during the restricted movement. n A new allowable operating range 120 is set based on the above.

[0120] According to this configuration, for example, when an operator is teaching in the above-mentioned jog mode MD1 or direct teach mode MD2, the position Pc of the robot 12 that has been moved along the boundary 100a of the predetermined allowable operating range 100 is n(or the movement route MP), a new allowable movement range 120 can be easily set. This allows various allowable movement ranges to be set arbitrarily.

[0121] In the above embodiment, the predetermined allowable operating range 100 is described as being circular (or cylindrical). However, the allowable operating range 100 is not limited to this, and may be any shape, such as a polygonal (rectangle, pentagon, etc.), a hemispherical, or a random shape consisting of multiple curved surfaces.

[0122] In the above embodiment, the processor 34 determines the reference point Pr in step S11. However, this is not limiting, and the processor 34 can also determine the first direction DR1 and the second direction DR2 without determining the reference point Pr. This embodiment will be described with reference to FIGS. 20 and 21.

[0123] In this embodiment, a substantially rectangular allowable operating range 130 is predetermined, and the boundaries 130a of the allowable operating range 130 are defined by the boundaries 130a each defining one side of the rectangle. 1 , 130a 2 , 130a 3 and 130a 4 Furthermore, a motion range coordinate system C3 is set in advance for the allowable motion range 130. The motion range coordinate system C3 is a coordinate system that defines the position of the allowable motion range 130 in the robot coordinate system C1.

[0124] In the example shown in FIG. 20, the motion range coordinate system C3 has its origin at the boundary 130a. 1 and 130a 2 (i.e., one vertex of the rectangle), and its x-axis is 1 and 130a 3 and its y-axis is parallel to the boundary 130a 2 and 130a 4 and its z-axis is set to be parallel to the z-axis of the robot coordinate system C1. The coordinate Qo of the operation range coordinate system C3 in the robot coordinate system C1 is known.

[0125] In this embodiment, the processor 34 executes the flow shown in Fig. 4 based on the allowable operating range 130. Here, when the processor 34 starts the flow of step S5 in Fig. 6 or Fig. 14, it executes step S12 without executing step S11. In this step S12, the processor 34 functions as the direction setting unit 68 and determines the current position Pc acquired in the most recent step S2 and the boundary 130a of the allowable operating range 130 adjacent to the current position Pc. 1 Based on this, a first direction DR1 toward the outside of the allowable operating range 130 and a second direction DR2 perpendicular to the first direction DR1 are determined.

[0126] Specifically, as shown in FIG. 21, the processor 34 determines a boundary 130a of the allowable operating range 130. 1 , 130a 2 , 130a 3 and 130a 4 Among these, the boundary 130a closest to the current position Pc 1 Then, the processor 34 determines the boundary 130a. 1 The processor 34 defines the negative y-axis direction of the motion range coordinate system C3, which is parallel to the normal direction of the axis C3 and points outward from the allowable motion range 130, as the first direction DR1. The processor 34 then defines the direction of the x-z plane of the motion range coordinate system C3, which is orthogonal to the first direction DR1, as the second direction DR2.

[0127] Suppose that the boundary 130a of the allowable operating range 130 1 , 130a 2 , 130a 3 and 130a 4 The current position Pc is located on the boundary 130a. 2 In this case, the processor 34 determines the minus x-axis direction of the motion range coordinate system C3 as the first direction DR1, and the direction of the y-z plane of the motion range coordinate system C3 as the second direction. Thus, in this embodiment, the first direction DR1 and the second direction are determined based on the boundary 130a that is close to the current position Pc. 1 , 130a 2 , 130a 3 or 130a 4Depending on the case, it can be determined as the x-axis direction or the y-axis direction of the motion range coordinate system C3.

[0128] In this way, the processor 34 determines the boundary 130a that is close to the current position Pc based on the predetermined movement range coordinate system C3. 1 6 or steps S13, S14, S21, S17, S22 to S25, and S20 of FIG. 14 based on the set first direction DR1 and second direction DR2, using the motion range coordinate system C3 as a reference. In this embodiment, the processor 34 then sequentially executes steps S13 to S20 of FIG. 6 or steps S13, S14, S21, S17, S22 to S25, and S20 of FIG. 14 based on the set first direction DR1 and second direction DR2. As described above, according to this embodiment, step S11 can be omitted from the flow of FIG. 4 or FIG. 6. In other words, the reference point setting unit 66 can be omitted from the device 60.

[0129] 4 in accordance with a computer program PG pre-stored in memory 36 (or 46). The functions of device 60 (i.e., force acquisition unit 62, position acquisition unit 64, reference point setting unit 66, direction setting unit 68, position calculation unit 70, notification signal generation unit 72, command generation unit 74, movement restriction unit 76, force component calculation unit 78, and motion range setting unit 84) executed by processor 34 may be functional modules realized by the computer program PG.

[0130] In the above embodiment, the processor 34 executes the flow of Fig. 4 when teaching in the jog mode MD1 or the direct teach mode MD2. However, this is not limiting, and the processor 34 may execute the flow of Fig. 4 when, for example, an operator and the robot 12 work together.

[0131] In the above-described embodiment, the functions of the device 60 are implemented in the control device 14. However, this is not limiting, and at least one of the functions of the device 60 may be implemented in the teaching device 16. For example, among the functions of the device 60, the notification signal generation unit 72 may be implemented in the teaching device 16. In this case, the processor 44 of the teaching device 16 may function as the notification signal generation unit 72, generate the image 110 shown in FIG. 10 , and display it on the display device 50. Note that at least one of the functions of the device 60 may be implemented in any computer (such as a PC) other than the control device 14 and the teaching device 16.

[0132] Although the present disclosure has been described in detail above, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values ​​or mathematical expressions are used in the description of the above-described embodiments.

[0133] The present disclosure discloses the following aspects: (Aspect 1) A device 60 for restricting movement of a robot 12 toward the outside of a predetermined allowable operating range 100, 130, the device including: a position acquisition unit 64 that acquires a current position Pc of the robot 12; a direction setting unit 68 that determines a first direction DR1 toward the outside and a second direction DR2 perpendicular to the first direction DR1 based on the current position Pc acquired by the position acquisition unit 64 and boundaries 100a, 130a of the allowable operating range 100, 130 that are close to the current position Pc; and a first movement command Cm that moves the robot 12 in the first direction DR1 determined by the direction setting unit 68. 1 and a second movement command Cm for moving the robot 12 in the second direction DR2 determined by the direction setting unit 68. 2 a command generator 74 that generates a first movement command Cm 1While restricting the movement of the robot 12 by the second movement command Cm 2 and a movement limiting unit 76 that permits movement of the robot 12 by the reference point setting unit 66. (Aspect 2) The device 60 according to Aspect 1, further comprising a reference point setting unit 66 that sets a point P on the boundary 100a, 130a that is close to the current position Pc acquired by the position acquisition unit 64 as a reference point Pr, and the direction setting unit 68 sets a first direction DR1 and a second direction DR2 based on the reference point Pr set by the reference point setting unit 66. (Aspect 3) The device 60 according to Aspect 2, wherein the reference point setting unit 66 sets a point P at which the distance δ from the current position Pc is minimum as the reference point Pr. (Aspect 4) The device according to Aspect 2 or 3, wherein the direction setting unit 68 sets a normal direction of the boundary 100a, 130a at the reference point Pr set by the reference point setting unit 66 as the first direction DR1. (Aspect 5) The direction setting unit 68 sets a movement range coordinate system C3 having the reference point Pr set by the reference point setting unit 66 as the origin, a first axis (y-axis) that defines the first direction DR1, and second axes (x-axis, z-axis) that define the second direction DR2, and the command generation unit 74 generates a first movement command Cm in the direction of the first axis based on the movement range coordinate system C3. 1 and a second movement command Cm in the direction of the second axis. 2 The device 60 according to any one of aspects 2 to 4. (Aspect 6) The command generator 74 generates a movement command Cm for moving the robot 12 outward, and a component Cm of the movement command Cm in the first direction DR1. 1 is the first movement command Cm 1 and the component Cm in the second direction DR2 of the movement command Cm is generated as 2 is the second movement command Cm 2 The apparatus 60 according to any one of aspects 1 to 5 generates the first movement command Cm 1 and the second movement command Cm 2 includes command values ​​V1, V2, a1, a2, q1, q2 that define the speeds V1, V2 of the robot 12, the accelerations a1, a2 of the robot 12, or the torques q1, q2 that drive the robot 12, and the movement limiting unit 76 1 By decreasing the command values ​​V1, a1, and q1 of the first movement command Cm 1While restricting the movement of the robot 12 by the second movement command Cm 2 The second movement command Cm 2 The device 60 according to aspect 6 allows the robot 12 to move by detecting a force F applied to the robot 12. (Aspect 8) The device 60 includes a force acquisition unit 62 that acquires an operating force Fh applied to the robot 12 to move the robot 12 based on detection data Df of a force sensor 32 that detects a force F applied to the robot 12, and a component Fh in a first direction DR1 of the operating force Fh acquired by the force acquisition unit 62. 1 The first force component Fh 1 and the component Fh of the operating force Fh in the second direction DR2 2 The second force component Fh 2 The command generating unit 74 further includes a force component calculation unit 78 that calculates the first force component Fh 1 The first movement command Cm 1 and generates the second force component Fh calculated by the force component calculation unit 78. 2 The second movement command Cm 2 The device 60 according to any one of Aspects 1 to 5. (Aspect 9) The movement limiting unit 76 generates a first force component Fh 1 By reducing the first movement command Cm 1 While restricting the movement of the robot 12 by the second force component Fh 2 Without reducing the second movement command Cm 2The device 60 according to Aspect 8 permits the robot 12 to move in the first direction DR1. (Aspect 10) The device 60 according to any one of Aspects 1 to 9, further comprising a position calculation unit 70 that calculates a target position Pt to which the robot 12 is to move from the current position Pc, and further comprising an alarm signal generation unit 72 that generates an alarm signal Sn that notifies the movement direction DRm from the current position Pc to the target position Pt, or the distance δ between the target position Pt and the boundaries 100a, 130a. (Aspect 11) The device 60 according to any one of Aspects 1 to 10, further comprising a position calculation unit 70 that calculates a target position Pt to which the robot 12 is to move from the current position Pc, and when the target position Pt calculated by the position calculation unit 70 is outside the allowable operating ranges 100, 130, the movement restriction unit 76 prohibits the robot 12 from moving in the first direction DR1. (Aspect 12) The device 60 according to any one of Aspects 1 to 10, further comprising a position calculation unit 70 that calculates a target position Pt to which the robot 12 is to move from the current position Pc, and when the target position Pt calculated by the position calculation unit 70 is outside the allowable operating ranges 100, 130, the movement restriction unit 76 prohibits the robot 12 from moving in the first direction DR1. n The device 60 repeatedly acquires the current position Pc acquired by the position acquisition unit 64 during the restricted movement. n (Aspect 13) A method for restricting movement of a robot 12 outward from a predetermined allowable movement range 100, 130, the method comprising: acquiring a current position Pc of the robot 12; determining a first direction DR outward and a second direction DR2 perpendicular to the first direction DR1 based on the acquired current position Pc and a boundary 100a, 130a of the allowable movement range 100, 130 proximate to the current position Pc; and issuing a first movement command Cm to move the robot 12 in the determined first direction DR1. 1 and a second movement command Cm for moving the robot 12 in the determined second direction DR2. 2 and generate a first movement command Cm 1 While restricting the movement of the robot 12 by the second movement command Cm 2 A method for permitting the movement of the robot 12 by the above. (Aspect 14) A computer program PG for causing the processor 34, 44 to execute the method according to aspect 13.

[0134] REFERENCE SIGNS LIST 10 Robot system 12 Robot 14 Control device 16 Teaching device 32 Force sensor 34, 44 Processor 60 Device 64 Position acquisition unit 66 Reference point setting unit 68 Direction setting unit 70 Position calculation unit 72 Notification signal generation unit 74 Command generation unit 76 Movement restriction unit 78 Force component calculation unit 84 Motion range setting unit 100, 120, 130 Allowable motion range

Claims

1. An apparatus for restricting movement of a robot outside a predetermined allowable operating range, comprising: a position acquisition unit that acquires the current position of the robot; a direction setting unit that determines a first direction toward the outside and a second direction perpendicular to the first direction based on the current position acquired by the position acquisition unit and a boundary of the allowable operating range adjacent to the current position; a command generation unit that generates, in order to move the robot, a first movement command for moving the robot in the first direction determined by the direction setting unit and a second movement command for moving the robot in the second direction determined by the direction setting unit; and a movement restriction unit that restricts movement of the robot according to the first movement command while allowing movement of the robot according to the second movement command.

2. The device described in claim 1, further comprising a reference point setting unit that sets a point on the boundary adjacent to the current position acquired by the position acquisition unit as a reference point, and the direction setting unit determines the first direction and the second direction based on the reference point set by the reference point setting unit.

3. The device according to claim 2, wherein the reference point setting unit determines the point having the smallest distance from the current position as the reference point.

4. The device according to claim 2, wherein the direction setting unit determines, as the first direction, a normal direction of the boundary at the reference point determined by the reference point setting unit.

5. The device described in claim 2, wherein the direction setting unit sets a motion range coordinate system having the reference point set by the reference point setting unit as its origin, a first axis defining the first direction, and a second axis defining the second direction, and the command generating unit generates the first movement command in the direction of the first axis and the second movement command in the direction of the second axis based on the motion range coordinate system.

6. The device according to claim 1, wherein the command generation unit generates a movement command to move the robot outward, generates a component of the movement command in the first direction as the first movement command, and generates a component of the movement command in the second direction as the second movement command.

7. The device described in claim 6, wherein the first movement command and the second movement command include command values ​​that specify the velocity of the robot, the acceleration of the robot, or the torque driving the robot, and the movement limiting unit limits the movement of the robot according to the first movement command by reducing the command value of the first movement command, while allowing the movement of the robot according to the second movement command without reducing the command value of the second movement command.

8. The device described in claim 1, further comprising: a force acquisition unit that acquires an operating force applied to the robot to move the robot; and a force component calculation unit that calculates a component of the operating force acquired by the force acquisition unit in a first direction as a first force component, and calculates a component of the operating force in a second direction as a second force component, wherein the command generation unit generates the first movement command in accordance with the first force component calculated by the force component calculation unit, and generates the second movement command in accordance with the second force component calculated by the force component calculation unit.

9. The device according to claim 8, wherein the movement limiting unit limits the movement of the robot according to the first movement command by reducing the first force component, while permitting the movement of the robot according to the second movement command without reducing the second force component.

10. The device according to claim 1, further comprising a position calculation unit which determines a target position to which the robot is to be moved from the current position, and a notification signal generation unit which generates a notification signal which notifies the direction of movement from the current position to the target position, or the distance between the target position and the boundary.

11. The device of claim 1, further comprising a position calculation unit that determines a target position to which the robot is to be moved from the current position, and wherein if the target position determined by the position calculation unit is outside the allowable operating range, the movement restriction unit prohibits movement of the robot in the first direction.

12. The device described in claim 1, wherein the position acquisition unit repeatedly acquires the current position while the movement restriction unit is restricting the movement of the robot, and the device further includes a motion range setting unit that sets a new allowable motion range based on the current position acquired by the position acquisition unit during the restricted movement.

13. A method for restricting movement of a robot outward from a predetermined allowable operating range, comprising: a processor acquires a current position of the robot; determines a first direction outward and a second direction perpendicular to the first direction based on the acquired current position and a boundary of the allowable operating range adjacent to the current position; generates, in order to move the robot, a first movement command for moving the robot in the determined first direction and a second movement command for moving the robot in the determined second direction; and restricts movement of the robot according to the first movement command while allowing movement of the robot according to the second movement command.

14. A computer program product causing said processor to carry out the method of claim 13.