U-axis tool processing method, device, computer program product and processing machine tool

By replacing the coordinates of the axis parallel to the U-axis in the machine tool coordinate system, the problem of the inability to control the movement of the U-axis tool in the prior art is solved, the machining needs of the U-axis tool are realized, and programming is improved Efficiency and accuracy.

CN118884901BActive Publication Date: 2025-01-17WEICHAI POWER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411384770.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-17
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

The existing CAM programming cannot meet the U-axis tool processing needs because the U-axis tool cannot be controlled to move along the U-axis direction and the U-axis coordinates cannot be converted.

Method used

By replacing the coordinates of the axis parallel to the U-axis in the machine tool coordinate system, the U-axis tool moves along the U-axis direction, and converting and controlling the CNC program using the tool position source file generated by CAM software.

Benefits of technology

It realizes the machining needs of U-axis tools, improves programming efficiency and accuracy, can process multiple types of holes, and meets the machining needs of U-axis tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118884901B_ABST
    Figure CN118884901B_ABST
Patent Text Reader

Abstract

The present application provides a U-axis tool processing method, device, computer program product and processing machine tool, the method comprising: obtaining a tool position source file generated by CAM software, the tool position source file at least including a plurality of tool coordinate data; converting each tool coordinate data to obtain a plurality of numerical control program coordinate data, the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory; controlling the spindle movement according to the first numerical control program coordinate data so that the U-axis tool reaches the initial processing position; processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool in the target axis is equal to the coordinate of the target axis of the next numerical control program coordinate data, and the target axis is parallel to the U-axis; repeating the processing step at least once until there is no next numerical control program coordinate data, and the U-axis tool processing ends. This method solves the problem that CAM programming cannot meet the U-axis tool processing requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of U-axis tool processing, and in particular to a U-axis tool processing method, device, computer program product and processing machine tool. Background Art

[0002] For crankshaft thrust surface machining features, such as Figure 1 As shown in the figure, due to the change of inner diameter and high coaxiality requirements, special equipment is selected for processing in most cases, but this method requires frequent equipment replacement, which greatly affects the processing efficiency. With the development of technology, U-axis tools are gradually selected for processing of complex inner cavity hole systems. U-axis tools combine the advantages of CNC lathes and machining centers, which can greatly improve processing efficiency.

[0003] At present, U-axis tool machining programming is manually written, which requires manual review of two-dimensional drawings. The process is cumbersome and prone to errors. With the transformation of the manufacturing process to digitalization, the method of using CAM software to generate tool location source files and converting the tool location source files into NC programs through post-processing has been generally accepted. However, due to the functional limitations of each programming software itself, it can only control the movement of the machine tool's spindle, but cannot control the movement of the U-axis tool along the U-axis, and cannot meet the U-axis tool machining requirements, that is, it is impossible to quickly convert the U-axis tool machining requirements into a post-processing program for the NC program. Summary of the invention

[0004] The main purpose of the present application is to provide a U-axis tool processing method, device, computer program product and processing machine tool, so as to at least solve the problem that CAM programming in the prior art cannot meet the U-axis tool processing requirements.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a U-axis tool processing method is provided, comprising: obtaining a tool position source file generated by CAM software, the tool position source file at least comprising a plurality of tool coordinate data, one of the tool coordinate data corresponding to the coordinates of a point on the movement trajectory of the end of the U-axis tool in the coordinate system programmed by CAM; converting each of the tool coordinate data to obtain a plurality of CNC program coordinate data, the plurality of CNC program coordinate data being arranged in the order of the corresponding points on the movement trajectory, the CNC program coordinate data being the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, the CNC program coordinate data corresponding one to one to the tool coordinate data; according to the first The NC program coordinate data controls the movement of the spindle so that the U-axis tool reaches the initial processing position; a processing step of controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axis is equal to the coordinate of the other axis of the next NC program coordinate data, the target axis is parallel to the U axis, and the other axis is an axis other than the target axis in the machine tool coordinate system; repeating the processing step at least once until there is no next NC program coordinate data and the U-axis tool processing is completed.

[0006] Optionally, before converting each of the tool coordinate data to obtain multiple CNC program coordinate data, the method also includes: reading the tool position source file and taking the position of the first tool coordinate data as the starting position; when the main program executes to the starting position, outputting the name of the U-axis tool CNC subroutine to jump to the U-axis tool CNC subroutine, and the U-axis tool CNC subroutine is a program for controlling the U-axis tool for processing.

[0007] Optionally, the X-axis, Y-axis and Z-axis of the coordinate system programmed by the CAM correspond to the X-axis, Y-axis and Z-axis of the machine tool coordinate system respectively, the X-axis of the machine tool coordinate system is the target axis, any two of the X-axis, Y-axis and Z-axis of the machine tool coordinate system are perpendicular to each other, the tool coordinate data includes a first X-axis coordinate, a first Y-axis coordinate and a first Z-axis coordinate, the NC program coordinate data includes a second X-axis coordinate, a second Y-axis coordinate and a second Z-axis coordinate, and each of the tool coordinate data is converted to obtain a plurality of NC program coordinate data, including: a first conversion step, using a post-processing program of the machining machine to convert any one of the tool coordinate data; The tool coordinate data is converted to obtain the second X-axis coordinate and the second Z-axis coordinate, and the post-processing program is a program for converting the tool location source file into a numerical control program readable by the processing machine tool; a second conversion step, using the same conversion method of the post-processing program to convert the first Y-axis coordinate to obtain the second Y-axis coordinate; a combination step, the second X-axis coordinate, the second Z-axis coordinate and the second Y-axis coordinate are combined into the numerical control program coordinate data; the first conversion step, the second conversion step and the combination step are repeated at least once in sequence until all the numerical control program coordinate data are obtained.

[0008] Optionally, the first conversion step includes: obtaining a rotation angle of a rotation axis of the processing machine tool, the rotation axis being used to rotate a workpiece processed by the processing machine tool, the rotation angle including a first rotation angle α, a second rotation angle β and a third rotation angle One or more; when the rotation axis rotates the first rotation angle α around the X-axis of the machine tool coordinate system, establish a first rotation matrix ; When the rotation axis rotates about the Y axis of the machine tool coordinate system by the second rotation angle β, a second rotation matrix is ​​established ; Rotate the third rotation angle around the Z axis of the machine tool coordinate system In the case of, establish the third rotation matrix ; Use one or more of the first rotation matrix, the second rotation matrix and the third rotation matrix to transform the first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data to obtain the second X-axis coordinate and the second Z-axis coordinate.

