Method for controlling welding robot equipped with laser sensor, control device, welding system, and program

The welding robot system with integrated laser sensor automation addresses measurement errors by determining reference positions, calculating corrections, and retrying measurements, thereby enhancing efficiency and reducing operator intervention.

JP7586803B2Active Publication Date: 2024-11-19KOBE STEEL LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021172037
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-11-19
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

Existing welding technologies using laser sensors face inefficiencies due to measurement errors caused by complex groove shapes, glossy workpieces, and foreign objects, leading to decreased operational efficiency and the need for repetitive operator intervention.

Method used

A method and system for a welding robot equipped with a laser sensor that includes determining a reference position, measuring the target, assessing measurement success, calculating correction amounts, and retrying measurements if necessary, with automatic recovery mechanisms to minimize operator intervention.

Benefits of technology

Enhances the efficiency of welding processes by automating measurement and position correction, reducing errors, and improving overall operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007586803000001
    Figure 0007586803000001
  • Figure 0007586803000002
    Figure 0007586803000002
  • Figure 0007586803000003
    Figure 0007586803000003
Patent Text Reader

Abstract

To more efficiently measure and correct a position using a laser sensor, and improve efficiency of a welding work.SOLUTION: A method for controlling a welding robot having a laser sensor includes: a determination step of determining setting information including setting a reference position of measurement by a laser sensor in a control program of the welding robot; a measurement step of measuring a welding object using the laser sensor by the control program based on the setting information; a determination step of determining whether or not the measurement in the measurement step succeeds; a calculation step of calculating a correction amount for a control parameter of the welding robot on the basis of the reference position and a measurement result in the measurement step, when it has been determined in the determination step that the measurement succeeds; and a retry step of retrying the measurement by the measurement step, when it has been determined in the determination step that the measurement fails.SELECTED DRAWING: Figure 5A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control method, a control device, a welding system, and a program for controlling a welding robot equipped with a laser sensor. [Background technology]

[0002] Conventionally, a welding robot is used to prepare a workpiece to be welded (hereinafter also referred to as a workpiece) at a predetermined position, and then the workpiece is welded. At this time, even when welding the same type of workpiece, the position of each workpiece may be shifted, or the groove accuracy of the workpiece itself may be poor, resulting in a slightly different groove shape for each workpiece. Therefore, when using a welding robot, it is necessary to correct the control program before welding the workpiece. For example, a laser sensor or the like is used to measure the workpiece, and a position shift or change in the groove shape is detected, and the control program is corrected based on the detection results.

[0003] For example, Patent Document 1 discloses a position detection system for an automatic welding machine that can check the image analysis results when different image processing parameters are applied on a teach pendant based on distance measurement data obtained by a search operation without performing a search operation thereafter. This position detection system makes it possible to shorten the adjustment time for image processing when introducing a system or teaching it for the first time. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2008-221281 A Summary of the Invention [Problem to be solved by the invention]

[0005] Welding has a wide variety of construction conditions, and for example, complex groove shapes, gloss of the workpiece, foreign objects such as temporary attachments, etc. are factors that reduce sensing accuracy. Patent Document 1 aims to eliminate the repetition of work required to search for optimal image parameters by sensing each workpiece, which is necessary to deal with these factors. However, when a laser sensor is applied, measurement errors of the laser sensor may occur due to the above factors. When an error occurs, the worker must deal with it, which leads to a decrease in the efficiency of the welding work.

[0006] In Patent Document 1, measurement errors of the laser sensor are not taken into consideration. In addition, Patent Document 1 only discloses displaying the image analysis results for the worker to confirm, and does not consider how to automatically and efficiently reflect the position correction on the control program of the welding robot. In other words, from the viewpoint of improving the efficiency of welding work, there is a demand for a method that can efficiently automate the process from position correction by laser sensing to welding without requiring as much intervention by the worker as possible for recovery work when the automatic work is stopped when a measurement error occurs.

[0007] The present invention is intended to solve the above-mentioned problems, and aims to provide a welding robot control method, control device, welding system, and program that enable more efficient measurement and position correction using a laser sensor. [Means for solving the problem]

[0008] In order to solve the above problems, the present invention has the following configuration. That is, a method for controlling a welding robot equipped with a laser sensor, comprising: a determination step of determining setting information including a setting of a reference position for measurement by the laser sensor in a control program of the welding robot; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether or not the measurement in the measurement step has been successful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when the measurement is determined to be successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined that the measurement has failed in the determination step; has.

[0009] According to another aspect of the present invention, there is provided a control device for a welding robot having a laser sensor, comprising: a determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring a welding target using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether or not the measurement by the laser sensor has been successful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; has.

[0010] According to another aspect of the present invention, there is provided a welding system having a laser sensor, a welding robot, and a control device, The control device includes: a determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring a welding target using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether or not the measurement by the laser sensor has been successful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; A welding system comprising:

[0011] In addition, another aspect of the present invention has the following configuration. That is, a program comprising: On the computer, A determination step of determining setting information including a reference position for measurement by the laser sensor in a control program for a welding robot equipped with a laser sensor; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether or not the measurement in the measurement step has been successful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when the measurement is determined to be successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined that the measurement has failed in the determination step; and execute the following. Effect of the Invention

[0012] According to the present invention, it is possible to perform measurement and position correction more efficiently using a laser sensor, thereby making it possible to improve the efficiency of welding work. [Brief description of the drawings]

[0013] [Figure 1] 1 is a schematic diagram showing an example of the configuration of a welding system according to an embodiment of the present invention; [Diagram 2] FIG. 4 is an explanatory diagram for explaining a measurement range of a laser sensor according to the embodiment of the present invention. [Diagram 3]1 is a schematic diagram showing an example of the configuration of a robot control device according to an embodiment of the present invention; [Figure 4A] FIG. 2 is an explanatory diagram for explaining measurement by a laser sensor according to an embodiment of the present invention. [Figure 4B] FIG. 4 is a diagram showing an example of the configuration of a display screen for measurement results according to an embodiment of the present invention. [Figure 5A] 4 is a flowchart of a measurement process according to an embodiment of the present invention. [Figure 5B] 5 is a flowchart of a measurement process based on a manual operation according to an embodiment of the present invention. [Figure 6] FIG. 4 is an explanatory diagram showing an example of the configuration of a teaching program according to an embodiment of the present invention. [Figure 7] FIG. 4 is an explanatory diagram for explaining an example of an operation based on a teaching program according to an embodiment of the present invention. [Figure 8] FIG. 11 is an explanatory diagram for explaining a measurement start position when retrying measurement according to an embodiment of the present invention. [Figure 9A] 11A and 11B are explanatory diagrams for explaining a case where erroneous detection occurs in measurement by a laser sensor. [Figure 9B] 11A and 11B are explanatory diagrams for explaining a case where erroneous detection occurs in measurement by a laser sensor. [Figure 9C] 11A and 11B are explanatory diagrams for explaining a correction process taking into consideration erroneous detection in measurement by a laser sensor. [Figure 9D] 11A and 11B are explanatory diagrams for explaining a correction process taking into consideration erroneous detection in measurement by a laser sensor. [Figure 10A] 11A and 11B are explanatory diagrams for explaining a case where erroneous detection occurs in measurement by a laser sensor. [Figure 10B] 11A and 11B are explanatory diagrams for explaining a case where erroneous detection occurs in measurement by a laser sensor. [Figure 10C] 11A and 11B are explanatory diagrams for explaining a case where erroneous detection occurs in measurement by a laser sensor. [Figure 10D] 11A and 11B are explanatory diagrams for explaining a correction process taking into consideration erroneous detection in measurement by a laser sensor. [Figure 11]11 is a graph showing an example of a detection result by a laser sensor when a correction process is performed taking erroneous detection into consideration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment for carrying out the present invention will be described with reference to the drawings. Note that the embodiment described below is one embodiment for explaining the present invention, and is not intended to be interpreted as limiting the present invention, and all configurations described in each embodiment are not necessarily essential configurations for solving the problems of the present invention. In addition, in each drawing, the same components are given the same reference numbers to indicate their correspondence.

