A method for calculating the equal distribution of the part allowance of a horizontal machining center

By determining the origin of the workpiece machining coordinate system in a horizontal machining center and using B-axis rotation to calculate the offset of the midpoints at both ends of the workpiece and taking the midpoint, the problem of uneven allowance in irregular workpieces is solved, thus improving machining accuracy and efficiency.

CN117583950BActive Publication Date: 2026-03-24AEROSPACE LIFE SUPPORT IND LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

When machining irregular workpieces, horizontal machining centers with a B-axis may experience coaxial errors due to workpiece deformation or welding, resulting in uneven allowances that affect machining efficiency and quality. Existing measurement modules cannot automatically calculate the even distribution of allowances.

Method used

By determining the origin of the workpiece machining coordinate system in a horizontal machining center, using the B-axis rotation to obtain the coordinates of the midpoints at both ends of the workpiece, calculating the offset and taking the midpoint, and combining this with copper shims to adjust the workpiece flatness, the allowance is evenly distributed.

Benefits of technology

This solves the problem of uneven allowance caused by misalignment at both ends of the part, improves machining accuracy and efficiency, and meets the demand for high-efficiency and high-quality production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117583950B_ABST
    Figure CN117583950B_ABST
Patent Text Reader

Abstract

The application discloses a kind of calculation methods of horizontal machining center to part allowance even division, comprising: part is horizontally set on the machining table of horizontal machining center machine tool in any position;The center position of part is regarded as the origin of part processing coordinate system, the position of part processing coordinate system relative to machine tool coordinate system and the position of the center position of part relative to machine tool coordinate system B axis are determined;The origin of part processing coordinate system is rotated along machine tool coordinate system B axis, respectively obtains the midpoint coordinate of two ends of part along B axis rotation 90 degrees and negative 90 degrees, and the offset coordinate value after the midpoint coordinate of two ends of part along B axis rotation 90 degrees and negative 90 degrees is calculated to be converted into the midpoint coordinate of two ends of part under B axis 0 degrees, and the median value is taken to the offset coordinate value, and the median value is regarded as the origin coordinate of part processing coordinate system after allowance even division.This application solves the problem of uneven allowance caused by the different shafts of the machined parts such as castings, forgings and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of online measurement for multi-axis CNC machine tools, specifically relating to a method for calculating the equal distribution of part allowances in a horizontal machining center. Background Technology

[0002] Horizontal machining centers with a B-axis offer unique advantages in machining box-shaped parts, allowing for multi-angle machining in a single setup. However, irregular workpiece shapes or welding deformation can introduce errors in coaxial alignment, leading to axis misalignment. Without evenly distributing allowances, the workpiece symmetry will fail to meet process requirements, placing even higher demands on the workpiece. The machine tool's built-in measurement module can only determine the center position of the port holes, requiring the operator to manually record the data, perform mathematical calculations, and then input it again. In actual production, this significantly impacts production cycle time and processing efficiency, failing to meet the demands for high-efficiency, high-quality production. Summary of the Invention

[0003] The purpose of this invention is to provide a method for calculating the even distribution of allowances for parts in a horizontal machining center, which solves the problem of uneven allowances caused by the misalignment of the two ends of the workpiece during casting, forging, and other machining processes.

[0004] To solve the above-mentioned technical problems, the technical solution of the present invention is: a method for calculating the equal distribution of part allowance in a horizontal machining center, comprising the following steps:

[0005] The part is horizontally positioned on any location on the machining table of the horizontal machining center.

[0006] The center position of the part is used as the origin of the part machining coordinate system to determine the position of the part machining coordinate system relative to the machine tool coordinate system and the position of the center position of the part relative to the B-axis of the machine tool coordinate system.

[0007] Rotate the origin of the part machining coordinate system along the B-axis of the machine tool coordinate system to obtain the coordinates of the midpoints at both ends of the part after rotating 90 degrees and -90 degrees along the B-axis, respectively. Calculate the offset coordinate values ​​after converting the midpoint coordinates of both ends of the part to the midpoint coordinates at 0 degrees along the B-axis. Take the median of the offset coordinate values ​​and use this median as the origin coordinate of the part machining coordinate system after the allowance is evenly distributed. The midpoints at both ends of the part are the midpoints of the side surfaces at both ends of the part.

[0008] When a part cannot be set horizontally, use shims to pull it flat.

[0009] The gasket is a copper gasket.

[0010] The calculation method of the offset coordinate values of the two end midpoint coordinates of the part after the two end midpoint coordinates of the part under the B-axis 0 degree is that: first, the two end midpoint coordinates of the part after the two end midpoint coordinates of the part under the B-axis 90 degrees and negative 90 degrees are respectively calculated by the allowance equal division calculation, and then the results of the allowance equal division calculation are calculated by rotation to obtain the offset coordinate values of the two end midpoint coordinates of the part after the two end midpoint coordinates of the part under the B-axis 0 degree.

