A right-angle head indexing automatic compensation method, device, medium and product

By automatically compensating the angle and position deviation of the right-angle head, the problem of cumbersome operation of the traditional right-angle head compensation method is solved, and efficient and high-precision processing effect is achieved.

CN115562160BActive Publication Date: 2025-08-15NEWAY CNC EQUIPMENT (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211133186.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2025-08-15
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

The traditional right-angle head compensation method is cumbersome to operate, has low efficiency, and is difficult to improve processing efficiency and accuracy.

Method used

It provides a method of automatic compensation for right-angle head indexing, which automatically compensates angle and position deviation by obtaining target angle value and current angle value, and uses macro programs and PMC to achieve automatic compensation, simplifying the operation process.

Benefits of technology

Improve processing efficiency and accuracy, simplify operation procedures, avoid excessive compensation, and improve processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562160B_ABST
    Figure CN115562160B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, medium and product for automatic compensation of right-angle head indexing. The method includes the following steps: obtaining a target angle value, determining whether the target angle value is an integer multiple of the preset indexing of the right-angle head, and if so, jumping to angle deviation compensation; angle deviation compensation, performing target angle compensation according to the current angle, target angle value and compensation value of the right-angle head; position deviation compensation, obtaining the position deviation value of the current angle and the position deviation value of the target angle value, and performing target position compensation according to the position deviation value of the current angle and the position deviation value of the target angle value. When the user performs indexing, he only needs to give the target angle, and the program automatically executes the indexing program to complete the right-angle head indexing; during the execution of the indexing program, the angle deviation compensation program and the position deviation compensation program are automatically called, without the user having to significantly change the processing program, the operation is simple, and the processing efficiency and processing accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image target area extraction, and in particular to a right-angle head indexing automatic compensation method, equipment, medium and product. Background Art

[0002] Right-angle heads are suitable for machining operations such as boring and milling slots, finishing end faces, chamfering, and other complex parts. However, due to factors such as component machining and assembly tolerances during production, the finished right-angle head can exhibit axis deviations, resulting in angular and positional deviations. Traditional right-angle head compensation methods involve operators measuring the deviation from the target position after each indexing operation and then modifying the machining program to perform X, Y, and Z axis compensation. This is cumbersome and inefficient. Therefore, there is an urgent need for an automated compensation method for right-angle head indexing to improve machining efficiency and precision. Summary of the Invention

[0003] In order to achieve the above-mentioned purpose and other advantages according to the present invention, a first object of the present invention is to provide a right-angle head indexing automatic compensation method, comprising the following steps:

[0004] Obtain a target angle value, and determine whether the target angle value is an integer multiple of the preset division of the right-angle head. If yes, jump to the angle deviation compensation step;

[0005] Angle deviation compensation, target angle compensation is performed through the current angle of the right-angle head, the target angle value and the compensation value;

[0006] Position deviation compensation, obtaining the position deviation value of the current angle and the position deviation value of the target angle value, and performing target position compensation based on the position deviation value of the current angle and the position deviation value of the target angle value.

[0007] Furthermore, the angle deviation compensation includes the following steps:

[0008] Obtaining a compensation value corresponding to the current angle value and the target angle value;

[0009] Calculating the actual rotation angle by using the target angle value, the current angle value and the compensation value corresponding to the target angle value;

[0010] Performing target angle compensation using the actual rotation angle;

[0011] The current angle value is updated by the target angle value.

[0012] Furthermore, the position deviation compensation includes the following steps:

[0013] Get the deviation value of the current angle in the preset direction;

[0014] Get the deviation value of the target angle value in the preset direction;

[0015] The position of the target angle value in the preset direction is compensated by the deviation value of the current angle in the preset direction and the deviation value of the target angle value in the preset direction.

[0016] Furthermore, the obtaining of the deviation value of the target angle value in the preset direction is specifically to calculate the deviation value of the target angle value in the preset direction by using a linear interpolation method.

[0017] Furthermore, the method of calculating the deviation of the target angle value in the preset direction by using the linear interpolation method includes the following steps:

[0018] Determine the angle interval in which the target angle value lies;

[0019] If the target angle value is within the range of (θ0, θ1], the deviation value of the target angle value in the preset direction is

[0020]

[0021] in, is the deviation value of θ1 in the current direction, is the deviation value of θ0 in the current direction, and θ is the current angle value.

[0022] Furthermore, the method further includes the steps of: determining whether the position deviation value exceeds a set compensation value range, and if so, issuing a system alarm; otherwise, jumping to the position deviation compensation step.

[0023] Furthermore, the angle interval includes (0, 90°], (90°, 180°], (180°, 270°], and (270°, 360°].

[0024] The second object of the present invention is to provide an electronic device comprising: a memory having a program code stored thereon; a processor connected to the memory and implementing a method for automatically compensating for a right-angle head indexing when the program code is executed by the processor.

[0025] A third object of the present invention is to provide a computer-readable storage medium having program instructions stored thereon, wherein when the program instructions are executed, a method for automatic compensation of right-angle head indexing is implemented.

[0026] A fourth object of the present invention is to provide a computer program product comprising a computer program / instruction, which, when executed by a processor, implements a method for automatic compensation of right-angle head indexing.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] The present invention provides an automatic compensation method for right-angle head indexing. When performing indexing, the user only needs to give a target angle, and the program automatically executes the indexing program to complete the right-angle head indexing. At the same time, during the execution of the indexing program, the angle deviation compensation program and the position deviation compensation program are automatically called, that is, the angle and position deviations are automatically compensated at the end of each indexing. Automatic compensation of the angle deviation and position deviation in the indexing process is achieved through macro programs and PMC, which improves the processing efficiency and improves the processing accuracy. The user does not need to significantly change the processing program, and the operation is simple and efficient. By setting the compensation value range, over-compensation can be avoided.