[0015] In addition, the method for measuring welding behavior according to the present invention is useful not only for welding, but also for additive manufacturing technology using gas-shielded metal arc welding (GMAW), specifically, wire and arc additive manufacturing (WAAM). The term additive manufacturing may be used broadly as additive manufacturing or rapid prototyping, but in the present invention, the term additive manufacturing is used uniformly. When the method according to the present invention is used for additive manufacturing technology, "welding" can be rephrased as "deposition," "additive manufacturing," or "additive manufacturing." For example, when treated as welding, it becomes "welding behavior," but when the present invention is used as additive manufacturing, it can be rephrased as "deposition behavior," or when treated as welding, it becomes "welding system," but when the present invention is used as additive manufacturing, it can be rephrased as "additive manufacturing system."

[0016] <First embodiment> Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0017] [Welding system configuration] Fig. 1 shows an example of the configuration of a welding system 1 according to this embodiment. The welding system 1 shown in Fig. 1 includes a welding robot 10, a robot control device 20, a power supply device 30, a laser sensor 40, and a teaching pendant 50 (hereinafter also referred to as a teaching pendant). When the method according to the present invention is applied to additive manufacturing, for example, the welding system 1 may be read as an additive manufacturing system, and the welding robot 10 may be read as an additive manufacturing robot.

[0018] The welding robot 10 shown in Fig. 1 is composed of a six-axis articulated robot, and a GMAW welding torch 11 is attached to the tip of the robot. GMAW includes, for example, MIG (Metal Inert Gas) welding and MAG (Metal Active Gas) welding, and in this embodiment, MAG welding will be described as an example. The welding robot 10 is not limited to a six-axis articulated robot, and for example, a portable small robot may be used.

[0019] Welding wire 13 is supplied to welding torch 11 from wire feeder 12. Welding wire 13 is fed from the tip of welding torch 11 toward the welding point. Power supply unit 30 supplies power to welding wire 13. This power applies an arc voltage between welding wire 13 and workpiece W, generating an arc. Power supply unit 30 is provided with a current sensor (not shown) that detects the welding current flowing from welding wire 13 to workpiece W during welding, and a voltage sensor (not shown) that detects the arc voltage between welding wire 13 and workpiece W.

[0020] The power supply device 30 has a processing unit and a storage unit, both of which are not shown. The processing unit is, for example, configured with a CPU (Central Processing Unit). The storage unit is, for example, configured with a volatile or non-volatile memory, such as a HDD (Hard Disk Drive), a ROM (Read Only Memory), or a RAM (Random Access Memory). The processing unit controls the power applied to the welding wire 13 by executing a computer program for power supply control stored in the storage unit. The power supply device 30 is also connected to the wire feeder 12, and the processing unit controls the feed speed and feed amount of the welding wire 13. The power supply device 30 is also connected to the workpiece W side to detect the current and voltage during welding.

[0021] The composition and type of the welding wire 13 may be selected according to the object to be welded. Examples of the type of the welding wire 13 include solid wire and flux wire containing flux. Examples of the material of the welding wire 13 include mild steel, stainless steel, aluminum, and titanium, and the wire surface may be plated with copper or the like. Furthermore, the diameter of the welding wire 13 is not particularly limited. In the case of this embodiment, as an example, a welding wire with an upper limit of 1.6 mm and a lower limit of 0.8 mm may be used.

[0022] The laser sensor 40 may be, for example, a two- or more-dimensional laser displacement meter using a light cutting method. In this case, the laser sensor 40 includes an irradiating unit that irradiates a strip-shaped laser beam onto the surface of the object, and a light receiving unit that receives changes in the reflected light with a CMOS (Complementary MOS). The arrangement of the laser sensor 40 is not particularly limited, and may be, for example, directly attached to the welding robot 10, or may be used by replacing it with the welding torch 11. Also, a plurality of laser sensors 40 may be used.

[0023] FIG. 2 is a diagram for explaining the measurement range of the laser sensor 40 according to the present embodiment, and shows an example in which the laser sensor 40 is disposed near the welding torch 11. In this configuration, the welding torch 11 and the laser sensor 40 move together. The direction of the laser light emitted by the laser sensor 40 and the direction in which the welding torch 11 supplies the welding wire 13 are assumed to be substantially parallel. In FIG. 2, Ld indicates a range in which measurement is not possible along the direction of the laser light emission. La indicates a range in which measurement is possible along the direction of the laser light emission, that is, a measurement distance. Wa indicates a range in which measurement is possible in a direction perpendicular to the direction of the laser light emission, that is, a measurement width. For example, La=350 mm, Ld=192 mm, and Wa=111 mm can be set.

[0024] A laser sensor 40 is placed near the welding torch 11 and irradiates a band-shaped laser beam with a measurement width of Wa=111 mm to measure the target object before welding, i.e., the workpiece W, and detects the groove position, gap width, groove shape, etc. Based on the detection data, it is possible to output correction information for a reference position, which will be described later, and to obtain the tracing position, weaving correction amount, etc. from the detection data of the gap width.

[0025] Each part constituting the welding system 1 is communicatively connected by various wired / wireless communication methods. The communication method here is not limited to one, and a combination of multiple communication methods may be used for connection.

[0026] [Robot control device configuration] FIG. 3 shows an example of the configuration of the robot control device 20 that controls the operation of the welding robot 10 according to this embodiment. The robot control device 20 includes a CPU 201 that controls the entire device, a memory 202 that stores data, an operation panel 203 that includes a plurality of switches, a robot connection unit 205, and a communication unit 206. The memory 202 is configured, for example, by a volatile or non-volatile storage device such as a ROM, a RAM, or a HDD. The memory 202 stores a control program 202A used to control the welding robot 10. The CPU 201 reads and executes the control program 202A to control various operations by the welding robot 10 and a measurement function using the laser sensor 40. The control program 202A includes various operations of the welding robot 10 and teaching programs corresponding to individual welding operations. It is preferable from the viewpoint of control efficiency to further configure the teaching programs corresponding to the individual welding operations by separating a program related to measurement (hereinafter also referred to as a sensing program) from a program related to various operations by the welding robot 10 and a welding operation (hereinafter also referred to as a welding program). In this case, the sensing program and the welding program may be configured to be associated with each other. An example of a teaching program corresponding to each individual welding according to this embodiment will be described later with reference to FIG.

