Product processing method and device, electronic equipment and storage medium

By detecting the appearance dimension information of the product to be processed and measuring its posture and position using a probe, and automatically adjusting the product placement position, the problem of high error rate and low automation in the automated production line when processing non-standard shapes and positions is solved. Improve processing efficiency.

CN119200528APending Publication Date: 2024-12-27MAKINO MACHINE TOOL CHINA CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411300679.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When processing products of non-standard shapes and positions, the automated production lines lack automatic measurement functions, resulting in high processing error rates and low automation.

Method used

By detecting the appearance dimension information of the product to be processed, a target attitude adjustment program is generated, and the initial attitude and position information is measured using a probe, and the product placement position is automatically adjusted to achieve automatic processing.

Benefits of technology

It significantly reduces the error rate of product processing, improves the degree of automation and processing efficiency, and realizes the automatic measurement and placement of the products to be processed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200528A_ABST
    Figure CN119200528A_ABST
Patent Text Reader

Abstract

The invention discloses a product processing method and device, electronic equipment and a storage medium, and relates to the technical field of automatic processing. The method comprises the steps that when it is detected that a to-be-machined product is placed on a machining platform, a macro program in a machining program of the to-be-machined product is read, and appearance size information of the to-be-machined product is obtained; generating a target attitude adjustment program based on the external dimension information and the initial attitude adjustment program; when the target posture adjusting program is executed, executing the position measuring program to obtain a processing zero point of the to-be-processed product; and the to-be-machined product is machined based on the machining program and the machining zero point, and a machined target product is obtained. According to the technical scheme, the error probability of product machining can be greatly reduced, the process of measuring and adjusting the placing position of the to-be-machined product can be automatically achieved, and the automation degree and machining efficiency of product machining are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated processing technology, and in particular to a product processing method, device, electronic equipment and storage medium. Background Art

[0002] With the advancement of industrial intelligent manufacturing, machining automation production lines have made significant progress in integration and intelligence. Usually, the application scenario of automation lines is to process large quantities of parts and components. The processing position of the product on the automation line is fixed, so there is no need to measure the product coordinates before processing.

[0003] However, in the mold industry, the shapes and appearances of products are different, and the processing positions are not fixed. Therefore, in automated production and processing, it is necessary to know where the processing position of the product is and where the processing coordinates are. In the existing technology, the automated line itself is unable to determine the processing position of the product, and usually humans are involved in measuring and placing the processing position of the product. As automated lines are applied in more industries, the lack of the function of automatically measuring the position of the workpiece in the automated line has constrained the degree of automation of the line. Summary of the invention

[0004] The present application provides a product processing method, device, electronic device and storage medium, which can greatly reduce the error rate of product processing, automatically realize the measurement and adjustment process of the placement position of the processed product, and improve the degree of automation and processing efficiency of product processing.

[0005] In a first aspect, the present application provides a product processing method, the method comprising:

[0006] When it is detected that the product to be processed is placed on the processing platform, a macro program in the processing program of the product to be processed is read to obtain the appearance size information of the product to be processed;

[0007] generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, wherein the target posture adjustment program is used to adjust the product to be processed from the initial posture to the target posture on the processing platform;

[0008] When the target posture adjustment program is finished, a position measurement program is executed to obtain the processing zero point of the product to be processed, wherein the position measurement program is used to measure the coordinate information of the product to be processed on the processing platform;

[0009] The product to be processed is processed based on the processing program and the processing zero point to obtain a target product after processing.

[0010] Furthermore, the target posture adjustment program includes a measurement subroutine and an adjustment subroutine; the generation of the target posture adjustment program based on the appearance size information and the initial posture adjustment program includes: determining the measurement points of the angle measurement action in the initial posture adjustment program based on the appearance size information; generating the measurement subroutine based on the measurement points of the angle measurement action; executing the measurement subroutine to obtain the initial posture of the product to be processed; determining the angle adjustment action corresponding to adjusting the product to be processed to the target posture and the adjustment data corresponding to the angle adjustment action based on the initial posture, the angle adjustment action including rotating the processing platform clockwise or counterclockwise; generating the adjustment subroutine based on the angle adjustment action and the adjustment data.

