Post-processing method, device, equipment and medium for vertical turning-milling compound five-axis machine tool
By judging the tool vector consistency in the tool position file, distinguishing the cutting mode, and generating the corresponding G code file, the problem of vertical turning and milling composite five-axis machine tool machining program conversion is solved, and a wider machining range and higher accuracy and efficiency are achieved.
Patent Information
- Application Number
- CN202210940630.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-06
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-08-06
AI Technical Summary
The machining program conversion problem of vertical turning and milling composite five-axis machine tools, the prior art cannot directly convert the tool path output by CAM software into a G-code file that can be recognized by the machine tool.
By determining whether the tool vectors of multiple tool position information in the tool position file are consistent, determining the cutting mode, and using fixed-axle turning or linkage turning mode processing methods, the tool position file is processed, turning tool positioning instructions and processing control instructions are generated, and the G code file is written.
It realizes the conversion of tool position files into G-code files that can be recognized by vertical turning and milling composite five-axis machine tools, which extends the machining range, accuracy and efficiency of five-axis machine tools.
Smart Images

Figure CN115373342B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of CNC machine tool control, and in particular to a post-processing method, device, equipment and medium for a vertical turning-milling compound five-axis machine tool. Background Art
[0002] As a necessary processing method for shafts, rotary parts, blade disks and other workpieces, the five-axis vertical milling machine tool has the advantages of centralized process and high precision. However, the processing procedures of this type of machine tool are different from those of ordinary milling machines or lathes. Conventional CNC lathes generally only have two axes, X and Z, and the processing procedures are simple two-dimensional programs with relatively simple processing functions. The five-axis vertical milling machine tool has three-axis movements, X, Z, and B, in the turning mode, which can be further divided into two working modes: fixed-axis turning and linkage turning. Its processing function requirements are diversified, and the processing range, processing accuracy, and processing efficiency are all improved. The corresponding motion control is also relatively complex.
[0003] Since the vertical turning-milling compound five-axis machine tool has more functional requirements and complex movements, more advanced CAM software (such as NX, MasterCAM) is needed to plan the tool path, that is, to design the tool path planning file, referred to as the tool location file. However, the tool path (tool location file) output by these CAM software cannot be used directly on the machine tool. It is necessary to use a dedicated post-processing program and method to perform corresponding processing and conversion to convert the tool path (tool location file) output by the CAM software into a G-code file that can be recognized by the vertical turning-milling compound five-axis machine tool. Summary of the invention
[0004] In order to generate a G-code file that can be recognized and run by a vertical turning-milling compound five-axis machine tool according to the tool path of fixed-axis turning or linkage turning, the present application provides a post-processing method, device, equipment and medium for a vertical turning-milling compound five-axis machine tool.
[0005] The present application provides a post-processing method, device, equipment and medium for a vertical turning-milling compound five-axis machine tool, which adopts the following technical solutions:
[0006] On the one hand, a post-processing method of a vertical turning-milling compound five-axis machine tool comprises the following steps:
[0007] S1 acquires tool location file information, wherein the tool location file information includes workpiece coordinate system information and a plurality of tool location information arranged in a processing time sequence, wherein the tool location information includes a tool vector;
[0008] S2 determines whether the plurality of tool vectors in the tool location file information are consistent;
[0009] S3: If all the tool vectors are consistent, the tool position file information is processed using a fixed-axis turning mode processing method to obtain a turning tool positioning instruction and a fixed-axis machining control instruction, and a G code file is written according to the turning tool positioning instruction and the fixed-axis machining control instruction;
[0010] S4: If at least two of the tool vectors are inconsistent, a linkage turning mode processing method is used to process the tool position file information to obtain a linkage machining control instruction, and a G code file is written according to the linkage machining control instruction.
[0011] By adopting the above technical scheme, according to multiple tool position information in the tool position file, if the tool vectors of the multiple tool position information are consistent, indicating that the direction of the turning tool relative to the workpiece remains unchanged during the cutting process, the tool position file is determined to be a fixed-axis turning working mode, and the tool position file is processed by the fixed-axis turning mode processing method; if the tool vectors of multiple tool position information are inconsistent, indicating that the direction of the turning tool relative to the workpiece is changing during the cutting process, the tool position file is determined to be a linkage turning working mode, and the tool position file is processed by the linkage turning mode processing method. By judging whether the tool vectors in the multiple tool position information are consistent, the cutting mode corresponding to the tool position file can be determined, and then the corresponding processing method is used to perform fixed-axis or linkage conversion, which is convenient for rapid subsequent processing of the tool position file, realizes the generation of the machining program, and converts the tool position file into a G code file that can be recognized by the vertical turning and milling compound five-axis machine tool.
[0012] Optionally, in step S3, "processing the tool location file information using a fixed-axis turning mode processing method" includes the following steps:
[0013] S31: the length of the tool vector is 1, and according to the component k of the tool vector on the Z axis in the workpiece coordinate system, the rotation angle b=arccos(k) of the B axis is obtained, 0°≤b≤180°;
[0014] S32 generates a corresponding turning tool positioning instruction for each tool position point information based on the rotation angle b of the B-axis and the turning tool positioning syntax of the numerical control system.
[0015] By adopting the above technical solution, according to the component k of the tool vector on the Z axis in the workpiece coordinate system, arccos (k) is the angle between the turning tool and the Z axis in the workpiece coordinate system. The machine tool is a worktable rotary machine tool, the workpiece is fixed on the C axis, the angle of the turning tool relative to the machine tool bed is fixed, and the rotation of the B axis can cause the relative angle between the turning tool and the workpiece to change. Therefore, arccos (k) is the rotation angle of the B axis. In this way, the rotation of the B axis can be controlled by converting the component k of the tool vector on the Z axis in the workpiece coordinate system in the tool location file into the rotation angle of the B axis.
[0016] Optionally, the turning tool positioning instruction is CYCLE800(0,"CTB",111,54,,,,b,0,,,,,100,1), where b is the rotation angle of the B-axis 1.
[0017] By adopting the above technical solution, the workpiece coordinate zero point of the X-axis and Z-axis is set at the C-axis rotation center, and CYCLE800 can be applied. The CYCLE800 fixed cycle can realize the workpiece coordinate conversion function. This line of instructions can be recognized by the machine tool, enabling the B-axis rotation function of the machine tool CNC system, so that the relative direction between the turning tool direction in the CNC machine tool and the workpiece is consistent with the direction planned in the tool location file.
[0018] Optionally, after step S32, the following steps are further included:
[0019] S33 The tool position point information also includes the tool tip position. Based on the position component x of the tool tip position on the X-axis in the workpiece coordinate system and the position component z on the Z-axis in the workpiece coordinate system, combined with the feed rate f auxiliary instruction, according to the machining control syntax of the CNC system, a corresponding fixed-axis machining control instruction is generated for each of the tool position point information.
[0020] By adopting the above technical solution, the converted processing control instructions and the turning tool positioning instructions together constitute a G code file, which can be recognized by the machine tool, and can generate a processing program for X and Z axis interpolation of the fixed-axis turning with a fixed angle of the B axis on the vertical turning-milling compound five-axis machine tool.
[0021] Optionally, the fixed-axis machining control instruction is G01 Xx Zz G95 Ff, wherein x is the position component of the tool tip position on the X-axis in the workpiece coordinate system, z is the position component of the tool tip position on the Z-axis in the workpiece coordinate system, and f is the feed rate.
[0022] By adopting the above technical solution, the turning tool is controlled to cut the workpiece according to the specified cutting feed speed and the given X coordinate and Z coordinate.
[0023] Optionally, in step S4, "processing the tool location file information using a linkage turning mode processing method" includes the following steps:
[0024] S41: the length of the tool vector is 1, and according to the component k of the tool vector on the Z axis in the workpiece coordinate system, the rotation angle b=arccos(k) of the B axis is obtained, 0°≤b≤180°;
[0025] S42 The tool position information also includes the tool tip position. According to the rotation angle b of the B axis, the position component x of the tool tip position on the X axis in the workpiece coordinate system, and the position component z on the Z axis in the workpiece coordinate system, combined with the feed rate f auxiliary instruction, a linkage processing control instruction is generated.
[0026] By adopting the above technical solution, a machining program for X, Z, B three-axis interpolation with B-axis linkage turning can be generated for a vertical turning-milling compound five-axis machine tool.
[0027] Optionally, the linkage machining control instruction is G01 Xx Zz Bb G95 Ff, wherein x is the position component of the tool tip position on the X-axis in the workpiece coordinate system, z is the position component of the tool tip position on the Z-axis in the workpiece coordinate system, b is the rotation angle of the B-axis, and f is the feed rate.
[0028] By adopting the above technical solution, the turning tool is controlled to cut the workpiece according to the specified cutting feed speed and the given x-coordinate, z-coordinate and B-axis rotation angle.
[0029] In a second aspect, a post-processing device for a vertical turning-milling compound five-axis machine tool comprises:
[0030] A tool position file information acquisition module, used for acquiring a tool position file information module, wherein the tool position file information includes workpiece coordinate system information and a plurality of tool position information arranged in a processing time sequence, wherein the tool position information includes a tool vector;
[0031] A judging module, used for judging whether the plurality of tool vectors in the tool position file information are consistent;
[0032] A fixed-axis turning mode processing module is used to process the tool position file information using a fixed-axis turning mode processing method when the plurality of tool vectors are consistent, obtain a turning tool positioning instruction and a fixed-axis machining control instruction, and write a G code file according to the turning tool positioning instruction and the fixed-axis machining control instruction;
[0033] The linkage turning mode processing module is used to process the tool position file information using the linkage turning mode processing method when the multiple tool vectors are inconsistent, obtain the linkage processing control instructions, and write the G code file according to the linkage processing control instructions.
[0034] By adopting the above technical solution, it is possible to perform fixed-axis or linkage conversion according to the relevant information described in the tool location file, realize the generation of a machining program, and convert and generate a G code file that can be recognized and executed by the machine tool, thereby giving full play to the advantages of the vertical turning and milling compound five-axis machine tool such as centralized process and high precision, and expanding the processing range, processing accuracy and processing efficiency of the five-axis machine tool.
[0035] In a third aspect, a terminal device comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the post-processing method of a vertical turning-milling compound five-axis machine tool as described in any one of the above items when executing the computer program.
[0036] By adopting the above technical solution, it is possible to perform fixed-axis or linkage conversion according to the relevant information described in the tool location file, realize the generation of a machining program, and convert and generate a G code file that can be recognized and executed by the machine tool, thereby giving full play to the advantages of the vertical turning and milling compound five-axis machine tool such as centralized process and high precision, and expanding the processing range, processing accuracy and processing efficiency of the five-axis machine tool.
[0037] In a fourth aspect, a computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, the device where the computer-readable storage medium is located controls the post-processing method of a vertical turning-milling compound five-axis machine tool as described in any one of the above items.
[0038] By adopting the above technical solution, it is possible to perform fixed-axis or linkage conversion according to the relevant information described in the tool location file, realize the generation of a machining program, and convert and generate a G code file that can be recognized and executed by the machine tool, thereby giving full play to the advantages of the vertical turning and milling compound five-axis machine tool such as centralized process and high precision, and expanding the processing range, processing accuracy and processing efficiency of the five-axis machine tool.
[0039] In summary, the present application includes at least one of the following beneficial technical effects:
[0040] 1. By judging whether the tool vectors in multiple tool position information are consistent, the cutting mode corresponding to the tool position file can be determined, and then the corresponding processing method is used to perform fixed-axis or linkage conversion, which is convenient for rapid subsequent processing of the tool position file and converting the tool position file into a G code file that can be recognized by the vertical turning and milling compound five-axis machine tool.
[0041] 2. The machine tool is a worktable rotary machine tool. The workpiece is fixed on the C-axis. The angle of the turning tool relative to the machine tool is fixed. The rotation of the B-axis can be controlled by converting the component k of the tool vector on the Z-axis in the workpiece coordinate system in the tool location file into the rotation angle of the B-axis.
[0042] 3. Generate the corresponding tool positioning instruction according to the rotation angle of the B-axis; generate the corresponding machining control instruction according to the coordinates of the tool tip position combined with the feed rate f auxiliary instruction. The machining control instruction and the tool positioning instruction together constitute a G code file that can be recognized by the machine tool, and can generate a machining program for the X and Z axes interpolation of the fixed-axis turning with a fixed angle of the B-axis on the vertical turning-milling compound five-axis machine tool.
[0043] 4. Generate machining control instructions based on the rotation angle b of the B-axis, the position component x of the tool tip position on the X-axis in the workpiece coordinate system, and the position component z of the tool tip position on the Z-axis in the workpiece coordinate system, combined with the feed rate f auxiliary instruction. Write a G code file based on the machining control instructions to generate a machining program for X, Z, and B three-axis interpolation of a vertical turning-milling compound five-axis machine tool with B-axis linkage turning. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a structural schematic diagram of a vertical turning-milling compound five-axis machine tool and a turning tool in an embodiment of the present application;
[0045] Figure 2 It is a flow chart of the post-processing method of the vertical turning-milling compound five-axis machine tool in the embodiment of the present application;
[0046] Figure 3 It is a structural block diagram of the post-processing device of the vertical turning-milling compound five-axis machine tool in the embodiment of the present application.
[0047] Explanation of the reference numerals: 100, machine tool; 1, B-axis; 2, C-axis; 3, tool tip position; 4, tool vector; 200, machine tool coordinate system; 300, workpiece coordinate system; 400, workpiece; 500, turning tool; 600, post-processing device of vertical turning-milling compound five-axis machine tool; 10, tool position file information acquisition module; 20, judgment module; 30, fixed-axis turning mode processing module; 40, linked turning mode processing module. DETAILED DESCRIPTION
[0048] The following is combined with Figure 1-3 This application is described in further detail.
[0049] The embodiment of the present application discloses a post-processing method for a vertical milling five-axis machine tool, which is used to solve the problem of CNC machining program conversion of X, Z, B three-axis interpolation for fixed-axis turning or linkage turning with B axis 1 of the vertical milling five-axis machine tool 100. Figure 1 The five-axis machine tool 100 includes three movable axes, namely, an X-axis, a Y-axis, and a Z-axis, and two rotating tables (a first rotating table and a second rotating table). The first rotating table is a B rotating axis (B axis 1) rotating around the Y axis in the machine tool coordinate system 200, and the second rotating table is a C axis 2 perpendicular to the B axis 1.
[0050] Reference Figure 1 and Figure 2 The post-processing method of the vertical turning-milling compound five-axis machine tool includes the following steps:
[0051] S1 obtains tool position file information, which includes workpiece coordinate system 300 information and multiple tool position point information arranged in a processing sequence.
[0052] In this embodiment, the workpiece coordinate system 300 coincides with the coordinate system of the tool position point in the tool position file, the rotation axis direction of the B axis 1 is the Y axis direction of the workpiece coordinate system 300, the rotation axis direction of the C axis 2 is the Z axis direction, and the direction located in the plane where the B axis 1 is located and perpendicular to the Z axis is the X axis direction. The tool position point information includes the tool tip position 3 and the tool vector 4, which are based on the workpiece coordinate system 300, and the tool vector 4 can reflect the direction of the turning tool 500 in the workpiece coordinate system 300.
[0053] Exemplarily, the information of a cutting position (x, y, z, i, j, k) is:
[0054] GOT0 / 151.9739,0.0000,165.2333,0.0146155,0.0000000,0.9998932.
[0055] Among them, the coordinates of x, y, and z in tool tip position 3 are 151.9739, 0.0000, and 165.2333, where x is the position component of tool tip position 3 on the X axis in workpiece coordinate system 300, y is the position component of tool tip position 3 on the Y axis in workpiece coordinate system 300, and z is the position component of tool tip position 3 on the Z axis in workpiece coordinate system 300. i, j, and k in tool vector 4 are 0.0146155, 0.0000000, and 0.9998932, where i is the component of tool vector 4 on the X axis in workpiece coordinate system 300, j is the component of tool vector 4 on the Y axis in workpiece coordinate system 300, and k is the component of tool vector 4 on the Z axis in workpiece coordinate system 300. The length of tool vector 4 is automatically 1, that is, i2+j2+k2=1, and j is always 0 in the tool location file of turning type.
[0056] S2 determines whether the plurality of tool vectors 4 in the tool location file information are consistent.
[0057] S3: If all tool vectors 4 are consistent, it is determined that the tool location file is in fixed-axis turning mode, and the tool location file information is processed using the fixed-axis turning mode processing method to obtain a turning tool positioning instruction and a fixed-axis machining control instruction, and a G code file is written according to the turning tool positioning instruction and the fixed-axis machining control instruction;
[0058] Specifically, "processing the tool location file information using the fixed axis turning mode processing method" includes the following steps:
[0059] S31 The length of the tool vector 4 is 1. According to the component k of the tool vector 4 on the Z axis in the workpiece coordinate system 300, the rotation angle b=arccos(k) of the B axis 1 is obtained, 0°≤b≤180°.
[0060] Understandable, see Figure 1The machine tool 100 is a rotary machine tool with a worktable. The workpiece 400 is fixed on the C-axis 2. During the fixed-axis cutting process, the direction of the turning tool 500 relative to the machine bed remains unchanged. By controlling the rotation of the B-axis 1, the workpiece 400 is driven to rotate, and the relative angle between the turning tool 500 and the workpiece 400 is changed. Therefore, by controlling the rotation of the B-axis 1, the relative angle between the turning tool 500 and the workpiece 400 can be changed. According to the component k of the tool vector 4 on the Z axis in the workpiece coordinate system 300, arccos (k) is the angle between the turning tool 500 and the Z axis in the workpiece coordinate system 300. Therefore, arccos (k) is the rotation angle of the B-axis 1. In this way, the component k of the tool vector 4 on the Z axis in the workpiece coordinate system 300 in the tool location file can be converted into the rotation angle of the B-axis 1, thereby controlling the rotation of the B-axis 1, so that the relative direction between the turning tool 500 in the CNC machine tool 100 and the workpiece 400 is consistent with the tool vector direction planned in the tool location file.
[0061] S32 generates a corresponding tool positioning instruction for each tool position information based on the rotation angle b of the B axis 1 and the tool positioning syntax of the CNC system. The tool positioning instruction is CYCLE800 (0, "CTB", 111, 54,,,, b, 0,,,,,, 100, 1), where b is the rotation angle of the B axis 1. The CYCLE800 fixed cycle can realize the coordinate conversion function of the workpiece coordinate system 300, and this line of instructions can be recognized by the machine tool 100.
[0062] S33 generates corresponding fixed-axis machining control instructions for each tool position point information based on the position component x of the tool tip position 3 on the X-axis in the workpiece coordinate system 300 and the position component z on the Z-axis in the workpiece coordinate system 300, combined with the feed rate f auxiliary instruction, according to the machining control syntax of the CNC system.
[0063] S34 writes the G code file according to the fixed-axis machining control instructions and the turning tool positioning instructions.
[0064] In this embodiment, the fixed-axis machining control instruction is G01 Xx Zz G95 Ff, where x is the position component of the tool tip position 3 on the X-axis in the workpiece coordinate system 300, z is the position component of the tool tip position 3 on the Z-axis in the workpiece coordinate system 300, and f is the feed rate. G01 is a linear interpolation instruction in the CNC machining technical instructions. Of course, other fixed-axis machining control instructions can also be generated, such as spindle rotation, coolant switch, circular interpolation, etc. This is a conventional technology. The converted fixed-axis machining control instructions and the turning tool positioning instructions together constitute a G code file, which can be recognized by the machine tool 100, so that the turning tool 500 cuts the specified position of the workpiece 400. In addition to the above-mentioned fixed-axis machining control instructions, the fixed-axis machining control instructions can also write G95 in front to play a role of continuous effect and avoid repeated writing of G95.
[0065] For example, a program fragment of a fixed axis turning G code file is as follows:
[0066] …G95…
[0067] CYCLE800(0,"CTB",111,54,,,,12.1,0,,,,,,100,1)
[0068] …
[0069] G01 X151.9739 Z165.2333 F0.1
[0070] X152 Z166.4
[0071] …
[0072] M30
[0073] S4: If at least two tool vectors 4 are inconsistent, the tool location file is determined to be in linkage turning mode, and the tool location file information is processed using a linkage turning mode processing method to obtain a linkage processing control instruction, and a G code file is written according to the linkage processing control instruction.
[0074] Specifically, "processing tool location file information using a linkage turning mode processing method" includes the following steps:
[0075] S41 The length of the tool vector 4 is 1. According to the component k of the tool vector 4 on the Z axis in the workpiece coordinate system 300, the rotation angle b=arccos(k) of the B axis 1 is obtained, 0°≤b≤180°;
[0076] S42 generates a linkage machining control instruction according to the rotation angle b of the B axis 1, the position component x of the tool tip position 3 on the X axis in the workpiece coordinate system 300, and the position component z of the tool tip position 3 on the Z axis in the workpiece coordinate system 300, combined with the feed rate f auxiliary instruction. The linkage machining control instruction is G01 Xx Zz Bb G95 Ff, where x is the position component of the tool tip position 3 on the X axis in the workpiece coordinate system 300, z is the position component of the tool tip position 3 on the Z axis in the workpiece coordinate system 300, b is the rotation angle of the B axis 1, and f is the feed rate. G01 is a linear interpolation instruction in CNC machining technical instructions.
[0077] By converting the tool vector 4 in the tool location file into the rotation angle of the B axis 1, the x and z coordinates of the tool tip position 3 in the tool location file are used, and the feed rate per revolution is set through G95, the turning tool 500 is controlled to cut the workpiece 400 at the specified cutting feed rate according to the given x coordinate, z coordinate and the rotation angle of the B axis 1. In addition to the above-mentioned linkage processing control instructions, the linkage processing control instructions can also write G95 in front to play a role of continuous effect and avoid writing G95 repeatedly.
[0078] For example, a program fragment of a G-code file for coordinated turning is as follows:
[0079] …G95…
[0080] TRAORI
[0081] …
[0082] G01 X151.9739 Z165.2333 B12.1 F0.1
[0083] X152 Z166.4 B13.5423
[0084] …
[0085] TRAFOOF
[0086] M30
[0087] The implementation principle of the post-processing method of a vertical turning-milling compound five-axis machine tool in the embodiment of the present application is as follows: a tool location file with more complete functions and more mature design by CAM software plans the tool path for fixed-axis turning or linkage turning. This type of tool location file needs to be converted and processed by a dedicated post-processing program and method to generate a G code file that the vertical turning-milling compound five-axis machine tool 100 can recognize and run, so that it can play its role. The vertical turning-milling compound five-axis machine tool 100 includes two working modes: fixed-axis turning and linkage turning. Different processing methods need to be adopted for different working modes.
[0088] According to the information of multiple tool positions in the tool position file, when the tool vectors 4 of the multiple tool position information are consistent, it indicates that the direction of the turning tool 500 remains unchanged during the cutting process, and the tool position file is determined as a fixed-axis turning working mode, and the tool position file is processed using the fixed-axis turning mode processing method. By converting the tool vector 4 in the tool position file into the rotation angle of the B axis 1, a turning tool positioning instruction is generated, and the x and z coordinates of the tool tip position 3 in the tool position file are used, and the feed rate per revolution is set by G95, and a fixed-axis machining control instruction is generated. A G code file is written according to the turning tool positioning instruction and the fixed-axis machining control instruction. The G code file can be recognized by the machine tool 100, and the turning tool 500 is controlled to cut the workpiece 400 according to the specified cutting feed speed, the given x coordinate, the z coordinate and the B axis 1 rotation angle.
[0089] When the tool vectors 4 of at least two tool position information are inconsistent, it indicates that the direction of the turning tool 500 is changing during the cutting process, and the tool position file is determined to be in the linkage turning working mode, and the tool position file is processed by the linkage turning mode processing method. The tool vector 4 in the tool position file is converted into the rotation angle of the B axis 1, and the turning tool positioning instruction is generated. The x and z coordinates of the tool tip position 3 in the tool position file are used, and the feed rate per revolution is set by G95, and the linkage processing control instruction is generated. The G code file is written according to the linkage processing control instruction. The G code file can be recognized by the machine tool 100, and the turning tool 500 is controlled to cut the workpiece 400 according to the specified cutting feed speed and the given x coordinate, z coordinate and the rotation angle of the B axis 1.
[0090] Based on the above method, the embodiment of the present application also discloses a post-processing device 600 for a vertical turning-milling compound five-axis machine tool.
[0091] Reference Figure 2 A post-processing device 600 for a vertical milling compound five-axis machine tool mainly includes:
[0092] A tool position file information acquisition module 10, used for acquiring a tool position file information module, the tool position file information includes workpiece coordinate system 300 information and a plurality of tool position information arranged in a processing time sequence, the tool position information includes a tool vector 4;
[0093] A judging module 20, used for judging whether the plurality of tool vectors 4 in the tool position file information are consistent;
[0094] The fixed-axis turning mode processing module 30 is used to process the tool position file information using the fixed-axis turning mode processing method when all tool vectors 4 are consistent, obtain the turning tool positioning instruction and the fixed-axis machining control instruction, and write the G code file according to the turning tool positioning instruction and the fixed-axis machining control instruction;
[0095] The linkage turning mode processing module 40 is used to process the tool position file information using the linkage turning mode processing method when at least two tool vectors 4 are inconsistent, obtain linkage processing control instructions, and write a G code file according to the linkage processing control instructions.
[0096] The embodiment of the present application also discloses a terminal device.
[0097] Specifically, the terminal device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned post-processing method of the vertical turning-milling compound five-axis machine tool.
[0098] The embodiment of the present application also discloses a computer-readable storage medium.
[0099] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute the post-processing method of the vertical turning and milling compound five-axis machine tool mentioned above. The computer-readable storage medium includes, for example: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0100] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. A post-processing method for a vertical turning-milling compound five-axis machine tool, characterized in that: The following steps are involved: S1 obtains tool position file information, the tool position file information including workpiece coordinate system (300) information and a plurality of tool position point information arranged in a processing time sequence, the tool position point information including a tool vector (4); S2 determines whether the plurality of tool vectors (4) in the tool position file information are consistent; S3: if all the tool vectors (4) are consistent, the tool position file information is processed using a fixed-axis turning mode processing method to obtain a turning tool positioning instruction and a fixed-axis machining control instruction; The length of the tool vector (4) is 1, and according to the component k of the tool vector (4) on the Z axis in the workpiece coordinate system (300), the rotation angle b=arccos(k) of the B axis (1) is obtained, 0°≤b≤180°; Based on the rotation angle b of the B axis (1), and according to the tool positioning syntax of the numerical control system, a corresponding tool positioning instruction is generated for each tool position point information; Writing a G code file according to the turning tool positioning instruction and the fixed axis machining control instruction; S4: if at least two of the tool vectors (4) are inconsistent, processing the tool location file information using a linkage turning mode processing method; The length of the tool vector (4) is 1, and according to the component k of the tool vector (4) on the Z axis in the workpiece coordinate system (300), the rotation angle b=arccos(k) of the B axis (1) is obtained, 0°≤b≤180°; The tool position information also includes a tool tip position (3), and a linkage machining control instruction is generated based on the rotation angle b of the B axis (1), the position component x of the tool tip position (3) on the X axis in the workpiece coordinate system (300), and the position component z on the Z axis in the workpiece coordinate system (300), combined with a feed rate f auxiliary instruction; Compose a G code file according to the linkage machining control instruction.
2. The post-processing method of a vertical turning-milling compound five-axis machine tool according to claim 1 is characterized in that: After step S32, the following steps are also included: S33 The tool position point information also includes a tool tip position (3) and a feed rate. Based on the position component x of the tool tip position (3) on the X-axis in the workpiece coordinate system (300) and the position component z on the Z-axis in the workpiece coordinate system (300), combined with the feed rate f auxiliary instruction, a corresponding fixed-axis machining control instruction is generated for each tool position point information according to the machining control syntax of the numerical control system.
3. The post-processing method of a vertical turning-milling compound five-axis machine tool according to claim 2 is characterized in that: The fixed-axis machining control instruction is G01 Xx Zz G95 Ff, wherein x is the position component of the tool tip position (3) on the X-axis in the workpiece coordinate system (300), z is the position component of the tool tip position (3) on the Z-axis in the workpiece coordinate system (300), and f is the feed rate.
4. The post-processing method of a vertical turning-milling compound five-axis machine tool according to claim 1 is characterized in that: The linkage machining control instruction is G01 Xx Zz Bb G95 Ff, wherein x is the position component of the tool tip position (3) on the X-axis in the workpiece coordinate system (300), z is the position component of the tool tip position (3) on the Z-axis in the workpiece coordinate system (300), b is the rotation angle of the B-axis (1), and f is the feed rate.
5. A post-processing device for a vertical turning-milling compound five-axis machine tool, characterized in that: include: A tool position file information acquisition module, used for acquiring a tool position file information module, wherein the tool position file information includes workpiece coordinate system (300) information and a plurality of tool position point information arranged in a processing time sequence, wherein the tool position point information includes a tool vector (4); A judgment module, used for judging whether the plurality of tool vectors (4) in the tool position file information are consistent; A fixed-axis turning mode processing module is used to process the tool position file information using a fixed-axis turning mode processing method when all the tool vectors (4) are consistent, so as to obtain a turning tool positioning instruction and a fixed-axis machining control instruction; The length of the tool vector (4) is 1, and according to the component k of the tool vector (4) on the Z axis in the workpiece coordinate system (300), the rotation angle b=arccos(k) of the B axis (1) is obtained, 0°≤b≤180°; Based on the rotation angle b of the B axis (1), and according to the tool positioning syntax of the numerical control system, a corresponding tool positioning instruction is generated for each tool position point information; Writing a G code file according to the turning tool positioning instruction and the fixed axis machining control instruction; A linkage turning mode processing module, used for processing the tool position file information using a linkage turning mode processing method when at least two of the tool vectors (4) are inconsistent; The length of the tool vector (4) is 1, and according to the component k of the tool vector (4) on the Z axis in the workpiece coordinate system (300), the rotation angle b=arccos(k) of the B axis (1) is obtained, 0°≤b≤180°; The tool position information also includes a tool tip position (3), and a linkage machining control instruction is generated based on the rotation angle b of the B axis (1), the position component x of the tool tip position (3) on the X axis in the workpiece coordinate system (300), and the position component z on the Z axis in the workpiece coordinate system (300), combined with a feed rate f auxiliary instruction; Compose a G code file according to the linkage machining control instruction.
6. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the post-processing method of the vertical turning-milling compound five-axis machine tool as described in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the post-processing method of the vertical turning-milling compound five-axis machine tool as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Double main shaft turning-milling combined machining method for aeroengine case
CN104690490A