[0027] A teaching pendant 50 is mainly used to input instructions to the robot control device 20. The teaching pendant 50 is connected to the robot control device 20 main body via a communication unit 206. An operator can input a teaching program using the teaching pendant 50. The robot control device 20 controls the welding operation of the welding robot 10 according to the teaching program input from the teaching pendant 50. The teaching program can be automatically created based on CAD (Computer-Aided Design) information, for example, using a computer (not shown). The operation contents defined by the teaching program are not particularly limited and may differ depending on the specifications and welding method of the welding robot 10. The teaching pendant 50 has an operation unit and a display unit (not shown) in addition to the operation panel 203, and can display a display screen described later using FIG. 4B, for example.

[0028] A drive circuit (not shown) of the welding robot 10 is connected to the robot connection unit 205. The CPU 201 outputs a control signal based on the control program 202A via the robot connection unit 205 to a drive circuit (not shown) included in the welding robot 10, thereby operating the welding robot 10.

[0029] The communication unit 206 is a communication module for wired or wireless communication. The communication unit 206 is used for data communication with the power supply device 30, the laser sensor 40, the teaching pendant 50, and the like. The communication method and standard used in the communication unit 206 are not particularly limited, and a plurality of methods may be combined. For example, the current value of the welding current detected by a current sensor (not shown) and the voltage value of the arc voltage detected by a voltage sensor (not shown) are provided to the CPU 201 via the communication unit 206 from the power supply device 30. The values ​​detected by the current sensor and the voltage sensor (not shown) may also be used as feedback information within the power supply device 30.

[0030] The robot controller 20 controls the movement speed of the welding torch 11 and the target direction of the welding torch (which may be rephrased as the feeding direction of the welding wire) by controlling each axis of the welding robot 10. The robot controller 20 also controls the weaving operation of the welding robot 10 according to the set period, amplitude, and welding speed. The weaving operation refers to alternately swinging the welding torch 11 in a direction intersecting the welding proceeding direction. The robot controller 20 executes weld line tracing control in addition to the weaving operation. The weld line tracing control is an operation of controlling the left and right positions of the welding torch 11 with respect to the proceeding direction so that a bead is formed along the weld line. The robot controller 20 also controls the feeding speed of the welding wire 13 by controlling the wire feeder 12 via the power supply 30.

[0031] (display screen) An example of the display screen displayed on the teaching pendant 50 will be described with reference to Figures 4A and 4B. Figure 4A shows an example of a state in which the laser sensor 40 is performing measurement by irradiating a laser beam 402 onto a workpiece 401 to be welded. Here, an example is shown in which the workpiece 401 is located on the left and right of the image, and a groove 400 as a root gap is located in the center of the image.

[0032] FIG. 4B shows an example of the configuration of a display screen 410 showing the measurement results of the welding target shown in FIG. 4A. The display screen 410 is composed of three display areas 411, 412, and 413. The display area 411 shows information such as an overview of the display contents. In this example, a message indicating that the measurement results are shown is displayed on the display screen 410. The display area 412 shows the measurement results in a graph format. The measurement results may be displayed in a mass width. The mass width means the groove outline shape, and specifically, the groove outline shape is displayed in a graph format. Here, the horizontal axis corresponds to the width direction in the measurement process, and the vertical axis corresponds to the height direction in the measurement process. [mm] is shown as the unit of the scale, but this may change depending on the size of the measurement target. As shown in FIG. 4A, since the groove 400 is located in the center of the measurement target, it is detected that the height of the corresponding position is lower than other positions. The display area 413 shows the details of the measurement results. For example, information analyzed based on the measurement results may be displayed. Here, information such as the groove shape, the success or failure of the measurement, the groove center coordinates, and the gap width are displayed.

[0033] The groove shape may be, for example, a L-shaped groove, a V-shaped groove, a flare groove, a T-joint groove, or the like. The success or failure of the measurement indicates whether the measurement process was successful. The groove center coordinate indicates the position of the groove center based on the origin in a coordinate system (hereinafter referred to as a laser coordinate system) set in the laser sensor 40. The gap width may be the width of the bottom of the groove, the width of the top, or the width of the center position in the height direction of the groove. Other information may be further displayed in the display area 413, and the displayed items and contents may be switched based on the operation or setting of the operator. Here, an example of a screen configuration showing the measurement result by the laser sensor 40 is shown, but a different screen may be displayed on the display unit of the teaching pendant 50 during welding.

[0034] Furthermore, if an error occurs during measurement in the process described below, the contents of the error and a message prompting the operator to confirm may be displayed in display area 411. Furthermore, if an error occurs during measurement, the display area 412 may be configured to display the measurement results up to that point. Furthermore, when an error occurs, a display screen configured differently from display screen 410 shown in Fig. 4B may be used.

[0035] The measurement results by the laser sensor 40 are stored in a storage unit such as the memory 202 as needed. At this time, the groove shape may be specified based on the measurement results, and the information may be stored and managed in association with the measurement results. In addition, the correspondence between the measurement results and the groove shape may be defined as a pattern, and used when specifying the groove shape from the actual measurement results.

[0036] [Processing sequence] Fig. 5A is a flowchart of the process according to this embodiment. The process flow shown in Fig. 5A is performed to measure the welding target by the laser sensor 40 before welding is started. This process flow may be realized by the CPU 201 of the robot control device 20 reading and executing a teaching program included in the control program 202A stored in the memory 202. In addition, it is assumed that the workpiece W to be welded is placed at the welding position when this process flow is started.

[0037] In S501, the CPU 201 reads out a sensing program from the teaching program, and performs measurement of the workpiece W by the laser sensor 40 based on the sensing program. In the measurement by the laser sensor 40, data such as groove center coordinates, gap width, and feature points for shape recognition are acquired. The data acquired here is based on a laser coordinate system in which three-dimensional coordinate axes and their origins are defined by the laser sensor 40.

[0038] In S502, CPU 201 determines whether the measurement in S501 was successful. The success / failure determination here may be based on, for example, whether the center position of the groove was detected, whether all the processes defined in the sensing program were executed, whether an abnormal value was detected, etc. The success / failure determination criteria are defined in advance. If the measurement was successful (YES in S502), CPU 201 proceeds to S503. On the other hand, if the measurement was unsuccessful (NO in S502), CPU 201 proceeds to S513.

[0039] In S503, CPU 201 determines whether or not there is a reference position command in the sensing program. The reference position command is a command for setting a reference position for measurement when performing measurement based on the sensing program. If there is a reference position command (YES in S503), CPU 201 proceeds to S504. On the other hand, if there is no reference position command (NO in S503), this processing flow ends. If there is no reference position command, no corrections or the like are made to the welding program based on the measurement results.

[0040] In S504, CPU 201 determines whether or not there is a reference position setting parameter in the reference position command of the sensing program. The reference position setting is a value indicating the coordinates of a reference position when performing a measurement operation by laser sensor 40. In this embodiment, it is assumed that the reference position is set in the laser coordinate system of laser sensor 40. If there is a reference position setting (YES in S504), CPU 201 processing proceeds to S508. On the other hand, if there is no reference position setting (NO in S504), CPU 201 processing proceeds to S505.

[0041] In S505, CPU 201 determines whether or not the mode is a teaching mode. In this embodiment, the teaching mode is a mode in which the welding system can automatically set appropriate setting values ​​when various setting values ​​have not been set. Here, the teaching mode provides a function in which the welding system automatically sets the coordinates of the reference position for measurement. The various modes may be set in advance by an operator. If the mode is a teaching mode (YES in S505), the processing of CPU 201 proceeds to S506. If the mode is not a teaching mode (NO in S505), this processing flow ends.

