The present application claims priority under 35 U.S.C. §119 to Japanese Patent Application No. 2010-148575 filed Jun. 30, 2010. The contents of the application are incorporated herein by reference in their entirety.
1. Field of the Invention
The present invention relates to a robot system that performs predetermined work by using a robot, and more particularly relates to a robot system that performs spot welding.
2. Description of the Related Art
For spot welding in which a pair of electrodes pinch a plurality of stacked workpieces from both sides in a stacking direction and current is applied between the electrodes while a pressure is applied, a spot welding robot having a spot welding gun attached to a tip end of the robot has been known as related art. Spot welding work can be performed while the spot welding gun is moved successively to a plurality of welding points on the workpieces by operating the robot.
A widely used spot welding gun includes the pair of electrodes arranged opposite to each other and is configured such that one of the electrodes can be extended toward or contracted from the other electrode. Hereinafter, the electrode that can be extended or contracted is referred to as movable electrode, and the other electrode is referred to as fixed electrode.
When the spot welding is performed by the robot including such a spot welding gun, a series of operations is previously taught and the taught operations are played back during execution. Without limiting to the spot welding work, a robot typically has a teach mode for teaching a work program, and a play back mode for executing the work program.
During the teaching, an operator operates the robot to cause the fixed electrode and the movable electrode to contact a workpiece at a welding position, and the positions of the robot and movable electrode at this time are stored.
However, if a workpiece has a complex shape; a setup person has difficulty in checking the welding points during the teaching work. The teaching work for the robot may need a time and may be troublesome work. Also, if the robot is incorrectly operated, there may be a problem in which the electrodes collide with the workpiece, resulting in that the workpiece and the robot may be broken.
To address the problem, Japanese Patent No. 4233584 discloses a method relating to the teaching for the spot welding robot.
According to one aspect of the present invention, a robot system includes an articulated robot including a spot welding gun having a fixed electrode, and a movable electrode that is arranged opposite to the fixed electrode and can be extended toward or contracted from the fixed electrode by driving of a motor. The robot system performs spot welding such that the articulated robot moves the spot welding gun to a predetermined welding point on a member to be welded, and that the fixed electrode and the movable electrode pinch the member to be welded in a thickness direction of the member to be welded. The robot system performs processing when the robot system teaches a position of the welding point for the robot. The processing includes first processing for moving the spot welding gun to a position at which the movable electrode and the fixed electrode pinch the welding point; second processing for extending the movable electrode toward the member to be welded by the driving of the motor, detecting contact between the movable electrode and the member to be welded based on a torque command to the motor, and stopping an operation of the movable electrode after the contact is detected; and third processing for operating the robot toward the movable electrode to move the fixed electrode toward the member to be welded while maintaining a state in which the movable electrode contacts the member to be welded by the driving of the motor, detecting contact between the fixed electrode and the member to be welded based on a disturbance torque that acts on a joint of the robot, and stopping the operation of the robot after the contact is detected.
In the above configuration, a position obtained by restoring the movable electrode by a predetermined compensation amount after the third processing is completed, and positions of respective joints of the robot obtained by operating the fixed electrode toward the movable electrode by the compensation amount may serve as teach positions for the welding point.
In the above configuration, the robot system may further include a portable teach device. When the position of the movable electrode is taught after the third processing is completed, a correction amount containing the predetermined compensation amount from the previous teach position of the movable electrode may be displayed on a display screen of the portable teach device.
In the above configuration, in the second processing, filtering processing with a high-pass filter may be performed and then filtering processing with a notch filter may be performed for the torque command to the motor, and the filtered torque command may be compared with a first predetermined threshold, to detect the contact between the movable electrode and the member to be welded.
In the above configuration, a notch frequency of the notch filter may be determined based on the number of poles and the number of slots of the motor.
In the above configuration, in the second processing, an extension amount of the movable electrode and the torque command to the motor after the filtering processing may be associated with each other and stored every predetermined period. Also, after the second processing is completed, the movable electrode may be restored by an amount calculated based on the stored extension amount and torque command.
In the above configuration, in the third processing, an estimated disturbance torque may be obtained by a disturbance observer from torque commands to motors of respective axes of the robot and speed detection values of the respective axes, processing with a high-pass filter may be performed for the estimated disturbance torque, and then coordinate transformation may be performed to estimate an external force that acts on the fixed electrode. Also, a value of the estimated external force may be compared with a second predetermined threshold to detect the contact between the fixed electrode and the member to be welded.
In the above configuration, after the second processing is completed, an extension amount of the movable electrode may be checked to detect an error of the member to be welded. Also, after the third processing is completed, an extension amount of the movable electrode may be checked to detect an error of the member to be welded.
With the aspect of the present invention, since the movable electrode of the spot welding gun and the respective axes of the robot are automatically operated, and the positions of the movable electrode and respective axes when the movable electrode and the fixed electrode actually apply the pressure to the workpiece are stored, the teaching can be made without previously setting the plate thickness of the workpiece. Even if the plate thickness is changed because, for example, a production line is changed, the teach point can be easily corrected.
Also, as compared with the related art, the teaching in the state, in which the bending amount of the workpiece due to the contact with respect to the movable electrode and the fixed electrode is reduced, can be made, and the spot welding can be properly performed. This makes a contribution to improvement for the welding quality.
Further, since the extension amount of the movable electrode is checked when the teaching is made; the error of the workpiece can be reliably detected.
A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:
Embodiments will now be described with reference to the accompanying drawings, wherein like reference numerals designate corresponding or identical elements throughout the various drawings.
Referring to
The spot welding gun 2 includes a movable electrode 21 and a fixed electrode 22 that are arranged opposite to each other. In the illustrated example, two electrodes are vertically arranged, and the upper electrode is the movable electrode 21, and the lower electrode is the fixed electrode 22. When spot welding is performed, the movable electrode 21 is extended toward the fixed electrode 22 while a member to be welded (workpiece) W is arranged between the movable electrode 21 and the fixed electrode 22, the movable electrode 21 and the fixed electrode 22 pinch the workpiece W, and current is applied between the electrodes 21 and 22 for a predetermined time by electric power supplied from a welding power source 3.
When welding is completed, the movable electrode 21 is moved away from the fixed electrode 22 to release the workpiece W, and the spot welding gun 2 is moved to a next welding point by operating the robot 1.
A series of operations is previously taught as an operation program, and is stored in a robot controller 4. To execute actual work, an operator calls up a predetermined operation program from the robot controller 4 and causes the robot 1 to repeatedly execute the predetermined operation program.
The robot controller 4 is connected to the robot 1 through a cable, and controls positions and speeds of actuators that drive respective joint-axes of the robot 1 and of an actuator that drives the movable electrode 21. In addition, the robot controller 4 outputs a command to the welding power source 3, and monitors electric power that is supplied from the welding power source 3 to the spot welding gun 2. In this embodiment, the actuators employ servomotors.
A teach pendant 5 is connected to the robot controller 4. The teach pendant 5 includes operation buttons 51 and a display screen 52. To teach the operation program for the robot 1, the joint-axes of the robot 1 are operated by operating the operation buttons 51, so that the spot welding gun 2 is located at a predetermined position in a predetermined posture. The robot controller 4 stores the position and posture. Further, the taught operation program can be called up, and a command for start of execution can be made by operating the teach pendant 5.
Also, the driving axis of the movable electrode 21 of the spot welding gun 2 is named gun-axis. As described above, the gun-axis allows the movable electrode 21 to be extended toward or contracted from the fixed electrode 22. By operating the joint-axes of the robot 1, the position and posture of the spot welding gun 2 at the tip end can be changed in various ways. That is, the spot welding gun 2 can be arranged at various positions in various postures on the workpiece W.
In this embodiment, the example of the robot having the six joint-axes is described. However, this is merely an example. The robot 1 may have seven or more joint-axes. If the purpose of use does not need high degree of freedom for the posture of the spot welding gun 2, the number of joint-axes may be five or smaller.
A flange coordinate system is a rectangular coordinate system provided at a mount surface of the spot welding gun 2 at a tip end portion of the robot 1. A normal direction of the mount surface is the Z-axis. By driving the respective joint-axes of the robot 1, the position and posture of the flange coordinate system based on the robot coordinate system is changed in various ways.
A tool coordinate system is a rectangular coordinate system set for a tool attached to the tip end portion of the robot 1. The origin and direction of the tool coordinate system can be defined in various ways depending on the kind of the tool. With the spot welding gun 2 of this embodiment, the origin is a tip end portion of the fixed electrode 22, the X-axis extends to the front of the gun 2, and the Z-axis extends toward the movable electrode 21. By driving the respective joint-axes of the robot 1, the position and posture of the tool coordinate system based on the robot coordinate system is also changed in various ways. It is to be noted that the tip end portion of the robot 1 and the spot welding gun 2 are separated in
Also, robot flange is a rotation matrix that represents a posture of the tip-end flange coordinate system with respect to the robot coordinate system, and flange tool is a rotation matrix that represents a posture of the tool coordinate system with respect to the flange coordinate system.
A robot-axis controller 42 controls the positions and speeds of the servomotors for the respective joint-axes of the robot 1 through a servo amplifier 420. A gun-axis controller 43 controls the position and speed of the servomotor for the gun-axis of the spot welding gun 2 through a servo amplifier 430. The servomotors for the respective joint-axes of the robot 1 and the servomotor for the gun-axis of the spot welding gun 2 have encoders (not shown) for detecting the positions (rotation angles). Detection values of the encoders are respectively fed back to the controllers 42 and 43 through the servo amplifiers 420 and 430. The robot-axis controller 42 and the gun-axis controller 43 can obtain the positions and speeds of the respective axes from the outputs of the encoders.
I/F portions 44 and 45 are interface portions with respect to the welding power source 3 and the teach pendant 5, acquire the states of the welding power source 3 and teach pendant 5, and output commands thereto.
A work-program/parameter storage portion 46 is a non-volatile memory, and stores the taught work programs and various parameters that are required for the control of the robot 1 and the spot welding gun 2. For example, the parameters may be link parameters required for computation of forward kinematics or inverse kinematics of the robot 1, resolutions of the encoders of the respective joint-axes, and operation-limit positions of the respective joint-axes. An arithmetic processor 47 performs arithmetic processing, for example, by computing the forward kinematics and inverse kinematics and calculating commands that are output to the robot-axis controller 42 and the gun-axis controller 43 every predetermined period. A central processor 48 has a function of managing the respective portions.
Next, a process for automatically determining a teach position for a welding point in the robot system of this embodiment will be described.
The gun-axis position (an extension amount of the movable electrode 21) and the positions of the respective axes of the robot 1 (a position of the fixed electrode 22) are previously roughly taught for the welding-point position. In the following description for the process, it is expected that the teach position of the welding point is more accurately corrected. The rough teaching represents a state in which the positioning in the X-axis and Y-axis directions of the tool coordinate system is completed from among the positioning for the spot welding gun 2 with respect to the workpiece W, and the distance between the tip end of the movable electrode 21 in the Z-axis direction before the movable electrode 21 is extended is within a maximum extension amount of the movable electrode 21. The teaching may be even provided for a state in which the movable electrode 21 and the fixed electrode 22 properly contact the workpiece W.
In the robot system of this embodiment, if the welding point during the work program is taught, the operator moves the robot 1 such that the workpiece W is arranged between the electrodes 21 and 22 of the spot welding gun 2 as shown in
The operations of the spot welding gun 2 at this time are illustrated in
The operator operates the teach pendant 5 from the state in
Then, the gun-axis is operated by speed control, and the movable electrode 21 is extended toward the fixed electrode 22 at a predetermined speed (step S1 in
After the first pressure operation, the gun-axis position is checked (step S6 in
Then, the fixed electrode 22 is moved toward the movable electrode 21 by operating the respective axes of the robot 1 (step S7-1 in
Referring to
The contact is detected in step S7-6 in
After the second pressure operation, the gun-axis position is also checked (step S9 in
Then, the positions of the respective axes of the robot 1 and the gun-axis position when the operations are stopped are stored in the work-program/parameter storage portion 46, as the teach position of the welding point (step S10 in
The above-described process is the rough process for automatically determining the teach position of the welding point. As described above, in this embodiment, the movable electrode 21 contacts the workpiece W in the first pressure operation, and then the fixed electrode 22 contacts the workpiece W in the second pressure operation.
In the second pressure operation, since the movable electrode 21 keeps its contact position to the workpiece W by the position control, the bending amount of the workpiece W due to the contact with the electrodes 21 and 22 is determined by the magnitude of force (threshold Th1) when the movable electrode 21 contacts the workpiece W in the first pressure operation.
If the workpiece W markedly bends, the pressure force by the spot welding gun 2 may not properly act on the workpiece W, or welding may be performed at a position shifted from the predetermined welding point due to deformation of the workpiece W. This may result in degradation of welding quality. Hence, the bending amount of the workpiece W has to be reduced. To reduce the bending amount of the workpiece W, the processing for detecting the contact of the movable electrode 21 in step S3 in
Also, when the contact is detected in the second pressure operation (step S7-3 in
The method for detecting the contact in the first pressure operation (step S3 in
In the first pressure operation, as described above, the contact between the movable electrode 21 and the workpiece W is detected based on the torque command to the gun-axis servomotor.
However, the torque command contains a gravity torque and a friction torque that act on the gun-axis. If the original value of the torque command is compared with the predetermined threshold to detect the contact, the detection threshold has to be a large value, resulting in that a time lag may be generated from when the contact actually occurs to when the contact is detected. That is, a time is required before the gun-axis is stopped, and the bending amount of the workpiece W may be increased.
To decrease the detection threshold and to decrease the time before the gun-axis is stopped, the gravity torque and the friction torque have to be compensated in real-time. In this embodiment, a waveform of the torque command to the gun-axis in the first pressure operation is processed by a high-pass filter 71 and hence a low-frequency component is eliminated. With this processing, gravity and friction components contained in the torque command are eliminated.
The torque command output from the high-pass filter 71 is further processed by a notch filter 72. The notch filter 72 eliminates a torque ripple component of the gun-axis servomotor from the torque command. A notch frequency is determined by the number of poles and the number of slots of the gun-axis servomotor, and by the operation speed of the motor (revolutions per second). For example, if a servomotor with 14 poles and 12 slots is used for the gun-axis, and is operated at 1000 [rpm], a ripple frequency in mechanical terms based on the number of poles is obtained as follows: (14/2)×(1000/60)=116.67 [Hz].
Also, a ripple frequency in electrical terms based on the number of slots is obtained as follows: 12×(1000/60)=200 [Hz]. A combined ripple frequency of the above ripple frequencies is obtained as follows: (14/2)×12×(1000/60)=1400 [Hz].
Further, the torque command may contain high-frequency components that are the integral multiples, such as the double, triple . . . , of these frequencies. The torque ripple components are eliminated by the notch filter 72, and the result is compared with the threshold Th1 (reference numeral 73 in
Since the high-pass filter 71 eliminates the gravity and friction components contained in the torque command, and the notch filter 72 further eliminates the torque ripple, a small value can be set as the threshold Th1 for detecting the contact. That is, the time lag due to the detection of the contact can be reduced.
However, even with such processing, the movable electrode 21 already contacts the workpiece W before the contact between the movable electrode 21 and the workpiece W is detected due to a control delay or the like. When the gun-axis is stopped, the workpiece W is pressed by the movable electrode 21 and hence the workpiece W bends.
Thus, after the operation of the gun-axis is stopped, the gun-axis is inversely moved, so that the movable electrode 21 is slightly restored. The method for determining a restoring amount of the gun-axis will be described with reference to
The gun-axis position when the torque command is 25% of the threshold Th1 is acquired, and the movable electrode 21 is restored to that position. As described above, since the movable electrode 21 is slightly restored from the position at which the contact is detected and the movable electrode 21 is stopped, the bending amount of the workpiece W can be reduced, and the proper gun-axis position can be taught.
It is to be noted that the threshold Th1 and the predetermined ratio of the threshold Th1 used when the movable electrode 21 is slightly restored may be previously set as parameters in the work-program/parameter storage portion 46.
The above-described method is for detecting the contact in the first pressure operation.
Next, the method for detecting the contact in the second pressure operation will be described. In the second pressure operation, the contact between the fixed electrode 22 and the workpiece W is detected. The fixed electrode 22 does not include a drive portion unlike the movable electrode 21, and hence the contact is not detected from the torque command of the gun-axis servomotor. Hence, a state amount of the robot 1 that supports the body of the spot welding gun 2 including the fixed electrode 22 is used to detect the contact with respect to the workpiece W. At this time, a disturbance observer that estimates a disturbance torque acting on the robot 1 is used.
First, a disturbance observer 91 estimates a disturbance torque acting on a load side (spot welding gun 2) based on torque commands and position feedback values to the respective joint-axes of the robot 1. The estimated disturbance torque contains torques due to gravity and friction, and hence the torque due to the gravity is compensated by dynamics computation in the disturbance observer 91.
Then, the output of the disturbance observer 91 is processed by a high-pass filter 92 and hence a low-frequency component is eliminated. Accordingly, the torque due to the friction is eliminated.
In this process, the disturbance torque compensated for the gravity and friction is obtained based on the joint coordinate systems of the respective axes of the robot 1. Thus, the disturbance torque is transformed into an estimated external force value in the open/close direction of the spot welding gun 2 (Z-axis of the tool coordinate system) by coordinate transformation (reference numeral 93 in
Described next is a method for obtaining estimated external force values based on disturbance torques of the three basic-axes (S-axis, L-axis, U-axis) and estimated external force values based on disturbance torques of the three wrist-axes (R-axis, B-axis, T-axis) of the robot 1, and using an average value of these estimated external force values, as an example of the method for estimating the external force acting in the Z-axis direction of the tool coordinate system.
First, the estimation of the external forces based on the disturbance torques of the basic-axes (S-axis, L-axis, U-axis) of the robot 1 is described with reference to
(1) By using a Jacobian transpose and inverse matrix (JT)−1, disturbance torques τS, τl, and τu of the joint coordinate systems of the basic-axes (S-axis, L-axis, U-axis) of the robot 1 are transformed into an estimated external force value of the robot coordinate system.
(2) By using the rotation matrix_robot flange and the tool rotation matrix flange_tool, the external force of the robot coordinate system is transformed into the external force in the Z-axis direction of the tool coordinate system.
First, the process of (1) is described.
(1) Transformation from Disturbance Torques of Joint Coordinate Systems into Estimated External Force Value of Robot Coordinate System
The above-mentioned Jacobian matrix J is a matrix representing the relationship of small displacement between a joint coordinate system and a rectangular coordinate system of the robot 1. By using a transpose matrix JT of the Jacobian matrix J, a force F of the rectangular coordinate system can be transformed into a torque τ of the joint coordinate system. Further, by obtaining an inverse matrix (JT)−1 of the transpose matrix, the torque τ of the joint coordinate system can be transformed into the force F of the rectangular coordinate system. The method for computing the Jacobian matrix J when a six-axis robot is used like this embodiment is provided by Expression 1 as follows:
where 0si is a rotating-direction vector of an i-th joint coordinate (robot base coordinate reference), 0Pi is a position vector of the i-th joint (robot base coordinate reference), x is a vector product, and E is a position vector of the tip end (or a point of application of an external force) of the tool of the robot 1.
The obtained Jacobian matrix J is a 3×3 matrix, and for convenience of understanding, matrix elements are provided by Expression 2 as follows:
Also, the transpose matrix JT of the Jacobian matrix J can be expressed by Expression 3 as follows:
By obtaining the inverse matrix of the Jacobian transpose matrix JT, the Jacobian transpose and inverse matrix (JT)−1 can be obtained. A determinant det(JT) of the Jacobian transpose matrix JT is obtained by Expression 4 as follows:
det(JT)=A*E*I+B*F*G+C*D*H−A*F*H−B*D*I−C*E*G (4).
By using the determinant det(JT) of the Jacobian transpose matrix JT in Expression 4, the Jacobian transpose and inverse matrix (JT)−1 can be obtained by Expression 5 as follows:
Thus, if the disturbance torques of the joint coordinate systems of the basic-axes (S-axis, L-axis, U-axis) of the robot 1 are defined as follows:
τobs=[τs, τl, τu]T (6),
where τobs is a disturbance torque vector of the joint coordinate system, τS is a disturbance torque of the joint coordinate system of the S-axis, τl is a disturbance torque of the joint coordinate system of the L-axis, and τu is a disturbance torque of the joint coordinate system of the U-axis, and if the expected external force value of the robot coordinate system is defined as follows:
Fobs_robot=[Fx, Fy, Fz]T (7),
where Fobs robot is a force vector, and F is a driving force in the robot coordinate system, the estimated external force value of the robot coordinate system can be obtained by Expression 8 as follows:
Fobs_robot=(JT)−1·τobs (8).
By performing computation with Expressions 5 and 8 in accordance with a change in posture of the robot 1, the estimated external force value Fobs robot of the robot coordinate system can be obtained in the entire operation region of the robot 1.
Next, the process of (2) is described.
(2) Transformation from Robot Coordinate System to Tool Coordinate System through Flange Coordinate System
The rotation matrix robot flange representing the posture of the tip-end flange coordinate system with respect to the robot coordinate system can be expressed by Expression 9 as follows:
robot_flange=0R11R22R33R44R55R66RT (9).
where nRn+1 is a 3×3 rotation matrix from an n coordinate system to an (n+1) coordinate system.
Also, the rotation matrix flange tool representing the posture of the tool coordinate system with respect to the flange coordinate system can be obtained by Expression 10 from a tool posture (Rx, Ry, Rz) [deg] set by the operator. The tool posture can be set as tool information when the operator operates the teach pendant 5. It is to be noted that the direction toward the movable electrode 21 viewed from the fixed electrode 22 is the +Z direction. Expression 10 is as follows:
By using transpose matrixes of the two rotation matrixes robot flange and flange tool, an estimated external force value Fobs tool[SLU] in the tool coordinate system can be obtained by Expression 11 from the estimated external force value Fobs robot of the robot coordinate system as follows:
Fobs_tool[SLU]=(flange_tool)T·(robot_flange)T·Fobs_robot (11).
In this process, the external force is estimated based on the disturbance torques of the basic-axes (S-axis, L-axis, U-axis) of the robot 1.
Next, estimation of external forces for the wrist-axes is described.
For the three wrist-axes (R-axis, B-axis, T-axis), how the force acting on the spot welding gun 2 acts on the wrist joint-axes can be geometrically obtained. On the contrary, the expected external force value Fobs tool acting on the spot welding gun 2 is obtained from the disturbance torques of the joint-axes (R-axis, B-axis, T-axis).
Referring to
Computation for the B-axis is described with reference to
The definition of Tz is shown in
Fobs_tool[B]·cosθt=τobs[B]/Tz (12),
where θt is a rotation angle of the T-axis.
Therefore, the external force Fobs_tool[B] acting in the open/close direction of the spot welding gun 2 can be obtained by Expression 13 from the torque acting on the B-axis as follows:
Also for the R-axis, an external force Fobs tool[R] acting in the open/close direction of the spot welding gun 2 can be similarly obtained by Expression 14 as follows:
where τobs[R] is a disturbance torque of the R-axis, θb is a rotation angle of the B-axis, and θt is a rotation angle of the T-axis.
The obtained values Fobs_tool[SLU], Fobs_tool[B], and Fobs tool[R] are averaged (reference numeral 94 in
In this embodiment, the axes are divided into the three basic-axes and the three wrist-axes, the average of the results of the external force estimation processing are obtained for the basic-axes and the wrist-axes, and the average is compared with the threshold. However, this is merely an example as mentioned above. For an alternative method, absolute values of estimated external force values based on disturbance torques of the basic-axes (S-axis, L-axis, U-axis) and the wrist-axes (R-axis, B-axis, T-axis) of the robot 1 may be integrated, and the integral value may be compared with a threshold, to detect the contact between the fixed electrode 22 and the workpiece W.
The above-described method is for detecting the contact in the second pressure operation.
While the fixed electrode 22 is moved toward the movable electrode 21 by the operation of the robot 1 and the contact is detected, the movable electrode 21 is moved toward the fixed electrode 22 by the position control, the filtered torque command is compared with the threshold Th1 like the first pressure operation, and if the contact is detected, the movable electrode 21 is stopped, like steps S7-4 to S7-6 in
With this process, even if the plate thickness of the workpiece W is unknown, the proper welding-point position can be taught, and the state in which the bending amount of the workpiece W by the movable electrode 21 and the fixed electrode 22 is reduced can be taught.
When the above-described first and second pressure operations are completed, the workpiece W becomes properly pinched by the movable electrode 21 and the fixed electrode 22 of the spot welding gun 2.
If the robot 1 is in the teach mode, a screen as shown in
In
A compensation amount represents the restoring amount by which the movable electrode 21 is restored to reduce the bending amount of the workpiece W by the movable electrode 21. Though described above, the movable electrode 21 is slightly restored even in the first pressure operation to reduce the bending amount (step S5 in
If the operator selects “YES,” the positions of the respective axes of the robot 1 and the gun-axis position considering the compensation amount are stored in the work-program/parameter storage portion 46 of the robot controller 4, as teach position information for the welding point, the information which belongs to the work program.
The operator can operate the teach pendant 5 to move the robot 1 to the next welding point, and the teach position for the next welding point can be corrected similarly.
Since the correction amount for the teach position is displayed on the display screen 52 of the teach pendant 5, the operator can easily recognize the correction amount for each welding point, and even if an error occurs for the teach position of the gun-axis, the error can be found immediately and handled.
Next, the processing for checking the gun-axis position after the first and second pressure operations will be described with reference to
As described above, in this embodiment, the robot 1 is moved to the position at which the movable electrode 21 and the fixed electrode 22 pinch the welding point on the workpiece W as shown in
The gun-axis position (the extension length of the movable electrode 21) is acquired (step S12 in
If the difference between the positions is the threshold Th3 or smaller, the difference is recognized as a value within a permissible error, and the processing goes on to the second pressure operation. Although this processing is similar to that in
When the contact is detected and the movable electrode 21 and the fixed electrode 22 are stopped in the second pressure operation, the gun-axis position (the extension length of the movable electrode 21) is acquired (step S17 in
These thresholds Th3 and Th4 may be previously stored in the work-program/parameter storage portion 46.
If the difference between both positions is the threshold or smaller, the difference is recognized as a value within a permissible error, the current positions of the respective axes of the robot 1 and the current gun-axis position are stored as teach positions in the work-program/parameter storage portion 46 instead of the stored teach positions (step S21 in
Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein.
Number | Date | Country | Kind |
---|---|---|---|
P. 2010-148575 | Jun 2010 | JP | national |