[0011] Furthermore, determining the measurement points of the angle measurement action in the initial posture adjustment program based on the appearance dimension information includes: performing data calculation on the height value in the appearance dimension information to obtain the Y-axis coordinate of the angle measurement action in the platform coordinate system, and the platform coordinate system is a coordinate system constructed for the processing platform; performing an X-axis detection action based on the length value in the appearance dimension information to obtain a first X-axis coordinate of the angle measurement action at the first measurement point and a second X-axis coordinate at the second measurement point; determining the coordinate information of the first measurement point based on the Y-axis coordinate and the first X-axis coordinate, and determining the coordinate information of the second measurement point based on the Y-axis coordinate and the second X-axis coordinate.

[0012] Furthermore, the processing platform is provided with a probe, and the probe is used to measure the initial posture of the product to be processed on the processing platform; the execution of the measurement subroutine to obtain the initial posture of the product to be processed includes: controlling the probe to measure at the first measurement point to obtain the first Z-axis coordinate of the product to be processed at the first measurement point; controlling the probe to measure at the second measurement point to obtain the second Z-axis coordinate of the product to be processed at the second measurement point; and calculating the initial posture of the product to be processed based on the first Z-axis coordinate, the second Z-axis coordinate, the first X-axis coordinate and the second X-axis coordinate.

[0013] Furthermore, a probe controller is configured in the processing platform, and the probe is connected to the probe controller; before executing the posture adjustment program, the method also includes: controlling the probe to operate in a preset measurement area to determine whether there is an obstacle in the preset measurement area, and the preset measurement area is the operating area of ​​the probe controller during the execution of the posture adjustment program and the position measurement program; if there is, generating obstacle prompt information, and the obstacle prompt information is used to prompt that there is an object in the preset measurement area that will damage the probe controller; if not, executing the posture adjustment program.

[0014] Furthermore, during the execution of the posture adjustment program and the position measurement program, the method further includes: if the probe fails to detect the product to be processed, generating an abnormal prompt message, wherein the abnormal prompt message is used to prompt that the product to be processed is in an abnormal state.

[0015] Furthermore, before processing the product to be processed based on the processing program and the processing zero point, it also includes: determining whether the current posture information of the processing platform is the target posture information for processing the product to be processed; if not, determining the platform posture adjustment action of the processing platform based on the current posture information and the target posture information; when the platform posture adjustment action is completed, executing the operation of processing the product to be processed based on the processing program and the processing zero point.

[0016] In a second aspect, the present application provides a product processing device, the device comprising:

[0017] A size determination module, for, when detecting that the product to be processed is placed on the processing platform, reading a macro program in a processing program of the product to be processed to obtain appearance size information of the product to be processed;

[0018] A program generation module, used for generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, wherein the target posture adjustment program is used for adjusting the product to be processed from the initial posture to the target posture on the processing platform;

[0019] A coordinate determination module, configured to execute a position measurement program to obtain a processing zero point of the product to be processed when the target posture adjustment program is executed, wherein the position measurement program is used to measure coordinate information of the product to be processed on the processing platform;

[0020] The product processing module is used to process the product to be processed based on the processing program and the processing zero point to obtain a target product after processing.

[0021] In a third aspect, the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the product processing method described in any embodiment of the present application.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the product processing method described in any embodiment of the present application when executed.

[0023] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the product processing method described in any embodiment of the present application.

[0024] In order to solve the defects of the prior art in the background technology, the embodiment of the present application provides a product processing method, and the execution of the method can bring the following beneficial effects: the present application designs a macro program in the processing program in terms of software design, and configures a probe for the processing platform in terms of hardware design. The microprocessor of the processing platform can read the processing program before processing to obtain the appearance size information of the product to be processed, and then automatically generate the corresponding posture adjustment program through the macro. During the measurement process, the probe is used as a sensing device to measure the posture information and position information of the product to be processed respectively, and the posture adjustment of the product to be processed and the measurement of the processing zero point are completed through the automatic calculation of the macro. The present application can greatly reduce the error probability of product processing, can automatically realize the measurement and adjustment process of the placement position of the product to be processed, and improve the automation degree and processing efficiency of product processing.

[0025] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the product processing device, or may be packaged separately from the processor of the product processing device, which is not limited in this application.