[0042] In S506, the CPU 201 automatically determines the reference position based on a predetermined rule. In this embodiment, the groove center position obtained by the measurement by the laser sensor 40 in S501 is determined as the coordinate of the reference position.

[0043] In S507, CPU 201 rewrites the parameters of the reference position command using the reference position determined in S506. That is, the reference position determined in S506 is set as the reference position used in the welding program. After that, the process of CPU 201 proceeds to S508.

[0044] In S508, CPU 201 calculates a correction amount based on the difference between the set value of the reference position setting in the welding program and the actual measurement value obtained by the measurement by laser sensor 40 in S501. At this time, both the set value and the actual measurement value are expressed as values ​​in the laser coordinate system. At this time, it is possible to perform further correction using a predefined correction coefficient, assuming that the measurement result by laser sensor 40 contains a measurement error.

[0045] In S509, CPU 201 converts the correction amount obtained in S508 from the laser coordinate system into values ​​of the robot coordinate system used by welding robot 10. As shown in Fig. 2, the relationship of the reference coordinate system differs depending on the arrangement of laser sensor 40 with respect to welding torch 11. Therefore, an offset amount to the origin of the laser coordinate system is set based on the origin of a predetermined robot coordinate system, and conversion from the laser coordinate system to the robot coordinate system is performed using this offset amount.

[0046] In S510, the CPU 201 stores in the memory 202 the data converted in S509.

[0047] In S511, CPU 201 determines whether the value of the data converted in S509 is within the threshold range. The threshold used here is predefined and stored in memory 202. If the data is within the threshold range (YES in S511), CPU 201 ends this processing flow. This means that measurement by laser sensor 40 was performed normally and the measurement processing was completed appropriately. If the data is outside the threshold range (NO in S511), CPU 201 proceeds to S512.

[0048] In S512, the CPU 201 issues an error to the effect that the data obtained as a result of the measurement process is inappropriate. Here, the CPU 201 may notify the operator by displaying the error on the display screen of the teach pendant 50. Then, the process of the CPU 201 proceeds to S516.

[0049] In S513, CPU 201 determines whether the number of retries when measurement fails has reached an upper limit. The upper limit of the number of retries is assumed to be predefined by a sensing program or the like. The number of retries is assumed to be managed using a counter (not shown). If the number of retries has reached the upper limit (YES in S513), CPU 201 proceeds to S515. On the other hand, if the number of retries has not reached the upper limit (NO in S513), CPU 201 proceeds to S514.

[0050] In S514, the CPU 201 performs settings for retrying measurement by the laser sensor 40. The settings here include adjustments such as setting the start position of the measurement to a position different from that of the previous measurement. The adjustments are not particularly limited, and may be changed depending on the reason why the previous measurement failed. An example of the settings will be described later with reference to FIG. 8. The CPU 201 may also perform an increment to increase by 1 the value of a counter for managing the number of retries described above. Thereafter, the process of the CPU 201 returns to S501, and measurement by the laser sensor 40 is retried using the setting value set in S514.

[0051] In S515, the CPU 201 issues an error indicating that the number of retries of measurement by the laser sensor 40 has reached an upper limit. Here, the CPU 201 may notify the operator by displaying the error on the display screen of the teaching pendant 50. Then, the process of the CPU 201 proceeds to S516.

[0052] In S516, CPU 201 executes measurement processing based on manual operation by an operator. Details of this step will be described later with reference to FIG. 5B. The processing in S516 corresponds to processing in a state where confirmation work by an operator is required as a result of measurement processing performed on the welding system 1 side based on a sensing program. After processing in S516, CPU 201 proceeds to processing in S503 and continues processing.

[0053] 5A, if the derived data is outside the range of a predetermined threshold as a result of the judgment process in S511, a data error is issued and measurement is switched to manual operation. However, the present invention is not limited to this configuration, and if the number of measurement retries has not reached the upper limit, the process may proceed to step S514, where a retry setting is made and automatic measurement is performed again by the laser sensor 40.

[0054] (Measurement processing based on manual operation) FIG. 5B is a flowchart for explaining details of step S516 in FIG. 5A.

[0055] In S521, CPU 201 receives a measurement retry instruction from the operator of welding system 1. This step is performed after the occurrence of an error is notified to the operator in the process described in FIG. 5A, so it is assumed that the operator has removed factors that may cause the error from the workpiece W to be welded. Examples of the work performed by the operator include checking the condition of the surface of workpiece W, polishing it, and removing foreign matter. The content of the work performed by the operator is not particularly limited, and varies depending on the welding situation, the condition of workpiece W, and the like. The retry instruction can be received via teach pendant 50, and at this time, settings for retrying may also be received.

[0056] In S522, the CPU 201 moves the laser sensor 40 to the measurement start position based on the retry instruction received in S521. The movement here may be to move the position of the laser sensor 40 backward so as to measure again the position where the error occurred, or to move the laser sensor 40 so as to measure from a new start position.

[0057] In S523, the CPU 201 performs measurement by the laser sensor 40. The measurement here may have the same operational content as the measurement in S501 in FIG. 5A.

[0058] In S524, CPU 201 determines whether or not the measurement by laser sensor 40 performed in S524 was successful. The determination here may be performed using the same determination criterion as the determination criterion of S502 in Fig. 5A, or a different determination criterion may be used. If the measurement was successful (YES in S524), CPU 201 proceeds to S525. On the other hand, if the measurement was unsuccessful (NO in S524), CPU 201 proceeds to S526.

[0059] In S525, the CPU 201 switches from the measurement control by the manual operation to the automatic measurement control based on the sensing program. At this time, the CPU 201 may display on the teaching pendant 50 that the measurement by the manual operation was successful and that the measurement control will be switched to the automatic measurement control. Then, this processing flow is ended. When this processing flow is ended, the processing of the CPU 201 proceeds to S503 in FIG. 5A.

[0060] In S526, the CPU 201 issues an error indicating that the measurement by the laser sensor 40 has failed. At this time, the CPU 201 prompts the operator to check the state of the workpiece W again on the teaching pendant 50 along with the details of the error. Then, after the operator removes the factors that caused the measurement to fail again, an instruction to retry the measurement is received in S521, and the measurement process based on the manual operation is repeated.

[0061] [Program Structure] 6 shows an example of the configuration of a teaching program used during welding according to this embodiment. The teaching program here is set in advance by an operator or the like, and is held as a part of the control program 202A. Note that the configuration of the teaching program shown here is an example, and is not limited to this. More commands and tasks may be used depending on the shape and configuration of the welding target.

[0062] The teaching program according to this embodiment is composed of a sensing program 600 and a welding program 610. The sensing program 600 is used in the processes shown in Figures 5A and 5B. The welding program 610 is used when actually performing welding based on the processing results of the sensing program 600.

[0063] In the example of the sensing program 600 shown in FIG. 6, it is composed of four commands 601 to 604. The command 602 corresponds to the reference position command used in the process of S503 in FIG. 5A. In addition, in the command 602, a parameter 602a corresponding to the reference position setting used in the process of S504 in FIG. 5A is set. Here, as the parameter 602a for setting the reference position, the values ​​of the three-dimensional coordinate system of the laser coordinate system are set as X=a, Y=b, and Z=c. Furthermore, in the command 602, a task "No1" for acquiring the gap width of the groove and acquiring the correction amount is specified. Tasks for performing such various operations are defined in advance together with identification information such as "No1" and are included as part of the control program 202A. By specifying the identification information as an argument of each command included in the sensing program 600, the task corresponding to the identification information can be executed. "V001" and "C001" indicate the storage destination of the processing result of the specified task, and in this example, "V001" indicates the storage destination of the correction amount, and "C001" indicates the storage destination of the gap width. If the value of the parameter 602a is not set, the process of S504 in FIG. 5A will be judged as NO.

