A multi-mode tool compensation method for a die cutter
By using a multi-mode tool compensation method for die-cutting machines, the problem of insufficient cutting accuracy caused by tool center coordinate deviation is solved, achieving an efficient and precise cutting process, improving the automation and production efficiency of die-cutting machines, with strong adaptability, and reducing manual intervention and equipment wear.
Patent Information
- Application Number
- CN202510870705.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2045-06-26
AI Technical Summary
During the cutting process, the center coordinates of the cutting tool deviate from the actual cutting position, resulting in insufficient cutting accuracy and low production efficiency. Traditional manual adjustment methods are inefficient and inconsistent, making it difficult to meet the requirements of high precision and high consistency.
A multi-mode tool compensation method is adopted. By acquiring the contour point set of the graphic file to be cut, the tool compensation mode is determined, and the compensation parameters are calculated based on the tool radius. The cutting task is performed using the motion control system of the die-cutting machine, including tool lifting compensation, tool dropping compensation, tool forward compensation, and tool rotation compensation.
It improves the automation level and cutting accuracy of die-cutting machines, reduces manual intervention, lowers operational errors and production costs, enhances product consistency and production efficiency, adapts to the cutting needs of different materials and complex patterns, reduces equipment vibration and wear, and extends the service life of cutting tools.
Smart Images

