Cavity numerical control milling method and device, storage medium and computer equipment
By obtaining the target tool and cavity parameter information, combined with real-time comparison and controlling the milling action, the problems of low efficiency and difficulty in ensuring accuracy in traditional cavity milling methods are solved, and efficient and high-precision processing of complex-shaped cavity is achieved.
Patent Information
- Application Number
- CN202510587055.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-07-22
AI Technical Summary
Traditional cavity milling methods are difficult to adapt to cavity processing of complex shapes and sizes, resulting in low machining efficiency, severe tool wear and difficulty in ensuring accuracy.
By obtaining the first parameter information of the target tool and the second parameter information of the cavity to be milled, combining real-time comparison of the position of the milling point and the preset depth, the milling action is controlled to achieve layer by layer precise milling.
It improves the accuracy and efficiency of cavity processing, avoids overcut or undercut, and adapts to cavity processing needs of different sizes and shapes.
Smart Images

Figure CN120347252A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of machining, and particularly relates to a method, device, storage medium, and computer equipment for numerically controlled milling of cavities. Background Art
[0002] In the field of modern machining, cavity milling is a key process for manufacturing various components. With the continuous development of the manufacturing industry, the demand for parts with complex cavity structures is increasing day by day. These cavities show a high degree of diversity in size and shape, covering numerous industries from tiny precision mold cavities to the internal cavities of large mechanical components.
[0003] Traditional cavity milling methods often rely on specific process parameter settings and empirical formulas. For cavities of different sizes and shapes, a large amount of manual adjustment and trial - and - error processes are required. For example, in some simple two - dimensional cavity milling, fixed tool path planning and cutting depth control are usually adopted. However, when facing complex three - dimensional cavities or irregular shapes, this traditional method is prone to problems such as low machining efficiency, increased tool wear, and difficulty in ensuring machining accuracy. Moreover, due to the lack of comprehensive and accurate utilization of tool parameters and the feature information of each layer of the cavity, it is difficult to achieve dynamic cutting control during the milling process, and it is impossible to flexibly adjust subsequent actions according to the actual milling situation, further affecting the machining quality and production efficiency.
[0004] Therefore, there is an urgent need for a numerically controlled milling method that can be applied to cavities of any size and shape to improve the overall production level and product quality in the machining industry. Summary of the Invention
[0005] In view of this, this application provides a method, device, storage medium, and computer equipment for numerically controlled milling of cavities, which are applicable to the milling operations of cavities of any size and shape, and enhance the applicability in different machining requirement scenarios.
[0006] To achieve the above object, this application mainly provides the following technical solutions:
[0007] In the first aspect of this application, a method for numerically controlled milling of cavities is provided, including:
[0008] Obtain the first parameter information of the target tool, where the first parameter information at least includes: the radius parameter value of the target tool, the feed direction, and the single - layer milling amount;
[0009] Obtain the second parameter information of the cavity to be milled during the layer - by - layer milling process, where the second parameter information at least includes: the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the corresponding layer of the cavity;
[0010] Perform layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, compare the position of the milling point with the position of the preset milling depth in real time, and control subsequent milling actions according to the comparison result.
[0011] Optionally, obtaining the second parameter information during the layer-by-layer milling process of the cavity to be milled, where the second parameter information at least includes the distance values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer, including:
[0012] Obtain the coordinate data of the milling points in three-dimensional space in each layer;
[0013] Obtain the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in three-dimensional space in each layer;
[0014] Based on the coordinate data of the milling points in three-dimensional space in each layer and the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in three-dimensional space in each layer, determine the distance values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer.
[0015] Optionally, obtaining the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in three-dimensional space in each layer includes:
[0016] Obtain the respective groove angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled;
[0017] Based on the respective groove angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled and the single-layer milling amount of the target tool, determine the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in three-dimensional space in each layer.
[0018] Optionally, performing layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling actions according to the comparison result includes:
[0019] When the position of the milling point is higher than the position of the preset milling depth, and the height difference between the position of the milling point and the position of the preset milling depth is greater than the single-layer milling amount of the target tool, subsequent milling operations are performed based on the single-layer milling amount of the target tool.
[0020] Optionally, the step of performing layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling operations according to the comparison result, further includes:
[0021] When the position of the milling point is higher than the position of the preset milling depth, and the height difference between the position of the milling point and the position of the preset milling depth is less than the single-layer milling amount of the target tool, subsequent milling operations are performed based on the height difference between the position of the milling point and the position of the preset milling depth.
[0022] Optionally, the second parameter information further includes: the fillet radius parameter values at the four corner positions of the cavity to be milled in each layer.
[0023] Optionally, when the fillet radius parameter values at the four corner positions of the cavity to be milled in each layer are different, during the layer-by-layer milling process of the cavity to be milled, the fillet radius parameter values at the four corner positions of the corresponding layer are obtained layer by layer.
[0024] In a second aspect of the present application, a cavity numerical control milling device is provided, including:
[0025] A first parameter information acquisition module, configured to acquire first parameter information of a target tool, where the first parameter information at least includes: the radius parameter value of the target tool, the feed direction, and the single-layer milling amount;
[0026] A second parameter information acquisition module, configured to acquire second parameter information during the layer-by-layer milling process of the cavity to be milled, where the second parameter information at least includes the distance values between the milling point and the front edge, the rear edge, the left edge, and the right edge of the cavity in each layer;
[0027] A milling module, configured to perform layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling operations according to the comparison result.
[0028] In a second aspect of the present application, there is provided a storage medium storing a computer program which, when executed by a processor, implements the steps of the cavity numerical control milling method described in any one of the above.
[0029] In a second aspect of the present application, there is provided a computer device including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the steps of the cavity numerical control milling method described in any one of the above are implemented.
[0030] By means of the above technical solutions, the present application has at least the following beneficial effects:
[0031] The embodiments of the present application provide a cavity numerical control milling method, device, storage medium, and computer device. In the cavity numerical control milling method, by obtaining the first parameter information of the target tool, the distance between the cutting path of the target tool and the edge of the cavity to be milled can be accurately calculated during the milling process, so that the target tool maintains an appropriate distance from the edge of the cavity to be milled during the cutting process, thereby ensuring the machining accuracy of the edge of the cavity to be milled and avoiding over-cutting or under-cutting phenomena caused by improper radius compensation of the target tool. At the same time, by obtaining the spacing values between each milling point of each layer and the edges (front, back, left, and right) of the cavity to be milled, the cutting range can be more finely controlled during the layer-by-layer milling process, and the movement of the target tool can be accurately controlled when approaching the edge, thereby improving the dimensional accuracy and surface quality of the entire cavity to be milled. At the same time, by comparing the position of the milling point with the position of the preset milling depth in real time, the accuracy of the milling depth can be effectively controlled, and performance problems caused by depth deviation can be avoided. Further, since the cavity numerical control milling method performs layer-by-layer milling operations on the cavity to be milled based on the first parameter information (radius, feed direction, single-layer milling amount) of the target tool and the second parameter information (spacing between each layer of milling points and the edge) of each layer of the cavity to be milled, it can adapt to cavities to be milled of different sizes. In addition, it is also applicable to cavities to be milled with complex and diverse shapes, independent four sides, independent fillet radii at the four corners, arbitrary inclination angles of the four sides, and arbitrary cavity centers. By obtaining the spacing between each layer of milling points and the edge and the parameters of the target tool, the path of the target tool can be flexibly planned to achieve effective machining of cavities to be milled with complex shapes. Description of the Drawings
[0032] Figure 1 is a flowchart of the cavity numerical control milling method according to an optional embodiment of the present application;
[0033] Figure 2 is a flowchart of the cavity numerical control milling method according to another optional embodiment of the present application;
[0034] Figure 3Schematic diagram of the cavity to be milled in an alternative embodiment of the present application;
[0035] Figure 4 is Figure 3 the cross-sectional view taken along line A-A in
[0036] Figure 5 is Figure 3 the cross-sectional view taken along line B-B in Detailed implementation manners
[0037] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be fully conveyed to those skilled in the art.
[0038] In this embodiment, a method for numerically controlled milling of a cavity is provided. Referring to Figure 1 as shown, the method includes:
[0039] Step S101: Obtain the first parameter information of the target tool. The first parameter information includes, but is not limited to: the radius parameter value of the target tool, the feed direction, and the single-layer milling amount.
[0040] Here, the radius parameter value of the target tool can be obtained through a specific measuring tool or preset target tool data. The feed direction of the target tool can be determined according to the machining process plan, and this feed direction is used to clarify the movement path direction of the target tool during the machining of the cavity to be milled. The single-layer milling amount of the target tool can be determined based on the material characteristics and physical properties of the target tool itself and the material properties of the cavity to be milled. This single-layer milling amount is used to represent the thickness value of the material removed each time during cutting in the direction perpendicular to the bottom surface of the cavity to be milled.
[0041] Among them, the first parameter information can also include the starting point of the movement of the target tool, that is, the coordinate data of the origin in three-dimensional space and the safety distance data. The starting point of the movement can be a preset position where the target tool starts to move, and the safety distance data can be a preset spacing value between the target tool and the cavity to be milled when the target tool starts to move. In practical applications, the target tool can start moving from the preset starting point of the movement. Subsequently, the target tool travels a height equal to the preset safety distance value in the direction towards the cavity to be milled to ensure that in the machining of complex cavities, the planning of each layer of milling path can be calculated and executed based on the coordinates of the accurate starting point of the movement.
[0042] Specifically, referring to Figure 3 , Figure 4 and Figure 5As shown, when the target tool is set to perform a machining operation on the cavity to be milled in the clockwise direction, its initial movement starting point is point R1. After completing the corresponding preparatory actions, the target tool will move along a vertical path to point R2, and then perform the milling operation in the established order of ①→②→③→④→⑤→⑥→⑦→⑧→⑨→① to ensure the accuracy and coherence of the cavity machining. Similarly, when the target tool is set to machine the cavity to be milled in the counterclockwise direction, point R1 is also used as the starting position. After performing the necessary starting actions, it moves to point R2, and then carries out the milling work in the order of ①→⑨→⑧→⑦→⑥→⑤→④→③→②→①. Thus, effective machining of the cavity to be milled can be achieved under different feed direction settings, meeting the diverse machining process requirements and precision control requirements, and ensuring the smooth progress of the entire machining process and the achievement of the final product quality.
[0043] In the embodiments of the present application, by obtaining the first parameter information of the target tool, the distance between the cutting path of the target tool and the edge of the cavity to be milled can be accurately calculated during the milling process, enabling the target tool to maintain an appropriate distance from the edge of the cavity to be milled during the cutting process, thereby ensuring the machining accuracy of the edge of the cavity to be milled and avoiding overcutting or undercutting phenomena caused by improper radius compensation of the target tool.
[0044] Step S201: Obtain the second parameter information during the layer-by-layer milling process of the cavity to be milled. The second parameter information includes, but is not limited to: the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer.
[0045] Here, the determination of the spacing values between the milling points in each layer and the edges of the cavity to be milled can be calculated based on the geometric model of the cavity to be milled and the relevant parameters of the target tool. The specific operation process is as follows: First, with the help of numerical control programming technology and professional software, according to the geometric characteristics of the cavity to be milled and the set machining process parameters, the theoretical positions of the milling points in each layer are deduced in detail in advance. At the same time, relying on the three-dimensional model of the cavity to be milled, the clear boundary position information of each layer is accurately defined, and this information is presented in the form of digital coordinates in the numerical control system. Then, by using the geometric calculation algorithm integrated in the numerical control system and incorporating the radius parameter of the target tool into the calculation system, through the difference operation of the coordinates of the theoretical position of the milling point and the boundary position coordinates of the cavity to be milled, the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity to be milled can be accurately calculated.
[0046] Specifically, refer to Figure 3As shown in the figure, R7 is used to represent the distance value between the milling point in this layer and the front edge of the cavity to be milled, R8 is used to represent the distance value between the milling point in this layer and the rear edge of the cavity to be milled, R5 is used to represent the distance value between the milling point in this layer and the left edge of the cavity to be milled, and R6 is used to represent the distance value between the milling point in this layer and the right edge of the cavity to be milled. It should be noted that when the values of R5, R6, R7, and R8 are all determined, and the coordinate data of R2 are also set, combined with the fillet radius parameter values at the four corner positions of the cavity to be milled in each layer, the coordinate data of points ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, and ⑨ in three-dimensional space can be determined, providing an accurate motion path planning basis for the target tool. Through these coordinate data, the numerical control system can accurately control the movement of the target tool in three-dimensional space, enabling it to pass through each key point in sequence according to the preset feed direction and sequence, thereby realizing the efficient and high-precision machining of the cavity to be milled. During the actual machining process, the numerical control system will adjust the position and posture of the target tool in real time according to these determined coordinate information to ensure that the distance between the tool and each edge of the cavity remains within the predetermined range during each layer of milling, avoiding over-cutting or under-cutting phenomena, and taking into account the processing efficiency and surface quality requirements. Moreover, as the number of machining layers progresses, the above parameter calculation and coordinate determination methods are reused to gradually complete the milling task of the entire cavity to be milled, and finally obtain a cavity finished product that meets the design requirements, meeting the processing needs of various complex cavity parts in industrial production.
[0047] In the embodiment of the present application, the distance values between the milling points of each layer and the edges (front, rear, left, and right) of the cavity to be milled are obtained, so that the cutting range can be more finely controlled during the layer-by-layer milling process, and the movement of the target tool can be accurately controlled when approaching the edge, thereby improving the dimensional accuracy and surface quality of the entire cavity to be milled. Further, since this cavity numerical control milling method performs layer-by-layer milling operations on the cavity to be milled based on the first parameter information (radius, feed direction, single-layer milling amount) of the target tool and the second parameter information (distance between the milling points of each layer and the edge) of each layer of the cavity to be milled, it can adapt to cavities to be milled of different sizes. In addition, it is also applicable to cavities to be milled with complex and diverse shapes. By obtaining the distances between the milling points of each layer and the edge and the parameters of the target tool, the path of the target tool can be flexibly planned to achieve the effective machining of cavities to be milled with complex shapes.
[0048] Step S301: Perform layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, compare the position where the milling point is located with the position where the preset milling depth is located in real time, and control the subsequent milling actions according to the comparison result.
[0049] Here, first, the first parameter information of the target tool obtained according to the above steps (including the radius parameter value of the target tool, the feed direction, the single-layer milling amount, the starting point coordinates of the movement, the safety distance data, etc.) and the second parameter information during the layer-by-layer milling of the cavity to be milled (the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer) are used to perform the machining operation on the cavity to be milled. Based on these parameter information, the numerical control system can accurately plan the movement path of the target tool in each layer. For example, according to the established feed direction (clockwise or counterclockwise), starting from the set starting point of the movement, after moving to the corresponding position, the milling work is carried out in sequence along the planned order through each milling point. Moreover, throughout the process, relying on these parameters can ensure that the tool maintains an appropriate spacing from each edge of the cavity, avoiding overcutting or undercutting phenomena, and achieving efficient and high-precision machining of the cavity to be milled. Whether for cavities to be milled with different sizes or complex shapes, the tool path can be flexibly planned by reasonably using these parameters to complete effective machining. In addition, during the milling process of each layer, the actual position of the milling point is compared with the position of the preset milling depth in real time. The preset milling depth can be set in advance according to processing technology requirements, etc., and is the expected cutting depth position in the direction perpendicular to the bottom surface of the cavity to be milled. By comparing the positions of these two in real time, the numerical control system can determine whether the current milling operation has reached the expected depth requirement. If the position of the milling point has not reached the preset milling depth position, it means that further cutting is required, and the numerical control system will control the target tool to continue the milling action according to the established feed direction, path, etc., to continuously remove materials and make the milling depth gradually approach the preset value. If the position of the milling point reaches the preset milling depth position, it indicates that the expected cutting depth requirement has been completed at this position in this layer. At this time, the numerical control system will control the target tool to perform subsequent actions according to the corresponding processing logic, such as returning to the starting point of the movement, that is, point R1, and finally completing the milling task of the entire cavity to be milled, ensuring that the finished cavity product meets the design requirements.
[0050] In the embodiments of the present application, comparing the position of the milling point with the position of the preset milling depth in real time can effectively control the accuracy of the milling depth and avoid performance problems caused by depth deviation.
[0051] Further, as a refinement and extension of the specific implementation manner of the above embodiment, to fully illustrate the specific implementation process of this embodiment, refer to Figure 2 As shown, step S201 includes:
[0052] Step S2011: Obtain the coordinate data of the milling points in each layer in three-dimensional space.
[0053] Here, for the first layer, the coordinate data of the milling points in the three-dimensional space can be derived based on the coordinate data of the motion starting point and the safety distance data. Specifically, the coordinate of the motion starting point determines the starting position. Combining the vertical offset determined by the safety distance data, the initial position information of the milling points of the first layer relative to the motion starting point in the three-dimensional space can be determined. For the other layers below the first layer, the coordinate data of the milling points in the three-dimensional space can be obtained through the coordinate data of the milling points in the first layer in the three-dimensional space and the single-layer milling amount data. Since the single-layer milling amount of each layer is fixed, in the direction perpendicular to the bottom surface of the cavity to be milled, the position change of the milling points of other layers relative to the milling points of the first layer can be accurately characterized by the single-layer milling amount data. Thus, the coordinate data of the milling points of each layer in the three-dimensional space can be calculated recursively in turn, providing accurate milling point position information for the entire CNC milling process of the cavity to be milled, and ensuring the accuracy and coherence of the processing.
[0054] Step S2012: Obtain the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in the three-dimensional space for each layer.
[0055] Here, for the first layer, the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in the three-dimensional space can be obtained by taking the motion starting point of the target tool as the coordinate origin of the three-dimensional space and combining the information related to the opening size of the cavity to be milled. Specifically, first, the specific size values such as the length and width of the opening are determined according to the design drawing of the cavity to be milled or the preset process parameters. Then, based on the selected coordinate origin position, calculations are made according to the geometric relationship. For the other layers below the first layer, the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity in the three-dimensional space can be determined according to the shape of the cavity to be milled and combined with the coordinate data of each edge of the first layer and the single-layer milling amount. Since there is a certain layer spacing, that is, the single-layer milling amount, between layers, when the shape of the cavity to be milled remains unchanged, for the other layers except the first layer, the coordinates in the direction perpendicular to the bottom surface of the cavity can be obtained by successively decreasing or increasing the corresponding edge coordinates of the first layer according to the single-layer milling amount. If the shape of the cavity to be milled changes, the edge coordinate data of other layers can be determined based on the bevel angle values of the front edge, rear edge, left edge, and right edge of the cavity, combined with the edge coordinate information of the first layer and the single-layer milling amount.
[0056] Step S2013: Based on the coordinate data of the milling points in each layer in the three-dimensional space and the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in the three-dimensional space, determine the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the corresponding layer of the cavity to be milled.
[0057] Here, the coordinate data of the milling points in each layer obtained in the above steps in the three-dimensional space and the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in the three-dimensional space can be presented in the numerical control system in the form of digital coordinates. Then, by using the geometric calculation algorithm integrated inside the numerical control system, incorporating the radius parameter of the target tool into the calculation system, and performing a difference operation on the theoretical position coordinates of the milling points and the boundary position coordinates of the cavity to be milled, the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity to be milled can be accurately calculated.
[0058] Furthermore, as a refinement and extension of the specific implementation manner of the above embodiment, to fully illustrate the specific implementation process of this embodiment, see Figure 2 As shown, when the shapes of each layer in the cavity to be milled change, step S2011 includes:
[0059] Step S2011: Obtain the respective bevel angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled.
[0060] Here, the respective bevel angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled can be determined from the design drawings of the cavity to be milled or the preset process parameters. It should be noted that in the case where the shapes of each layer in the cavity to be milled change, the bevel angle can intuitively reflect the inclination degree of the edge of the cavity to be milled in each layer in different directions, providing an important basis for accurately calculating the edge coordinates of each layer later.
[0061] Step S2012: Based on the respective bevel angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled and the single-layer milling amount of the target tool, determine the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in the three-dimensional space.
[0062] Here, based on the trigonometric function relationship, the coordinates of the other edges of the cavity to be milled in the next layer can be calculated in combination with the coordinates of the first-layer edge of the cavity to be milled in the three-dimensional space. Specifically, the bevel angle of each layer edge of the cavity to be milled is α, and the single-layer milling amount of the target tool is Δh. In the direction perpendicular to the bottom surface of the cavity to be milled, due to the existence of the single-layer milling amount, the position of each layer will change. In the horizontal direction, according to the tangent value tanα of the bevel angle, the displacement of the edge in the horizontal direction relative to the upper layer can be calculated. For example, for the front edge of the cavity to be milled, considering its change in the x-z plane, the displacement in the x direction is Δx = Δh × tanα. Then, based on the coordinates of the first-layer edge of the cavity to be milled in the three-dimensional space. For example, the coordinates of a point on the first-layer edge of the cavity to be milled are (x1, y1, z1). When calculating the corresponding coordinates of this point on the second layer, due to the influence of the single-layer milling amount Δh in the z direction, the coordinate becomes z2 = z1 - Δh, and in the x direction it becomes x2 = x1 ± Δx. For the y-direction coordinate, if there is no shape change in the y direction of the cavity to be milled, then y2 = y1. In this way, the coordinate data of the front edge, rear edge, left edge, and right edge of each layer of the cavity to be milled in the three-dimensional space are calculated in turn, so as to provide accurate position information for the precise planning of the tool path during CNC milling.
[0063] In this embodiment, referring to Figure 5 as shown, R11 is used to represent the bevel angle value of the front edge of a certain layer of the cavity to be milled, and R12 is used to represent the bevel angle value of the rear edge of a certain layer of the cavity to be milled. Referring to Figure 4 as shown, R9 is used to represent the bevel angle value of the left edge of a certain layer of the cavity to be milled, and R10 is used to represent the bevel angle value of the right edge of a certain layer of the cavity to be milled.
[0064] Furthermore, as a refinement and extension of the specific implementation manner of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, referring to Figure 2 as shown, step S301 includes:
[0065] Step S3011: When the position of the milling point is higher than the position of the preset milling depth and the height difference between the position of the milling point and the position of the preset milling depth is greater than the single-layer milling amount of the target tool, perform subsequent milling actions based on the single-layer milling amount of the target tool.
[0066] Here, when the position of the milling point is higher than the position of the preset milling depth, and the height difference between the two is greater than the single-layer milling amount of the target tool, this means that the current milling is still in a relatively "early" stage, and there is still a certain margin from reaching the preset milling depth, and this margin is sufficient for a complete single-layer milling. In this case, the subsequent milling operation is performed based on the single-layer milling amount of the target tool. This is because the current machining margin is sufficient for a standard single-layer milling operation, which can ensure the machining efficiency.
[0067] Step S3012: When the position of the milling point is higher than the position of the preset milling depth, and the height difference between the position of the milling point and the position of the preset milling depth is less than the single-layer milling amount of the target tool, the subsequent milling operation is performed based on the height difference between the position of the milling point and the position of the preset milling depth.
[0068] Here, when the position of the milling point is higher than the position of the preset milling depth, but the height difference between the position of the milling point and the position of the preset milling depth is less than the single-layer milling amount of the target tool, it indicates that it is already relatively close to the preset milling depth, and the remaining machining margin is not sufficient for a complete single-layer milling. The subsequent milling operation is performed based on the height difference between the position of the milling point and the position of the preset milling depth. This is to precisely control the milling depth and avoid over-cutting. The numerical control system will adjust the feed rate of the tool so that the depth of the tool milling downward is exactly equal to this height difference.
[0069] Furthermore, as a refinement and extension of the specific implementation manner of the above embodiment, in order to completely illustrate the specific implementation process of this embodiment, the second parameter information further includes: the chamfer radius parameter values at the four corner positions of the cavity to be milled in each layer.
[0070] Here, in the above step S201, to accurately plan the movement path of the target tool, it is necessary to accurately know the coordinate data of the key milling points (such as points ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, and ⑨) in three-dimensional space. The determination of the coordinate data of these points, in addition to relying on the spacing values (such as R5, R6, R7, R8, etc.) between the milling points of each layer and the edges of the cavity (front, back, left, and right) mentioned above, as well as the coordinate data of the starting points of the movement (such as points R1 and R2), the fillet radius parameter values at the four corner positions of the cavity to be milled in each layer are also important factors. Only by integrating this information can the accurate determination of the coordinates of each key milling point be completed. Specifically, when the spacing values between the milling points of each layer and the edges, the coordinate data of the starting points of the movement, and the fillet radius parameter values at each corner are all clear, the numerical control system will use the geometric calculation algorithms integrated internally, combined with information such as the radius parameter of the target tool (because the tool radius will also affect the relative position relationship between the tool center and each part of the cavity, and thus affect the determination of the milling point coordinates), through a series of coordinate calculations, geometric relationship calculations, and logical derivations based on the tool path sequence, to comprehensively determine the accurate coordinate data of points ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, and ⑨ in three-dimensional space. These precise coordinate data enable the numerical control system to accurately control the target tool to pass through each key point in sequence in three-dimensional space according to the preset tool path direction and sequence, thereby achieving efficient and high-precision machining of the cavity to be milled, ensuring that the entire cavity machining meets the design requirements, avoiding problems such as over-cutting and under-cutting, and guaranteeing the machining quality and the accuracy of the final product.
[0071] In some specific examples, if the fillet radius parameter values at the four corner positions of the cavity to be milled in each layer are the same, it means that the corner transition forms of the entire cavity to be milled in different layers have a high degree of consistency. From the perspective of machining, for the numerical control system in planning the target tool path and determining the coordinates of each key milling point, its calculation logic is relatively more simplified. For example, when calculating the coordinate data of points ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, and ⑨ in three-dimensional space, once the fillet radius parameter value at the corner of a certain layer is determined, the same value can be used in the subsequent layers to participate in the coordinate calculation process. Since the arc characteristics of the corners remain unchanged, based on the fixed fillet radius, combined with the spacing values between the milling points of each layer and the edges of the cavity (such as R5, R6, R7, R8, etc.) and the coordinate data of the starting points of the movement (such as points R1 and R2), the numerical control system can more efficiently and stably use geometric calculation algorithms to accurately determine the coordinates of the key milling points, and then ensure that the target tool achieves high-precision milling operations according to the preset tool path direction and sequence, ensuring that the dimensional accuracy and surface quality of the entire cavity machining meet the requirements.
[0072] In some other specific examples, if the chamfer radius parameter values at the four corner positions of the cavity to be milled in each layer are different, during the layer-by-layer milling process of the cavity to be milled, it is necessary to obtain the chamfer radius parameter values at the four corner positions of the corresponding layer layer by layer. This is because the chamfer radii of the corners in different layers are different, which means that the transition shape of the corners changes between layers. For example, the chamfer radius of the corner in a certain layer is relatively large, and the bending degree of its corner is relatively more obvious, while the chamfer radius of another layer is relatively small, and the corner will be relatively more "sharp". In this case, the influence of the corners of each layer on the key milling point coordinates in three-dimensional space is different. Therefore, during machining, for each layer, it is necessary to accurately obtain the chamfer radius parameter values at the four corner positions of the layer first, and then incorporate them into the coordinate calculation system. The numerical control system needs to re-use geometric calculation algorithms based on the specific chamfer radius of each layer, combined with information such as the distance between the milling point and the cavity edge of the layer and the starting point coordinates of the movement, to accurately calculate the coordinate data of each key milling point in three-dimensional space, so as to dynamically adjust the target tool path planning to meet the requirements of the corner shape changes in different layers, and ensure that during the entire layer-by-layer milling process, both over-cutting and under-cutting phenomena can be avoided, and ideal machining accuracy and surface quality can be achieved.
[0073] Further, as Figure 1 and Figure 2 shown in the specific implementation of the cavity numerical control milling method, the embodiment of the present application provides a cavity numerical control milling device, including:
[0074] A first parameter information acquisition module, configured to acquire first parameter information of a target tool, where the first parameter information at least includes: the radius parameter value of the target tool, the feed direction, and the single-layer milling amount;
[0075] A second parameter information acquisition module, configured to acquire second parameter information during the layer-by-layer milling process of the cavity to be milled, where the second parameter information at least includes the distance values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the corresponding layer of the cavity;
[0076] A milling module, configured to perform layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, compare the position of the milling point with the position of the preset milling depth in real time, and control subsequent milling actions according to the comparison result.
[0077] Based on the above Figure 1 and Figure 2 shown cavity numerical control milling method, correspondingly, the embodiment of the present application also provides a storage medium, and the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above cavity numerical control milling methods are implemented.
[0078] Based on such an understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various implementation scenarios of this application.
[0079] Based on the above Figure 1 and Figure 2 For the cavity CNC milling method and the virtual device embodiment shown above, in order to achieve the above object, an embodiment of this application also provides a computer device, specifically a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of any one of the above cavity CNC milling methods.
[0080] It is easy for those skilled in the art to understand that, on the premise of no conflict, the above advantageous ways can be freely combined and superimposed.
[0081] The above are only the preferred embodiments of this application, and are not intended to limit this application. Any modifications, equivalent replacements, and improvements made within the spirit and principle of this application shall be included in the protection scope of this application. The above is only the preferred implementation manner of this application. It should be noted that for those of ordinary skill in the art in this technical field, several improvements and variations can be made without departing from the technical principle of this application, and these improvements and variations should also be regarded as the protection scope of this application.
Claims
1. A CNC milling method for a cavity, characterized in that, Including: Obtaining first parameter information of a target tool, where the first parameter information at least includes: the radius parameter value of the target tool, the feed direction, and the single-layer milling amount; Obtaining second parameter information during the layer-by-layer milling of a cavity to be milled, where the second parameter information at least includes: the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer; Performing layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling actions according to the comparison result.
2. The cavity NC milling method according to claim 1, characterized in that, The obtaining of the second parameter information during the layer-by-layer milling of the cavity to be milled, where the second parameter information at least includes the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer, includes: Obtaining the coordinate data of the milling points in each layer in three-dimensional space; Obtaining the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in three-dimensional space; Based on the coordinate data of the milling points in each layer in three-dimensional space and the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in three-dimensional space, determining the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer.
3. The cavity CNC milling method according to claim 2, characterized in that The obtaining of the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in three-dimensional space includes: Obtaining the respective bevel angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled; Based on the respective bevel angle values at the front edge, rear edge, left edge, and right edge of the cavity to be milled and the single-layer milling amount of the target tool, determining the coordinate data of the front edge, rear edge, left edge, and right edge of the cavity to be milled in each layer in three-dimensional space.
4. The cavity CNC milling method according to claim 1, characterized in that, The performing of layer-by-layer milling operations on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling actions according to the comparison result, includes: When the position of the milling point is higher than the position of the preset milling depth and the height difference between the position of the milling point and the position of the preset milling depth is greater than the single-layer milling amount of the target tool, performing subsequent milling actions based on the single-layer milling amount of the target tool.
5. The cavity CNC milling method according to claim 1, characterized in that, Performing a layer-by-layer milling operation on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling actions according to the comparison result, further including: When the position of the milling point is higher than the position of the preset milling depth and the height difference between the position of the milling point and the position of the preset milling depth is less than the single-layer milling amount of the target tool, performing subsequent milling actions based on the height difference between the position of the milling point and the position of the preset milling depth.
6. The cavity CNC milling method according to claim 1, characterized in that The second parameter information further includes: the chamfer radius parameter values at the four corner positions of the cavity to be milled in each layer.
7. The cavity NC milling method according to claim 6, characterized in that, When the chamfer radius parameter values at the four corner positions of the cavity to be milled in each layer are different, during the layer-by-layer milling process of the cavity to be milled, the chamfer radius parameter values at the four corner positions of the corresponding layer are obtained layer by layer.
8. A cavity numerical control milling device, characterized in that Including: A first parameter information acquisition module for acquiring the first parameter information of the target tool, where the first parameter information at least includes: the radius parameter value of the target tool, the feed direction, and the single-layer milling amount; A second parameter information acquisition module for acquiring the second parameter information during the layer-by-layer milling process of the cavity to be milled, where the second parameter information at least includes the spacing values between the milling points in each layer and the front edge, rear edge, left edge, and right edge of the cavity in the corresponding layer; A milling module for performing a layer-by-layer milling operation on the cavity to be milled based on the first parameter information and the second parameter information, and during the milling process of each layer, comparing the position of the milling point with the position of the preset milling depth in real time, and controlling subsequent milling actions according to the comparison result.
9. A storage medium, characterized in that, The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cavity numerical control milling method according to any one of claims 1-7 are implemented.
10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein, When the processor executes the computer program, the steps of the cavity numerical control milling method according to any one of claims 1-7 are implemented.