Workpiece handling control method, device, equipment and storage medium

By executing the visual positioning of the air-conditioning bottom bracket in parallel on the air-conditioning outdoor unit production line, the problem of low handling efficiency caused by the long positioning time of the air-conditioning bottom bracket is solved, and a more efficient workpiece handling and production process is achieved.

CN115599092BActive Publication Date: 2024-09-24GREE ELECTRIC APPLIANCES WUHAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211091387.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2024-09-24
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

During the production process of air-conditioning outdoor units, due to the poor standardization of the air-conditioning bottom bracket, the robot needs to wait for a long time for the visual positioning system to calculate the positioning, resulting in low handling efficiency.

Method used

By triggering the preset interrupt service program during the transportation of the first workpiece, the visual positioning command is sent to the visual positioning control system to execute the positioning task of the second workpiece in parallel, thereby directly obtaining the positioning information of the second workpiece after the transportation of the first workpiece is completed. Position coordinate data to avoid waiting for visual positioning to complete.

Benefits of technology

It improves the efficiency of workpiece handling, saves time, improves production efficiency, and solves the problem of visual data lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115599092B
    Figure CN115599092B
Patent Text Reader

Abstract

The present invention discloses a workpiece handling control method, device, equipment and storage medium, which relates to the field of air conditioning production technology. The method includes: responding to a handling instruction to grab a first workpiece; in the process of transporting the first workpiece to the first target position, triggering a preset interrupt service program to send a visual positioning instruction to a visual positioning control system, wherein the visual positioning instruction is used to locate a second workpiece; receiving coordinate data of the second workpiece sent by the visual positioning control system; grabbing the second workpiece according to the coordinate data; and transporting the second workpiece to the second target position. The present invention uses a visual positioning instruction generated by triggering a preset interrupt service program during the process of carrying the first workpiece, and the visual positioning control system positions the second workpiece according to the visual positioning instruction, thereby realizing the parallel execution of the second workpiece positioning action during the process of transporting the first workpiece, greatly improving the handling efficiency, saving time, and improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of air conditioning production, and in particular to a workpiece handling control method, device, equipment and storage medium. Background Art

[0002] During the production of air conditioner outdoor units, two types of workpieces need to be moved on the production line, one is the process board and the other is the air conditioner base. On the production line, robots are used to move the process board and the air conditioner base. Since the air conditioner base is poorly standardized, the air conditioner base is usually placed on a tooling vehicle and transferred to the production line. After the robot moves the process board, it moves the air conditioner base, thus completing the workpiece on the line.

[0003] Since the air conditioner base is placed on the tooling vehicle, when the air conditioner base is put online, it is necessary to first visually locate the air conditioner base in the tooling vehicle. Only after the position of the air conditioner base is located can it be accurately grasped and put online. However, the current processing time for calculating and locating the position of the air conditioner base through the visual positioning system is long. It takes about 6-7 seconds for the host computer software to calculate the result. As a result, the robot needs to wait for the visual positioning to be completed before it can move the air conditioner base after moving the process board. The waiting time is long and the handling efficiency is low. Summary of the invention

[0004] The embodiments of the present invention provide a workpiece handling control method, device, equipment and storage medium, aiming to solve the problems of long waiting time for visual positioning and low handling efficiency when existing robots handle workpieces.

[0005] In a first aspect, an embodiment of the present invention provides a workpiece handling control method, which is applied to a robot system, comprising: responding to a handling instruction to grab a first workpiece; during the process of transporting the first workpiece to a first target position, triggering a preset interrupt service program to send a visual positioning instruction to a visual positioning control system, wherein the visual positioning instruction is used to position a second workpiece; receiving coordinate data of the second workpiece sent by the visual positioning control system; grabbing the second workpiece according to the coordinate data; and transporting the second workpiece to a second target position.

[0006] In the second aspect, an embodiment of the present invention further provides a workpiece handling control method, which is applied to a visual positioning control system, comprising: receiving a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by triggering a preset interrupt service program; acquiring image information of a second workpiece according to the visual positioning instruction; determining coordinate data of the second workpiece according to the image information of the second workpiece, and sending the coordinate data to the robot system.

[0007] In a third aspect, an embodiment of the present invention further provides a workpiece handling control device, which is applied to a robot system, comprising: a first grasping unit, used to grasp a first workpiece; an interruption unit, used to trigger a preset interruption service program to send a visual positioning instruction to a visual positioning control system during the process of conveying the first workpiece to a first target position, wherein the visual positioning instruction is used to position a second workpiece; an acquisition unit, used to acquire coordinate data of the second workpiece; a second grasping unit, used to grasp the second workpiece according to the coordinate data; and a second handling unit, used to convey the second workpiece to a second target position.