[0009] Optionally, the spindle movement is controlled according to the first CNC program coordinate data so that the U-axis tool reaches the initial processing position, including: controlling the spindle to move along the X-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the X-axis of the machine tool coordinate system is equal to the second X-axis coordinate of the first CNC program coordinate data; controlling the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the first CNC program coordinate data; controlling the spindle to move along the Z-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the Z-axis of the machine tool coordinate system is equal to the second Z-axis coordinate of the first CNC program coordinate data.

[0010] Optionally, the processing step includes: controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool on the target axis is equal to the second X-axis coordinate of the next CNC program coordinate data, and controlling the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the next CNC program coordinate data, and controlling the spindle to move along the Z-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Z-axis of the machine tool coordinate system is equal to the second Z-axis coordinate of the next CNC program coordinate data.

[0011] Optionally, before the processing step, the method also includes: obtaining input U-axis tool parameters, the U-axis tool parameters including the U-axis tool number, the maximum rotation speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum jerk of the U-axis feed and the distance moved per revolution of the U-axis.

[0012] According to another aspect of the present application, a U-axis tool processing device is provided, comprising: a first acquisition unit, used to acquire a tool position source file generated by CAM software, the tool position source file at least comprising a plurality of tool coordinate data, one of the tool coordinate data corresponding to the coordinates of a point on the movement trajectory of the end of the U-axis tool in the coordinate system programmed by CAM; a conversion unit, used to convert each of the tool coordinate data to obtain a plurality of CNC program coordinate data, the plurality of CNC program coordinate data being arranged in the order of the corresponding points of the movement trajectory, the CNC program coordinate data being the coordinates of the end of the U-axis tool in the machine tool coordinate system of the processing machine tool, the CNC program coordinate data corresponding one to one to the tool coordinate data; a control unit, used to convert each of the tool coordinate data according to the first CNC program coordinate data. The NC program coordinate data controls the movement of the spindle so that the U-axis tool reaches the initial processing position; a processing unit is used to execute the processing steps, control the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and control the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axis is equal to the coordinate of the other axis of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axis is the axis other than the target axis in the machine tool coordinate system; a repeating unit is used to repeat the processing steps at least once until there is no next NC program coordinate data and the U-axis tool processing is completed.

[0013] According to another aspect of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, any one of the methods described above is implemented.

[0014] According to another aspect of the present application, a machining center is provided, comprising: a U-axis tool, a spindle, one or more processors, a memory, and one or more programs, wherein the U-axis tool is mounted on the spindle, the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described.

[0015] By applying the technical solution of the present application, in the above-mentioned U-axis tool processing method, the U-axis tool processing requires that the machinable diameter of the tool will change according to the CNC program during the processing, so as to realize one tool to process various types of holes, and the end of the U-axis tool is required to be able to make radial movement along the U-axis direction. However, the tool coordinate data of the tool position source file of the existing CAM programming can only control the movement of the spindle of the processing machine tool along the axis of the machine tool coordinate system. The axis of the machine tool coordinate system does not include the U-axis, and it is impossible to convert it to obtain the U-axis coordinate, so that the U-axis tool cannot be controlled to move along the U-axis direction, and the processing requirements of the U-axis tool cannot be met. This method replaces the U-axis coordinate with the coordinate of the axis parallel to the U-axis in the machine tool coordinate system, that is, the coordinate of the target axis, to achieve control of the U-axis tool to move along the U-axis direction during the processing, thereby meeting the processing requirements of the U-axis tool and solving the problem that CAM programming in the prior art cannot meet the processing requirements of the U-axis tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a crankshaft bore thrust surface is shown;

[0017] Figure 2 A hardware structure block diagram of a mobile terminal for executing a U-axis tool processing method provided in an embodiment of the present application is shown;

[0018] Figure 3 A schematic flow chart of a U-axis tool processing method provided according to an embodiment of the present application is shown;

[0019] Figure 4 A schematic diagram of a processing machine tool provided according to an embodiment of the present application is shown;

[0020] Figure 5 Shows Figure 4 An enlarged view of the U-axis tool in the figure;

[0021] Figure 6 A schematic flow chart of a U-axis tool processing method provided according to an embodiment of the present application is shown;

[0022] Figure 7 A structural block diagram of a U-axis tool processing device provided according to an embodiment of the present application is shown.

[0023] The above drawings include the following reference numerals:

[0024] 01. U-axis tool; 02. chuck; 102. processor; 104. memory; 106. transmission device; 108. input and output device. DETAILED DESCRIPTION

