Method and system for machining to-be-machined part through coordinate transformation processing
By establishing a three-dimensional model and coordinate system in the pentahedral machining center, the coordinate conversion from vertical processing to horizontal processing is automatically processed, and the problems of long processing time and unstable quality caused by manual calculation in the prior art are solved, and efficient and accurate automated processing is achieved.
Patent Information
- Application Number
- CN202411796298.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-02-28
AI Technical Summary
When converting vertical processing to horizontal processing, the existing pentahedral machining centers require manual calculation of the coordinate system offset and rotation angle, resulting in long processing time, unstable quality and unsure of consistency in accuracy.
Through modeling and three-dimensional coordinate establishment, the parameters of vertical and horizontal processing are obtained, and the three-dimensional coordinate conversion is carried out when vertical and horizontal processing is converted to horizontal processing, and the coordinate conversion process is automatically processed.
It effectively avoids manual errors, reduces the skill requirements of machine adjuster technicians, ensures consistent processing accuracy, improves processing efficiency, and realizes full-process automation.
Smart Images

Figure CN119536135A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machining parts to be machined, and in particular, to a method and system for machining parts to be machined using coordinate transformation processing. Background Art
[0002] The pentahedron machining center can ensure that multiple surfaces can be processed after one clamping. It has the functions of both a vertical machining center and a horizontal machining center. During the machining process, it can ensure the position tolerance of the workpiece and has good dimensional consistency. The pentahedron machining center has a complex structure and an advanced control system.
[0003] In the conventional processing of parts to be processed, different processing equipment is used according to the size of the parts to be processed. When the length of the processed parts is less than 300mm, a processing device for rotating the workpiece is often used, and the processing is realized under a milling head by rotating the processed parts. When the length of the processed parts is greater than 300mm, gantry processing is often used; the general process requires two clampings, one clamping is for the vertical machine tool to process the plane position, and the other clamping is for the horizontal machine tool to process the four sides of the side position through the turntable. For example, the Chinese patent invention patent CN117506559A discloses a fixed-beam gantry pentahedron machining center, which relates to the field of mechanical processing technology. The pentahedron machining center can ensure that after one clamping, multiple surfaces can be processed. It has the functions of both a vertical machining center and a horizontal machining center. During the processing, the position tolerance of the workpiece can be guaranteed, and the dimensional consistency is good. , including a gantry and a transport base, a clamping assembly is arranged on the inner side wall of the gantry, a carrying plate is arranged on the transport base, the clamping assembly includes a transverse slide rail fixedly installed on the inner side wall of the gantry, a slider is slidably connected on the transverse slide rail, and a lifting slide rail is fixedly installed on the side wall of the slider to ensure that the processing speed of a pair of workpieces of the processing mechanism is maintained at the initial speed level. The processing of the workpiece requires a sufficient speed to ensure the processing accuracy of the workpiece. If the speed is suddenly reduced during the processing, it will not only increase the burrs on the processing path, but also cause damage to the processing mechanism.
[0004] However, the above pentahedron machining center still has the following disadvantages: it still requires two machining centers, the vertical machining center and the horizontal machining center. When the pentahedron machining center converts from vertical machining to horizontal machining, it is necessary to manually calculate the offset of the X, Y, and Z axes in the coordinate system and the rotation angle of the C axis, and then manually control the conversion. Not only is the machining time long, but errors in manual calculation or program input can lead to machining quality problems or even tool collisions. The consistency of machining accuracy cannot be guaranteed, and the machining efficiency is low.
[0005] Therefore, in order to solve the above problems, it is necessary for us to design a reasonable and efficient method for processing the parts to be processed with coordinate transformation. Summary of the invention
[0006] The purpose of the present invention is to provide a method for processing parts to be processed by coordinate transformation processing. By modeling and establishing three-dimensional coordinates, parameters of vertical processing and horizontal processing are obtained. When vertical processing is converted to horizontal processing, three-dimensional coordinate conversion is performed, which effectively avoids human errors and reduces the skill requirements of machine adjustment technicians. The consistency of processing accuracy is guaranteed, and the whole process is automated, with high processing efficiency.
[0007] To achieve the above object, the present invention is implemented by adopting the following technical solutions: In a first aspect, the present application provides a method for processing a part to be processed by coordinate transformation processing, the method comprising the following steps: S100: construct a three-dimensional model of a pentahedron machining center, which includes a vertical machining tool model and a horizontal machining tool model; S200: When the part to be processed enters the processing position, construct a three-dimensional model of the part to be processed, and superimpose the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron processing center; S300: establishing a first three-dimensional coordinate system based on the vertical processing surface of the part to be processed as a reference; establishing a second three-dimensional coordinate system based on each horizontal processing surface of the part to be processed as a reference; S400: when processing one side of the workpiece to be processed, determine whether vertical-horizontal conversion is required, if yes, convert between vertical processing and horizontal processing and execute step S500; otherwise, directly execute step S500; S500: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters; or, The horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; Then return to step S400 until all surfaces of the part to be processed are processed.
[0008] As a preferred embodiment of the present invention, step S100 includes: S101: Scan the platform, vertical machining tool and horizontal machining tool of the pentahedron machining center using a laser scanner, record reflected laser point information, and form a laser point cloud; S102: extracting nodes and node parameters in the laser point cloud; S103: Import all node parameters into 3D modeling software to perform 3D modeling to obtain a 3D model of the pentahedron machining center.
[0009] As a preferred embodiment of the present invention, step S200 includes: S201: When the part to be processed arrives at the platform of the pentahedron machining center, it is determined whether the part to be processed is within the machining range of the vertical machining tool and the horizontal machining tool; if so, the part to be processed enters the machining position and executes step S202; otherwise, an error is reported; S202: Scanning the part to be processed by using a laser scanner, recording reflected laser point information, obtaining node parameters of each corner of the part to be processed, and constructing a three-dimensional model of the part to be processed by using three-dimensional modeling software; S203: superimposing the three-dimensional model of the part to be processed onto the three-dimensional model of the pentahedron machining center.
[0010] As a preferred embodiment of the present invention, step S300 includes: S301: Taking the vertical machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, obtaining the coordinate parameters between the vertical machining surface of the part to be machined and the vertical machining tool, and establishing a first three-dimensional coordinate system for vertical machining; S302: Taking each horizontal machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, the coordinate parameters between each horizontal machining surface and the horizontal machining tool are obtained, and multiple second three-dimensional coordinate systems for horizontal machining are established.
[0011] As a preferred embodiment of the present invention, step S400 is specifically as follows: when processing one side of the part to be processed, it is determined whether the currently working processing tool does not match the surface to be processed, if so, the vertical processing and horizontal processing are switched, and step S500 is executed; otherwise, step S500 is directly executed; Whether the current machining tool does not match the surface to be machined, including: The current machining tool is a vertical machining tool; the surface to be machined is a horizontal machining surface; as well as, The currently working machining tool is a horizontal machining tool; the surface to be machined is a vertical machining surface.
[0012] As a preferred embodiment of the present invention, step S500 includes: S501: Determine whether the surface to be processed is a vertical processing surface, if so, execute step S502; otherwise, execute step S503; S502: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters, and executes step S504; S503: the horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface, and executes step S504; S504: Determine whether all surfaces of the part to be processed have been processed. If so, the processing of the part to be processed is completed. Otherwise, return to step S400.
[0013] As a preferred embodiment of the present invention, before executing step S503, coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal processing surface are generated in a post-processing program; Coordinate transformation parameters, including the offset of the X, Y, and Z axes and the rotation angle of the C axis.
[0014] In a second aspect, the present invention provides a system for processing a part to be processed by coordinate transformation, the system comprising: The first modeling module; The second modeling module; Coordinate establishment module; Vertical and horizontal conversion judgment module; Processing execution module; The first modeling module constructs a three-dimensional model of a pentahedron machining center, and the three-dimensional model of the pentahedron machining center includes a vertical machining tool model and a horizontal machining tool model; the second modeling module constructs a three-dimensional model of the part to be processed when the part to be processed enters the machining position, and superimposes the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron machining center; the coordinate establishment module establishes a first three-dimensional coordinate system based on the vertical machining surface of the part to be processed; a second three-dimensional coordinate system is established based on each horizontal machining surface of the part to be processed; when processing one side of the part to be processed, the vertical-horizontal conversion judgment module determines whether vertical-horizontal conversion is required, if so, the conversion between vertical machining and horizontal machining is performed, otherwise no conversion is performed; the machining execution module starts the vertical machining tool to perform vertical machining on the vertical machining surface of the part to be processed according to the first three-dimensional coordinate system parameters; or, starts the horizontal machining tool to perform horizontal machining on the horizontal machining surface of the part to be processed according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; until all surfaces of the part to be processed are processed.
[0015] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method provided in any possible implementation manner of the first aspect is implemented.
[0016] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method provided in any possible implementation manner of the first aspect.
[0017] Compared with the prior art, the beneficial effects of the coordinate conversion processing method and system for processing parts to be processed of the present invention are as follows: through modeling and establishment of three-dimensional coordinates, the parameters of vertical processing and horizontal processing are obtained, and when vertical processing is converted to horizontal processing, the three-dimensional coordinate conversion is performed, which effectively avoids human errors, reduces the skill requirements of machine adjustment technicians, ensures the consistency of processing accuracy, and is fully automated, with high processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The present invention is a schematic flow chart of a method for machining a part to be machined with coordinate transformation processing. DETAILED DESCRIPTION
[0019] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0020] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.
[0021] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.
[0022] Example 1: See Figure 1 , Figure 1 1 is a flow chart of a method for processing a part to be processed by coordinate transformation processing provided in an embodiment of the present application. In an embodiment of the present application, the method includes: S100: construct a three-dimensional model of a pentahedron machining center, which includes a vertical machining tool model and a horizontal machining tool model; S200: When the part to be processed enters the processing position, construct a three-dimensional model of the part to be processed, and superimpose the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron processing center; S300: establishing a first three-dimensional coordinate system based on the vertical processing surface of the part to be processed as a reference; establishing a second three-dimensional coordinate system based on each horizontal processing surface of the part to be processed as a reference; S400: when processing one side of the workpiece to be processed, determine whether vertical-horizontal conversion is required, if yes, convert between vertical processing and horizontal processing and execute step S500; otherwise, directly execute step S500; S500: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters; or, The horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; Then return to step S400 until all surfaces of the part to be processed are processed.
[0023] The following is a detailed explanation of each step of this application: When executing step S100, the three-dimensional model of the entire pentahedron machining center is obtained. In fact, the three-dimensional model of the pentahedron machining center includes a vertical machining tool model, a horizontal machining tool model, and a three-dimensional model of the machining platform for the parts to be machined. This is to obtain the tool position of the entire machining platform, to facilitate tool control during machining, and to effectively avoid safety hazards caused by collisions of tools.
[0024] When executing step S200, when the part to be processed enters the processing position, that is, when the part to be processed can be processed, it is necessary to construct a three-dimensional model of the part to be processed, and superimpose the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron machining center; in this way, the volume, position and posture of the part to be processed can be obtained. Although the part to be processed is positioned and clamped during processing, there are still tool errors. In order to ensure the intelligence and accuracy of the processing of the part to be processed, it is necessary to add the three-dimensional model of the part to be processed to the original three-dimensional model of the pentahedron machining center.
[0025] When executing step S300, a first three-dimensional coordinate system for vertical machining and a second three-dimensional coordinate system for horizontal machining are established, and the vertical machining tool is parameter-controlled in the first three-dimensional coordinate system, and the horizontal machining tool is parameter-controlled in the second three-dimensional coordinate system; It should be noted that generally, after the processing of the parts to be processed is completed, many shapes will appear. However, when the parts to be processed enter the pentahedron machining center, they are in a blank state, generally with a regular shape, and a common cubic structure. The top surface and four side surfaces are processed, so the processing of this part is called a pentahedron machining center; we do not limit the shape of the blank, we regard the top surface of the blank of the part to be processed as a vertical machining surface, which is processed by a vertical machining tool; the visible surfaces of the outer surface of the blank of the part to be processed that are rotated 360 degrees around the Z axis are regarded as side surfaces, which are processed by horizontal machining tools and are collectively referred to as horizontal machining surfaces. Since there are multiple horizontal machining surfaces, a second three-dimensional coordinate system needs to be established for each horizontal machining surface. When the horizontal machining tool processes a horizontal machining surface, it needs to refer to the second three-dimensional coordinate system established for the horizontal machining surface for processing.
[0026] When executing step S400, when processing one side of the workpiece to be processed, it is determined whether vertical-horizontal conversion is required. If so, conversion between vertical processing and horizontal processing is performed, and step S500 is executed; otherwise, step S500 is directly executed; Since the parts to be processed have vertical processing surfaces and horizontal processing surfaces, and the pentahedron machining center can only process one surface at a time, there must be a vertical-horizontal conversion, that is, the previous processing surface and the next processing surface are the vertical processing surface and the horizontal processing surface respectively. At this time, it is necessary to convert between vertical processing and horizontal processing, that is, the exchange of vertical processing tools and horizontal processing tools.
[0027] When executing step S500, the vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters; or, The horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; Then return to step S400 until all surfaces of the part to be processed are processed; Here, the vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters, and the horizontal machining tool performs horizontal machining on multiple horizontal machining surfaces of the part to be machined according to the second three-dimensional coordinate system parameters and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system; that is: the machining machine for the part to be machined executes the call vertical head instruction, starts the vertical machining tool, and performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters; the machining machine for the part to be machined executes the call horizontal head instruction, starts the horizontal machining tool, and for each side of the horizontal machining surface machined, the coordinate conversion between the first three-dimensional coordinate system of the vertical machining surface and the second three-dimensional coordinate system of the horizontal machining surface is performed, and each horizontal machining surface of the part to be machined is horizontally machined.
[0028] Embodiment 2: Still referring to Figure 1 , is only one of the embodiments of the present invention. Based on the first embodiment, in a method for processing a part to be processed by coordinate transformation processing of the present invention, Step S100 includes: S101: Scan the platform, vertical machining tool and horizontal machining tool of the pentahedron machining center using a laser scanner, record reflected laser point information, and form a laser point cloud; S102: extracting nodes and node parameters in the laser point cloud; S103: Import all node parameters into 3D modeling software to perform 3D modeling to obtain a 3D model of the pentahedron machining center.
[0029] Similarly, step S200 includes: S201: When the part to be processed arrives at the platform of the pentahedron machining center, it is determined whether the part to be processed is within the machining range of the vertical machining tool and the horizontal machining tool; if so, the part to be processed enters the machining position and executes step S202; otherwise, an error is reported; S202: Scanning the part to be processed by using a laser scanner, recording reflected laser point information, obtaining node parameters of each corner of the part to be processed, and constructing a three-dimensional model of the part to be processed by using three-dimensional modeling software; S203: superimposing the three-dimensional model of the part to be processed onto the three-dimensional model of the pentahedron machining center.
[0030] In the present invention, step S300 includes: S301: Taking the vertical machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, obtaining the coordinate parameters between the vertical machining surface of the part to be machined and the vertical machining tool, and establishing a first three-dimensional coordinate system for vertical machining; S302: Taking each horizontal machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, the coordinate parameters between each horizontal machining surface and the horizontal machining tool are obtained, and multiple second three-dimensional coordinate systems for horizontal machining are established.
[0031] In the present invention, the execution of step S400 is specifically as follows: when processing one side of the part to be processed, it is determined whether the currently working processing tool does not match the surface to be processed, if so, the vertical processing and horizontal processing are switched, and step S500 is executed; otherwise, step S500 is directly executed; Whether the current machining tool does not match the surface to be machined, including: The current machining tool is a vertical machining tool; the surface to be machined is a horizontal machining surface; as well as, The currently working machining tool is a horizontal machining tool; the surface to be machined is a vertical machining surface.
[0032] Embodiment 3: Still referring to Figure 1 , which is only one of the embodiments of the present invention. On the basis of any of the above embodiments, in a method for processing a part to be processed by coordinate transformation processing of the present invention, when executing step S500, it specifically includes: S501: Determine whether the surface to be processed is a vertical processing surface, if so, execute step S502; otherwise, execute step S503; S502: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters, and executes step S504; S503: the horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface, and executes step S504; S504: Determine whether all surfaces of the part to be processed have been processed. If so, the processing of the part to be processed is completed. Otherwise, return to step S400.
[0033] It should be noted that before executing step S503, coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface are generated in the post-processing program; Coordinate transformation parameters, including the offset of the X, Y, and Z axes and the rotation angle of the C axis.
[0034] The post-processing program is actually a post-processing function. In one embodiment of the present application, the post-processing function is as follows: #============================================================= proc PB_CMD_custom_command_1 {} { #============================================================= global ls ws global mom_kin_coordinate_system_type if {[string compare "CSYS" $mom_kin_coordinate_system_type]} { MOM_output_literal "G17 G49 G40 G90 G80 M57\nG91 G28 Z0.\nM05\nM01\nM73 K1" set ls 1 } else { MOM_output_literal "G17 G49 G40 G90 G80 M57\nG91 G28 Z0.\nM05\nT00M06\nM01\nM73 K2" set ws 1 } } #============================================================= proc PB_CMD_custom_command_2 {} { #============================================================= global ls ws ls_buff0 ws_buff0 mom_kin_coordinate_system_type if {[string compare "CSYS" $mom_kin_coordinate_system_type]} { set ls 1} else { set ws 1 } if [info exists ls] { if {$ls_buff0==0&&$ls==1} { MOM_output_literal "M05\nM09\nM57\nG91 G28 Z0.\nT00 M06\nM01\nM73 K1\nG17 G49 G40 G90 G80" } if {$ls_buff0==1&&$ls==1} { MOM_output_literal "M05\nM09\nG91 G28 Z0.\nM01\nG17 G49 G40 G90 G80" } } if [info exists ws] { if {$ws_buff0==0&&$ws==1} { MOM_output_literal "M05\nM09\nM57\nG91 G28 Z0.\nT00 M06\nM01\nM73 K2\nG17 G49 G40 G90 G80 " } if {$ws_buff0==1&&$ws==1} { MOM_output_literal "M05\nM09\nM57\nG91 G28 Z0.\nM01\nG17 G49 G40 G90G80" } } #============================================================= proc PB_CMD_output_g54_w54_xy_g43 {} { #============================================================= global ls ws mom_out_angle_pos ls_buff ws_buff mom_out_angle_pos_0buff global mom_tool_number ls_buff0 ws_buff0 if {[info exists ls]&&$ls==1} { if {[info exists ls_buff0]&&$ls_buff0==1} { MOM_do_template g54_xy MOM_force once G_adjust H MOM_do_template g54_z set ls_buff 1 set ws_buff 0 } else { MOM_output_literal "M05\nM09\nM57\nG91 G28 Z0.\nT00 M06\nM01\nM73 K1\nG17 G49 G40 G90 G80\nT$mom_tool_number M06" MOM_do_template g54_xy MOM_force once G_adjust H MOM_do_template g54_z set ls_buff 1 set ws_buff 0 } } if {[info exists ws]&&$ws==1} { set mom_out_angle_pos(0) [expr $dpp_ge(coord_rot_angle,0)+90] if {[info exists ws_buff0]&&$ws_buff0==1&&[info exists mom_out_angle_pos_0buff]&&$mom_out_angle_pos_0buff==$mom_out_angle_pos(0)} { MOM_force once G_adjust H MOM_do_template g54_z MOM_do_template w54_xy set ls_buff 0 set ws_buff 1 } else { MOM_output_literal "M05\nM09\nM57\nG91 G28 Z0." if {![info exists ws_buff0] || $ws_buff0==0} {MOM_output_literal "T00M06\nM01\nM73 K2\nG17 G49 G40 G90 G80\nT$mom_tool_number M06"} MOM_do_template m74_c MOM_do_template m58_c MOM_force once G_adjust H MOM_do_template g54_z MOM_do_template w54_xy set ls_buff 0 set ws_buff 1 set mom_out_angle_pos_0buff $mom_out_angle_pos(0) } } } In a method for machining a part to be machined with coordinate transformation processing of the present invention, the machining of the part to be machined has three different execution schemes.
[0035] Solution 1: Firstly, the vertical machining surface of the part to be machined is machined by a vertical machining tool, and then each horizontal machining surface of the part to be machined is machined one by one by a horizontal machining tool.
[0036] Solution 2: First, each horizontal machining surface of the part to be machined is machined one by one by a horizontal machining tool, and then the vertical machining surface of the part to be machined is machined by a vertical machining tool. The difference from Solution 1 is that the vertical machining surface of the part to be machined is machined last. In Scheme 1 and Scheme 2, at least one conversion between vertical processing and horizontal processing is required to complete the processing of the parts to be processed; Solution three, first use the horizontal machining tool to process part of the horizontal machining surface of the part to be processed one by one, then use the vertical machining tool to process the vertical machining surface of the part to be processed, and finally use the horizontal machining tool to process the remaining horizontal machining surfaces of the part to be processed one by one; The difference from Scheme 1 and Scheme 2 is that the vertical processing surface of the part to be processed is inserted between multiple horizontal processing surfaces for processing, and at least two conversions between vertical processing and horizontal processing are required to complete the processing of the part to be processed.
[0037] As one of the embodiments of the present invention, no matter which of the above two schemes is used, after driving the horizontal machining tool to rotate the C-axis, since the position of the horizontal machining tool relative to the part to be machined has changed, it is necessary to re-establish the coordinate conversion between the first three-dimensional coordinate system of the vertical machining surface of the part to be machined and the second three-dimensional coordinate system of the horizontal machining surface of the part to be machined currently being machined, that is, each time a horizontal machining surface is machined, a coordinate conversion between the machining coordinate system of the vertical machining surface of the part to be machined (first three-dimensional coordinate system) and the machining coordinate system of the horizontal machining surface of the part to be machined (second three-dimensional coordinate system) is performed.
[0038] The present invention provides a processing method for a part to be processed by coordinate conversion processing. By modeling and establishing three-dimensional coordinates, parameters of vertical processing and horizontal processing are obtained. When vertical processing is converted to horizontal processing, the three-dimensional coordinates are converted, which effectively avoids human errors and reduces the skill requirements of machine adjustment technicians. The consistency of processing accuracy is guaranteed, and the whole process is automated with high processing efficiency.
[0039] Embodiment 4: The present application embodiment provides a system for processing parts to be processed by coordinate transformation, the system comprising: The first modeling module; The second modeling module; Coordinate establishment module; Vertical and horizontal conversion judgment module; Processing execution module; The first modeling module constructs a three-dimensional model of a pentahedron machining center, and the three-dimensional model of the pentahedron machining center includes a vertical machining tool model and a horizontal machining tool model; the second modeling module constructs a three-dimensional model of the part to be processed when the part to be processed enters the machining position, and superimposes the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron machining center; the coordinate establishment module establishes a first three-dimensional coordinate system based on the vertical machining surface of the part to be processed; a second three-dimensional coordinate system is established based on each horizontal machining surface of the part to be processed; when processing one side of the part to be processed, the vertical-horizontal conversion judgment module determines whether vertical-horizontal conversion is required, if so, the conversion between vertical machining and horizontal machining is performed, otherwise no conversion is performed; the machining execution module starts the vertical machining tool to perform vertical machining on the vertical machining surface of the part to be processed according to the first three-dimensional coordinate system parameters; or, starts the horizontal machining tool to perform horizontal machining on the horizontal machining surface of the part to be processed according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; until all surfaces of the part to be processed are processed.
[0040] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0041] It can be understood that the system provided in the embodiments of the present invention is applicable to the method described in any one of embodiments one to three. The specific functions of each module can refer to the above method flow and will not be repeated here.
[0042] Embodiment 5, an electronic device provided by the embodiment of the present invention is used to implement the method described in any one of embodiments 1 to 3. The electronic device may include: at least one central processor, at least one network interface, a control interface, a memory, and at least one communication bus.
[0043] Among them, the communication bus is used to realize the connection, communication and information exchange between various components.
[0044] The network interface may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0045] Among them, the control interface is used to output control operations according to instructions.
[0046] The central processing unit may include one or more processing cores. The central processing unit uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data according to the method described in the first embodiment by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory.
[0047] The memory may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory may be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), and methods for implementing the above-mentioned embodiment 1; the data storage area may store data involved in each of the above method embodiments, etc.
[0048] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above embodiments 1 to 3 is implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0049] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0050] 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.
[0051] In the several embodiments provided by the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0052] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0053] 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 computer-readable memory. Based on this understanding, the technical solution of the present invention, in essence, 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. The computer software product is stored in a memory, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., various media that can store program codes.
[0054] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device comprising the elements.
[0056] The above contents are further detailed descriptions of the present invention in combination with specific preferred implementation modes, and it cannot be determined that the specific embodiments of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for processing a part to be processed by coordinate transformation, characterized in that: The following steps are involved: S100: construct a three-dimensional model of a pentahedron machining center, which includes a vertical machining tool model and a horizontal machining tool model; S200: When the part to be processed enters the processing position, construct a three-dimensional model of the part to be processed, and superimpose the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron processing center; S300: establishing a first three-dimensional coordinate system based on the vertical processing surface of the part to be processed as a reference; establishing a second three-dimensional coordinate system based on each horizontal processing surface of the part to be processed as a reference; S400: when processing one side of the workpiece to be processed, determine whether vertical-horizontal conversion is required, if yes, convert between vertical processing and horizontal processing and execute step S500; otherwise, directly execute step S500; S500: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters; or, The horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface; Then return to step S400 until all surfaces of the part to be processed are processed.
2. A method for processing a part to be processed by coordinate transformation processing according to claim 1, characterized in that: Step S100 includes: S101: Scan the platform, vertical machining tool and horizontal machining tool of the pentahedron machining center using a laser scanner, record reflected laser point information, and form a laser point cloud; S102: extracting nodes and node parameters in the laser point cloud; S103: Import all node parameters into 3D modeling software to perform 3D modeling to obtain a 3D model of the pentahedron machining center.
3. The method for processing a part to be processed by coordinate transformation processing according to claim 1, characterized in that: Step S200 includes: S201: When the part to be processed arrives at the platform of the pentahedron machining center, it is determined whether the part to be processed is within the machining range of the vertical machining tool and the horizontal machining tool; if so, the part to be processed enters the machining position and executes step S202; otherwise, an error is reported; S202: Scanning the part to be processed by using a laser scanner, recording reflected laser point information, obtaining node parameters of each corner of the part to be processed, and constructing a three-dimensional model of the part to be processed by using three-dimensional modeling software; S203: superimposing the three-dimensional model of the part to be processed onto the three-dimensional model of the pentahedron machining center.
4. The method for processing a part to be processed by coordinate transformation processing according to claim 1, characterized in that: Step S300 includes: S301: Taking the vertical machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, obtaining the coordinate parameters between the vertical machining surface of the part to be machined and the vertical machining tool, and establishing a first three-dimensional coordinate system for vertical machining; S302: Taking each horizontal machining surface of the part to be machined as a reference, according to the three-dimensional model of the pentahedron machining center superimposed with the three-dimensional model of the part to be machined, the coordinate parameters between each horizontal machining surface and the horizontal machining tool are obtained, and multiple second three-dimensional coordinate systems for horizontal machining are established.
5. The method for processing a part to be processed by coordinate transformation processing according to claim 1, characterized in that: Step S400 is specifically as follows: when processing one side of the part to be processed, it is determined whether the current processing tool does not match the surface to be processed. If so, the vertical processing and horizontal processing are switched and step S500 is executed; otherwise, step S500 is directly executed; Whether the current machining tool does not match the surface to be machined, including: The current machining tool is a vertical machining tool; the surface to be machined is a horizontal machining surface; as well as, The currently working machining tool is a horizontal machining tool; the surface to be machined is a vertical machining surface.
6. The method for processing a part to be processed by coordinate transformation according to claim 1, characterized in that: Step S500 includes: S501: Determine whether the surface to be processed is a vertical processing surface, if so, execute step S502; otherwise, execute step S503; S502: The vertical machining tool performs vertical machining on the vertical machining surface of the part to be machined according to the first three-dimensional coordinate system parameters, and executes step S504; S503: the horizontal machining tool performs horizontal machining on the horizontal machining surface of the part to be machined according to the second three-dimensional coordinate system parameters of the horizontal machining surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal machining surface, and executes step S504; S504: Determine whether all surfaces of the part to be processed have been processed. If so, the processing of the part to be processed is completed. Otherwise, return to step S400.
7. A method for processing a part to be processed by coordinate transformation processing according to claim 7, characterized in that: Before executing step S503, coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal processing surface are generated in a post-processing program; Coordinate transformation parameters, including the offset of the X, Y, and Z axes and the rotation angle of the C axis.
8. A system for processing parts to be processed by coordinate transformation, characterized in that: include: The first modeling module; The second modeling module; Coordinate establishment module; Vertical and horizontal conversion judgment module; Processing execution module; The first modeling module constructs a three-dimensional model of a pentahedron machining center, and the three-dimensional model of the pentahedron machining center includes a vertical machining tool model and a horizontal machining tool model; the second modeling module constructs a three-dimensional model of the part to be processed when the part to be processed enters the machining position, and superimposes the three-dimensional model of the part to be processed on the three-dimensional model of the pentahedron machining center; The coordinate establishment module establishes a first three-dimensional coordinate system based on the vertical processing surface of the part to be processed; a second three-dimensional coordinate system is established based on each horizontal processing surface of the part to be processed; when processing one side of the part to be processed, the vertical-horizontal conversion judgment module determines whether vertical-horizontal conversion is required, and if so, conversion between vertical processing and horizontal processing is performed, otherwise no conversion is performed; the processing execution module starts the vertical processing tool to perform vertical processing on the vertical processing surface of the part to be processed according to the first three-dimensional coordinate system parameters; or, starts the horizontal processing tool to perform horizontal processing on the horizontal processing surface of the part to be processed according to the second three-dimensional coordinate system parameters of the horizontal processing surface and the coordinate conversion parameters between the first three-dimensional coordinate system and the second three-dimensional coordinate system of the horizontal processing surface; until all surfaces of the part to be processed are processed.
9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for machining a part to be machined by the coordinate transformation processing according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Fixed beam type gantry pentahedron machining center
CN117506559A
Cited By
Laser processing system, laser processing method and five-axis laser processing equipment
CN120580282A