[0008] In a fourth aspect, an embodiment of the present invention further provides a workpiece handling control device, which is applied to a visual positioning control system, comprising: a receiving unit, used to receive a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by triggering a preset interrupt service program; a shooting unit, used to obtain image information of a second workpiece according to the visual positioning instruction; a sending unit, used to determine coordinate data of the second workpiece according to the image information of the second workpiece, and send the coordinate data to the robot system.

[0009] In a fifth aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0010] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0011] Embodiments of the present invention provide a workpiece handling control method, device, equipment and storage medium. The method applied to a robot system includes: responding to a handling instruction to grab a first workpiece; in the process of transporting the first workpiece to a first target position, triggering a preset interrupt service program to send a visual positioning instruction to a visual positioning control system, wherein the visual positioning instruction is used to locate a second workpiece; obtaining coordinate data of the second workpiece; grabbing the second workpiece according to the coordinate data; and transporting the second workpiece to a second target position. The method applied to a visual positioning control system includes: receiving a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by triggering a preset interrupt service program; obtaining image information of the second workpiece according to the visual positioning instruction; determining the coordinate data of the second workpiece according to the image information of the second workpiece, and sending the coordinate data to the robot system. The embodiment of the present invention achieves the action of positioning the second workpiece in parallel during the process of transporting the first workpiece by triggering a preset interrupt service program to generate a visual positioning instruction, and the visual positioning control system positions the second workpiece according to the visual positioning instruction. Therefore, when the second workpiece is transported after the first workpiece is transported, the coordinate data of the positioned second workpiece can be directly obtained without waiting for the second workpiece to complete the positioning, which greatly improves the transportation efficiency, saves time, and improves production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0013] Figure 1 A schematic diagram of the interactive steps of the workpiece handling control method provided by an embodiment of the present invention;

[0014] Figure 2 A schematic diagram of the steps of a workpiece handling control method provided by an embodiment of the present invention;

[0015] Figure 3 A schematic diagram of a sub-process of a workpiece handling control method provided by an embodiment of the present invention;

[0016] Figure 4 A schematic diagram of a sub-process of a workpiece handling control method provided by an embodiment of the present invention;

[0017] Figure 5 A schematic diagram of a sub-process of a workpiece handling control method provided by an embodiment of the present invention;

[0018] Figure 6 A schematic flow chart of a workpiece handling control method provided by another embodiment of the present invention;

[0019] Figure 7 A schematic flow chart of a workpiece handling control method provided by yet another embodiment of the present invention;

[0020] Figure 8 A schematic diagram of a sub-process of a workpiece handling control method provided by an embodiment of the present invention;

[0021] Fig. 9 A schematic block diagram of a workpiece handling control device provided by an embodiment of the present invention;

[0022] Fig.10 A schematic block diagram of a workpiece transport control device provided by another embodiment of the present invention;

[0023] Fig.11 A logical flow diagram of a workpiece handling control method provided by an embodiment of the present invention;

[0024] Fig.12 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0027] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0028] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0030] See also Figure 1 , Figure 1 It is a flow chart of the workpiece handling control method provided by an embodiment of the present invention. The workpiece handling control method applies a robot system and a visual positioning control system. The robot system is a working system for performing handling actions. In the handling scenario, first, a robot for handling workpieces is provided. The robot can be composed of a multi-axis mechanical arm (such as a six-axis robot) and can complete actions such as grasping and handling. A handling production line is provided around the robot, and a visual positioning control system is provided on one side of the robot. The visual positioning control system is composed of a visual system and a PLC control system. In actual scenarios, the visual positioning system can be a CCD image module, and of course it can also be other 3D visual systems. The PLC control system is used to control the movement of the CCD image module. For example, a slide rail mechanism that can slide back and forth is provided. The slide rail mechanism is supported by a gantry. The CCD image module is set on the slider of the slide rail mechanism. The PLC control system can control the CCD image module to move to various positions for visual positioning. The workpiece of the air conditioner outdoor unit that needs to be transported includes a first workpiece and a second workpiece. The first workpiece is a process board, and the second workpiece is an air conditioner bottom bracket. The process plates are stacked and placed next to the robot, and the air conditioner base is placed in a tooling vehicle, which is pushed under the gantry to facilitate visual positioning of the air conditioner base. The workpiece handling control method of this embodiment is used to transport the first workpiece and the second workpiece to the production line. The workpiece handling control method is described in detail below. Figure 2 As shown, the method includes the following steps S110-S150.

