Post-processing method of boring programming tool position source file and related device and machine tool system

By determining the boring tool position and return position based on the tool distance and the spindle orientation angle in boring programming, the CNC program is directly generated, and the defects of manual modification in the prior art are solved, and automatic boring of multiple coaxial holes is realized Hole operation improves efficiency and resource utilization.

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

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, the tool position source file for boring programming needs to be translated into a CNC program, resulting in a large amount of human resources being wasted and complex tooling actions cannot be achieved.

Method used

By determining the boring tool position and return position based on the preset tool distance and spindle orientation angle, the corresponding program is generated, and directly written to the CNC program template, the boring operation is automated.

Benefits of technology

Without manual modification of CNC programs, the CNC machine tool is automatically controlled to bore multiple coaxial holes, which improves the efficiency of generating directly available CNC program files and frees up human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897505B_ABST
    Figure CN118897505B_ABST
Patent Text Reader

Abstract

The present application provides a post-processing method for a boring programming tool position source file and a related device and a machine tool system. The method comprises: determining the coordinates of the tool letting position in a first direction and a second direction according to a preset tool letting distance, a preset spindle orientation angle and a first moving position in the tool position source file; determining the coordinates of the tool letting position in a third direction according to a second moving position in the tool position source file and a first preset tool compensation, obtaining the tool letting position, and writing a tool letting program for controlling a tool of a numerical control machine tool to move to the tool letting position into a numerical control program template; determining a return position after tool letting according to the first moving position and the second moving position, and writing a return program for controlling the tool to move to the return position after tool letting into the numerical control program template; determining machining parameters according to the tool position source file, and writing a machining program for controlling the tool to run according to the machining parameters into the numerical control program template.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of numerical control technology, and in particular to a post-processing method, device, computer-readable storage medium, computer program product and numerical control machine tool system for a tool position source file of boring programming. Background Art

[0002] The finishing of the main shaft hole, camshaft hole, idler shaft hole and other hole systems is a key process of the engine. In order to ensure the coaxiality and processing efficiency of each hole, it should generally be completed in one time by a boring bar. However, because the boring bar is generally slender, it is necessary to add a guide sleeve support to the crotch part such as the main shaft hole, which makes it impossible for the boring bar to complete the processing in one feed.

[0003] The tool path generated for hole features in existing CAM (Computer Aided Manufacturing) programming software is generally a single-segment tool path from the top of the hole to the bottom of the hole. However, for the programming of features such as engine spindle holes and camshaft holes, since operations such as tool release and spindle orientation are required, conventional programming methods cannot achieve such complex actions. The output NC (Numerical Control) program must be manually modified before it can be used for actual processing. Summary of the invention

[0004] The main purpose of the present application is to provide a post-processing method, device, computer-readable storage medium, computer program product and CNC machine tool system for tool location source files of boring programming, so as to at least solve the problem in the prior art that tool location source files need to be manually modified after being translated into NC programs before they can be used for actual processing, which occupies a large amount of human resources.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a post-processing method of a tool position source file for boring programming is provided, wherein the tool position source file is a program file for using a numerically controlled machine tool to perform boring operations on multiple coaxial holes of a workpiece to be processed, and the method comprises: determining the coordinates of the tool-allowing position in a first direction and a second direction according to a preset tool-allowing distance, a preset spindle orientation angle, and a first moving position in the tool position source file, and determining the coordinates of the tool-allowing position in a third direction according to a second moving position in the tool position source file and a first preset tool compensation, obtaining the tool-allowing position, and writing a tool-allowing program for controlling the tool of the numerically controlled machine tool to move to the tool-allowing position into a numerically controlled program template, wherein the spindle orientation angle is a fixed orientation angle of the spindle of the numerically controlled machine tool, the first moving position is a position indicated by the first moving instruction, and the second moving position is a position indicated by the first moving instruction. The method comprises the following steps: a) determining a position indicated by the penultimate cycle processing instruction to reach the position; b) determining a position indicated by the penultimate cycle processing instruction to reach the position indicated by the penultimate cycle processing instruction; c) determining a position indicated by the penultimate cycle processing instruction to reach the ...

[0006] Optionally, the first moving position includes a first moving coordinate value in the first direction, a second moving coordinate value in the second direction, and a third moving coordinate value in the third direction, the second moving position includes a fourth moving coordinate value in the first direction, a fifth moving coordinate value in the second direction, and a sixth moving coordinate value in the third direction, and the coordinates of the tool-allowing position in the first direction and the coordinates in the second direction are determined according to a preset tool-allowing distance, a preset spindle orientation angle, and the first moving position in the tool position source file, and the coordinates of the tool-allowing position in the third direction are determined according to the second moving position in the tool position source file and a first preset tool compensation, including: determining the coordinates of the tool-allowing position in the third direction according to the tool-allowing distance, the spindle orientation angle, and the first moving position in the tool position source file According to the spindle orientation angle and the first moving coordinate value, a first compensation value is determined to be the product of the cosine value of the spindle orientation angle and the tool letting distance, and the coordinates of the tool letting position in the first direction are determined to be the sum of the first compensation value and the first moving coordinate value; according to the tool letting distance, the spindle orientation angle and the second moving coordinate value, a second compensation value is determined to be the product of the sine value of the spindle orientation angle and the tool letting distance, and the coordinates of the tool letting position in the second direction are determined to be the sum of the second compensation value and the second moving coordinate value; according to the sixth moving coordinate value and the first preset tool compensation, the coordinates of the tool letting position in the third direction are determined to be the sum of the sixth moving coordinate value and the first preset tool compensation.

[0007] Optionally, after determining the coordinates of the tool letting position in the first direction and the coordinates of the tool letting position in the second direction, the method further includes: writing a spindle orientation program for controlling the spindle to be oriented to the spindle orientation angle into the numerical control program template, and the program is located before the tool letting program; updating the first moving position to a position including the coordinates of the tool letting position in the first direction, the coordinates of the tool letting position in the second direction and the third moving coordinate value, and writing an initial moving program for controlling the tool to move to the updated first moving position into the numerical control program template, and the program is located between the spindle orientation program and the tool letting program.

[0008] Optionally, determining a return position after tool letting go according to the first moving position and the second moving position includes: determining the return position after tool letting go as a position including the first moving coordinate value, the second moving coordinate value and the sixth moving coordinate value.

[0009] Optionally, before determining the coordinates of the tool letting position in the first direction and the coordinates in the second direction according to a preset tool letting distance, a preset spindle orientation angle and the first moving position in the tool position source file, the method further comprises: upon receiving a start operation for post-processing of the tool position source file, displaying an editing interface on a display panel, the editing interface comprising an edit box for a tool grabbing position, an edit box for a gripping angle of the spindle, an edit box for a tool gripping direction vector, an edit box for the tool letting distance and an edit box for the spindle orientation angle; determining the tool grabbing position, the gripping angle of the spindle, the tool gripping direction vector, the tool letting distance and the spindle orientation angle in response to a predetermined operation acting on the editing interface; and before writing an initialization program for controlling the CNC machine tool to execute an in-machine tool grabbing into the tool letting program in the CNC program template according to data information from a starting program to the first moving instruction in the tool position source file, the tool grabbing position, the gripping angle of the spindle and the tool gripping direction vector.