[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

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

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

[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0029] Processing: In the present invention, it specifically refers to mechanical processing, which refers to the process of changing the shape, size or performance of a workpiece through a mechanical device.

[0030] CNC machining: The control system sends out instructions to make the tool perform various movements that meet the requirements, and the shape and size of the workpiece and other technical requirements and processing technology requirements are expressed in the form of numbers and letters.

[0031] CNC program: A program code compiled or generated according to the instruction format specified by the CNC system, used to control the machining center to process products.

[0032] U-axis tool: also known as a flat rotary disc, this tool is usually installed on the spindle of the machining center. Through a specific mechanical structure, the tool head can move radially along the end face of the tool holder (U-axis direction) while the tool rotates. That is, the diameter of the tool will change according to the CNC program during the machining process, so that one tool can process multiple types of holes. Generally speaking, when a U-axis tool performs multiple hole machining with the same feature, only the machining program of the feature contour is written once, and the contour machining program of the remaining features can be called cyclically based on the initial cutting point. During the U-axis tool machining process, only the X coordinate is replaced by the U-axis movement, and the other coordinate axes can work normally.

[0033] Manual programming: refers to the process of designing and writing CNC programs through manual operation. The most important part is the numerical calculation of the graphic contour points, that is, it is usually necessary to calculate the coordinates of each base point or node of the machining contour, which is cumbersome and prone to errors.

[0034] CAM: Computer-aided manufacturing. CAM refers to the use of computer technology to assist in all production preparation activities from product design to processing and manufacturing. However, in this invention, CAM programming is limited to the technology of obtaining tool paths from computer models. CAM-related software includes NXCAM, MASTERCAM, POWERMILL, etc.

[0035] Tool location source file: A file generated by CAM software that contains tool coordinate data and post-processing, generally in APT language format.

[0036] NX: Formerly known as UG, it is a three-dimensional parametric design software launched by Siemens that integrates CAD / CAM / CAE.

[0037] NXCAM: NXCAM is the machining programming module in NX software and is the main component of NX software. NXCAM can meet the needs of CNC machining programming of various parts, and supports various machining methods such as 2 to 5-axis milling, turning, multi-function milling, EDM wire cutting, drilling, etc.

[0038] Post-processing: Post-processing is the process of converting the machining tool source file generated by CAM software into a NC program that can be read by a specific machine tool. The quality of the post-processing file directly affects the correctness, safety and readability of the NC program.

[0039] post builder: the post-processing constructor is a tool launched by Siemens for making post-processing suitable for NXCAM. It mainly consists of four parts: event generator, event processor, definition file and output file.

[0040] As introduced in the background technology, CAM programming in the prior art cannot meet the U-axis tool processing requirements. To solve this technical problem, the embodiments of the present application provide a U-axis tool processing method, device, computer program product and processing machine tool.

[0041] 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.

[0042] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 2 1 is a hardware structure block diagram of a mobile terminal of a U-axis tool processing method according to an embodiment of the present invention. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown.

[0043] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the U-axis tool processing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned network specific example may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0044] In this embodiment, a U-axis tool processing method running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0045] Figure 3 Flowchart of the U-axis tool processing method according to an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:

[0046] Step S201, obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to the coordinates of a point on the moving trajectory of the end of the U-axis tool in the CAM programming coordinate system;

[0047] Step S202, converting each of the above tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the above tool coordinate data one by one;

[0048] Step S203, controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches the initial processing position;

[0049] Step S204, a processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0050] Step S205, repeat the above processing steps at least once until there is no next NC program coordinate data, and the U-axis tool processing is completed.

[0051] In the above-mentioned U-axis tool processing method, the U-axis tool processing requires that the machinable diameter of the tool will change according to the CNC program during the processing process, so as to realize one tool to process multiple types of holes, and requires that the end of the U-axis tool can make radial movement along the U-axis direction. However, the tool coordinate data of the tool position source file of the existing CAM programming can only control the spindle of the processing machine tool to move along the axis of the machine tool coordinate system. The axis of the machine tool coordinate system does not include the U-axis, and the U-axis coordinates cannot be converted, so the U-axis tool cannot be controlled to move along the U-axis direction, and the processing requirements of the U-axis tool cannot be met. This method replaces the U-axis coordinates with the coordinates of the axis parallel to the U-axis in the machine tool coordinate system, that is, the coordinates of the target axis, to achieve control of the U-axis tool to move along the U-axis direction during processing, thereby meeting the processing requirements of the U-axis tool and solving the problem that CAM programming in the prior art cannot meet the processing requirements of the U-axis tool.

[0052] It should be noted that if Figure 4 As shown in the figure, the X axis of the machine tool coordinate system is the target axis. The coordinate system of CAM programming only has the X axis, Y axis and Z axis. After the coordinate conversion of each axis, the corresponding control spindle moves along the X axis, Y axis and Z axis of the machine tool coordinate system, that is, Figure 4 The X-axis, Y-axis and Z-axis in the figure are shown in Figure 1. The U-axis is the axis along which the U-axis tool 01 moves, not the axis along which the spindle moves. There is no U-axis coordinate to control the movement of the U-axis tool 01 along the U-axis. The enlarged view of the U-axis tool 01 is shown in Figure 1. Figure 5As shown, the U axis is parallel to the X axis, and the X axis coordinates parallel to the U axis are used to replace the U axis coordinates to control the U axis tool to move along the U axis. Under the premise of ensuring the function of the U axis transmission mechanism, the tool shape and type can be arbitrarily configured according to the processing requirements. The above coordinate replacement method can realize the conversion of the relevant tool source files into NC programs that meet the requirements, without manual modification, improving programming efficiency and programming accuracy. It can be applied to the post-processing development method of NXCAM, and the relevant application logic is also extended to MasterCAM, Powermill and other software.

[0053] In order to achieve continuous processing, in an optional implementation, before converting each of the above tool coordinate data to obtain a plurality of NC program coordinate data, the method further includes:

[0054] Step S301, reading the tool position source file, and taking the position of the first tool coordinate data as the starting position;

[0055] Step S302, when the main program is executed to the above-mentioned start position, the name of the U-axis tool numerical control subroutine is output to jump to the above-mentioned U-axis tool numerical control subroutine, and the above-mentioned U-axis tool numerical control subroutine is a program for controlling the above-mentioned U-axis tool to perform processing.

[0056] In the above implementation, the tool location source file is read, traversed, and the U-axis tool processing related codes are recorded, and the specific machine tool general post-processing program is directly called for the remaining codes to output the main program of the NC program. At the tool location source file position corresponding to the start of the U-axis tool of the NC program main program, the name of the U-axis tool NC subroutine is synchronously output to realize the jump from the main program to the U-axis tool subroutine, and other processing is continued after the U-axis tool processing to realize continuous processing.

[0057] In order to realize the processing of non-concentric holes, in an optional implementation manner, the X-axis, Y-axis and Z-axis of the coordinate system of the CAM programming correspond to the X-axis, Y-axis and Z-axis of the machine tool coordinate system respectively, the X-axis of the machine tool coordinate system is the target axis, and any two of the X-axis, Y-axis and Z-axis of the machine tool coordinate system are perpendicular to each other, such as Figure 4 In the machine tool shown in the figure, the Y axis of the machine tool coordinate system is used to adjust the height of the spindle. Of course, the present application is also applicable to machine tools of other structures, and the X axis, Y axis and Z axis directions of the machine tool coordinate system of other structures are the same as those of Figure 4 The tool coordinate data may be different, the tool coordinate data includes a first X-axis coordinate, a first Y-axis coordinate and a first Z-axis coordinate, the NC program coordinate data includes a second X-axis coordinate, a second Y-axis coordinate and a second Z-axis coordinate, and the step S202 includes:

[0058] Step S2021, a first conversion step, using a post-processing program of the processing machine tool to convert any one of the tool coordinate data to obtain the second X-axis coordinate and the second Z-axis coordinate, wherein the post-processing program is a program for converting the tool location source file into a numerical control program readable by the processing machine tool;

[0059] Step S2022, a second conversion step, using the same conversion method of the post-processing program to convert the first Y-axis coordinate to obtain the second Y-axis coordinate;

[0060] Step S2023, a combining step, combining the second X-axis coordinate, the second Z-axis coordinate and the second Y-axis coordinate into the numerical control program coordinate data;

[0061] Step S2024, repeating the first conversion step, the second conversion step and the combination step at least once in sequence until all the above-mentioned numerical control program coordinate data are obtained.

[0062] In the above implementation, according to the content of the tool position source file (coordinates Xu_source, Yu_source, Zu_source), based on the post-processing program of the lathe (the mounting spindle where the U-axis tool is located performs NC program output and limit according to the movement of the turning tool), the initial NC program (Xu_turning, Zu_turning) of the U-axis tool is output, and the Y coordinate is added to the initial NC program output process (to realize the conversion of two-dimensional turning motion to three-dimensional U-axis machining motion, and to realize the Y-axis direction movement of the mounting spindle where the U-axis tool is located), that is, the initial NC program becomes (Xu_turning, Yu_nc, Zu_turning), which is recorded as the final NC program of the U-axis tool (Xu_nc, Yu_nc, Zu_nc), wherein the coordinate content, the subscript u represents the U-axis tool, source, turning, nc respectively represent the coordinates before and after the corresponding coordinate system conversion, and source to turning and source to nc include the corresponding coordinate system conversion. The additional movement of the Y-axis and each rotating axis has been added to expand the use range of the U-axis tool, so that eccentric holes can be processed. The CNC program of the above-mentioned U-axis tool uses the U-axis tool enable instruction as the start mark and the end label number as the end mark, and the U-axis tool processing related CNC program is stored separately as a subroutine.

[0063] In order to improve applicability, in an optional implementation, the above step S2021 includes:

[0064] Step S20211, obtaining the rotation angle of the rotation axis of the above-mentioned processing machine tool, the above-mentioned rotation axis is used to rotate the workpiece processed by the above-mentioned processing machine tool, and the above-mentioned rotation angle includes a first rotation angle α, a second rotation angle β and a third rotation angle one or more of;

[0065] Step S20212: When the rotation axis rotates about the X axis of the machine tool coordinate system by the first rotation angle α, a first rotation matrix is ​​established. ;

[0066] Step S20213, when the rotation axis rotates about the Y axis of the machine tool coordinate system by the second rotation angle β, a second rotation matrix is ​​established: ;

[0067] Step S20214, rotating the rotation axis around the Z axis of the machine tool coordinate system by the third rotation angle In the case of, establish the third rotation matrix ;

[0068] Step S20215, using one or more of the first rotation matrix, the second rotation matrix and the third rotation matrix to transform the first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data to obtain the second X-axis coordinate and the second Z-axis coordinate. Figure 4 As shown, the chuck 02 of the machining machine can drive the workpiece to rotate along the rotation axis (B axis), and obtain the rotation angle β of the rotation axis around the Y axis of the machine tool coordinate system, which can be obtained through the rotation matrix The first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data are converted to obtain the second X-axis coordinate and the second Z-axis coordinate. Similarly, the first Y-axis coordinate of the tool coordinate data is converted to obtain the second Y-axis coordinate. Of course, multiple rotation angles and multiple rotation matrices can be used to perform coordinate conversion in the same way.

[0069] In order to start U-axis machining, in an optional implementation, the above step S203 includes:

[0070] Step S2031, controlling the spindle to move along the X-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the X-axis of the machine tool coordinate system is equal to the second X-axis coordinate of the first NC program coordinate data;

[0071] Step S2032, controlling the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the first NC program coordinate data;

[0072] Step S2033, controlling the spindle to move along the Z axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Z axis of the machine tool coordinate system is equal to the second Z axis coordinate of the first NC program coordinate data.

[0073] In the above implementation, the spindle is controlled to move along the corresponding axis according to the second X-axis coordinate, the second Y-axis coordinate and the second Z-axis coordinate of the first NC program coordinate data until it reaches the initial processing position for subsequent processing.

[0074] In order to meet different processing requirements, in an optional implementation, the above step S204 includes:

[0075] Step S2041, control the above-mentioned U-axis tool to move along the above-mentioned U-axis so that the coordinate of the end of the above-mentioned U-axis tool in the above-mentioned target axis is equal to the above-mentioned second X-axis coordinate of the next above-mentioned CNC program coordinate data, and control the above-mentioned spindle to move along the Y-axis of the above-mentioned machine tool coordinate system so that the coordinate of the end of the above-mentioned U-axis tool in the Y-axis of the above-mentioned machine tool coordinate system is equal to the above-mentioned second Y-axis coordinate of the next above-mentioned CNC program coordinate data, and control the above-mentioned spindle to move along the Z-axis of the above-mentioned machine tool coordinate system so that the coordinate of the end of the above-mentioned U-axis tool in the Z-axis of the above-mentioned machine tool coordinate system is equal to the above-mentioned second Z-axis coordinate of the next above-mentioned CNC program coordinate data.

[0076] In the above embodiment, the U-axis tool is controlled to move along the U-axis to adjust the tool radius, so that holes of different diameters can be processed. The spindle can be moved along the Y-axis to process eccentric holes, and can be moved along the Z-axis to process holes of different depths to meet different processing requirements.

[0077] In order to ensure the safety of the U-axis machining process, in an optional implementation, before the above machining steps, the above method further includes:

[0078] Step S401, obtaining input U-axis tool parameters, the U-axis tool parameters include U-axis tool number, U-axis maximum rotation speed, U-axis maximum acceleration of feed, U-axis maximum jerk of feed and U-axis moving distance per rotation.