[0011] The part is selected as a cylinder welding piece.

[0012] The center of the cylinder welding piece is selected as the hole center.

[0013] Also provided is a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of the above when executing the computer program.

[0014] Also provided is a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executable on a processor to implement the steps of the method according to any one of the above.

[0015] Compared with the prior art, the present application has the following beneficial effects:

[0016] The present application solves the problem of uneven allowance caused by the different shafts of the two ends of the machined part by calculating the new evenly divided coordinate origin machine tool coordinate value through the coordinate rotation calculation and the average value. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 Fig. 1 is a schematic diagram of the part structure of the embodiment of the present application;

[0018] Figure 2 Fig. 2 is a schematic diagram of the part under-90 degrees of the B-axis in the embodiment of the present application;

[0019] Figure 3 Fig. 3 is a schematic diagram of the part under 0 degrees of the B-axis in the embodiment of the present application;

[0020] Figure 4 Fig. 4 is a schematic diagram of the part under 90 degrees of the B-axis in the embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below in combination with the drawings and examples. It should be understood that the specific examples described herein are only used to explain the present application and do not limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0022] The technical scheme of the present application is: a method for calculating the equal division of the remaining amount of a part by a horizontal machining center, which adopts a horizontal machining center with an infrared probe and a measurement module, such as shown in Figure 1 Taking a welded deformation part as an example: the processed part of the two-end welded part has coaxiality requirement, and the remaining amount is small. Due to welding error and thermal deformation, the two-end axis deviates, and when the welded part is placed on the V-shaped block, one end will be suspended. The method includes the following steps:

[0023] Step 1:

[0024] Place the part to any position of the machine tool. After placing, pay attention to the error of the two-end axis caused by the welding error of the welded part, which causes the part to be unable to be placed horizontally when one end is attached to the V-shaped block. At this time, copper sheet is needed to help flatten the main body of the part.

[0025] Step 2:

[0026] Determine the reference point and angle direction of the part machining coordinate system. In the horizontal machining center, the machine tool workbench can rotate 360 degrees continuously around the workbench rotation center. When processing, the coordinate system origin and the angle of the B-axis in the machine tool coordinate system need to be determined. The position of the machining coordinate system B0 needs to be determined by flattening the main body of the part, and then the X value and Y value of the two-end head axis in the machine tool coordinate system are determined by rotating the machine tool coordinate system by 90 degrees and -90 degrees. The offset of the Y direction and the Z direction relative to the detection front coordinate system after the equal division of the remaining amount can be obtained by macro program calculation.

[0027] Use the calibrated probe to detect the center positions of the two-end holes of the part. Figure 1 A and B are the center points of the two-end holes of the part

[0028] Probe program

[0029] T999

[0030] M6

[0031] G0G90B0G56; measure the X and Y values of the -90 degree hole mechanical coordinate system.

[0032] X0Y0

[0033] Z150

[0034] Z10 F1000

[0035] Z-10

[0036] CYCLE977(101,10003,,1,108,,,10,5,0,1,1,,,1,””,,0,1.01,1.01,-1.01,0.34,1,0,,1,1)

[0037] G0Z350

[0038] G0G90B0G57; measure X, Y values of B90 degree mechanical coordinate system.

[0039] X0Y0

[0040] Z150

[0041] Z10 F1000

[0042] Z-10

[0043] CYCLE977(101,10003,,1,108,,,10,5,0,1,1,,,1,””,,0,1.01,1.01,-1.01,0.34,1,0,,1,1)

[0044] G0Z350

[0045] Step three:

[0046] The following subprogram segment is programmed on the machine tool (Siemens 840D system is taken as an example)

[0047] The B-90 degree, B0, B90 degree state of the part is as shown in Figures 2-4 , and it is assumed that the coordinate system origin position is

[0048] (X1,Y1,Z1,B1) through the detection of B90 degrees and B-90 degrees hole center coordinates, set B90 degrees hole center coordinates for (X2, Y2, Z2, B1 + 90), B-90 degrees coordinates for (X3, Y3, Z3, B1-90). Need to determine the offset through the calculation of two angle axis conversion to the unified B0 angle after taking the median value is the processing coordinate system origin coordinates after the equal division of the margin. Through the reference material can know, B90 degrees hole center coordinates conversion to B0 angle after the coordinate value for (X2COS (-90)-Z2SIN (-90), Y2, Z2COS (-90)-X2SIN (-90), B1) that is (Z2, Y2, X2, B1), B-90 degrees hole center coordinates conversion to B0 angle after the coordinate value for (X3COS (90)-Z3SIN (90), Y3, Z3COS (90)-X3SIN (90), B1) that is (-Z3, Y3, -X3, B1), can get the coordinate system origin position (X1, (Y2+Y3) / 2, (-X3+X2) / 2, B1) after the equal division of the margin.