[0064] Welding program 610 in this example is composed of five commands 611 to 615. Command 611 specifies command 611a for correcting the parameters of the welding operation using the correction amount acquired by command 602 of sensing program 600. That is, the welding position and welding conditions of welding program 610 are corrected based on the correction amount measured and calculated by sensing program 600. Command 612 specifies that welding conditions related to welding are read out together with linear movement. At this time, the welding conditions to be read out may be different depending on the correction amount and the measurement result calculated by sensing program 600. Also, command 614 specifies command 614a for canceling the correction amount applied by command 611a. By canceling the reflection of the correction amount, welding program 610 can be used for various welding in a general purpose manner.

[0065] FIG. 7 is a diagram for explaining the movement of the welding torch 11 around the workpiece based on the various programs shown in FIG. 6. In this example, as shown in FIG. 2, the laser sensor 40 is arranged near the welding torch 11 and is described as moving in substantially the same manner. "P" shown in FIG. 7 corresponds to a command included in each program in FIG. 6. FIG. 7 shows left and right workpieces 701 to be welded, a groove 700 formed between the workpieces 701, and a backing metal 702 for the workpieces 701. In this example, the groove 700 shows an example in which the gap width of the groove gradually increases as it advances in the depth direction of FIG. 7.

[0066] "P1" to "P9" shown in Fig. 7 correspond to the respective commands included in the teaching program shown in Fig. 6. "P1" to "P4" correspond to the respective commands 601 to 604 constituting sensing program 600, and indicate positions during measurement. Also, "P5" to "P9" correspond to the respective commands 611 to 615 constituting welding program 610, and indicate positions during welding.

[0067] First, the flow of measurement based on sensing program 600 will be described. Command 601 causes welding torch 11 to "linearly move" to the position indicated by "P1" in FIG. 7. Next, command 602 causes welding torch 11 to "linearly move" from the position indicated by "P1" to the position indicated by "P2". Furthermore, task "No1" is started with the reference position set to X=a, Y=b, Z=c. As described above, task "No1" is measurement by laser sensor 40.

[0068] By command 603, the welding torch 11 performs "linear movement" from the position indicated by "P2" to the position indicated by "P3". That is, the laser sensor 40 performs measurement from the position indicated by "P2" to the position indicated by "P3". The measurement ends when the position indicated by "P3" is reached. Then, the program specified by command 603 is read out. The program read out here is, for example, a welding condition setting program for determining and setting welding conditions to be used when welding, that is, when executing the welding program 610, based on the measurement results. In this embodiment, a plurality of parameter groups for various control items are defined in advance as welding conditions. Then, from among the plurality of welding conditions, welding conditions suitable for welding are determined according to the measurement results. By command 604, the welding torch 11 performs "linear movement" to the position indicated by "P4" in FIG. 7. In this example, "P1" and "P4" are shown as the same position, but they may be different.

[0069] Next, the operation based on the welding program 610 will be described. In response to command 611, the welding torch 11 performs a "linear movement" to the position indicated by "P5". In this example, "P1" and "P5" are indicated as the same position, but they may be different. Furthermore, the correction amount detected in command 602 of the sensing program 600 is reflected in the control parameters.

[0070] By command 612, welding torch 11 performs "linear movement" to a position indicated by "P6" which is the welding start position. In this example, "P2" and "P6" are indicated as the same position, but when the correction amount is reflected, "P6" becomes a different position based on the correction amount. Furthermore, the welding conditions set by command 603 of sensing program 600 are read out. As described above, the welding conditions read out here may be changed depending on the measurement results by sensing program 600. Furthermore, the arc is turned ON, and welding is started.

[0071] In response to the command 613, the welding torch 11 performs a "linear movement" to the position indicated by "P7". That is, welding is performed from the position "P6" to the position "P7". In response to the command 614, the welding torch 11 performs a "linear movement" to the position indicated by "P8". That is, welding is further performed from the position "P7" to the position "P8". As in the command 613 and the command 614, when the length to be welded in one command becomes equal to or greater than a predetermined threshold, the command may be divided into different commands for control. In addition, in the example of FIG. 7, since the size of the gap width of the groove is changed, the welding conditions may be switched between the welding from "P6" to "P7" and the welding from "P7" to "P8". After that, the arc is turned off to end the welding. Furthermore, the correction amount reflected in the command 611 is released. In response to the command 615, the welding torch 11 performs a "linear movement" to the position indicated by "P9". The position indicated by "P9" is not particularly limited, and may be, for example, the same as "P1", which is the start position of the operation, or may be a position based on the start position of the next welding operation. In addition, in the welding section between arc ON and arc OFF, an arc sensor may be used to automatically correct the torch position. Note that the arc sensor is a mechanism that applies a welding current or the like to detect the position of the groove and follow it to perform welding. Even if the workpiece to be welded is misaligned or varies, or thermal distortion occurs during welding, welding can be performed without the target position of the torch being misaligned from the groove.

[0072] (Position control during measurement retry) Fig. 8 is a diagram for explaining the measurement start position when retrying measurement by the laser sensor 40. In the process of Fig. 5A, if the measurement by the laser sensor 40 fails, settings for retry are made in the step of S514. When the measurement fails, if the measurement is performed again from the same start position as the start position of the measurement at that time, there is a high possibility that the measurement will fail again. Therefore, in this embodiment, when retrying measurement, the start position of the measurement is changed.

[0073] In FIG. 8, the horizontal axis indicates the position, and the measurement is performed from left to right. Position 801 indicates the position where the previous measurement was started. Position 802 indicates the position where the measurement by the laser sensor 40 was determined to have failed. If the measurement by the laser sensor 40 fails, a position moved from position 801 in the measurement proceeding direction by a predefined shift amount S is set as the start position when the measurement is retried. Position 803 indicates the start position when the measurement is retried. Position 804 indicates the end position when the measurement is retried. Note that the end position of the measurement may be the same regardless of whether or not the measurement fails, or may be different. For example, in the example of FIG. 7, the range to be measured is from the position "P2" to the position "P3", but if the measurement fails, the start position may be changed so that the measurement is performed in a range other than this range.

[0074] In this embodiment, the start position at the time of retry is determined based on the start position of the previous measurement, but this is not limited to this. For example, the start position at the time of retry may be determined based on the position at which it is determined that the measurement has failed. In the example of FIG. 8, the start position at the time of retry may be determined based on position 802. Also, in this embodiment, an example in which the start position is changed at the time of retry is shown, but this is not limited to this. For example, a configuration in which the measurement conditions in the laser sensor 40 are switched may be used. Examples of the measurement conditions in the laser sensor 40 include the laser irradiation angle, irradiation intensity, filter value, and number of samples.

[0075] In this embodiment, the number of retries when measurement fails is predefined, and retries are performed within a range not exceeding this upper limit. However, the present invention is not limited to this configuration, and an upper limit for the time required for measurement may be predefined, and retries may be performed within a range not exceeding this upper limit.