[0079] In the above implementation, the U-axis tool parameters, including the U-axis tool number, the maximum speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum jerk of the U-axis feed and the distance moved per revolution of the U-axis, are obtained and output to the beginning of the program to ensure the safety of the subsequent U-axis machining process.

[0080] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the U-axis tool processing method of the present application will be described in detail below in combination with specific embodiments.

[0081] This embodiment relates to a specific U-axis tool processing method, such as Figure 6 As shown, the following steps are included:

[0082] Step S1: Read the tool location source file, traverse, record the U-axis tool processing related codes and directly call the specific machine tool general post-processing program for the remaining codes to output the main program of the CNC program.

[0083] Step S2: at the tool position source file location of the U-axis tool corresponding to the main program of the NC program, the name of the U-axis tool NC subroutine is synchronously output to realize the jump from the main program to the U-axis tool subroutine.

[0084] Step S3: Obtain the U-axis tool parameters, including the U-axis tool number, the maximum speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum jerk of the U-axis feed, and the distance moved per revolution of the U-axis. Output them to the beginning of the program.

[0085] Step S4: According to the content of the tool source file (coordinate X u_source , Y u_source , Z u_source ), based on the lathe post-processing program (the spindle where the U-axis tool is installed outputs the NC program and limits according to the movement of the lathe tool) to output the initial NC program of the U-axis tool (X u_turning , Z u_turning ), and simultaneously add the Y coordinate in the initial NC program output process (to realize the conversion of 2D turning motion to 3DU axis machining motion, and to realize the Y-axis motion of the spindle where the U-axis tool is installed), that is, the initial NC program becomes (X u_turning , Y u_nc , Z u_turning ), recorded as the final NC program of the U-axis tool (X u_nc , Y u_nc , Z u_nc ). The NC program of the U-axis tool uses the U-axis tool enable instruction as the start mark and the end label number as the end mark, and the NC program related to the U-axis tool processing is stored separately as a subroutine. The X coordinate of the final NC program of the U-axis tool is used to control the change of the U-axis tool diameter, and the Y and Z coordinates are used to control the movement of the spindle. The coordinate content, the subscript u represents the U-axis tool, source, turning, nc respectively represent the coordinates before and after the corresponding coordinate system conversion, source to turning, source to nc include the corresponding coordinate system conversion.

[0086] Step S4: After the end tag number is executed, the CNC program execution will jump back to the main program.

[0087] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0088] The embodiment of the present application also provides a U-axis tool processing device. It should be noted that the U-axis tool processing device of the embodiment of the present application can be used to execute the U-axis tool processing method provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0089] The following is an introduction to the U-axis tool processing device provided in an embodiment of the present application.

[0090] Figure 7 : is a structural block diagram of a U-axis tool processing device according to an embodiment of the present application. Figure 7 As shown, the device comprises:

[0091] The first acquisition unit 10 is used to acquire a tool location source file generated by a CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to a coordinate of a point on a moving trajectory of the end of a U-axis tool in a CAM programming coordinate system;

[0092] A conversion unit 20, used to convert each of the above tool coordinate data to obtain a plurality of NC program coordinate data, wherein the plurality of NC program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the NC program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the NC program coordinate data correspond to the tool coordinate data one by one;

[0093] A control unit 30, used for controlling the spindle to move according to the first NC program coordinate data, so that the U-axis tool reaches the initial processing position;

[0094] The machining unit 40 is used to execute the machining steps, control the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and control the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0095] The repeating unit 50 is used to repeat the above processing steps at least once until there is no next NC program coordinate data and the U-axis tool processing is completed.

[0096] In the above-mentioned U-axis tool processing device, the machining of the U-axis tool requires that the machinable diameter of the tool will change according to the CNC program during the machining process, so as to realize the machining of multiple types of holes by one tool, and the end of the U-axis tool is required to be able to move radially along the U-axis direction. However, the tool coordinate data of the tool position source file of the existing CAM programming can only control the movement of the spindle of the machining machine along the axis of the machine tool coordinate system. The axis of the machine tool coordinate system does not include the U-axis, and it is impossible to convert the U-axis coordinates, so the U-axis tool cannot be controlled to move along the U-axis direction, and the machining requirements of the U-axis tool cannot be met. The device replaces the U-axis coordinates with the coordinates of the axis parallel to the U-axis in the machine tool coordinate system, that is, the coordinates of the target axis, to control the movement of the U-axis tool along the U-axis direction during the machining process, thereby meeting the machining requirements of the U-axis tool and solving the problem that CAM programming in the prior art cannot meet the machining requirements of the U-axis tool.

[0097] It should be noted that if Figure 4 As shown in the figure, the X axis of the machine tool coordinate system is the target axis. The coordinate system of CAM programming only has the X axis, Y axis and Z axis. After the coordinate conversion of each axis, the corresponding control spindle moves along the X axis, Y axis and Z axis of the machine tool coordinate system, that is, Figure 4 The X-axis, Y-axis and Z-axis in the figure are shown in Figure 1. The U-axis is the axis along which the U-axis tool 01 moves, not the axis along which the spindle moves. There is no U-axis coordinate to control the movement of the U-axis tool 01 along the U-axis. The enlarged view of the U-axis tool 01 is shown in Figure 1. Figure 5 As shown, the U axis is parallel to the X axis, and the X axis coordinates parallel to the U axis are used to replace the U axis coordinates to control the U axis tool to move along the U axis. Under the premise of ensuring the function of the U axis transmission mechanism, the tool shape and type can be arbitrarily configured according to the processing requirements. The above coordinate replacement method can realize the conversion of the relevant tool source files into NC programs that meet the requirements, without manual modification, improving programming efficiency and programming accuracy. It can be applied to the post-processing development method of NXCAM, and the relevant application logic is also extended to MasterCAM, Powermill and other software.

[0098] In order to achieve continuous processing, in an optional embodiment, the above device further includes:

[0099] A reading unit, used for reading the tool position source file before converting each of the tool coordinate data to obtain a plurality of NC program coordinate data, and taking the position of the first tool coordinate data as the starting position;