[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and to implement it according to the contents of the description, the following preferred embodiments of the present invention are described in detail with reference to the accompanying drawings. The specific implementation methods of the present invention are given in detail by the following embodiments and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0031] Figure 1 This is a flow chart of an automatic compensation method for right-angle head indexing according to Example 1;

[0032] Figure 2 Schematic diagram of deviation measurement in Example 1 Figure 1 ;

[0033] Figure 3 Schematic diagram of deviation measurement in Example 1 Figure 2 ;

[0034] Figure 4 This is a schematic diagram of an electronic device according to Example 2;

[0035] Figure 5 Schematic diagram of a computer-readable storage medium of Example 3. DETAILED DESCRIPTION

[0036] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.

[0037] Example 1

[0038] A right-angle head indexing automatic compensation method, which automatically compensates for angle deviation and position deviation through macro program and PMC to improve processing efficiency and processing accuracy. Figure 1As shown, the following steps are included:

[0039] When performing indexing, the user only needs to give the target angle, and the program will automatically execute the indexing procedure to complete the right-angle head indexing. At the same time, during the execution of the indexing program, the angle deviation compensation program and the position deviation compensation program are automatically called, that is, the angle and position deviations are automatically compensated at the end of each indexing.

[0040] Obtain the target angle value and determine whether it is an integer multiple of the right-angle head's preset divisions. If so, jump to the angle deviation compensation step; otherwise, the system alarms. Taking a 90° right-angle head as an example, the compensation angle can be set to 360° / 90° = 4. Typically, with the right-angle head's 0° as the reference, no compensation is performed, and angle compensation is performed at 90°, 180°, and 270°. To further refine this, macro variables and statement judgments can be added. Taking a 5° right-angle head as an example, the compensation angle can be set to 360° / 5° = 72. With the right-angle head's 0° as the reference, angle compensation is performed at 5°, 10°, ..., 355°.

[0041] The power for the right-angle head indexing relies on the ram spindle, and the ram spindle drives the right-angle head for indexing through the spline.

[0042] Angle deviation compensation is performed by using the current angle of the right-angle head, the target angle value, and the compensation value. Specifically, it includes the following steps:

[0043] Obtain the compensation value corresponding to the current and target angles. For example, if the current angle is 0° and the target angle is 90°, the theoretical distance the right-angle head needs to move is: target angle - current angle = 90°. Due to mechanical play, assembly tolerances, and other factors, some angles may be offset during movement. While the system defaults to 90° advancement, the head may actually have only advanced 89°. Therefore, a 1° compensation is required, meaning the target angle corresponds to a 1° compensation value.

[0044] The actual rotation angle is calculated by the target angle value, the current angle value and the compensation value corresponding to the target angle value; therefore, the actual movement distance of the right-angle head is: target angle value - current angle value + compensation value = 90° - 0° + 1° = 91°.

