Processing track preprocessing method and device, processing equipment and readable storage medium
By constructing alternative sub-machining trajectories to adjust the laser machining trajectory, the machine tool vibration problem at the junction of adjacent linear sub-machining trajectories was solved, improving machining efficiency and accuracy.
Patent Information
- Application Number
- CN202411001211.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-25
AI Technical Summary
During laser processing, the curvature fluctuations at the junction of adjacent linear sub-processing trajectories can cause abnormal machine tool vibration, affecting processing efficiency and accuracy.
By acquiring the trajectory characteristic parameters and error constraint values of adjacent sub-machining trajectories, alternative sub-machining trajectories are constructed to replace adjacent sub-machining trajectories and their junctions. The machining trajectory is then adjusted to improve smoothness and maintain the continuity of machining feed rate.
It improves the problem of abnormal machine tool vibration caused by uneven changes in trajectory curvature, and enhances the efficiency and precision of laser processing.
Smart Images

Figure CN118963240A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser processing, and in particular to a processing trajectory preprocessing method, device, processing equipment and readable storage medium. Background Art
[0002] With the continuous development of laser processing technology and the continuous enrichment of laser demand, the requirements for laser processing efficiency are getting higher and higher. In the laser processing process, processing trajectory planning, as the core of laser processing control, directly affects the laser processing accuracy.
[0003] In actual processing, most processing trajectories will include line segments and line segment corners composed of adjacent linear sub-processing trajectories of different lengths. Since the trajectory curvature at the trajectory connection will produce large fluctuations, if processing is performed directly according to the original processing trajectory, in order to avoid abnormal vibration of the machine tool, the processing feed speed at the trajectory connection needs to be reduced, which in turn affects the laser processing efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a processing trajectory preprocessing method, device, processing equipment and readable storage medium to address the above technical problems.
[0005] A machining trajectory preprocessing method, applied to a machining trajectory including a plurality of sub-machining trajectories, comprises:
[0006] Acquiring trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories;
[0007] Based on the trajectory characteristic parameters and the trajectory error constraint value, determining a replacement sub-processing trajectory of the adjacent sub-processing trajectory, the replacement sub-processing trajectory is used to replace the adjacent sub-processing trajectory and the trajectory connection portion formed by the adjacent sub-processing trajectory;
[0008] According to the replacement sub-processing trajectory, a preprocessing result of the processing trajectory is determined.
[0009] In one of the embodiments, the obtaining of the trajectory characteristic parameters and trajectory error constraint values of the adjacent sub-processing trajectories is specifically: obtaining the trajectory length, trajectory characteristic points and trajectory error constraint values of the adjacent sub-processing trajectories;
[0010] The step of determining a replacement sub-processing trajectory adjacent to the sub-processing trajectory based on the trajectory feature parameter and the trajectory error constraint value comprises:
[0011] Determining a characteristic structural graph of adjacent sub-processing trajectories according to the trajectory characteristic points;
[0012] The alternative sub-processing trajectory is determined according to the trajectory length, the trajectory feature points, the feature construction graph and the trajectory error constraint value.
[0013] In one embodiment, the trajectory feature points include a trajectory starting point and a trajectory ending point, and determining the feature construction graph of the adjacent sub-processing trajectory according to the trajectory feature points includes:
[0014] Constructing a trajectory replacement triangle of adjacent linear sub-processing trajectories according to the trajectory starting point and the trajectory ending point;
[0015] The step of determining the alternative sub-processing trajectory according to the trajectory length, the trajectory feature points, the feature construction graph and the trajectory error constraint value comprises:
[0016] An alternative linear sub-machining trajectory is determined according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value.
[0017] In one embodiment, determining the alternative linear sub-processing trajectory according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value comprises:
[0018] Determining the connection angle between adjacent sub-processing trajectories according to the trajectory length, the trajectory starting point and the trajectory ending point;
[0019] The alternative linear sub-machining trajectory is determined according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value.
[0020] In one embodiment, determining the alternative linear sub-processing trajectory according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value includes:
[0021] When the connection angle is a right angle or an acute angle, the alternative linear sub-processing trajectory is determined according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value;
[0022] When the connection angle is an obtuse angle, the alternative linear sub-machining trajectory is determined according to the trajectory length, the construction side of the trajectory replacement triangle, the construction angle of the trajectory replacement triangle and the trajectory error constraint value.
[0023] In one embodiment, determining the alternative linear sub-processing trajectory according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value comprises:
[0024] Acquire a first numerical comparison relationship between the minimum value of the trajectory length and the trajectory error constraint value;
[0025] The replacement linear sub-processing trajectory is determined according to the first numerical comparison relationship and the construction side of the trajectory replacement triangle.
[0026] In one embodiment, determining the alternative linear sub-processing trajectory according to the trajectory length, the construction side of the trajectory replacement triangle, the construction angle of the trajectory replacement triangle and the trajectory error constraint value comprises:
[0027] Obtaining a target construction angle of the trajectory replacement triangle corresponding to the maximum value of the trajectory length;
[0028] Determine, according to the target configuration angle and the trajectory length, a second numerical comparison relationship between a product of the target configuration angle and a minimum value of the trajectory length and the trajectory error constraint value;
[0029] The replacement linear sub-processing trajectory is determined according to the second numerical comparison relationship and the construction side of the trajectory replacement triangle.
[0030] A processing trajectory preprocessing device, applied to a processing trajectory including a plurality of sub-processing trajectories, comprising:
[0031] A parameter acquisition module, used to acquire trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories;
[0032] A replacement trajectory determination module, connected to the parameter acquisition module, for determining a replacement sub-processing trajectory adjacent to the sub-processing trajectory based on the trajectory characteristic parameter and the trajectory error constraint value;
[0033] The trajectory processing module is connected to the replacement trajectory determination module and is used to determine the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory.
[0034] A processing device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the above method.
[0035] A computer-readable storage medium stores a computer program, which implements the above method when executed by a processor.
[0036] A computer program product, when the computer program product is run on a terminal device, enables the terminal device to execute any of the methods described above.
[0037] The beneficial effects of the embodiments provided in this application include:
[0038] The machining trajectory preprocessing method is applied to a machining trajectory including a plurality of sub-machining trajectories. According to trajectory characteristic parameters and trajectory error constraint values of adjacent sub-machining trajectories (such as adjacent linear sub-machining trajectories), a substitute sub-machining trajectory that can be used to replace adjacent sub-machining trajectories and their trajectory junctions (such as line segments and line segment corners formed by adjacent linear sub-machining trajectories of different lengths) is obtained, and the complete machining trajectory is adjusted based on the obtained substitute sub-machining trajectory, thereby obtaining a preprocessing result of the machining trajectory, that is, obtaining a machining trajectory that satisfies the trajectory error and takes into account the machining feed speed. Compared with the initial machining trajectory, the adjusted machining trajectory effectively improves the trajectory smoothness at the junction of the original trajectory, thereby maintaining a larger machining feed speed at the junction of the adjacent sub-machining trajectories, and at the same time ensuring the continuity of the speed and acceleration at the trajectory junction, improving the problem of abnormal vibration of the machine tool caused by uneven change of the trajectory curvature, thereby ensuring the laser machining accuracy while meeting the higher requirements of the laser machining efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of a process flow of a machining trajectory preprocessing method in one embodiment;
[0041] Figure 2 is a specific flow chart of step 104 in one embodiment;
[0042] Figure 3 is a specific flow chart of step 104 in one embodiment;
[0043] Figure 4 A schematic diagram of a machining trajectory preprocessing process in one embodiment;
[0044] Figure 5 A schematic diagram of a machining trajectory preprocessing process in one embodiment;
[0045] Figure 6 This is a specific flow chart of step 106 in one embodiment;
[0046] Figure 7 It is a schematic block diagram of the structure of a processing trajectory preprocessing device in one embodiment;
[0047] Figure 8 is a schematic block diagram of a specific structure of a replacement trajectory determination module 40 in an embodiment;
[0048] Fig. 9 is a schematic block diagram of a specific structure of an alternative trajectory determination unit 440 in one embodiment;
[0049] Fig.10 is a schematic block diagram of a specific structure of a trajectory processing module 60 in one embodiment;
[0050] Fig.11 Schematic diagram of the structure of a processing device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0053] Figure 1 , which is a flow chart of a processing trajectory preprocessing method in one embodiment.
[0054] In this embodiment, if Figure 1 As shown, the machining trajectory preprocessing method is applied to a machining trajectory including a plurality of sub-machining trajectories, and the machining trajectory preprocessing method includes steps 102 to 106 .
[0055] Step 102, obtaining trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories.
[0056] The processing trajectory may be an initial planning trajectory for laser processing or an initial planning trajectory for machining. Adjacent sub-processing trajectories may be sub-processing trajectories that share at least one endpoint. Trajectory feature parameters include trajectory feature points and trajectory length on the sub-processing trajectory. The trajectory error constraint value may be a maximum trajectory preprocessing error allowed by adjacent sub-processing trajectories, which may be specifically applied to a scenario where the maximum trajectory preprocessing error is limited.
[0057] Optionally, the adjacent sub-processing tracks can be a linear sub-processing track and another linear sub-processing track connected to form a corner, and the corner is a linear and linear corner. The track feature points include the track start point and the track end point of the linear sub-processing track.
[0058] The case of obtaining trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories includes: analyzing each sub-processing trajectory in the processing trajectory through a trajectory analysis module, and obtaining trajectory characteristic points, trajectory lengths and trajectory error constraint values of adjacent sub-processing trajectories.
[0059] Step 104 : determining a replacement sub-processing trajectory of the adjacent sub-processing trajectory based on the trajectory characteristic parameters and the trajectory error constraint value.
[0060] The replacement sub-processing trajectory can be a sub-processing trajectory that can replace the initial adjacent sub-processing trajectory and the junction of the initial adjacent sub-processing trajectory. Optionally, the replacement sub-processing trajectory can be a sub-processing trajectory used to replace adjacent linear sub-processing trajectories of different lengths and the line segments and line segment corners formed by the two.
[0061] The situations of determining a replacement sub-processing trajectory of an adjacent sub-processing trajectory based on trajectory feature parameters and trajectory error constraint values include: determining a feature construction graph of the adjacent sub-processing trajectory according to trajectory feature points; and determining a replacement sub-processing trajectory according to trajectory length, trajectory feature points, feature construction graphs and trajectory error constraint values.
[0062] The characteristic construction figure can be generated based on the track feature points of the adjacent sub-processing tracks, and can provide a figure of a replacement sub-processing track of the adjacent sub-processing track. Optionally, the characteristic construction figure can be a triangle or other figures.
[0063] Step 106, determining the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory.
[0064] The preprocessing result can be a processing trajectory generated based on the replacement sub-processing trajectory and the initial sub-processing trajectory, which can meet the trajectory error and take into account the processing feed speed.
[0065] The case of determining the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory includes: constructing a processing trajectory including the replacement sub-processing trajectory according to the processing sequence of the replaced sub-processing trajectory and the non-replaced sub-processing trajectory corresponding to the obtained replacement sub-processing trajectory.
[0066] When preprocessing the machining trajectory, the trajectory analysis module is used to analyze each part of the sub-machining trajectory in the machining trajectory, and the trajectory feature points, trajectory lengths and trajectory error constraint values of adjacent sub-machining trajectories are obtained; according to the trajectory feature points, the feature construction graphs of adjacent sub-machining trajectories are determined; according to the trajectory lengths, trajectory feature points, feature construction graphs and trajectory error constraint values, the replacement sub-machining trajectory is determined; according to the machining sequence of the replaced sub-machining trajectory and the non-replaced sub-machining trajectory corresponding to the obtained replacement sub-machining trajectory, a machining trajectory that meets the initial conditions and contains the replacement sub-machining trajectory is constructed.
[0067] The processing trajectory preprocessing method provided in this embodiment is applied to a processing trajectory including multiple sub-processing trajectories. According to the trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories (such as adjacent linear sub-processing trajectories), a substitute sub-processing trajectory that can be used to replace adjacent sub-processing trajectories and their trajectory connections (such as line segments and line segment corners composed of adjacent linear sub-processing trajectories of different lengths) is obtained, and the complete processing trajectory is adjusted based on the obtained substitute sub-processing trajectory, so as to obtain a preprocessing result of the processing trajectory, that is, a processing trajectory that satisfies the trajectory error and takes into account the processing feed speed. Compared with the initial processing trajectory, the adjusted processing trajectory effectively improves the trajectory smoothness at the connection of the original trajectory, and thus can maintain a larger processing feed speed at the trajectory connection of adjacent sub-processing trajectories, while ensuring the continuity of the speed and acceleration at the trajectory connection, improving the problem of abnormal vibration of the machine tool caused by uneven change of the trajectory curvature, thereby ensuring the laser processing accuracy while meeting the higher requirements of laser processing efficiency.
[0068] Figure 2 , which is a specific flow chart of step 104 in an embodiment.
[0069] In this embodiment, if Figure 2 As shown, step 104 includes sub-steps 202 to 204 .
[0070] In sub-step 202, a trajectory replacement triangle of adjacent linear sub-processing trajectories is constructed according to the trajectory starting point and the trajectory ending point.
[0071] The trajectory replacement triangle can be generated based on the trajectory initial point and trajectory feature point of the adjacent sub-processing trajectory, and can use the side length as the construction triangle of the replacement linear sub-processing trajectory.
[0072] According to the trajectory starting point and the trajectory ending point, the case of constructing a trajectory replacement triangle of adjacent linear sub-processing trajectories includes: taking the first segment of the adjacent linear sub-processing trajectory as the first side, taking the second segment of the adjacent linear sub-processing trajectory as the second side, and then taking the shortest distance between the starting point of the first segment of the linear sub-processing trajectory and the ending point of the second segment of the linear sub-processing trajectory as the third side.
[0073] In sub-step 204, a replacement linear sub-machining trajectory is determined according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value.
[0074] The situations of determining the alternative linear sub-processing trajectory according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value include: determining the connection angle of adjacent sub-processing trajectories according to the trajectory length, the trajectory starting point and the trajectory ending point; determining the alternative linear sub-processing trajectory according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value.
[0075] The connection angle can be the angle at which adjacent linear sub-processing tracks connect. Optionally, the connection angle includes an acute angle, a right angle, and an obtuse angle.
[0076] According to the track length, track starting point and track ending point, the process expression for determining the connection angle of adjacent sub-processing tracks is as follows:
[0077]
[0078] Where, the linear sub-processing trajectory L i and L i+1 P is the processing trajectory of two adjacent segments. i and P i+1 Respectively represent the linear sub-processing trajectory L i The starting and ending points, P i+1 and P i+2 Represent the linear sub-processing trajectory L i+1 The starting and ending points of D i =||P i P i+1 || and D i+1 =||P i+1 P i+2 || respectively represent the linear sub-processing trajectory L i and L i+1 The length of the trajectory.
[0079] When preprocessing the processing trajectory, the first linear sub-processing trajectory in the adjacent linear sub-processing trajectory is used as the first side, the second linear sub-processing trajectory in the adjacent linear sub-processing trajectory is used as the second side, and the shortest distance between the starting point of the first linear sub-processing trajectory and the ending point of the second linear sub-processing trajectory is used as the third side, that is, a trajectory replacement triangle is constructed; the connection angle of the adjacent sub-processing trajectories is determined according to the trajectory length, the trajectory starting point and the trajectory ending point; the replacement linear sub-processing trajectory is determined according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value.
[0080] The machining trajectory preprocessing method provided in this embodiment constructs a trajectory replacement triangle through adjacent linear sub-machining trajectories, trajectory starting points and trajectory ending points, and determines an alternative linear sub-machining trajectory that can replace the adjacent sub-machining trajectories and their trajectory connections in combination with the connection angle, trajectory length and trajectory error constraint value, that is, using an alternative linear sub-machining trajectory to complete the functional replacement of two adjacent linear sub-machining trajectories, thereby being able to maintain a higher machining feed speed at the trajectory connection of adjacent sub-machining trajectories, and also ensuring the continuity of speed and acceleration at the trajectory connection.
[0081] Figure 3 , which is a specific flow chart of step 104 in an embodiment.
[0082] In this embodiment, if Figure 3 As shown, step 104 includes sub-steps 302 to 304 .
[0083] In sub-step 302, when the connection angle is a right angle or an acute angle, a replacement linear sub-processing trajectory is determined according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value.
[0084] The situation of determining the alternative linear sub-processing trajectory according to the trajectory length, the construction edge of the trajectory replacement triangle and the trajectory error constraint value includes: obtaining a first numerical comparison relationship between the minimum value of the trajectory length and the trajectory error constraint value; determining the alternative linear sub-processing trajectory according to the first numerical comparison relationship and the construction edge of the trajectory replacement triangle.
[0085] The constructed edge of the replacement triangle may be an edge constructed based on the shortest distance between the trajectory starting point of the first linear sub-processing trajectory and the trajectory ending point of the second linear sub-processing trajectory in the replacement triangle. The minimum trajectory length may be the smaller value of the trajectory lengths of adjacent linear sub-processing trajectories. The first numerical comparison relationship may be that the minimum trajectory length is less than the trajectory error constraint value, or that the minimum trajectory length is equal to the trajectory error constraint value, or that the minimum trajectory length is greater than the trajectory error constraint value.
[0086] According to the first numerical comparison relationship and the construction edge of the trajectory replacement triangle, the situation of determining the replacement linear sub-processing trajectory includes: when the minimum value of the trajectory length is less than or equal to the trajectory error constraint value, using the construction edge of the trajectory replacement triangle as the replacement linear sub-processing trajectory of the adjacent linear sub-processing trajectory.
[0087] Specifically, Figure 4 As shown, if the adjacent linear sub-processing trajectory L i and L i+1 The connection angle θ is a right angle or an acute angle, that is, θ≤90°, and the connection sub-processing trajectory L i The starting point of the trajectory and the sub-processing trajectory Li+1 The end point of the trajectory is the construction edge of the triangle replaced by the trajectory, that is, P i P i+2 , construct the endpoint P i , P i+1 , P i+2 The replacement triangle ΔP i P i+1 P i+2 If the minimum trajectory length D m Less than or equal to the trajectory error constraint value δ max , that is, D m ≤δ max , indicating that the trajectory error constraint δ max In the case of adjacent linear sub-processing trajectory L i and L i+1 Can be replaced by a sub-processing trajectory (i.e., the trajectory replaces the construction edge P of the triangle i P i+2 ) is replaced by the micro-machining track. m Greater than the trajectory error constraint value δ max , that is, D m >δ max , indicating that the adjacent linear sub-processing trajectory L i and L i+1 They are all long straight lines, and there is no need to remove micro-machining trajectories. m and trajectory error constraint δ max By comparing the numerical values of i and L i+1 Whether there is a tiny trajectory segment in the processing trajectory, the tiny sub-processing trajectory in the processing trajectory can be removed. The adjusted processing trajectory effectively improves the trajectory smoothness at the connection of the original trajectory, and then can maintain a larger processing feed speed at the connection of the adjacent sub-processing trajectories.
[0088] In sub-step 304, when the connection angle is an obtuse angle, a replacement linear sub-machining trajectory is determined according to the trajectory length, the construction angle of the trajectory replacement triangle and the trajectory error constraint value.
[0089] According to the trajectory length, the construction angle of the trajectory replacement triangle and the trajectory error constraint value, the situation of determining the alternative linear sub-processing trajectory includes: obtaining the target construction angle of the trajectory replacement triangle corresponding to the maximum trajectory length; according to the target construction angle and the trajectory length, determining the second numerical comparison relationship between the product value of the target construction angle and the minimum trajectory length and the trajectory error constraint value; according to the second numerical comparison relationship and the construction side of the trajectory replacement triangle, determining the alternative linear sub-processing trajectory.
[0090] The maximum value of the trajectory length may be the larger value of the trajectory length of the adjacent linear sub-processing trajectory. The target construction angle may be the angle corresponding to the maximum value of the trajectory length in the adjacent linear sub-processing trajectory in the replacement triangle. The second numerical comparison relationship may be that the product of the target construction angle and the minimum value of the trajectory length is less than the trajectory error constraint value, or that the product of the target construction angle and the minimum value of the trajectory length is equal to the trajectory error constraint value, or that the product of the target construction angle and the minimum value of the trajectory length is greater than the trajectory error constraint value.
[0091] According to the second numerical comparison relationship and the construction side of the trajectory replacement triangle, the situation of determining the replacement linear sub-processing trajectory includes: when the product of the target construction angle and the minimum value of the trajectory length is less than or equal to the trajectory error constraint value, the construction side of the trajectory replacement triangle is used as the replacement linear sub-processing trajectory of the adjacent linear sub-processing trajectory.
[0092] Specifically, Figure 5 As shown, if the adjacent linear sub-processing trajectory L i and L i+1 The connection angle θ is an obtuse angle, that is, θ>90°, and the connection sub-processing trajectory L i The starting point of the trajectory and the sub-processing trajectory L i+1 The end point of the trajectory is the construction edge of the triangle replaced by the trajectory, that is, the line segment P i P i+2 , construct the endpoint P i , P i+1 , P i+2 The replacement triangle ΔP i P i+1 P i+2 Then calculate the adjacent linear sub-processing trajectory L i and L i+1 The target structure angle α corresponding to the longer side is as follows: Figure 5 As shown in the figure, the angles corresponding to the target structural angles α are ∠P i+1 P i P i+2 and ∠P i+1 P i+2 P i Then, if the product of the target construction angle and the minimum trajectory length is less than or equal to the trajectory error constraint value, that is, D m sin(α)≤δ max , while satisfying the trajectory error constraint δ max In the case of adjacent linear sub-processing trajectory L i and L i+1 Can be replaced by a sub-processing trajectory (i.e., the trajectory replaces the construction edge P of the triangle i P i+2) is replaced by the small track segment to achieve the purpose of removing the small track segment. m sin(α)>δ max , indicating that the adjacent linear sub-processing trajectory L i and L i+1 They are all long straight lines, and there is no need to remove micro-machining trajectories. The product value D of the target construction angle and the minimum value of the trajectory length is calculated. m sin(α) and trajectory error constraint value δ max By comparing the numerical values of i and L i+1 Whether there is a tiny trajectory segment in the processing trajectory, the tiny sub-processing trajectory in the processing trajectory can be removed. The adjusted processing trajectory effectively improves the trajectory smoothness at the connection of the original trajectory, and then can maintain a larger processing feed speed at the connection of the adjacent sub-processing trajectories.
[0093] The machining trajectory preprocessing method provided in this embodiment is to respectively calculate the minimum value D of the trajectory length according to different connection angles formed by adjacent linear sub-machining trajectories. m and trajectory error constraint δ max The numerical comparison of the target angle and the minimum value of the trajectory length is the product value D m sin(α) and trajectory error constraint value δ max Compare the values of adjacent linear sub-processing trajectories L i and L i+1 Whether there are tiny trajectory segments in the processing trajectory, and the removal of tiny sub-processing trajectories in the processing trajectory is realized, which improves the feasibility of the processing trajectory preprocessing method and expands the actual application scope.
[0094] Figure 6 , which is a specific flow chart of step 106 in one embodiment.
[0095] In this embodiment, if Figure 6 As shown, step 106 includes sub-steps 602 to 604 .
[0096] In sub-step 602, trajectory sorting results of a plurality of alternative sub-processing trajectories are obtained.
[0097] In sub-step 602, a pre-processing result of the processing trajectory is determined according to the trajectory sorting result.
[0098] The trajectory sorting result may be the trajectory planning sorting of the replaced sub-processing trajectory corresponding to the replacement sub-processing trajectory. The preprocessing result may be that the adjacent sub-processing trajectory in the processing trajectory is partially replaced by the replacement sub-processing trajectory, or the adjacent sub-processing trajectory in the processing trajectory is completely replaced by the replacement sub-processing trajectory.
[0099] The case of determining the preprocessing result of the processing trajectory according to the trajectory sorting result includes: according to the trajectory sorting result, the replacement sub-processing trajectory and the non-replaced sub-processing trajectory are sequentially reconnected to construct a processing trajectory having the replacement sub-processing trajectory and the initial sub-processing trajectory.
[0100] The processing trajectory preprocessing method provided in this embodiment connects the obtained replacement sub-processing trajectory and the non-replaced sub-processing trajectory in an orderly manner based on the trajectory planning sorting of the replaced sub-processing trajectory, thereby ensuring the feasibility of the re-derived processing trajectory.
[0101] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the prompts of the arrows, these steps are not necessarily executed in sequence in the order of the arrow prompts. Unless clearly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the above sub-steps may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps. It should be noted that the above different embodiments can be combined with each other.
[0102] Figure 7 , is a schematic block diagram of the structure of a processing trajectory preprocessing device in an embodiment.
[0103] In this embodiment, if Figure 7 As shown, the machining trajectory preprocessing device is applied to a machining trajectory including a plurality of sub-machining trajectories, and the machining trajectory preprocessing device includes a parameter acquisition module 20 , a replacement trajectory determination module 40 and a trajectory processing module 60 .
[0104] The parameter acquisition module 20 is used to acquire the trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories.
[0105] The replacement trajectory determination module 40 is connected to the parameter acquisition module 20 and is used to determine a replacement sub-processing trajectory of an adjacent sub-processing trajectory based on the trajectory characteristic parameters and the trajectory error constraint value.
[0106] The trajectory processing module 60 is connected to the replacement trajectory determining module 40 and is used to determine the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory.
[0107] In this embodiment, each module is used to execute Figure 1 For details of the steps in the corresponding embodiments, please refer to Figure 1 as well as Figure 1 The relevant descriptions in the corresponding embodiments are not repeated here.
[0108] The processing trajectory preprocessing device provided in this embodiment obtains the trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories through the parameter acquisition module 20; the replacement trajectory determination module 40 connected to the parameter acquisition module 20 determines the replacement sub-processing trajectory of the adjacent sub-processing trajectory based on the trajectory characteristic parameters and the trajectory error constraint values; the trajectory processing module 60 connected to the replacement trajectory determination module 40 determines the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory.
[0109] The processing trajectory preprocessing device provided in this embodiment is applied to a processing trajectory including multiple sub-processing trajectories. According to the trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories (such as adjacent linear sub-processing trajectories), a substitute sub-processing trajectory that can be used to replace adjacent sub-processing trajectories and their trajectory connections (such as line segments and line segment corners composed of adjacent linear sub-processing trajectories of different lengths) is obtained, and the complete processing trajectory is adjusted based on the obtained substitute sub-processing trajectory, so as to obtain a preprocessing result of the processing trajectory, that is, a processing trajectory that satisfies the trajectory error and takes into account the processing feed speed. Compared with the initial processing trajectory, the adjusted processing trajectory effectively improves the trajectory smoothness at the connection of the original trajectory, and thus can maintain a larger processing feed speed at the connection of the trajectories of adjacent sub-processing trajectories, while ensuring the continuity of the speed and acceleration at the trajectory connection, improving the problem of abnormal vibration of the machine tool caused by uneven change of the trajectory curvature, thereby ensuring the laser processing accuracy while meeting the higher requirements of laser processing efficiency.
[0110] Figure 8 , is a schematic block diagram of the specific structure of the replacement trajectory determination module 40 in an embodiment.
[0111] In this embodiment, if Figure 8 As shown, the replacement trajectory determination module 40 includes a replacement graphic determination unit 420 and a substitute trajectory determination unit 440 .
[0112] The replacement graph determination unit 420 is used to construct a trajectory replacement triangle of adjacent linear sub-processing trajectories according to the trajectory starting point and the trajectory ending point.
[0113] The replacement trajectory determination unit 440 is connected to the replacement graphic determination unit 420, and is used to determine the replacement linear sub-processing trajectory according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value.
[0114] In this embodiment, each unit is used to execute Figure 2 For details of the steps in the corresponding embodiments, please refer to Figure 2 as well as Figure 2 The relevant descriptions in the corresponding embodiments are not repeated here.
[0115] Fig. 9 , which is a schematic block diagram of the specific structure of the alternative trajectory determination unit 440 in an embodiment.
[0116] In this embodiment, if Fig. 9 As shown, the alternative trajectory determining unit 440 includes a first alternative trajectory determining subunit 442 and a second alternative trajectory determining subunit 444 .
[0117] The first alternative trajectory determination subunit 442 is used to determine an alternative linear sub-processing trajectory according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value when the connection angle is a right angle or an acute angle.
[0118] The second alternative trajectory determination subunit 444 is connected to the first alternative trajectory determination subunit 442, and is used to determine the alternative linear sub-processing trajectory according to the trajectory length, the construction angle of the trajectory replacement triangle and the trajectory error constraint value when the connection angle is an obtuse angle.
[0119] In this embodiment, each unit is used to execute Figure 3 For details of the steps in the corresponding embodiments, please refer to Figure 3 as well as Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.
[0120] Fig.10 , which is a schematic block diagram of the specific structure of the trajectory processing module 60 in an embodiment.
[0121] In this embodiment, if Fig.10 As shown, the trajectory processing module 60 includes a trajectory sorting acquisition unit 620 and a trajectory processing unit 640 .
[0122] The trajectory sorting acquisition unit 620 is used to acquire trajectory sorting results of multiple alternative sub-processing trajectories.
[0123] The trajectory processing unit 640 is connected to the trajectory sorting acquisition unit 620 and is used to determine the preprocessing result of the processing trajectory according to the trajectory sorting result.
[0124] In this embodiment, each unit is used to execute Figure 6 For details of the steps in the corresponding embodiments, please refer to Figure 6 as well as Figure 6 The relevant descriptions in the corresponding embodiments are not repeated here.
[0125] Each unit in the above-mentioned embodiment is used to execute each step in the above-mentioned corresponding embodiment. Please refer to the relevant description in the above-mentioned corresponding embodiment for details, which will not be repeated here.
[0126] The division of the various modules in the above-mentioned machining trajectory preprocessing device is only for illustration. In other embodiments, the machining trajectory preprocessing device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned machining trajectory preprocessing device.
[0127] For the specific definition of the machining trajectory preprocessing device, please refer to the definition of the machining trajectory preprocessing method above, which will not be repeated here. Each module in the above-mentioned machining trajectory preprocessing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the machining equipment in the form of hardware, or can be stored in the memory in the machining equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0128] Fig.11 , is a schematic diagram of the structure of a processing device in an embodiment.
[0129] In this embodiment, if Fig.11 As shown, the processing equipment includes a memory A1 and a processor A2; it may also include a display screen A3, a communications interface (Communications Interface) and a bus. Optionally, the processing equipment may be a laser processing equipment.
[0130] Among them, the memory A1, the processor A2, the display screen A3 and the communication interface can communicate with each other through a bus; the display screen A3 is set to display the user operation interface preset in the initial setting mode, and the display screen A3 can also display the process control window; the communication interface can transmit information; the memory A1 stores a computer program, and the processor A2 can call the logical instructions in the memory A1 to execute the method in the above embodiment.
[0131] In addition, the logic instructions in the above-mentioned memory A1 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent workpiece.
[0132] The memory A1 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present application. The processor A2 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory A1, that is, implementing the methods in the above embodiments.
[0133] The memory A1 includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory A1 can include a high-speed random access memory and a non-volatile memory.
[0134] Processor A2 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0135] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to execute the method in the above embodiment.
[0136] The embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the method in the above embodiment.
[0137] The machining trajectory preprocessing method, device, machining equipment and readable storage medium provided in the above embodiments are applied to a machining trajectory including multiple sub-machining trajectories. According to the trajectory characteristic parameters and trajectory error constraint values of adjacent sub-machining trajectories (such as adjacent linear sub-machining trajectories), a substitute sub-machining trajectory that can be used to replace adjacent sub-machining trajectories and their trajectory junctions (such as line segments and line segment corners composed of adjacent linear sub-machining trajectories of different lengths) is obtained, and the complete machining trajectory is adjusted based on the obtained substitute sub-machining trajectory, so as to obtain a preprocessing result of the machining trajectory, that is, a machining trajectory that satisfies the trajectory error and takes into account the machining feed speed. Compared with the initial machining trajectory, the adjusted machining trajectory effectively improves the trajectory smoothness at the junction of the original trajectory, and thus can maintain a larger machining feed speed at the junction of the adjacent sub-machining trajectories, while ensuring the continuity of the speed and acceleration at the trajectory junction, thereby improving the problem of abnormal vibration of the machine tool caused by uneven changes in the trajectory curvature, thereby ensuring the laser machining accuracy while meeting the higher requirements of laser machining efficiency, and has important economic value and promotion and practical value.
[0138] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0139] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A machining trajectory preprocessing method, applied to a machining trajectory including a plurality of sub-machining trajectories, characterized in that: include: Acquiring trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories; Based on the trajectory characteristic parameters and the trajectory error constraint value, determining a replacement sub-processing trajectory of the adjacent sub-processing trajectory, the replacement sub-processing trajectory is used to replace the adjacent sub-processing trajectory and the trajectory connection portion formed by the adjacent sub-processing trajectory; According to the replacement sub-processing trajectory, a preprocessing result of the processing trajectory is determined.
2. The machining trajectory preprocessing method according to claim 1, characterized in that: The obtaining of the trajectory characteristic parameters and trajectory error constraint values of the adjacent sub-processing trajectories specifically comprises: obtaining the trajectory length, trajectory characteristic points and trajectory error constraint values of the adjacent sub-processing trajectories; The step of determining a replacement sub-processing trajectory adjacent to the sub-processing trajectory based on the trajectory feature parameter and the trajectory error constraint value comprises: Determining a characteristic structural graph of adjacent sub-processing trajectories according to the trajectory characteristic points; The alternative sub-processing trajectory is determined according to the trajectory length, the trajectory feature points, the feature construction graph and the trajectory error constraint value.
3. The machining trajectory preprocessing method according to claim 2, characterized in that: The trajectory feature points include a trajectory starting point and a trajectory ending point, and the step of determining the feature construction graph of the adjacent sub-processing trajectory according to the trajectory feature points includes: Constructing a trajectory replacement triangle of adjacent linear sub-processing trajectories according to the trajectory starting point and the trajectory ending point; The step of determining the alternative sub-processing trajectory according to the trajectory length, the trajectory feature points, the feature construction graph and the trajectory error constraint value comprises: An alternative linear sub-machining trajectory is determined according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value.
4. The machining trajectory preprocessing method according to claim 3, characterized in that: The step of determining a replacement linear sub-processing trajectory according to the trajectory length, the trajectory starting point, the trajectory ending point, the trajectory replacement triangle and the trajectory error constraint value comprises: Determining the connection angle between adjacent sub-processing trajectories according to the trajectory length, the trajectory starting point and the trajectory ending point; The alternative linear sub-machining trajectory is determined according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value.
5. The machining trajectory preprocessing method according to claim 4, characterized in that: The step of determining the alternative linear sub-processing trajectory according to the connection angle, the trajectory length, the trajectory replacement triangle and the trajectory error constraint value comprises: When the connection angle is a right angle or an acute angle, the alternative linear sub-processing trajectory is determined according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value; When the connection angle is an obtuse angle, the alternative linear sub-machining trajectory is determined according to the trajectory length, the construction side of the trajectory replacement triangle, the construction angle of the trajectory replacement triangle and the trajectory error constraint value.
6. The machining trajectory preprocessing method according to claim 5, characterized in that: The step of determining the alternative linear sub-processing trajectory according to the trajectory length, the construction side of the trajectory replacement triangle and the trajectory error constraint value comprises: Acquire a first numerical comparison relationship between the minimum value of the trajectory length and the trajectory error constraint value; The replacement linear sub-processing trajectory is determined according to the first numerical comparison relationship and the construction side of the trajectory replacement triangle.
7. The machining trajectory preprocessing method according to claim 5, characterized in that: The step of determining the alternative linear sub-processing trajectory according to the trajectory length, the construction side of the trajectory replacement triangle, the construction angle of the trajectory replacement triangle and the trajectory error constraint value comprises: Obtaining a target construction angle of the trajectory replacement triangle corresponding to the maximum value of the trajectory length; Determine, according to the target configuration angle and the trajectory length, a second numerical comparison relationship between a product of the target configuration angle and a minimum value of the trajectory length and the trajectory error constraint value; The replacement linear sub-processing trajectory is determined according to the second numerical comparison relationship and the construction side of the trajectory replacement triangle.
8. A processing trajectory preprocessing device, applied to a processing trajectory including a plurality of sub-processing trajectories, characterized in that: include: A parameter acquisition module, used to acquire trajectory characteristic parameters and trajectory error constraint values of adjacent sub-processing trajectories; A replacement trajectory determination module, connected to the parameter acquisition module, for determining a replacement sub-processing trajectory adjacent to the sub-processing trajectory based on the trajectory characteristic parameter and the trajectory error constraint value; The trajectory processing module is connected to the replacement trajectory determination module and is used to determine the preprocessing result of the processing trajectory according to the replacement sub-processing trajectory.
9. A processing equipment, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Spline track control instruction optimization method based on double-code joint effect
CN111487927A
Equal-error tool path generation method for five-axis machining of parametric curved surface flat-bottomed cutter
CN112987647A
Local smoothing method for five-axis numerical control track based on B-spline curve
CN115616977A
Track determination method and device, electronic equipment and medium
CN115790632A
Corner transition curve construction method and device, processing equipment and readable storage medium
CN117245207A