[0026] The description of the second, third, ..., and fifth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, ..., and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0027] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description.

[0028] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, and usage scenarios of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0030] Figure 1 A schematic diagram of a process for processing a product provided in an embodiment of the present application;

[0031] Figure 2 A schematic diagram of the structure of a product processing device provided in an embodiment of the present application;

[0032] Figure 3 It is a block diagram of an electronic device used to implement a product processing method of an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0034] It should be noted that the terms "first", "second", "target", and "original" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having", and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0035] Figure 1A schematic flow chart of a product processing method provided in an embodiment of the present application, this embodiment can be applied to the case where the placement angle of the product to be processed is adjusted on a processing platform and then processed. A product processing method provided in this embodiment can be executed by a product processing device provided in an embodiment of the present application, which can be implemented by software and / or hardware and integrated in an electronic device that executes the method. Preferably, the electronic device in the embodiment of the present application can be a microprocessor of the processing platform.

[0036] See also Figure 1 The method of this embodiment includes but is not limited to the following steps:

[0037] S110, when it is detected that the product to be processed is placed on the processing platform, a macro program in the processing program of the product to be processed is read to obtain the appearance size information of the product to be processed.

[0038] The processing platform refers to the equipment for processing the product, which may be a CNC machine tool. The appearance dimension information may include the length value, width value and height value of the product to be processed. The macro program may be developed by a control system in the field of CNC machine tools, such as a FANUC system.

[0039] In the embodiment of the present application, the product to be processed can be placed on the processing platform by a robot or manually, and the microprocessor detects in real time whether the product to be processed is placed on the processing platform through a sensor. If it is detected that the product to be processed is placed on the processing platform, the microprocessor can read the QR code posted on the product to be processed through a barcode recognition component to obtain the processing program of the product to be processed; or the microprocessor can receive the processing program of the product to be processed transmitted by the host computer. Then, the microprocessor can obtain the appearance size information of the product to be processed by reading the macro program in the processing program.

[0040] S120 , generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, where the target posture adjustment program is used to adjust the product to be processed from the initial posture to the target posture on the processing platform.

[0041] The initial posture adjustment program refers to a posture adjustment program that has not been instantiated, and may include multiple angle measurement actions and angle adjustment actions. After the initial posture adjustment program is instantiated, the target posture adjustment program can be obtained. The target posture adjustment program includes a measurement subroutine and an adjustment subroutine. The measurement subroutine is used to measure the initial posture of the product to be processed on the processing platform, and the adjustment subroutine is used to adjust the posture of the product to be processed to the target posture.

[0042] In the embodiment of the present application, the measurement subroutine includes a plurality of initial angle measurement actions that are not configured with measurement point data, that is, uninstantiated angle measurement actions. It is necessary to determine the data of the measurement points according to the appearance size information of the product to be processed, and then instantiate the angle measurement action. Similarly, the adjustment subroutine also includes an uninstantiated initial angle adjustment action, and it is necessary to determine the adjustment angle and adjustment direction according to the appearance size information of the product to be processed, and then instantiate the angle adjustment action.

[0043] Specifically, the target posture adjustment program is generated based on the appearance size information and the initial posture adjustment program, including: determining the measurement point of each angle measurement action based on the appearance size information; using the measurement point of the angle measurement action as a variable, substituting it into the pre-generated initial measurement subroutine to obtain the measurement subroutine; executing each angle measurement action in the measurement subroutine through a microprocessor, and obtaining the initial posture of the product to be processed through automatic calculation by the microprocessor; determining the angle difference of adjusting the product to be processed to the target posture based on the initial posture, and then determining the adjustment angle and adjustment direction, and finally determining the angle adjustment action and the adjustment data corresponding to the angle adjustment action; using the angle adjustment action and the adjustment data as variables, substituting them into the pre-generated initial adjustment subroutine to obtain the adjustment subroutine. Among them, the angle adjustment action includes rotating the processing platform clockwise or counterclockwise.

[0044] Further, the measuring point of the angle measurement action is determined based on the appearance dimension information, including: first, performing data calculation on the height value in the appearance dimension information to obtain the Y-axis coordinate of the angle measurement action on the platform coordinate system. For example: a preset value is selected based on the height value in the appearance dimension information, and the preset value may be greater than zero and not greater than the height value, and the value obtained by subtracting the preset value from the height value is determined as the Y-axis coordinate of the angle measurement action on the platform coordinate system. This setting is to allow the probe to detect the product to be processed when measuring with the probe in the subsequent steps.