[0045] Target angle compensation is performed through actual rotation angle;

[0046] Update the current angle value with the target angle value, for example, update the current angle value to 90°.

[0047] A standard three-axis machine tool has an established coordinate relationship with the workpiece. When a right-angle head is added, the three-axis coordinate relationship is maintained. Without a separate coordinate system, factors such as assembly tolerances can cause positional deviations in three-dimensional space. Spatial position compensation is required to compensate for these deviations relative to the three-axis positions.

[0048] Position deviation compensation, obtain the position deviation value of the current angle and the position deviation value of the target angle value, and perform target position compensation based on the position deviation value of the current angle and the position deviation value of the target angle value.

[0049] Specifically, the method includes the following steps:

[0050] Get the deviation value of the current angle in the preset direction;

[0051] Get the deviation value of the target angle value in the preset direction;

[0052] The position of the target angle value in the preset direction is compensated by the deviation value of the current angle in the preset direction and the deviation value of the target angle value in the preset direction.

[0053] In this embodiment, the compensation data for each position of the right-angle head is set according to the C-axis position and is divided into four groups, namely 0°, 90°, 180° and 270°. Each group is divided into three axis directions of X / Y / Z, and the compensation data input unit is mm.

[0054] In one embodiment, taking the position deviation compensation of the target angle value of 90° as an example, the deviation is measured in the form of cutting squares, such as Figure 2 、 Figure 3 The milling surface and milling method are shown in Table 1.

[0055] Table 1 Milling surface and milling method

[0056] Serial number Milling surface Milling method 1 A Ram spindle forward milling 2 B Right-angle head spindle side milling 3 C Ram spindle side milling 4 D Right-angle head spindle forward milling 5 G Ram spindle side milling 6 H Right-angle head spindle side milling

[0057] Comparison of surfaces A and B: The influencing factor is the deviation of the right-angle head axis in the Z direction. If surface A is higher than surface B, it means that the axis of the right-angle head is lower in the Z direction. In this case, a positive value must be added to the compensation variable in the Z direction. Half of the step height difference is the Z direction deviation value.

[0058] Comparison of surfaces C and D: The influencing factor is the axis deviation of the right-angle head in the Y direction. If surface C is higher than surface D, it means that the axis of the right-angle head is biased forward in the Y direction. In this case, a negative value must be added to the compensation variable in the Y direction. Half of the step height difference is the Y direction deviation value.

[0059] Comparison of G and H surfaces: The influencing factor is the axis deviation of the right-angle head in the X direction. If the G surface is higher than the H surface, it means that the axis of the right-angle head is deviated in the X direction. In this case, a negative value must be added to the compensation variable in the X direction. Half of the step height difference is the X direction deviation.

[0060] Similarly, the deviation values in other directions can be tested.

[0061] At other tilt angles, the spatial deviation value is more difficult to measure. That is, when the target angle value does not belong to 0°, 90°, 180° and 270°, in order to facilitate the calculation of the deviation value of the target angle value in the preset direction, the linear interpolation method is used to calculate the deviation value of the target angle value in the preset direction. In order to unify the calculation, a linear function is constructed by using the deviation values of 0 degrees and 90 degrees, 90 degrees and 180 degrees, 180 degrees and 270 degrees, and 270 and 0 degrees. Specifically, the following steps are included:

[0062] Determine the angle interval of the target angle value; in this embodiment, the angle interval includes (0, 90°], (90°, 180°], (180°, 270°], and (270°, 360°].

[0063] If the target angle value is within the range of (θ0, θ1], the deviation of the target angle value in the preset direction is

[0064]

[0065] in, is the deviation value of θ1 in the current direction, is the deviation value of θ0 in the current direction, and θ is the current angle value.

[0066] For example, when calculating the deviation of the target angle value 45° in the X direction, since 45° is between 0° and 90°, the deviation value of 0° in the X direction is X. 0° , the deviation value of 90° in the X direction is X 90° , that is, two coordinates (0°, X 0° ) and (90°, X 90° ), then the deviation value of the target angle value 45° in the X direction is: (X 90° -X 0° )*(45°-0°) / (90°-0°)+X 0° , the deviations in other directions are calculated using the same method.

[0067] The PMC reads macro variables to inform the system of the compensation value, which then issues a compensation command, ultimately achieving the offset of the coordinate axis. The extended external origin offset overlaps with error compensation functions such as pitch error compensation and straightness compensation, and the coordinate values are not updated.