[0010] Optionally, according to the data information between the starting program and the first movement instruction in the tool position source file, the tool grabbing position, the grasping angle of the spindle and the tool grabbing direction vector, before writing the initialization program for controlling the CNC machine tool to execute the tool grabbing in the machine into the tool letting program in the CNC program template, the method includes: determining the name of the tool, the rotation center position of the turntable of the CNC machine tool and the direction vector of the third direction according to the data information, the tool and the workpiece to be processed are limited on the turntable by a boring die mechanism; determining the rotation angle of the turntable according to the direction vector and the tool grabbing direction vector, the rotation angle being the angle between the tool grabbing direction vector and the direction vector The angle between the tool gripping position and the rotation angle is updated according to the tool gripping position, the rotation angle and the rotation center position to obtain an updated tool gripping position, wherein the updated tool gripping position is a position for gripping the tool on the boring die mechanism when the turntable rotates along the rotation center position by the rotation angle; a tool gripping program including the name of the tool, the gripping angle of the spindle, the updated tool gripping position and the rotation angle is generated, and the tool gripping program is written before the tool letting program in the numerical control program template; a first tool retraction program for controlling the tool to retract to a first safety position is generated, and the first tool retraction program is written after the tool gripping program and before the tool letting program in the numerical control program template.

[0011] Optionally, the first moving position includes a first moving coordinate value in the first direction, a second moving coordinate value in the second direction, and a third moving coordinate value in the third direction. According to the tool location source file, determining the processing parameters includes: determining the coordinates of the processing start position and the processing end position of the tool in the first direction as the first moving coordinates, and determining the coordinates of the processing start position and the processing end position in the second direction as the second moving coordinates; according to the third moving position in the tool location source file, the boring depth, the first preset tool compensation and the second preset tool compensation, determining the coordinates of the processing start position in the third direction as the coordinates of the third moving position in the third direction The coordinates in the direction and the second preset tool compensation are determined, and the coordinates of the machining end position in the third direction are determined to be the sum of the boring depth and the first preset tool compensation, the third moving position is the position indicated by the last cycle machining instruction, the boring depth is the depth value of the boring along the third direction indicated by the last cycle machining instruction, and the second preset tool compensation is the tool compensation value of the first rough boring blade point of the CNC machine tool in the third direction; control parameters including the spindle speed, the feed amount of the tool and the spindle forward rotation instruction are read from the tool position source file to obtain the machining processing parameters including the machining start position, the machining end position and the control parameters.

[0012] Optionally, after writing the processing program that controls the tool to operate according to the processing parameters into the return program in the CNC program template, a CNC program file that controls the CNC machine tool processing is obtained, including: after writing the processing program that controls the tool to operate according to the processing parameters into the return program in the CNC program template; generating a second tool retraction program that controls the tool to retract to a second safe position, and writing the second tool retraction program into the processing program in the CNC program template; generating a tool placement program that places the tool in a tool storage position, and writing the tool placement program into the second tool retraction program in the CNC program template, and then obtaining the CNC program file.

[0013] According to another aspect of the present application, a post-processing device for a tool position source file of boring programming is provided, wherein the tool position source file is a program file for using a numerically controlled machine tool to perform boring operations on multiple coaxial holes of a workpiece to be processed, and the device comprises: a first determining unit, for determining the coordinates of the tool letting position in a first direction and a second direction according to a preset tool letting distance, a preset spindle orientation angle, and a first moving position in the tool position source file, and for determining the coordinates of the tool letting position in a third direction according to a second moving position in the tool position source file and a first preset tool compensation, to obtain the tool letting position, and writing a tool letting program for controlling the tool of the numerically controlled machine tool to move to the tool letting position into a numerically controlled program template, wherein the spindle orientation angle is a fixed orientation angle of the spindle of the numerically controlled machine tool, the first moving position is a position indicated by the first moving instruction to reach, and the second moving position is a position indicated by the second to last cycle compensation. The position indicated by the work instruction, the first preset tool compensation is the tool compensation value of the first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the multiple coaxial holes; the second determining unit is used to determine the return position after tool letting go according to the first moving position and the second moving position, and write the return program for controlling the tool to move to the return position after tool letting go into the CNC program template; the third determining unit is used to determine the processing parameters according to the tool position source file, and write the processing program for controlling the tool to run according to the processing parameters into the return program in the CNC program template, so as to obtain the CNC program file for controlling the CNC machine tool processing, and the CNC program file is used to perform the boring operation on the multiple coaxial holes at the same time.

[0014] According to another aspect of the present application, a computer-readable storage medium is provided, 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 any one of the methods described.

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

[0016] According to another aspect of the present application, a CNC machine tool system is provided, comprising: a CNC machine tool; a controller of the CNC machine tool, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and 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.

[0017] By applying the technical solution of the present application, in the process of post-processing the tool position source file, the tool position, the return position after tool release and the processing parameters are determined respectively according to the tool release distance, the spindle orientation angle and the information in the tool position source file, and the tool release program, the return program after tool release and the processing program are correspondingly generated and written into the NC program template to obtain a NC program file. Through the NC program file, the NC machine tool can be automatically controlled to perform boring operations on multiple coaxial holes of the workpiece to be processed at the same time, and the effect of automatically adding the tool release program in the process of translating the tool position source file into a program directly available to the NC machine tool is achieved. There is no need to manually add the tool release program in the NC program after obtaining it, which liberates manpower and solves the problem that conventional programming methods cannot realize complex tool release actions and need to manually modify the program, resulting in a waste of human resources. In addition, compared with the prior art, the solution of the present application improves the efficiency of generating NC program files directly available to the NC machine tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A hardware structure block diagram of a mobile terminal for executing a post-processing method of a tool position source file for boring programming provided in an embodiment of the present application is shown;

[0020] Figure 2 A schematic flow chart of a post-processing method of a tool position source file for boring programming provided in accordance with an embodiment of the present application is shown;

[0021] Figure 3 A schematic structural diagram of a boring bar and a plurality of boring tool structures provided according to an embodiment of the present application is shown;

[0022] Figure 4 A structural schematic diagram of a boring bar tool setting dialog box provided according to an embodiment of the present application is shown;

[0023] Figure 5 A schematic diagram showing a processing start position and a processing end position provided according to an embodiment of the present application is shown;

[0024] Figure 6 A schematic diagram showing various positions reached by a CNC machine tool during a workpiece machining process provided by an embodiment of the present application is shown;

[0025] Figure 7 A structural block diagram of a post-processing device for a tool position source file for boring programming provided according to an embodiment of the present application is shown.

[0026] The drawings include the following reference numerals:

[0027] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

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

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

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the accompanying 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.

[0031] As introduced in the background technology, in the prior art, after the tool location source file is translated into an NC program, it needs to be manually modified before it can be used for actual processing, which takes up a lot of human resources. In order to solve the above technical problems, the embodiments of the present application provide a post-processing method, device, computer-readable storage medium, computer program product and CNC machine tool system for tool location source files of boring programming.

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

[0033] 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 1 1 is a hardware structure block diagram of a mobile terminal of a post-processing method of a tool position source file of a boring programming according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 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 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0034] 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 post-processing method of the tool position source file of boring programming 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 method described is implemented. 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 may be connected to the mobile terminal via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network 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 via 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.

[0035] In this embodiment, a post-processing method for a tool location source file of boring programming 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 a 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.

[0036] Figure 21 is a flowchart of a post-processing method of a tool location source file for boring programming according to an embodiment of the present application. The tool location source file is a program file for boring a plurality of coaxial holes of a workpiece to be processed using a CNC machine tool, and the CNC machine tool may be a machining center. Figure 2 As shown, the method comprises the following steps:

[0037] Step S201, according to a preset tool letting distance, a preset spindle orientation angle and a first moving position in the tool position source file, determine the coordinates of the tool letting position in the first direction and the coordinates in the second direction, and according to the second moving position in the tool position source file and a first preset tool compensation, determine the coordinates of the tool letting position in the third direction, obtain the tool letting position, and write a tool letting program for controlling the tool of the CNC machine tool to move to the tool letting position into a CNC program template, the spindle orientation angle is a fixed orientation angle of the spindle of the CNC machine tool, the first moving position is a position indicated by the first moving instruction, the second moving position is a position indicated by the second to last cycle processing instruction, the first preset tool compensation is a tool compensation value of the first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the plurality of coaxial holes;

[0038] Specifically, the multiple coaxial holes in the workpiece to be processed are arranged at intervals, and the central axes of the multiple coaxial holes coincide and are parallel to the third direction. The tool includes multiple boring tool structures, and the boring tool structures correspond to the coaxial holes one by one. The spindle of the CNC machine tool drives the tool to move, and controls the multiple boring tool structures to process the corresponding multiple coaxial holes at the same time. In the process of the boring tool structure moving to the boring surface of the corresponding coaxial hole, it is necessary to avoid the blank surface of the coaxial hole that it does not process and the supporting guide sleeve on the boring die mechanism to avoid interference with the blanks and guide sleeves of these unprocessed coaxial holes. The tool clearance distance is the distance that the boring tool structure needs to avoid, and the tool clearance position is the position where each boring tool structure does not interfere with the blank surface and guide sleeve of any coaxial hole. The boring surface is the surface of the coaxial hole to be bored. When the tool is located at the tool-releasing position, in the third direction, the coaxial holes and the boring tool structure are arranged in the order of the last coaxial hole, the last boring tool structure, the penultimate coaxial hole, the penultimate boring tool structure, ..., the first coaxial hole, the first boring tool structure. The penultimate cycle processing instruction is an instruction for processing the penultimate coaxial hole using the penultimate boring tool structure. The first fine boring blade is a fine boring blade in the boring tool structure (i.e., the first boring tool structure) that performs a boring operation on the first coaxial hole. A boring bar is mounted on the spindle.

[0039] Step S202, determining a return position after tool letting go according to the first moving position and the second moving position, and writing a return program for controlling the tool to move to the return position after tool letting go after the tool letting go program in the numerical control program template;

[0040] Specifically, the tool return position is the position where each boring tool structure of the tool moves to the corresponding center axis of the coaxial hole after the tool is released. The tool return position can be the same as the coordinates of the machining (boring) start position in the first direction and the second direction.

[0041] Step S203, determining the processing parameters according to the tool position source file, and writing the processing program that controls the tool to run according to the processing parameters into the return program in the CNC program template, thereby obtaining a CNC program file that controls the CNC machine tool processing, and the CNC program file is used to simultaneously perform the boring operation on multiple coaxial holes.

[0042] Specifically, the processing parameters are control parameters for boring the coaxial hole, and the processing parameters may include processing (boring) process parameters such as the processing (boring) start position, the processing (boring) end position, and the feed rate. The NC program template is a template file of the NC program for controlling the NC machine tool processing, and the NC program file is also called an NC program file.

[0043] Through the embodiment, firstly, according to the tool letting distance, the spindle orientation angle and the first moving position in the tool position source file, the coordinates of the tool letting position in the first direction and the second direction are determined, and according to the second moving position in the tool position source file and the first preset tool compensation, the coordinates of the tool letting position in the third direction are determined, thereby obtaining the tool letting position and writing the tool letting program for controlling the tool to move to the tool letting position into the NC program template; then, according to the first moving position and the second moving position, the return position after tool letting is determined and the return program for controlling the tool to move to the return position after tool letting is written after the tool letting program; finally, according to the tool position source file, the machining processing parameters are determined, and after the machining processing program for controlling the tool to run according to the machining processing parameters is written into the return program, a NC program file for simultaneously performing boring operations on multiple coaxial holes of the workpiece to be machined is obtained. In the process of post-processing the tool position source file, the present application determines the tool position, the return position after tool release, and the processing parameters according to the tool release distance, the spindle orientation angle, and the information in the tool position source file, and generates a tool release program, a return program after tool release, and a processing program correspondingly and writes them into the NC program template to obtain a NC program file. Through the NC program file, the NC machine tool can be automatically controlled to perform boring operations on multiple coaxial holes of the workpiece to be processed at the same time, and the effect of automatically adding the tool release program in the process of translating the tool position source file into a program directly available to the NC machine tool is achieved. There is no need to manually add the tool release program in the NC program after obtaining it, which liberates manpower and solves the problem that conventional programming methods cannot realize complex tool release actions and need to manually modify the program, resulting in a waste of human resources. In addition, compared with the prior art, the solution of the present application improves the efficiency of generating NC program files directly available to the NC machine tool.

[0044] It should be noted that the workpiece to be processed with multiple coaxial holes is located on a boring die mechanism with a supporting guide sleeve, and the boring die mechanism is located at a limited position on the rotary platform of the CNC machine tool, and the limited position is used to define the coaxial holes in a one-to-one correspondence. Multiple boring tool structures are spaced on the boring bar, and the distance between the first limited position and the second limited position and the distance between the first boring tool structure and the second boring tool structure are the same, and so on, so that the limited positions correspond to the boring tool structures on the boring bar in a one-to-one correspondence. In addition, it should be noted that in the program for controlling the tool to move to various positions, the spindle is controlled to move from the origin to these positions, thereby driving the tool to move to the corresponding position, which is equivalent to controlling the last boring tool structure to move to these positions. Since the positions between the multiple boring tool structures are fixed and correspond to the positions of the multiple coaxial holes of the workpiece to be processed, each boring tool structure can be driven to the corresponding position through the movement.

[0045] Moreover, each of the boring tool structures includes a fine boring blade and a rough boring blade, and the rough boring blade is in front. The plurality of coaxial holes may include a main shaft hole, a cam shaft hole, and an idler shaft hole.

[0046] In an optional solution, the first moving position includes a first moving coordinate value X0 in the first direction, a second moving coordinate value Y0 in the second direction, and a third moving coordinate value Z0 in the third direction, which are recorded as position (X0, Y0, Z0); the second moving position includes a fourth moving coordinate value X2 in the first direction, a fifth moving coordinate value Y2 in the second direction, and a sixth moving coordinate value Z2 in the third direction, which are recorded as (X2, Y2, Z2); according to a preset tool clearance distance L, a preset spindle orientation angle SDIR, and the first moving position in the tool position source file, the coordinates of the tool clearance position in the first direction and the coordinates of the second direction are determined; and according to the second moving position in the tool position source file and the first preset tool compensation, the coordinates of the tool clearance position in the third direction are determined, including: according to the tool clearance distance, the spindle orientation angle SDIR, and the first moving position in the tool position source file, the coordinates of the tool clearance position in the third direction are determined. According to the spindle orientation angle and the first moving coordinate value, a first compensation value is determined to be the product of the cosine value of the spindle orientation angle and the tool letting distance, and a coordinate X1 of the tool letting position in the first direction is determined to be the sum of the first compensation value and the first moving coordinate value, that is, X1=X0+L*cos(SDIR); according to the tool letting distance, the spindle orientation angle and the second moving coordinate value, a second compensation value is determined to be the product of the sine value of the spindle orientation angle and the tool letting distance, and a coordinate of the tool letting position in the second direction is determined to be the sum of the second compensation value and the second moving coordinate value, that is, Y1=Y0+L*sin(SDIR); according to the sixth moving coordinate value and the first preset tool compensation D3, a coordinate of the tool letting position in the third direction is determined to be the sum of the sixth moving coordinate value and the first preset tool compensation, that is, Z2+D3. In the embodiment, the tool letting distance is converted into the tool letting amount in the first direction and the tool letting amount in the second direction according to the spindle orientation angle, and the tool letting amount is added to the first moving position to obtain the coordinates of the tool letting position in the first direction and the coordinates in the second direction, and in consideration of problems such as tool wear and deviation, the first preset tool compensation is added to the coordinates of the second moving position in the third direction to obtain the coordinates of the tool letting position in the third direction, so that a more accurate tool letting position can be obtained, which facilitates the subsequent acquisition of a CNC program file that can more accurately control the CNC machine tool to perform the tool letting action.

