OFFLINE TEACHING DEVICE AND OFFLINE TEACHING METHOD
The offline teaching device automates the update of teaching programs for welding and scanning operations by using production data to generate new programs, addressing inefficiencies in existing systems and enhancing operational accuracy and efficiency.
Patent Information
- Application Number
- JP2023530115
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-06-23
- Filing Date
- 2022-06-23
- Publication Date
- 2025-01-20
- Estimated Expiration
- 2042-06-23
AI Technical Summary
Existing offline teaching devices for welding robots are inefficient in updating teaching programs for welding and scanning operations due to frequent minor modifications required to account for individual differences in workpieces, such as dimensional errors and position deviations, leading to time-consuming manual updates.
An offline teaching device and method that includes an acquisition unit for obtaining production data, a storage unit for storing data, and a teaching program creation unit to generate and output updated teaching programs for welding and inspection based on acquired data, allowing automatic updates to teaching programs for welding and scanning operations.
The solution enables more efficient and automated updating of teaching programs, reducing the time and effort required for managing changes in workpiece configurations, thereby improving the accuracy and efficiency of welding and scanning operations.
Smart Images

Figure 0007617540000001 
Figure 0007617540000002 
Figure 0007617540000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an offline teaching device and an offline teaching method. [Background technology]
[0002] Patent Document 1 discloses an offline teaching device that displays, on a model diagram, the motion trajectory of a robot when a teaching program is executed, and displays a part of a plurality of position detection commands and a part of a plurality of welding commands. The offline teaching device includes a display unit that displays the teaching program and the model diagram, a storage unit that stores the commands constituting the teaching program and model data of the model diagram, and a control unit that controls the display unit and the storage unit. The teaching program includes a position detection program that is composed of a plurality of position detection commands, and a welding program that is composed of a plurality of welding commands. Here, the commands constituting the teaching program, the position detection program, and the welding program are each created by an operator. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2016 / 021130 Summary of the Invention [Problem to be solved by the invention]
[0004] The present disclosure provides an offline teaching device and an offline teaching method for more efficiently updating a teaching program for a welding operation or a scanning operation executed by a welding robot. [Means for solving the problem]
[0005] The present disclosure provides a welding method and a system for manufacturing a workpiece, comprising: an acquisition unit that acquires first production data of a workpiece produced by welding; a storage unit that stores the acquired first production data; and a first welding teaching program for acquiring a first weld line of the workpiece from the first production data and performing the welding by a welding robot; Using the first production data and a teaching program creation unit that creates and outputs a first inspection teaching program for performing an inspection of a weld bead of the produced workpiece, wherein the acquisition unit acquires second production data in which at least a part of the first production data is changed, the teaching program creation unit acquires a second welding line different from the first welding line from the second production data, and generates a second welding teaching program for a workpiece produced using the second production data based on the acquired second welding line. for performing an inspection of a weld bead produced using the second production data; The present invention provides an offline teaching device that creates and outputs a first inspection teaching program and a second inspection teaching program.
[0006] The present disclosure also provides an offline teaching method performed by an offline teaching device including one or more computers communicably connected to a robot control device capable of controlling a welding robot that performs welding, the method including: acquiring and storing first production data of a workpiece produced by the welding, acquiring a first weld line of the workpiece from the first production data, and performing the welding by the welding robot; Using the first production data a first inspection teaching program for inspecting a weld bead of the produced workpiece, and outputting the first inspection teaching program; acquiring second production data in which at least a part of the first production data is changed; and generating a second welding teaching program corresponding to the workpiece to be produced using the second production data based on the first weld line included in the acquired first production data and the second weld line included in the acquired second production data; for performing an inspection of a weld bead produced using the second production data; The present invention provides an offline teaching method for creating and outputting a first inspection teaching program and a second inspection teaching program. Effect of the Invention
[0007] According to the present disclosure, it is possible to more efficiently update a teaching program for a welding operation or a scanning operation executed by a welding robot. [Brief description of the drawings]
[0008] [Figure 1] Schematic diagram showing an example of the system configuration of a welding system [Diagram 2] FIG. 2 is a diagram showing an example of the internal configuration of an inspection control device, a robot control device, a higher-level device, and an offline teaching device according to an embodiment; [Diagram 3] A diagram explaining the welding robot coordinate system and the workpiece coordinate system. [Figure 4] Diagram explaining the work coordinate system [Diagram 5] 1 is a flowchart showing an initial setting procedure of a teaching program for each of a welding operation and a scanning operation by an offline teaching device according to an embodiment. [Figure 6] FIG. 1 is a diagram for explaining various data input to an offline teaching device. [Figure 7] 1 is a flowchart showing a teaching program update process of an offline teaching device according to an embodiment. [Figure 8] Diagram explaining the change of stage position [Figure 9] Diagram explaining workpiece design changes [Figure 10] Diagram explaining changes in workpiece machining accuracy due to lot switching DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] (Background to this disclosure) As shown in Patent Document 1, a device configuration capable of constructing a virtual production facility using an offline teaching device has been known for some time. Such an offline teaching device can simultaneously display some position detection commands corresponding to the motion trajectory of a welding robot and some welding commands, making it easier for a user to identify the editing positions when creating a teaching program, and can help improve the efficiency and accuracy of creating a created program.
[0010] Furthermore, when performing visual inspection as a quality check method for the welded portion (i.e., weld bead), the welding robot may be equipped with a laser sensor or the like capable of scanning the workpiece and measuring the three-dimensional shape of the weld bead, and may automatically perform the actual welding and the visual inspection of the welded portion. The results of the visual inspection obtained by the visual inspection may be used to correct the position of the workpiece itself, individual differences between workpieces (i.e., dimensional tolerances), etc., by analyzing not only the three-dimensional shape of the weld bead, but also the feature points, edges, and surfaces of the workpiece to be welded.
[0011] However, when a welding robot scans a workpiece in an appearance inspection, it needs a teaching program for a scan operation to scan the weld bead with a sensor. However, since the number and positions of teaching points specified in the teaching program for the scan operation are different from the number and positions of teaching points included in the teaching program for the welding operation, it is preferable to create the teaching program for each weld bead. In this way, the teaching programs for the welding operation and the scan operation may frequently be slightly corrected in the positions of the teaching points in response to changes in the workpiece (for example, individual differences (dimensional errors) for each workpiece, positional deviations in the fixed positions of the workpiece, changes in the machining accuracy of the workpiece due to lot switching, etc.). However, every time such a slight correction occurs, the operator must update the teaching programs for the welding operation and the scan operation that have already been created, and therefore, it is very time-consuming to manage the teaching programs for the welding operation and the scan operation.
[0012] In the following embodiments, an offline teaching device and an offline teaching method that improve the efficiency of creating a teaching program for a welding operation or a scanning operation performed by a welding robot will be described.
[0013] Hereinafter, with reference to the drawings as appropriate, an embodiment specifically disclosing the offline teaching device and the offline teaching method according to the present disclosure will be described in detail. However, more detailed explanation than necessary may be omitted. For example, detailed explanation of already well-known matters or duplicate explanation of substantially the same configuration may be omitted. This is to avoid the following explanation becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. Note that the attached drawings and the following description are provided to enable those skilled in the art to fully understand the present disclosure, and are not intended to limit the subject matter described in the claims.
[0014] Hereinafter, the object to be welded (e.g., metal) is defined as the "original workpiece," and the object produced (manufactured) by the main welding is defined as the "workpiece." The "workpiece" is not limited to a workpiece produced by one main welding, but may be a composite workpiece produced by two or more main welding operations. In addition, the process of producing a workpiece by joining an original workpiece to another original workpiece by a welding robot is defined as "main welding."
[0015] (Welding system configuration) FIG. 1 is a schematic diagram showing an example of the system configuration of a welding system 100. The welding system 100 includes a higher-level device 1 connected to an external storage ST, an input interface UI1, and a monitor MN1, a robot control device 2, an inspection control device 3, a sensor 4, an offline teaching device 5, a monitor MN3, an input device UI3, a welding robot MC1, and a monitor MN2. The teach pendant TP is not an essential component and may be omitted. In FIG. 1, the sensor 4 is illustrated as being separate from the welding robot MC1, but may be provided integrally with the welding robot MC1 (see FIG. 2). The monitor MN2 is not an essential component and may be omitted.
[0016] The higher-level device 1 centrally controls the start and completion of main welding performed by the welding robot MC1 via the robot controller 2. For example, the higher-level device 1 reads out welding-related information that has been input or set in advance by a user (e.g., a welding operator or a system administrator; the same applies below) from the external storage ST, and uses the welding-related information to generate a main welding execution command including the contents of the welding-related information and transmits it to the corresponding robot controller 2. When the main welding by the welding robot MC1 is completed, the higher-level device 1 receives a main welding completion report from the robot controller 2 indicating that the main welding by the welding robot MC1 has been completed, updates the status to indicate that the corresponding main welding has been completed, and records it in the external storage ST.
[0017] The execution command for main welding described above is not limited to being generated by the higher-level device 1, but may be generated by, for example, an operation panel (e.g., a PLC: Programmable Logic Controller) of equipment in a factory or the like where main welding is performed, or an operation panel (e.g., a teach pendant TP) of the robot control device 2. The teach pendant TP is a device for operating the welding robot MC1 connected to the robot control device 2.
[0018] Furthermore, the higher-level device 1 comprehensively controls the start and completion of a bead appearance inspection using the robot control device 2, the inspection control device 3, and the sensor 4. For example, when the higher-level device 1 receives a report of the completion of main welding from the robot control device 2, it generates an execution command for a bead appearance inspection of the workpiece produced by the welding robot MC1 and transmits the command to each of the robot control device 2 and the inspection control device 3. When the bead appearance inspection is completed, the higher-level device 1 receives an appearance inspection report indicating that the bead appearance inspection has been completed from the inspection control device 3, updates the status to indicate that the corresponding bead appearance inspection has been completed, and records the report in the external storage ST.
[0019] Here, the welding-related information is information indicating the contents of the main welding performed by the welding robot MC1, and is created in advance for each process of the main welding and registered in the external storage ST. The welding-related information includes, for example, the number of original workpieces used in the main welding, the ID of the original workpiece used in the main welding, the lot information of the original workpiece, workpiece information including the name and welding location (for example, information on the welding line, position information of the welding line, etc.), the scheduled execution date of the main welding, the number of original workpieces produced, and various welding conditions for the main welding. Note that the welding-related information is not limited to the data of the above items, and may further include information such as each of the created teaching programs for the welding operation and the scanning operation (see below), the welding operation setting information used in creating these teaching programs, and the scanning operation setting information.
[0020] The welding conditions include, for example, the material and thickness of the original workpiece, the material and wire diameter of the welding wire 301, the type of shielding gas, the flow rate of the shielding gas, the set average welding current, the set average welding voltage, the feed speed and feed amount of the welding wire 301, the number of welds, the welding time, etc. In addition to these, the welding conditions may include, for example, information indicating the type of main welding (e.g., TIG welding, MAG welding, pulse welding), the moving speed and moving time of the manipulator 200, etc.
[0021] Based on the execution command for main welding transmitted from the higher-level device 1, the robot control device 2 causes the welding robot MC1 to start the execution of main welding using the original workpiece specified in the execution command. The above-mentioned welding-related information is not limited to being managed by the higher-level device 1 with reference to the external storage ST, and may be managed, for example, in the robot control device 2. In this case, since the robot control device 2 can grasp the state in which the main welding has been completed, the actual execution date may be managed instead of the scheduled execution date on which the welding process is scheduled to be executed among the welding-related information. Note that, although the type of main welding does not matter in this specification, in order to make the explanation easier to understand, a process of joining multiple original workpieces to produce one workpiece will be described as an example.
[0022] The higher-level device 1 is connected to the monitor MN1, the input interface UI1, and the external storage ST so as to enable input and output of data therebetween, and is further connected to the robot control device 2 so as to enable data communication therebetween. The higher-level device 1 may be a terminal device P1 that integrally includes the monitor MN1 and the input interface UI1, and may further integrally include the external storage ST. In this case, the terminal device P1 is a PC (Personal Computer) that is used by a user prior to the execution of the actual welding. The terminal device P1 is not limited to the above-mentioned PC, and may be a computer device having a communication function, such as a smartphone or a tablet terminal.
[0023] The monitor MN1 may be configured using a display device such as an LCD (Liquid Crystal Display) or an organic EL (Electroluminescence). The monitor MN1 may display a screen showing a notification that the main welding has been completed or a notification that the bead appearance inspection has been completed, output from the higher-level device 1. Also, instead of or together with the monitor MN1, a speaker (not shown) may be connected to the higher-level device 1, and the higher-level device 1 may output a voice message via the speaker indicating that the main welding has been completed or that the bead appearance inspection has been completed.
[0024] The input interface UI1 is a user interface that detects an input operation by a user and outputs the input operation to the higher-level device 1, and may be configured using, for example, a mouse, a keyboard, a touch panel, etc. The input interface UI1 accepts, for example, an input operation when the user creates welding-related information, or an input operation when the user transmits an execution command for main welding to the robot control device 2.
[0025] The external storage ST is configured using, for example, a hard disk drive or a solid state drive. The external storage ST stores, for example, data of welding-related information created for each main welding, the status (production status) of the workpiece Wk produced by the main welding, and workpiece information of the workpiece Wk (see above). The external storage ST may store, for each weld line, a teaching program for the welding operation and a teaching program for the scanning operation created by the offline teaching device 5. The teaching programs for the welding operation and the scanning operation will be described later.
[0026] The robot control device 2 is connected to the higher-level device 1, the inspection control device 3, and the offline teaching device 5 so that data can be communicated therewith, and is also connected to the welding robot MC1 so that data can be communicated therewith. When the robot control device 2 receives an execution command for main welding transmitted from the higher-level device 1, it creates a main welding program based on a teaching program for a welding operation corresponding to the execution command, and controls the welding robot MC1 to execute the main welding. When the robot control device 2 detects the completion of the main welding, it generates a main welding completion report indicating that the main welding has been completed, and notifies the higher-level device 1. This allows the higher-level device 1 to properly detect the completion of the main welding by the robot control device 2. The method of detecting the completion of the main welding by the robot control device 2 may be, for example, a method of determining based on a signal indicating the completion of the main welding from a sensor (not shown) provided in the wire feeder 300, or may be a known method, and the content of the method of detecting the completion of the main welding may not be limited.
[0027] Furthermore, when the robot control device 2 receives an execution command for a bead visual inspection transmitted from the higher-level device 1, it controls a welding robot MC1 (see FIG. 2) equipped with a sensor 4 based on a teaching program for a scanning operation corresponding to the execution command, and executes a visual inspection of the weld bead formed on the workpiece Wk. Note that a visual inspection report indicating that the bead visual inspection has been completed is transmitted from the inspection control device 3 to the higher-level device 1, but it may also be transmitted to the higher-level device 1 by the robot control device 2 itself, or from the robot control device 2 receiving an instruction from the inspection control device 3. This allows the higher-level device 1 to properly detect the completion of the bead visual inspection.
[0028] In addition, when the robot control device 2 receives a command to perform a scan of the workpiece Wk sent from the higher-level device 1, it controls a welding robot MC1 (see Figure 2) equipped with a sensor 4 to perform an appearance scan to obtain the external shape of the workpiece Wk.
[0029] The welding robot MC1 is connected so as to be able to communicate data with the robot control device 2. The welding robot MC1 performs main welding as instructed by the higher-level device 1 under the control of the corresponding robot control device 2. The welding robot MC1 also performs bead appearance inspection and appearance scanning as instructed by the higher-level device 1 by moving the sensor 4 based on a teaching program for the scan operation.
[0030] The inspection control device 3 is connected to the host device 1, the robot control device 2, the sensor 4, and the offline teaching device 5 so as to be able to communicate data with each other. When the inspection control device 3 receives an execution command for a bead appearance inspection transmitted from the host device 1, it executes a bead appearance inspection (e.g., an inspection as to whether or not the weld bead formed on the workpiece satisfies a predefined welding standard) of the welded portion (i.e., the weld bead) of the workpiece Wk produced by the welding robot MC1 together with the sensor 4 in accordance with a teaching program for the scanning operation of the corresponding workpiece Wk. The inspection control device 3 performs a bead appearance inspection based on a comparison with master data of a good workpiece predefined for each workpiece using input data (e.g., point cloud data capable of identifying the three-dimensional shape of the weld bead) regarding the shape of the weld bead acquired by the sensor 4 as a result of the scanning operation.
[0031] The inspection control device 3 performs a bead visual inspection, generates a visual inspection report including the inspection judgment result of this bead visual inspection and a notice that the bead visual inspection has been completed, transmits it to the higher-level device 1, and outputs it to the monitor MN2. If the inspection control device 3 judges that a defect has been detected in the bead visual inspection of the workpiece, it generates a visual inspection report including the visual inspection result including information on the defective section for repair welding the defect, and transmits it to the higher-level device 1 and the robot control device 2. If the inspection control device 3 judges that a defect has been detected in the bead visual inspection of the workpiece, it creates a repair welding program for making corrections such as repairing the defective part, using the visual inspection result including information on the defective section. The inspection control device 3 transmits this repair welding program and the visual inspection result in association with each other to the higher-level device 1 or the robot control device 2.
[0032] Furthermore, the inspection control device 3 scans the appearance of the workpiece Wk based on an execution command for an appearance scan to scan the workpiece Wk transmitted via the higher-level device 1, the offline teaching device 5, or the robot control device 2. The inspection control device 3 transmits input data relating to the shape of the workpiece Wk acquired by the sensor 4 as a result of the appearance scan (for example, point cloud data capable of identifying the three-dimensional shape of the workpiece Wk) to the offline teaching device 5. Note that the inspection control device 3 may convert the shape of the workpiece Wk into a data format capable of being detected by the offline teaching device 5, and transmit the converted input data relating to the shape of the workpiece Wk to the offline teaching device 5.
[0033] The sensor 4 is connected so as to be able to communicate data with the inspection control device 3. The sensor 4 is attached to the welding robot MC1, and executes a three-dimensional scan of the workpiece Wk or the stage STG (see FIG. 2) on which the workpiece Wk is placed, in response to the driving of the manipulator 200 under the control of the robot control device 2. The sensor 4 acquires three-dimensional shape data of the workpiece Wk placed on the stage STG, or three-dimensional shape data (e.g., point cloud data, mesh data, etc.) that can identify the shape, size, position, etc. of the stage STG on which the workpiece Wk is placed, in response to the driving of the manipulator 200 under the control of the robot control device 2, and transmits the data to the inspection control device 3.
[0034] The monitor MN2 may be configured using a display device such as an LCD or an organic EL. The monitor MN2 displays, for example, a screen output from the inspection control device 3, which indicates a notification that the bead visual inspection has been completed, or the notification and the results of the bead visual inspection. Also, instead of or together with the monitor MN2, a speaker (not shown) may be connected to the inspection control device 3, and the inspection control device 3 may output, via the speaker, a notification that the visual inspection has been completed, or a sound indicating the contents of the notification and the results of the bead visual inspection.
[0035] The offline teaching device 5 is connected to the robot control device 2, the inspection control device 3, the monitor MN3, and the input device UI3 so as to be able to communicate data with each other. The offline teaching device 5 stores, as setting information, position information of the welding line for each workpiece Wk for which a teaching program is to be created or which has already been created. The offline teaching device 5 also constructs a virtual production facility (for example, a virtual welding robot, a virtual workpiece, a virtual stage, etc.), and creates a teaching program for the welding operation of the workpiece Wk and a teaching program for the scanning operation based on control commands and various data transmitted from the input device UI3, data transmitted from the teach pendant TP via the robot control device 2, or various data output from the robot control device 2 or the inspection control device 3. The offline teaching device 5 transmits each of the created teaching programs for the welding operation and the scanning operation to the robot control device 2. The created teaching program for the scanning operation may be transmitted not only to the robot control device 2 but also to the inspection control device 3. The offline teaching device 5 also stores each of the created teaching programs for the welding operation and the scanning operation for each workpiece Wk.
[0036] The weld line position information here is information that indicates the position of the weld line formed on the workpiece Wk.
[0037] The welding operation teaching program referred to here is a program that is created based on a weld line and causes welding robot MC1 to perform the actual welding. The welding operation teaching program is created including information on the position, distance, and angle (posture) of welding torch 400 for performing various operations (e.g., approach, retract, avoidance, welding, etc.) for actual welding of workpiece Wk using welding torch 400, and information on welding conditions, etc.
[0038] The teaching program for the scan operation referred to here is a program that is created based on a weld line and causes the welding robot MC1 to perform a visual inspection of at least one weld bead created by main welding. The teaching program for the scan operation is created by including information on the position, distance, and angle (posture) of the sensor 4 for performing various operations (e.g., approach, retract, avoid, scan, etc.) for performing a visual inspection of the created weld bead using the sensor 4.
[0039] The monitor MN3 may be configured using a display device such as an LCD or an organic EL. The monitor MN3 displays an image of the virtual production equipment (e.g., a virtual welding robot, a virtual work, a virtual stage, etc.) transmitted from the offline teaching device 5, and displays the motion trajectory of the welding torch 400 based on a teaching program for welding operation, the motion trajectory of the sensor 4 based on a teaching program for scanning operation, etc. The monitor MN3 also displays an image in which the motion trajectory of the sensor 4 or the motion trajectory of the welding torch 400, etc. are superimposed on the image of the virtual production equipment transmitted from the offline teaching device 5.
[0040] The input device UI3 is a user interface that detects input operations by the user and outputs them to the higher-level device 1, and may be configured using, for example, a mouse, a keyboard, or a touch panel. The input device UI3 accepts input operations such as position information of the weld line of the workpiece Wk, welding setting information, scan setting information, and a 3D model used to create a teaching program for the scan operation and the welding operation. Note that the monitor MN3 and the input device UI3 may be integrated into a terminal device P3 (for example, a PC, a notebook PC, a tablet terminal, etc.).
[0041] The teach pendant TP is connected to the robot controller 2 so as to be able to transmit and receive data therebetween. The teach pendant TP transmits position information of the welding line defined by a user's operation using the actual welding robot MC1 and the workpiece Wk to the robot controller 2. The robot controller 2 stores the position information of the welding line transmitted from the teach pendant TP in a memory 22 (see FIG. 2 ) and transmits it to the offline teaching device 5.
[0042] Fig. 2 is a diagram showing an example of the internal configuration of an inspection control device 3, a robot control device 2, a higher-level device 1, and an offline teaching device 5 according to an embodiment. To make the explanation easier to understand, monitors MN1 and MN2 and an input interface UI1 are omitted from Fig. 2. Note that the workpiece Wk shown in Fig. 2 is a workpiece that is the subject of a bead appearance inspection. This workpiece Wk may be a workpiece produced by main welding, or may be a so-called repair workpiece that has been repaired one or more times by repair welding.
[0043] The welding robot MC1 performs a main welding process based on a teaching program for welding operation using the welding torch 400 and a bead appearance inspection process based on a teaching program for scanning operation using the sensor 4 under the control of the robot control device 2. The welding robot MC1 also performs an appearance scan of the workpiece Wk using the sensor 4 to obtain the appearance shape of the workpiece Wk used to create the teaching programs for welding operation and scanning operation. The welding robot MC1 performs, for example, arc welding in the main welding process. However, the welding robot MC1 may perform other welding methods (for example, laser welding, gas welding) other than arc welding. In this case, although not shown in the figure, a laser head may be connected to the laser oscillator via an optical fiber instead of the welding torch 400. The welding robot MC1 is configured to include at least the manipulator 200, the wire feeder 300, the welding wire 301, and the welding torch 400.
[0044] Manipulator 200 has an articulated arm, and moves each arm based on a control signal from robot control unit 24 of robot control device 2. In this way, manipulator 200 can change the positional relationship between workpiece Wk and welding torch 400 (for example, the angle of welding torch 400 with respect to workpiece Wk) and the positional relationship between workpiece Wk and sensor 4 by driving each of the arms.
[0045] Wire feeder 300 controls the feeding speed of welding wire 301 based on a control signal from robot controller 2. Wire feeder 300 may include a sensor (not shown) capable of detecting the remaining amount of welding wire 301. Robot controller 2 can detect the completion of the main welding process based on the output of this sensor.
[0046] Welding wire 301 is held by welding torch 400. When power is supplied from power supply device 500 to welding torch 400, an arc is generated between the tip of welding wire 301 and workpiece Wk, and arc welding is performed. For convenience of explanation, illustration and explanation of the configuration for supplying shielding gas to welding torch 400 are omitted.
[0047] The higher-level device 1 uses welding-related information input or set in advance by a user to generate execution commands for various processes of main welding or bead appearance inspection, and transmits the commands to the robot control device 2. As described above, when the sensor 4 is integrally attached to the welding robot MC1, the execution command for the bead appearance inspection is sent to both the robot control device 2 and the inspection control device 3. The higher-level device 1 is configured to include at least a communication unit 10, a processor 11, and a memory 12.
[0048] The communication unit 10 is connected to the robot control device 2 and the external storage ST so as to be able to communicate data with each other. The communication unit 10 transmits execution commands for various processes of main welding or bead appearance inspection generated by the processor 11 to the robot control device 2. The communication unit 10 receives a main welding completion report and an appearance inspection report sent from the robot control device 2 and outputs them to the processor 11. Note that the execution command for main welding may include, for example, control signals for controlling each of the manipulator 200, the wire feeder 300, and the power supply device 500 provided in the welding robot MC1.
[0049] The processor 11 is configured using, for example, a CPU (Central Processing Unit) or an FPGA (Field Programmable Gate Array), and performs various processes and controls in cooperation with the memory 12. Specifically, the processor 11 refers to a program stored in the memory 12 and executes the program to functionally realize the cell control unit 13.
[0050] The memory 12 has, for example, a RAM (Random Access Memory) as a work memory used when executing the processing of the processor 11, and a ROM (Read Only Memory) that stores a program that defines the processing of the processor 11. The RAM temporarily stores data generated or acquired by the processor 11. The ROM has written therein the program that defines the processing of the processor 11. The memory 12 also stores data on welding-related information read from the external storage ST, the status of the workpiece, and data on workpiece information (see below) of the workpiece transmitted from the robot control device 2.
[0051] The cell control unit 13 generates execution commands for performing main welding, bead appearance inspection of the workpiece Wk, appearance scanning of the workpiece Wk, or repair welding, based on the welding-related information stored in the external storage ST and the teaching programs for welding and scanning operations created in the offline teaching device 5 and transmitted from the robot control device 2, and creates a main welding program for main welding, an appearance inspection program for driving the welding robot MC1 for bead appearance inspection of the workpiece Wk, or an appearance scanning program for driving the welding robot MC1 for appearance scanning, based on the welding-related information stored in the external storage ST and each of the teaching programs for welding and scanning operations created in the offline teaching device 5 and transmitted from the robot control device 2. Furthermore, the cell control unit 13 creates execution commands for these created programs. Note that each of the appearance inspection program and appearance scanning program may be created in advance for each workpiece Wk and stored in the external storage ST, and in this case, the cell control unit 13 reads and acquires various programs from the external storage ST. The cell control unit 13 may generate different execution commands for each of the various processes of main welding performed by the welding robot MC1. The execution commands for the main welding visual inspection and visual scan generated by the cell control unit 13 are sent via the communication unit 10 to the corresponding robot control device 2 , or to both the robot control device 2 and the inspection control device 3 .
[0052] The robot control device 2 refers to a corresponding program based on an execution command for main welding, bead appearance inspection, or appearance scan transmitted from the higher-level device 1. The robot control device 2 controls the welding robot MC1 (e.g., the sensor 4, the manipulator 200, the wire feeder 300, and the power supply device 500) based on the referred program. The robot control device 2 is configured to include at least a communication unit 20, a processor 21, and a memory 22.
[0053] The communication unit 20 is connected to the upper device 1, the inspection control device 3, the welding robot MC1, the offline teaching device 5, and the teach pendant TP so that data can be communicated between them. Although the illustration is simplified in FIG. 2, data is transmitted and received between the robot control unit 24 and the manipulator 200, between the robot control unit 24 and the wire feeder 300, and between the power supply control unit 25 and the power supply device 500 via the communication unit 20. The communication unit 20 receives a command to perform the main welding or bead appearance inspection transmitted from the upper device 1. The communication unit 20 receives the position information of the weld line, the teaching program for the welding operation, and the teaching program for the scanning operation transmitted from the offline teaching device 5. The communication unit 20 transmits work information of the work produced by the main welding to the upper device 1.
[0054] Here, the work information includes not only the ID of the work, but also at least the ID, name, and welding location of the original work used for the main welding, and the welding conditions when the main welding was performed.
[0055] Processor 21 is configured using, for example, a CPU or FPGA, and performs various processes and controls in cooperation with memory 22. Specifically, processor 21 refers to a program stored in memory 22 and executes the program to functionally realize actual welding program creation unit 23, robot control unit 24, and power supply control unit 25. Processor 21 also performs calculations of parameters for controlling welding robot MC1 (specifically, manipulator 200, wire feeder 300, and power supply unit 500) controlled by robot control unit 24, based on the actual welding program generated by actual welding program creation unit 23.
[0056] The memory 22 has, for example, a RAM as a work memory used when executing the processing of the processor 21, and a ROM that stores a program that defines the processing of the processor 21. The RAM temporarily stores data generated or acquired by the processor 21. The ROM has a program that defines the processing of the processor 21 written therein. The memory 22 also stores data of commands to perform main welding, bead appearance inspection, or appearance scanning transmitted from the upper device 1, welding-related information that associates work information of the work Wk produced by main welding with position information of the weld line, position information of the weld line transmitted from the teach pendant TP, and the like. Note that the welding-related information including the work information of the work Wk to which the teaching programs for the welding operation and the scan operation have been transmitted from the offline teaching device 5 may include the teaching programs for the welding operation and the scan operation, position information of the weld line used in creating the teaching programs for the welding operation and the scan operation, welding operation setting information, and scan operation setting information.
[0057] Based on an execution command for main welding transmitted from upper device 1 via communication unit 20, main welding program creation unit 23 creates a main welding program for main welding to be performed by welding robot MC1 using work information (e.g., work ID, name, work coordinate system, information on main work, position information on welding line, etc.) of each of a plurality of original workpieces included in the execution command and a teaching program for welding operation associated with the work information. The main welding program may include various parameters such as welding current, welding voltage, offset amount, welding speed, and attitude of welding torch 400 for controlling power supply device 500, manipulator 200, wire feeder 300, welding torch 400, etc. during the execution of main welding. The main welding program may be stored in processor 21 or in RAM in memory 22.
[0058] Robot control unit 24 generates control signals for driving welding robot MC1 (specifically, sensor 4, manipulator 200, wire feeder 300, and power supply unit 500) based on the main welding program generated by main welding program creation unit 23. Robot control unit 24 transmits the generated control signals to welding robot MC1.
[0059] Furthermore, robot control unit 24 drives manipulator 200 and sensor 4 of welding robot MC1 based on a teaching program for the scanning operation (i.e., a program for visual inspection) transmitted from offline teaching device 5. As a result, sensor 4 attached to welding robot MC1 moves in conjunction with the operation of welding robot MC1 and can obtain input data regarding the shape of the weld bead (e.g., point cloud data capable of identifying the three-dimensional shape of the weld bead) by scanning the weld bead of workpiece Wk, and can obtain input data regarding the shape of workpiece Wk (e.g., point cloud data capable of identifying the three-dimensional shape of the workpiece Wk) by scanning the workpiece Wk.
[0060] Power supply control unit 25 drives power supply device 500 based on the calculation results of the main welding program generated by main welding program generation unit 23.
[0061] The inspection control device 3 controls the bead appearance inspection and appearance scan processes of the workpiece Wk produced by main welding by the welding robot MC1 or the workpiece Wk repaired by one or more repair weldings based on an execution command of the bead appearance inspection transmitted from the upper device 1. The bead appearance inspection is, for example, an inspection of whether or not the weld bead formed on the workpiece Wk satisfies a predetermined welding standard (for example, a welding quality standard required by each user), and is configured by the above-mentioned inspection judgment. The inspection control device 3 judges (inspects) whether or not the appearance shape of the weld bead formed on the workpiece Wk satisfies a predetermined welding standard based on input data regarding the shape of the weld bead acquired by the sensor 4 (for example, point cloud data capable of identifying the three-dimensional shape of the weld bead). In addition, the inspection control device 3 transmits the input data regarding the shape of the weld bead acquired by the sensor 4 or the input data regarding the shape of the workpiece Wk to the offline teaching device 5. The inspection control device 3 is configured to include at least a communication unit 30, a processor 31, a memory 32, and an inspection result storage unit 33.
[0062] The communication unit 30 is connected to enable data communication between the host device 1, the robot control device 2, the sensor 4, and the offline teaching device 5. Although the illustration is simplified in FIG. 2, data is transmitted and received between the shape detection control unit 35 and the sensor 4 via the communication unit 30. The communication unit 30 receives an execution command for a bead appearance inspection transmitted from the host device 1. The communication unit 30 transmits the inspection judgment result of the bead appearance inspection using the sensor 4 to the host device 1, and transmits data of the three-dimensional shape of the weld bead acquired by the sensor 4 to the offline teaching device 5.
[0063] Processor 31 is configured using, for example, a CPU or FPGA, and performs various processes and controls in cooperation with memory 32. Specifically, processor 31 refers to a program stored in memory 32 and executes the program to functionally realize a determination threshold storage unit 34, a shape detection control unit 35, a data processing unit 36, an inspection result determination unit 37, and a repair welding program creation unit 38.
[0064] The memory 32 has, for example, a RAM as a work memory used when executing the processing of the processor 31, and a ROM for storing a program that defines the processing of the processor 31. The RAM temporarily stores data generated or acquired by the processor 31. The ROM has written therein the program that defines the processing of the processor 31. The memory 32 may also store the teaching program for the scan operation transmitted from the offline teaching device 5 in association with workpiece information.
[0065] The inspection result storage unit 33 is configured using, for example, a hard disk or a solid state drive. The inspection result storage unit 33 stores data indicating the results of a bead appearance inspection of a welded portion of the workpiece Wk (for example, a workpiece or a repair workpiece) as an example of data generated or acquired by the processor 31. The data indicating the results of this bead appearance inspection is generated, for example, by the inspection result determination unit 37 (specifically, any one of the first inspection determination unit 371, the second inspection determination unit 372 to the Nth inspection determination unit 37N included in the inspection result determination unit 37).
[0066] The judgment threshold storage unit 34 is configured, for example, by a cache memory provided in the processor 31, and is set in advance by a user operation to store information on the welding location and each threshold (for example, each threshold set for each type of welding defect) corresponding to the processing of each bead appearance inspection by the first inspection judgment unit 371, ..., Nth inspection judgment unit 37N included in the inspection result judgment unit 37. Each threshold is, for example, a permissible range of the positional deviation of the weld bead, each threshold of the length, height, and width of the weld bead, and each threshold of perforation, pits, undercut, and spatter. The judgment threshold storage unit 34 may store an allowable range (for example, a minimum allowable value, a maximum allowable value, etc.) that satisfies the minimum welding standard (quality) required by a customer or the like as each threshold for the bead appearance inspection after repair welding. Note that these thresholds are used in the processing to determine whether or not the inspection results created by each of the first inspection judgment unit 371, the second inspection judgment unit 372 to the Nth inspection judgment unit 37N included in the inspection result judgment unit 37 pass the bead appearance inspection. Furthermore, the judgment threshold storage unit 34 may store an upper limit value of the number of bead appearance inspections for each welding point. In this way, when the number of times exceeds a predetermined upper limit value when repairing a defective point by repair welding, the inspection control device 3 judges that it is difficult or impossible for the welding robot MC1 to repair the defective point by automatic repair welding, and thus it is possible to suppress a decrease in the operation rate of the welding system 100.
[0067] The shape detection control unit 35 acquires input data (e.g., point cloud data capable of identifying the three-dimensional shape of the weld bead) acquired by the sensor 4 and transmitted based on an execution command for bead appearance inspection of the welded portion of the workpiece Wk (e.g., workpiece) transmitted from the upper device 1. The shape detection control unit 35 also acquires input data (e.g., point cloud data capable of identifying the three-dimensional shape of the workpiece Wk) acquired by the sensor 4 and transmitted based on an execution command for appearance scanning of the workpiece Wk (e.g., workpiece) transmitted from the upper device 1. Specifically, when the sensor 4 reaches a position where it can image the weld bead or the workpiece Wk (in other words, it can detect the three-dimensional shape of the welded portion or the workpiece Wk) in response to the driving of the manipulator 200 by the robot control unit 2 described above, the shape detection control unit 35 causes the sensor 4 to irradiate, for example, a laser beam to acquire input data regarding the shape of the weld bead or the workpiece Wk. When the shape detection control unit 35 receives the input data acquired by the sensor 4 (see above), it passes the input data to the data processing unit 36.
[0068] When data processing unit 36 acquires input data (see above) on the shape of the weld bead from shape detection control unit 35, data processing unit 36 converts the data into a data format suitable for the first inspection judgment in inspection result judgment unit 37, and also converts the data into a data format suitable for each of the second inspection judgment, ..., Nth inspection judgment in inspection result judgment unit 37. The conversion of the data format may include a correction process for removing unnecessary point cloud data (e.g., noise) included in the input data (i.e., point cloud data) as a so-called preprocessing, and the above-mentioned preprocessing may be omitted for the first inspection judgment. Data processing unit 36 generates image data showing the three-dimensional shape of the weld bead by making the data format suitable for the first inspection judgment and performing, for example, statistical processing on the input shape data. Note that data processing unit 36 may perform edge emphasis correction for emphasizing the peripheral portion of the weld bead in order to emphasize the position and shape of the weld bead, as data for the first inspection judgment. The data processing unit 36 may count the number of times bead visual inspection is performed for each defective weld location, and if the welding inspection result is not good even when the number of bead visual inspections exceeds the number stored in advance in the memory 32, it may determine that it is difficult or impossible to correct the defective weld location by automatic repair welding. In this case, the inspection result determination unit 37 generates an alert screen including the position of the defective weld location and the type of defective weld (e.g., hole, pit, undercut, spatter, protrusion), and transmits the generated alert screen to the higher-level device 1 via the communication unit 30. The alert screen transmitted to the higher-level device 1 is displayed on the monitor MN1. This alert screen may also be displayed on the monitor MN2.
[0069] The data processing unit 36 performs a bead appearance inspection based on a comparison between the input data on the shape of the weld bead acquired by the sensor 4 and the master data of a non-defective workpiece predefined for each workpiece, using a threshold value for the bead appearance inspection stored in the judgment threshold storage unit 34. The data processing unit 36 creates an appearance inspection report including a defect judgment result (i.e., information indicating the presence or absence of a defect requiring repair welding) as an inspection judgment result and information on a defective section for each defective portion, stores the report in the inspection result storage unit 33, and transmits the report to the upper device 1 or the robot control device 2 via the communication unit 30. When the data processing unit 36 judges that the workpiece Wk to be inspected does not have a defective portion requiring repair welding, it creates an appearance inspection report including an inspection judgment result indicating that the bead appearance inspection has been passed, stores the report in the inspection result storage unit 33, and transmits the report to the upper device 1 via the communication unit 30.
[0070] Furthermore, when the data processing unit 36 acquires input data (see above) relating to the shape of the workpiece Wk from the shape detection control unit 35, it converts the data into a data format suitable for the calculation process executed by the offline teaching device 5. The conversion of the data format may include a correction process, as a so-called preprocessing, in which unnecessary point cloud data (e.g., noise) contained in the input data (i.e., point cloud data) is removed, or a process for generating a 3D model of the workpiece Wk. The data processing unit 36 may also perform edge emphasis correction to emphasize the position and shape of the workpiece Wk and to emphasize the peripheral portion of the workpiece Wk. The data processing unit 36 transmits the converted input data relating to the shape of the workpiece Wk to the offline teaching device 5 via the communication unit 30.
[0071] The inspection result determination unit 37 can perform a total of N (N: an integer of 2 or more) types of bead appearance inspection (for example, each of the first inspection and second inspection judgments described above). Specifically, the inspection result determination unit 37 has a first inspection and judgment unit 371, a second inspection and judgment unit 372 to an Nth inspection and judgment unit 37N. To simplify the explanation of FIG. 2, the explanation will be given assuming N=2, but the same applies when N=an integer of 3 or more.
[0072] The first inspection and judgment unit 371 performs a first inspection and judgment (i.e., a bead appearance inspection based on a comparison between input data on the shape of the weld bead acquired by the sensor 4 and master data of a good workpiece that is predefined for each workpiece) to inspect the shape reliability of the weld bead (for example, whether it follows a straight or curved weld line), bead chipping, and bead position deviation. The first inspection and judgment unit 371 performs a comparison (so-called image processing) between data converted by the data processing unit 36 for the first inspection and judgment (for example, image data generated based on point cloud data) and the master data of the good workpiece. Therefore, the first inspection and judgment unit 371 can inspect the shape reliability of the weld bead, bead chipping, and bead position deviation with high accuracy. The first inspection and judgment unit 371 calculates an inspection score indicating the inspection results of the shape reliability of the weld bead, bead chipping, and bead position deviation, and creates the calculated value of this inspection score as the first inspection result. Furthermore, the first inspection and judgment unit 371 compares the created first inspection result with a threshold value for the first inspection result stored in the memory 32. The first inspection and judgment unit 371 outputs the first inspection result, including information on the comparison result (i.e., whether the acquired first inspection result passes or fails the bead appearance inspection), to the overall judgment unit 370 or the second inspection and judgment unit 372 to the Nth inspection and judgment unit 37N.
[0073] Second inspection and judgment unit 372 to Nth inspection and judgment unit 37N perform second inspection and judgment (i.e., each forms a neural network using k=(N-1) types of artificial intelligence and performs a bead appearance inspection based on AI to determine the presence or absence of welding defects on input data related to the shape of the weld bead acquired by sensor 4 or the input data after the input data has been preprocessed by data processing unit 36) to inspect the presence or absence of holes, pits, undercuts, spatters, and protrusions in the weld bead. Holes, pits, undercuts, spatters, and protrusions in the weld bead are merely listed as examples, and the defect types inspected by Nth inspection and judgment unit 37N are not limited to these. When second inspection and judgment unit 372 to Nth inspection and judgment unit 37N each judges that a corresponding type of welding defect has been detected, it identifies the position of the weld bead where the welding defect was detected. Each of the second inspection and judgment unit 372 to the Nth inspection and judgment unit 37N judges the presence or absence of each welding defect using a learning model (AI) obtained in advance by a learning process for each type of welding defect or for each group of types of welding defects. This allows each of the second inspection and judgment unit 372 to the Nth inspection and judgment unit 37N to highly accurately inspect the presence or absence of holes, pits, undercuts, spatters, and protrusions in the weld bead. Note that each of the second inspection and judgment unit 372 to the Nth inspection and judgment unit 37N does not inspect the shape reliability of the weld bead, bead chipping, and bead position deviation performed by the first inspection and judgment unit 371. The second inspection and judgment unit 372 to the Nth inspection and judgment unit 37N calculates the inspection results (in other words, inspection scores indicating the occurrence probability) of holes, pits, undercuts, spatters, and protrusions in the weld bead, and creates the calculated value of the inspection score as the second inspection and judgment result.
[0074] The inspection result determination unit 37 may determine whether or not repair welding is possible by the welding robot MC1 (in other words, whether repair welding by the welding robot MC1 or manual repair welding is preferable) based on the inspection result (inspection score) included in the above-mentioned first inspection result or second inspection result, and may output the determination result by including it in the above-mentioned visual inspection report.
[0075] The repair welding program creation unit 38 creates a repair welding program for the workpiece Wk to be executed by the welding robot MC1, using the visual inspection report of the workpiece Wk by the data processing unit 36. The repair welding program may include various parameters, such as the welding current, welding voltage, offset amount, welding speed, and attitude of the welding torch 400, for controlling the power supply device 500, the manipulator 200, the wire feeder 300, the welding torch 400, and the like, during the execution of repair welding. The created repair welding program may be stored in the processor 31, or may be stored in the RAM in the memory 32, or may be sent to the upper device 1 or the robot control device 2 via the communication unit 30 in association with the visual inspection report.
[0076] Repair welding program creation unit 38 creates a repair welding program for workpiece Wk (e.g., workpiece or repair workpiece) to be performed by welding robot MC1, using the appearance inspection report of workpiece Wk (e.g., workpiece or repair workpiece) by inspection result determination unit 37 and workpiece information (e.g., information such as coordinates indicating the position of a detection point of a welding defect in the workpiece or repair workpiece). The repair welding program may include various parameters such as welding current, welding voltage, offset amount, welding speed, and attitude of welding torch 400 for controlling power supply device 500, manipulator 200, wire feeder 300, welding torch 400, etc. during repair welding. The created repair welding program may be stored in processor 31 or in RAM in memory 32.
[0077] The sensor 4 is, for example, a three-dimensional shape sensor, and is attached to the tip of the welding robot MC1 to acquire a plurality of point cloud data that can specify the shape of the workpiece Wk or the welded portion on the workpiece Wk. The sensor 4 generates point cloud data that can specify the three-dimensional shape of the welded portion based on the acquired point cloud data, and transmits the point cloud data to the inspection control device 3. In addition, when the sensor 4 is not attached to the tip of the welding robot MC1 and is arranged separately from the welding robot MC1, it may be composed of a laser light source (not shown) configured to be able to scan the workpiece Wk or the welded portion on the workpiece Wk (for example, a workpiece or a repair workpiece) based on the position information of the workpiece Wk or the welded portion transmitted from the inspection control device 3, and a camera (not shown) that is arranged to be able to image an imaging area including the periphery of the workpiece Wk or the welded portion and captures the reflection trajectory of the laser light reflected from the laser light irradiated to the workpiece Wk or the welded portion (i.e., the shape line of the welded portion). In this case, the sensor 4 transmits to the inspection control device 3 shape data of the workpiece Wk or the welded portion based on the laser light imaged by the camera (in other words, image data of the workpiece Wk or the welded bead). The camera described above is configured to have at least a lens (not shown) and an image sensor (not shown). The image sensor is a solid-state imaging element such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor), and converts an optical image formed on an imaging surface into an electrical signal.
[0078] The offline teaching device 5 is connected to the robot control device 2, the inspection control device 3, the monitor MN3, and the input device UI3 so as to be able to perform data communication between them. The offline teaching device 5 creates a teaching program for the welding operation and a teaching program for the scanning operation of the workpiece Wk based on various data such as welding line position information, welding operation setting information, and scanning operation setting information transmitted from the input device UI3, or welding line position information transmitted from the teach pendant TP via the robot control device 2. The offline teaching device 5 includes a communication unit 50, a processor 51, a memory 52, and an input / output unit 53.
[0079] The communication unit 50 is connected to the robot control device 2, the inspection control device 3, the input device UI3, and the monitor MN3 so as to be able to communicate data with each other. The communication unit 50 associates the created teaching programs for the welding operation and the scanning operation with various data used in creating the teaching programs for the welding operation and the scanning operation (e.g., position information of the welding line, welding operation setting information, scanning operation setting information, work information of the workpiece Wk, etc.), and transmits them to the robot control device 2.
[0080] The processor 51 is configured using, for example, a CPU or an FPGA, and performs various processes and controls in cooperation with the memory 52. Specifically, the processor 51 refers to a program stored in the memory 52 and executes the program to functionally realize a 3D calculation unit 54 and a program creation unit 55.
[0081] Memory 52 has, for example, a RAM as a work memory used when executing the processing of processor 51, and a ROM for storing a program that defines the processing of processor 51. Data generated or acquired by processor 51 is temporarily stored in the RAM. The program that defines the processing of processor 51 is written in the ROM. Memory 52 also stores a teaching program for welding operation and a teaching program for scanning operation created by program creation unit 55, in association with workpiece information.
[0082] The input / output unit 53 acquires the execution command, the 3D model of the workpiece Wk, the welding operation setting information, and the scanning operation setting information transmitted from the input device UI3, and the position information of the welding line transmitted from the inspection control device 3, the input device UI3, or the robot control device 2, and outputs them to the processor 51. The input / output unit 53 also transmits to the monitor MN3 an image of the virtual production equipment (e.g., a virtual welding robot, a virtual workpiece, a virtual stage, etc.) generated by the 3D calculation unit 54, and an image of the virtual production equipment transmitted from the offline teaching device 5 on which the motion trajectory of the sensor 4 or the motion trajectory of the welding torch 400, etc. are superimposed.
[0083] 3D calculation unit 54 virtually configures production equipment required to execute each of the main welding process and the appearance inspection process of workpiece Wk, based on, for example, input data relating to the shape of the workpiece Wk or the weld bead (i.e., data of the three-dimensional shape), 3D model data of workpiece Wk, work information of workpiece Wk, data relating to the production equipment (for example, position information of stage STG, robot information or position information of welding robot MC1), etc. 3D calculation unit 54 converts the data of the virtually configured production equipment into image data, outputs it to input / output unit 53, and displays it on monitor MN3.
[0084] The 3D calculation unit 54 generates image data in which one or more teaching points included in the teaching program for the welding operation created by the program creation unit, the motion trajectory of the welding torch 400 (specifically, the free running section, the welding section, etc.), etc. are virtually superimposed on the production equipment. The 3D calculation unit 54 generates image data in which one or more teaching points included in the teaching program for the scanning operation created by the program creation unit, the motion trajectory of the sensor 4 (specifically, the free running section, the scanning section, etc.), etc. are virtually superimposed on the production equipment. The 3D calculation unit 54 converts the data of the virtual production equipment on which the data included in the various teaching programs are superimposed into image data, outputs it to the input / output unit 53, and displays it on the monitor MN3. The 3D calculation unit 54 may generate image data in which the teaching points of the welding operation and the scanning operation, the motion trajectories of the welding torch 400 and the sensor 4 (specifically, the free running section, the welding section, the scanning section, etc.), etc. are collectively superimposed on the virtual production equipment based on the teaching programs for the welding operation and the scanning operation, respectively.
[0085] Program creation unit 55 creates a teaching program for the welding operation and a teaching program for the scanning operation based on position information of the welding line (for example, data on the 3D model of the workpiece Wk, input data related to the shape of the workpiece Wk or the weld bead, and coordinate information for each of the start point and end point of the welding line), welding operation setting information, and scanning operation setting information. Program creation unit 55 is configured to include a welding operation creation unit 551 and a scanning operation creation unit 552.
[0086] The welding operation creation unit 551 creates a teaching program for welding operations for performing the main welding process on the workpiece Wk based on the inputted position information of the weld line and the welding operation setting information. The teaching program for welding operations is created based on the workpiece coordinate system ΣWk on the workpiece Wk described later. This allows the welding system 100 to create a new teaching program for welding operations more efficiently based on the change in the relative position between the workpiece Wk and the welding robot MC1 even if the production equipment is reconfigured, relocated, or expanded. The welding operation setting information referred to here may be a group of various parameters necessary for welding operations such as various welding conditions for main welding, and the retraction positions of the welding torch 400 before and after welding.
[0087] The scan operation creation unit 552 creates a teaching program for a scan operation for performing an appearance inspection process of a weld bead generated on the workpiece Wk based on the input position information of the weld line and the scan operation setting information. The teaching program for the scan operation is created based on a workpiece coordinate system ΣWk on the workpiece Wk, which will be described later. This allows the welding system 100 to more efficiently create a teaching program for a new scan operation based on a change in the relative position between the workpiece Wk and the welding robot MC1, even if the production equipment is reconfigured, relocated, or expanded. The scan operation setting information referred to here may be a group of various parameters required for the scan operation of the weld bead, such as the distance between the sensor 4 and the workpiece Wk, the measurement range, and the scan run-up area.
[0088] Next, the coordinate system of the welding robot MC1 (welding robot coordinate system ΣW) and the coordinate system of the workpiece Wk (workpiece coordinate system ΣWk) will be described with reference to Fig. 3. Fig. 3 is a diagram for explaining the welding robot coordinate system ΣW and the workpiece coordinate system ΣWk. Fig. 4 is a diagram for explaining the workpiece coordinate system ΣWk.
[0089] The relative positional relationship between the welding robot MC1 and the workpiece Wk is defined using a workpiece coordinate system ΣWk set for the workpiece Wk. The welding robot coordinate system ΣW shown in Fig. 3 is the coordinate system of the welding robot MC1. The workpiece coordinate system ΣWk shown in Fig. 3 is the coordinate system of the workpiece Wk centered on the coordinates of the reference point PS0 on the stage STG. Information on the workpiece coordinate system ΣWk is stored as part of the workpiece information.
[0090] Note that the coordinate system may be any system capable of identifying the position of the workpiece Wk as viewed from the welding robot MC1. For example, instead of the workpiece coordinate system ΣWk, a coordinate system may be set on the stage STG on which the workpiece Wk is placed. In such a case, the positional relationship of the workpiece Wk as viewed from the welding robot MC1 is calculated based on the welding robot coordinate system ΣW and the coordinate system (not shown) of the stage STG. It goes without saying that the welding robot coordinate system ΣW and the workpiece coordinate system ΣWk shown in FIG. 3 are merely examples and are not intended to be limiting.
[0091] Next, a procedure for initially setting a teaching program for each of the welding operation and the scanning operation in the embodiment will be described with reference to Fig. 5 and Fig. 6. Fig. 5 is a flow chart showing an initial setting procedure for a teaching program for each of the welding operation and the scanning operation by the offline teaching device 5 in the embodiment. Fig. 6 is a diagram for explaining various data input to the offline teaching device 5.
[0092] The offline teaching device 5 executes initial settings of a teaching program for a welding operation for producing the workpiece Wk and a teaching program for a scanning operation for performing a visual inspection of the generated weld bead, based on an execution command transmitted from the higher-level device 1. The offline teaching device 5 acquires data relating to the weld line of the workpiece Wk, based on data transmitted from either the robot control device 2, the inspection control device 3, or the input device UI3 (St1).
[0093] Specifically, in the process of step St1, the offline teaching device 5 accepts input of 3D data of the workpiece Wk including position information of the weld lines WLM1 and WLM2 as data related to the weld lines (for example, data of the 3D model MD1 shown in FIG. 6) based on a user operation transmitted from the input device UI3 (St1A), and imports the 3D model input to the processor 51 (St2A). Here, the 3D model MD1 may be input data related to the shape of the workpiece Wk or the weld bead transmitted from the inspection control device 3. Note that, in the 3D model MD1 shown in FIG. 6, an example is shown including position information of each of the multiple weld lines WLM1 and WLM2, but it goes without saying that the number of weld lines may be one or more. In addition, the weld lines in this embodiment may be any line including a straight line, a curved line, or a straight line and a curved line.
[0094] In addition, if the offline teaching device 5 determines in the processing of step St1 that the data regarding the weld lines is data of the 3D model MD1 (see Figure 6) of the workpiece Wk and includes position information of the weld lines WLM1 and WLM2 (St1A), the offline teaching device 5 may import the 3D model into the processor 51 (St2A).
[0095] The offline teaching device 5 acquires a weld line for producing the workpiece Wk based on the position information of the weld line included in the imported 3D model (St3A).
[0096] Furthermore, in the processing of step St1, the offline teaching device 5 accepts input of data of a 3D model MD2 (see FIG. 6) of the workpiece Wk that does not include position information of the weld line as data related to the weld line, based on a user operation transmitted from the input device UI3 (St1B), and imports the 3D model into the processor 51 (St2B). Here, the 3D model MD2 may be input data related to the shape of the workpiece Wk transmitted from the inspection control device 3.
[0097] In addition, if the offline teaching device 5 determines in the processing of step St1 that the data regarding the weld line transmitted from the input device UI3 is data of the 3D model MD2 (see Figure 6) of the workpiece Wk and does not include position information of the weld line (St1B), it may import the 3D model into the processor 51 (St2B).
[0098] The offline teaching device 5 acquires a weld line for producing the workpiece Wk based on the surface information of the workpiece Wk (for example, information on each of the surfaces SF1, SF2, and SF3 shown in FIG. 6) included in the imported 3D model, information on the edges of the workpiece Wk (for example, information on each of the edges of the surfaces SF1, SF2, and SF3 shown in FIG. 6), and the like (St3B). For example, when the workpiece Wk is composed of two or more original workpieces, the offline teaching device 5 extracts a plurality of contact points (for example, a contact point between the surface SF1 and the surface SF2, etc.) where the two or more original workpieces come into contact with each other, or a plurality of intersection points (for example, a point where the surface SF1 and the surface SF2 intersect with each other, etc.). The offline teaching device 5 acquires a continuous line formed including at least two or more of the extracted contact points, intersection points, etc., as the changed weld line. The continuous line referred to here may be a straight line, a curved line, or any line including a straight line and a curved line.
[0099] In addition, in the processing of step St1, the offline teaching device 5 accepts input data (i.e., scan data acquired by scanning with the sensor 4) relating to the shape of the weld bead or workpiece Wk transmitted from the inspection control device 3 as data relating to the weld line (St1C), and imports a 3D model MD3 (see FIG. 6) into the processor 51 (St2C). Note that the scan data referred to here is, for example, mesh data.
[0100] In addition, if the offline teaching device 5 determines in the processing of step St1 that the data regarding the weld line is input data regarding the shape of the weld bead or workpiece Wk transmitted from the inspection control device 3 (i.e., scan data obtained by scanning with the sensor 4) (St1C), it may import a 3D model MD3 (see Figure 6) into the processor 51 (St2C).
[0101] The offline teaching device 5 transmits the imported 3D model to the monitor MN3 to display it, and accepts a user operation to specify a welding line. The input device UI3 accepts a user operation to specify each of a plurality of points to be welded (i.e., the positions of the welding lines) in the 3D model of the weld bead displayed on the monitor MN3. The input device UI3 converts each of the plurality of points specified by the user operation into continuous lines WLM3, WLM4 (see FIG. 6), and transmits them to the offline teaching device 5. The offline teaching device 5 acquires the continuous lines as the welding lines of the workpiece Wk based on the position information of the continuous lines transmitted from the input device UI3 (St3C). Note that, in the 3D model MD3 shown in FIG. 6, an example in which each of a plurality of continuous lines WLM3, WLM4 is specified is shown as an example, but it goes without saying that the number of continuous lines may be one or more. The continuous lines referred to here may be any line including a straight line, a curved line, or a straight line and a curved line.
[0102] In the process of step St1, the offline teaching device 5 determines that the data related to the weld line is data that cannot be converted into a 3D model, or acquires input of data related to the weld line, based on the user operation transmitted from the input device UI3 (St1D). In such a case, the offline teaching device 5 acquires position information of the weld line corresponding to this data transmitted from the robot control device 2, and acquires the weld line based on the acquired position information of the weld line (St2D). Note that here, the position information of the weld line is taught by the user operation using the actual welding robot MC1, the workpiece Wk, and the teach pendant TP, etc., and is transmitted from the teach pendant TP to the robot control device 2.
[0103] If the offline teaching device 5 determines in the process of step St1 that the data related to the weld line cannot be converted into a 3D model or that the data related to the weld line could not be acquired (St1D), the offline teaching device 5 may generate a screen requesting input of the weld line and display it on the monitor MN3. In such a case, the offline teaching device 5 may acquire the weld line based on the position information of the weld line transmitted from the robot control device 2 (St2D).
[0104] Next, the offline teaching device 5 proceeds to a process of creating a teaching program for welding operations (St4). The offline teaching device 5 accepts an input of welding operation setting information from the input device UI3 in advance (St4A). The offline teaching device 5 creates a teaching program for welding operations based on the welding operation setting information input (transmitted) from the input device UI3 and the welding line (St4B), and transmits (outputs) the created teaching program for welding operations to the robot control device 2 (St4C). The offline teaching device 5 may generate image data in which the teaching points indicated by the created teaching program for welding operations and various motion trajectories of the welding torch 400 are superimposed on a virtual production facility, and transmit the image data to the monitor MN3 for output (display).
[0105] Next, the offline teaching device 5 proceeds to a process of creating a teaching program for the scan operation (St5). Similarly, the offline teaching device 5 accepts an input of scan operation setting information from the input device UI3 in advance (St5A). The offline teaching device 5 creates a teaching program for the scan operation based on the scan operation setting information input (transmitted) from the input device UI3 and the weld line (St5B), and transmits (outputs) the created teaching program for the scan operation to the robot control device 2 and the inspection control device 3 (St5C). The offline teaching device 5 may generate image data in which the teaching points indicated by the created teaching program for the scan operation and various motion trajectories of the sensor 4 are superimposed on a virtual production facility, and transmit the image data to the monitor MN3 for output (display).
[0106] As described above, offline teaching device 5 in the embodiment can automatically create a teaching program for welding operation and a teaching program for scanning operation based on the position information of the weld line. This allows the user to create a teaching program for performing main welding by offline teaching device 5 and a teaching program for performing visual inspection of the weld bead by teaching data including the position information of the weld line (e.g., a 3D model, input data related to the shape of the weld bead or workpiece Wk, etc.) or the position information of the weld line using the teach pendant TP.
[0107] Next, the teaching program update processing procedure of the offline teaching device 5 in the embodiment will be described with reference to Figs. 7 to 10. Fig. 7 is a flowchart showing the teaching program update processing procedure of the offline teaching device 5 in the embodiment. Fig. 8 is a diagram explaining a change in the position of the stage. Fig. 9 is a diagram explaining a design change of the workpiece Wk. Fig. 10 is a diagram explaining a change in the machining accuracy of the workpiece Wk due to a change in the lot of the workpiece Wk.
[0108] In the following description of the teaching program update process, the position information of the welding line used in the creation process of each teaching program for the already created welding operation and scanning operation is referred to as the ``welding line before change,'' and the position information of the welding line used in the creation process of each teaching program for the new welding operation and scanning operation is referred to as the ``welding line after change.''
[0109] The update of the teaching programs is executed by the offline teaching device 5, and refers to the process of updating (creating) the teaching programs for the welding operations and the teaching programs for the scanning operations, which is executed when it is determined that there has been a lot change or design change for the work Wk, a change in the configuration of the production equipment that produces the work Wk (e.g., relocation, expansion, etc.), or a change in the work information, weld line position information, welding operation setting information, scanning operation setting information, etc., for a work Wk for which teaching programs for the welding operations and the scanning operations have already been created by the offline teaching device 5.
[0110] The update process of the teaching program executed by the offline teaching device 5 is not limited to the above-mentioned factors or timing, and may be executed based on, for example, lot switching or design change of the workpiece Wk, configuration change of the production equipment that produces the workpiece Wk (e.g., relocation, expansion, etc.), input of visual inspection results of the workpiece Wk produced after changes to the workpiece Wk's work information, welding line position information, welding operation setting information, scanning operation setting information, etc. (i.e., input data related to the shape of the weld bead), or input of visual scan results of the workpiece Wk after the change (i.e., input data related to the shape of the workpiece Wk). This allows the offline teaching device 5 to automatically create teaching programs for the welding operation and the scanning operation based on detection of the above-mentioned factors or timing, without user operation.
[0111] Furthermore, the offline teaching device 5 may execute the update process of the teaching programs based on a control command requesting the update of each of the teaching programs for the welding operation and the scanning operation transmitted from the input device UI 3. This allows the offline teaching device 5 to execute the update process of the teaching programs at a timing desired by the user.
[0112] The offline teaching device 5 compares the work information of the workpiece Wk for which the teaching program is to be updated with the work information of the workpiece Wk for which the teaching program has been created and recorded in the memory 52, based on the control command transmitted from the input device UI3, the detection of the above-mentioned factors or timing, etc. If the offline teaching device 5 determines based on the comparison result that the workpiece Wk is a workpiece Wk for which various teaching programs (i.e., teaching programs for each of the welding operation and the scanning operation) have been created, the offline teaching device 5 starts the teaching program update process shown in Fig. 7. If the offline teaching device 5 determines based on the comparison result that the workpiece Wk is not a workpiece Wk for which various teaching programs (i.e., teaching programs for each of the welding operation and the scanning operation) have been created, the offline teaching device 5 executes the teaching program initial setting procedure for each of the welding operation and the scanning operation shown in Fig. 5.
[0113] First, the offline teaching device 5 acquires various data (data related to the welding line) after at least a part of the workpiece Wk used to create the teaching programs for the welding operation and the scanning operation, such as workpiece information, 3D model data (i.e., input data related to the shape of the welding bead or the workpiece Wk), position information of the welding line, welding operation setting information, or scanning operation setting information, and data related to the production equipment (e.g., position information of each equipment, etc.) from an external device such as the robot control device 2, the inspection control device 3, or the input device UI3. Note that here, the offline teaching device 5 may acquire only the changed data, or may acquire all the data used to create the teaching programs for the welding operation and the scanning operation. Note that, in order to make the explanation easier to understand, the following explanation will be given of an example in which all the data used to create the teaching programs for the welding operation and the scanning operation are acquired.
[0114] The offline teaching device 5 determines whether or not the position of the stage STG for fixing the workpiece Wk has been changed (St11) based on the data on the production equipment included in the data on the weld line stored in the memory 52 and the data on the changed production equipment. Specifically, the offline teaching device 5 determines whether or not there has been a change in the positional relationship between the workpiece Wk and the welding robot MC1 due to a change in configuration, relocation, addition, etc. of the production equipment for producing the workpiece Wk.
[0115] If the offline teaching device 5 determines in the processing of step St11 that the position of the stage STG (note that the position here may include the rotation angle) has been changed (i.e., there has been a change in the positional relationship between the workpiece Wk and the welding robot MC1) (St11, YES), it calculates the amount of displacement of the position of the stage STG based on the position of the stage STG before the change and the position of the stage STG after the change. The offline teaching device 5 calculates the amount of displacement of the relative position between the workpiece Wk and the welding robot MC1 based on the calculated amount of displacement of the position of the stage STG. The offline teaching device 5 moves (corrects) the position of the weld line of the workpiece Wk before the change based on the calculated amount of displacement of the relative position, and obtains the weld line after the change (St12).
[0116] The stage STG may be a non-rotatable platform, or may be rotatable about one or more axes, or may be movable about two or more axes (e.g., X-axis and Y-axis, or X-axis, Y-axis and Z-axis, etc.). Here, the processing of steps St11 and St12 will be described with reference to Fig. 8. Note that the example of changing the position of the stage STG shown in Fig. 8 is merely an example, and needless to say, the present invention is not limited to this example.
[0117] 8 shows the positions of the stage STG1A, workpiece Wk1A, and welding robot MC1A before the change. The welding line WL1A is defined based on the coordinates (X1, Y1, Z1, Φ1) of a predetermined reference point Ps1A of the workpiece Wk1A.
[0118] 8 show the positions of the stage STG1B, workpiece Wk1B, and welding robot MC1B after the change in the stage position. The offline teaching device 5 calculates the position of the weld line WL1B based on the amount of displacement of the position of the workpiece Wk before and after the change in the stage position. Here, the offline teaching device 5 calculates the position of the weld line WL1B based on the coordinates (X2, Y2, Z2, Φ2) of a predetermined reference point Ps1B of the workpiece Wk1B after the stage position is changed.
[0119] On the other hand, if the offline teaching device 5 determines in the processing of step St11 that the position of the stage STG has not been changed (i.e., there has been no change in the positional relationship between the workpiece Wk and the welding robot MC1) (St11, NO), it proceeds to the processing of step St13.
[0120] The offline teaching device 5 determines whether or not the shape of the workpiece Wk has been changed due to a design change or the like, based on the workpiece Wk's work information, 3D model data, or weld line position information before the change, and the workpiece Wk's work information, 3D model data, or weld line position information after the change, stored in the memory 52 (St13). Note that the shape of the workpiece Wk here includes a change in the size (dimensions) of the workpiece Wk.
[0121] When it is determined in the process of step St13 that the shape of the workpiece Wk has been changed (St13, YES), the offline teaching device 5 acquires the changed weld line based on the changed shape of the workpiece Wk (St14).
[0122] Specifically, in the process of step St14, if the offline teaching device 5 determines that there is a change in the shape of the workpiece Wk, it executes the same process as the process of step St1 shown in Fig. 5 to acquire the changed weld line. Specifically, the offline teaching device 5 determines whether the changed data acquired as data related to the weld line is a 3D model including position information of the changed weld line, a 3D model not including position information of the changed weld line, input data related to the shape of the weld bead or the workpiece Wk acquired by scanning, or data that is not a 3D model. Note that, if it is determined that there is no input of data related to the weld line, the offline teaching device 5 executes the same process as when the data related to the weld line is data that is not a 3D model.
[0123] When the offline teaching device 5 determines that the data relating to the weld line is a 3D model MD1 (see FIG. 6) including position information of the changed weld line, it acquires the changed weld line based on the position information of the changed weld line included in the 3D model MD1.
[0124] In addition, when the offline teaching device 5 determines that the data regarding the weld line is a 3D model MD2 (see Figure 6) that does not include position information of the changed weld line, it acquires the changed weld line based on face information of the workpiece Wk included in the 3D model (for example, information on each of the faces SF1, SF2, SF3 shown in Figure 6), information on the edges of the workpiece Wk (the edges of each of the faces SF1, SF2, SF3 shown in Figure 6), etc.
[0125] Furthermore, when the data regarding the weld line is a 3D model generated based on input data regarding the shape of the workpiece Wk acquired by the sensor 4, the offline teaching device 5 generates and transmits a control command requesting input of the changed weld line to the monitor MN3. The offline teaching device 5 acquires the changed weld line of this workpiece Wk based on the position information of the continuous line transmitted from the input device UI3. The position information of the continuous line is specified based on a user operation to the input device UI3.
[0126] Furthermore, when the data relating to the weld line is not a 3D model, the offline teaching device 5 acquires the changed weld line based on the position information of the changed weld line transmitted from the robot control device 2. Note that, after acquiring a design change instruction for the workpiece Wk by a user operation, when determining that the 3D model of the workpiece Wk after the design change does not include position information of the changed weld line, the offline teaching device 5 may generate a screen requesting input of the changed weld line and output it to the monitor MN3.
[0127] Here, the processing of steps St13 and St14 will be described with reference to Fig. 9. Fig. 9 shows an example in which the shape and size of the workpiece Wk are changed. Note that the workpieces Wk2A and Wk2B and the original workpieces Wk21A, Wk22A, Wk21B, and Wk22B shown in Fig. 9 are merely examples, and needless to say, the present invention is not limited to these.
[0128] The workpiece Wk2A shown in Fig. 9 is a workpiece before the design change. The workpiece Wk2A is substantially rectangular and has a width W1 and a height H1. The workpiece Wk2A is manufactured by main welding two original workpieces Wk21A and Wk22A together at a weld line WL2A having a length L1.
[0129] The workpiece Wk2B shown in Fig. 9 is a workpiece after a design change. The workpiece Wk2B is substantially rectangular and has a width W2 and a height H2. The workpiece Wk2B is manufactured by main welding two original workpieces Wk21B and Wk22B together at a weld line WL2B having a length L2.
[0130] In addition, when data of the 3D model of the workpiece Wk2B after the design change is acquired from the input device UI3, the offline teaching device 5 in the processing of step St14 may acquire the welding line WL2B based on the surface information or edge information of each of the original workpieces Wk21B and Wk22B of the workpiece Wk2B. Specifically, the offline teaching device 5 may calculate the difference (=W2-W1) between the width W1 of the workpiece Wk2A before the change and the width W2 of the workpiece Wk2B after the change, and the difference (=H2-H1) between the length of the contact surface between the original workpiece Wk21A and the original workpiece Wk21B before the change and the length of the contact surface between the original workpiece Wk22A and the original workpiece Wk22B after the change, and calculate and acquire the position and length of the welding line WL2B based on these calculated differences.
[0131] On the other hand, when it is determined in the process of step St13 that the shape of the workpiece Wk has not been changed (St13, NO), the offline teaching device 5 proceeds to the process of step St15.
[0132] Based on the work information of the work Wk recorded in the memory 52 and the work information of the changed work Wk, the offline teaching device 5 determines whether there is a change in the manufacturing information of the original work contained in the work information of the work Wk (for example, a change in the lot of the original work used to produce the work Wk, a change in the press process for manufacturing the original work, etc.) (St15).
[0133] When the offline teaching device 5 determines in the processing of step St15 that there is a change in the manufacturing information of the original workpiece (St15, YES), the offline teaching device 5 generates a notification or control command requesting import of the scan result of scanning the weld bead or workpiece Wk (i.e., input data related to the shape of the weld bead or workpiece Wk) and transmits it to the monitor MN3 (St16). The generated control command may be transmitted to the robot control device 2, the inspection control device 3, or to the higher-level device 1 via the robot control device 2. The monitor MN3 outputs (displays) the notification or control command transmitted from the offline teaching device 5 and presents it to the user. The scan is performed by the sensor 4. The offline teaching device 5 acquires the changed weld line based on the scan result transmitted from the inspection control device 3 (St17).
[0134] Here, the processing of steps St15 and St17 will be described with reference to Fig. 10. Fig. 10 shows an example in which the lot of the workpiece Wk is switched. Note that the original workpieces Wk31A and Wk31B and the edge portions EG3A and EG3B shown in Fig. 10 are merely examples, and needless to say, the present invention is not limited to these.
[0135] An original workpiece Wk31A shown in Fig. 10 is an original workpiece before lot switching. An original workpiece Wk31B shown in Fig. 10 is an original workpiece after lot switching. As shown in Fig. 10, when lot switching occurs, the shape, size, etc. of the original workpiece change due to the machining accuracy of the original workpiece.
[0136] For example, the position of the edge portion EG3A of the original work Wk31A and the position of the edge portion EG3B of the original work Wk31B may change in the shape of the original work before and after the lot switching due to the change in machining accuracy caused by the lot switching of the original work. When performing main welding of the original work Wk31B, Wk32 after the lot switching, the offline teaching device 5 needs to obtain the welding line WL3B suitable for the original work Wk31B, Wk32 after the lot switching, not the welding line WL3A of the original work Wk31A, Wk32 before the lot switching. Therefore, the offline teaching device 5 in the embodiment calculates the displacement amount of the position of each characteristic point (for example, the reference point of the work coordinate system ΣWk, an arbitrary reference point, etc.) of the original work Wk31A, Wk31B after the lot switching, the displacement amount of each surface position of the original work Wk31A, Wk31B, or the displacement amount of the position or rotation amount of the edge portions EG3A, EG3B of a predetermined surface, based on the scan result (i.e., input data related to the shape of the weld bead). The offline teaching device 5 acquires the changed weld line by moving the position of the weld line before the change based on these calculated displacement amounts and calculating the position of the changed weld line.
[0137] As a result, the offline teaching device 5 can analyze the characteristics of the workpiece Wk from which the weld bead included in the input data was generated (for example, an arbitrary reference point set on the workpiece Wk, the surface shape or edge shape of the workpiece Wk, etc.), and can obtain the positional deviation of the workpiece Wk, the individual difference due to the processing accuracy of the workpiece Wk (for example, dimensional tolerance), etc., based on the analysis results. In the production of the workpiece Wk using an original workpiece from the same lot as the original workpiece that constitutes the scanned workpiece Wk, the offline teaching device 5 can calculate the position of the changed weld line based on the acquired positional deviation, individual difference, etc., and create teaching programs for the welding operation and the scanning operation using the calculated changed weld line. Therefore, the offline teaching device 5 in the embodiment can create a teaching program for the welding operation that reduces the positional deviation of the generated weld bead and a teaching program for the scanning operation that can more accurately scan the generated weld bead by considering the individual difference of the workpiece Wk.
[0138] On the other hand, when it is determined in the process of step St15 that there is no change in the manufacturing information of the original workpiece (St15, NO), the offline teaching device 5 proceeds to the process of step St4.
[0139] The offline teaching device 5 executes an update (creation) process of a teaching program for welding operations for welding the changed weld line based on the acquired changed weld line and welding operation setting information (St4). Also, the offline teaching device 5 executes an update (creation) process of a teaching program for a scan operation for scanning a weld bead formed by main welding based on the changed weld line based on the acquired changed weld line and scanning operation setting information (St5).
[0140] As described above, the offline teaching device 5 in the embodiment can automatically execute the update (creation) process of each of the teaching programs for the welding operation and the teaching program for the scanning operation when a change occurs in the welding line of the workpiece Wk due to, for example, a lot change or design change of the workpiece Wk, a change in the configuration of the production equipment that produces the workpiece Wk (for example, relocation, expansion, etc.), or a change in the workpiece Wk's work information, welding line position information, welding operation setting information, scanning operation setting information, etc. As a result, the offline teaching device 5 can more efficiently execute the creation of a teaching program for the welding operation that is more suitable for the actual welding process of the changed welding line, and the creation of a teaching program for the scanning operation that is more suitable for the appearance inspection process of the generated weld bead. Therefore, the welding system 100 according to the embodiment can suppress the variation in the quality of the produced workpiece Wk based on each of the teaching programs for the welding operation and the teaching program for the scanning operation that have been created.
[0141] As described above, the offline teaching device 5 in the embodiment includes a communication unit 50 or an input / output unit 53 (an example of an acquisition unit) that acquires data related to a first weld line of a workpiece Wk produced by welding (an example of first production data, for example, data related to a weld line shown in FIG. 5, which is data related to a weld line used in the production of a workpiece Wk for which teaching programs for welding and scanning operations have not yet been created), a memory 52 (an example of a storage unit) that stores the acquired data related to the first weld line of the workpiece Wk, and a processor 51 (an example of a teaching program creation unit) that acquires the first weld line of the workpiece Wk from the data related to the first weld line (for example, a weld line acquired by the processing of any of steps St3A, St3B, St3C, or St2D shown in FIG. 5), and creates and outputs a first welding teaching program for performing welding by a welding robot and a first inspection teaching program for performing inspection of a weld bead of the produced workpiece. The communication unit 50 or the input / output unit 53 acquires data on a second welding line obtained by changing at least a part of the data on the first welding line (an example of second production data, for example, data on a welding line used in the update process of the teaching program shown in FIG. 7). The processor 51 acquires a second welding line different from the first welding line (i.e., a changed welding line) from the acquired data on the second welding line, and creates and outputs a second welding teaching program and a second inspection teaching program for a workpiece produced using the data on the second welding line based on the acquired second welding line.
[0142] The data on the first weld line and the first weld line referred to here are not limited to the data used in the production of the workpiece Wk before the update process of the teaching program is performed. For example, when the update process of the teaching program of the workpiece Wk having the same workpiece information is performed for the second or subsequent times, the data on the first weld line and the first weld line may be the data on the weld line and the weld line used in the first update process of the teaching program.
[0143] As a result, the offline teaching device 5 in the embodiment can automatically execute the update process of each teaching program of the welding operation and the scanning operation of the workpiece Wk for which a teaching program has already been created. Therefore, even if there is a slight correction to the data related to the welding line, the user can more easily update the teaching programs of the welding operation and the scanning operation, thereby improving the quality of welding. In addition, even if there is, for example, a lot change or design change of the workpiece Wk, a change in the configuration of the production equipment that produces the workpiece Wk (e.g., relocation, expansion, etc.), or changes in the workpiece information, welding line position information, welding operation setting information, scanning operation setting information, etc. of the workpiece Wk, the offline teaching device 5 automatically updates each teaching program of the welding operation and the scanning operation, so that the user can more efficiently manage the teaching programs of the welding operation and the scanning operation for each workpiece Wk.
[0144] As described above, the data on the first welding line used by the offline teaching device 5 in the embodiment includes the first position information of the stage STG to which the workpiece Wk is fixed (for example, the position (coordinate) information of the stage STG1A shown in FIG. 8). The processor 51 calculates the displacement amount of the stage (for example, the displacement amount between the stage STG1A and the stage STG1B shown in FIG. 8) based on the second position information of the stage (for example, the position (coordinate) information of the stage STG1B shown in FIG. 8) included in the acquired data on the second welding line and the first position information of the stage, and acquires the second welding line based on the calculated displacement amount and the position of the first welding line. As a result, the offline teaching device 5 in the embodiment can calculate and acquire the position of the second welding line based on the displacement amount of the position of the stage STG even if the position of the stage STG to which the workpiece Wk is fixed is changed due to a configuration change of the production equipment, and therefore can perform automatic update (creation) processing of each teaching program for the welding operation and the scanning operation.
[0145] As described above, the data relating to the second weld line acquired by the offline teaching device 5 in the embodiment includes three-dimensional shape data of the workpiece Wk (e.g., 3D model data, input data relating to the weld bead or the shape of the workpiece Wk, etc.). The processor 51 acquires the second weld line based on the acquired three-dimensional shape data. As a result, the offline teaching device 5 in the embodiment can acquire the position of the second weld line based on the three-dimensional shape data of the workpiece Wk, and can execute automatic update (creation) processing of the teaching programs for each of the welding operation and the scanning operation.
[0146] As described above, the processor 51 of the offline teaching device 5 in the embodiment acquires information on at least two or more faces (for example, faces SF2 and SF3 shown in FIG. 6) from the three-dimensional shape data, detects multiple intersections where the acquired two or more faces intersect, and acquires the second weld line based on the multiple intersections. As a result, even if the data related to the second weld line does not include position information of the second weld line, the offline teaching device 5 in the embodiment can acquire the second weld line based on each of the multiple intersections of the two faces constituting the workpiece Wk (specifically, a continuous line obtained by connecting each of the multiple intersections).
[0147] As described above, the processor 51 of the offline teaching device 5 in the embodiment acquires information on at least two or more faces from the three-dimensional shape data, detects multiple junctions where the acquired two or more faces intersect (for example, the junctions between the original workpiece Wk22A and the original workpiece Wk22B shown in FIG. 9), and acquires the second weld line based on the multiple junctions. As a result, even if the data related to the second weld line does not include position information of the second weld line, the offline teaching device 5 in the embodiment can acquire the second weld line based on each of the multiple junctions of the two faces that constitute the workpiece Wk (specifically, a continuous line obtained by connecting each of the multiple junctions).
[0148] Further, as described above, the processor 51 of the offline teaching device 5 in the embodiment acquires information on at least one or more faces from the three-dimensional shape data, detects second feature points (e.g., the reference point Ps1B of the workpiece coordinate system ΣWk shown in FIG. 8, the edge portion EG3B of the original workpiece Wk31B shown in FIG. 10, etc.) of the acquired one or more faces, calculates the amount of displacement between the position of the first feature point of the workpiece (e.g., the reference point Ps1A of the workpiece coordinate system ΣWk shown in FIG. 8, the edge portion EG3A of the original workpiece Wk31A shown in FIG. 10, etc.) that corresponds to the second feature point and is included in the data on the first weld line and the position of the detected second feature point, and acquires the second weld line based on the calculated amount of displacement and the position of the first weld line. As a result, the offline teaching device 5 in the embodiment can acquire the second weld line based on the amount of displacement of the position of the feature point on the workpiece Wk even if the data on the second weld line does not include position information of the second weld line.
[0149] As described above, the processor 51 of the offline teaching device 5 in the embodiment acquires information on at least one or more faces from the three-dimensional shape data, detects a second edge (e.g., edge portion EG3B of the original workpiece Wk31B shown in FIG. 10) of the acquired one or more faces, calculates a displacement between the position of the first edge of the workpiece (e.g., edge portion EG3A of the original workpiece Wk31A shown in FIG. 10) that corresponds to the second edge and is included in the data regarding the first weld line and the position of the detected second edge, and acquires the second weld line based on the calculated displacement amount and the position of the first weld line. As a result, the offline teaching device 5 in the embodiment can acquire the second weld line based on the displacement amount of the position of the edge on the workpiece Wk even if the data regarding the second weld line does not include position information of the second weld line.
[0150] Furthermore, as described above, when the processor 51 of the offline teaching device 5 in the embodiment determines that the three-dimensional shape data is scan data obtained by the sensor 4, it generates and outputs a notification requesting a designation operation for the second weld line, and acquires the second weld line based on the designation operation for the second weld line performed by the user on the scan data. This allows the offline teaching device 5 in the embodiment to notify the user that the data related to the second weld line does not include position information of the second weld line (i.e., the update process for each teaching program for the welding operation and the scanning operation cannot be executed).
[0151] Although various embodiments have been described above with reference to the drawings, it goes without saying that the present disclosure is not limited to such examples. It is clear that a person skilled in the art can conceive of various modifications, corrections, substitutions, additions, deletions, and equivalents within the scope of the claims, and it is understood that these also naturally belong to the technical scope of the present disclosure. In addition, the components in the various embodiments described above may be arbitrarily combined within the scope of the invention.
[0152] This application is based on a Japanese patent application (Patent Application No. 2021-104353) filed on June 23, 2021, the contents of which are incorporated by reference into this application. [Industrial Applicability]
[0153] The present disclosure is useful as an offline teaching device and an offline teaching method for more efficiently updating a teaching program for a welding operation or a scanning operation executed by a welding robot. [Explanation of symbols]
[0154] 1. Upper device 2 Robot control device 3. Inspection control device 4 Sensors 5 Offline teaching device 10,20,30,50 Communications Department 11,21,31,51 processor 12,22,32,52 Memory 53 Input / output section 54 3D calculation section 55 Program Creation Department 551 Welding motion creation section 552 Scanning motion creation unit 100 Welding System 200 Manipulator 300 Wire feeder 301 Welding Wire 400 Welding Torch 500 power supply EG3A,EG3B Edge section MC1, MC1A, MC1B welding robot MD1, MD2, MD3 3D models MN1,MN2,MN3 Monitor PS0, Ps1A, Ps1B Reference points STG Stage UI3 Input Devices WL1A,WL1B,WL3A,WL3B,WLM1,WLM2 welding lines WLM3,WLM4 continuous line Wk, Wk1A, Wk1B, Wk2A, Wk2B Work
Claims
1. An acquisition unit that acquires first production data of a workpiece produced by welding; A storage unit that stores the acquired first production data; a teaching program creation unit that creates and outputs a first welding teaching program for acquiring a first weld line of the workpiece from the first production data and performing the welding by a welding robot, and a first inspection teaching program for performing an inspection of a weld bead of the workpiece produced using the first production data; The acquisition unit acquires second production data obtained by changing at least a part of the first production data, the teaching program creation unit acquires a second welding line different from the first welding line from the second production data, and creates and outputs, based on the acquired second welding line, a second welding teaching program for a workpiece produced using the second production data and a second inspection teaching program for inspecting a weld bead produced using the second production data. Offline teaching device.
2. The second production data is data that has been changed based on a change in the shape of the workpiece included in the first production data, a change in the configuration of the production equipment that produces the workpiece, or a change in at least a part of the manufacturing information of the workpiece.
2. The offline teaching device according to claim 1.
3. the first production data includes first position information of a stage on which the workpiece is fixed, the teaching program creation unit calculates a displacement amount of the stage based on second position information of the stage included in the acquired second production data and the first position information of the stage, and acquires the second weld line based on the calculated displacement amount and a position of the first weld line.
2. The offline teaching device according to claim 1.
4. The second production data includes three-dimensional shape data of the workpiece, When it is determined that the three-dimensional shape data includes information of the second weld line, the teaching program creation unit acquires the second weld line based on the acquired three-dimensional shape data.
2. The offline teaching device according to claim 1.
5. When it is determined that the three-dimensional shape data does not include information on the second weld line, the teaching program creation unit acquires information on at least two or more faces from the three-dimensional shape data, detects a plurality of intersections where the acquired two or more faces intersect, and acquires the second weld line based on the plurality of intersections.
5. The offline teaching device according to claim 4.
6. When it is determined that the three-dimensional shape data does not include information on the second weld line, the teaching program creation unit acquires information on at least two or more faces from the three-dimensional shape data, detects a plurality of contact points where the acquired two or more faces come into contact, and acquires the second weld line based on the plurality of contact points.
5. The offline teaching device according to claim 4.
7. When it is determined that the three-dimensional shape data does not include information of the second weld line, the teaching program creation unit acquires information of at least one or more faces from the three-dimensional shape data, detects a second feature point of the acquired one or more faces, calculates an amount of displacement between a position of a first feature point of the workpiece included in the first production data, which corresponds to the second feature point, and a position of the detected second feature point, and acquires the second weld line based on the calculated amount of displacement and the position of the first weld line.
5. The offline teaching device according to claim 4.
8. When it is determined that the three-dimensional shape data does not include information of the second weld line, the teaching program creation unit acquires information of at least one or more faces from the three-dimensional shape data, detects a second edge of the acquired one or more faces, calculates a displacement amount between a position of a first edge of the workpiece included in the first production data, which corresponds to the second edge, and the detected position of the second edge, and acquires the second weld line based on the calculated displacement amount and the position of the first weld line.
5. The offline teaching device according to claim 4.
9. When the teaching program creation unit determines that the three-dimensional shape data does not include information on the second welding line and that the three-dimensional shape data is scan data obtained by scanning with a sensor, the teaching program creation unit generates and outputs a notification requesting a designation operation of the second welding line, and acquires the second welding line based on the designation operation of the second welding line on the scan data by a user operation.
5. The offline teaching device according to claim 4.
10. The offline teaching device is capable of communicating with a robot control device capable of controlling the welding robot, When it is determined that the second production data does not include three-dimensional shape data of the workpiece, the teaching program creation unit generates and outputs a notification requesting a designation operation of the second welding line, and acquires the second welding line based on position information of the second welding line transmitted from the robot control device.
2. The offline teaching device according to claim 1.
11. An offline teaching method performed by an offline teaching device including one or more computers communicably connected to a robot control device capable of controlling a welding robot that performs welding, comprising: Acquire and store first production data of the workpiece produced by the welding; obtaining a first weld line of the workpiece from the first production data; creating and outputting a first welding teaching program for performing the welding by the welding robot and a first inspection teaching program for performing an inspection of a weld bead of the workpiece produced using the first production data; acquiring second production data in which at least a part of the first production data has been changed; based on the first weld line included in the acquired first production data and the second weld line included in the acquired second production data, create and output a second welding teaching program corresponding to a workpiece produced using the second production data and a second inspection teaching program for inspecting a weld bead produced using the second production data; Offline teaching method.
Citation Information
Patent Citations
Automatic welding
JP1983141864A
Off-line verification system
JP1993019840A
Method for correcting robot teaching program
JP1995084631A
Method for off line teaching of robot
JP1999296218A
Teaching method and teaching device for industrial robot
JP2000190264A