[0068] In order to avoid over-compensation, the following steps are also included: determining whether the position deviation value exceeds the set compensation value range, such as (-0.5mm to +0.5mm). If so, a system alarm is issued; otherwise, the process jumps to the position deviation compensation step.

[0069] Example 2

[0070] An electronic device 200, such as Figure 4 As shown, the method includes, but is not limited to: a memory 201 storing program code; a processor 202 connected to the memory, and when the program code is executed by the processor, a method for automatically compensating for the indexing of a right-angle head is implemented. For a detailed description of the method, please refer to the corresponding description in the above method embodiment and will not be repeated here.

[0071] Example 3

[0072] A computer-readable storage medium such as Figure 5 As shown, a program instruction is stored thereon, and a method for automatically compensating the right-angle head indexing is implemented when the program instruction is executed. For a detailed description of the method, reference can be made to the corresponding description in the above method embodiment, which will not be repeated here.

[0073] Example 4

[0074] A computer program product includes a computer program / instruction that, when executed by a processor, implements a method for automatically compensating for right-angle head indexing. For a detailed description of the method, reference may be made to the corresponding description in the above method embodiment and will not be repeated here.

[0075] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0076] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0077] The above are merely examples of the present invention and are not intended to limit one or more embodiments of the present invention. For those skilled in the art, various changes and modifications may be made to one or more embodiments of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of one or more embodiments of the present invention shall be included within the scope of the claims of one or more embodiments of the present invention.

Claims

1. A right-angle head indexing automatic compensation method, characterized in that: The following steps are involved: Obtain a target angle value, and determine whether the target angle value is an integer multiple of the preset division of the right-angle head. If yes, jump to the angle deviation compensation step; Angle deviation compensation, target angle compensation is performed through the current angle of the right-angle head, the target angle value and the compensation value; Position deviation compensation: obtaining the position deviation value of the current angle and the position deviation value of the target angle value, and performing target position compensation based on the position deviation value of the current angle and the position deviation value of the target angle value; wherein, a standard 3-axis machine tool and a workpiece have established a coordinate relationship. When a right-angle head is added, the coordinate relationship of the 3 axes is continued. Without adding another coordinate system, when position deviation is exhibited in three-dimensional space, position compensation of the spatial position is required to compensate for the deviation relative to the 3-axis position; The angle deviation compensation comprises the following steps: Obtaining a compensation value corresponding to the current angle value and the target angle value; Calculating the actual rotation angle by using the target angle value, the current angle value and the compensation value corresponding to the target angle value; Performing target angle compensation using the actual rotation angle; Updating the current angle value by the target angle value; The position deviation compensation comprises the following steps: Get the deviation value of the current angle in the preset direction; Get the deviation value of the target angle value in the preset direction; The position of the target angle value in the preset direction is compensated by the deviation value of the current angle in the preset direction and the deviation value of the target angle value in the preset direction.

2. The automatic compensation method for right-angle head indexing according to claim 1, characterized in that: The obtaining of the deviation value of the target angle value in the preset direction is specifically to calculate the deviation value of the target angle value in the preset direction by using a linear interpolation method.

3. The automatic compensation method for right-angle head indexing according to claim 2, characterized in that: The method of calculating the deviation of the target angle value in the preset direction by using the linear interpolation method comprises the following steps: Determine the angle interval in which the target angle value lies; If the target angle value is within the range of (θ0, θ1], the deviation value of the target angle value in the preset direction is in, is the deviation value of θ1 in the current direction, is the deviation value of θ0 in the current direction, and θ is the current angle value.

4. The automatic compensation method for right-angle head indexing according to claim 1, characterized in that: The method further includes the steps of: determining whether the position deviation value exceeds a set compensation value range; if so, issuing a system alarm; otherwise, jumping to the position deviation compensation step.

5. The automatic compensation method for right-angle head indexing according to claim 3, characterized in that: The angle intervals include (0, 90°], (90°, 180°], (180°, 270°], and (270°, 360°].

6. An electronic device, characterized in that: include: a memory having program code stored therein; A processor is coupled to the memory and implements the method according to any one of claims 1 to 5 when the program code is executed by the processor.

7. A computer-readable storage medium, characterized in that Program instructions are stored thereon, and when the program instructions are executed, the method according to any one of claims 1 to 5 is implemented.

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