[0045] Second, the X-axis detection action is used to determine the position of the product to be processed on the X-axis in the platform coordinate system, including the starting position and the ending position. The starting point of the X-axis detection action is determined based on the length value in the appearance size information. By executing the X-axis detection action, the starting position and the ending position of the product to be processed on the X-axis in the platform coordinate system can be obtained, and then the X-axis coordinate data corresponding to the starting position is increased by a preset value, and then used as the first X-axis coordinate of the first measuring point (denoted as X1) for the angle measurement action; the X-axis coordinate data corresponding to the ending position is reduced by a preset value, and then used as the second X-axis coordinate of the second measuring point (denoted as X2) for the angle measurement action. Among them, the platform coordinate system is a coordinate system constructed for the processing platform.

[0046] Third, the coordinate information of the first measuring point is determined based on the Y-axis coordinate and the first X-axis coordinate, such as (X1, Y, n); the coordinate information of the second measuring point is determined based on the Y-axis coordinate and the second X-axis coordinate, such as (X2, Y, n). It should be noted that n is used to indicate that the data on the Z-axis is an uncertain value, and the probe runs on the straight line formed by the Y-axis coordinate and the X-axis coordinate, so that the Z-axis coordinate of the product to be processed at the measuring point can be determined.

[0047] Furthermore, a probe is configured in the processing platform, and the probe is used to measure the initial posture of the product to be processed on the processing platform; executing a measurement subroutine to obtain the initial posture of the product to be processed, including: controlling the probe to measure at a first measuring point to obtain a first Z-axis coordinate of the product to be processed at the first measuring point; controlling the probe to measure at a second measuring point to obtain a second Z-axis coordinate of the product to be processed at the second measuring point; and calculating the initial posture of the product to be processed based on the first Z-axis coordinate, the second Z-axis coordinate, the first X-axis coordinate and the second X-axis coordinate.

[0048] S130. When the target posture adjustment program is finished, a position measurement program is executed to obtain a processing zero point of the product to be processed. The position measurement program is used to measure coordinate information of the product to be processed on the processing platform.

[0049] In the embodiment of the present application, after the measurement subroutine and the adjustment subroutine are generated, the microprocessor controls the probe to execute the measurement subroutine and the adjustment subroutine respectively to adjust the posture of the product to be processed. Preferably, in order to avoid the problem that the angle is large during the first posture adjustment, the calculation error will also increase accordingly, the measurement subroutine can be executed again after the first posture adjustment to determine whether the product to be processed is in the target posture. If it is not in the target posture, the corresponding adjustment subroutine is generated with the current posture of the product to be processed to achieve error compensation correction.

[0050] Furthermore, a probe controller is configured in the processing platform, and the probe is connected to the probe controller; before executing the target posture adjustment program, the method also includes: controlling the probe to operate in a preset measurement area to determine whether there is an obstacle in the preset measurement area, the preset measurement area being the area where the probe controller operates during the execution of the target posture adjustment program and the position measurement program; if so, generating obstacle prompt information, the obstacle prompt information is used to prompt that there is an object in the preset measurement area that will damage the probe controller, and this setting is to avoid economic losses caused by the damage of the probe controller; if not, executing the target posture adjustment program.

[0051] Furthermore, during the execution of the target posture adjustment program and the position measurement program, the method also includes: if the probe does not detect the product to be processed in the X-axis detection area, the Y-axis detection area or the Z-axis detection area, indicating that the placement position deviation of the product to be processed is too large, an abnormal prompt message is generated, and the abnormal prompt message is used to prompt that the product to be processed is in an abnormal state.