[0047] The sixth moving coordinate value is the sum of the boring end position of the penultimate coaxial hole and the bottom offset. Each of the coaxial holes includes two opposite boring surfaces, which are the top boring surface and the bottom boring surface in the order of boring. The boring end position is the coordinate of the boring surface of the penultimate coaxial hole close to the last coaxial hole (i.e., the bottom boring surface of the penultimate coaxial hole) in the third direction. The bottom offset is a preset offset value.

[0048] Specifically, after determining the coordinates of the tool-release position in the first direction and the coordinates in the second direction, the method further includes: writing a spindle orientation program for controlling the spindle to be oriented to the spindle orientation angle into the numerical control program template, and the program is located before the tool-release program, that is, the spindle orientation rotation is performed before the tool-release; updating the first moving position to include the coordinates of the tool-release position in the first direction, the coordinates of the tool-release position in the second direction, and the position of the third moving coordinate value, that is, the updated first moving position is (X1, Y1, Z0), and writing an initial moving program for controlling the tool to move to the updated first moving position into the numerical control program template, and the program is located between the spindle orientation program and the tool-release program. In this embodiment, the program for controlling the spindle to rotate is first written into the numerical control program template according to the spindle orientation angle, so as to realize the writing of the spindle position initialization program before the tool moves, and then the first moving position in the tool position source file is updated according to the tool-release distance, and the program for controlling the tool to move to the updated first moving position is written into the spindle orientation program, so as to further avoid the problem of interference and collision between the boring tool structure and the coaxial hole during the first tool movement process.

[0049] Specifically, the updated first moving position is also called the tool letting start position. The tool letting position is also called the tool letting end position. In an exemplary embodiment, when the tool is located at the tool letting start position, in the third direction, the coaxial holes and the boring tool structure are arranged in the order of the last coaxial hole, the second to last coaxial hole, ..., the first coaxial hole, the last boring tool structure, the second to last boring tool structure, ..., the first boring tool structure.

[0050] Further, according to the first moving position and the second moving position, the return position after the tool is released is determined, including: determining the return position after the tool is released as a position including the first moving coordinate value, the second moving coordinate value and the sixth moving coordinate value, that is, the return position after the tool is released is (X0, Y0, Z2). By controlling the program of the tool from the tool release position to the return position after the tool is released, each boring tool structure is moved in the third direction to the front of the top boring surface of the corresponding coaxial hole, and the boring tool structure overlaps with the projection of the corresponding coaxial hole on the plane formed by the first direction and the second direction, so as to facilitate the execution of the subsequent processing program.

[0051] In other embodiments of the present application, before determining the coordinates of the tool letting position in the first direction and the coordinates in the second direction according to a preset tool letting distance, a preset spindle orientation angle and the first moving position in the tool position source file, the method further includes: upon receiving a start operation for post-processing of the tool position source file, displaying an editing interface on a display panel, the editing interface including an edit box for a tool grabbing position, an edit box for a grasping angle of the spindle, an edit box for a tool grasping direction vector, an edit box for the tool letting distance and an edit box for the spindle orientation angle; determining the tool grabbing position, the grasping angle of the spindle, the tool grasping direction vector, the tool letting distance and the spindle orientation angle in response to a predetermined operation acting on the editing interface; and before writing an initialization program for controlling the CNC machine tool to execute in-machine tool grabbing into the tool letting program in the CNC program template according to data information between a starting program and the first moving instruction in the tool position source file, the tool grabbing position, the grasping angle of the spindle and the tool grasping direction vector. The specific values ​​of the tool gripping position, the spindle gripping angle, the tool gripping direction vector, the tool clearance distance and the spindle orientation angle are set through human-computer interaction, and then a program for initializing the CNC machine tool is generated from these values ​​and written into a CNC program template. Through this initialization program, the absolute coordinate system can be made to correspond to the machine coordinate system of the CNC machine tool established by the user.

[0052] In the actual application process, the tool position source file is located in the CAM programming software, which can be specifically NXCAM, MasterCAM, CIMATRON, PowerMILL and other programming software. By clicking the post-processing operation button in the CAM programming software, the post-processing start operation of the tool position source file is generated. The display panel is the display panel of the electronic device where the CAM programming software is located. The tool position source file is specifically a file generated by the CAM software that contains tool coordinate data and needs to be post-processed, generally in the APT language format. The post-processing described in this application is the process of converting the machining tool position source file generated by the CAM software into an NC program that can be read by a specific machine tool.

[0053] A person skilled in the art can set the tool gripping position, the spindle gripping angle, the tool gripping direction vector, the tool gripping distance, and the spindle orientation angle by operating the edit box of the tool gripping position, the edit box of the spindle gripping angle, the edit box of the tool gripping direction vector, the edit box of the tool clearance distance, and the edit box of the spindle orientation angle. The edit box can be an input box or a selection box displayed on the display panel.

[0054] The initialization program for controlling the CNC machine tool to perform tool grabbing in the machine includes a program for controlling the CNC machine tool to perform spindle grabbing angle initialization, a program for controlling the CNC machine tool to perform turntable rotation before grabbing, and a program for controlling the CNC machine tool to perform tool grabbing position initialization.

[0055] Optionally, according to the data information between the starting program and the first movement instruction in the tool position source file, the tool grabbing position, the grasping angle of the spindle and the tool grabbing direction vector, before writing the initialization program for controlling the CNC machine tool to execute the tool grabbing in the machine into the tool letting program in the CNC program template, the method includes: determining the name of the tool, the rotation center position of the turntable of the CNC machine tool and the direction vector of the third direction according to the data information, the tool and the workpiece to be processed are limited on the turntable by a boring die mechanism; determining the rotation angle of the turntable according to the direction vector and the tool grabbing direction vector, the rotation angle being the angle between the tool grabbing direction vector and the direction vector The angle between the tool and the tool; according to the tool grabbing position, the rotation angle and the rotation center position, the tool grabbing position is updated to obtain the updated tool grabbing position, and the updated tool grabbing position is the position of the tool on the boring die mechanism when the rotary table rotates along the rotation center position by the rotation angle; a tool grabbing program including the name of the tool, the grasping angle of the spindle, the updated tool grabbing position and the rotation angle is generated, and the tool grabbing program is written before the tool letting program in the NC program template; a first tool retraction program for controlling the tool to retract to the first safe position is generated, and the first tool retraction program is written after the tool grabbing program and before the tool letting program in the NC program template. By writing the program, the NC program file has the control function of controlling the rotary table to rotate to drive the tool to rotate, then grasping and retracting the tool according to the position after rotation, and finally controlling the rotary table to rotate back to the original position (i.e., the position before rotating the rotation angle). By controlling the tool to retract to the first safe position, the problem of interference with the tool during the process of the rotary table rotating back to the original position is avoided.