Figure CN120422301B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of die-cutting machines, in particular to a multi-mode tool compensation method for a die-cutting machine. BACKGROUND
[0002] In modern manufacturing, die-cutting machines are widely used in packaging, printing, electronics and other industries as a high-efficiency and precise cutting tool. However, in the actual working process of die-cutting machines, there is often a certain deviation between the tool center coordinates and the actual cutting position. This deviation not only affects the integrity of the cutting, but also may lead to insufficient cutting accuracy, thereby affecting the quality and production efficiency of the final product.
[0003] Traditional die-cutting machine adjustment methods mainly rely on manual operation, which corrects the tool position through visual observation and manual adjustment. This method is not only inefficient, but also has significant shortcomings in repeatability and accuracy, which can easily lead to increased cutting errors and production waste. In addition, manual adjustment may also result in inconsistent cutting results due to differences in the experience and skills of the operators, making it difficult to meet the requirements of high precision and high consistency. SUMMARY
[0004] The technical problem to be solved by the present application is to overcome the shortcomings of the prior art and provide a multi-mode tool compensation method for a die-cutting machine.
[0005] The technical solution adopted to solve the above technical problems is a multi-mode tool compensation method for a die-cutting machine, comprising:
[0006] Obtaining a cutting pattern file, obtaining the contour point set of the cutting pattern, and saving the contour point set of each cutting pattern in the cutting pattern file as an original contour set in order;
[0007] Determining a tool compensation mode according to the original contour set, wherein the tool compensation mode includes lift compensation, drop compensation, forward compensation, and rotary compensation;
[0008] Obtaining the tool radius of the die-cutting machine, determining the compensation parameters of the tool compensation mode according to the tool radius, and determining the compensation path according to the compensation parameters;
[0009] The motion control system of the die-cutting machine performs a cutting task according to the compensation path.
[0010] Preferably, the cutting pattern file includes at least one cutting pattern; the contour point set includes at least one contour point; and the original contour set includes at least one original contour, wherein the original contour includes at least one contour point set.
[0011] Preferably, determining a tool compensation mode according to the original contour set comprises:
[0012] traversing each contour point in the contour point set, respectively calculating a first included angle between the original contour between adjacent contour points and the original contour between the next adjacent contour points;
[0013] obtaining a supplementary angle corresponding to the first included angle to obtain a corner set corresponding to the contour point set;
[0014] traversing each corner in the corner set, comparing the corner with a preset minimum compensation angle respectively, if the corner is greater than the preset minimum compensation angle, determining that the contour point needs to be compensated by a rotary knife.
[0015] Preferably, the tool compensation mode is determined according to the original contour set, further comprising:
[0016] when the cutting end point is the path end point of the cutting path, determining that the tool compensation mode is a knife lifting compensation;
[0017] when the front cutting segment and the current cutting segment in the cutting path are discontinuous, determining that the tool compensation mode is a knife lifting compensation;
[0018] when the start point of the cutting segment is the start point of the continuous cutting segment, determining that the tool compensation mode is a knife falling compensation;
[0019] when the included angle between the current cutting segment and the cutting segment is greater than 2 degrees, determining that the tool compensation mode is a knife following compensation.
[0020] Preferably, the compensation parameters of the tool compensation mode are determined according to the tool radius, comprising:
[0021] when a corner point is encountered in the cutting process, taking the length of the tool radius to calculate the start point coordinate, and taking the length of the tool radius to calculate the end point coordinate;
[0022] determining the distance change amount between the start point and the end point and the corner point respectively;
[0023] determining a second included angle between the original contour and the horizontal coordinate between the start point and the corner point according to the arctangent formula through the distance change amount;
[0024] determining a third included angle between the original contour and the horizontal coordinate between the end point and the corner point according to the arctangent formula through the distance change amount;
[0025] normalizing the second included angle and the third included angle according to the distance change amount between the start point and the corner point to obtain a standard second included angle and a standard third included angle;
[0026] If the standard second included angle is greater than the standard third included angle, the rotation angle compensation angle of the rotary tool compensation is the standard second included angle minus the standard third included angle, and the current compensation direction is a clockwise direction;
[0027] If the standard second included angle is not greater than the standard third included angle, the rotation angle compensation angle of the rotary tool compensation is the standard third included angle minus the standard second included angle, and the current compensation direction is an anticlockwise direction.
[0028] Preferably, the compensation path is determined according to the compensation parameters, and the compensation path comprises:
[0029] The starting point is taken as a compensation point, and a point is taken on a compensation curve from the starting point to a rotary tool end point in a compensation direction according to a preset discrete angle to obtain a compensation point set;
[0030] When the compensation direction is a clockwise direction, a first ray direction is generated according to the preset discrete angle and the compensation angle, and when the compensation direction is an anticlockwise direction, a second ray direction is generated according to the preset discrete angle and the compensation angle.
[0031] Preferably, the compensation path is determined according to the compensation parameters, and the compensation path further comprises:
[0032] The first ray direction and the second ray direction are brought into a preset compensation curve to obtain ray equation parameter coefficients;
[0033] The ray equation parameter coefficients are brought into a preset ray equation to obtain compensation contour points, the compensation contour points are sequentially stored in the compensation point set in order, the end point is stored in the compensation point set to obtain a compensation point set of the current contour point, and the attribute of the compensation point set is judged.
[0034] Preferably, the compensation path is determined according to the compensation parameters, and the compensation path further comprises:
[0035] If there is a first contour point and a compensation point between which an original contour length is less than a tool radius, the first contour point on the original contour between the first contour point and the compensation point is deleted;
[0036] After the compensation contour points in the rotary tool compensation point set are stored after the current contour point, the rotary tool compensation point set is emptied after all the compensation contour points are stored;
[0037] The position of the contour point is the center position of the tool, and when the tool performs a cutting task, the position of completing cutting is a tool tip. A tool radius is introduced as a tool compensation radius. A lifting tool compensation path is taken in the direction of the original contour between a previous original end point and an original end point to obtain a first actual coordinate point under the premise of the original end point.
[0038] Preferably, the compensation path is determined according to the compensation parameters, and the compensation path further comprises:
[0039] If the angle between the current cutting segment and the cutting segment is greater than 2 degrees when the tool finishes the tool-lifting compensation at the end point of the previous contour point set and cuts at the start point of the current contour point set, the tool-advancing compensation is performed;
[0040] The tool-advancing start point is calculated along the direction of the end point and the compensated end point of the tool-lifting compensation from the start point of the current contour point set and the next contour point;
[0041] The tool-advancing end point is calculated along the direction of the next contour point of the current contour point set from the start point of the current contour point set and the next contour point of the current contour point set;
[0042] The slope of the perpendicular line in the direction of the end point and the compensated end point of the previous contour point set is calculated according to the end point and the compensated end point of the previous contour point set, and the slope of the perpendicular line in the direction of the start point and the next contour point of the current contour point set is calculated according to the start point and the next contour point of the current contour point set.
[0043] Preferably, the compensation path is determined according to the compensation parameter, and the method further comprises:
[0044] The tool-lowering compensation path is obtained by taking the length of the tool-lowering compensation from the start point of the current contour point set to the next contour point of the start point;
[0045] It is judged whether the start point of the current contour point set is a corner point, if yes, the turning compensation point set and the start point added to the current contour point set at the start point of the current contour point set are deleted, otherwise, only the start point of the current contour point set is deleted, the compensation contour points in the tool-advancing compensation point set are stored in the next contour point of the current contour point set, and the tool-advancing compensation point set is emptied after all the compensation contour points are stored.
[0046] The beneficial effects of the present application are as follows: (1) The present application not only improves the automation level of the die cutting machine, but also significantly improves the cutting precision and production efficiency, reduces the operation errors and production cost by reducing the manual intervention, and improves the consistency and reliability of the product, in addition, the system has good adaptability and flexibility, which can adapt to the cutting demand of different materials and complex patterns, and provides a new solution for the intelligentization and automation of the die cutting machine; (2) The present application reduces the pause and adjustment time in the cutting process through the automatic compensation algorithm, reduces the additional wear of the cutter through accurate compensation, optimizes the cutting path and motion control through the algorithm, and reduces the equipment vibration and impact; (3) The present application significantly improves the cutting precision, avoids the incomplete cutting or error caused by the deviation of the cutter center and the cutter tip, has strong adaptability, can cope with different cutting demands (such as straight line, curve, corner, etc.), improves the universality of the equipment, reduces the manual intervention, reduces the operation difficulty, improves the production efficiency, ensures the continuity and stability of the cutting process, avoids the precision decline caused by the cutter wear or replacement, prolongs the service life of the cutter, and reduces the equipment maintenance cost. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 A step flow diagram of the overall method in an embodiment proposed by the present application is shown in the figure;
[0048] Figure 2 A cutter compensation flow chart in an embodiment proposed by the present application is shown in the figure;
[0049] Figure 3 A file example diagram in an embodiment proposed by the present application is shown in the figure;
[0050] Figure 4 A rotary cutter compensation principle diagram in an embodiment proposed by the present application is shown in the figure;
[0051] Figure 5 A die cutting machine cutter sectional view in an embodiment proposed by the present application is shown in the figure;
[0052] Figure 6 A knife lifting compensation principle diagram in an embodiment proposed by the present application is shown in the figure;
[0053] Figure 7 A knife lifting compensation principle diagram in an embodiment proposed by the present application is shown in the figure;
[0054] Figure 8 A knife lifting compensation principle diagram in an embodiment proposed by the present application is shown in the figure;
[0055] Figure 9 A knife lifting compensation principle diagram in an embodiment proposed by the present application is shown in the figure. DETAILED DESCRIPTION
[0056] Embodiment one, asFigures 1-2 As shown in the figure, a multi-mode tool compensation method for a die-cutting machine proposed by the present invention includes:
[0057] S1. Obtain the graphic file to be cut, obtain the contour point set of the graphic to be cut, and save the contour point sets of each graphic to be cut in the graphic file to be cut as the original contour sets in sequence;
[0058] S2. Determine the tool compensation mode according to the original contour sets, where the tool compensation mode includes lift tool compensation, down tool compensation, forward tool compensation, and turning tool compensation;
[0059] S3. Obtain the tool radius of the die-cutting machine, determine the compensation parameters of the tool compensation mode according to the tool radius, and determine the compensation path according to the compensation parameters;
[0060] S4. The motion control system of the die-cutting machine performs the cutting task according to the compensation path.
[0061] In the present invention, the original contour points are obtained in groups. As Figure 3 shown, all contour points are obtained from the imported graphic file to be cut (such as PLT, DXF, PDF, etc. formats), duplicate points are deleted, and the point sets of each group of graphics in one file are saved as the original contour sets L = {L1, L2,..., L , ,
[0065] ,
[0066] ,..., L n}, (0 < i ≤ n) in each original contour set L i = {P1, P2,..., P t ,..., P m}, (0 < t ≤ m).
[0062] Embodiment 2. As Figures 3-9 shown, a multi-mode tool compensation method for a die-cutting machine proposed by the present invention further includes, compared with Embodiment 1: the graphic file to be cut includes at least one graphic to be cut; the contour point set includes at least one contour point; the original contour set includes at least one original contour, where the original contour includes at least one contour point set.
[0063] In an optional embodiment, determining the tool compensation mode according to the original contour sets includes:
[0064] A1. Traverse each contour point in the contour point set, and calculate the first included angle between the original contour between adjacent contour points and the original contour between the next adjacent contour points respectively;
[0065] A2. Obtain the supplementary angle corresponding to the first included angle to obtain the rotation angle set corresponding to the contour point set;
[0066] A3. Traverse each corner in the corner set, compare each corner with a preset minimum compensation angle respectively. If the corner is greater than the preset minimum compensation angle, it is determined that the contour point requires tool change compensation.
[0067] It should be noted that for the i corner points of L i to perform tool change compensation. Starting from t = 1, traverse the contour points P t in the point set L t-1 P t and P t P t+1 to calculate the included angle between P t-1 and P m (when t = 1, P t = P m ), and record the supplementary angle of this included angle as the corner α t of P i . Traverse the corners α = {α1, α2,..., α t ,..., α m} in L<000002 / > (0 < t ≤ m), compare them with the minimum compensation angle θ (the minimum angle required for tool change compensation calculation) respectively. If α t > θ, the contour point P t requires tool change compensation calculation.
[0068] In an optional embodiment, determining the tool compensation mode according to the original contour set further includes:
[0069] A4. When the cutting end point is the path end point of the cutting path, determine that the tool compensation mode is lift tool compensation;
[0070] A5. When the previous cutting segment and the current cutting segment in the cutting path are discontinuous, determine that the tool compensation mode is lift tool compensation;
[0071] A6. When the starting point of the cutting segment is the starting point of the continuous cutting segment, determine that the tool compensation mode is down tool compensation;
[0072] A7. When the cutting segment is a straight line or an arc with a preset radius, and the included angle between the current previous cutting segment and the cutting segment is greater than 2 degrees, determine that the tool compensation mode is clockwise tool compensation.
[0073] In an optional embodiment, determining the compensation parameters of the tool compensation mode according to the tool radius includes:
[0074] B1. When encountering a corner point during the cutting process, take the length of the tool radius to calculate the starting point coordinates and take the length of the tool radius to calculate the ending point coordinates;
[0075] B2. Determine the distance change amount between the starting point and the ending point and the corner point respectively;
[0076] B3. Determine the second angle between the original contour and the horizontal coordinate between the starting point and the turning point using the arctangent formula and the distance change;
[0077] B4. Determine the third angle between the original contour and the horizontal coordinate between the endpoint and the turning point using the arctangent formula and the distance change.
[0078] B5. Normalize the second and third included angles based on the change in distance between the starting point and the turning point to obtain the standard second included angle and the standard third included angle.
[0079] B6. If the standard second included angle is greater than the standard third included angle, then the corner compensation angle of the tool rotation compensation is the standard second included angle minus the standard third included angle, and the current compensation direction is clockwise.
[0080] B7. If the standard second included angle is not greater than the standard third included angle, then the corner compensation angle of the tool rotation compensation is the standard third included angle minus the standard second included angle, and the current compensation direction is counterclockwise.
[0081] It should be noted that, by Figure 4 As shown, when encountering a corner point P during the cutting process... t (x t ,y t At that time, along The direction is taken as the length of the tool radius r to calculate the starting point G of the tool rotation. t ' (x G0 ,y G0 Coordinates, along The direction is taken as the length of the tool radius r to calculate the end point G of the tool rotation. t (x) G1 ,y G1 Coordinates, based on P t and G t ' The coordinates can be calculated The slope of the perpendicular is m G0 According to P t and F t The coordinates can be calculated The slope of the perpendicular is m G1 :
[0082]
[0083]
[0084] Taking the above example of the tool turning point as an example, calculate P. t (x t ,y t The angle α of the rotation tAnd the compensation direction, the specific steps are as follows:
[0085] The distance variation of the turning knife starting point and the turning knife ending point from the turning angle point is calculated:
[0086]
[0087] The inverse tangent formula is used to obtain And The angles ε0 and ε1 with the horizontal coordinate:
[0088]
[0089] The obtained angle ε0 and angle ε1 are respectively judged to be constrained in the range of [0, 2π]. The specific steps are as follows: when dx j is greater than zero and ε j is less than zero, ε j = ε j + 2π, when dx j is less than zero, ε j = ε j + π, when dx j is equal to zero, it is judged whether dy j is greater than zero, if yes, ε j = π / 2, otherwise, ε j = 3π / 2, and the rest of the cases ε j does not change.
[0090] The angles ε0 and ε1 are judged, if ε0> ε1, define α t = ε0-ε1 and the current compensation direction is clockwise, if ε0< ε1, define α t = ε1-ε0 and the current compensation direction is counterclockwise.
[0091] In an optional embodiment, the compensation path is determined according to the compensation parameters, comprising:
[0092] C1, taking the starting point as a compensation point, and taking points on the compensation curve from the starting point to the turning knife ending point along the compensation direction according to the preset discrete angle to obtain a compensation point set;
[0093] C2, when the compensation direction is clockwise, generating a first ray direction according to the preset discrete angle and the compensation angle, and when the compensation direction is counterclockwise, generating a second ray direction according to the preset discrete angle and the compensation angle.
[0094] It should be noted that the third Hermite interpolation polynomial curve fitting point method based on Lagrange interpolation base function. According to the principle that the function value is the same and the first derivative value remains unchanged at the node of the function curve, the basic idea of the third Hermite interpolation polynomial curve fitting method based on Lagrange interpolation base function is to construct the base function as follows:
[0095] h i (x),g i (x),i=0,1
[0096] H3(x)=y0h0(x)+y1h1(x)+m0g0(x)+m1g1(x)
[0097] Satisfy the constraint condition:
[0098] H3(x0)=y0,H3(x1)=y1,H′3(x0)=m0,H′3(x1)=m1
[0099] Where, h i (x) and g i (x) satisfy the corresponding function value and derivative condition at the interpolation node:
[0100] h0(x0)=1 h0(x1)=0 h′0(x0)=0 h′0(x1)=0
[0101] h1(x0)=0 h1(x1)=1 h1(x0)=0 h1(x1)=0
[0102] g0(x0)=0 g0(x1)=0 g′0(x0)=1′g′0(x1)=0
[0103] g1(x0)=0 g1(x1)=0 g′1(x0)=0 g′1(x1)=1
[0104] Therefore, construct:
[0105] h0(x)=(x-x1) 2 (ax+b)
[0106] h0(x0)=1,h′0(x0)=0
[0107] Can be obtained:
[0108]
[0109] Put h0(x) is obtained. Similarly, we can get:
[0110]
[0111] Therefore, there is a cubic Hermite interpolation polynomial:
[0112]
[0113] The compensation point selection is completed using the fixed step size method based on the compensation curve H3(x). Taking tool rotation compensation point selection as an example, the specific steps are as follows:
[0114] First, create a set of compensation points, starting from point G. t 'Add compensation point set, and start from the starting point G according to the set discrete angle Δθ (the optimal angle for tool compensation).' t '(x G0 ,y G0 ) Along the compensation direction to the endpoint G t (x) G1 ,y G1 Take a point on the compensation curve H3(x).
[0115] For the clockwise compensation direction, each angle θ w =α t -w·Δθ(w=1,2,..,w max The generated ray direction, for the counterclockwise compensation direction, is determined by each angle θ. w =α t +w·Δθ(w=1,2,..,w max The direction of the generated ray, as required, is as follows:
[0116] α t -Δθ≤w max ·Δθ<α t
[0117] w max ∈Z +
[0118] We can obtain:
[0119]
[0120] w max ∈Z +
[0121] According to the ray equation S = P t +s·(cosθ w sinθ w We can obtain:
[0122]
[0123] Substitute the values into the compensation curve H3(x) to solve for w = 1, 2, ..., w max The parameter coefficients s of the ray equation at that time wSubstituting back into the parametric equations yields the compensated contour points (x). G(w+1) ,y G(w+1) (w=1,2,..,w) max ), store the points sequentially into the compensation point set, and finally store the endpoint G. t "Store into the compensation point set to obtain the current contour point P" t The set of compensation points.
[0124] In an optional embodiment, determining the compensation path based on compensation parameters further includes:
[0125] C3. Substitute the directions of the first and second rays into the preset compensation curve to obtain the parameter coefficients of the ray equation;
[0126] C4. Substitute the parameter coefficients of the ray equation into the preset ray equation to obtain the compensation contour points. Store the compensation contour points into the compensation point set in sequence, and store the endpoint into the compensation point set to obtain the compensation point set of the current contour point. Determine the attributes of the compensation point set.
[0127] In an optional embodiment, determining the compensation path based on compensation parameters further includes:
[0128] C5. If the original contour length between the first contour point and the compensation point is less than the tool radius, then delete the first contour point on the original contour between the first contour point and the compensation point.
[0129] C6. After storing all the compensation contour points in the tool compensation point set into the current contour point, clear the tool compensation point set.
[0130] C7. The position of the contour point is the center position of the tool. When the tool performs the cutting task, the cutting position is the tool tip. The tool radius is introduced as the tool compensation radius. Under the premise of the original endpoint, the length of the tool compensation amount is taken along the original contour direction between the previous original endpoint and the original endpoint to make the tool lifting compensation path, so as to obtain the first actual coordinate point.
[0131] It should be noted that the tool rotation compensation point set is integrated and stored in L. i .like Figure 4 As shown, if a contour point F exists t+k Make |P t F t+k If the length is less than the tool radius r, then delete it. Contour point F t+k The compensation contour points (x) in the tool change compensation point set G(w+1) ,y G(w+1) (w=1,2,..,w) max Store the current contour point P. t Afterwards, all data is stored and the tool rotation compensation point set is cleared; for L...i The lifting point is used for lifting compensation. Figure 5 As shown in the diagram, the contour point position obtained during file reading is the center position O of the tool. However, when the tool performs the cutting task, the cutting point is at the tool tip A. Therefore, the tool radius r is introduced as the tool radius. Thus, from... Figure 6 As shown, the tool lifting compensation is performed at the original endpoint P. m (x m ,y m (Premise lower edge) Directional tool offset (x) r ,y r The length of the tool lifting compensation path is used to obtain the actual coordinate point P. m+1 (x m +x r ,y m +y r ).
[0132] In an optional embodiment, determining the compensation path based on compensation parameters further includes:
[0133] C8. When the tool performs cutting at the starting point of the current contour point set after completing tool lifting compensation at the end point of the previous contour point set, if the angle between the previous cutting segment and the cutting segment is greater than 2 degrees, then tool straightness compensation is performed.
[0134] C9. Take the endpoint and post-compensation endpoint of the previous contour point set to complete the tool lifting compensation. Take the starting point and next contour point of the current contour point set. Calculate the tool radius along the direction of the endpoint and post-compensation endpoint of the tool lifting compensation from the starting point of the current contour point set and take the starting point of the tool cut.
[0135] C10. Calculate the tool radius along the starting point of the current contour point set and the direction of the next contour point in the current contour point set, and take the endpoint of the cut.
[0136] C11. Calculate the slope of the perpendicular line from the endpoint of the previous contour point set to the endpoint after compensation, based on the endpoint of the previous contour point set and the endpoint after compensation. Calculate the slope of the perpendicular line from the starting point of the current contour point set to the next contour point, based on the starting point of the current contour point set and the next contour point.
[0137] It should be noted that, regarding L i The lifting point is used for lifting compensation. Figure 5 As shown in the diagram, the contour point position obtained during file reading is the center position O of the tool. However, when the tool performs the cutting task, the cutting point is at the tool tip A. Therefore, the tool radius r is introduced as the tool radius. Thus, from... Figure 6 As shown, the tool lifting compensation is performed at the original endpoint P. m (x m ,y m (Premise lower edge) Directional tool offset (x) r ,y r The length of the tool lifting compensation path is used to obtain the actual coordinate point P. m+1 (x m +x r ,y m +y r ); for cutting tools in L i-1 The endpoint P m After completing the weapon lifting compensation, in L i When cutting from starting point P1, the cutting directions of the front and rear tools are different, requiring compensation for the direction of cut. For example... Figure 7 As shown, take L i-1 The endpoint P of completing the knife-lift compensation m and the compensated endpoint P m+1 Take L i Calculate the starting point P1(x1,y1) and the next contour point D, and then proceed along the contour from point P1. The length of the tool radius r is calculated by taking the start point Q of the clockwise direction. ' (x Q0 ,y Q0 ),along The direction calculation of the tool radius r is taken as the length of the cutter endpoint Q (x). Q1 ,y Q1 According to L i-1 P m and P m+1 Coordinates can be calculated The slope of the perpendicular line in the direction is m Q0 According to L i The P1 and D coordinates can be calculated The slope of the perpendicular line in the direction is m Q1 :
[0138]
[0139] The current cut angle δ and compensation direction are calculated using the method for calculating the rotation angle α and compensation direction. The magnitude of δ is then determined. If δ > Δθ, proceed to step 3 to complete the cut compensation calculation according to the current requirements, store the cut compensation point set, and proceed to step 9. If Δθ ≥ δ > 2°, curve fitting is not performed, and the cut starting point Q is... ' (x Q0 ,y Q0 ) and the end point of the knife Q" (x Q1 ,y Q1 Store the cut-and-forward compensation point set; if δ≤2°, then no cut-and-forward compensation is performed.
[0140] Where, for L={L1,L2,...,L i ,...,L n} (0 < i ≤ n), where the L1, L2 point sets or L n-1 , L n The point set may be a Mark contour point set (a contour point set without tool compensation). When performing a forward tool compensation to find L i-1 The end point P of the tool lift compensation is completed for the point set m And the end point P after compensation m+1 When, if L is recognized i-1 The point set attribute is a Mark contour point set, then continue to search forward. If i - 1 = 0, then set i = n and continue to search until the original contour point set attribute found is not a Mark contour point set.
[0141] In an optional embodiment, determining a compensation path according to compensation parameters further includes:
[0142] C12. Perform a tool feed compensation path by taking the length of the tool compensation amount in the direction of the next contour point from the starting point of the current contour point set to obtain a second actual coordinate point;
[0143] C13. Determine whether the starting point of the current contour point set is a corner point. If so, delete the tool change compensation point set and the starting point added to the current contour point set at the starting point of the current contour point set. Otherwise, only delete the starting point of the current contour point set. Store the compensated contour points in the tool path compensation point set before the next contour point in the current contour point set. After all are stored, clear the tool change compensation point set.
[0144] It should be noted that tool feed compensation is performed for the starting point of L i . As shown by Figure 8 , the tool feed compensation is to take the length of the tool compensation amount (x , y r , y r ) in the direction of ’ to perform a tool feed compensation path with the original starting point being P1(x1, y1), obtaining the actual coordinate point P r 1(x1 + x r ), y1 + y i . Integrate the tool path compensation point set and store it in L i . Determine whether the starting point P1 of the point set L Figure 9 is a corner point. If so, as shown by i , delete the tool change compensation point set and the contour point P1 added to the point set L Q(w+1) , y Q(w+1) )(w = 1, 2,.., w max ) of the compensated contour points in the tool path compensation point set before the inner contour point D of the point set L i . After all are stored, clear the tool change compensation point set.
[0145] The embodiments of the present application are described in detail above with reference to the accompanying drawings, but the present application is not limited to the embodiments, and various changes can be made by those skilled in the art within the scope of knowledge acquired from the present disclosure, without departing from the spirit of the present application.
Claims
1. A multi-mode tool compensation method for a die-cutting machine, characterized in that, include: Obtain the graphic file to be cut, obtain the contour point set of the graphic to be cut, and save the contour point set of each graphic to be cut in the graphic file to be cut as the original contour set in order. The tool compensation mode is determined based on the original contour set, wherein the tool compensation mode includes tool lifting compensation, tool dropping compensation, tool clearing compensation, and tool turning compensation; Obtain the tool radius of the die-cutting machine, determine the compensation parameters of the tool compensation mode based on the tool radius, and determine the compensation path based on the compensation parameters; The motion control system of the die-cutting machine performs the cutting task according to the compensation path; Determining the tool compensation mode based on the original contour set includes: Traverse each contour point in the contour point set and calculate the first included angle between the original contours between adjacent contour points and between the original contours of the next adjacent contour point. Obtain the supplementary angle corresponding to the first included angle to obtain the set of corners corresponding to the set of contour points; Traverse each corner in the set of corners and compare each corner with a preset minimum compensation angle. If the corner is greater than the preset minimum compensation angle, then it is determined that the contour point needs to be compensated by tool turning. Determining the tool compensation mode based on the original contour set also includes: When the cutting endpoint is the end point of the cutting path, the tool compensation mode is determined to be tool lifting compensation. If the previous cutting segment and the current cutting segment in the cutting path are not continuous, the tool compensation mode is determined to be tool lifting compensation. When the starting point of the cutting segment is the starting point of the continuous cutting segment, the tool compensation mode is determined to be drop compensation. If the angle between the current cutting segment and the current cutting segment is greater than 2 degrees, then the tool compensation mode is determined to be straight-cut compensation. The compensation parameters for the tool compensation mode are determined based on the tool radius, including: When encountering a corner point during the cutting process, the starting coordinates are calculated by taking the length of the tool radius, and the ending coordinates are calculated by taking the length of the tool radius. Determine the changes in distance between the starting point and the ending point and the turning point, respectively; The second angle between the original contour and the horizontal coordinate between the starting point and the turning point is determined by the distance change using the arctangent formula. The third angle between the original contour and the horizontal coordinate between the endpoint and the turning point is determined by the distance change using the arctangent formula. The second included angle and the third included angle are normalized based on the change in distance between the starting point and the turning point to obtain standard second included angle and standard third included angle; If the standard second included angle is greater than the standard third included angle, then the rotation angle of the tool compensation is the standard second included angle minus the standard third included angle, and the current compensation direction is clockwise. If the standard second included angle is not greater than the standard third included angle, then the rotation angle of the tool compensation is the standard third included angle minus the standard second included angle, and the current compensation direction is counterclockwise. Determining the compensation path based on the compensation parameters includes: Using the starting point as the compensation point, points are taken on the compensation curve from the starting point along the compensation direction to the end point of the cutter according to the preset discrete angle, so as to obtain the compensation point set. When the compensation direction is clockwise, a first ray direction is generated based on a preset discrete angle and the compensation angle; when the compensation direction is counterclockwise, a second ray direction is generated based on a preset discrete angle and the compensation angle. Determining the compensation path based on the compensation parameters also includes: Substitute the first ray direction and the second ray direction into a preset compensation curve to obtain the ray equation parameter coefficients; The ray equation parameter coefficients are substituted into the preset ray equation to obtain the compensation contour points. The compensation contour points are then stored sequentially into the compensation point set. The endpoint is also stored into the compensation point set to obtain the compensation point set for the current contour point. The attributes of the compensation point set are then determined.
2. The multi-mode tool compensation method for a die-cutting machine according to claim 1, characterized in that, The graphic file to be cut includes at least one graphic to be cut; the contour point set includes at least one contour point; the original contour set includes at least one original contour, wherein the original contour includes at least one contour point set.
3. The multi-mode tool compensation method for a die-cutting machine according to claim 2, characterized in that, Determining the compensation path based on the compensation parameters also includes: If the original contour length between the first contour point and the compensation point is less than the tool radius, then delete the first contour point on the original contour between the first contour point and the compensation point. After storing all the compensation contour points in the tool compensation point set into the current contour point, clear the tool compensation point set. The position of the contour point is the center position of the tool. When the tool performs the cutting task, the cutting point is the tool tip. The tool radius is introduced as the tool compensation radius. Under the premise of the original endpoint, the length of the tool compensation amount is taken along the original contour direction between the previous original endpoint and the original endpoint to make the tool lifting compensation path, so as to obtain the first actual coordinate point.
4. The multi-mode tool compensation method for a die-cutting machine according to claim 3, characterized in that, Determining the compensation path based on the compensation parameters also includes: When the tool completes tool lifting compensation at the end of the previous contour point set and cuts at the beginning of the current contour point set, if the angle between the previous cutting segment and the current cutting segment is greater than 2 degrees, then tool straightness compensation is performed. Take the endpoint and post-compensation endpoint of the previous contour point set to complete the tool lifting compensation. Take the starting point and next contour point of the current contour point set. Calculate the tool radius and take the start point of the cutter flow from the starting point of the current contour point set along the direction of the endpoint and post-compensation endpoint of the tool lifting compensation. Calculate the tool radius along the direction of the starting point of the current contour point set and the next contour point of the current contour point set, and take the endpoint of the cutter run; Calculate the slope of the perpendicular line from the endpoint of the previous contour point set to the endpoint after compensation based on the endpoint of the previous contour point set and the endpoint after compensation. Calculate the slope of the perpendicular line from the starting point of the current contour point set to the next contour point based on the starting point of the current contour point set and the next contour point.
5. The multi-mode tool compensation method for a die-cutting machine according to claim 4, characterized in that, Determining the compensation path based on the compensation parameters also includes: The tool compensation path is calculated by taking the length of the tool compensation amount in the direction of the starting point of the current contour point set and the next contour point of the starting point, so as to obtain the second actual coordinate point. Determine if the starting point of the current contour point set is a corner point. If so, delete the tool-turning compensation point set and the starting point of the current contour point set that were added to the starting point of the current contour point set. Otherwise, delete only the starting point of the current contour point set, store the compensation contour points in the tool-turning compensation point set into the next contour point in the current contour point set, and clear the tool-turning compensation point set after storing all of them.
Citation Information
Patent Citations
Cutter compensation method based on plate cutting machine
CN103317541A
Rotary cutter center compensation system and compensation method based on five-axis numerical control machine tool
CN117518985A