[0031] S110 , responding to a transport instruction to grab a first workpiece.

[0032] In this embodiment, before performing the handling action, the robot system first needs to be initialized and configured, and the initialization configuration includes resetting the robot to the initial position, clearing the handling count before, etc. The robot system also needs to establish a communication connection with the visual positioning control system. In this embodiment, the TCP\IP protocol Socket communication protocol is used to establish communication between the two through a long connection. The handling instruction refers to the action program that controls the mechanical gripper to carry the workpiece. After completing the initialization and establishing the communication connection, the robot's gripper first moves to the first preset position. The first preset position refers to the position where the first workpiece is placed. The position has been predetermined. For example, the first workpiece is stacked on the left side of the robot, then the first preset position is the left side of the robot. Then, with the robot as the origin, a Cartesian coordinate system xyz is established, where x represents the left and right direction, y represents the front and back direction, and z represents the height direction. Then the first preset position can be (-1, 0, 10). Through the pre-set first preset position, the robot directly moves to the first preset position to grab the first workpiece, which can improve the grabbing efficiency of the workpiece. Of course, it can be understood that the first workpiece can also be grabbed in other ways, which is not limited here.

[0033] In one embodiment, if Figure 3 As shown, the step S110 includes: S111-S113.

[0034] S111, obtaining a departure position corresponding to the first workpiece that was last transported.

[0035] S112, moving to the exit position corresponding to the first workpiece that was last transported.

[0036] S113 , taking the departure position corresponding to the last transported first workpiece as a reference starting point, moving toward the first workpiece currently to be transported to grab the first workpiece currently to be transported.

[0037] In this embodiment, it can be seen from the above that the first workpieces are stacked together, so the difference in the coordinate position of each first workpiece is only the height difference. For example, ten first workpieces are stacked together, and the thickness of each workpiece is 1. Then the coordinate position corresponding to the first workpiece at the top layer is (-1, 0, 10), the coordinate position corresponding to the first workpiece at the second top layer is (-1, 0, 9), and the coordinate position corresponding to the first workpiece at the bottom layer is (-1, 0, 1). In other words, the coordinate position corresponding to each first workpiece can be determined based on the thickness of the first workpiece. However, in the actual production process, there is an error in the thickness of the workpiece. When the errors of multiple workpieces are superimposed, this error will be magnified, and it will be difficult for the robot to determine the exact position of the first workpiece. This embodiment proposes a method for quickly grabbing the first workpiece, specifically, each time the first workpiece is grabbed, the corresponding departure position of the first workpiece is saved and recorded. When grabbing the next first workpiece, the robot first returns to the departure position of the last first workpiece. The robot uses this position as the reference starting point to search for the next first workpiece. At this time, the distance to the next first workpiece is very close, and the robot only needs to continue to move downward until the next first workpiece is grabbed. For example, there are two first workpieces, A1 and A2, A1 is stacked on A2, A1 is the last first workpiece that has been transported, A2 is the first workpiece to be transported, A1's corresponding departure position is D1, and A2's corresponding departure position is D2. When the robot grabs A2, it first moves to D1, then uses D1 as the reference starting point, the robot moves down to grab A2, and saves the record of D2. Through this embodiment, the grabbing efficiency is greatly improved.

[0038] S120. During the process of transporting the first workpiece to the first target position, trigger a preset interrupt service program to send a visual positioning instruction to the visual positioning control system, wherein the visual positioning instruction is used to position the second workpiece.