[0100] The output unit is used to output the name of the U-axis tool CNC subroutine when the main program is executed to the above-mentioned starting position, so as to jump to the above-mentioned U-axis tool CNC subroutine. The above-mentioned U-axis tool CNC subroutine is a program for controlling the above-mentioned U-axis tool to perform processing.

[0101] In the above implementation, the tool location source file is read, traversed, and the U-axis tool processing related codes are recorded, and the specific machine tool general post-processing program is directly called for the remaining codes to output the main program of the NC program. At the tool location source file position corresponding to the start of the U-axis tool of the NC program main program, the name of the U-axis tool NC subroutine is synchronously output to realize the jump from the main program to the U-axis tool subroutine, and other processing is continued after the U-axis tool processing to realize continuous processing.

[0102] In order to realize the processing of non-concentric holes, in an optional implementation manner, the X-axis, Y-axis and Z-axis of the coordinate system of the CAM programming correspond to the X-axis, Y-axis and Z-axis of the machine tool coordinate system respectively, the X-axis of the machine tool coordinate system is the target axis, and any two of the X-axis, Y-axis and Z-axis of the machine tool coordinate system are perpendicular to each other, such as Figure 4 In the machine tool shown in the figure, the Y axis of the machine tool coordinate system is used to adjust the height of the spindle. Of course, the present application is also applicable to machine tools of other structures. The X axis, Y axis and Z axis directions of the machine tool coordinate system of the machine tools of other structures are the same as those of the Figure 4 The tool coordinate data may be different, the tool coordinate data includes a first X-axis coordinate, a first Y-axis coordinate and a first Z-axis coordinate, the NC program coordinate data includes a second X-axis coordinate, a second Y-axis coordinate and a second Z-axis coordinate, and the conversion unit includes:

[0103] A first conversion module, used to perform a first conversion step, using a post-processing program of the processing machine tool to convert any one of the tool coordinate data to obtain the second X-axis coordinate and the second Z-axis coordinate, wherein the post-processing program is a program for converting the tool location source file into a numerical control program readable by the processing machine tool;

[0104] A second conversion module, used to perform a second conversion step, using the same conversion method of the post-processing program to convert the first Y-axis coordinate to obtain the second Y-axis coordinate;

[0105] A combining module, used for executing the combining step, combining the second X-axis coordinate, the second Z-axis coordinate and the second Y-axis coordinate into the numerical control program coordinate data;

[0106] The repeating module is used to repeat the first conversion step, the second conversion step and the combination step at least once in sequence until all the numerical control program coordinate data are obtained.

[0107] In the above implementation, according to the content of the tool position source file (coordinate Xu_source , Y u_source , Z u_source ), based on the lathe post-processing program (the spindle where the U-axis tool is installed outputs the NC program and limits according to the movement of the lathe tool) to output the initial NC program of the U-axis tool (X u_turning , Z u_turning ), and simultaneously add the Y coordinate in the initial NC program output process (to realize the conversion of 2D turning motion to 3DU axis machining motion, and to realize the Y-axis motion of the spindle where the U-axis tool is installed), that is, the initial NC program becomes (X u_turning , Y u_nc , Z u_turning ), recorded as the final NC program of the U-axis tool (X u_nc , Y u_nc , Z u_nc ). The coordinate content, subscript u represents the U-axis tool, source, turning, nc represent the coordinates before and after the corresponding coordinate system conversion, source to turning, source to nc include the corresponding coordinate system conversion. The additional movement of the Y-axis and each rotation axis is added to expand the use range of the U-axis tool, and it can process non-concentric holes. The NC program of the above-mentioned U-axis tool uses the U-axis tool enable instruction as the start mark and the end label number as the end mark, and the NC program related to the U-axis tool processing is stored separately as a subroutine.

[0108] In order to improve applicability, in an optional implementation, the first conversion module includes:

[0109] The acquisition submodule is used to acquire the rotation angle of the rotation axis of the above-mentioned processing machine tool, and the above-mentioned rotation axis is used to rotate the workpiece processed by the above-mentioned processing machine tool. The above-mentioned rotation angle includes a first rotation angle α, a second rotation angle β and a third rotation angle one or more of;

[0110] The first establishing submodule is used to establish a first rotation matrix when the rotation axis rotates around the X axis of the machine tool coordinate system by the first rotation angle α. ;

[0111] The second establishing submodule is used to establish a second rotation matrix when the rotation axis rotates around the Y axis of the machine tool coordinate system by the second rotation angle β. ;

[0112] The third submodule is used to rotate the rotation axis around the Z axis of the machine tool coordinate system by the third rotation angle. In the case of, establish the third rotation matrix ;

[0113] The conversion submodule is used to transform the first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data using one or more of the first rotation matrix, the second rotation matrix and the third rotation matrix to obtain the second X-axis coordinate and the second Z-axis coordinate.

[0114] In the above implementation, if Figure 4 As shown, the chuck 02 of the machining machine can drive the workpiece to rotate along the rotation axis (B axis), and obtain the rotation angle β of the rotation axis around the Y axis of the machine tool coordinate system, which can be obtained through the rotation matrix , the first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data are converted to obtain the second X-axis coordinate and the second Z-axis coordinate. Similarly, the first Y-axis coordinate of the tool coordinate data is converted to obtain the second Y-axis coordinate. Of course, multiple rotation angles and multiple rotation matrices can be used to perform coordinate conversion in the same way.

[0115] In order to start U-axis machining, in an optional implementation, the control unit includes:

[0116] A first control module is used to control the spindle to move along the X-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the X-axis of the machine tool coordinate system is equal to the second X-axis coordinate of the first NC program coordinate data;

[0117] A second control module is used to control the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the first NC program coordinate data;

[0118] The third control module is used to control the spindle to move along the Z axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Z axis of the machine tool coordinate system is equal to the second Z axis coordinate of the first CNC program coordinate data.

[0119] In the above implementation, the spindle is controlled to move along the corresponding axis according to the second X-axis coordinate, the second Y-axis coordinate and the second Z-axis coordinate of the first NC program coordinate data until it reaches the initial processing position for subsequent processing.

[0120] In order to meet different processing requirements, in an optional implementation, the processing unit includes:

[0121] The fourth control module is used to control the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool on the target axis is equal to the second X-axis coordinate of the next CNC program coordinate data, and control the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the next CNC program coordinate data, and control the spindle to move along the Z-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Z-axis of the machine tool coordinate system is equal to the second Z-axis coordinate of the next CNC program coordinate data.

[0122] In the above embodiment, the U-axis tool is controlled to move along the U-axis to adjust the tool radius, so that holes of different diameters can be processed. The spindle can be moved along the Y-axis to process eccentric holes, and along the Z-axis to process holes of different depths to meet different processing requirements.

[0123] In order to ensure the safety of the U-axis machining process, in an optional implementation, the above device also includes:

[0124] The second acquisition unit is used to obtain the input U-axis tool parameters before the above-mentioned processing steps. The above-mentioned U-axis tool parameters include the U-axis tool number, the maximum speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum acceleration of the U-axis feed and the distance moved per revolution of the U-axis.

[0125] In the above implementation, the U-axis tool parameters, including the U-axis tool number, the maximum speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum jerk of the U-axis feed and the distance moved per revolution of the U-axis, are obtained and output to the beginning of the program to ensure the safety of the subsequent U-axis machining process.

[0126] The U-axis tool processing device includes a processor and a memory, and the first acquisition unit, conversion unit, control unit, processing unit and repetition unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.

[0127] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem that CAM programming in the prior art cannot meet the U-axis tool processing requirements can be solved by adjusting kernel parameters.

[0128] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0129] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the U-axis tool processing method.

[0130] Specifically, the U-axis tool processing method includes:

[0131] Step S201, obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to the coordinates of a point on the moving trajectory of the end of the U-axis tool in the CAM programming coordinate system;

[0132] Step S202, converting each of the above tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the above tool coordinate data one by one;

[0133] Step S203, controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches the initial processing position;

[0134] Step S204, a processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0135] Step S205, repeat the above processing steps at least once until there is no next NC program coordinate data, and the U-axis tool processing is completed.

[0136] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the U-axis tool processing method is executed when the program is run.

[0137] Specifically, the U-axis tool processing method includes:

[0138] Step S201, obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to the coordinates of a point on the moving trajectory of the end of the U-axis tool in the CAM programming coordinate system;

[0139] Step S202, converting each of the above tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the above tool coordinate data one by one;

[0140] Step S203, controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches the initial processing position;

[0141] Step S204, a processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0142] Step S205, repeat the above processing steps at least once until there is no next NC program coordinate data, and the U-axis tool processing is completed.

[0143] An embodiment of the present invention provides a machining machine tool, including a U-axis tool, a spindle, a processor, a memory, and a program stored in the memory and executable on the processor, wherein the U-axis tool is mounted on the spindle, and when the processor executes the program, at least the following steps are implemented:

[0144] Step S201, obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to the coordinates of a point on the moving trajectory of the end of the U-axis tool in the CAM programming coordinate system;

[0145] Step S202, converting each of the above tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the above tool coordinate data one by one;

[0146] Step S203, controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches the initial processing position;

[0147] Step S204, a processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0148] Step S205, repeat the above processing steps at least once until there is no next NC program coordinate data, and the U-axis tool processing is completed.

[0149] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0150] Step S201, obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to the coordinates of a point on the moving trajectory of the end of the U-axis tool in the CAM programming coordinate system;

[0151] Step S202, converting each of the above tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the above tool coordinate data one by one;

[0152] Step S203, controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches the initial processing position;

[0153] Step S204, a processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next NC program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next NC program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system;

[0154] Step S205, repeat the above processing steps at least once until there is no next NC program coordinate data, and the U-axis tool processing is completed.

[0155] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0160] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0161] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0162] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0163] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0164] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0165] 1) In the U-axis tool processing method of the present application, the U-axis tool processing requires that the machinable diameter of the tool will change according to the CNC program during the processing process, so as to realize one tool to process multiple types of holes, and requires that the end of the U-axis tool can make radial movement along the U-axis direction. However, the tool coordinate data of the tool position source file of the existing CAM programming can only control the spindle of the processing machine tool to move along the axis of the machine tool coordinate system. The axis of the machine tool coordinate system does not include the U-axis, and it is impossible to convert it to obtain the U-axis coordinate, so that the U-axis tool cannot be controlled to move along the U-axis direction, and the processing requirements of the U-axis tool cannot be met. The device replaces the U-axis coordinate with the coordinate of the axis parallel to the U-axis in the machine tool coordinate system, that is, the coordinate of the target axis, to achieve control of the U-axis tool to move along the U-axis direction during the processing, thereby meeting the processing requirements of the U-axis tool and solving the problem that CAM programming in the prior art cannot meet the processing requirements of the U-axis tool.

[0166] 2) In the U-axis tool processing device of the present application, the U-axis tool processing requires that the machinable diameter of the tool will change according to the CNC program during the processing process, so as to realize one tool to process multiple types of holes, and the end of the U-axis tool is required to be able to move radially along the U-axis direction. However, the tool coordinate data of the tool position source file of the existing CAM programming can only control the movement of the spindle of the processing machine tool along the axis of the machine tool coordinate system. The axis of the machine tool coordinate system does not include the U-axis, and the U-axis coordinates cannot be converted, so the U-axis tool cannot be controlled to move along the U-axis direction, and the processing requirements of the U-axis tool cannot be met. The device replaces the U-axis coordinates with the coordinates of the axis parallel to the U-axis in the machine tool coordinate system, that is, the coordinates of the target axis, to achieve control of the U-axis tool to move along the U-axis direction during processing, thereby meeting the processing requirements of the U-axis tool and solving the problem that CAM programming in the prior art cannot meet the processing requirements of the U-axis tool.

[0167] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A U-axis tool processing method, characterized in that: include: Obtaining a tool location source file generated by CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to a coordinate of a point on a moving trajectory of a tip of a U-axis tool in a CAM programming coordinate system; Convert each of the tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the machining machine, and the numerical control program coordinate data correspond to the tool coordinate data one by one; Controlling the movement of the spindle according to the first NC program coordinate data so that the U-axis tool reaches an initial processing position; A processing step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next numerical control program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next numerical control program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system; Repeat the processing steps at least once until there is no next numerical control program coordinate data, and the U-axis tool processing is completed.