[0056] Further, according to the direction vector and the tool grabbing direction vector, the specific process of determining the rotation angle of the turntable is: BPOS=acos((TVEC*ZVEC) / (|TVEC|*|ZVEC|)), BPOS is the rotation angle, TVEC is the tool grabbing direction vector, and ZVEC is the direction vector. According to the tool grabbing position, the rotation angle and the rotation center position, the tool grabbing position is updated, and the specific process of obtaining the updated tool grabbing position is:

[0057] The coordinates of the updated gripper position in the first direction are determined as:

[0058] XPOS=cos(atan2(XORI-XROT,ZORI-ZROT)+BPOS*PI / 180)*sqrt((XORI-XROT)^2+(ZORI-ZROT)^2)+XROT;

[0059] Determine the coordinates of the updated gripper position in the second direction as YPOS=YORI;

[0060] The coordinates of the updated gripper position in the third direction are determined as:

[0061] ZPOS=sin(atan2(XORI-XROT,ZORI-ZROT)+BPOS*PI / 180)*sqrt((XORI-XROT)^2+(ZORI-ZROT)^2)+ZROT; wherein the updated tool gripper position is (XPOS, YPOS, ZPOS), the rotation center position is (XROT, YROT, ZROT), the tool gripper position is (XORI, YORI, ZORI), and PI is the pi.

[0062] The first direction, the second direction and the third direction are direction vectors of an absolute coordinate system.

[0063] In order to further ensure that more accurate processing parameters are obtained, thereby obtaining a data program for controlling the CNC machine tool to execute the processing parameters to accurately control the boring operation of the CNC machine tool, according to some further exemplary schemes of the present application, the first moving position includes a first moving coordinate value in the first direction, a second moving coordinate value in the second direction and a third moving coordinate value in the third direction, and the processing parameters are determined according to the tool position source file, including: determining the coordinates of the processing start position and the processing end position of the tool in the first direction as the first moving coordinates, and determining the coordinates of the processing start position and the processing end position in the second direction as the second moving coordinates; according to the third moving position in the tool position source file, the boring depth, the first preset tool compensation and the second preset Tool compensation, determining that the coordinate of the machining start position in the third direction is the sum of the coordinate of the third moving position in the third direction and the second preset tool compensation, and determining that the coordinate of the machining end position in the third direction is the sum of the boring depth and the first preset tool compensation, the third moving position is the position indicated by the last cycle machining instruction, the boring depth is the depth value of the boring along the third direction indicated by the last cycle machining instruction, and the second preset tool compensation is the tool compensation value of the first rough boring blade tool point of the CNC machine tool in the third direction; reading control parameters including the spindle speed, the feed amount of the tool and the spindle forward rotation instruction from the tool position source file to obtain the machining processing parameters including the machining start position, the machining end position and the control parameters.

[0064] Specifically, the last cycle processing instruction is an instruction to use the last boring tool structure to process the last workpiece to be processed. The first rough boring blade is a rough boring blade in the boring tool structure (ie, the first boring tool structure) that performs a boring operation on the first workpiece to be processed.

[0065] In some further optional embodiments, after writing the processing program for controlling the tool to operate according to the processing parameters into the return program in the NC program template, a NC program file for controlling the NC machine tool processing is obtained, including: after writing the processing program for controlling the tool to operate according to the processing parameters into the return program in the NC program template; after generating a second tool retraction program for controlling the tool to retract to a second safe position, and writing the second tool retraction program into the processing program in the NC program template; after generating a tool placement program for placing the tool to a tool storage position, and writing the tool placement program into the second tool retraction program in the NC program template, the NC program file is obtained. By generating the processing program, the second tool retraction program and the tool placement program, the NC machine tool can realize the automatic processing, tool retraction and tool placement processes of the workpiece to be processed when executing the NC program file.

[0066] The first safety position and the second safety position may be the same or different.

[0067] Specifically, before generating a second tool retraction program for controlling the tool to retract to a second safety position, the method further includes: determining the second safety position according to the tool letting position, the first moving position and a third preset tool compensation, wherein the coordinate of the second safety position in the first direction is the coordinate X1 of the tool letting position in the first direction, the coordinate of the second safety position in the second direction is the coordinate Y1 of the tool letting position in the second direction, the coordinate of the second safety position in the third direction is the sum of the third moving coordinate value Z0 and a third preset tool compensation, the third preset tool compensation is the tool compensation value of the front end of the boring bar of the CNC machine tool in the third direction, and the front end of the boring bar is the end point of the boring bar located on the side of the first rough boring blade away from the first fine boring blade.

[0068] Specifically, the specific structures of the boring bar and the multiple boring tool structures are as follows: Figure 3 As shown, the first preset tool compensation is determined according to the distance from the first fine boring blade to the boring bar clamping plane, the second preset tool compensation is determined according to the distance from the first rough boring blade to the boring bar clamping plane, and the third preset tool compensation is determined according to the distance from the front end of the boring bar to the boring bar clamping plane.

[0069] 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 post-processing method of the tool position source file of boring programming of the present application will be described in detail below in combination with specific embodiments.

[0070] This embodiment relates to a specific post-processing method of a tool position source file for boring programming, which is applicable to an embodiment in which a boring bar with a guide sleeve is used to simultaneously perform boring operations on a workpiece with multiple coaxial holes. The method specifically comprises the following steps:

[0071] Step S1: Data input:

[0072] After the tool path programming is completed and the tool position source file is obtained, start the post-processing and trigger the boring bar tool setting dialog box (i.e. the editing interface). The specific contents of the dialog box are shown in Figure 4 , where the origin coordinates of the tool gripping position in the absolute coordinate system (the absolute coordinate system should coincide with the machine tool coordinate system when the boring die and the workpiece are placed on the machine tool) are marked as XORI, YORI, and ZORI; the spindle gripping angle input value is recorded as SPIC; the tool gripping direction vector is recorded as TVEC; the tool clearance input value is recorded as L; and the spindle orientation angle input value is recorded as SDIR;

[0073] Step S2: Data processing before cutting:

[0074] Read the data from the "TOOL PATH" instruction to the first occurrence of the rapid movement instruction "RAPID" in the tool source file, and process the data as follows:

[0075] Step S21: Read the tool name after the "TOOL" instruction, and add the tool grabbing program line in the tool change program segment. The embodiment is:

[0076] "CS_TPU("$mom_tool_name",1,SPIC,XPOS,YPOS,ZPOS,BPOS,1)"; where:

[0077] $mom_tool_name indicates the tool name; SPIC indicates the grasping angle of the spindle (°); XPOS indicates the grasping position of the X axis (mm); YPOS indicates the grasping position of the Y axis (mm); ZPOS indicates the grasping position of the Z axis (mm); BPO indicates the rotation angle of the turntable (°); the value of BPOS is the angle between the tool grasping direction on the rotating plane and the Z axis of the absolute coordinate system. The Z axis vector of the absolute coordinate system is recorded as ZVEC. Taking a four-axis horizontal machining center as an example, the calculation formula is as follows:

[0078] BPOS=acos((TVEC*ZVEC) / (|TVEC|*|ZVEC|));

[0079] The XPOS, YPOS, and ZPOS values ​​are calculated as follows:

[0080] The absolute coordinate values ​​of the tool grabbing position are extracted as XORI, YORI, and ZORI, and the coordinate values ​​of the rotation center are recorded as XROT, YROT, and ZROT);

[0081] Calculate XPOS, YPOS, and ZPOS values ​​based on the absolute coordinate values ​​and BPOS. The calculation formula is as follows:

[0082] XPOS=cos(atan2(XORI-XROT,ZORI-ZROT)+BPOS*PI / 180)*sqrt((XORI-XROT)^2+(ZORI-ZROT)^2)+XROT;

[0083] YPOS=YORI;

[0084] ZPOS=sin(atan2(XORI-XROT,ZORI-ZROT)+BPOS*PI / 180)*sqrt((XORI-XROT)^2+(ZORI-ZROT)^2)+ZROT;

[0085] Step S22: adding an automatic tool retraction program segment after the tool grabbing program segment in the machine;

[0086] Step S3: Processing knife data:

[0087] Step S31: adding a spindle orientation program segment "SPOS=SDIR" at the initial moving position to control the spindle orientation to the spindle orientation angle;

[0088] Step S32: Calculate the starting position of the knife:

[0089] Read the coordinate data after the first occurrence of the rapid movement instruction "RAPID" in the tool source file, and record the X, Y, and Z coordinate values ​​as X0, Y0, and Z0; update the initial movement coordinates of the NC program according to the eccentric distance L:

[0090] X1=X0+L*cos(SDIR);

[0091] Y1=Y0+L*sin(SDIR);

[0092] Z1=Z0;

[0093] Step S33: Calculate the knife end position:

[0094] (1) Read data to "CYCLE / OFF", record the number of CYCLEs that appear before "CYCLE / OFF", and obtain the coordinates of the "GOTO" instruction after the second-to-last "CYCLE" instruction, and mark the Z coordinate as Z2, such as Figure 5As shown, the value of Z2 is: the end position of the second to last hole surface of the hole system + bottom offset;

[0095] (2) Shield the program segment output by the CYCLE cycle and add the program segment "G0 G90 X1 Y1 Z2 D3". D3 is the radial tool compensation of the first fine boring edge contact point of the boring bar, that is, the first preset tool compensation.

[0096] (3) Add the tool return program segment "G0 G90 X0 Y0 Z2";

[0097] Step S4: Processing:

[0098] Step S41: Calculation of processing start position:

[0099] (1) Get the coordinates of the "GOTO" instruction after the last "CYCLE" instruction before "CYCLE / OFF", and mark the Z coordinate as Z3, such as Figure 5 As shown, the value of Z3 is: the starting position of the last hole surface of the hole system + top offset;

[0100] (2) Add the program segment "G0 G90 X0 Y0 Z3 D2", where D2 is the radial tool compensation of the first rough boring edge contact point of the boring bar, i.e., the second preset tool compensation;

[0101] (3) Output program segment, which includes spindle speed, feed, and spindle forward rotation instructions;

[0102] Step S42: Calculation of processing end position:

[0103] Get the boring depth value of the last "CYCLE" instruction, recorded as Z4; add the program segment "G1 G90 X0 Y0 Z4D2";

[0104] Step S5: Tool retraction processing:

[0105] Add the spindle stop and spindle orientation program segment "SPOS=0 M5"; add the program segment "G1 G90 X0 Y0 Z2D3"; add the program segment "G0 G90 X1 Y1"; add the spindle orientation program segment "SPOS=SDIR"; add the program segment "G0 G90X1 Y1 Z1 D1", where D1 is the radial tool compensation at the front end of the boring bar, that is, the third preset tool compensation; add the program segment "G0 G90 Z=500".

[0106] Step S6: End step: Read the tool location source file data to "END-OF-PATH" and add a tool placement program segment at the end of the process:

[0107] "CS_TPU("$mom_tool_name",0,SPOS,XPOS,YPOS,ZPOS,BPOS,-1)".

[0108] The CNC machine tool runs the CNC program file obtained through the above steps, and the steps of processing the workpiece to be processed are as follows: Figure 6 As shown, the specific steps are as follows: the boring bar allows the tool to enter multiple coaxial holes and reaches the starting position of the tool letting go; the boring bar quickly feeds to the end position of the tool letting go; the tool letting go ends and the tool returns to the center; the boring bar and the guide sleeve support cooperate to feed the tool to the starting position of processing; the boring bar is driven to process the workpiece to be processed and reaches the end position of processing; the spindle is oriented to a fixed angle (at the joint surface of the tile cover); the spindle is oriented and retreated to the starting position of processing; the spindle is oriented to the spindle orientation angle; the boring bar retreats to the starting position of the tool letting go; the boring bar allows the tool to retreat.

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

[0110] The embodiment of the present application also provides a post-processing device for a tool location source file of boring programming. It should be noted that the post-processing device for a tool location source file of boring programming of the embodiment of the present application can be used to execute the post-processing method for a tool location source file of boring programming provided in the embodiment of the present application. The device is used to implement the embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0111] The following introduces the post-processing device of the tool position source file for boring programming provided in the embodiment of the present application.

[0112] Figure 7 Schematic diagram of a post-processing device for a tool location source file of boring programming according to an embodiment of the present application. The tool location source file is a program file for boring a plurality of coaxial holes of a workpiece to be processed using a CNC machine tool, and the CNC machine tool may be a machining center. Figure 7 As shown, the device comprises:

[0113] A first determining unit 10 is used to determine the coordinates of the tool-releasing position in the first direction and the coordinates in the second direction according to a preset tool-releasing distance, a preset spindle orientation angle, and a first moving position in the tool position source file, and to determine the coordinates of the tool-releasing position in the third direction according to the second moving position in the tool position source file and a first preset tool compensation, to obtain the tool-releasing position, and to write a tool-releasing program for controlling the tool of the CNC machine tool to move to the tool-releasing position into a CNC program template, wherein the spindle orientation angle is a fixed orientation angle of the spindle of the CNC machine tool, the first moving position is a position indicated by the first moving instruction, the second moving position is a position indicated by the second to last cycle processing instruction, the first preset tool compensation is a tool compensation value of a first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction, and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the plurality of coaxial holes;

[0114] Specifically, the multiple coaxial holes in the workpiece to be processed are arranged at intervals, and the central axes of the multiple coaxial holes coincide and are parallel to the third direction. The tool includes multiple boring tool structures, and the boring tool structures correspond to the coaxial holes one by one. The spindle of the CNC machine tool drives the tool to move, and controls the multiple boring tool structures to process the corresponding multiple coaxial holes at the same time. In the process of the boring tool structure moving to the boring surface of the corresponding coaxial hole, it is necessary to avoid the blank surface of the coaxial hole that it does not process and the supporting guide sleeve on the boring die mechanism to avoid interference with the blanks and guide sleeves of these unprocessed coaxial holes. The tool clearance distance is the distance that the boring tool structure needs to avoid, and the tool clearance position is the position where each boring tool structure does not interfere with the blank surface and guide sleeve of any coaxial hole. The boring surface is the surface of the coaxial hole to be bored. When the tool is located at the tool-releasing position, in the third direction, the coaxial holes and the boring tool structure are arranged in the order of the last coaxial hole, the last boring tool structure, the penultimate coaxial hole, the penultimate boring tool structure, ..., the first coaxial hole, the first boring tool structure. The penultimate cycle processing instruction is an instruction for processing the penultimate coaxial hole using the penultimate boring tool structure. The first fine boring blade is a fine boring blade in the boring tool structure (i.e., the first boring tool structure) that performs a boring operation on the first coaxial hole. A boring bar is mounted on the spindle.