[0039] In this embodiment, the interrupt service program refers to the processor processing "urgent matters", which can be understood as a service, which is completed by executing a specific program that has been pre-programmed. This program for processing "urgent matters" is called an interrupt service program. Among them, the so-called interruption refers to the CPU interrupting the running program due to internal / external events or events pre-arranged by the program when the CPU is running the program normally, and switching to the program that serves the internal / external events or pre-arranged events. After the service is completed, it returns to execute the temporarily interrupted program. The visual positioning control system has been described in detail above and will not be repeated here. The first target position refers to the position of transportation on the production line, for example, the belt on the assembly line can drive the workpiece to move. Specifically, the interrupt service program is pre-set, and when the first workpiece is transported to the first target position, the interrupt service program is immediately triggered, wherein the triggering conditions can be various, for example, the distance of movement or the time of movement can be used to trigger, which is not limited here. After the interrupt service program is triggered, the visual positioning instruction is sent to the visual positioning control system. The visual positioning instruction is an instruction for visual positioning of the second workpiece. After the visual positioning control system receives the visual positioning instruction sent by the robot system, it immediately performs visual positioning on the second workpiece. Generally, the time it takes for the robot to transport the first workpiece to the first target position is usually greater than 7 seconds, while the calculation time for the visual positioning control system to visually position the second workpiece is 6-7 seconds. Then the calculation time of the visual positioning control system can be perfectly covered in the process of the robot placing the first workpiece, avoiding the efficiency loss caused by the robot waiting for the visual processing time, greatly improving the production efficiency of the equipment. Through this embodiment, during the process of transporting the first workpiece to the first target position, the interrupt service is used to restart, and the visual positioning control system visually positions the second workpiece at the same time. The two are performed synchronously, realizing the parallel execution of multiple tasks, solving the problem of visual data lag, and greatly improving the transportation efficiency.

[0040] In one embodiment, if Figure 4 As shown, the step S120 includes: S121-S123.

[0041] S121 , obtaining a first transport time for transporting the first workpiece to a first target position.

[0042] S122, determining whether the first transport time exceeds a preset time threshold;

[0043] S123: If the first transport time exceeds a preset time threshold, determine to trigger a preset interrupt service program.

[0044] In this embodiment, the first transport time for transporting the first workpiece to the first target position is obtained; it is determined whether the first transport time exceeds a preset time threshold; if the first transport time exceeds the preset time threshold, it is determined to trigger a preset interrupt service program. The first transport time refers to the time it takes for the robot to transport the first workpiece, starting from the time the robot grabs the first workpiece until the robot puts down the first workpiece. The preset time threshold is set in advance, for example, 0.1 seconds. The preset time threshold is usually relatively short, generally within 1 second. That is, as soon as the robot grabs the first workpiece, the first transport time exceeds the preset time threshold, and the preset interrupt service is immediately triggered again. Through this embodiment, the robot's transport time is used as the interrupt condition for triggering the interrupt service program, and the trigger condition is simple and easy to implement.

[0045] S130. Receive coordinate data of the second workpiece sent by the visual positioning control system.

[0046] In this embodiment, after receiving the visual positioning instruction, the visual positioning control system performs visual positioning on the second workpiece, calculates the coordinates of the second workpiece, obtains the coordinate data, and then returns the calculated coordinate data to the robot system. The robot system receives the coordinate data of the second workpiece and then obtains the coordinate data of the second workpiece. It should be noted that the robot system and the visual positioning control system in this embodiment are specially designed with a set of data interaction rules. After establishing a communication connection, the data sent and received are exchanged in the form of a string. The coordinate data is contained in the string. Therefore, in order to obtain the coordinate data, the string needs to be parsed to obtain the specific coordinate data. However, the traditional method is to determine the starting point and end point of the data by searching for commas in the string, and finally intercept the data between the starting point and the end point and convert them separately. For example, string = "1.23, 4.25, 6.32"; the first data is 1 as the starting point and 3 as the end point, and the judgment standard is to find a comma. According to this principle, it is necessary to write a large program to calculate the data length, the starting position of the data, the end position of the data and other related parameters after finding the comma, which is more troublesome. In order to improve the speed of data parsing, this embodiment proposes a method as follows:

[0047] In one embodiment, if Figure 5 As shown, the step S130 includes: S131-S133.

[0048] S131, receiving character string data sent from the visual positioning control system.

[0049] S132. Convert the character string data into a character string array through a conversion instruction, wherein the character string array includes coordinate data of the second workpiece.

[0050] S133. Address the character string array to obtain coordinate data of the second workpiece.