[0052] In an embodiment of the present application, the specific process of obtaining the processing zero point of the product to be processed by executing the position measurement program can be: determine the first measurement line formed by the preset X-axis coordinate and the preset Y-axis coordinate, control the probe to detect on the first measurement line, and obtain the Z-axis coordinate value of the product to be processed on the first measurement line. Determine the second measurement line formed by the preset X-axis coordinate and the preset Z-axis coordinate, control the probe to detect on the second measurement line, and obtain the Y-axis coordinate value of the product to be processed on the second measurement line. Determine the third measurement line formed by the preset Y-axis coordinate and the preset Z-axis coordinate, control the probe to detect on the third measurement line, and obtain the X-axis coordinate value of the product to be processed on the third measurement line. Then determine the three-dimensional coordinates corresponding to the processing zero point of the product to be processed based on the Z-axis coordinate value, the Y-axis coordinate value and the X-axis coordinate value. Among them, the processing zero point refers to a point on the workpiece, which is used as a reference point for workpiece processing.

[0053] S140, processing the product to be processed based on the processing program and the processing zero point to obtain a target product after processing.

[0054] Furthermore, when using a probe to measure the data of the product to be processed, when the height value of the product to be processed is too high, the length of the probe needs to be increased accordingly. In order to avoid the probe being too long, the processing platform can be rotated 90 degrees clockwise in the vertical direction, and the probe is used to measure the data of the product to be processed from the side of the product to be processed. Then, before processing the product to be processed based on the processing program and the processing zero point, it also includes: determining whether the current posture information of the processing platform is the target posture information for processing the product to be processed; if not, it indicates that the processing platform is currently rotated 90 degrees vertically, then the platform posture adjustment action of the processing platform is determined based on the current posture information and the target posture information, that is, rotating 270 degrees clockwise or 90 degrees counterclockwise in the vertical direction; when the platform posture adjustment action is completed, the operation of processing the product to be processed based on the processing program and the processing zero point is executed.

[0055] The technical solution provided by this embodiment is that when it is detected that the product to be processed is placed on the processing platform, the macro program in the processing program of the product to be processed is read to obtain the appearance size information of the product to be processed; based on the appearance size information and the initial posture adjustment program, a target posture adjustment program is generated, and the target posture adjustment program is used to adjust the product to be processed from the initial posture to the target posture on the processing platform; when the target posture adjustment program is executed, the position measurement program is executed to obtain the processing zero point of the product to be processed, and the position measurement program is used to measure the coordinate information of the product to be processed on the processing platform; the product to be processed is processed based on the processing program and the processing zero point to obtain the target product after processing. In terms of software design, this application designs a macro program in the processing program, and in terms of hardware design, a probe is configured for the processing platform. The microprocessor of the processing platform can read the processing program before processing to obtain the appearance size information of the product to be processed, and then automatically generate the corresponding target posture adjustment program through the macro. In the measurement process, the probe is used as a sensing device to measure the posture information and position information of the product to be processed respectively, and the posture adjustment and processing zero point measurement of the product to be processed are completed through the automatic calculation of the macro. The present application can greatly reduce the error probability of product processing, can automatically realize the measurement and adjustment process of the placement position of the processed product, and improve the automation degree and processing efficiency of product processing.

[0056] Figure 2 A schematic diagram of a product processing device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the device 200 may include:

[0057] The size determination module 210 is used to read the macro program in the processing program of the product to be processed to obtain the appearance size information of the product to be processed when it is detected that the product to be processed is placed on the processing platform;

[0058] A program generation module 220, for generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, wherein the target posture adjustment program is used to adjust the product to be processed from the initial posture to the target posture on the processing platform;

[0059] A coordinate determination module 230, configured to execute a position measurement program to obtain a processing zero point of the product to be processed when the target posture adjustment program is executed, wherein the position measurement program is used to measure coordinate information of the product to be processed on the processing platform;

[0060] The product processing module 240 is used to process the product to be processed based on the processing program and the processing zero point to obtain a target product after processing.

[0061] Optionally, the target posture adjustment program includes a measurement subroutine and an adjustment subroutine;

[0062] Furthermore, the above-mentioned program generation module 220 can be specifically used to: determine the measurement points of the angle measurement action in the initial posture adjustment program based on the appearance size information; generate the measurement subroutine based on the measurement points of the angle measurement action; execute the measurement subroutine to obtain the initial posture of the product to be processed; determine the angle adjustment action corresponding to adjusting the product to be processed to the target posture and the adjustment data corresponding to the angle adjustment action based on the initial posture, the angle adjustment action including rotating the processing platform clockwise or counterclockwise; generate the adjustment subroutine based on the angle adjustment action and the adjustment data.

