This disclosure relates generally to a welding apparatus and a program.
In recent years, the use of robot apparatuses equipped with spot welding guns for welding car bodies and the like has become widespread. In welding work using a spot welding gun, two workpieces to be welded are sandwiched between a movable electrode tip and a fixed electrode tip, and an electric current is applied to the movable electrode tip and the fixed electrode tip while a predetermined welding pressure is being applied thereto, thereby welding two workpieces to be welded. With respect to the welding using a spot welding gun. Patent Literature 1 discloses a spot welding system that can easily calculate, with high accuracy, the elastic displacement of a gun arm when pressurizing a workpiece to be welded, in order to suppress deterioration of welding accuracy.
In order to suppress the deterioration of welding accuracy, it is also an important factor to accurately apply a welding pressure adjusted according to the thickness and material of the workpiece to be welded and the required welding strength. This welding pressure is adjusted by the torque of a servo motor that drives the movement of a movable electrode tip. In order to adjust the welding pressure by the torque, the relationship between the welding pressure and the torque is registered in advance. However, the relationship between the welding pressure and the torque may change due to some factors such as deterioration of the servo motor and deterioration of the electrode tip. Therefore, it is necessary to calibrate the relationship between the welding pressure and the torque before using the spot welding gun.
A welding apparatus according to one aspect of the present disclosure is provided with a welding gun including a servo motor configured to generate power for causing a movable electrode tip to approach and separate from a fixed electrode tip in order to pressurize a workpiece to be welded between the movable electrode tip and the fixed electrode tip for welding. The welding apparatus includes means for prompting a user to input a plurality of welding pressures to be used for the welding, means for prompting the user to input a command indicating that a welding pressure between the movable electrode tip and the fixed electrode tip has reached each of two welding pressures among the plurality of welding pressures, means for identifying a torque exerted in the servo motor at a point in time when the command is input, means for identifying movement amounts of the movable electrode tip required for the welding pressure between the movable electrode tip and the fixed electrode tip to reach the two welding pressures, means for deriving a relational expression between the welding pressure and the movement amount based on the two welding pressures and the movement amounts, means for using the relational expression to estimate a movement amount required to generate, between the movable electrode tip and the fixed electrode tip, another welding pressure other than the two welding pressures among the plurality of welding pressures, means for identifying a torque required to move the movable electrode tip the estimated movement amount, and means for registering the torque required to move the estimated movement amount as a torque required to generate the another welding pressure between the movable electrode tip and the fixed electrode tip.
Hereinafter, a welding apparatus according to an embodiment of the present invention will be described with reference to the drawings. In the following description, constituent elements having substantially the same function and configuration are denoted by the same reference numeral, and repetitive descriptions will be given only where necessary.
The welding apparatus according to the present embodiment is an apparatus in which a spot welding gun is mounted on a robot arm mechanism so that the position and orientation of the spot welding gun can be changed. However, one feature of the welding apparatus according to the present embodiment lies in the method for calibrating the spot welding gun. Accordingly, the welding apparatus may be an apparatus in which the spot welding gun is mounted on another mechanism capable of changing the position and orientation of the spot welding gun. In addition, the spot welding gun can also be used as the welding apparatus on its own if the welding work can be performed using the spot welding gun.
As shown in
As shown in
For example, the base portion 31 is formed in a rectangular plate shape. The rod-shaped movable arm 33 is provided at the front end of the base portion 31 so as to be movable along the gun axis Ax. The fixed arm 32 is formed integrally with the base portion 31 at the rear end of the base portion 31. The fixed arm 32 is formed in, for example, a rod shape bent in a substantially U-shape so that the fixed electrode tip 34 provided at its leading end is disposed on the gun shaft Ax and faces the movable electrode tip 35 attached to the leading end of the movable arm 33.
The movement of the movable arm 33 is driven by a drive mechanism. The drive mechanism is provided in the base portion 31 and includes a servo motor 36 that generates power for driving the movement of the movable arm 33, and a conversion mechanism (not shown) that converts the rotational motion of the servo motor 36 into a linear motion along the gun axis Ax of the movable arm 33. The conversion mechanism may be any mechanism, such as a gear mechanism, a belt/pulley mechanism, or a combination thereof. When the servo motor 36 is driven, the movable electrode tip 35 moves back and forth along the gun axis Ax together with the movable arm 33 to approach and separate from the fixed electrode tip 34.
The servo motor 36 is driven by a current supplied from a motor driver 39. The servo motor 36 is provided with an encoder 37 that detects the rotational position of the drive shaft of the servo motor 36 and a torque sensor 38 that detects the torque generated on the drive shaft of the servo motor 36. The encoder 37 detects the rotational position of the drive shaft of the servo motor 36 and transmits it to the control device 50. The encoder 37 functions as a position detection unit that detects the position of the movable arm 33 by detecting the rotational position of the drive shaft of the servo motor 36. As an alternative to the encoder 37, the position detection unit may be constituted by a Hall element. The torque sensor 38 can employ any existing sensor, such as a strain gauge type, or a non-contact type. The torque sensor 38 detects the torque actually generated on the drive shaft of the servo motor 36 and transmits it to the control device 50.
In accordance with the control of the control device 50, the robot arm mechanism 10 places a workpiece to be welded between the pair of electrodes 34 and 35 of the spot welding gun 30. Thereafter, the servo motor 36 is controlled by the control device 50 to move the movable electrode tip 35 toward the fixed electrode tip 34, and the workpiece to be welded is held between the movable electrode tip 35 and the fixed electrode tip 34 and pressurized with a predetermined welding pressure. In accordance with the control of the control device 50, the fixed electrode tip 34 and the movable electrode tip 35 are energized, and the workpiece to be welded held between the fixed electrode tip 34 and the movable electrode tip 35 is spot welded.
The control device 50 includes hardware similar to that of a general PC or the like. Specifically, the control device 50 includes a processor configured by a CPU, a GPU, and the like, a RAM that functions as a main memory, a work area, and the like of the processor, and a storage device storing various programs, various types of setting information, and the like. The storage device stores a calibration program for the welding pressure/torque of the spot welding gun 30, a control program for operating a robot apparatus including the spot welding gun 30 and the robot arm mechanism 10, and data such as constants, variables, and setting values required when the spot welding gun 30 is operated.
When the calibration program is executed by the processor, the control device 50 functions as a torque identification unit 51, a movement amount identification unit 52, a formulation processing unit 53, a movement amount estimation unit 54, a screen generation unit 55, and a motor control unit 56.
The torque identification unit 51 is means for identifying the torque generated on the drive shaft of the servo motor 36 based on the output of the torque sensor 38. Here, the torque identification unit 51 identifies the torque of the drive shaft of the servo motor 36. However, the torque identified by the torque identification unit 51 is not limited to the torque of the drive shaft of the servo motor 36 as long as the torque can be correlated with the torque generated by the servo motor 36. For example, the torque identification unit 51 may identify the torque of another shaft to which the rotation of the servo motor 36 is transmitted, based on the output of a torque sensor provided on the other shaft. Alternatively, the torque identification unit 51 may identify, as the torque, a torque command value transmitted from the motor control unit 56 to the motor driver 39. The torque identification unit 51 estimates the torque for moving the movable electrode tip 35 a movement amount estimated by the movement amount estimation unit 54 to be described later.
The movement amount identification unit 52 identifies the movement amount (first movement amount) of the movable electrode tip 35, which moves along the gun axis Ax, based on the output of the encoder 37. Here, the movement amount is a parameter indicating how far the movable electrode tip 35 is pushed in from the position where the movable electrode tip 35 is in contact with an object to be contacted such as the workpiece to be welded, the welding pressure sensor 100, the fixed electrode tip 34, or the like. The point in time when the movable electrode tip 35 comes into contact with the object to be contacted can be identified based on the output of the torque sensor 38, for example. Of course, the means is not limited to this, and a contact sensor, an external image sensor, or the like can be used as long as the contact of the movable electrode tip 35 with the object to be contacted can be detected. As being based on the output of the encoder 37, the movement amount of the movable electrode tip 35 corresponds to the rotation amount of the drive shaft of the servo motor 36, not the physical movement amount of the movable electrode tip 35. Hereinafter, the term “movement amount” refers to the movement amount of the movable electrode tip 35.
The formulation processing unit 53 is means for formulating the relationship between the welding pressure and the movement amount based on at least two welding pressures and the movement amounts when the welding pressures are generated between the movable electrode tip 35 and the fixed electrode tip 34. For example, the formulation processing unit 53 holds a linear function formula as a relational expression model, and finds the constants of the linear function formula using two welding pressures and the movement amounts when the welding pressures are exerted to formulate a relational expression. The relational expression model is not limited to a linear function, and any formula can be adopted. Depending on the relational expression model, the number of welding pressures/movement amounts required to find the constants varies.
Based on at least two welding pressures and the movement amounts when those welding pressures are generated between the movable electrode tip 35 and the fixed electrode tip 34, the movement amount estimation unit 54 estimates the movement amount (second movement amount) of the movable electrode tip 35 for generating another welding pressure. Specifically, the movement amount estimation unit 54 estimates the movement amount (second movement amount) for the welding pressure between the movable electrode tip 35 and the fixed electrode tip 34 to reach a predetermined welding pressure, using the relational expression between the welding pressure and the movement amount formulated by the formulation processing unit 53.
The screen generation unit 55 generates screen data to be displayed on a display unit of the teaching operation panel 70. Specifically, data of a calibration screen 200 (see
The motor control unit 56 transmits a torque command to the motor driver 39 of the servo motor 36 in order to control the servo motor 36. The motor driver 39 supplies a current corresponding to the torque command received from the motor control unit 56 to the servo motor 36. Accordingly, the servo motor 36 is driven with a predetermined torque. In the present embodiment, the motor control unit 56 controls the servo motor 36 so that the torque gradually increases based on the click of a start button on the measurement window 300 displayed on the teaching operation panel 70. Further, the motor control unit 56 controls the servo motor 36 so that the torque gradually increases until the movement amount of the movable electrode tip 35 identified by the movement amount identification unit 52 reaches the movement amount estimated by the movement amount estimation unit 54, based on the click of a calibration button on the calibration screen 200 displayed on the teaching operation panel 70.
The teaching operation panel 70 functions as a display unit 72 for the user to browse various types of information from the control device 50, and an input unit 71 for the user to input various types of information to the control device 50. The display unit 72 is constituted by an LCD or the like. The input unit 71 is constituted by a keyboard or the like. Of course, they may be constituted by a touch panel display which serves both as the input unit 71 and the display unit 72.
The input unit 71 receives a plurality of welding pressures to be used for welding from the user. The plurality of welding pressures may be directly input by the user, or may be input by preparing data of a plurality of tables in each of which a plurality of welding pressures to be used are registered in advance and importing data of a table selected by the user. The input unit 71 also receives a command from the user indicating that the welding pressure between the movable electrode tip 35 and the fixed electrode tip 34 has reached each of the minimum welding pressure and the maximum welding pressure, during a trial period in which the servo motor 36 is driven while gradually increasing the torque. The control device 50 thereby receives, via the input unit 71, a designation of a plurality of welding pressures and a designation of the welding pressure between the movable electrode tip 35 and the fixed electrode tip 34 having reached each of two of the plurality of welding pressures. The display unit 72 displays the calibration screen 200 and the measurement window 300 generated by the screen generation unit 55 of the control device 50.
Referring to
As shown in
As shown in
Referring back to
The procedure of the user's work using the welding pressure sensor 100 is as follows. The user sets the sensor main body of the welding pressure sensor 100 between the movable electrode tip 35 and the fixed electrode tip 34, Next, through an operation on the calibration screen 200, the user selects the welding pressure to be calibrated using the welding pressure sensor 100, For example, as shown in
As shown in
As shown in
Referring back to
After the process of step S13, the control device 50 uses the relational expression between the welding pressure and the movement amount to estimate the movement amounts Gm2, Gm3, and Gm4 when the welding pressures Pr2, Pr3, and Pr4 other than the minimum welding pressure Pr1 and the maximum welding pressure Pr5 among the plurality of welding pressures Pr1, Pr2, Pr3, Pr4, and Pr5 to be calibrated are applied between the movable electrode tip 35 and the fixed electrode tip 34, respectively (S14.
Step S13 and step S14 are internal processing of the control device 50, The processes of step S13 and step S14 will be described below with reference to
Referring back to
Specifically, as shown in
By the processes of step S11 to step S16, the calibration of the welding pressure/torque relationship is completed.
As described above with reference to
In order to achieve the above advantageous effects, the inventors have paid attention to the fact that the correlation between the welding pressure and the movement amount of the movable electrode tip 35 is high, and configured the welding apparatus 1 to obtain in step S12 the movement amounts Gm1 and Gm5, which are internal parameters of the welding apparatus 1, together with the torques Tr1′ and Tr5′ when the welding pressures Pr1 and Pr5 are applied, By formulating the relationship between the welding pressure and the movement amount, the movement amount required to obtain a specific welding pressure can be estimated. As described above, it is one of the features of the present application that the welding pressure, which is an external parameter that can be measured only by the external welding pressure sensor 100, is replaced with the movement amount of the movable electrode tip 35, which is an internal parameter that can be identified based on the output of the internal encoder 37, If the movement amount required to obtain a specific welding pressure can be estimated, the torque can be gradually increased little by little from the state where the movable electrode tip 35 is in contact with the fixed electrode tip 34, and the torque when the movement amount of the movable electrode tip 35 reaches the estimated movement amount can be obtained as the torque required to obtain the specific welding pressure, Although the welding pressure/torque must be manually calibrated with respect to the first two welding pressures, the step of obtaining the torques required to obtain the other welding pressures does not require the user's work using the welding pressure sensor 100 or the user's assistance, so that the user's calibration work can be greatly reduced.
In the present embodiment, the teaching operation panel 70 connected to the control device 50 has the functions of the input unit 71 and the display unit 72, but the configuration is not limited to that of the present embodiment as long as input information by the user can be input to the control device 50, For example, the control device 50 may have the functions of the input unit 71 and the display unit 72, Further, an external device communicatively connected to the control device 50 may be configured to have some functions such as calculation processing inside the control device 50.
In the present embodiment, the control device 50 controls the operation of the spot welding gun 30, but the embodiment is not limited to this as long as the operation of the spot welding gun 30 can be controlled. For example, the teaching operation panel 70 may have the function of the control device 50, and the spot welding gun 30 may be controlled by the teaching operation panel 70.
In the present embodiment, the minimum welding pressure and the maximum welding pressure are automatically extracted as the objects to be manually calibrated among the plurality of welding pressures, but the user may select any two welding pressures among the plurality of welding pressures, and the user can select the two welding pressures through the calibration screen 200.
In the present embodiment, the movable electrode tip 34 is assumed to move linearly along the gun axis Ax, which is represented by a straight line. However, the approach and separation path of the movable electrode tip 34 does not have to be a straight line as long as the movable electrode tip 35 can approach and separate from the fixed electrode tip 34, and when the movable electrode tip 35 approaches the fixed electrode tip 34, the movable electrode tip 35 faces the fixed electrode tip 34 on the gun axis Ax, and the workpiece to be welded can be held between the movable electrode tip 35 and the fixed electrode tip 34, In the present embodiment, of the pair of electrode tips 34 and 35, one electrode tip 34 is movable and the other electrode tip 35 is fixed, but one electrode tip 34 may be fixed and the other electrode tip 35 may be movable, or both of the pair of electrode tips 34 and 35 may be movable. In a configuration in which both of the pair of electrode tips 34 and 35 are movable and two servo motors are provided, the calibration of the welding pressure/torque described in the present embodiment may be performed for each of the two servo motors.
While some embodiments of the present invention have been described, these embodiments have been presented as examples, and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention and are included in the scope of the claimed inventions and their equivalents.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2021/029439 | 8/6/2021 | WO |