[0051] In this embodiment, the above embodiment has described that the robot system and the visual positioning control system use strings for data exchange. Therefore, the robot system first receives string data, which needs to be further parsed to obtain coordinate data. Specifically, the string data is converted into a string array by means of a conversion instruction. Among them, the conversion instruction refers to the StrToVal instruction, which is used to convert a string into a value of any data type, that is, to convert the instruction string into a numerical value. The string array contains 8 bits. For example, if the string array is "[1,2000,800,1500,0,0,0,0]", the first bit is the status bit: 0 means that the visual does not detect the material, and 1 means that the material data can be parsed; the second to fourth bits are Cartesian coordinates: indicating the X, Y, and Z of the Cartesian coordinates to which the robot needs to move; the fifth to eighth bits are the robot's quaternion: indicating the posture of the robot moving to the Cartesian coordinate point. Among them, the second to fourth bits of the string array are the coordinate data of the second workpiece. After being converted into a string array, the coordinate data of the second workpiece can be directly obtained by addressing, because the array can be directly addressed, so the parsing efficiency is improved many times. Through the method of this embodiment, the method of nesting for loops to search for commas is avoided, the time complexity and space complexity of the program are reduced, and the parsing efficiency is greatly improved.

[0052] S140, grabbing a second workpiece according to the coordinate data.

[0053] S150, transporting the second workpiece to a second target position.

[0054] In this embodiment, after obtaining the coordinate data of the second workpiece, the robot moves to the tooling vehicle according to the obtained coordinate data to grab the second workpiece and transport the second workpiece to the second target position. The second target position refers to the transportation position on the production line, for example, the belt on the assembly line can drive the workpiece to move. The second target position can be located above the first target position, that is, the second workpiece can be stacked on the first workpiece and transported together. Of course, it is understandable that it can also be other positions on the assembly line, such as next to the first workpiece.

[0055] Reference Fig.11It should be noted that, after the first workpiece and the second workpiece are transported to the corresponding first target position and the second target position, the production line starts to move, and the first workpiece and the second workpiece are transported to the next process. At this time, the robot system returns to step S110 to grab the next first workpiece. This cycle is repeated until all workpieces are transported.

[0056] In one embodiment, if Figure 6 As shown, the workpiece transport control method also includes: S161-S164.

[0057] S161, detecting a current vacuum degree of grasping the first workpiece and / or the second workpiece.

[0058] S162: Determine whether the current vacuum degree is lower than a preset vacuum degree threshold.

[0059] S163: If the current vacuum degree is lower than the preset vacuum degree threshold, the abnormal interrupt service program is triggered to stop the capture.

[0060] S164. Re-establish the communication connection with the visual positioning control system, and send the visual positioning instruction to the visual positioning control system.

[0061] In this embodiment, the robot's gripper uses vacuum adsorption to adsorb the first workpiece and the second workpiece. During the handling process, there may be a situation where the gripper's vacuum strength is insufficient, resulting in the first workpiece or the second workpiece being caught falling. This embodiment monitors the vacuum degree of the gripper in real time and uses the vacuum degree threshold to determine whether the gripper is currently in an adsorption state. It should be noted that the weights of the first workpiece and the second workpiece are different, and their corresponding vacuum degree thresholds are also different. Among them, the weight of the first workpiece (process board) is about 18kg, and the weight of the second workpiece (air conditioning base) is about 9kg. The preset vacuum degree thresholds are Z1 and Z2, Z1 represents the vacuum degree threshold for the first workpiece, and Z2 represents the vacuum degree threshold for the second workpiece. Detect the current vacuum degree, and compare the current vacuum degree with the preset vacuum degree threshold. When comparing, it is necessary to select the corresponding preset vacuum degree threshold according to the stage of the robot system. For example, if it is currently in the stage of transporting the first workpiece, select Z1 for comparison. If it is currently in the stage of transporting the second workpiece, select Z2 for comparison. If the current vacuum degree is lower than the preset vacuum degree threshold, it means that the workpiece has fallen. If the subsequent robot continues to perform the handling action, it is an invalid action (cannot grab the workpiece). It not only wastes time and resources, but also easily adsorbs to other magazines when unloaded, causing damage to the clamp. Therefore, this embodiment uses an abnormal interrupt service program to interrupt the abnormal situation of the workpiece falling. The triggering condition of the abnormal interrupt service program is that the current vacuum degree is less than the preset vacuum degree threshold, that is, when the workpiece falls, the abnormal interrupt is triggered immediately to avoid subsequent actions. After the abnormal interrupt is triggered, the communication connection with the visual positioning control system is re-established, and the visual positioning instruction is re-generated to restart the robot. The robot responds to the coordinate data acquired again, continues to perform the handling action, and then re-enters the task, which has an anti-fool effect. Specifically, the TCP\IP short connection is re-established to take pictures again to obtain coordinate data. The system continues to run to reduce the production line downtime and improve production efficiency.