[0076] In addition, in the present embodiment, the configuration in which the laser sensor 40 is provided as the detection means in the welding system 1 has been described, but the present invention is not limited to this. For example, in addition to the laser sensor 40, a visual sensor such as a camera or a touch sensor may be further provided. In this case, when an error occurs, measurement may be performed using the visual sensor or touch sensor instead of the laser sensor 40. Then, when data is normally acquired by measurement using the visual sensor or touch sensor, automatic measurement may be continued or an operation according to the welding program may be performed.

[0077] As described above, according to this embodiment, it is possible to perform measurement and position correction more efficiently using a laser sensor, and it is possible to improve the efficiency of welding work.

[0078] [Variations] In the above embodiment, when an error occurs in the measurement process, the measurement process is switched to be performed based on the manual operation by the operator. At this time, if the automatic measurement can be continued by determining the contents of the measurement result of the laser sensor 40 in more detail, the welding system 1 may automatically restore the state. In other words, it is possible to continue the automatic measurement by suppressing the occurrence of the error itself. As a result, the frequency of manual operation by the operator can be suppressed. Therefore, a configuration for continuing the automatic measurement by automatic restoration will be described as a modified example.

[0079] For example, factors that cause errors in measurement by the laser sensor 40 include multiple reflections of the laser light due to the gloss of the surface of the welding object, the presence of foreign matter such as dust or tack on the surface of the welding object, and false detection due to the complexity of the groove of the welding object. Other factors that cause errors include incorrect settings of the teaching program and equipment abnormalities. Equipment abnormalities may include a state in which the protective glass of the laser sensor 40 becomes dirty due to spatter or fumes generated during welding, making it impossible to irradiate or receive laser light. If the welding system can identify such an event and determine that automatic measurement can be continued, it is possible to automatically restore measurement without the need for operator action.

[0080] The following describes the process that takes into account each of the events that can cause an error. Note that some of the above-mentioned factors are given as examples. Therefore, it is possible to suppress the occurrence of errors by applying the same process to other factors as well.

[0081] (multifaceted reflection) If the surface of the workpiece to be welded is glossy, irradiating the surface with a laser beam may cause reflection of the laser beam, making it impossible to accurately measure the shape of the workpiece. The degree of reflection varies depending on factors such as the shape of the groove as the root gap formed between the workpieces to be welded, and there are cases where a position that was not previously detected is detected as the surface.

[0082] FIG. 9A shows an example of the result of measuring the surface of the workpiece 901 as shown in FIG. 9B. Here, the workpiece 901 is an example of a material having a relatively high gloss. The point cloud 910 indicates the point cloud detected by the laser sensor 40. The line 911 indicates the edge of the workpiece 901 derived based on the point cloud 910 obtained by the measurement. The position 912 indicates the center position of the groove identified based on the result obtained by the measurement. At this time, the gloss of the workpiece 901 causes reflection of the laser light, and noise such as points 910a and 910b is detected. Therefore, there are cases where the shape of the workpiece 901 and the center position of the groove cannot be detected correctly due to the influence of points 910a and 910b.

[0083] Fig. 9B is a schematic diagram showing the measurement results of Fig. 9A. The arrows shown in Fig. 9B indicate the direction in which the laser light is irradiated by the laser sensor 40. As shown in Fig. 9B, points 910a and 910b are detected as noise at positions different from the surface of the workpiece 901 due to reflection.

[0084] Considering the reflection of the workpiece surface as described above, the measurement result is corrected using, for example, a filter for noise. The filter here may be, for example, a filter that removes points that are at a certain distance from other point clouds, that is, discontinuous points. FIG. 9C shows an example in which a noise removal filter is applied to the measurement result shown in FIG. 9A to derive the edge of the workpiece 901. The point cloud 920 shows the point cloud after applying a filter to the point cloud detected by the laser sensor 40. In addition, the line 921 shows the edge of the workpiece 901 derived based on the point cloud 920 after application of the filter. In addition, the position 922 shows the center position of the groove identified based on the point cloud 920 after application of the filter.

[0085] Fig. 9D is a schematic diagram showing the state after the application of the filter in Fig. 9C. The arrow in Fig. 9D indicates the direction in which the laser sensor 40 irradiates the laser light. As shown in Fig. 9D, points 910a and 910b, which are noises caused by reflection, are removed. As a result, the shape of the workpiece 901 can be properly measured, and the occurrence of errors during measurement can be suppressed.

[0086] In addition, in this process, for example, when it is determined that the measurement has failed in the step of S502 in Fig. 5A, the measurement result may be subjected to a filtering process and judged again, or the measurement result may be subjected to a filtering process from the beginning and then judged. For example, when it is expected in advance that the welding object has gloss and has multiple reflections, the measurement result may be subjected to a filtering process from the beginning and then judged whether or not the measurement has been successful.

[0087] (Foreign object) Foreign objects that may adhere to the surface of the object to be welded during measurement include various types of debris, such as scraps of welding wire. In addition, the shape of a temporary attachment on the workpiece surface may be detected as a foreign object. To improve the quality of the weld, the debris must be removed, but temporary attachments may disappear during the welding process and do not pose a problem and do not need to be removed. In other words, even if a foreign object is detected, there are cases where action by an operator is required and cases where it is not. If this distinction can be made, it is possible to suppress the occurrence of errors and continue automatic measurement.

[0088] 10A shows an example in which a workpiece 1001 to be welded is formed between the workpiece 1001 and a groove 1002. The measured gap of the groove 1002 is 3 mm. In addition, a foreign object 1003, which is a broken piece of the welding wire, is present near the groove 1002.

[0089] Fig. 10B shows a state in which the workpiece 1001 shown in Fig. 10A is measured by irradiating it with laser light 1004 by the laser sensor 40. At this time, it is assumed that the laser light 1004 is measuring the position where a foreign object 1003 is present.

[0090] FIG. 10C shows an example of the result of measurement performed in the state shown in FIG. 10. The point cloud 1020 shows the point cloud detected by the laser sensor 40. The groove 1021 shows the groove derived based on the point cloud 1020 obtained by measurement. The position 1022 shows the center position of the upper part of the groove 1021. At this time, the length of the upper part of the groove 1021 shown by the dashed line 1023 is measured at 20.39 mm. That is, due to the presence of the foreign object 1003 on the surface of the workpiece 1001, the gap width is detected as the position of the end of the foreign object 1003 as the position of the end of the groove 1021, not as the gap width of the original groove 1021, which is 3 mm. As a result, as shown in the groove 1021, a range different from the original groove is erroneously detected. To be precise, the area around the point cloud 1020a corresponds to the edge part of the workpiece 1001.

[0091] In response to the above-mentioned false detection caused by a foreign object, a certain range is measured by the laser sensor 40, and an abnormal value, that is, a value in the range in which a foreign object exists, is identified. FIG. 10D shows a state in which the laser sensor 40 measures a range 1030 along the direction of the arrow in order to determine a foreign object. At this time, it is preferable to measure so as to include a range different from the range of the foreign object 1003. In other words, if the measurement fails due to the inclusion of a foreign object, at the time of retry, it may be determined whether the measurement was successful or not based on the measurement result of the area surrounding the foreign object. At this time, it may be possible to switch whether to treat it as an error or not depending on the type of foreign object. For example, it may be configured to determine whether the foreign object is a temporary attachment or other dust based on the result of the first measurement, and not generate an error if it is a temporary attachment, and generate an error if it is other dust, that is, to request manual work.