[0049] ; %_N_L2_SPF

[0050] ; R140 = $P_UIFR[3, X, TR] get G56, G57 coordinate system that is B-90 degrees and B90 degrees two angle axis coordinate position of X, Y value that is X2, X1, Y2, Y1.

[0051] R141 = $P_UIFR[4, X, TR]

[0052] R142 = $P_UIFR[3, Y, TR]

[0053] R143 = $P_UIFR[4, Y, TR]

[0054] R144 = 0.5 * (-R140 + R141); Calculate (-X3+X2) / 2 get the B0 angle coordinate system after the equal division of the margin Z value

[0055] R145 = 0.5 * (R142 + R143); Calculate (Y2+Y3) / 2 get the B0 angle coordinate system after the equal division of the margin Y value

[0056] R139 = $P_UIFR[R300, Y, TR]; processing coordinate system rotation calculation, R300 for the main coordinate system number, assigned by the main program, G54 coordinate system corresponds to 1

[0057] R311 = $P_UIFR[R300, X, TR]

[0058] R312 = $P_UIFR[R300, Z, TR]

[0059] R313 = ATAN2 (R301 + R311, R302 + R144); R301, R302 are assigned by main program, R301 is the offset of sub-coordinate system relative to X direction of main coordinate system, R302 is the offset of sub-coordinate system relative to Z direction of main coordinate system.

[0060] R320 = SQRT (POT (R301 + R311) + POT (R302 + R144))

[0061] R323 = R313 - R303; R303 is assigned by main program, R303 is the angle offset of sub-coordinate system relative to main coordinate system, i.e. rotation angle.

[0062] R321 = R320 * SIN (R323) - R311

[0063] R322 = R320 * COS (R323) - R312

[0064] TRANS X = R321 Z = R322 Y = R145 - R139; coordinate system offset to program sub-coordinate system is performed

[0065] M17

[0066] Step four

[0067] Run main program, complete the machining of the part, and send to inspection metering product coaxiality.

[0068] Those skilled in the art will readily understand that the above description is only the preferred embodiment of the present application, and is not intended to limit the present application, and any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for calculating the equal distribution of workpiece allowance in a horizontal machining center, characterized in that, Includes the following steps: The part is horizontally positioned on any location on the machining table of the horizontal machining center. The center position of the part is used as the origin of the part machining coordinate system to determine the position of the part machining coordinate system relative to the machine tool coordinate system and the position of the center position of the part relative to the B-axis of the machine tool coordinate system. Rotate the origin of the part machining coordinate system along the B-axis of the machine tool coordinate system to obtain the coordinates of the midpoints at both ends of the part after rotating 90 degrees and -90 degrees along the B-axis, respectively. Calculate the offset coordinate values ​​after converting the midpoint coordinates of both ends of the part to the midpoint coordinates at 0 degrees along the B-axis for both rotations of 90 degrees and -90 degrees. Take the median of the offset coordinate values ​​and use this median as the origin coordinate of the part machining coordinate system after the allowance is evenly distributed. The midpoints at both ends of the part are the midpoints of the side surfaces at both ends of the part. The specific method for calculating the offset coordinates of the midpoints at both ends of the part after rotating 90 degrees and -90 degrees along the B-axis is as follows: First, the midpoint coordinates at both ends of the part after rotating 90 degrees and -90 degrees along the B-axis are calculated by dividing the margin equally. Then, the result of the margin division calculation is rotated to obtain the offset coordinates of the midpoints at both ends of the part under the B-axis at 0 degrees.

2. The method for calculating the equal distribution of part allowance in a horizontal machining center according to claim 1, characterized in that, When a part cannot be set horizontally, use shims to pull it flat.

3. The method for calculating the equal distribution of part allowance in a horizontal machining center according to claim 2, characterized in that, The gasket is a copper gasket.

4. The method for calculating the equal distribution of part allowance in a horizontal machining center according to claim 1, characterized in that, The selected part is a cylindrical welded component.

5. The method for calculating the equal distribution of part allowance in a horizontal machining center according to claim 4, characterized in that, The center of the cylindrical welded component is selected from its hole center.

6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Fully automated grinding method for vertical internal and external cylindrical grinding machines

    CN102275099A

  • Method for achieving RTCP machining on four-axis horizontal-type machining center

    CN103659460A