[0062] The embodiment of the present invention further provides a workpiece transport control method, which is applied to a visual positioning control system. The workpiece transport control method is described in detail below. Figure 7 As shown, the method includes the following steps S210-S230.

[0063] S210, receiving a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by triggering a preset interrupt service program.

[0064] S220. Acquire image information of the second workpiece according to the visual positioning instruction.

[0065] S230. Determine coordinate data of the second workpiece according to the image information of the second workpiece, and send the coordinate data to the robot system.

[0066] In this embodiment, the visual positioning control system has been described in detail above and will not be described in detail here. The robot system triggers the interrupt service program to generate a visual positioning instruction, and the visual positioning control system receives the visual positioning instruction generated by the robot system. The image information refers to the image obtained by the visual positioning system taking a picture of the second workpiece. Among them, the method of obtaining coordinate data by visual recognition and positioning according to the image belongs to the prior art and is well known to those skilled in the art, and will not be described in detail here. The execution action of the visual positioning instruction is to take a picture of the second workpiece, and calculate based on the taken image to locate the position of the second workpiece. Through this embodiment, after receiving the visual positioning instruction, the visual positioning control system immediately executes the visual positioning task of the second workpiece, and keeps it in parallel with the task of the robot system transporting the first workpiece. It is equivalent to separating the task of positioning the second workpiece from the three tasks originally executed in sequence (S1 transports the first workpiece, S2 positions the second workpiece, and S3 transports the second workpiece) and handing it over to the visual positioning control system for execution, so that the robot system can execute S1 while S2 is also executed synchronously. When S1 is completed, S2 is also completed and S3 can be executed immediately. Compared with the traditional sequential execution of S1-S2-S3, this embodiment executes tasks S1 / S2-S3 in parallel, which greatly improves the transportation efficiency, saves the waiting time for visual positioning calculation, avoids wasting time, and improves production efficiency.

[0067] In one embodiment, if Figure 8 As shown, step S220 includes: S221-S222.

[0068] S221, moving in a first direction to a first shooting position, and acquiring first image information of the second workpiece.

[0069] S221, moving to a second shooting position in a second direction, and acquiring second image information of the second workpiece, wherein the second direction is opposite to the first direction.

[0070] In this embodiment, the visual positioning control system is provided with a slide rail mechanism that can slide back and forth, and the slide rail mechanism is supported by a gantry, and the CCD image module is arranged on the slider of the slide rail mechanism, and the PLC control system can control the CCD image module to move to various positions for visual positioning. Specifically, this embodiment can control the camera to move along the slide rail in a first direction, that is, to move to the left, and move to the left to a first shooting position, and the first shooting position can be the leftmost side of the slide rail. When the camera slides to the leftmost side, the shooting action is performed to obtain the first image information, that is, the first photo. Similarly, the camera can be controlled to move along the slide rail in a second direction, that is, to move to the right, opposite to the first direction, and move to the right to a second shooting position, and the second shooting position can be the rightmost side of the slide rail. When the camera slides to the rightmost side, the shooting action is performed to obtain the second image information, that is, the second photo. Of course, it can be understood that the first shooting position and the second shooting position can also be other positions. Then at this time, the visual positioning control system can determine the coordinate data of the second workpiece based on the two pictures, which can improve the efficiency and accuracy of the positioning calculation. Through this embodiment, the camera is controlled to move left and right, which increases the visual projection area, expands the visual field, solves the problem of fixed unit visual projection surface, and can share the visual system at multiple workstations to improve visual utilization efficiency.

[0071] Fig. 9 3 is a schematic block diagram of a workpiece handling control 300 provided by an embodiment of the present invention. Fig. 9 As shown, corresponding to the above workpiece transport control method, the present invention also provides a workpiece transport control device 300. The workpiece transport control device 300 includes a unit for executing the above workpiece transport control method, and the device can be configured in a robot system. Fig. 9 The workpiece transport control device 300 includes a first grasping unit 301 , an interruption unit 302 , an acquisition unit 303 , a second grasping unit 304 and a second transport unit 305 .

[0072] Among them, the first grasping unit 301 is used to grasp the first workpiece; the interruption unit 302 is used to trigger a preset interruption service program to send a visual positioning instruction to the visual positioning control system during the process of transporting the first workpiece to the first target position, wherein the visual positioning instruction is used to position the second workpiece; the receiving unit 303 is used to receive the coordinate data of the second workpiece sent by the visual positioning control system; the second grasping unit 304 is used to grasp the second workpiece according to the coordinate data; the transporting unit 305 is used to transport the second workpiece to the second target position.