[0092] Fig. 11 shows values ​​obtained by performing the measurement according to Fig. 10D. In other words, it shows the results of a measurement performed in a state where a welding wire, which is a foreign object that needs to be manually removed, is present on the surface of the workpiece 1001. In Fig. 11, the vertical axis shows the gap width [mm] of the detected groove, and the horizontal axis shows the data acquisition number. The data acquisition number here indicates the position where measurement was performed by the laser sensor 40 at a predetermined interval. It is assumed that the predetermined interval is specified in advance.

[0093] In this example, the length of the range 1030 shown in Fig. 10D is set to 10 [mm], the measurement speed is set to 60 [cm / min], and the data acquisition cycle is set to 30 [Hz]. Note that the measurement conditions are not limited to the above, and other values ​​may be used. In Fig. 11, the gap width is about 3 mm at the positions of data acquisition numbers "1" to "11" and "18" to "31", while the gap width increases rapidly at data acquisition numbers "12" to "17", reaching a peak value of about 29 mm at data acquisition number

[13] .

[0094] For example, in the case of a temporary joint, it is highly likely that a certain range will be detected with the same width along the extension direction of the groove. Therefore, when extreme values ​​are detected in a certain range as shown in Fig. 11, it is possible to identify that there is dust, not a temporary joint. In other words, the shape and type of the foreign object can be identified based on the measurement results, and it can be identified as whether the foreign object requires work by an operator or whether it can be automatically measured while ignoring its existence.

[0095] Furthermore, when the entire range of data acquisition numbers is taken into consideration, the ranges of data acquisition numbers "1" to "11" and "18" to "31" can be treated as detection results for the groove, and the gap width can be derived based on the position value. In the example of Figure 11, the gap width can be derived as 3.3 mm, which is close to the gap width in the actual groove.

[0096] Furthermore, a setting error in the teaching program or an abnormality in the device may be identified based on a case where a clear abnormality is identified from the detection results of the laser sensor 40.

[0097] As described above, it is possible to perform filtering on the measurement results of the laser sensor 40, and to switch the measurement range during retry when an abnormality is detected and perform processing to determine the nature of the abnormality. In this way, it is possible to suppress the occurrence of errors that prompt the operator to perform work, and to continue automatic measurement.

[0098] <Other embodiments> In the present invention, a program or application for realizing the functions of one or more of the above-mentioned embodiments can be supplied to a system or device via a network or a storage medium, etc., and one or more processors in a computer of the system or device can read and execute the program, thereby making it possible to realize the present invention.

[0099] Alternatively, the function may be realized by a circuit that realizes one or more functions, such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

[0100] As described above, the present specification discloses the following: (1) A method for controlling a welding robot equipped with a laser sensor, comprising the steps of: a determination step of determining setting information including a setting of a reference position for measurement by the laser sensor in a control program of the welding robot; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether or not the measurement in the measurement step has been successful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when the measurement is determined to be successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined that the measurement has failed in the determination step; A method for controlling a welding robot comprising the steps of: According to this configuration, measurement and position correction can be performed more efficiently using the laser sensor, making it possible to improve the efficiency of the welding work.

[0101] (2) The method for controlling a welding robot according to (1), wherein in the retry step, the measurement in the measuring step is retried within a range in which the number of retries does not exceed an upper limit value. According to this configuration, by setting an upper limit based on the number of retries during automatic measurement, it is possible to prevent the occurrence of unnecessary measurement retries.

[0102] (3) The method for controlling a welding robot according to (1), wherein in the retry step, the measurement in the measuring step is retried within a range in which the time required for measurement does not exceed an upper limit value. According to this configuration, by setting an upper limit based on time for retries during automatic measurement, it is possible to prevent the occurrence of unnecessary measurement retries.

[0103] (4) The method for controlling a welding robot according to (2) or (3), further comprising a notification step of notifying a user of a failure of the measurement and prompting the user to perform an operation when a measurement by the measurement step exceeds the upper limit value. According to this configuration, when a failure occurs in measurement by the laser sensor, it is possible to properly notify the operator to urge him or her to carry out the work.

[0104] (5) The method further includes a step of identifying a cause of the failure based on a shape of the welding object measured by the laser sensor when it is determined in the determination step that the measurement in the measurement step has failed, In the retry step, it is determined whether or not to retry the measurement in the measuring step based on the cause identified in the identifying step. The method for controlling a welding robot according to any one of (1) to (4) above. According to this configuration, when a failure occurs in measurement by the laser sensor, it is possible to determine whether to retry the automatic measurement or switch to manual operation by the operator depending on the nature of the failure. Therefore, it is possible to determine whether the automatic measurement can be continued based on the cause of the failure, and to suppress operation by the operator when it is determined that the automatic measurement can be continued.

[0105] (6) in the identifying step, a type of foreign matter contained in the measurement target is identified based on a measurement result in the measuring step; In the retry step, it is determined whether or not to retry the measurement in the measuring step depending on the type of the foreign matter. The method for controlling a welding robot according to (5) above. According to this configuration, when a foreign object is detected by the measurement by the laser sensor, it is possible to determine whether to retry the automatic measurement or switch to manual operation by the operator depending on the type of the foreign object. Therefore, it is possible to determine whether the automatic measurement can be continued based on the type of foreign object, and to suppress operation by the operator when it is determined that the automatic measurement can be continued.

[0106] (7) The method for controlling a welding robot according to (5) or (6), characterized in that the cause of the failure is identified as at least one of multiple reflections, a foreign object, a setting error, and an equipment abnormality. According to this configuration, various causes of measurement failure can be identified based on the measurement results by the laser sensor, and it becomes possible to determine in more detail whether or not automatic measurement can be continued.

[0107] (8) A method for controlling a welding robot according to any one of (1) to (7), characterized in that in the judgment process, it is determined whether or not the measurement in the measurement process was successful based on the result of a filtering process on the measurement result by the measurement process. According to this configuration, even if the measurement results of the laser sensor contain noise due to, for example, multiple reflections on the surface of the welding object, the noise can be removed, resulting in more accurate measurements.

[0108] (9) The method for controlling a welding robot according to any one of (1) to (8), characterized in that in the retry process, when retrying the measurement in the measurement process, the measurement conditions for the laser sensor are reset. According to this configuration, by changing the measurement conditions when retrying measurement, it is possible to prevent failure of the second measurement and perform measurement efficiently.

[0109] (10) The method for controlling a welding robot described in (9), characterized in that in the retry process, the measurement condition is to change the start position or end position of measurement by the laser sensor for each retry to a predetermined position or a position calculated based on an error position. According to this configuration, by changing the measurement position and performing the measurement again, even if the measurement fails, it is possible to perform the measurement again efficiently after that.

[0110] (11) The method for controlling a welding robot according to (9), characterized in that in the retry process, at least one of the measurement conditions, a measurement angle, a laser intensity, a filter value of a laser sensor, and a number of samplings, is changed for each retry. According to this configuration, by changing the measurement position and performing the measurement again, even if the measurement fails, it is possible to perform the measurement again efficiently after that.

