Suitcase cutting processing method based on double-channel ten-axis numerical control system
Through the bag cutting method of the dual-channel ten-axis CNC system, the problems of large cumulative error and low efficiency caused by multiple clamping in the prior art are solved, and automated cutting processing is realized, cutting quality and efficiency are improved, and cost is reduced.
Patent Information
- Application Number
- CN202510845733.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-06-24
AI Technical Summary
The existing luggage cutting and processing technology has multiple clamping, resulting in large cumulative errors, low efficiency and high cost. The tool path planning relies on manual experience to lead to unstable surface roughness, which cannot meet the multi-angle adaptive machining.
Using a dual-channel ten-axis CNC system, by selecting the processing mode and inputting corresponding parameters, the G code executed by the dual-channel machine tool is generated, including spatial arc, inclined circle and linear processing, and automatic cutting is achieved using double rotation matrix decomposition and CAM algorithm to reduce labor costs.
It improves the consistency of cutting processing efficiency and quality, reduces cutting processing costs, and realizes automatic cutting with multi-angle adaptive processing.
Smart Images

Figure CN120347837A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the processing field of luggage cutting, and particularly relates to a luggage cutting processing method based on a dual-channel ten-axis numerical control system. Background Art
[0002] With the continuous improvement of luggage technology, the modernization, personalization, and artistry of luggage shells have become trends, which has led to more complex curved surface cutting, multi-angle cutting, and special-shaped processing in luggage manufacturing. However, there are many pain points in the current luggage cutting processing technology. Luggage components (such as curved bags and special-shaped fasteners) need to rely on multiple single-axis or three-axis machine tools for step-by-step processing, which requires multiple clampings. Multiple clampings result in a greater cumulative error, and the separation of multiple processes also makes the efficiency lower. On the other hand, due to the dependence on manual experience for the tool path planning during the processing of existing machine tools, the control of surface roughness is unstable, and it cannot meet the multi-angle adaptive processing of luggage. Moreover, existing machine tools are single-channel processing, with low processing efficiency and high costs. Summary of the Invention
[0003] The purpose of the present invention is to propose a luggage cutting processing method based on a dual-channel ten-axis numerical control system, realizing automated cutting processing, effectively improving the cutting processing efficiency, consistency, and quality, and reducing the cutting processing cost.
[0004] The present invention is realized through the following technical solutions: A luggage cutting processing method based on a dual-channel ten-axis numerical control system, the numerical control system including a dual-channel machine tool, comprising the following steps: Step S1, select a processing mode and input the parameters corresponding to the selected processing mode. Among them, the processing modes include space arc processing, inclined plane circle processing, and straight line processing. The parameters corresponding to space arc processing include the starting point coordinates of the space arc, the intermediate point coordinates of the space arc, and the ending point coordinates of the space arc. The parameters corresponding to inclined plane circle processing include the radius of the inclined plane circle and the center coordinates of the inclined plane circle. The parameters corresponding to straight line processing include the coordinates of each point forming the straight line; Step S2, when the processing mode is space arc processing, obtain the coordinates of discrete points on the space arc according to the corresponding parameters, and then obtain the processing trajectory and generate the G code executed by the dual-channel machine tool; When the processing mode is inclined plane circle processing, obtain the inclined plane circle according to the corresponding parameters, and decompose the inclined plane circle by a double rotation matrix, and then obtain the processing trajectory and generate the G code executed by the dual-channel machine tool; When the processing mode is straight line processing, obtain the processing trajectory according to the coordinates of each point and generate the G code executed by the dual-channel machine tool.
[0005] Further, the dual-channel machine tool is composed of an independent first five-axis machining mechanism and a second five-axis machining mechanism. The moving axes of the first five-axis machining mechanism include the X1 axis, Y1 axis, Z1 axis, C1 axis, and B1 axis, and the moving axes of the second five-axis machining mechanism include the X2 axis, Y2 axis, Z2 axis, C2 axis, and B2 axis. The X1 axis, X2 axis, Y1 axis, and Y2 axis are planar linear motion axes for controlling the movement of the cutting spindle in the horizontal plane, the Z1 axis and Z2 axis are vertical linear motion axes for controlling the movement of the cutting spindle in the vertical direction, the C1 axis and C2 axis are rotation axes for controlling the rotation angle of the cutting spindle, and the B1 axis and B2 axis are yaw axes for controlling the yaw angle of the cutting spindle.
[0006] Further, in step S1, it also includes inputting machining parameters, and the machining parameters include machining feed speed and spindle speed.
[0007] Further, in step S1, the numerical control system has a machining interface, and the machining mode and corresponding parameters are stored row by row in the form of a table through the machining interface.
[0008] Further, in step S2, during machining, a loop is performed for each row of data in the table, and during each loop, G-code is generated according to the machining mode and its corresponding parameters.
[0009] Further, in step S2, when the machining mode is spatial circular arc machining, the steps for generating G-code are as follows: Step S211: Obtain the normal vector of the plane determined by the starting point coordinates of the spatial circular arc, the intermediate point coordinates of the spatial circular arc, and the ending point coordinates of the spatial circular arc, and rotate the machine tool coordinate system so that its Z-axis aligns with the normal vector to obtain a first new coordinate system, where ; Step S212: According to the formula obtain the center coordinates O of the spatial circular arc, where is the radius of the spatial circular arc, is the angle between the vector and ; Step S213: Divide the spatial circular arc into N 1 equal parts, and calculate the coordinates of the i th equally divided point on the spatial circular arc in the first new coordinate system according to the formula , and then according to the formula Rotate the coordinates back to the machine tool coordinate system, and the spatial point coordinates corresponding to the equally divided points can be obtained. , the unit machining trajectory is composed of the spatial point coordinates corresponding to each equally divided point. G-code is generated according to the unit machining trajectory, machining feed rate, and spindle speed. Among them, , R ' is the rotation matrix for rotating the machine tool coordinate system to obtain the first new coordinate system.
[0010] Furthermore, in step S2, when the machining mode is inclined plane circle machining, generating G-code includes the following steps: Step S221: Project the inclined plane circle onto the XY plane of the machine tool coordinate system, and calculate the angle between the inclined plane circle and the XY plane of the machine tool coordinate system, as well as the projection direction angle of the unit normal vector, where A , B , C are the original components of the inclined plane circle normal vector in the machine tool coordinate system X , Y , Z axes respectively; Step S222: Construct the rotation transformation matrix as , so that the machine tool coordinate system is transformed according to the transformation matrix to obtain the second new coordinate system. Among them, is the matrix for rotating the machine tool coordinate system around the Z axis by , is the matrix for tilting the machine tool coordinate system towards the Y axis by ; Step S223: Divide the inclined plane circle into N 2 equal parts in the second new coordinate system. Then, the I th equally divided point p I has spatial coordinates expressed as , and a unit machining trajectory is formed by N 2 spatial coordinates. G-code is generated according to the unit machining trajectory, machining feed rate, and spindle speed. Among them, , , r is the radius of the inclined plane circle, is the coordinate of the center of the inclined plane circle.
[0011] Furthermore, in step S2, when the machining mode is straight line machining, G-code is generated according to the coordinates of each point forming the straight line, machining feed rate, and spindle speed.
[0012] The present invention has the following beneficial effects: 1. The present invention generates G-codes for a dual-channel machine tool according to corresponding parameters for the possible machining of spatial arcs, inclined plane circles, and straight lines in luggage processing. More specifically, for the machining of spatial arcs, the coordinates of discrete points on the spatial arc are obtained according to the corresponding parameters, and then the machining trajectory is obtained and the G-codes for the dual-channel machine tool are generated. For the machining of inclined plane circles, the inclined plane circle is obtained according to the corresponding parameters, and the inclined plane circle is decomposed by a double rotation matrix, and then the machining trajectory is obtained and the G-codes for the dual-channel machine tool are generated. For straight-line machining, the machining trajectory is obtained according to the coordinates of each point and the G-codes for the dual-channel machine tool are generated, so as to realize automatic cutting machining, without multiple machine tools for step-by-step machining, thus effectively improving the cutting machining efficiency, consistency, and quality, reducing the manual labor cost, and further reducing the cutting machining cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The present invention will be further described in detail below with reference to the accompanying drawings.
[0014] Figure 1 is a flowchart of the present invention.
[0015] Figure 2 is a schematic structural diagram of the dual-channel machine tool of the present invention.
[0016] Figure 3 is a schematic diagram of the spatial arc trajectory of the present invention.
[0017] Figure 4 is a schematic diagram of the inclined plane circle trajectory of the present invention.
[0018] Among them, 1. X1 axis; 2. Y1 axis; 3. Z1 axis; 4. B1 axis; 5. C1 axis; 6. X2 axis; 7. Y2 axis; 8. Z2 axis; 9. B2 axis; 10. C2 axis; 11. Electric cabinet; 12. Control console. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] As Figure 1 shown, the luggage cutting and processing method based on a dual-channel ten-axis numerical control system includes the following steps: Step S1. Select a machining mode and input the parameters corresponding to the selected machining mode. Among them, the machining modes include spatial arc machining, inclined plane circle machining, and straight-line machining. The parameters corresponding to spatial arc machining include the starting point coordinates of the spatial arc, the intermediate point coordinates of the spatial arc, and the ending point coordinates of the spatial arc. The parameters corresponding to inclined plane circle machining include the radius of the inclined plane circle and the center coordinates of the inclined plane circle. The parameters corresponding to straight-line machining include the coordinates of each point forming the straight line; Among them, as Figure 2As shown in the figure, the numerical control system includes a double-channel machine tool. The double-channel machine tool consists of an independent first five-axis machining mechanism and a second five-axis machining mechanism, and also includes an electrical cabinet 11 for supplying power to the first five-axis machining mechanism and the second five-axis machining mechanism, and a console 12 for controlling the actions of the first five-axis machining mechanism and the second five-axis machining mechanism. The moving axes of the first five-axis machining mechanism include an X1 axis 1, a Y1 axis 2, a Z1 axis 3, a C1 axis 5, and a B1 axis 4. The moving axes of the second five-axis machining mechanism include an X2 axis 6, a Y2 axis 7, a Z2 axis 8, a C2 axis 10, and a B2 axis 9. The X1 axis 1, X2 axis 6, Y1 axis 2, and Y2 axis 7 are planar linear motion axes for controlling the movement of the cutting spindle in the horizontal plane. The Z1 axis 3 and Z2 axis 8 are vertical linear motion axes for controlling the movement of the cutting spindle in the vertical direction. The C1 axis 5 and C2 axis 10 are rotation axes for controlling the rotation angle of the cutting spindle. The B1 axis 4 and B2 axis 9 are swing axes for controlling the swing angle of the cutting spindle. In this way, double five-axis control is achieved, enabling multi-axis linkage motion and independent motion of the two five-axis machining mechanisms, thus realizing efficient motion machining of various complex shapes.
[0020] In the machining interface designed in the numerical control system, the user inputs the machining mode and corresponding parameters through this machining interface. Each machining mode and its corresponding parameters are stored row by row in tabular form. In addition, the user also needs to input machining parameters, which include machining feed speed and spindle speed.
[0021] Step S2: When the machining mode is spatial arc machining, obtain the coordinates of discrete points on the spatial arc according to the corresponding parameters, and then obtain the machining trajectory and generate the G code executed by the double-channel machine tool; When the machining mode is inclined plane circle machining, obtain the inclined plane circle according to the corresponding parameters, and decompose the inclined plane circle by a double rotation matrix, and then obtain the machining trajectory and generate the G code executed by the double-channel machine tool; When the machining mode is linear machining, obtain the machining trajectory according to the coordinates of each point and generate the G code executed by the double-channel machine tool; More specifically, the numerical control system integrates CAM algorithms corresponding to different machining modes to generate G code machining programs. The CAM algorithm is programmed in the C++ programming language. Its overall framework uses loop statements, which are loops for each row of data in the table. During each loop, G codes are generated according to the machining mode and its corresponding parameters.
[0022] The core of the CAM algorithm is to obtain the corresponding unit trajectory and the parameters of the corresponding G code according to the loop variable for each row of data in the table. By setting identifiers corresponding to the machining mode (taking values of 0, 1, 2 in this embodiment), in the CAM algorithm, use the if judgment statement to judge the values of the three identifiers, and select the sub-algorithm function bodies corresponding to different machining modes, so as to perform corresponding trajectory planning and G code generation.
[0023] When the machining mode is spatial circular arc machining, the unit trajectory is a spatial circular arc as shown in Figure 3 (the inclined block in Figure 3 is part of a luggage case), and generating the G code includes the following steps: Step S211: According to the starting point coordinates of the spatial circular arc , the intermediate point coordinates of the spatial circular arc and the ending point coordinates of the spatial circular arc, three non-collinear points can determine the plane where the spatial circular arc lies. Construct vectors and from these three points: , and then obtain the normal vector of the plane where the spatial circular arc lies. This normal vector determines the spatial orientation of the spatial circular arc, and rotate the machine tool coordinate system so that its Z-axis aligns with the normal vector to obtain the first new coordinate system; Step S212: Obtain the center coordinates of the spatial circular arc according to the formula O , where is the radius of the spatial circular arc, is the included angle between vectors and , is the center position vector of the spatial circular arc determined by three points P 1, P 2, P 3 in space. The center coordinates have the same numerical value as this center position vector; Step S213: Divide the spatial circular arc into N 1 parts to discretize the spatial circular arc. Calculate the coordinates of the i -th equally divided point on the spatial circular arc in the first new coordinate system according to the formula , and then rotate this coordinate back to the machine tool coordinate system according to the formula to obtain the spatial point coordinates corresponding to this equally divided point. The unit machining trajectory is composed of the spatial point coordinates corresponding to each equally divided point. Generate the G code according to this unit machining trajectory, machining feed rate, and spindle speed. Among them, , R ' is the rotation matrix for rotating the machine tool coordinate system to obtain the first new coordinate system. The process of rotating the coordinates of the equally divided point back to the machine tool coordinate system is the inverse process of rotating the machine tool coordinate system to obtain the first new coordinate system.
[0024] When the machining mode is inclined plane circular machining, the unit trajectory is an inclined plane circle as shown in Figure 4 ( Figure 4The inclined block (which is part of the luggage case), generating G-code includes the following steps: Step S221: Define the normal vector perpendicular to the inclined plane circle as , A , B , C are the original components of the normal vector in the X, Y, and Z directions of the machine tool coordinate system respectively. To eliminate the influence of the normal vector length on the projection calculation, the normal vector is unitized to obtain X , Y , Z . Then project the inclined plane circle onto the XY plane of the machine tool coordinate system, and calculate the angle between the inclined plane circle and the XY plane of the machine tool coordinate system, as well as the projection direction angle of the unit normal vector ; ; Step S222: Construct the rotation transformation matrix as , so that the machine tool coordinate system is transformed according to the transformation matrix to obtain the second new coordinate system. Among them, is the matrix for rotating the machine tool coordinate system around the Z axis by , is the matrix for tilting the machine tool coordinate system towards the Y axis by ; Step S223: Divide the inclined plane circle into N 2 equal parts in the second new coordinate system. Then the spatial coordinates of the I th equal point p I are expressed as , that is . From N 2 spatial coordinates form a unit machining trajectory. Generate G-code according to this unit machining trajectory, machining feed speed, and spindle speed. Among them, , , r is the radius of the inclined plane circle, is the coordinate of the center of the inclined plane circle. Through the double rotation matrix decomposition, compared with the traditional homogeneous coordinate transformation method, the calculation amount of three-dimensional coordinate transformation can be greatly reduced, and at the same time, it supports any normal vector direction, including the vertical plane ( C = 0) and the horizontal plane ( C = 1).
[0025] When the machining mode is linear machining, generate G-code according to the coordinates of each point forming the line, machining feed speed, and spindle speed.
[0026] According to the above G-code machining program, corresponding to the machining trajectory on the machine tool workpiece coordinate system, it is input into the numerical control system of the dual-channel machine tool, and the corresponding luggage cutting machining is completed by the numerical control system. This process is the prior art. Generally, the G-code is interpreted by the interpreter and interpolated by the interpolator. Considering the structural dimension parameters of the machine tool and the tool parameters such as the tool radius and length, through the forward and inverse kinematic solutions, the coordinate values of each servo axis of the machine tool are obtained, and after corresponding offsets and compensations, they are input into the drivers of their respective servo motors, thereby controlling the movement of the machine tool to complete the corresponding luggage cutting machining. Users only need to understand the machining process, obtain the corresponding parameters according to the existing luggage, and do not need to understand the generation process of the machining program to achieve efficient programming of luggage products.
[0027] As described above, it is only a preferred embodiment of the present invention, and thus the scope of implementation of the present invention cannot be limited thereby. That is, equivalent changes and modifications made according to the scope of the patent application of the present invention and the content of the specification should still fall within the scope covered by the patent of the present invention.
Claims
1. A method for cutting and processing luggage based on a dual-channel ten-axis numerical control system, characterized in that: The numerical control system includes a dual-channel machine tool, and comprises the following steps: Step S1: Select a machining mode and input the parameters corresponding to the selected machining mode. Among them, the machining modes include spatial circular arc machining, inclined plane circular machining, and linear machining. The parameters corresponding to spatial circular arc machining include the starting point coordinates of the spatial circular arc, the intermediate point coordinates of the spatial circular arc, and the ending point coordinates of the spatial circular arc. The parameters corresponding to inclined plane circular machining include the radius of the inclined plane circle and the center coordinates of the inclined plane circle. The parameters corresponding to linear machining include the coordinates of each point forming the line. Step S2: When the machining mode is spatial circular arc machining, obtain the coordinates of discrete points on the spatial circular arc according to the corresponding parameters, and then obtain the machining trajectory and generate the G code executed by the dual-channel machine tool. When the machining mode is inclined plane circular machining, obtain the inclined plane circle according to the corresponding parameters, and decompose the inclined plane circle by a double rotation matrix, and then obtain the machining trajectory and generate the G code executed by the dual-channel machine tool. When the machining mode is linear machining, obtain the machining trajectory according to the coordinates of each point and generate the G code executed by the dual-channel machine tool.
2. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 1, wherein: The dual-channel machine tool is composed of an independent first five-axis machining mechanism and a second five-axis machining mechanism. The moving axes of the first five-axis machining mechanism include the X1 axis, Y1 axis, Z1 axis, C1 axis, and B1 axis. The moving axes of the second five-axis machining mechanism include the X2 axis, Y2 axis, Z2 axis, C2 axis, and B2 axis. The X1 axis, X2 axis, Y1 axis, and Y2 axis are plane linear moving axes for controlling the movement of the cutting spindle in the horizontal plane. The Z1 axis and Z2 axis are vertical linear moving axes for controlling the movement of the cutting spindle in the vertical direction. The C1 axis and C2 axis are rotation axes for controlling the rotation angle of the cutting spindle. The B1 axis and B2 axis are yaw axes for controlling the yaw angle of the cutting spindle.
3. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 1, wherein: In step S1, it also includes inputting machining parameters, and the machining parameters include machining feed speed and spindle speed.
4. The luggage cutting and processing method based on a dual-channel ten-axis numerical control system according to claim 2, wherein: In step S1, the numerical control system has a machining interface, and the machining mode and the corresponding parameters are stored row by row in the form of a table through the machining interface.
5. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 4, wherein: In step S2, during machining, loop through each row of data in the table, and generate G code according to the machining mode and its corresponding parameters during each loop.
6. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 2 or 3 or 4 or 5, characterized in that: In step S2, when the machining mode is spatial circular arc machining, generating G code includes the following steps: Step S211, obtain the coordinates of the starting point of the space arc , coordinates of the middle point of the space arc and the coordinates of the end point of the space arc Determine the normal vector of the plane , rotate the machine tool coordinate system so that its Z axis is aligned with the normal vector Align to obtain a first new coordinate system, where ; Step S212. Obtain the center coordinates of the spatial arc according to the formula where, O is the radius of the spatial arc, is the included angle between the vectors and and . Step S213: Divide the space arc into N 1 part. According to the formula calculate the coordinates of the i th equally divided point on the space arc in the first new coordinate system, and then rotate the coordinate back to the machine tool coordinate system according to the formula to obtain the spatial point coordinates corresponding to the equally divided point . The unit machining trajectory is composed of the spatial point coordinates corresponding to each equally divided point. Generate G-code based on the unit machining trajectory, machining feed rate, and spindle speed. Among them, , R ' is the rotation matrix for rotating the machine tool coordinate system to obtain the first new coordinate system.
7. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 2 or 3 or 4 or 5, characterized in that: In step S2, when the machining mode is inclined plane circular machining, generating G code includes the following steps: Step S221: Project the inclined plane circle onto the XY plane of the machine tool coordinate system, and calculate the angle between the inclined plane circle and the XY plane of the machine tool coordinate system and the projection direction angle of the unit normal vector , where A , B , C are the original components of the inclined plane circle normal vector in the machine tool coordinate system X , Y , Z axes, respectively; Step S222: Construct a rotation transformation matrix as , and make the machine tool coordinate system transform according to the transformation matrix to obtain a second new coordinate system, where is the matrix for rotating the machine tool coordinate system around the Z-axis by , and is the matrix for tilting the machine tool coordinate system towards the Y-axis by . Step S223: Divide the inclined plane circle into N 2 equal parts in the second new coordinate system. Then the I nth p I equidistant point has a spatial coordinate representation of N . Two spatial coordinates form a unit machining trajectory. Generate G-code based on this unit machining trajectory, machining feed rate, and spindle speed. Among them, , , r is the radius of the inclined plane circle, and is the coordinate of the center of the inclined plane circle.
8. The method for cutting and processing luggage based on a dual-channel ten-axis numerical control system according to claim 2 or 3 or 4 or 5, characterized in that: In step S2, when the machining mode is linear machining, generate G code according to the coordinates of each point forming the line, the machining feed speed, and the spindle speed.
Citation Information
Patent Citations
Spatial elliptic arc interpolation method
CN104133423A
Interpolating-free machine tool machining method
CN105108508A
Arc surface glass cutting method based on coordinate transformation
CN114357549A
Conical plate stone milling groove machining method based on numerical control system double-station machine tool
CN118906256A
Method for machining workpiece through linkage vertical and horizontal mixed machining machine tool
CN119550091A
