Double-inclined-hole machining rotation angle obtaining method and system and storage medium
By constructing a virtual machining simulation model, measuring and calculating the rotation angle of the double oblique holes, the problem of determining the machining angle of double oblique holes in the existing technology is solved, and the rotation angle is obtained quickly and accurately, thus improving machining efficiency and accuracy.
Patent Information
- Application Number
- CN202511024942.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-24
- Publication Date
- 2025-11-21
AI Technical Summary
Existing technologies for machining double oblique holes on five-axis machining centers present challenges such as complex spatial angle calculations, a large workload in drawing part machining schematics, high difficulty in programming five-axis machining programs, and high level of specialization, making it difficult to quickly and accurately determine the rotation angle of the double oblique holes.
By constructing a virtual machining simulation model, the angles between the axis of the double oblique hole and the coordinate axis and the axis of the spindle are measured and determined. The rotation angle is calculated based on the angles, and the rotation operation is performed and verified in a virtual environment to ensure the accuracy of the rotation angle.
The ability to quickly and accurately obtain the rotation angle of double oblique holes in a virtual 3D environment simplifies complex spatial hole calculations, ensures the accuracy of the rotation angle, and improves processing efficiency and precision.
Smart Images

Figure CN120995526A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of virtual machining simulation technology, specifically to a method, system, and storage medium for obtaining the rotation angle of double oblique hole machining. Background Technology
[0002] With the increasing speed of electric motors, the integration of electric drive housings, and the minimization of NVH (noise, vibration, and harshness) in new energy vehicles, the structure of integrated electric drive housings is becoming increasingly complex. The arrangement of various oil passages, water passages, sealing holes, and mounting holes is not only dense but also spatially staggered, necessitating the use of a five-axis machining center. During machining, the machining center needs to rotate two axes to ensure that the axes of the double-skewed holes (spatial holes) are parallel to the spindle, thus guaranteeing the accuracy of the part's machining angles and dimensions.
[0003] There are generally two existing techniques for machining double oblique holes using a five-axis machining center: 1) Drawing method: In a two-dimensional CAD environment, a machining schematic diagram is drawn based on the placement of the double oblique holes on the machining center, and the rotation angle of the part is marked. 2) NC programming method: In a CAM programming environment, the five-axis machining path is programmed, and the machining path is used by the software's post-processor to generate an NC program.
[0004] Both of the above methods have some problems: 1) The drawing method has problems such as complex spatial angle calculation, large workload in drawing part machining schematic diagrams, and unintuitive machining status. It is difficult to control the interference during the machining process and the accurate size of the tool. Moreover, when the machining equipment and fixtures are changed, most of the work needs to be redone. 2) The NC programming method has problems such as the difficulty in programming five-axis machining programs for parts and the high degree of specialization. In particular, the development of five-axis post-processors is difficult for general process engineers to handle.
[0005] Therefore, there is an urgent need for a method that can quickly determine the rotation angle for machining double oblique holes. Summary of the Invention
[0006] The purpose of this application is to address the shortcomings of the aforementioned background technology and to provide a method, system, and storage medium for obtaining the rotation angle of double oblique hole machining.
[0007] The technical solution of this application is: a method for obtaining the rotation angle in double-oblique hole machining, comprising the following steps. Construct a virtual machining simulation model for machining double oblique holes; Import the 3D model of the part to be machined and the 3D model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be machined and the fixture are assembled on the dual worktable of the virtual machining simulation model. In the zero-position state of the virtual machining simulation model, measure the angle α1 between the axis of the double oblique hole of the machined part and the coordinate axis; The angle α2 between the axis of the double oblique hole of the machined part and the axis of the spindle of the virtual machining simulation model is measured in the zero position state of the virtual machining simulation model. The rotation angle A1 for machining double oblique holes is determined based on the included angle a1, and the rotation angle A2 for machining double oblique holes is determined based on the included angle a2. The two worktables are driven to rotate according to different rotation methods based on rotation angles A1 and A2. After they are rotated into position, the center coordinates of the hole opening and the hole bottom of the double inclined hole are obtained. The center coordinates of the hole opening and the hole bottom are compared to verify whether the rotation angles A1 and A2 are correct.
[0008] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method of assembling the machining part and fixture onto the dual worktable of the virtual machining simulation model includes: setting the assembly dimension relationship between the digital model of the machining part and fixture and the virtual machining simulation model, so that the clamping posture of the virtual machining part and fixture is consistent with the clamping posture of the machining part and fixture under the actual machining state.
[0009] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method of measuring the angle α1 between the axis of the double oblique hole and the coordinate axis of the machined part in the zero position state of the virtual machining simulation model includes: the axis of the double oblique hole refers to the axis of the hole, and the direction of the axis is from the bottom of the hole to the outside of the hole; the coordinate axis refers to the number axis perpendicular to the positioning surface of the part, and the direction is the positive direction of the coordinate axis, and the angle between the axis of the double oblique hole and the direction of the coordinate axis is the angle α1.
[0010] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method of measuring the angle α2 between the axis of the double oblique hole of the machined part and the axis of the main spindle of the virtual machining simulation model in the zero position state of the virtual machining simulation model includes: taking the direction of the axis of the main spindle of the virtual machining simulation model as the positive direction of the Z-axis, and taking the angle α2 between the axis of the double oblique hole and the positive direction of the Z-axis.
[0011] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method for determining the rotation angle A1 of double oblique hole machining based on the included angle a1 includes: when the workpiece is loaded on the A-axis of the double worktable, the rotation angle A1 is the rotation angle of the B-axis of the double worktable, and the rotation angle A1 is determined to be 90°-a1 or 180°-(90°-a1) according to the rotation direction; when the workpiece is loaded on the B-axis of the double worktable, the rotation angle A1 is the rotation angle of the A-axis of the double worktable, and the rotation angle A1 is determined to be a1-90° or 180°-(a1-90°) according to the rotation method.
[0012] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method for determining the rotation angle A2 of double oblique hole machining based on the included angle a2 includes: when the machining part is loaded on the A-axis of the double worktable, the rotation angle A2 is the rotation angle of the A-axis of the double worktable, and the rotation angle A2 is determined to be -a2 or 180°-a2 according to the rotation direction; when the machining part is loaded on the B-axis of the double worktable, the rotation angle A2 is the rotation angle of the B-axis of the double worktable, and the rotation angle A2 is determined to be 360°-a2 or (360°-a2)-180° according to the rotation method.
[0013] According to the method for obtaining the rotation angle of double inclined hole machining provided in this application, the method of rotating the double worktable according to different rotation modes based on rotation angles A1 and A2 includes: when the workpiece is loaded on the A axis of the double worktable, a rotation operation is performed to rotate the double worktable around the B axis by 90°-a1 or 180°-(90°-a1), and then rotate the double worktable around the A axis by -a2 or 180°-a2, and measure and obtain the center coordinate values of the hole opening and bottom of the double inclined hole after the rotation operation; When the workpiece is loaded on the B-axis of the dual worktable, a rotation operation is performed. The dual worktable is rotated around the A-axis by a1-90° or 180°-(a1-90°), and then rotated around the B-axis by 360°-a2 or (360°-a2)-180°. The center coordinates of the opening and bottom of the double inclined holes are measured after the rotation operation.
[0014] According to the method for obtaining the rotation angle of double oblique hole machining provided in this application, the method of comparing the center coordinates of the hole opening and the hole bottom to verify whether the rotation angles A1 and A2 are incorrect includes: if the X and Y coordinates of the center coordinates of the double oblique hole opening and the hole bottom are the same after the rotation operation, and the Z axis coordinates differ from the double oblique hole depth, then the rotation angles A1 and A2 are judged to be accurate; otherwise, the rotation angles A1 and A2 are judged to be inaccurate.
[0015] This application also relates to a system for obtaining the rotation angle of double-skew hole machining, including, A virtual model building system, wherein the virtual model building system is used to build a virtual machining simulation model for machining double oblique holes; The data loading module is used to load the 3D digital model of the part to be processed and the 3D digital model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be processed and the fixture are assembled on the dual worktable of the virtual machining simulation model. The measurement module is used to measure the angle α1 between the axis of the double oblique hole of the machined part and the coordinate axis in the zero position state of the virtual machining simulation model. The measurement module is used to measure the angle α2 between the axis of the double oblique hole of the machined part and the axis of the spindle of the virtual machining simulation model in the zero position state of the virtual machining simulation model. A rotation angle determination module, wherein the rotation angle determination module determines the rotation angle A1 for machining double oblique holes based on the included angle a1 and the rotation angle A2 for machining double oblique holes based on the included angle a2; The verification and judgment module drives the dual worktables to rotate according to different rotation methods based on rotation angles A1 and A2. After the rotation is in place, the center coordinates of the opening and bottom of the double inclined holes are obtained. The center coordinates of the opening and bottom of the holes are compared to verify whether the rotation angles A1 and A2 are incorrect.
[0016] This application also relates to a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the above-described method for obtaining the rotation angle of a double oblique hole machining.
[0017] The advantages of this application are: 1. This application constructs a virtual machining simulation model and uses the digital model of the machining part to simulate the machining of double oblique holes. It can present the actual machining state of the part in 100% accuracy. The angle of the double oblique hole being machined can be quickly obtained in the virtual 3D environment. The rotation angle during the machining of double oblique holes can be quickly obtained and can also be effectively verified to ensure that the final obtained rotation angle is 100% accurate. The whole operation method is very simple and does not require a lot of complex spatial hole calculation work, which changes the traditional process design method for machining double oblique holes. 2. This application clamps and processes parts and fixtures on the dual worktables of the virtual machining simulation model and operates according to the actual clamping situation, which truly simulates the clamping state under actual machining conditions, making it convenient to accurately obtain the rotation angle of the double inclined hole machining and ensuring that the obtained rotation angle is real and accurate. 3. This application obtains the direction perpendicular to a clamping and positioning surface as the coordinate axis direction, which is actually the determination of the reference direction. This makes it easier to define the direction of the double oblique hole axis and quickly determine the angle between the double oblique hole axis and the coordinate axis direction, which is convenient for obtaining the rotation angle later. 4. This application uses a spindle axis as the Z-axis direction. The spindle axis is the actual spindle direction of the machining center during machining. Determining the spindle direction allows us to use the spindle direction as a reference direction to determine the included angle, which provides a basis for determining the rotation angle based on the included angle and facilitates operation and calculation. 5. The method of determining the rotation angle in this application is very simple. Two rotation angles can be generated according to the clamping mode of the workpiece on the dual worktables, and two different rotation angles can be obtained according to the direction of rotation. Moreover, the method of obtaining the rotation angles fully meets the rotation requirements during actual processing. 6. The method for determining the rotation angle in this application is very simple. It is based entirely on the included angle and is based on the axis of the machining center spindle, ensuring that the rotation angle is completely matched with the requirements of double inclined hole machining. 7. The method of rotating the dual worktables based on the rotation angle and the rotation angle in this application is very simple. The rotation method is exactly the same as the actual rotation method of the dual worktables. This rotation facilitates subsequent verification and analysis to determine whether the rotation angle and the rotation angle are appropriate. 8. The verification method of this application is very simple. After the rotation as described above, the X and Y coordinates of the hole bottom and the hole opening are the same, and the Z-axis coordinates differ only in the hole depth. This proves that there is no problem with this rotation operation, and the determined rotation angles A1 and A2 are accurate and meet the operational requirements when actually machining double inclined holes. 9. This application also relates to a system for obtaining the rotation angle of double oblique hole machining. The system of this application integrates the above-mentioned acquisition method. The system of this application can be integrated into a control system for intelligent and automated operation. It can present the actual machining state of the part 100% and quickly obtain the angle of the double oblique hole being machined in a virtual 3D environment and perform effective verification. 10. This application also relates to storage media and program products, that is, the acquisition method of this application can be transformed into different forms, which is convenient for application in double oblique hole processing and has a very wide range of applications.
[0018] The method for obtaining the rotation angle in the machining of double inclined holes in this application is very simple. It can accurately and quickly obtain the rotation angle required for the machining process of double inclined holes through virtual simulation, which reduces the tedious calculation of the rotation angle of the spatial angle hole (spatial hole) by the process engineer, ensures 100% correctness of the rotation posture of the part, and changes the process design method of traditional double inclined hole machining. Attached Figure Description
[0019] Figure 1 : A schematic diagram of obtaining the rotation angle in this application (B+A axis form); Figure 2 : A schematic diagram of obtaining the rotation angle in this application (B+A axis form); Figure 3 : A schematic diagram of obtaining the rotation angle in this application (A+B axis form); Figure 4 : A schematic diagram of obtaining the rotation angle in this application (A+B axis form); Wherein: 1—machined parts; 2—spindle module; 3—dual worktables; 4—dual oblique holes. Detailed Implementation
[0020] The embodiments of this application are described in detail below, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0021] In the description of this application, it should be understood that the terms "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0022] Furthermore, the terms "" and "" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined with "" and "" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0023] The present application will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0024] This application relates to a method for obtaining the rotation angle of double-slanted holes in machining. This application constructs a virtual machining simulation model, clamps and operates according to a real machining scenario, and simulates the real machining situation. In this way, the rotation angle of the double-slanted holes in the machined part is obtained. The virtual machining simulation model is used to verify and analyze the rotation angle of the double-slanted holes, determine whether the obtained rotation angle is incorrect, and ensure that the rotation posture of each part is 100% correct. This reduces the tedious calculation of the rotation angle of the spatial angle hole (spatial hole) by the process engineer and greatly improves the machining efficiency of double-slanted holes in the machined part.
[0025] Specifically, such as Figures 1-4 As shown, a method for obtaining the rotation angle in double-oblique hole machining is performed according to the following steps: S1. Construct a virtual machining simulation model for machining double oblique holes; This application constructs a virtual machining simulation model by referring to existing patents, such as the existing patent with patent number "CN119105308A" entitled "A Virtual Machining Simulation Method, System, Electronic Device and Storage Medium for a Three-in-One Drive Housing". It independently develops a virtual five-axis machining center in Siemens NX software that matches actual machining, including the creation of a three-dimensional machining center model, the establishment of virtual motion relationships in the 3D model, and the development of a CNC system post-processor for the five-axis virtual machining center. The virtual machining simulation model includes dual worktables and a spindle module. The dual worktables 3 include an A-axis feed module, a B-axis feed module, and a Z-axis feed module. During part machining, part 1 is clamped and mounted onto the dual worktables 3 using a dedicated fixture. If part 1 is loaded onto the table where the A-axis feed module is located, it belongs to the B+A axis form (e.g., ...). Figures 1-2 As shown), if a part is loaded onto the table where the B-axis feed module is located, it belongs to the A+B axis configuration (e.g., Figures 3-4 (As shown); different parts require different loading modes, corresponding to different rotation modes; Normally, the axis of the spindle module 2 is the Z-axis; the double oblique hole 4 in this application refers to the fact that when the part is placed upright, the double oblique hole 4 is not parallel to the spindle module 2 (Z-axis) and not perpendicular to the X-axis and Y-axis. It is necessary to rely on the double worktable to rotate the relevant angles in two directions to ensure that the axis of the double oblique hole is parallel to the machining spindle (Z-axis) before machining can be performed. S2. Import the 3D model of the part to be processed and the 3D model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be processed and the fixture are assembled on the dual worktable of the virtual machining simulation model. This application simulates the real machining environment in a virtual machining model. Therefore, this application actually sets the assembly dimension relationship between the digital model of the machining part and the fixture and the virtual machining simulation model, so that the clamping posture of the machining part and the fixture is consistent with the clamping posture of the machining part and the fixture under the actual machining state, ensuring that the actual machining situation can be realistically reflected. Specifically, in NX software, the 3D digital model of the machining part and the 3D assembly model of its fixture are opened, the corresponding virtual five-axis machining center (i.e., virtual machining simulation model) is imported from the machine tool library, and its assembly dimension relationship is set to ensure that the clamping posture of the part in the virtual machining center is consistent with the clamping posture of the part in the actual machining center. S3. Measure the angle α1 between the axis of the double oblique hole of the machined part and the coordinate axis in the zero position state of the virtual machining simulation model; The angle α2 between the axis of the double oblique hole of the machined part and the axis of the spindle of the virtual machining simulation model is measured in the zero position state of the virtual machining simulation model. In this state, after the virtual machining model completes the clamping of the workpiece, its state is consistent with the state of the actual workpiece clamped on the double worktable. The included angles a1 and a2 represent the included angles between the double inclined hole axis and the coordinate axis and the spindle axis, respectively. In fact, this is to facilitate the measurement of how to rotate the workpiece to make the double inclined hole axis of the workpiece parallel to the spindle axis. S4. Determine the rotation angle A1 for machining double oblique holes based on the included angle a1, and determine the rotation angle A2 for machining double oblique holes based on the included angle a2; Angle a1 is the angle between the axis of the double oblique hole and the coordinate axis, and angle a2 is the angle between the axis of the double oblique hole and the axis of the spindle of the virtual machining simulation model. Angles a1 and a2 are the angles between the double oblique hole of the current machining part and the coordinate axis and the Z-axis, which is the initial state. After obtaining the initial state, the rotation angle A1 of the double oblique hole machining can be determined based on the above angle a1 and angle a2. S5. Drive the dual worktables to rotate according to different rotation methods based on rotation angles A1 and A2. After rotating to the position, obtain the center coordinates of the hole opening and the hole bottom of the dual inclined holes. Compare the center coordinates of the hole opening and the hole bottom to verify whether rotation angles A1 and A2 are correct. After obtaining rotation angles A1 and A2, rotate them in different directions. If the obtained rotation angles A1 and A2 correspond to each other after being rotated in the set way, it proves that the obtained rotation angles A1 and A2 are correct; otherwise, there is a problem. In this way, the obtained rotation angles A1 and A2 can be verified and analyzed to ensure that the final result is completely correct.
[0026] In some embodiments of this application, step S3 described above has been optimized. Specifically, the direction of the positioning surface perpendicular to the workpiece clamping is taken as the coordinate axis direction, and the angle between the axis of the double oblique hole (the axis of the double oblique hole refers to the axis of the hole, and the direction of the axis is from the bottom of the hole to the outside of the hole) and the coordinate axis direction is taken as angle α1. The workpiece clamping is completed (actually, the 3D model of the workpiece and the 3D model of the fixture are called into the virtual machining simulation model and set according to the actual clamping situation). At this time, the vertical direction of the positioning surface of the workpiece clamping is defined as the coordinate axis (the coordinate axis refers to the axis perpendicular to the positioning surface of the workpiece, and the direction is the positive direction of the coordinate axis). Here, the coordinate axis direction is either the X-axis direction or the Y-axis direction. Different coordinate axis directions exist when the workpiece is clamped on different surfaces of the double worktable, or the angle between the axis of the double oblique hole and the Y-axis direction, such as... Figures 1-2 The B+A axis configuration shown; or the angle between the axis of the double oblique hole and the X-axis direction, such as... Figures 3-4 The A+B axis configuration is shown.
[0027] The spindle axis of the virtual machining simulation model is taken as the Z-axis, and the angle between the double-slanted hole axis and the Z-axis is taken as angle α2. The spindle axis represents the axis of the machining tool. In the initial state after the workpiece is clamped, the angle between the double-slanted hole axis and the spindle axis is angle α2. Regardless of the clamping method, angle α2 is always the angle between the double-slanted hole axis and the Z-axis.
[0028] The included angles a1 and a2 reflect the initial state of the double oblique hole axis of the machined part, and its angular positional relationship with the coordinate axis direction and the Z-axis direction. Based on the included angles a1 and a2, it is possible to deduce how to rotate the machined part to ensure that the axis of the double oblique hole is parallel to the Z-axis, so that the spindle tool can machine the double oblique hole.
[0029] In other embodiments of this application, step S4 described above has been optimized. Specifically, when the workpiece is mounted on the A-axis of the dual worktable, i.e., the clamping configuration is B+A axis configuration, refer to... Figures 1-2 As shown, rotation angle A1 is the rotation angle of the B-axis of the dual worktable. The rotation angle A1 is determined by the direction of rotation and is either 90°-a1 or 180°-(90°-a1) (e.g., ...). Figure 1 As shown in A1), considering the direction of rotation, there are two values; when the workpiece is mounted on the B axis of the dual worktable, i.e., the clamping configuration is A+B axis, refer to... Figures 3-4 As shown, the rotation angle A1 is the rotation angle of the A-axis of the dual worktable. The rotation angle A1 is determined by the direction of rotation and is either a1-90° or 180°-(a1-90°) (e.g., ...). Figure 3 A1 (as shown).
[0030] When the workpiece is mounted on the A-axis of the dual worktable, the rotation angle A2 is the rotation angle of the A-axis of the dual worktable, that is, the clamping configuration is B+A-axis configuration, refer to... Figure 2 As shown, the rotation angle A2 is determined to be either -a2 or 180°-a2 based on the direction of rotation (e.g., Figure 2 As shown in A2); when the workpiece is mounted on the B-axis of the dual-table system, the rotation angle A2 is the rotation angle of the B-axis of the dual-table system, that is, the clamping configuration is A+B axis configuration, refer to... Figure 4 As shown, the rotation angle A2 is determined to be either 360° - a2 or (360° - a2) - 180° based on the direction of rotation (e.g., ...). Figure 4 (A2 shown).
[0031] Having obtained rotation angles A1 and A2, it is possible to rotate the axes of the double oblique holes of the workpiece in its initial clamping state to be parallel to the spindle axis by rotating the double worktables by rotation angles A1 and A2.
[0032] The rotation angles A1 and A2 are determined according to the clamping method. During actual rotation, the rotation is also performed according to the corresponding rotation direction. For example, for machining parts clamped in the B+A axis configuration, the double worktable is first driven to rotate around the B axis by a rotation angle A1, which is 90° - a1. Then, the double worktable is driven to rotate around the A axis by a rotation angle A2, which is - a2, to complete the required rotation operation.
[0033] In a further embodiment of this application, step S5 above has been optimized. Specifically, when the workpiece is mounted on the A-axis of the dual worktable, the clamping form is B+A-axis. A rotation operation is performed, rotating the dual worktable around the B-axis by 90°-a1 or 180°-(90°-a1), and then rotating the dual worktable around the A-axis by -a2 or 180°-a2. The center coordinates of the opening and bottom of the double oblique holes are measured after the rotation operation. If the X and Y coordinates of the center coordinates of the opening and bottom of the double oblique holes are the same after the rotation operation, and the Z-axis coordinates differ from the depth of the double oblique holes, then the rotation angles A1 and A2 are determined to be accurate; otherwise, the rotation angles A1 and A2 are determined to be inaccurate.
[0034] Similarly, when the workpiece is mounted on the B-axis of the dual worktable, the clamping configuration is A+B axis. A rotation operation is performed, rotating the dual worktable around axis A by a1-90° or 180°-(a1-90°), and then rotating it around axis B by 360°-a2 or (360°-a2)-180°. The coordinates of the center of the double inclined holes at the opening and bottom are measured after the rotation operation. If the X and Y coordinates of the center of the double inclined holes at the opening and bottom are the same, and the Z-axis coordinate differs from the depth of the double inclined holes, then rotation angles A1 and A2 are accurate; otherwise, rotation angles A1 and A2 are inaccurate.
[0035] The above-mentioned rotation operation positions have different rotation modes, including rotation modes with acute angles and rotation modes with obtuse angles.
[0036] Furthermore, this application also relates to a system for obtaining the rotation angle of double-slanted hole machining, including a virtual model construction system, a data loading module, a measurement module, a rotation angle determination module, and a verification and judgment module. The virtual model construction system is used to construct a virtual machining simulation model for machining double-slanted holes. The data loading module is used to load the 3D digital model of the part to be machined and the 3D digital model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be machined and the fixture are assembled onto the dual worktables of the virtual machining simulation model. The measurement module is used to measure the axis of the double-slanted hole of the part to the coordinate plane in the zero position state of the virtual machining simulation model. The included angle a1 of the reference axis; the measurement module is used to measure the included angle a2 of the axis of the double oblique hole of the machined part and the axis of the main spindle of the virtual machining simulation model in the zero position state of the virtual machining simulation model; the rotation angle determination module determines the rotation angle A1 of the double oblique hole machining based on the included angle a1 and the rotation angle A2 of the double oblique hole machining based on the included angle a2; the verification and judgment module drives the double worktable to rotate according to different rotation methods based on the rotation angles A1 and A2, and after rotating to the position, obtains the center coordinates of the hole opening and the hole bottom of the double oblique hole, and compares the center coordinates of the hole opening and the hole bottom to verify whether the rotation angles A1 and A2 are incorrect.
[0037] This invention also provides a non-transitory computer-readable storage medium storing a computer program. The computer program includes program instructions that, when executed by a processor, implement the various steps of the method described in this invention, which will not be elaborated further here.
[0038] The computer-readable storage medium can be the data transmission apparatus or the internal storage unit of a computer device provided in any of the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium can also be the external storage device of the computer device, such as the plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on the computer device.
[0039] Furthermore, the computer-readable storage medium may include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that is to be output or has already been output.
[0040] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0041] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0042] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0043] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0044] This invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implements the steps of the method for obtaining the rotation angle of a double-skewed hole machining process. Content not described in detail in this specification constitutes prior art known to those skilled in the art.
[0045] The foregoing has shown and described the basic principles, main features, and advantages of this application. Those skilled in the art should understand that this application is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of this application. Various changes and modifications can be made to this application without departing from the spirit and scope thereof, and all such changes and modifications fall within the scope of this application as claimed. The scope of protection of this application is defined by the appended claims and their equivalents.
Claims
1. A method for obtaining the rotation angle in double-skew hole machining, characterized in that: Includes the following steps, Construct a virtual machining simulation model for machining double oblique holes; Import the 3D model of the part to be machined and the 3D model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be machined and the fixture are assembled on the dual worktable of the virtual machining simulation model. In the zero-position state of the virtual machining simulation model, measure the angle α1 between the axis of the double oblique hole of the machined part and the coordinate axis; The angle α2 between the axis of the double oblique hole of the machined part and the axis of the spindle of the virtual machining simulation model is measured in the zero position state of the virtual machining simulation model. The rotation angle A1 for machining double oblique holes is determined based on the included angle a1, and the rotation angle A2 for machining double oblique holes is determined based on the included angle a2. The two worktables are driven to rotate according to different rotation methods based on rotation angles A1 and A2. After they are rotated into position, the center coordinates of the hole opening and the hole bottom of the double inclined hole are obtained. The center coordinates of the hole opening and the hole bottom are compared to verify whether the rotation angles A1 and A2 are correct.
2. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 1, characterized in that: The method for assembling the machined parts and fixtures onto the dual worktables of the virtual machining simulation model includes: setting the assembly dimension relationship between the digital models of the machined parts and fixtures and the virtual machining simulation model, so that the clamping posture of the virtual machined parts and fixtures is consistent with the clamping posture of the machined parts and fixtures under actual machining conditions.
3. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 1, characterized in that: The method for measuring the angle α1 between the axis of the double oblique hole and the coordinate axis of the machined part in the zero-position state of the virtual machining simulation model includes: the axis of the double oblique hole refers to the axis of the hole, and the direction of the axis is from the bottom of the hole to the outside of the hole; the coordinate axis refers to the number axis perpendicular to the positioning surface of the part, and the direction is the positive direction of the coordinate axis, and the angle between the axis of the double oblique hole and the direction of the coordinate axis is the angle α1.
4. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 1, characterized in that: The method for measuring the angle α2 between the axis of the double oblique hole of the machined part and the axis of the main spindle of the virtual machining simulation model in the zero position state of the virtual machining simulation model includes: taking the direction of the axis of the main spindle of the virtual machining simulation model as the positive direction of the Z-axis, and taking the angle α2 between the axis of the double oblique hole and the positive direction of the Z-axis.
5. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 1, characterized in that: The method for determining the rotation angle A1 for machining double oblique holes based on the included angle a1 includes: when the workpiece is loaded on the A-axis of the double worktable, the rotation angle A1 is the rotation angle of the B-axis of the double worktable, and the rotation angle A1 is determined to be 90°-a1 or 180°-(90°-a1) according to the rotation direction; when the workpiece is loaded on the B-axis of the double worktable, the rotation angle A1 is the rotation angle of the A-axis of the double worktable, and the rotation angle A1 is determined to be a1-90° or 180°-(a1-90°) according to the rotation method.
6. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 5, characterized in that: The method for determining the rotation angle A2 for machining double oblique holes based on the included angle a2 includes: when the workpiece is loaded on the A-axis of the double worktable, the rotation angle A2 is the rotation angle of the A-axis of the double worktable, and the rotation angle A2 is determined to be -a2 or 180°-a2 according to the rotation direction; when the workpiece is loaded on the B-axis of the double worktable, the rotation angle A2 is the rotation angle of the B-axis of the double worktable, and the rotation angle A2 is determined to be 360°-a2 or (360°-a2)-180° according to the rotation method.
7. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 6, characterized in that: The method for rotating the dual worktables according to different rotation modes based on rotation angles A1 and A2 includes: when the workpiece is loaded on the A-axis of the dual worktables, a rotation operation is performed to rotate the dual worktables around the B-axis by 90°-a1 or 180°-(90°-a1), and then rotate the dual worktables around the A-axis by -a2 or 180°-a2, and the center coordinates of the opening and bottom of the double inclined holes are measured and obtained after the rotation operation; When the workpiece is loaded on the B-axis of the dual worktable, a rotation operation is performed. The dual worktable is rotated around the A-axis by a1-90° or 180°-(a1-90°), and then rotated around the B-axis by 360°-a2 or (360°-a2)-180°. The center coordinates of the opening and bottom of the double inclined holes are measured after the rotation operation.
8. The method for obtaining the rotation angle in double-oblique hole machining as described in claim 7, characterized in that: The method of comparing the center coordinates of the orifice and the bottom of the orifice to verify whether the rotation angles A1 and A2 are incorrect includes: if the X and Y coordinates of the center coordinates of the orifice and the bottom of the double oblique hole are the same after the rotation operation, and the Z-axis coordinates differ from the depth of the double oblique hole, then the rotation angles A1 and A2 are judged to be accurate; otherwise, the rotation angles A1 and A2 are judged to be inaccurate.
9. A system for obtaining the rotation angle of double-skewed hole machining, characterized in that: The acquisition system operates according to the method for acquiring the rotation angle of double-skew hole machining as described in any one of claims 1 to 8, including: A virtual model building system, wherein the virtual model building system is used to build a virtual machining simulation model for machining double oblique holes; The data loading module is used to load the 3D digital model of the part to be processed and the 3D digital model of the fixture used to clamp the part into the virtual machining simulation model, so that the part to be processed and the fixture are assembled on the dual worktable of the virtual machining simulation model. The measurement module is used to measure the angle α1 between the axis of the double oblique hole of the machined part and the coordinate axis in the zero position state of the virtual machining simulation model. The measurement module is used to measure the angle α2 between the axis of the double oblique hole of the machined part and the axis of the spindle of the virtual machining simulation model in the zero position state of the virtual machining simulation model. A rotation angle determination module, wherein the rotation angle determination module determines the rotation angle A1 for machining double oblique holes based on the included angle a1 and the rotation angle A2 for machining double oblique holes based on the included angle a2; The verification and judgment module drives the dual worktables to rotate according to different rotation methods based on rotation angles A1 and A2. After the rotation is in place, the center coordinates of the opening and bottom of the double inclined holes are obtained. The center coordinates of the opening and bottom of the holes are compared to verify whether the rotation angles A1 and A2 are incorrect.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the method for obtaining the rotation angle of double oblique hole machining as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Three-in-one driving shell virtual processing simulation method and system, electronic equipment and storage medium
CN119105308A