[0111] (12) In the calculation step, the correction amount is calculated based on a difference between the reference position and a measurement result in the measurement step; The correction amount is transformed from a coordinate system of the laser sensor to a coordinate system of the welding robot; The method for controlling a welding robot according to any one of (1) to (11), characterized in that at least the control program is changed based on the converted correction amount. According to this configuration, even if the laser coordinate system based on the laser sensor and the robot coordinate system based on the welding robot are different, it is possible to appropriately switch the control program based on the measurement results by the laser sensor.

[0112] (13) The welding robot further includes a visual sensor or a touch sensor, The welding robot control method according to any one of (1) to (12), characterized in that, when it is determined in the judgment process that the measurement by the measurement process has failed, measurement is performed using the visual sensor or the touch sensor. According to this configuration, even if measurement using the laser sensor fails, automatic measurement using a visual sensor or touch sensor can be performed, making it possible to perform welding efficiently without requiring any work by an operator.

[0113] (14) A control device for a welding robot equipped with a laser sensor, comprising: a determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring an object to be welded using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether or not the measurement by the laser sensor has been successful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; A welding robot control device comprising: According to this configuration, measurement and position correction can be performed more efficiently using the laser sensor, making it possible to improve the efficiency of the welding work.

[0114] (15) a laser sensor; A welding robot Control device and 1. A welding system comprising: The control device includes: A determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring an object to be welded using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether or not the measurement by the laser sensor has been successful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; A welding system comprising: According to this configuration, measurement and position correction can be performed more efficiently using the laser sensor, making it possible to improve the efficiency of the welding work.

[0115] (16) To a computer: A determination step of determining setting information including a reference position for measurement by the laser sensor in a control program for a welding robot equipped with a laser sensor; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether or not the measurement in the measurement step has been successful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when the measurement is determined to be successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined that the measurement has failed in the determination step; A program for executing the above. According to this configuration, measurement and position correction can be performed more efficiently using the laser sensor, making it possible to improve the efficiency of the welding work. [Explanation of symbols]

[0116] 1 Welding system 10. Welding robot 11 Welding torch 12 Wire feeder 13 Welding wire 20 Robot control device 30 Power supply 40 Laser Sensor 50 Teaching Pendant 201 CPU(Central Processing Unit) 202 Memory 202A Control Program 203 Operation Panel 205 Robot Connection 206 Communications Department

Claims

1. A method for controlling a welding robot equipped with a laser sensor, comprising: a determination step of determining setting information including a setting of a reference position for measurement by the laser sensor in a control program of the welding robot; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether the measurement in the measurement step is successful or unsuccessful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when the measurement is determined to be successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined in the determination step that the measurement has failed, If it is determined in the determination step that the measurement in the measurement step has failed, a determination step of determining a cause of the failure based on a shape of the welding object measured by the laser sensor, In the retry step, it is determined whether or not to retry the measurement in the measuring step based on the cause identified in the identifying step. A method for controlling a welding robot comprising the steps of:

2. 2. The method for controlling a welding robot according to claim 1, wherein in the retry step, the measurement in the measuring step is retried within a range in which the number of retries does not exceed an upper limit value.

3. 2. The method for controlling a welding robot according to claim 1, wherein in the retry step, the measurement in the measuring step is retried within a range in which a required time for measurement does not exceed an upper limit value.

4. 4. The welding robot control method according to claim 2, further comprising a notification step of notifying a user of a failure of the measurement and prompting the user to perform an operation when the measurement by the measurement step exceeds the upper limit value.

5. In the identification step, a type of foreign matter contained in the measurement target is identified based on a measurement result in the measurement step; In the retry step, it is determined whether or not to retry the measurement in the measuring step depending on the type of the foreign matter.

2. The method for controlling a welding robot according to claim 1.

6. 2. The method for controlling a welding robot according to claim 1, wherein the cause of the failure is identified as at least one of multiple reflections, a foreign object, a setting error, and an equipment abnormality.

7. 7. The welding robot control method according to claim 1, wherein in the determination step, it is determined whether the measurement in the measurement step has been successful or unsuccessful based on a result of a filtering process performed on the measurement result from the measurement step.

8. 8. The method for controlling a welding robot according to claim 1, wherein in the retry step, a measurement condition for the laser sensor is reset when the measurement in the measuring step is retried.

9. 9. The welding robot control method according to claim 8, wherein in the retry step, as the measurement condition, a start position or an end position of the measurement by the laser sensor is changed for each retry to a predetermined position or a position calculated based on an error position.

10. 9. The welding robot control method according to claim 8, wherein in the retry step, at least one of the measurement conditions, a measurement angle, a laser intensity, a filter value of a laser sensor, and a sampling number, is changed for each retry.

11. the calculation step calculates the correction amount based on a difference between the reference position and a measurement result in the measurement step; The correction amount is transformed from a coordinate system of the laser sensor to a coordinate system of the welding robot; 11. The method for controlling a welding robot according to claim 1, wherein at least the control program is changed based on the converted correction amount.

12. The welding robot further includes a visual sensor or a touch sensor, The welding robot control method according to any one of claims 1 to 11, characterized in that if it is determined in the judgment step that the measurement in the measurement step has failed, measurement is performed using the visual sensor or the touch sensor.

13. A control device for a welding robot equipped with a laser sensor, a determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring a welding target using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether the measurement by the laser sensor is successful or unsuccessful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; and an identification means for identifying a cause of the failure based on the shape of the welding object measured by the laser sensor when the determination means determines that the measurement by the measurement means has failed, The retry means determines whether or not to perform the retry based on the cause identified by the identification means. A welding robot control device comprising:

14. A laser sensor; A welding robot Control device and 1. A welding system comprising: The control device includes: a determination means for determining setting information including a setting of a reference position for measurement by the laser sensor in a control program for the welding robot; a measuring means for measuring a welding target using the laser sensor in accordance with the control program based on the setting information; a determination means for determining whether the measurement by the laser sensor is successful or unsuccessful; a calculation means for calculating a correction amount for a control parameter of the welding robot based on the reference position and a measurement result by the laser sensor when the determination means determines that the measurement is successful; a retry means for retrying the measurement by the laser sensor when the determination means determines that the measurement has failed; and an identification means for identifying a cause of the failure based on the shape of the welding object measured by the laser sensor when the determination means determines that the measurement by the measurement means has failed, The retry means determines whether or not to perform the retry based on the cause identified by the identification means. A welding system comprising:

15. On the computer, A determination step of determining setting information including a reference position for measurement by the laser sensor in a control program for a welding robot equipped with a laser sensor; a measurement step of measuring a welding target using the laser sensor according to the control program based on the setting information; a determination step of determining whether the measurement in the measurement step is successful or unsuccessful; a calculation step of calculating a correction amount for a control parameter of the welding robot based on the reference position and the measurement result in the measurement step when it is determined that the measurement is successful in the determination step; a retry step of retrying the measurement in the measurement step when it is determined that the measurement has failed in the determination step; And, a determining step of determining a cause of the failure based on the shape of the welding object measured by the laser sensor when it is determined in the determining step that the measurement in the measuring step has failed; and execute In the retry step, it is determined whether or not to retry the measurement in the measuring step based on the cause identified in the identifying step. A program that executes a process.

Citation Information

Patent Citations

  • Welding robot

    JP1996103870A

  • Edge detecting method of object to be welded applicable to robot

    JP1996118021A

  • Tracking device for detection line using sensor

    JP2001129776A

  • Position detection system for automatic welding machine

    JP2008221281A

  • Robot control method

    WO2015146180A1