[0063] Furthermore, the program generation module 220 may specifically include: a measurement point determination unit and an initial posture determination unit;

[0064] The measurement point determination unit is used to perform data calculation on the height value in the appearance size information to obtain the Y-axis coordinate of the angle measurement action on the platform coordinate system, where the platform coordinate system is a coordinate system constructed for the processing platform; perform an X-axis detection action based on the length value in the appearance size information to obtain a first X-axis coordinate of the angle measurement action at a first measurement point and a second X-axis coordinate at a second measurement point; determine the coordinate information of the first measurement point based on the Y-axis coordinate and the first X-axis coordinate, and determine the coordinate information of the second measurement point based on the Y-axis coordinate and the second X-axis coordinate.

[0065] Optionally, the processing platform is provided with a probe, and the probe is used to measure the initial posture of the product to be processed on the processing platform;

[0066] The initial posture determination unit is used to control the probe to measure at the first measuring point to obtain the first Z-axis coordinate of the product to be processed at the first measuring point; control the probe to measure at the second measuring point to obtain the second Z-axis coordinate of the product to be processed at the second measuring point; and calculate the initial posture of the product to be processed based on the first Z-axis coordinate, the second Z-axis coordinate, the first X-axis coordinate and the second X-axis coordinate.

[0067] Optionally, a probe controller is configured in the processing platform, and the probe is connected to the probe controller;

[0068] Furthermore, the above-mentioned product processing device may also include: a safety detection module;

[0069] The safety detection module is used to control the probe to operate in a preset measurement area before executing the target posture adjustment program to determine whether there is an obstacle in the preset measurement area. The preset measurement area is the area where the probe controller operates during the execution of the target posture adjustment program and the position measurement program; if there is, obstacle prompt information is generated, and the obstacle prompt information is used to prompt that there is an object in the preset measurement area that may damage the probe controller; if not, the target posture adjustment program is executed.

[0070] Furthermore, the above-mentioned product processing device may also include: an abnormality detection module;

[0071] The abnormality detection module is used to generate an abnormality prompt message if the probe fails to detect the product to be processed during the execution of the target posture adjustment program and the position measurement program, and the abnormality prompt message is used to prompt that the product to be processed is in an abnormal state.

[0072] Furthermore, the above-mentioned product processing device may also include: a platform rotation module;

[0073] The platform rotation module is used to determine whether the current posture information of the processing platform is the target posture information for processing the product to be processed before processing the product to be processed based on the processing program and the processing zero point; if not, determine the platform posture adjustment action of the processing platform based on the current posture information and the target posture information; when the platform posture adjustment action is completed, execute the operation of processing the product to be processed based on the processing program and the processing zero point.

[0074] The product processing device provided in this embodiment can be applied to the product processing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0075] Figure 3 It is a block diagram of an electronic device for implementing a product processing method of an embodiment of the present application. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0076] like Figure 3As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0077] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0078] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a product processing method.

[0079] In some embodiments, the product processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the product processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the product processing method in any other appropriate manner (e.g., by means of firmware).

[0080] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0081] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0082] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0083] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0084] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server) or a computing system that includes middleware components (e.g., an application server) or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein) or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0085] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0086] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. For example, those skilled in the art can use the various forms of processes shown above to reorder, add, or delete steps; the steps recorded in the present application can be performed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present application can be achieved, and this document does not limit them here.

[0087] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A product processing method, characterized in that: The method comprises: When it is detected that the product to be processed is placed on the processing platform, a macro program in the processing program of the product to be processed is read to obtain the appearance size information of the product to be processed; generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, wherein the target posture adjustment program is used to adjust the product to be processed from the initial posture to the target posture on the processing platform; When the target posture adjustment program is finished, a position measurement program is executed to obtain the processing zero point of the product to be processed, wherein the position measurement program is used to measure the coordinate information of the product to be processed on the processing platform; The product to be processed is processed based on the processing program and the processing zero point to obtain a target product after processing.