2. The method according to claim 1, characterized in that: Before converting each of the tool coordinate data to obtain a plurality of numerical control program coordinate data, the method further includes: Read the tool position source file, and use the position of the first tool coordinate data as the starting position; When the main program is executed to the start position, the name of the U-axis tool numerical control subroutine is output to jump to the U-axis tool numerical control subroutine, and the U-axis tool numerical control subroutine is a program for controlling the U-axis tool to perform processing.

3. The method according to claim 1, characterized in that The X-axis, Y-axis and Z-axis of the CAM programming coordinate system correspond to the X-axis, Y-axis and Z-axis of the machine tool coordinate system respectively, the X-axis of the machine tool coordinate system is the target axis, any two of the X-axis, Y-axis and Z-axis of the machine tool coordinate system are perpendicular to each other, the tool coordinate data includes a first X-axis coordinate, a first Y-axis coordinate and a first Z-axis coordinate, the NC program coordinate data includes a second X-axis coordinate, a second Y-axis coordinate and a second Z-axis coordinate, and each of the tool coordinate data is converted to obtain a plurality of NC program coordinate data, including: In a first conversion step, a post-processing program of the processing machine tool is used to convert any one of the tool coordinate data to obtain the second X-axis coordinate and the second Z-axis coordinate, wherein the post-processing program is a program for converting the tool location source file into a numerical control program readable by the processing machine tool; A second conversion step, converting the first Y-axis coordinate to obtain the second Y-axis coordinate using the same conversion method of the post-processing program; a combining step of combining the second X-axis coordinate, the second Z-axis coordinate and the second Y-axis coordinate into the numerical control program coordinate data; The first conversion step, the second conversion step and the combination step are sequentially repeated at least once until all the numerical control program coordinate data are obtained.

4. The method according to claim 3, characterized in that The first conversion step comprises: Obtain the rotation angle of the rotation axis of the processing machine tool, the rotation axis is used to rotate the workpiece processed by the processing machine tool, and the rotation angle includes a first rotation angle α, a second rotation angle β and a third rotation angle one or more of; When the rotation axis rotates about the X-axis of the machine tool coordinate system by the first rotation angle α, a first rotation matrix is ​​established. ; When the rotation axis rotates about the Y axis of the machine tool coordinate system by the second rotation angle β, a second rotation matrix is ​​established. ; The rotation axis is rotated by the third rotation angle around the Z axis of the machine tool coordinate system In the case of, establish the third rotation matrix ; The first X-axis coordinate and the first Z-axis coordinate of the tool coordinate data are transformed using one or more of the first rotation matrix, the second rotation matrix, and the third rotation matrix to obtain the second X-axis coordinate and the second Z-axis coordinate.

5. The method according to claim 3, characterized in that: Controlling the spindle to move according to the first NC program coordinate data so that the U-axis tool reaches an initial processing position includes: Controlling the spindle to move along the X-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the X-axis of the machine tool coordinate system is equal to the second X-axis coordinate of the first NC program coordinate data; Controlling the spindle to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the first NC program coordinate data; The spindle is controlled to move along the Z axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool in the Z axis of the machine tool coordinate system is equal to the second Z axis coordinate of the first numerical control program coordinate data.

6. The method according to claim 3, characterized in that The processing steps include: The U-axis tool is controlled to move along the U-axis so that the coordinate of the end of the U-axis tool on the target axis is equal to the second X-axis coordinate of the next CNC program coordinate data, and the spindle is controlled to move along the Y-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Y-axis of the machine tool coordinate system is equal to the second Y-axis coordinate of the next CNC program coordinate data, and the spindle is controlled to move along the Z-axis of the machine tool coordinate system so that the coordinate of the end of the U-axis tool on the Z-axis of the machine tool coordinate system is equal to the second Z-axis coordinate of the next CNC program coordinate data.

7. The method according to claim 1, characterized in that Prior to the processing step, the method further comprises: The input U-axis tool parameters are obtained, wherein the U-axis tool parameters include the U-axis tool number, the maximum rotation speed of the U-axis, the maximum acceleration of the U-axis feed, the maximum jerk of the U-axis feed, and the distance moved per revolution of the U-axis.

8. A U-axis tool processing device, characterized in that: include: A first acquisition unit is used to acquire a tool location source file generated by a CAM software, wherein the tool location source file at least includes a plurality of tool coordinate data, wherein one of the tool coordinate data corresponds to a coordinate of a point on a moving trajectory of a tip of a U-axis tool in a CAM programming coordinate system; A conversion unit, used to convert each of the tool coordinate data to obtain a plurality of numerical control program coordinate data, wherein the plurality of numerical control program coordinate data are arranged in the order of the points of the corresponding moving trajectory, the numerical control program coordinate data are the coordinates of the end of the U-axis tool in the machine tool coordinate system of the processing machine tool, and the numerical control program coordinate data correspond to the tool coordinate data one by one; A control unit, used for controlling the movement of the spindle according to the first NC program coordinate data, so that the U-axis tool reaches an initial processing position; A machining unit, used for executing a machining step, controlling the U-axis tool to move along the U-axis so that the coordinate of the end of the U-axis tool at the target axis is equal to the coordinate of the target axis of the next numerical control program coordinate data, and controlling the spindle to move along other axes in the machine tool coordinate system so that the coordinate of the end of the U-axis tool at the other axes is equal to the coordinate of the other axes of the next numerical control program coordinate data, the target axis is parallel to the U-axis, and the other axes are axes other than the target axis in the machine tool coordinate system; The repeating unit is used to repeat the processing steps at least once until there is no next numerical control program coordinate data and the U-axis tool processing is completed.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A processing machine tool, characterized in that: include: A U-axis tool, a spindle, one or more processors, a memory, and one or more programs, wherein the U-axis tool is mounted on the spindle, the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.

Citation Information

Patent Citations

  • Blade five-axis machining programming processing method and device

    CN105242638A

  • Method and device for post-processing CAM numerical control machining program and storage medium

    CN116540638A