Zero point positioning method for horizontal four-axis machining center
By using macro programs to automatically calculate and fine-tune the zero point in the horizontal four-axis machining center, calculation errors and machine collision problems caused by the lack of zero point positioning function in the prior art are solved, and high-precision and high-efficiency workpiece processing are achieved.
Patent Information
- Application Number
- CN202411679950.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-11-22
AI Technical Summary
The existing horizontal four-axis machining center lacks zero point positioning function when processing multi-angle workpieces, resulting in manual calculation and input coordinates, which is prone to calculation errors and machine collisions, increasing production costs.
The macro program is used to calculate the zero point at any angle in the machine tool, and the zero point coordinate is calculated by initializing the offset, reading the rotation center coordinates, inputting the processing point coordinates and the offset angle relative to the B-axis, and fine-tuning and correct positioning of the zero point is achieved by adjusting the error offset.
It realizes automatic calculation and fine-tuning of zero points in a horizontal four-axis machining center, reduces manual calculation errors, improves machining accuracy and efficiency, and is especially suitable for workpiece processing with large batches and high precision.
Smart Images

Figure CN119882589A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of horizontal machining, in particular to a zero point positioning method for a horizontal four-axis machining center. Background Art
[0002] The so-called zero-point positioning on a four-axis horizontal machining center means that when the machining zero point of the workpiece and the rotation center of the worktable do not coincide, the workpiece needs to be processed at multiple angles. When the worktable rotates, the machining zero point of the workpiece will also move. It is necessary to manually calculate the zero point after the angle change and then input it into the coordinate system of the machine tool. For example, the four-axis horizontal machining center MAR-630H machine tool adopts the OKUMA OSP-P300M-e system and does not have a zero-point positioning function. When the workpiece needs to be processed at multiple angles, a coordinate zero point needs to be defined for each angle, and then it needs to be calculated by drawing method or formula method. The remaining zero points need to be calculated manually or using CAD software, and then input into the machine tool. Errors in the calculation and input process may cause the machine tool to collide, thereby increasing production costs. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a zero point positioning method for a horizontal four-axis machining center. The macro program can be used to calculate the zero point of any angle in the machine tool, which is very practical in large-scale and high-precision workpiece processing. It can also realize the function of fine-tuning all zero points and prevent the calculation of zero point errors caused by incorrect input of other parameters.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] A zero point positioning method for a horizontal four-axis machining center comprises the following steps:
[0006] S1. Initialize the offset and clear all offset values to zero;
[0007] S2, read the mechanical coordinates of the rotation center;
[0008] S3, input the X, Y, Z values of the coordinate system of the first processing point and the offset angle relative to the B axis, and calculate the coordinates of the first processing point after rotation according to the mechanical coordinates of the rotation center;
[0009] S4, calculating the zero point coordinates according to the offset information;
[0010] S5. Process the device according to the zero-point coordinates to check whether it is within the tolerance range. If not, adjust the error offset and perform several processing steps until the finished product meets the composite processing standard.
[0011] S6. When it is necessary to calculate several sets of zero point coordinates, when calculating the first set of zero point coordinates, the number of the input coordinate system IN=1; when calculating the Nth set of zero point coordinates, repeat the above steps and the number of the input coordinate system IN=N.
[0012] The further improvement of the technical solution of the present invention is: in S1, let: PX=0, PY=0, PZ=0, PB=0;
[0013] Among them, PX is the X offset between the worktables, PY is the Y offset between the worktables, PZ is the Z offset between the worktables, and PB is the relative B-axis offset angle;
[0014] Let: PI = 0, PJ = 0, PK = 0;
[0015] Among them, PI is the X offset during error adjustment, PJ is the Y offset during error adjustment, and PK is the Z offset during error adjustment;
[0016] Assign values to IN and PU;
[0017] Among them, IN is the number of the input coordinate system, and PU is the number of the output coordinate system.
[0018] A further improvement of the technical solution of the present invention is that in S2, the center of rotation is O (X0, Y0, Z0).
[0019] A further improvement of the technical solution of the present invention is that: in S3, the first processing point is A (X1, Y1, Z1), which is offset by an angle B1 relative to the B axis;
[0020] The coordinates of the first processing point A relative to the rotation center are (X1-X0, Y1-Y0, Z1-Z0).
[0021] The further improvement of the technical solution of the present invention is that: in S4, PX, PY, PZ, PB are read and updated, the zero point is B (X2, Y2, Z2), and the angle B2 is offset relative to the B axis;
[0022] X-direction difference ΔX=X1-X0+PX;
[0023] Y-direction difference ΔY=Y1-Y0+PY;
[0024] Z-direction difference ΔZ=Z1-Z0+PZ;
[0025] X2=X0+ΔZ*SIN(-PB)+ΔX*COS(-PB)+PI;
[0026] Y2=ΔY+PJ;
[0027] Z2=Z0+ΔZ*COS(-PB)-ΔX*SIN(-PB)+PK.
[0028] A further improvement of the technical solution of the present invention is that in S5, the adjusted error offset includes PI, PJ, and PK.
[0029] A further improvement of the technical solution of the present invention is that it is applied to the OKUMA OSP-P300M-e system.
[0030] A further improvement of the technical solution of the present invention is that it is stored in the G / M code macro instruction in the form of code.
[0031] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:
[0032] 1. When the zero point of the workpiece of the horizontal machining center is not at the rotary center of the worktable, when multi-angle parts need to be processed, it is no longer necessary to use CAD software to draw and calculate the zero point or the formula method to calculate the zero point. The macro program of the present invention can be used to calculate the zero point of any angle in the machine tool, which is especially practical in the processing of large batches and high precision workpieces. The present invention can realize the function of fine-tuning all zero points and can also prevent the function of calculating the zero point due to the wrong input of other parameters.
[0033] 2. In the zero-point positioning of the horizontal four-axis machining center, the zero points of all angles are mostly at one point of the part. This will be different from the size of the drawing during programming, and the correct characteristic parameters need to be found through calculation. To address this shortcoming, the present invention provides a zero-point offset XYZ value, a rotation angle B value, and then an offset XYZ value. In this way, the zero points of other angles can be positioned the same as the drawing reference. During programming, the parameters on the drawing can be input, reducing the time for manual calculation.
[0034] 3. When calculating the zero point at multiple angles, sometimes it is not necessary to offset the value of one of the XYZ items. When XYZ is offset when calculating the previous angle, and the XYZ of this angle does not need to be offset, it is necessary to set the non-offset item of the XYZ of this angle to 0. If you forget to input the parameter, this parameter of the previous angle will be inherited, resulting in a zero point positioning error. In view of this shortcoming, the present invention clears the parameters related to the offset XYZ at the beginning of calling the subroutine, so that even if you forget to input one of the parameters, this parameter will be set to 0, which will not affect the calculation of the zero point, has a good protection effect, and is very safe. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a top view of the horizontal machining center of the present invention;
[0036] Figure 2 Schematic diagram of the origin and rotation center of the machine tool in the present invention;
[0037] Figure 3This is a processing schematic diagram of Example 1 of the present invention;
[0038] Figure 4 This is a schematic diagram of the position of point A in Example 1 of the present invention;
[0039] Figure 5 This is an expanded diagram of the relationship between point A and point B in Example 1 of the present invention;
[0040] Figure 6 This is a schematic diagram of the installation of the bottom hole of the engine cylinder head conduit seat ring in embodiment 2 of the present invention;
[0041] Figure 7 This is a schematic diagram of the bottom hole of the engine cylinder head conduit seat ring in Example 2 of the present invention;
[0042] Figure 8 This is a cross-sectional view of the bottom hole of the engine cylinder head conduit seat ring in embodiment 2 of the present invention. DETAILED DESCRIPTION
[0043] The present invention is further described in detail below with reference to the accompanying drawings and embodiments:
[0044] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" ... etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0045] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", etc. may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "several" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0046] like Figure 1 The figure shows a top view of a horizontal machining center, which is consistent with the machine tool coordinate system;
[0047] Point O is the center of the worktable of the horizontal machining center, point A is the workpiece coordinate system, point B is the workpiece coordinate system after the workpiece is rotated α degrees, and L is the distance from point A to point O;
[0048] Derive the coordinates of point B after point A rotates α degrees around point O:
[0049] The coordinates of point A are (Z1, X1):
[0050] Z1= L Cos β (1)
[0051] X1= L Sin β (2)
[0052] The coordinates of point B are (Z2, X2):
[0053] Z2= L Cos(α+β) (3)
[0054] X2= L Sin(α+β) (4)
[0055] Known trigonometric formulas:
[0056] Sin(α+β)=Sin α Cos β + Cos α Sin β (5)
[0057] Cos (α+β)=Cos α Cos β - Sin α Sin β (6)
[0058] Substituting (5) and (6) into (3) and (4), we obtain
[0059] Z2=L Cos(α+β)=L Cos α Cos β - L Sin α Sin β (7)
[0060] X2=L Sin (α+β)=L Sin α Cos β+L Cos α Sin β (8)
[0061] Substituting (1) and (2) into (7) and (8), we obtain
[0062] Z2= Z1 Cos α - X1 Sin α (9)
[0063] X2= Z1 Sin α +X1 Cos α (10)
[0064] In this way, we get the relationship between point A and point B, but this relationship is relative to the worktable rotation center O, and it needs to be converted into a relationship relative to the machine tool origin.
[0065] The machine origin and rotation center of this machine tool are as follows: Figure 2 Position shown;
[0066] This program sets the coordinates of the worktable's rotation center to O (VC199, VC200), the coordinates of point A to (VC190, VC192), and the coordinates of point B to (VC186, VC185);
[0067] The coordinates of point A relative to the rotation center are (VC190-VC199, VC192-VC200);
[0068] Considering the possible offsets VC198 and VC196, we can get the coordinates of point A relative to point O:
[0069] The Z-direction difference is:
[0070] VC188=VC190-VC199+VC196 (11)
[0071] The difference in X direction is:
[0072] VC187=VC192-VC200+VC198 (12)
[0073] According to the right-hand rule, the rotation direction of the B axis of the horizontal machining center is clockwise, while the mathematical model takes counterclockwise as the positive direction. Therefore, the angle is reversed according to actual needs, and the rotation angle of point B relative to point A is defined as variable VC195 as follows:
[0074] Substituting (11) and (12) into (9) and (10), we can obtain the coordinates of point B' (Z2, X2):
[0075] Z2= VC188*COS[-VC195]-VC187*SIN[-VC195] (13)
[0076] X2=VC188*SIN[-VC195]+VC187*COS[-VC195] (14)
[0077] Adding point B' to the center of rotation gives the coordinates of point B as follows:
[0078] VC186=VC199+VC188*COS[-VC195]-VC187*SIN[-VC195](Z)(15)
[0079] VC185=VC200+VC188*SIN[-VC195]+VC187*COS[-VC195](X)(16)
[0080] Take the model of Kita-OKUMA MAR-630H and the CNC system version of OKUMA OSP-P300M-e as an example.
[0081] The mechanical coordinates of the rotation center are X=0.057, Z=-317.039;
[0082] The following is a subroutine to automatically calculate the zero point:
[0083] OZDHZ / / Subroutine name
[0084] (G111 PX=0PY=0PZ=0PB=0IN=100PU=101PI=0PJ=0PK=0) / / Subroutine usage
[0085] (PX PY PZ PB ZHUAN ZHIQIAN PIAN YI) / / XYZ offset before the table is turned, PB is the offset angle relative to the B axis. Since the machine tool will alarm if it is written in the form of XYZB, keywords are used, so it is defined in the form of PX, PY, PZ, PB
[0086] (PB XIANG DUI) / / Tip: PB is a relative angle, not an absolute angle
[0087] (IN SHU RU ZUOBOXI) / / Define IN as the number of the input coordinate system
[0088] (PU SHU CHU ZUOBIAOXI) / / Define PU as the number of the output coordinate system
[0089] (PIPJ PK ZHUAN ZHI HOU PIAN YI) / / Define PIPJ PK as the XYZ coordinates offset after rotation
[0090] (########################################) / / The words in brackets are comments. They are not executed at runtime. This line serves as a split.
[0091] (#######QING-0#############) / / The clear module is mainly used to clear all offset values before calculation, and then bring them into calculation to prevent calculation errors caused by the last data not being changed.
[0092] VC198=0(PX)
[0093] VC197=0(PY)
[0094] VC196=0(PZ)
[0095] VC195=0(PB)
[0096] VC182=0(PI)
[0097] VC181=0(PJ)
[0098] VC180=0(PK)
[0099] (##########################)
[0100] VC200=0.057 (X HUIZHUAN CENTER) / / X rotation center value
[0101] VC199=-317.039 (Z HUIZHUAN CENTER) / / Z rotation center value
[0102] VC198=PX
[0103] VC197=PY
[0104] VC196=PZ
[0105] VC195=PB
[0106] VC194=IN
[0107] VC193=PU
[0108] VC182=PI(X)
[0109] VC181=PJ(Y)
[0110] VC180=PK(Z) / / The above are variables that assign various parameters to the machine tool
[0111] VC192=VZOFX[VC194] / / Read the X value of the input coordinate system and assign it to VC192
[0112] VC191=VZOFY[VC194] / / Read the Y value of the input coordinate system and assign it to VC191
[0113] VC190=VZOFZ[VC194] / / Read the Z value of the input coordinate system and assign it to VC190
[0114] VC189=VZOFB[VC194] / / Read the B value of the input coordinate system and assign it to VC189
[0115] VC187 = VC192-VC200 + VC198 (X) / / Calculate the difference between the input coordinate system X value and the rotation center X value plus the X offset before the table is turned
[0116] VC188 = VC190 - VC199 + VC196 (Z) / / Calculate the difference between the input coordinate system Z value and the rotation center Z value plus the Z offset before the table is turned
[0117] VC185=VC200+VC188*SIN[-VC195]+VC187*COS[-VC195](X)
[0118] VC186=VC199+VC188*COS[-VC195]-VC187*SIN[-VC195](Z) / / Formula (15)(16)
[0119] VZOFX[VC193]=VC185+VC182 / / Write the X value of zero point 193
[0120] VZOFY[VC193]=VC191+VC197+VC181 / / Write the Y value of zero point 193
[0121] VZOFZ[VC193]=VC186+VC180 / / Write the Z value of zero point 193
[0122] VZOFB[VC193]=VC189 / / Write the B value of zero point 193
[0123] RTS / / Return to main program code
[0124] Put the subroutine for automatic zero point calculation into a file named O8888.SSB (.SSB file is the suffix of the subfile of the CNC system). Then enter the G / M code macro instruction and set the end of G111 to OZDHZ. In this way, G111 can be used instead of CALL OZDHZ to realize the automatic zero point calculation of the CNC system machining center.
[0125] Therefore, a zero-point positioning method for a horizontal four-axis machining center based on the OKUMA OSP-P300M-e system includes the following steps:
[0126] S1. Initialize the offset, clear all offset values to zero, and then bring them into the calculation to prevent calculation errors caused by the last data not being changed;
[0127] Order: PX = 0, PY = 0, PZ = 0, PB = 0;
[0128] Among them, PX is the X offset between the worktables, PY is the Y offset between the worktables, PZ is the Z offset between the worktables, and PB is the relative B-axis offset angle;
[0129] Let: PI = 0, PJ = 0, PK = 0;
[0130] Among them, PI is the X offset during error adjustment, PJ is the Y offset during error adjustment, and PK is the Z offset during error adjustment;
[0131] Assign values to IN and PU;
[0132] Among them, IN is the number of the input coordinate system, and PU is the number of the output coordinate system.
[0133] S2, read the mechanical coordinates of the rotation center;
[0134] The center of rotation is O(X0, Y0, Z0);
[0135] S3, input the X, Y, Z values of the coordinate system of the first processing point and the offset angle relative to the B axis, and calculate the coordinates of the first processing point after rotation according to the mechanical coordinates of the rotation center;
[0136] The first processing point is A (X1, Y1, Z1), which is offset by an angle B1 relative to the B axis;
[0137] The coordinates of the first processing point A relative to the rotation center are (X1-X0, Y1-Y0, Z1-Z0);
[0138] S4, calculating the zero point coordinates according to the offset information;
[0139] Read and update PX, PY, PZ, PB, the zero point is B (X2, Y2, Z2), and the relative B-axis offset angle is B2;
[0140] X-direction difference ΔX=X1-X0+PX;
[0141] Y-direction difference ΔY=Y1-Y0+PY;
[0142] Z-direction difference ΔZ=Z1-Z0+PZ;
[0143] X2=X0+ΔZ*SIN(-PB)+ΔX*COS(-PB)+PI;
[0144] Y2=ΔY+PJ;
[0145] Z2=Z0+ΔZ*COS(-PB)-ΔX*SIN(-PB)+PK;
[0146] S5. Process the device according to the zero-point coordinates to check whether it is within the tolerance range. If not, adjust the error offset and perform several processing steps until the finished product meets the composite processing standard.
[0147] The error offsets that are adjusted include PI, PJ, and PK.
[0148] S6. When it is necessary to calculate several sets of zero point coordinates, when calculating the first set of zero point coordinates, the number of the input coordinate system IN=1; when calculating the Nth set of zero point coordinates, repeat the above steps and the number of the input coordinate system IN=N.
[0149] Example 1
[0150] like Figure 3 , 4As shown in the drawing, two holes, A and B, are required to be drilled. The positions during installation are as shown in the figure below. Point A is the B0 angle of the 4-axis machine tool, and point B is the B270 angle.
[0151] From the figure, we can measure that the XYZ value of A relative to the worktable rotation center is (-90, 130, 210), and the mechanical coordinates of the machine tool rotation center are X = 0.057, Y = 30.048, Z = -317.039;
[0152] so:
[0153] The X-axis mechanical coordinate of point A is 0.057-90=-89.942;
[0154] The Y-axis mechanical coordinate of point A is 30.048+130=160.048;
[0155] The Z-axis mechanical coordinate of point A is -317.039+210=-107.039;
[0156] The B-axis mechanical coordinate of point A is 0;
[0157] Knowing the mechanical coordinates of point A, we can use the macro program to calculate the mechanical coordinates of point B. From the diagram, we can know the relative relationship between point B and point A, such as Figure 5 As shown, L1 = 160, L2 = 150, L3 = 100, L4 = 55, L5 = 75, L6 = 80, from point A, first offset -100 in the X direction, -55 in the Y direction, -80 in the Z direction, then the B axis rotates 270 degrees (or -90 degrees, because one circle is 360 degrees) to obtain the mechanical coordinates of point B in the B270 degree direction. Set point A to use zero point 1 and point B to use zero point 2. The program is as follows:
[0158] VZOFX[1]=-89.942
[0159] VZOFY[1]=160.048
[0160] VZOFZ[1]=-107.039
[0161] VZOFB[1]=0
[0162] G111 PX=-100PY=-55PZ=-80PB=270IN=1PU=2PI=0PJ=0PK=0
[0163] (PI=0PJ=0PK=0 can also be omitted and written as G111 PX=-100PY=-55PZ=-80PB=270IN=1PU=2)
[0164] Processing procedures are omitted here
[0165] If the dimensional tolerance is relatively strict, requiring 55±0.03, 80±0.03, after finishing the first piece of work, the three-coordinate detection is 55.060 and 80.050, then you need to fine-tune the YZ value of zero point 2, so change it to G111PX=-100, PY=-55, PZ=-80, PB=270, IN=1, PU=2, PI=0.05, PJ=0.06, PK=0, and then do another piece and send it for three-coordinate detection until it is debugged within the tolerance.
[0166] Example 2
[0167] This case is to process the bottom hole of the engine cylinder head guide ring, which requires the space dimensions to be 36.3±0.15 and 31.2±0.15. The installation position is as follows Figure 6 As shown in the figure, two workpieces are clamped in total (the fixture is not shown, but there is a fixture during actual processing), which will improve processing efficiency. Figure 7 , Figure 8 As shown, A1 = 36.3 ± 0.15, A2 = 31.2 ± 0.15, A3 = 16, A4 = 8.2, A5 = 8.1, A6 = 5.5°, A7 = 5°, A8 = 47, A9 = 54. These two dimensions cannot be measured manually and need to be measured with a three-coordinate measuring machine.
[0168] The bottom center of the cylinder head circle is taken as the zero point, and the workbench position is B0;
[0169] Assume that the XYZ value of the left cylinder head relative to the rotation center of the worktable is (-200, 430, 260);
[0170] Assume that the XYZ value of the right cylinder head relative to the rotation center of the worktable is (200, 430, 260);
[0171] The mechanical coordinates of the machine tool rotation center are X = 0.057 Y = 30.048 Z = -317.039;
[0172] so:
[0173] The mechanical coordinate of the X-axis of the left cylinder head is 0.057-200=-199.943;
[0174] The mechanical coordinate of the Y axis of the left cylinder head is 30.048+430=460.048;
[0175] The Z-axis mechanical coordinate of the left cylinder head is -317.039+260=-57.039;
[0176] The mechanical coordinate of the B axis of the left cylinder head is 0;
[0177] The X-axis mechanical coordinate of the right cylinder head is 0.057+200=200.057;
[0178] The mechanical coordinate of the Y axis of the right cylinder head is 30.048+430=460.048;
[0179] The Z-axis mechanical coordinate of the right cylinder head is -317.039+260=-57.039;
[0180] The mechanical coordinate of the B axis of the right cylinder head is 0;
[0181] Set the left cylinder head zero point to zero point 1 and the right cylinder head zero point to zero point 2. The procedure is as follows: VZOFX[1] = -199.943
[0182] VZOFY[1]=460.048
[0183] VZOFZ[1]=-57.039
[0184] VZOFB[1]=0
[0185] VZOFX[2]=200.057
[0186] VZOFY[2]=460.048
[0187] VZOFZ[2]=-57.039
[0188] VZOFB[2]=0
[0189] G111 PX=-36.3PY=0PZ=0PB=5.5IN=1PU=3PI=0PJ=0PK=0G111 PX=31.2PY=0PZ=0PB=-5IN=1PU=4PI=0PJ=0PK=0G111 PX=-36.3PY=0PZ=0PB=5.5IN=2PU=5PI=0PJ=0PK=0G111 PX=31.2PY=0PZ=0PB=-5IN=2PU=6PI=0PJ=0PK=0 (PY=0PZ=0PI=0PJ=0PK=0 can also be omitted and written as
[0190] VZOFX[1]=-199.943
[0191] VZOFY[1]=460.048
[0192] VZOFZ[1]=-57.039
[0193] VZOFB[1]=0
[0194] VZOFX[2]=200.057
[0195] VZOFY[2]=460.048
[0196] VZOFZ[2]=-57.039
[0197] VZOFB[2]=0
[0198] G111 PX=-36.3PB=5.5IN=1PU=3
[0199] G111 PX=31.2PB=-5IN=1PU=4
[0200] G111 PX=-36.3PB=5.5IN=2PU=5
[0201] G111 PX=31.2PB=-5IN=2PU=6)
[0202] Processing procedures are omitted here
[0203] After finishing two jobs, if the three-coordinate measurement shows the two dimensions of 36.3±0.15 and 31.2±0.15, the left cylinder head is 36.5 and 31.32, and the right cylinder head is 36.35 and 31.25, then it is necessary to fine-tune the zero points 3 and 4, so change to:
[0204] G111 PX=-36.3+0.15PB=5.5IN=1PU=3
[0205] G111 PX=31.2-0.12PB=-5IN=1PU=4
[0206] Make two more pieces and send them for three-coordinate inspection until they are debugged within the tolerance.
Claims
1. A zero point positioning method for a horizontal four-axis machining center, characterized in that: The following steps are involved: S1. Initialize the offset and clear all offset values to zero; S2, read the mechanical coordinates of the rotation center; S3, input the X, Y, Z values of the coordinate system of the first processing point and the offset angle relative to the B axis, and calculate the coordinates of the first processing point after rotation according to the mechanical coordinates of the rotation center; S4, calculating the zero point coordinates according to the offset information; S5. Process the device according to the zero-point coordinates to check whether it is within the tolerance range. If not, adjust the error offset and perform several processing steps until the finished product meets the composite processing standard. S6. When it is necessary to calculate several sets of zero point coordinates, when calculating the first set of zero point coordinates, the number of the input coordinate system IN=1; when calculating the Nth set of zero point coordinates, repeat the above steps and the number of the input coordinate system IN=N.
2. The zero-point positioning method of a horizontal four-axis machining center according to claim 1 is characterized in that: In S1, let: PX = 0, PY = 0, PZ = 0, PB = 0; Among them, PX is the X offset between the worktables, PY is the Y offset between the worktables, PZ is the Z offset between the worktables, and PB is the relative B-axis offset angle; Let: PI = 0, PJ = 0, PK = 0; Among them, PI is the X offset during error adjustment, PJ is the Y offset during error adjustment, and PK is the Z offset during error adjustment; Assign values to IN and PU; Among them, IN is the number of the input coordinate system, and PU is the number of the output coordinate system.
3. The zero-point positioning method of a horizontal four-axis machining center according to claim 1 is characterized in that: In S2, the rotation center is O (X0, Y0, Z0).
4. The zero-point positioning method of a horizontal four-axis machining center according to claim 1 is characterized in that: In S3, the first processing point is A (X1, Y1, Z1), which is offset by an angle B1 relative to the B axis; The coordinates of the first processing point A relative to the rotation center are (X1-X0, Y1-Y0, Z1-Z0).
5. The zero-point positioning method of a horizontal four-axis machining center according to claim 1, characterized in that: In S4, PX, PY, PZ, and PB are read and updated, the zero point is B (X2, Y2, Z2), and the relative B-axis offset angle is B2; X-direction difference ΔX=X1-X0+PX; Y-direction difference ΔY=Y1-Y0+PY; Z-direction difference ΔZ=Z1-Z0+PZ; X2=X0+ΔZ*SIN(-PB)+ΔX*COS(-PB)+PI; Y2=ΔY+PJ; Z2=Z0+ΔZ*COS(-PB)-ΔX*SIN(-PB)+PK.
6. The zero-point positioning method of a horizontal four-axis machining center according to claim 1, characterized in that: In S5, the error offsets to be adjusted include PI, PJ, and PK.
7. The zero-point positioning method of a horizontal four-axis machining center according to claim 1, characterized in that: Applied to OKUMAOSP-P300M-e system.
8. The zero-point positioning method of a horizontal four-axis machining center according to claim 7, characterized in that: Stored in the G / M code macro instruction in the form of code.
Citation Information
Patent Citations
Universal workpiece coordinate system conversion method for rotating table of numerically-controlled machine tool
CN104741935A
Dual-CCD-locating linkage machining method and device
CN105236725A
Automatic setting method for multi-angle machining coordinate system of horizontal machining center
CN111897285A
Rapid concentric positioning device for hole system axis intersection point and workbench rotation center
CN217019404U
Method for correcting line-of-sight, method and apparatus for tracking target
KR102544346B1