DEVICE FOR MEASURING WEAR AMOUNT OF WELDING TIP, CONTROL DEVICE, ROBOT SYSTEM, METHOD, AND COMPUTER PROGRAM
20240269763 ยท 2024-08-15
Assignee
Inventors
Cpc classification
B23K11/314
PERFORMING OPERATIONS; TRANSPORTING
B23K11/115
PERFORMING OPERATIONS; TRANSPORTING
B23K11/311
PERFORMING OPERATIONS; TRANSPORTING
B23K11/3063
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
A device includes: a measurement operation execution unit that controls a mobile machine to execute a measurement operation for moving a welding tip in a first direction to a measurement location; a location data acquisition unit that acquires the location of the mobile machine when the measurement operation has been executed; and a measurement initiation location determination unit that determines, as a measurement initiation location, a location for the mobile machine at which the welding tip is arranged at a prescribed distance apart from a first location in a second direction, which is opposite of the first direction, based on the first location which is acquired during a first measurement operation. During a second measurement operation, the measurement operation execution unit controls the mobile machine to position the mobile machine at the measurement initiation location and then move the welding tip in the first direction.
Claims
1. A device configured to measure an amount of wear of a welding tip moved by a movement machine, the device comprising: a measurement operation execution section configured to control the movement machine so as to execute a measurement operation to move the welding tip in a first direction to a predetermined measurement position for measuring the amount of wear; a position data acquiring section configured to acquire a position of the movement machine when the measurement operation execution section executes the measurement operation; and a measurement start position determination section configured to, based on a first position acquired by the position data acquiring section in a first measurement operation, determine a position of the movement machine, at which the welding tip is arranged more separate towards a second direction opposite the first direction by a predetermined distance than the first position, as a measurement start position, wherein the measurement operation execution section controls the movement machine so as to move the welding tip in the first direction after positioning the movement machine at the measurement start position, in a second measurement operation after the first measurement operation.
2. The device of claim 1, further comprising a wear amount acquiring section configured to acquire the amount of wear generated between the first measurement operation and the second measurement operation, based on the first position and a second position acquired by the position data acquiring section in the second measurement operation.
3. The device of claim 1, wherein a fixed member or a sensor configured to detect the welding tip is provided at the measurement position, wherein, in the measurement operation, the measurement operation execution section moves the welding tip in the first direction until the welding tip contacts the fixed member at the measurement position, or until the sensor detects the welding tip at the measurement position.
4. The device of claim 1, further comprising a wear amount acquiring section configured to, based on a second position acquired by the position data acquiring section in the second measurement operation and a third position acquired by the position data acquiring section in a third measurement operation before the first measurement operation, acquire the amount of wear generated between the second measurement operation and the third measurement operation.
5. The device of claim 4, wherein a sensor configured to detect the welding tip is provided at the measurement position, wherein, in the measurement operation, the measurement operation execution section moves the welding tip in the first direction until the sensor detects the welding tip at the measurement position.
6. The device of claim 1, wherein, in the second measurement operation, the measurement operation execution section controls the movement machine so as to position the movement machine at the measurement start position after positioning the movement machine at a predetermined teaching position.
7. The device of claim 6, wherein the measurement start position determination section determines the measurement start position as a position of the movement machine, at which the welding tip is arranged more separate towards the first direction than the teaching position.
8. The device of claim 6, wherein, in the first measurement operation, the measurement operation execution section controls the movement machine so as to move the welding tip in the first direction after positioning the movement machine at the teaching position.
9. The device of claim 1, wherein, in the second measurement operation, the measurement operation execution section moves the movement machine to the measurement start position at a first speed, and moves the movement machine from the measurement start position in the first direction at a second speed lower than the first speed.
10. A control device comprising the device of claim 1, wherein the control device executes a work to move the welding tip by the movement machine and weld a workpiece by the welding tip.
11. A robot system comprising: a movement machine configured to move a welding tip; and the control device of claim 10, configured to control the movement machine.
12. A method of measuring an amount of wear of a welding tip moved by a movement machine, the method comprising: controlling, by a processor, the movement machine so as to execute a measurement operation to move the welding tip in a first direction to a predetermined measurement position for measuring the amount of wear; acquiring, by the processor, a position of the movement machine when executing the measurement operation; based on a first position acquired in a first measurement operation, determining, by the processor, a position of the movement machine, at which the welding tip is arranged more separate towards a second direction opposite the first direction than the first position, as a measurement start position; and controlling, by the processor, the movement machine so as to move the welding tip in the first direction after positioning the movement machine at the measurement start position, in a second measurement operation after the first measurement operation.
13. A computer-readable recording medium configured to store a computer program configured to cause the processor to execute the method of claim 12.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION
[0029] Embodiments of the present disclosure are described in detail below with reference to the drawings. Note that in various embodiments described below, the same elements are denoted with the same reference numerals, and overlapping description is omitted. First, with reference to
[0030] In the present embodiment, the robot 12 is a vertical articulated robot, and includes a robot base 20, a swivel body 22, a lower arm part 24, an upper arm part 26, and a wrist part 28. The robot base 20 is fixed on a floor of a work cell. The swivel body 22 is provided to the robot base 20 so as to be rotatable about the vertical axis.
[0031] The lower arm part 24 is provided to the swivel body 22 so as be rotatable about the horizontal axis. The upper arm part 26 is rotatably provided at the distal end portion of the lower arm part 24. The wrist part 28 includes a wrist base 28a rotatably provided at a distal end portion of the upper arm part 26, and a wrist flange 28b provided at the wrist base 28a so as to be rotatable about a wrist axis A1.
[0032] A plurality of servomotors 30 (
[0033] The welding gun 14 is detachably attached to the wrist flange 28b. As illustrated in
[0034] The tip moving mechanism 36 moves the movable welding tip 40 back and forth along a gun axis A2 in response to a command from the control device 16. More specifically, the tip moving mechanism 36 includes a movable arm 44, a servomotor 46, and a motion conversion mechanism 48. The movable arm 44 is provided at the base part 32 so as to be movable along the gun axis A2. In the present embodiment, the movable arm 44 is a rod-shaped member linearly extending along the gun axis A2.
[0035] The servomotor 46 is fixed to the base part 32. The motion conversion mechanism 48 includes a ball screw mechanism, or a mechanism including a timing belt and a pulley, and converts the rotational movement of the output shaft (not illustrated) of the servomotor 46 to a back-and-forth movement along the gun axis A2 of the movable arm 44, for example. The fixed welding tip 38 is fixed to a tip end 34b of the fixed arm 34, whereas the movable welding tip 40 is fixed to a tip end 44a of the movable arm 44. The fixed welding tip 38 and the movable welding tip 40 are arranged so as to be aligned on the gun axis A2.
[0036] For welding a workpiece, the tip moving mechanism 36 moves the movable welding tip 40 along the gun axis A2 toward the fixed welding tip 38 by rotationally driving the servomotor 46 in response to a command from the control device 16, and sandwiches the workpiece between the movable welding tip 40 and the fixed welding tip 38. Next, the fixed welding tip 38 and the movable welding tip 40 are energized in response to a command from the control device 16, thereby spot-welding the workpiece sandwiched between the fixed welding tip 38 and the movable welding tip 40.
[0037] The control device 16 controls the operation of the robot 12 and the welding gun 14. As illustrated in
[0038] The memory 52 includes a RAM, a ROM or the like, and temporarily or permanently stores various types of data used for the arithmetic processing executed by the processor 50 and various types of data generated during the arithmetic processing. The I/O interface 54 includes an Ethernet (trade name) port, a USB port, an optical fiber connector, or an HDMI (trade name) terminal, and performs data communication with an external device in a wired or wireless manner under a command from the processor 50, for example. In the present embodiment, the servomotors 30 and 46, and the teaching device 18 are communicatively connected to the I/O interface 54.
[0039] As illustrated in
[0040] On the other hand, as illustrated in
[0041] For moving the welding gun 14, the processor 50 sets the tool coordinate system C2 in the robot coordinate system C1, and operates each movable element of the robot 12 by transmitting a command to each servomotor 30 of the robot 12 so as to position the welding gun 14 at the position represented by the set tool coordinate system C2. In this manner, the processor 50 positions the welding gun 14 at any position of the robot coordinate system C1 through the operation of the robot 12.
[0042] In addition, the processor 50 transmits a command to the servomotor 46 of the tip moving mechanism 36, and moves the movable arm 44 (i.e., the movable welding tip 40) along the gun axis A2 through the operation of the tip moving mechanism 36. As described above, in the present embodiment, the movable welding tip 40 is moved through the operation of the robot 12 and the tip moving mechanism 36. Thus, the robot 12 and the tip moving mechanism 36 constitute a movement machine 58 that moves the movable welding tip 40.
[0043] As illustrated in
[0044] The operator can perform jog operation of the movement machine 58 by operating the operation section 62 while visually recognizing the image displayed on the display section 60. The operator teaches the movement machine 58 a predetermined operation by performing jog operation of the movement machine 58 by using the teaching device 18, and thus can create an operation program for causing the movement machine 58 to execute the predetermined operation.
[0045] Before (or after) the welding work of the welding gun 14, the movable welding tip 40 (and the fixed welding tip 38) may be polished by a polishing machine. This polishing work wears the movable welding tip 40. The processor 50 measures such an amount of wear W of the movable welding tip 40. A method of measuring the amount of wear W is described below.
[0046] In the present embodiment, the amount of wear W is measured by using a fixed member 64 illustrated in
[0047] First, the processor 50 executes the flow illustrated in
[0048] After the start of step S1, in step S11, the processor 50 executes a first approach operation for positioning the movement machine 58 at a predetermined teaching position TP. More specifically, the processor 50 moves the welding guns 14 by the robot 12 to position the welding gun 14 at a first teaching position TP1, and moves the movable arm 44 at a speed V1 by the tip moving mechanism 36 to arrange the movable arm 44 at a second teaching position TP2. In this manner, in the present embodiment, the teaching position TP of the movement machine 58 includes the first teaching position TP1 where the welding gun 14 is to be positioned by the robot 12, and the second teaching position TP2 where the movable arm 44 is to be positioned by the tip moving mechanism 36.
[0049]
[0050] In addition, the fixed welding tip 38 is positioned away to the lower side from the bottom surface 68b of the contact plate 68 by a predetermined distance, and the gun axis A2 is substantially orthogonal to the top surface 68a of the contact plate 68. Note that when the movement machine 58 is positioned at the teaching position TP, the fixed welding tip 38 may come into contact with the bottom surface 68b with no contact force.
[0051] The first teaching position TP1 of the robot 12 is set as position data (more specifically, coordinates) representing the position of the tool coordinate system C2 (more specifically, origin position and the direction of each axis) illustrated in
[0052] For example, the operator may teach the robot 12 an operation to position the welding gun 14 at the position illustrated in
[0053] With reference to
[0054] In step S13, the processor 50 determines whether or not the movable welding tip 40 has reached the measurement position MP. More specifically, the processor 50 determines whether or not a load torque ? of the servomotor 46 has exceeded a predetermined threshold value ?.sub.th. After the start of step S12, the tip end of the movable welding tip 40 comes into contact with the top surface 68a of the contact plate 68, and thus the movable welding tip 40 is arranged at the measurement position MP (i.e., the position of the top surface 68a).
[0055]
[0056] As an example, the processor 50 may acquire a feedback current from the servomotor 46 as the load torque ?. As another example, the welding gun 14 may further include a torque sensor for detecting the torque applied to the output shaft of the servomotor 46, and the processor 50 may acquire the detection value of the torque sensor as the load torque ?.
[0057] In this step S13, when the load torque ? has exceeded the threshold value ?.sub.th (???.sub.th), the processor 50 determines that the movable welding tip 40 has reached the measurement position MP (i.e., YES), and proceeds to step S14. On the other hand, when ?<?.sub.th holds, the processor 50 determines it to be NO, and repeats step S13.
[0058] In step S14, the processor 50 stops the movable welding tip 40 by stopping the servomotor 46. Then, the processor 50 terminates step S1, and proceeds to step S2 in
[0059] As described above, in the present embodiment, in the first measurement operation MO1, the processor 50 positions the movement machine 58 at the teaching position TP in step S11, and then controls the movement machine 58 so as to move the movable welding tip 40 downward by the tip moving mechanism 36 in step S12. Thus, the processor 50 functions as a measurement operation execution section 70 (
[0060] With reference to
[0061] As another example, the welding gun 14 may further include a position detector (linear scale, or displacement sensor and the like) that detects the position of the movable arm 44 in the gun axis A2 direction, and the processor 50 may acquire the detection value of the position detector as the position P.sub.1. In this manner, in the present embodiment, the processor 50 functions as a position data acquiring section 72 (
[0062] In step S3, the processor 50 determines a measurement start position SP.sub.1 based on the position P.sub.1 acquired in step S2. The measurement start position SP.sub.1 is described below with reference to
[0063] On the other hand, in
[0064] Based on the position P.sub.1 acquired in step S2, the processor 50 determines the measurement start position SP.sub.1 as the position of the movable arm 44 at which the movable welding tip 40 is positioned away to the upper side by the distance ? than when the movable arm 44 is arranged at the position P.sub.1. As an example, the distance ? is determined based on a positioning error ? in the positioning of the movable welding tip 40 by the movement machine 58. The positioning error ? is a distance by which the movable welding tip 40 is displaced from the target position when the movement machine 58 positions the movable welding tip 40 at a predetermined target position, and can be represented by a numerical range ?? (e.g., ?=0.1 [mm]).
[0065] For example, the processor 50 sets the distance ? as a value (?=?) matching the positioning error ?, and determines the measurement start position SP.sub.1 of the movable arm 44 as a position away to the upper side from the position P.sub.1 by the distance ?=?. Alternatively, the processor 50 may set the distance ? as a value (?=??) obtained by multiplying the positioning error ? by a predetermined coefficient ?. In this manner, in the present embodiment, the processor 50 functions as a measurement start position determination section 74 (
[0066] After the flow of
[0067] During this series of work, the processor 50 executes the flow illustrated in
[0068] In step S21, the processor 50 functions as the measurement operation execution section 70, and executes an n-th measurement operation MO.sub.n (n=2, 3, 4, . . . ). Step S21 is described with reference to
[0069] After the start of step S21, the processor 50 executes the above-described step S11, and positions the movement machine 58 at the teaching position TP illustrated in
[0070] For example, when the flow illustrated in
[0071] In step S32, the processor 50 moves the movable welding tip 40 toward the measurement position MP in a first direction. More specifically, the processor 50 operates the tip moving mechanism 36 to move the movable arm 44 forward from the measurement start position SP.sub.n?1 at a speed V4, thereby moving the movable welding tip 40 downward at a speed V4. This speed V4 is set to a value smaller than that of the above-described speeds V1 and V3 (V4<V1, V4<V3). Note that the speed V4 may be set to the same value as that of the above-described speed V2.
[0072] In this manner, at this step S32, the processor 50 controls the movement machine 58 (the tip moving mechanism 36) such that after positioning the movement machine 58 (the movable arm 44) at the measurement start position SP.sub.n?1, the movable welding tip 40 is moved downward. After step S32, the processor 50 sequentially executes the above-described steps S13 and S14.
[0073] As described above, by executing steps S11, S31, S32, and S13, the processor 50 moves the movable arm 44 (i.e., the movable welding tip 40) along the gun axis A2 from the second teaching position TP2 (
[0074] With reference to
[0075] In step S23, the processor 50 functions as the measurement start position determination section 74 to determine the measurement start position SP.sub.n. More specifically, as in the above-described step S3, based on the position P.sub.n acquired in the most recent step S22, the processor 50 determines the measurement start position SP.sub.n as the position of the movable arm 44 at which the movable welding tip 40 is positioned away to the upper side by the distance ? than when the movable arm 44 is arranged at the position P.sub.n, whereas the movable welding tip 40 is positioned away to the lower side than when the movable arm 44 is arranged at the second teaching position TP2 (
[0076] In step S24, the processor 50 acquires the amount of wear W. More specifically, based on the position P.sub.n?1 (first position) acquired by executing an n?1th measurement operation MO.sub.n?1 and the position P.sub.n (second position) acquired by executing the n-th measurement operation MO.sub.n, the processor 50 acquires an amount of wear W.sub.n?1 caused in the polishing work executed between the n?1th measurement operation MO.sub.n?1 and the n-th measurement operation MO.sub.n.
[0077] For example, when the flow illustrated in
[0078] As an example, the processor 50 acquires the amount of wear W.sub.n?1 by calculating a difference ?.sub.RP (=RP.sub.n?RP.sub.n?1) between a rotation position RP.sub.n?1 of the servomotor 46 acquired as the position P.sub.n?1 and a rotation position RP.sub.n of the servomotor 46 acquired as the position P.sub.n, and converting the difference ?.sub.RP into a displacement amount in the gun axis A2 direction.
[0079] In this manner, in the present embodiment, the processor 50 functions as a wear amount acquiring section 76 (
[0080] Note that the processor 50 may automatically execute the flow illustrated in
[0081] The operation program PG may be provided in a manner recorded in a computer-readable recording medium (the memory 52) such as a semiconductor memory, a magnetic recording medium, or an optical recording medium. The operation program PG is created by the operator by using the teaching device 18, and stored in the memory 52 in advance, for example.
[0082] As described above, in the present embodiment, the processor 50 functions as the measurement operation execution section 70, the position data acquiring section 72, the measurement start position determination section 74, and the wear amount acquiring section 76, and measures the amount of wear W. In this manner, the measurement operation execution section 70, the position data acquiring section 72, the measurement start position determination section 74, and the wear amount acquiring section 76 constitutes a device 80 that measures the amount of wear W (
[0083] In the present embodiment, based on the position P.sub.n?1 (first position) acquired by the n?1th measurement operation MO.sub.n?1, the processor 50 determines the measurement start position SP.sub.n?1 (step S3 or S23), and moves the movable welding tip 40 downward (first direction) after positioning the movement machine 58 (the movable arm 44) at the measurement start position SP.sub.n?1 in the n-th measurement operation MO.sub.n (steps S31 and S32).
[0084] As described above, by determining the measurement start position SP.sub.n each time, the start point of the operation to move the movable welding tip 40 to the measurement position MP at the speed V4 in the measurement operation MO.sub.n can be set as appropriate. As a result, the time required for the measurement operation MO.sub.n can be adjusted as appropriate.
[0085] In addition, the processor 50 determines the measurement start position SP.sub.n?1 as the position of the movement machine 58 at which the movable welding tip 40 is arranged away to the upper side (on the second direction side) from the position P.sub.n?1 by the distance ?. With this configuration, when the movement machine 58 is positioned at the measurement start position SP.sub.n?1 in the second approach operation of the n-th measurement operation MO.sub.n, the movable welding tip 40 can be positioned away to the upper side from the measurement position MP (the top surface 68a) by the distance of the sum (?+W.sub.n?1) of the distance ? and the amount of wear W.sub.n?1. Thus, it is possible to prevent the movable welding tip 40 from reaching the measurement position MP (i.e., from coming into contact with the top surface 68a) in the second approach operation.
[0086] In addition, in the present embodiment, in the measurement operation MO.sub.n, the processor 50 moves the movable welding tip 40 downward until it comes into contact with the fixed member 64 (more specifically, the top surface 68a) arranged at the measurement position MP, and acquires the position P.sub.n of the movement machine 58 when the movable welding tip 40 comes into contact with the fixed member 64 at the measurement position MP.
[0087] With this configuration, the movement machine 58 (the movable arm 44) can be reliably stopped by bringing the movable welding tip 40 into contact with the top surface 68a, and the reproducibility of the operation to bring the movable welding tip 40 into contact with the fixed member 64 by the movement machine 58 is high, and thus, the amount of wear W.sub.n can be stably acquired with high accuracy.
[0088] In addition, in the present embodiment, in the n-th measurement operation MO.sub.n, the processor 50 positions the movement machine 58 at the teaching position TP (the first approach operation), and thereafter positions it at the measurement start position SP.sub.n?1 (the second approach operation). At this time, the processor 50 moves the movement machine 58 (the movable arm 44) from the teaching position TP to the measurement start position SP.sub.n?1 at the speed V3 (first speed), and thereafter moves it downward from the measurement start position SP.sub.n?at the speed V4 (second speed) lower than the speed V3 (step S32).
[0089] Here, in the present embodiment, whether the load torque ? of the servomotor 46 has exceeded the threshold value ?.sub.th or not is determined in step S13, and the movable arm 44 is stopped in step S14. However, due to delay of the torque response of the servomotor 46 and the like, the stop position of the movable arm 44 in step S14 may vary.
[0090] To correctly measure the amount of wear W while suppressing such a variation, it is necessary to set the speed at which the welding tip 40 reaches the measurement position MP in the measurement operation MO to relatively low. In the related art, each time the measurement operation MO is executed, the movement machine 58 is positioned at the teaching position TP taught in advance, and then the movable welding tip 40 is moved from the teaching position TP to the measurement position MP at the relatively low speed V4.
[0091] According to the present embodiment, the movable welding tip 40 can be moved by the second approach operation to the measurement start position SP.sub.n?1 at the relatively high speed V3, and thus the time required for the measurement operation MO.sub.n can be reduced in comparison with the known art. Thus, the work efficiency can be improved by reducing the cycle time of the work. In addition, by moving the movable welding tip 40 from the measurement start position SP.sub.n?1 to the measurement position MP at the relatively low speed V4, the position P.sub.n of the movement machine 58 at the time when the movable welding tip 40 reaches the measurement position MP can be correctly acquired, and thus the amount of wear W.sub.n can be acquired with high accuracy.
[0092] In addition, in the present embodiment, the processor 50 determines the measurement start position SP.sub.n?1 as the position of the movement machine 58 (the movable arm 44) at which the movable welding tip 40 is positioned away to the lower side from the teaching position TP (the second teaching position TP2). With this configuration, the operation of the movable welding tip 40 in steps S31 and S32 is an operation in one axis (the gun axis A2) direction.
[0093] Therefore, steps S31 and S32 can be executed through the operation of the movable arm 44 that is movable in one axis direction, and thus the operation program PG for the measurement operation MO.sub.n and the structure of the movement machine 58 can be simplified. In addition, the position P.sub.n of the movable arm 44 of one axis can be detected with high accuracy by the rotation detector provided in the servomotor 46, and thus the amount of wear W.sub.n can be detected with high accuracy.
[0094] In addition, in the present embodiment, in the n?1th measurement operation MO.sub.n?1 (e.g., the first measurement operation MO.sub.1), the movement machine 58 is positioned at the teaching position TP, and thereafter the movable welding tip 40 is moved downward (in step S11 in
[0095] Note that the processor 50 may control the movement machine 58 (more specifically, the tip moving mechanism 36) so as to move the movable arm 44 downward in step S32 after once stopping the movable arm 44 upon completion of step S31 in
[0096] In this case, the above-described distance ? may be determined based on an approach run distance ? required for the tip moving mechanism 36 to accelerate the speed V of the movable arm 44 from zero to the speed V4 in step S32. For example, the distance ? may be determined as a value equal to the approach run distance ? (?=?), or a value obtained by multiplying the approach run distance ? by a predetermined coefficient ? (?=??). In this case, the processor 50 determines the measurement start position SP.sub.n to be a position away to the upper side from the position P.sub.n by the distance ? (=? or ??) in steps S3 and S23.
[0097] Alternatively, upon completion of the above-described step S31, the processor 50 may continuously execute step S32 without stopping the movable arm 44. In this case, after (or before) arranging the movable arm 44 at the measurement start position SP.sub.n?1 in step S31, the processor 50 reduces the speed V of the movable arm 44 from the speed V3 to the speed V4, and executes step S32.
[0098] In this case, the above-described distance ? may be determined based on an approach run distance ? required for the tip moving mechanism 36 to decelerate the movable arm 44 from the speed V3 to the speed V4. For example, the distance ? may be determined as a value equal to the approach run distance ? (?=?), or a value obtained by multiplying the approach run distance ? by a predetermined coefficient ? (?=??).
[0099] Next, with reference to
[0100] The control device 16 (more specifically, the processor 50) of the robot system 90 measures the amount of wear W by executing the flows illustrated in
[0101] In step S11 in
[0102] In the example illustrated in
[0103] In step S13 in
[0104] Then, the object detection sensor 92 turns ON the object detection signal and transmits it to the control device 16. The processor 50 can determine by monitoring the object detection signal whether or not the movable welding tip 40 has reached the measurement position MP. When the object detection signal is received from the object detection sensor 92, the processor 50 determines it to be YES and proceeds to step S14.
[0105] Then, in step S3 or S23, based on the most recently acquired position P.sub.n as illustrated in
[0106] In this manner, in the present embodiment, the processor 50 in the measurement operation MO.sub.n moves the movable welding tip 40 downward until the object detection sensor 92 detects the movable welding tip 40 at the measurement position MP, and acquires the position P.sub.n of the movement machine 58 at the time when the object detection signal is received from the object detection sensor 92 in step S2 or S22. With this configuration, in comparison with the case where the movable welding tip 40 is brought into contact with the above-described fixed member 64, the load applied to the movable welding tip 40 and the tip moving mechanism 36 can be reduced.
[0107] Next, with reference to
[0108] In step S41, the processor 50 functions as the measurement operation execution section 70, and executes an n-th trial measurement operation MO.sub.T_n. This step S41 is the same as the flow illustrated in
[0109] In step S42, the processor 50 functions as the position data acquiring section 72, and the movement machine 58 acquires a position P.sub.T_n (the rotation position of the servomotor 46) at this time point as a trial measurement position P.sub.T_n as in the above-described step S2. Here, variation of the speed V of the movable welding tip 40 may occur at the position of the movable arm 44, due to the delay of the sensor response of the object detection sensor 92 and the like, when the object detection sensor 92 detects the movable welding tip 40 at the measurement position MP and the processor 50 receives the object detection signal.
[0110] That is, the accuracy of the detection of the movable welding tip 40 by the object detection sensor 92 at the measurement position MP depends on the speed V of the movable welding tip 40 passing through the measurement position MP.
[0111] In step S43, the processor 50 functions as the measurement start position determination section 74, and, as in the above-described step S3, determines a real measurement start position SP.sub.R_n as the position of the movable arm 44 at which the movable welding tip 40 is positioned away to the upper side by the distance ? than when the movable arm 44 is arranged at the trial measurement position P.sub.T_n, whereas the movable welding tip 40 is positioned away to the lower side than when the movable arm 44 is arranged at the second teaching position TP2 based on the trial measurement position P.sub.T_n acquired in step S42 (
[0112] An example of the real measurement start position SP.sub.R_n determined at this step S43 is illustrated in
[0113] On the other hand, the solid line indicates the movable arm 44 arranged at the real measurement start position SP.sub.R_n, and the movable welding tip 40 when the movable arm 44 is arranged at the real measurement start position SP.sub.R_n. Here, the distance ? is set such that the tip end of the movable welding tip 40 at the real measurement start position SP.sub.R_n is positioned away to the upper side from the measurement position MP. For example, the distance ? may be set based on the above-described positioning error ? or the approach run distance ?.
[0114] With reference to
[0115] The processor 50 executes the second approach operation in step S31 after the start of step S44. Here, at this step S31, the processor 50 operates the tip moving mechanism 36 to move the movable arm 44 from the position at the completion of step S41 (
[0116] In step S32, the processor 50 moves the movable welding tip 40 toward the measurement position MP of the object detection sensor 92 in the first direction. More specifically, the processor 50 moves forward the movable arm 44 from the real measurement start position SP.sub.R_n at the speed V4 (<V3) by operating the tip moving mechanism 36, thereby moving the movable welding tip 40 downward at the speed V4. Thereafter, the processor 50 sequentially executes steps S13 and S14.
[0117] As described above, the accuracy of the detection of the movable welding tip 40 by the object detection sensor 92 at the measurement position MP depends on the speed V. Thus, by moving the movable welding tip 40 at the speed V4 lower than the speed V3 in step S32, it can be detected with high accuracy that the movable welding tip 40 has reached the measurement position MP.
[0118] With reference to
[0119] In step S46, the processor 50 functions as the wear amount acquiring section 76, and acquires the amount of wear W.sub.n?1. More specifically, the processor 50 acquires the amount of wear W.sub.n?1 caused by the polishing work executed between the n?1th real measurement operation MO.sub.R_n?1 and the n-th real measurement operation MO.sub.R_n based on the real measurement position P.sub.R_n?1 (third position) acquired when executing the n?1th real measurement operation MO.sub.R_n?1 and the real measurement position P.sub.R_n (second position) acquired when executing the n-th real measurement operation MO.sub.R_n.
[0120] Note that when the above-described initial measurement start command CM1 is received (i.e., when an unworn new movable welding tip 40 is mounted to the movable arm 44), the processor 50 sequentially executes the flow of steps S41 to S45 in
[0121] As described above, in the present embodiment, the processor 50 determines the real measurement start position SP.sub.R_n (step 43) based on the trial measurement position P.sub.T_n (first position) acquired in the n-th trial measurement operation MO.sub.T_n, and moves the movable welding tip 40 downward (first direction) after positioning the movement machine 58 (the movable arm 44) at the real measurement start position SP.sub.R_n in the n-th real measurement operation MO.sub.R_n. By determining the trial measurement position P.sub.T_n appropriately in this manner, the start point of the operation to move the movable welding tip 40 to the measurement position MP at the speed V4 in step S44 can be set as appropriate. As a result, the time required for the measurement of the amount of wear W can be adjusted as appropriate.
[0122] In addition, in the present embodiment, the processor 50 moves the movable welding tip 40 at the relatively high speed V1 in the trial measurement operation MO.sub.T_n, whereas the processor 50 moves the movable welding tip 40 at the relatively low speed V4 in the real measurement operation MO.sub.R_n. With this configuration, the trial measurement position P.sub.T_n can be acquired more quickly, while the real measurement position P.sub.R_n can be acquired with higher accuracy.
[0123] In addition, in the present embodiment, in the first approach operation in step S41 and the second approach operation in step S44, the movable welding tip 40 is moved at the relatively high speeds V1 and V3. With this configuration, the time required for the measurement operation MO (more specifically, the trial measurement operation MO.sub.T_n, and the real measurement operation MO.sub.R_n) can be reduced. Thus, the work efficiency can be improved by reducing the cycle time of the work.
[0124] Note that in step S44 illustrated in
[0125] In this case, the processor 50 may once stop the movable arm 44 upon completion of step S31 (i.e., when the movable arm 44 is arranged at the real measurement start position SP.sub.R_n), and then move the movable arm 44 downward in step S32. Then, the distance ? in
[0126] Alternatively, the processor 50 may continuously execute step S32 without stopping the movable arm 44 upon completion of step S31. In this case, the distance ? in
[0127] Note that step S23 may be omitted from the flow illustrated in
[0128] In addition, step S11 may be omitted from step S21 illustrated in
[0129] In the above-described embodiment, a case is described in which the processor 50 acquires the rotation position of the servomotor 46 as the position P.sub.n of the movement machine 58 in steps S2, S22, S42 and S45. However, the processor 50 may acquire a coordinate CD of the robot coordinate system C1 of the tip end 44a of the movable arm 44 as the position P.sub.n of the movement machine 58, for example.
[0130] This coordinate CD can be determined based on the position data of the tool coordinate system C2 in the robot coordinate system C1, and the rotation position of the servomotor 46. Note that the position data of the tool coordinate system C2 at the time of executing the measurement operation (i.e., upon completion of steps S1, S21, S41 and S44) can be determined from the rotation position of each servomotor 30 of the robot 12.
[0131] In the above-described embodiment, in steps S12, S31, S32, S31, and S32, the processor 50 moves the movable arm 44 downward by operating the tip moving mechanism 36. However, the processor 50 may move the welding gun 14 downward by operating the robot 12 in steps S12, S31, S32, S31 and S32. In this case, the processor 50 may acquire the above-described coordinate CD as the position P.sub.n of the movement machine 58 in steps S2, S22, S42 and S45.
[0132] In the above-described embodiment, a case is described in which the processor 50 determines the measurement start positions SP.sub.n and SP.sub.R_n as the position of the movable arm 44 at which the movable welding tip 40 is positioned away to the lower side from the teaching position TP in steps S3, S23 and S43. Specifically, in this case, the measurement start positions SP.sub.n and SP.sub.R_n and the teaching position TP are aligned on the gun axis A2.
[0133] However, the processor 50 may determine the measurement start positions SP.sub.n and SP.sub.R_n as the position of the movable arm 44 at which the movable welding tip 40 is positioned away to the left or right side from the teaching position TP, for example. Specifically, in this case, the measurement start positions SP.sub.n and SP.sub.R_n and the teaching position TP are displaced in the direction that intersects the gun axis A2. The processor 50 can move the movement machine 58 (i.e., the movable welding tip 40) from such a teaching position TP to the measurement start positions SP.sub.n and SP.sub.R_n by operating the robot 12.
[0134] In the above-described embodiment, a case is described in which the movable welding tip 40 is moved to measure the amount of wear W, but the processor 50 may measure the amount of wear W of the fixed welding tip 38 by executing the flow illustrated in
[0135] The wear amount acquiring section 76 may be omitted from the device 80. For example, by omitting step S24 from the flow of
[0136] Alternatively, the function of the wear amount acquiring section 76 may be mounted in an external device (such as an external server that is a computer provided separately from the control device 16) outside the device 80. In this case, by omitting step S24 (or S46), the processor 50 may transmit the acquired first position P.sub.n?1 and second position P.sub.n (or, third position P.sub.R_n?1 and second position P.sub.R_n) to the external device through the network (such as the Internet, or a LAN) and the external device may acquire the amount of wear W.sub.n?1.
[0137] In addition, in the above-described embodiment, a case is described in which the function of the device 80 is mounted in the control device 16. However, the function of the device 80 may be mounted in the teaching device 18 or in an external device (such as an external server and a PC) provided communicatively with the control device 16, for example. In this case, the processor of the external device or the teaching device 18 functions as the device 80.
[0138] In addition, the robot 12 is not limited to vertical articulated robots, but may be robots of any types, such as horizontal articulated robots and parallel link robots. In addition, in the above-described embodiment, a case is described in which the movement machine 58 includes the robot 12 and the tip moving mechanism 36, but this is not limitative, and the welding tip 38 or 40 may be moved by a plurality of ball screw mechanisms, for example.
[0139] In addition, the welding gun 14 is not limited to C-type spot welding guns, and may be X-type spot welding guns, or any other welding guns. Although the present disclosure has been described through embodiments above, the embodiments described above do not limit the scope of the invention claimed in the claims.
REFERENCE SIGNS LIST
[0140] 10, 90 Robot system [0141] 12 Robot [0142] 14 Welding gun [0143] 16 Control device [0144] 36 Tip moving mechanism [0145] 38, 40 Welding tip [0146] 58 Movement machine [0147] 70 Measurement operation execution section 70 [0148] 72 Position data acquiring section [0149] 74 Measurement start position determination section [0150] 76 Wear amount acquiring section