[0073] In some embodiments, such as this embodiment, the interruption unit 302 includes an acquisition unit, a judgment unit and a determination unit.

[0074] Among them, the acquisition unit is used to obtain the first transport time for transporting the first workpiece to the first target position; the judgment unit is used to judge whether the first transport time exceeds the preset time threshold; the judgment unit is used to judge whether the preset interrupt service program is triggered if the first transport time exceeds the preset time threshold.

[0075] In some embodiments, such as this embodiment, the first grasping unit 301 includes an acquisition unit, a moving unit, and a reference unit.

[0076] Among them, the acquisition unit is used to acquire the departure position corresponding to the last transported first workpiece; the moving unit is used to move to the departure position corresponding to the last transported first workpiece; the reference unit is used to use the departure position corresponding to the last transported first workpiece as the reference starting point, and move toward the first workpiece to be transported currently to grab the first workpiece to be transported currently.

[0077] In some embodiments, such as this embodiment, the receiving unit 303 includes a string unit, a conversion unit, and an addressing unit.

[0078] Among them, the string unit is used to receive string data sent from the visual positioning control system; the conversion unit is used to convert the string data into a string array through a conversion instruction, wherein the string array includes the coordinate data of the second workpiece; the addressing unit is used to address the string array to obtain the coordinate data of the second workpiece.

[0079] In some embodiments, such as the present embodiment, the workpiece transport control device 300 further includes: a detection unit, a judgment unit, an abnormal interruption unit and an establishment unit.

[0080] Among them, the detection unit is used to detect the current vacuum degree of grasping the first workpiece and / or the second workpiece; the judgment unit is used to judge whether the current vacuum degree is lower than the preset vacuum degree threshold; the abnormal interrupt unit is used to trigger the abnormal interrupt service program to stop grasping if the current vacuum degree is lower than the preset vacuum degree threshold; the establishment unit is used to re-establish the communication connection with the visual positioning control system and send the visual positioning instruction to the visual positioning control system.

[0081] Fig.10 4 is a schematic block diagram of a workpiece handling control 400 provided in an embodiment of the present invention. Fig.10 As shown, corresponding to the above workpiece transport control method, the present invention also provides a workpiece transport control device 400. The workpiece transport control device 400 includes a unit for executing the above workpiece transport control method, and the device can be configured in a visual positioning control system. Fig.10 The workpiece transport control device 400 includes a positioning unit 401, a photographing unit 402 and a computing unit 403.

[0082] Among them, the positioning unit 401 is used to receive a visual positioning instruction from the robot system, wherein the visual positioning instruction is generated by triggering a preset interrupt service program; the photographing unit 402 is used to obtain image information of the second workpiece according to the visual positioning instruction; the computing unit 403 is used to determine the coordinate data of the second workpiece according to the image information of the second workpiece, and send the coordinate data to the robot system.

[0083] In some embodiments, such as this embodiment, the photographing unit 402 includes a first image unit and a second image unit.

[0084] Among them, the first image unit is used to move to a first shooting position in a first direction and obtain first image information of the second workpiece; the second image unit is used to move to a second shooting position in a second direction and obtain second image information of the second workpiece, wherein the second direction is opposite to the first direction.

[0085] The workpiece handling control device described above can be implemented in the form of a computer program. The computer program can be used in Fig.12 Runs on the computer device shown.

[0086] See also Fig.12 , Fig.12 300 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device 300 is a server.

[0087] See also Fig.12 The computer device 300 includes a processor 302 , a memory and a network interface 305 connected via a system bus 301 , wherein the memory may include a non-volatile storage medium 303 and an internal memory 304 .

[0088] The non-volatile storage medium 303 can store an operating system 3031 and a computer program 3032. When the computer program 3032 is executed, the processor 302 can execute a defrosting control method based on a fuzzy algorithm.

[0089] The processor 302 is used to provide computing and control capabilities to support the operation of the entire computer device 300 .

[0090] The internal memory 304 provides an environment for the operation of the computer program 3032 in the non-volatile storage medium 303. When the computer program 3032 is executed by the processor 302, the processor 302 can execute a defrosting control method based on a fuzzy algorithm.

[0091] The network interface 305 is used to communicate with other devices over the network. Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 300 to which the solution of the present invention is applied. The specific computer device 300 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0092] The processor 302 is used to run a computer program 3032 stored in the memory to implement any embodiment of the above-mentioned defrost control method based on fuzzy algorithm.

