A method for detecting the machining limits of tilting machine tools based on the NX modeling module.
Patent Information
- Application Number
- CN202410060559.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2044-01-16
AI Technical Summary
在现有技术中,针对于需要进行摆角孔加工的模具设计,虽然NX软件本身自带加工模块,通过NC编程也可以达到机床模拟的效果,但是步骤繁琐,对于非CAM人员实际运用难度大,一般不采用此方法
[0047] The limit detection method for swivel machine tool processing based on NX software provided by this invention allows for direct simulation of the swivel machine tool processing state during the mold design stage. This enables a direct assessment of whether there is interference when the tool is located at the target point, thus allowing for early assessment of the mold processing feasibility and avoiding subsequent rework and mold modifications, thereby significantly reducing the processing cost of mold development and design.
Smart Images

Figure CN117787012B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mold processing technology, and specifically to a method for detecting the limits of sway angle machine tool processing based on the NX modeling module. Background Technology
[0002] NX is an interactive CAD / CAM (Computer-Aided Design and Computer-Aided Manufacturing) system with powerful functions that can easily construct various complex entities and shapes. With the development of PC hardware and the rapid growth of individual users, the application of NX on PCs has grown rapidly and has become a mainstream application software for 3D design in the mold industry.
[0003] In the machining process of many molds, the cutting tool involves not only linear movement in the X, Y, and Z axes but also angular motion. For example, when machining holes on the inclined surface of a mold (angular holes), a 3+2 machine tool is generally used. The B and C axes of this type of machine tool will cause the cutting tool to oscillate in space. In existing technology, for mold designs requiring angular hole machining, although NX software has a built-in machining module and NC programming can achieve machine tool simulation, the process is cumbersome and difficult for non-CAM personnel to use in practice, so this method is generally not adopted. Furthermore, due to insufficient machining experience or carelessness on the part of designers, the feasibility of angular hole machining is easily overlooked for some side-punch or side-tilting molds, resulting in severe interference with angular machining features during actual machining, making successful completion impossible. Discovering the problem during machining requires reverse molding, revising the design drawings, and remapping, which is not only time-consuming and labor-intensive but also significantly increases machining costs. Summary of the Invention
[0004] In view of this, the present invention provides a method for detecting the machining limits of a swing angle machine tool based on the NX modeling module. The purpose of this invention is to determine the feasibility of mold machining in advance during the mold design stage, so as to ensure that tool interference does not occur.
[0005] To achieve the above objectives, the technical solution of the present invention is as follows:
[0006] A method for detecting the machining limits of a tilting machine tool based on the NX modeling module, characterized by the following steps:
[0007] Step 1: Model the tilting machine tool in NX software;
[0008] Step 2: Model the mold to be processed in NX software;
[0009] Step 3: Designate one of the surfaces to be processed in the mold from Step 2 as a vector, and designate any point on the surface to be processed in the mold from Step 2 as the target point;
[0010] Step 4: Obtain an array of class name TaggedObject from the vector specified in Step 3 using GetTaggedObjectVector(“SelectedObjects”), and then convert the first element in the array to the Direction type. The Direction type contains the three components of the vector, namely I, J and K.
[0011] Step 5: The I, J, and K component values obtained in Step 4 are based on the absolute coordinate system of the NX software. The I, J, and K component values are then transformed to the user coordinate system (WCS).
[0012] Step 6: Use a custom function to convert the three components that have been converted to the user coordinate system into PR, where P is the azimuth angle, i.e., the rotation angle of the C-axis (CaxisAngle), and R is the tilt angle, i.e., the rotation angle of the B-axis (BaxisAngle).
[0013] Step 7: Import the Z-axis, C-axis, and B-axis of the tilting machine tool created in Step 1, as well as the cutting tools to be used, into the system respectively;
[0014] Step 8: According to the selected tool length, translate each axis in the Z direction to complete tool clamping;
[0015] Step 9: Create a point (X0, Y0, Z0) at the tip of the blade and record it;
[0016] Step 10: Use the TransformObjects function to rotate the points created by the B-axis and the tool and tool tip positions around the rotation axis BaxisAngle;
[0017] Step 11: Use the TransformObjects function to rotate the C-axis, B-axis, and the tool and tool tip points around the C-axis rotation axis, CaxisAngle;
[0018] Step 12: At this time, the machine tool is in the absolute coordinate system, and the mold to be processed is in the user coordinate system. Perform the TransformObjects operation to transform the machine tool, tool, and tool tip point to the user coordinate system.
[0019] Step 13: Use the point-to-point function to move the machine tool tool to the target point, and observe whether there is any interference between the machine tool and the object being inspected when the tool is at that point.
[0020] By adopting the above method, the feasibility of processing any point of the mold to be processed can be observed during the mold design stage through the operation and conversion of the entire program. This facilitates timely modification of mold parameters and reduces processing costs.
[0021] Preferably, in step one, the tilting machine tool includes an X-axis, a Y-axis, a Z-axis, a B-axis, and a C-axis. The X, Y, and Z axes are used to move the tool along the X, Y, and Z directions, respectively. The C-axis is mounted on the Z-axis and rotates around it to determine the orientation angle during machining. The B-axis is mounted on the C-axis and rotates around the Y-axis to determine the tilt angle during machining. A spindle is fixedly mounted on the B-axis to hold the tool and provide rotational force. The tool is mounted on the spindle for cutting the material. With this structure, the tilting machine tool can machine the inclined surfaces of molds.
[0022] As a preferred method, during inspection, the X and Y axes are disregarded, the spindle and B axis are considered together, and the Z, C, and B axes are treated as fixed components with default inputs. The tool is selected based on different machining scenarios. This method simplifies the inspection process.
[0023] Preferably, in step seven, the tool to be used can be directly retrieved from the tool library in the NX software. This method eliminates the need for tool modeling.
[0024] As a preferred embodiment, the code for obtaining the three components I, J, and K by specifying a vector in step four is as follows:
[0025] PropertyList properList=this.vector0.GetProperties();
[0026] TaggedObject[]selVector=properList.GetTaggedObjectVector
[0027] ("SelectedObjects");
[0028] Direction dir=(Direction)selVector[0].
[0029] Using the above method, a given vector can be converted into three component values: I, J, and K.
[0030] As a preferred embodiment, the code for converting the three component values to the user coordinate system in step five is as follows:
[0031] double abs_i,abs_j,abs_k,wcs_i,wcs_j,wcs_k;
[0032] abs_i = dir.Vector.X;
[0033] abs_j = dir.Vector.Y;
[0034] abs_k = dir.Vector.Z;
[0035] wcs_i=WCS_Element[0]*abs_i+WCS_Element[1]*abs_j+WCS_Element[2]*abs_k;
[0036] wcs_j=WCS_Element[3]*abs_i+WCS_Element[4]*abs_j+WCS_Element[5]*abs_k;
[0037] wcs_k=WCS_Element[6]*abs_i+WCS_Element[7]*abs_j+WCS_Element[8]*abs_k.
[0038] Using the above method, the three component values can be transformed into the user coordinate system.
[0039] As a preferred embodiment, the code for converting the three component values (converted to the user coordinate system) to PR using a custom function in step six is as follows:
[0040] double P = 0;
[0041] double R = 0;
[0042] GetPR(wcs_i,wcs_j,wcs_k,ref P,ref R);
[0043] BaxisAngle = R;
[0044] CaxisAngle = P.
[0045] Using the above method, the three component values that have been converted to the user coordinate system are converted into the rotation angles required for the B-axis and C-axis.
[0046] Compared with the prior art, the beneficial effects of the present invention are:
[0047] The limit detection method for swivel machine tool processing based on NX software provided by this invention allows for direct simulation of the swivel machine tool processing state during the mold design stage. This enables a direct assessment of whether there is interference when the tool is located at the target point, thus allowing for early assessment of the mold processing feasibility and avoiding subsequent rework and mold modifications, thereby significantly reducing the processing cost of mold development and design. Attached Figure Description
[0048] Figure 1The display shows the UI design interface after the swing angle machining limit check is defined in NX software.
[0049] Figure 2 This is the initial state structure diagram after importing the tilting machine tool (only the Z-axis, C-axis, and B-axis that need to be considered are shown).
[0050] Figure 3 This is a structural diagram of the initial state of the tilting machine tool after the cutting tools are assembled.
[0051] Figure 4 This is a schematic diagram of the structure of the B-axis rotating to the BaxisAngle of the tilting machine.
[0052] Figure 5 This is a schematic diagram of the C-axis rotation of a tilting machine tool to the CaxisAngle.
[0053] Figure 6 This is a reference diagram showing the movement of the tool of the tilting machine to the target point.
[0054] Figure 7 This is a reference diagram illustrating tool interference during machining on a tilting-angle machine.
[0055] In the diagram, 1 is the Z-axis; 2 is the C-axis; 3 is the B-axis; 4 is the cutting tool; 5 is the mold; and 6 is the hole to be machined. Detailed Implementation
[0056] The present invention will be further described below with reference to the embodiments and accompanying drawings.
[0057] This embodiment uses a 3+2 tilting angle machine tool as an example to illustrate processing and inspection. The axes used in the 3+2 tilting angle machine tool mainly include the X-axis, Y-axis, Z-axis 1, B-axis 3, and C-axis 2. The X-axis is generally a crossbeam, which is fixed to the foundation and moves by the left and right movement of the machine bed. The Y-axis is suspended on the crossbeam and moves along the short direction of the machine bed using the crossbeam as a guide rail. The Z-axis 1 is perpendicular to the plane of the machine bed and moves up and down by the lifting motion of the Y-axis. The C-axis 2 is installed directly below the Z-axis 1 and rotates around the Z-axis 1. The C-axis 2 can be used to determine the orientation angle during processing. The B-axis 3 is installed on the C-axis 2 and rotates around the Y-axis. The B-axis 3 can be used to determine the tilt angle during processing. In addition to the above five axes, the tilting angle machine tool also has a spindle installed on the B-axis 3 and moving with the B-axis 3, and a cutting tool 4 clamped on the spindle. The spindle is used to clamp the cutting tool 4 and provide rotational force, while the cutting tool 4 is used to cut the material.
[0058] In the limit detection of the tilting machine tool in this embodiment, the influence of the X-axis and Y-axis can be ignored, and the spindle and B-axis 3 can be considered together. Therefore, in the limit detection of the tilting machine tool of the present invention, only the Z-axis 1, C-axis 2, B-axis 3 and the tool 4 need to be considered.
[0059] like Figure 7 As shown, the purpose of this embodiment is to test the machining feasibility of the hole 6 to be machined in the figure. In the figure, the hole 6 to be machined is located on the inclined surface of the mold 5. When the tool 4 moves to the position of the hole 6 to be machined, there is severe interference between each axis and the mold 5, which makes it impossible to machine the hole 6. At this point, the machining stage has already begun, and it is difficult and time-consuming to modify the drawing. Therefore, this invention is needed to discover this problem in the design stage and then make timely modifications.
[0060] A method for detecting the machining limits of a tilting machine tool based on the NX modeling module includes the following steps:
[0061] Step 1: Model the tilting machine tool in NX software. In this embodiment, the tilting machine tool includes an X-axis, Y-axis, Z-axis 1, B-axis 3, and C-axis 2. The X-axis, Y-axis, and Z-axis 1 are used to move the tool along the X, Y, and Z directions, respectively. The C-axis 2 is mounted on the Z-axis 1 and rotates around it to determine the orientation angle during machining. The B-axis 3 is mounted on the C-axis 2 and rotates around the Y-axis to determine the tilt angle during machining. A spindle is fixedly mounted on the B-axis 3 to hold the tool 4 and provide rotational force. The tool 4 is mounted on the spindle for cutting the material. In this embodiment, the X-axis and Y-axis are not considered during detection. The spindle and B-axis 3 are considered together. The Z-axis 1, C-axis 2, and B-axis 3 are fixed components and are input by default. The tool 4 is selected according to different machining scenarios.
[0062] Step 2: Model the mold to be processed in NX software;
[0063] Step 3: This embodiment, through personalization and customization in NX software, can automatically generate, such as... Figure 1 In the UI interface shown, we need to input a specified point and a specified vector. The specified vector in this invention refers to a surface to be processed in the mold to be processed in step two, and the specified point refers to the target point on the surface to be processed that we need to check whether it is feasible to process.
[0064] Step 4: After specifying a vector, this invention will obtain an array of class name TaggedObject through GetTaggedObjectVector("SelectedObjects"), and then convert the first element of this array to the Direction type. The Direction type contains the three components of the vector, namely I, J and K. The specific code is as follows:
[0065] PropertyList properList=this.vector0.GetProperties();
[0066] TaggedObject[]selVector=properList.GetTaggedObjectVector
[0067] ("SelectedObjects");
[0068] Direction dir=(Direction)selVector[0];
[0069] Step 5: The three components obtained in Step 4 are based on the absolute coordinate system in NX software. However, the user coordinate system (WCS) is generally used in machining processes. Therefore, it is necessary to transform the three component values from Step 4 to the user coordinate system. The specific code is as follows:
[0070] double abs_i,abs_j,abs_k,wcs_i,wcs_j,wcs_k;
[0071] abs_i = dir.Vector.X;
[0072] abs_j = dir.Vector.Y;
[0073] abs_k = dir.Vector.Z;
[0074] wcs_i=WCS_Element[0]*abs_i+WCS_Element[1]*abs_j+WCS_Element[2]*abs_k;
[0075] wcs_j=WCS_Element[3]*abs_i+WCS_Element[4]*abs_j+WCS_Element[5]*abs_k;
[0076] wcs_k=WCS_Element[6]*abs_i+WCS_Element[7]*abs_j+WCS_Element[8]*abs_k;
[0077] Step Six: Convert the three component values that have been transformed to the user coordinate system in Step Five into PR using a custom function. Here, P is the azimuth angle, i.e., the angle Caxis2 needs to be rotated by (CaxisAngle), and R is the tilt angle, i.e., the angle Baxis3 needs to be rotated by (BaxisAngle). The specific code is as follows:
[0078] double P = 0;
[0079] double R = 0;
[0080] GetPR(wcs_i,wcs_j,wcs_k,ref P,ref R);
[0081] BaxisAngle = R;
[0082] CaxisAngle = P;
[0083] Step Seven: As Figure 2 As shown, after obtaining the required rotation angles of B-axis 3 and C-axis 2, the tilting machine tool from step one and the tool 4 required for machining the mold are imported into the system of this invention. In the limit detection of the tilting machine tool, the influence of the X-axis and Y-axis can be ignored, so only Z-axis 1, C-axis 2 and B-axis 3 need to be imported. In the initial state, the tip of the tool 4 is located at the absolute coordinate origin, and the intersection of the rotation axis of B-axis 3 and the rotation axis of C-axis 2 is also located at the absolute coordinate origin.
[0084] Step 8: As Figure 3 As shown, the tool 4 is clamped by translating each axis along the Z-axis according to its length.
[0085] Step 9: Create a point (X0, Y0, Z0) at the tool tip position and record it. This point will move as the tool 4 and the machine tool move.
[0086] Step 10: As Figure 4 As shown, the TransformObjects function is used to rotate the points created by B-axis 3, tool 4, and tool tip position around the rotation axis of B-axis 3 by BaxisAngle, where BaxisAngle is the tilt angle obtained in step six.
[0087] Step 11: As Figure 5 As shown, the TransformObjects function is used to rotate C-axis 2, B-axis 3, together with the tool 4 and the tool tip, around the rotation axis of C-axis 2 by CaxisAngle. CaxisAngle is the azimuth angle transformed in step six.
[0088] Step 12: After completing the spatial orientation of the machine tool, the machine tool is now in the absolute coordinate system, while the object being inspected (i.e. the mold to be processed) is in the user coordinate system. A TransformObjects operation needs to be performed to transform the machine tool, tool 4, and tool tip point to the user coordinate system. This ensures that the machine tool and the mold to be processed are in the same coordinate system, which facilitates coordinate transformation and positioning.
[0089] Step Thirteen: As Figure 6 As shown, use the point-to-point function to move tool 4 to the target point and observe whether there is any interference between the machine tool and the mold to be processed.
[0090] This invention allows designers to observe the feasibility of processing the mold during the design stage, effectively avoiding the phenomenon of rework due to unprocessable molds and greatly reducing processing costs.
[0091] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention. Those skilled in the art, under the guidance of the present invention, can make various similar representations without departing from the spirit and claims of the present invention, and such modifications all fall within the protection scope of the present invention.
Claims
1. A method for detecting the machining limits of a tilting machine tool based on the NX modeling module, characterized in that: Includes the following steps: Step 1: Model the tilting machine tool in NX software; Step 2: Model the mold to be processed in NX software; Step 3: Designate one of the surfaces to be processed in the mold from Step 2 as a vector, and designate any point on the surface to be processed in the mold from Step 2 as the target point; Step 4: Obtain an array of class name TaggedObject from the vector specified in Step 3 using GetTaggedObjectVector("SelectedObjects"); then convert the first element in the array to a Direction type. The Direction type contains the three components of the vector, namely I, J and K. Step 5: The three component values I, J, and K obtained in Step 4 are based on the absolute coordinate system of the NX software. The three component values I, J, and K are then transformed into the user coordinate system. Step 6: Use a custom function to convert the three components that have been converted to the user coordinate system into PR, where P is the azimuth angle, i.e., the rotation angle of the C-axis (CaxisAngle), and R is the tilt angle, i.e., the rotation angle of the B-axis (BaxisAngle). Step 7: Import the Z-axis, C-axis, and B-axis of the tilting machine tool created in Step 1, as well as the cutting tools to be used, into the system respectively; Step 8: According to the selected tool length, translate each axis in the Z direction to complete tool clamping; Step 9: Create a point (X0, Y0, Z0) at the tip of the blade and record it; Step 10: Use the TransformObjects function to rotate the points created by the B-axis and the tool and tool tip positions around the rotation axis BaxisAngle; Step 11: Use the TransformObjects function to rotate the C-axis, B-axis, and the tool and tool tip points around the C-axis rotation axis, CaxisAngle; Step 12: At this time, the machine tool is in the absolute coordinate system, and the mold to be processed is in the user coordinate system. Perform the TransformObjects operation to transform the machine tool, tool, and tool tip point to the user coordinate system. Step 13: Use the point-to-point function to move the machine tool tool to the target point, and observe whether there is any interference between the machine tool and the object being inspected when the tool is at that point.
2. The method for detecting the machining limits of a tilting machine tool based on the NX modeling module according to claim 1, characterized in that: In step one, the tilting machine tool includes an X-axis, a Y-axis, a Z-axis, a B-axis, and a C-axis. The X-axis, Y-axis, and Z-axis are used to move the tool along the X, Y, and Z directions, respectively. The C-axis is mounted on the Z-axis and rotates around the Z-axis to determine the orientation angle during machining. The B-axis is mounted on the C-axis and rotates around the Y-axis to determine the tilt angle during machining. A spindle is fixedly mounted on the B-axis to hold the tool and provide rotational force. The tool is mounted on the spindle for cutting the material.
3. The method for detecting the machining limits of a tilting machine tool based on the NX modeling module according to claim 2, characterized in that: When performing inspection, the X and Y axes are not considered. The spindle and B axis are considered together. The Z, C, and B axes are fixed components and are input by default. The tool is selected according to different machining scenarios.
4. The method for detecting the machining limits of a tilting machine tool based on the NX modeling module according to claim 1, characterized in that: In step seven, the tool to be used can be retrieved directly from the tool library in the NX software.
Citation Information
Patent Citations
Post-processing method for domestic double pendulum head five shaft machine tool
CN103592888A
NC code simulation method for six-shaft transformation of five-shaft numerical control gantry machine tool
CN110244656A