2. The product processing method according to claim 1, characterized in that: The target posture adjustment program includes a measurement subroutine and an adjustment subroutine; the target posture adjustment program is generated based on the appearance size information and the initial posture adjustment program, including: Determine the measurement point of the angle measurement action in the initial posture adjustment procedure based on the appearance size information; generating the measurement subroutine based on the measurement points of the angle measurement action; Executing the measurement subroutine to obtain the initial posture of the product to be processed; Determine, based on the initial posture, an angle adjustment action corresponding to adjusting the product to be processed to the target posture and adjustment data corresponding to the angle adjustment action, wherein the angle adjustment action includes rotating the processing platform clockwise or counterclockwise; The adjustment subroutine is generated based on the angle adjustment action and the adjustment data.

3. The product processing method according to claim 2, characterized in that: The step of determining the measurement point of the angle measurement action in the initial posture adjustment procedure based on the appearance size information includes: Performing data calculation on the height value in the appearance size information to obtain the Y-axis coordinate of the angle measurement action on the platform coordinate system, where the platform coordinate system is a coordinate system constructed for the processing platform; Perform an X-axis detection action based on the length value in the appearance size information to obtain a first X-axis coordinate of the angle measurement action at the first measurement point and a second X-axis coordinate of the second measurement point; The coordinate information of the first measuring point is determined based on the Y-axis coordinate and the first X-axis coordinate, and the coordinate information of the second measuring point is determined based on the Y-axis coordinate and the second X-axis coordinate.

4. The product processing method according to claim 3, characterized in that: The processing platform is provided with a probe, and the probe is used to measure the initial posture of the product to be processed on the processing platform; the executing the measuring subroutine to obtain the initial posture of the product to be processed includes: Controlling the probe to measure at the first measuring point to obtain a first Z-axis coordinate of the product to be processed at the first measuring point; Controlling the probe to measure at the second measuring point to obtain a second Z-axis coordinate of the product to be processed at the second measuring point; An initial posture of the product to be processed is calculated based on the first Z-axis coordinate, the second Z-axis coordinate, the first X-axis coordinate, and the second X-axis coordinate.

5. The product processing method according to claim 4, characterized in that: The processing platform is provided with a probe controller, and the probe is connected to the probe controller; before executing the target posture adjustment program, the method further includes: Controlling the probe to operate in a preset measurement area to determine whether there is an obstacle in the preset measurement area, wherein the preset measurement area is an operating area of ​​the probe controller during the execution of the target posture adjustment program and the position measurement program; If so, obstacle prompt information is generated, wherein the obstacle prompt information is used to prompt that there is an object in the preset measurement area that may damage the probe controller; If not present, the target attitude adjustment procedure is executed.

6. The product processing method according to claim 4, characterized in that: During the execution of the target posture adjustment procedure and the position measurement procedure, the method further includes: If the probe fails to detect the product to be processed, an abnormal prompt message is generated, where the abnormal prompt message is used to prompt that the product to be processed is in an abnormal state.

7. The product processing method according to claim 1, characterized in that: Before processing the product to be processed based on the processing program and the processing zero point, the method further includes: Determining whether the current posture information of the processing platform is the target posture information for processing the product to be processed; If not, determining a platform posture adjustment action of the processing platform based on the current posture information and the target posture information; When the platform posture adjustment action is completed, an operation of processing the product to be processed based on the processing program and the processing zero point is executed.

8. A product processing device, characterized in that: The device comprises: A size determination module, for, when detecting that the product to be processed is placed on the processing platform, reading a macro program in a processing program of the product to be processed to obtain the appearance size information of the product to be processed; A program generation module, used for generating a target posture adjustment program based on the appearance size information and the initial posture adjustment program, wherein the target posture adjustment program is used for adjusting the product to be processed from the initial posture to the target posture on the processing platform; A coordinate determination module, configured to execute a position measurement program to obtain a processing zero point of the product to be processed when the target posture adjustment program is executed, wherein the position measurement program is used to measure coordinate information of the product to be processed on the processing platform; The product processing module is used to process the product to be processed based on the processing program and the processing zero point to obtain a target product after processing.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the product processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the product processing method according to any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Workpiece machining method and related device

    CN119658460A

  • Judgment method and equipment for machining reachability of drilling equipment, storage medium and program

    CN121880704A

  • Methods, equipment, storage media, and procedures for determining the accessibility of hole-making equipment.

    CN121880704B