[0093] It should be understood that in the embodiment of the present invention, the processor 302 may be a central processing unit (CPU), and the processor 302 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0094] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0095] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes any embodiment of the above-mentioned defrosting control method based on fuzzy algorithm.

[0096] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0097] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0098] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0099] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0100] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device to execute all or part of the steps of the method described in each embodiment of the present invention.

[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0102] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0103] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A workpiece handling control method, applied to a robot system, characterized in that: include: Responding to a handling instruction to grasp a first workpiece; During the process of transporting the first workpiece to the first target position, triggering a preset interrupt service program to send a visual positioning instruction to the visual positioning control system, wherein the visual positioning instruction is used to position the second workpiece; Receiving coordinate data of the second workpiece sent by the visual positioning control system; grabbing a second workpiece according to the coordinate data; transporting the second workpiece to a second target location; In the process of transporting the first workpiece to the first target position, triggering a preset interrupt service program to send a visual positioning instruction to the visual positioning control system, wherein the visual positioning instruction is used to position the second workpiece, the step includes: Acquire a first transport time for transporting the first workpiece to a first target position; Determining whether the first transport time exceeds a preset time threshold; If the first transport time exceeds a preset time threshold, it is determined to trigger a preset interrupt service program.

2. The method according to claim 1, characterized in that The step of grabbing the first workpiece in response to the transport instruction comprises: Obtaining a departure position corresponding to the first workpiece that was last transported; Move to the exit position corresponding to the first workpiece that was last transported; Taking the departure position corresponding to the last transported first workpiece as a reference starting point, the robot moves toward the first workpiece to be transported currently to grab the first workpiece to be transported currently.

3. The method according to claim 1, characterized in that The step of receiving the coordinate data of the second workpiece sent by the visual positioning control system comprises: Receive character string data sent from the visual positioning control system; Convert the character string data into a character string array through a conversion instruction, wherein the character string array includes the coordinate data of the second workpiece; The character string array is addressed to obtain coordinate data of the second workpiece.

4. The method according to claim 1, characterized in that: The method further comprises: detecting a current vacuum degree of grasping the first workpiece and / or the second workpiece; Determining whether the current vacuum degree is lower than a preset vacuum degree threshold; If the current vacuum level is lower than the preset vacuum level threshold, the abnormal interrupt service program is triggered to stop the capture; Re-establish the communication connection with the visual positioning control system, and send the visual positioning instruction to the visual positioning control system.

5. A workpiece handling control method, applied to a visual positioning control system, characterized in that: include: Receiving a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by the robot system by triggering a preset interrupt service program when the first handling time exceeds a preset time threshold; Acquire image information of the second workpiece according to the visual positioning instruction; Coordinate data of the second workpiece is determined according to the image information of the second workpiece, and the coordinate data is sent to the robot system.

6. The method according to claim 5, characterized in that The image information includes first image information and second image information, and the step of acquiring the image information of the second workpiece according to the visual positioning instruction includes: Moving in a first direction to a first shooting position, and acquiring first image information of the second workpiece; Move to a second shooting position in a second direction, and acquire second image information of the second workpiece, wherein the second direction is opposite to the first direction.

7. A workpiece handling control device, applied to a robot system, characterized in that: include: A first grasping unit, used for grasping a first workpiece; An interrupt unit is used to trigger a preset interrupt service program to send a visual positioning instruction to a visual positioning control system during the process of transporting the first workpiece to the first target position, wherein the visual positioning instruction is used to locate the second workpiece; obtain a first transport time for transporting the first workpiece to the first target position; determine whether the first transport time exceeds a preset time threshold; if the first transport time exceeds the preset time threshold, determine to trigger a preset interrupt service program; A receiving unit, configured to receive coordinate data of the second workpiece sent by the visual positioning control system; A second grasping unit, used for grasping a second workpiece according to the coordinate data; a transport unit, configured to transport the second workpiece to a second target location; and / or The workpiece handling control device is applied to a visual positioning control system and comprises: A positioning unit, configured to receive a visual positioning instruction from a robot system, wherein the visual positioning instruction is generated by the robot system by triggering a preset interrupt service program when the first handling time exceeds a preset time threshold; A photographing unit, used for acquiring image information of the second workpiece according to the visual positioning instruction; A sending unit is used to determine the coordinate data of the second workpiece according to the image information of the second workpiece, and send the coordinate data to the robot system.

8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the computer program can implement the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 6.