[0115] A second determining unit 20 is used to determine a return position after tool letting go according to the first moving position and the second moving position, and write a return program for controlling the tool to move to the return position after tool letting go after the tool letting go program in the numerical control program template;

[0116] Specifically, the tool return position is the position where each boring tool structure of the tool moves to the corresponding center axis of the coaxial hole after the tool is released. The tool return position can be the same as the coordinates of the machining (boring) start position in the first direction and the second direction.

[0117] The third determination unit 30 is used to determine the processing parameters according to the tool position source file, and write the processing program that controls the tool to run according to the processing parameters into the return program in the CNC program template, so as to obtain the CNC program file that controls the CNC machine tool processing. The CNC program file is used to simultaneously perform the boring operation on multiple coaxial holes.

[0118] Specifically, the processing parameters are control parameters for boring the coaxial hole, and the processing parameters may include processing (boring) process parameters such as the processing (boring) start position, the processing (boring) end position, and the feed rate. The NC program template is a template file of the NC program for controlling the NC machine tool processing, and the NC program file is also called an NC program file.

[0119] Through the embodiment, the first determining unit determines the coordinates of the tool letting position in the first direction and the second direction according to the tool letting distance, the spindle orientation angle and the first moving position in the tool position source file, and determines the coordinates of the tool letting position in the third direction according to the second moving position in the tool position source file and the first preset tool compensation, thereby obtaining the tool letting position and writing the tool letting program for controlling the tool to move to the tool letting position into the NC program template; the second determining unit determines the return position after tool letting according to the first moving position and the second moving position, and writes the return program for controlling the tool to move to the return position after tool letting into the tool letting program; the third determining unit determines the machining parameters according to the tool position source file, and writes the machining program for controlling the tool to run according to the machining parameters into the return program, thereby obtaining a NC program file for simultaneously performing boring operations on multiple coaxial holes of a workpiece to be machined. In the process of post-processing the tool position source file, the present application determines the tool position, the return position after tool release, and the processing parameters according to the tool release distance, the spindle orientation angle, and the information in the tool position source file, and generates a tool release program, a return program after tool release, and a processing program correspondingly and writes them into the NC program template to obtain a NC program file. Through the NC program file, the NC machine tool can be automatically controlled to perform boring operations on multiple coaxial holes of the workpiece to be processed at the same time, and the effect of automatically adding the tool release program in the process of translating the tool position source file into a program directly available to the NC machine tool is achieved. There is no need to manually add the tool release program in the NC program after obtaining it, which liberates manpower and solves the problem that conventional programming methods cannot realize complex tool release actions and need to manually modify the program, resulting in a waste of human resources. In addition, compared with the prior art, the solution of the present application improves the efficiency of generating NC program files directly available to the NC machine tool.

[0120] The post-processing device of the tool position source file of boring programming includes a processor and a memory, the first determination unit, the second determination unit and the third determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions. The modules are all located in the same processor; or the modules are located in different processors in any combination.

[0121] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to solve the problem that the tool position source file needs to be manually modified after being translated into the NC program before it can be used for actual processing, which takes up a lot of human resources.

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

[0123] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute a post-processing method of a tool position source file of boring programming.

[0124] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a post-processing method of a tool position source file of boring programming when the program is running.

[0125] An embodiment of the present invention provides a numerical control machine tool system, comprising:

[0126] CNC machine tools;

[0127] The controller of the CNC machine tool includes: one or more processors, a memory, and one or more programs, wherein 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.

[0128] The controller in this article can be a server, PC, PAD, mobile phone, etc.

[0129] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps:

[0130] Step S201: according to a preset tool letting distance, a preset spindle orientation angle and a first moving position in the tool position source file, the coordinates of the tool letting position in the first direction and the coordinates in the second direction are determined, and according to a second moving position in the tool position source file and a first preset tool compensation, the coordinates of the tool letting position in the third direction are determined to obtain the tool letting position, and a tool letting program for controlling the tool of the CNC machine tool to move to the tool letting position is written into a CNC program template, the spindle orientation angle is a fixed orientation angle of the spindle of the CNC machine tool, the first moving position is a position indicated by the first moving instruction, the second moving position is a position indicated by the second to last cycle processing instruction, the first preset tool compensation is a tool compensation value of a first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the plurality of coaxial holes;

[0131] Step S202: determining a return position after tool letting go according to the first moving position and the second moving position, and writing a return program for controlling the tool to move to the return position after tool letting go after the tool letting go program in the numerical control program template;

[0132] Step S203: Determine the processing parameters according to the tool position source file, and write the processing program that controls the tool to run according to the processing parameters into the return program in the CNC program template, thereby obtaining a CNC program file that controls the CNC machine tool processing. The CNC program file is used to simultaneously perform the boring operation on multiple coaxial holes.

[0133] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose 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 herein, 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.

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

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

[0136] 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 including 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.

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

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

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

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

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

[0142] 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 post-processing method for tool position source files of boring programming, characterized in that: The tool position source file is a program file for boring a plurality of coaxial holes of a workpiece to be processed using a numerically controlled machine tool, and the method comprises: According to a preset tool letting distance, a preset spindle orientation angle, and a first moving position in the tool position source file, the coordinates of the tool letting position in the first direction and the coordinates in the second direction are determined, and according to a second moving position in the tool position source file and a first preset tool compensation, the coordinates of the tool letting position in the third direction are determined to obtain the tool letting position, and a tool letting program for controlling the tool of the CNC machine tool to move to the tool letting position is written into a CNC program template, the spindle orientation angle is a fixed orientation angle of the spindle of the CNC machine tool, the first moving position is a position indicated by the first moving instruction to reach, the second moving position is a position indicated by the second to last cycle processing instruction to reach, the first preset tool compensation is a tool compensation value of a first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction, and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the plurality of coaxial holes; Determine a return position after tool letting go according to the first moving position and the second moving position, and write a return program for controlling the tool to move to the return position after tool letting go after the tool letting go program in the numerical control program template; According to the tool position source file, the processing parameters are determined, and after the processing program that controls the tool to run according to the processing parameters is written into the return program in the CNC program template, a CNC program file that controls the CNC machine tool processing is obtained. The CNC program file is used to simultaneously perform the boring operation on multiple coaxial holes.

2. The method according to claim 1, characterized in that The first moving position includes a first moving coordinate value in the first direction, a second moving coordinate value in the second direction, and a third moving coordinate value in the third direction; the second moving position includes a fourth moving coordinate value in the first direction, a fifth moving coordinate value in the second direction, and a sixth moving coordinate value in the third direction; the coordinates of the tool-allowing position in the first direction and the coordinates of the tool-allowing position in the second direction are determined according to a preset tool-allowing distance, a preset spindle orientation angle, and the first moving position in the tool position source file; and the coordinates of the tool-allowing position in the third direction are determined according to the second moving position in the tool position source file and a first preset tool compensation, including: According to the tool letting distance, the spindle orientation angle and the first moving coordinate value, determine a first compensation value as the product of the cosine value of the spindle orientation angle and the tool letting distance, and determine the coordinate of the tool letting position in the first direction as the sum of the first compensation value and the first moving coordinate value; According to the tool letting distance, the spindle orientation angle and the second moving coordinate value, determine a second compensation value as the product of the sine value of the spindle orientation angle and the tool letting distance, and determine the coordinate of the tool letting position in the second direction as the sum of the second compensation value and the second moving coordinate value; According to the sixth movement coordinate value and the first preset tool compensation, the coordinate of the tool letting position in the third direction is determined to be the sum of the sixth movement coordinate value and the first preset tool compensation.

3. The method according to claim 2, characterized in that After determining the coordinates of the tool letting position in the first direction and the coordinates of the tool letting position in the second direction, the method further includes: Writing a spindle orientation program for controlling the spindle to be oriented to the spindle orientation angle into the NC program template and before the tool letting program; The first moving position is updated to include the coordinates of the tool letting position in the first direction, the coordinates of the tool letting position in the second direction and the position of the third moving coordinate value, and an initial moving program for controlling the tool to move to the updated first moving position is written into the CNC program template and is located between the spindle orientation program and the tool letting program.

4. The method according to claim 2, characterized in that: Determining a return position after the knife is released according to the first moving position and the second moving position, comprising: The return position after the tool is released is determined to be a position including the first movement coordinate value, the second movement coordinate value and the sixth movement coordinate value.

5. The method according to claim 1, characterized in that Before determining the coordinates of the tool clearance position in the first direction and the coordinates of the tool clearance position in the second direction according to the preset tool clearance distance, the preset spindle orientation angle and the first moving position in the tool position source file, the method further includes: In case of receiving the start operation of post-processing of the tool position source file, an editing interface is displayed on the display panel, the editing interface including an editing box for the tool grabbing position, an editing box for the grabbing angle of the spindle, an editing box for the tool grabbing direction vector, an editing box for the tool letting distance, and an editing box for the spindle orientation angle; In response to a predetermined operation on the editing interface, determining the tool gripping position, the spindle gripping angle, the tool gripping direction vector, the tool clearance distance, and the spindle orientation angle; According to the data information from the starting program to the first movement instruction in the tool position source file, the tool grabbing position, the grasping angle of the spindle and the tool grabbing direction vector, the initialization program for controlling the CNC machine tool to execute the in-machine tool grabbing is written before the tool letting program in the CNC program template.

6. The method according to claim 5, characterized in that According to the data information from the start program to the first movement instruction in the tool location source file, the tool grabbing position, the grasping angle of the spindle, and the tool grabbing direction vector, before writing the initialization program for controlling the CNC machine tool to execute the internal tool grabbing into the CNC program template, the method comprises: According to the data information, the name of the tool, the rotation center position of the rotary table of the CNC machine tool and the direction vector of the third direction are determined, and the tool and the workpiece to be processed are limited on the rotary table through a boring die mechanism; Determine the rotation angle of the turntable according to the direction vector and the tool grabbing direction vector, wherein the rotation angle is the angle between the tool grabbing direction vector and the direction vector; According to the tool grabbing position, the rotation angle and the rotation center position, the tool grabbing position is updated to obtain an updated tool grabbing position, wherein the updated tool grabbing position is a position for grabbing the tool on the boring die mechanism when the turntable rotates along the rotation center position by the rotation angle; Generate a tool grabbing program including the name of the tool, the grasping angle of the spindle, the updated tool grabbing position and the rotation angle, and write the tool grabbing program before the tool letting program in the numerical control program template; A first tool retraction program for controlling the tool to retract to a first safety position is generated, and the first tool retraction program is written into the numerical control program template after the tool grabbing program and before the tool letting program.

7. The method according to any one of claims 1 to 6, characterized in that The first moving position includes a first moving coordinate value in the first direction, a second moving coordinate value in the second direction, and a third moving coordinate value in the third direction. According to the tool position source file, a processing parameter is determined, including: Determine the coordinates of the machining start position and the machining end position of the tool in the first direction as the first moving coordinates, and determine the coordinates of the machining start position and the machining end position in the second direction as the second moving coordinates; According to the third moving position, the boring depth, the first preset tool compensation and the second preset tool compensation in the tool position source file, determine that the coordinate of the processing start position in the third direction is the sum of the coordinate of the third moving position in the third direction and the second preset tool compensation, and determine that the coordinate of the processing end position in the third direction is the sum of the boring depth and the first preset tool compensation, the third moving position is the position indicated by the last cycle processing instruction, the boring depth is the depth value of the boring along the third direction indicated by the last cycle processing instruction, and the second preset tool compensation is the tool compensation value of the first rough boring blade matching point of the CNC machine tool in the third direction; Control parameters including the spindle speed, the feed rate of the tool and the spindle forward rotation instruction are read from the tool position source file to obtain the processing parameters including the processing start position, the processing end position and the control parameters.

8. The method according to any one of claims 1 to 6, characterized in that After writing the processing program for controlling the tool to run according to the processing parameters into the return program in the NC program template, a NC program file for controlling the NC machine tool processing is obtained, including: After writing a processing program for controlling the tool to run according to the processing parameters into the return program in the numerical control program template; Generate a second tool retraction program for controlling the tool to retract to a second safety position, and write the second tool retraction program into the numerical control program template after the processing program; After generating a tool placement program for placing the tool in a tool storage position and writing the tool placement program into the second tool retraction program in a numerical control program template, the numerical control program file is obtained.

9. A post-processing device for tool position source files of boring programming, characterized in that: The tool position source file is a program file for boring a plurality of coaxial holes of a workpiece to be processed using a numerically controlled machine tool, and the device comprises: a first determining unit, for determining the coordinates of the tool-allowing position in the first direction and the coordinates in the second direction according to a preset tool-allowing distance, a preset spindle orientation angle, and a first moving position in the tool position source file, and determining the coordinates of the tool-allowing position in the third direction according to the second moving position in the tool position source file and a first preset tool compensation, to obtain the tool-allowing position, and writing a tool-allowing program for controlling the tool of the CNC machine tool to move to the tool-allowing position into a CNC program template, wherein the spindle orientation angle is a fixed orientation angle of the spindle of the CNC machine tool, the first moving position is a position indicated by the first moving instruction, the second moving position is a position indicated by the second to last cycle processing instruction, the first preset tool compensation is a tool compensation value of a first fine boring tool point of the CNC machine tool in the third direction, the first direction, the second direction, and the third direction are perpendicular to each other, and the third direction is parallel to the center axes of the plurality of coaxial holes; A second determining unit is used to determine a return position after tool letting go according to the first moving position and the second moving position, and write a return program for controlling the tool to move to the return position after tool letting go after the tool letting go program in the numerical control program template; The third determination unit is used to determine the processing parameters according to the tool position source file, and write the processing program that controls the tool to run according to the processing parameters into the return program in the CNC program template, thereby obtaining a CNC program file that controls the CNC machine tool processing. The CNC program file is used to simultaneously perform the boring operation on multiple coaxial holes.

10. A computer-readable storage medium, characterized in that: 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 method according to any one of claims 1 to 8.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

12. A numerical control machine tool system, characterized in that: include: CNC machine tools; The controller of the CNC machine tool includes: one or more processors, a memory, and one or more programs, wherein 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 8.

Citation Information

Patent Citations

  • Coordinate system automatic flee cutter NC Machining method

    CN101625561A

  • Industrial robot off-line programming method based on cutter position source file

    CN105619407A