Drilling method and drilling machine

11273500 · 2022-03-15

Assignee

Inventors

Cpc classification

International classification

Abstract

A drilling method of machining holes that are not regularly arranged in one direction in a short machining time is provided. A drilling method, includes: creating a machining order of machining a first hole to be machined with a first spindle and a second hole to be machined with a second spindle for a workpiece having a plurality of target holes on a machining table, the first spindle and the second spindle arranged in X direction; rotating the machining table relative to the first spindle and the second spindle so that the first hole and the second hole are arranged in X direction with the first hole located nearer to the first spindle; moving the first spindle and the second spindle relative to the machining table so that the first hole and a center of the first spindle are aligned and the second hole and a center of the second spindle are aligned; and machining the first hole with the first spindle and the second hole with the second spindle.

Claims

1. A drilling method, comprising: creating a machining order of machining a first hole to be machined with a first spindle and a second hole to be machined with a second spindle for a workpiece having a plurality of target holes for reducing a total machining time by using a genetic algorithm, the workpiece arranged on a machining table, the first spindle and the second spindle arranged in X direction; rotating the machining table relative to the first spindle and the second spindle so that the first hole and the second hole are arranged in X direction with the first hole located nearer to the first spindle; moving the first spindle and the second spindle relative to the machining table so that the first hole and a center of the first spindle are aligned and the second hole and a center of the second spindle are aligned; and machining the first hole with the first spindle and the second hole with the second spindle.

2. The drilling method according to claim 1, further comprising: moving the first spindle and the second spindle along X direction while rotating the machining table relative to the first spindle and the second spindle.

3. The drilling method according to claim 2, further comprising: storing hole coordinates of the target holes with respect to a rotational center of the machining table relative to the first spindle and the second spindle.

4. The drilling method according to claim 2, further comprising: creating the machining order and sets of the first hole and the second hole for reducing a total machining time.

5. The drilling method according to claim 1, further comprising: storing hole coordinates of the target holes with respect to a rotational center of the machining table relative to the first spindle and the second spindle.

6. The drilling method according to claim 5, further comprising: creating the machining order and sets of the first hole and the second hole for reducing a total machining time.

7. The drilling method according to claim 1, further comprising: creating the machining order and sets of the first hole and the second hole for reducing a total machining time.

8. The drilling method according to claim 1, further comprising: randomly creating an initial population with a population of individuals representing the machining order and sets of the first hole and the second hole; performing crossover two individuals selected from the population; evaluating a fitness as a value of a fitness function for the individual based on the hole coordinates, the fitness function based on a first spindle moving amount, a second spindle moving amount, a table moving amount and a table rotating amount; reproducing a population of individuals having a small fitness to a new generation with a population of individuals; repeating the performing crossover, the evaluating the fitness, and the reproducing the population of individuals until an end condition is satisfied; and determining the machining order by the individual having the smallest fitness among a final generation of individuals obtained when the end condition is satisfied.

9. The drilling method according to claim 1, further comprising: storing the hole coordinates with respect to the hole number; and creating the individual coded as a pass representation of sets of hole numbers for the first hole and the second hole arranged in the machining order.

10. The drilling method according to claim 9, further comprising: performing crossover by partially matched crossover, ordered crossover, cycle crossover, or edge recombination as a unit of the set of individuals.

11. The drilling method according to claim 1, wherein the value of the fitness function is a maximum value among the first spindle moving amount in X direction, the second spindle moving amount in X direction, the table moving amount in Y direction, and the table rotating amount.

12. The drilling method according to claim 1, further comprising: removing the individual included in a set satisfying that the distance between the first hole and the second hole is less than the smallest distance in which the first spindle does not interfere with the second spindle.

Description

BRIEF DESCRIPTION OF DRAWINGS

(1) FIG. 1 shows a drilling machine according to a first embodiment.

(2) FIG. 2 is a longitudinal cross-sectional view of a Z unit according to the first embodiment.

(3) FIG. 3 is a flowchart of a drilling method according to the first embodiment.

(4) FIG. 4 shows a control device of the drilling machine according to the first embodiment.

(5) FIG. 5 is a flowchart of determining the machining order according to the first embodiment.

(6) FIG. 6 is a coordinate table according to the first embodiment.

(7) FIG. 7 shows a chromosome representation (individual) representing the machining order according to the first embodiment.

(8) FIG. 8A shows a coordinate conversion method according to the first embodiment.

(9) FIG. 8B shows a coordinate conversion method according to the first embodiment.

(10) FIG. 9 shows a crossover method according to the first embodiment.

(11) FIG. 10 shows a mutation by exchanging two holes according to the first embodiment.

(12) FIG. 11 shows a mutation by exchanging the two sets of combination according to the first embodiment.

(13) FIG. 12 shows a mutation by insertion of a set of combination according to the first embodiment.

(14) FIG. 13 shows a chromosome representation (individual) representing the machining order according to a second embodiment.

DETAILED DESCRIPTION

First Embodiment

(15) The first embodiment deals with the case where the number of target holes is an even number. As shown in FIG. 1, a drilling machine 10 includes a frame 11, a Y guide (Y linear guide 32, a Y driving device 35, a Y saddle 36, a machining table 37, an X guide (X linear guide) 15, a first X driving device 16, a second X driving device 17, a first Z unit 18, a second Z unit 31, a first spindle 28, and a second spindle 39.

(16) The frame 11 includes a floor frame 11a, a pair of columns 11b, and cross rails 11c. Each column 11b is fixed to the floor frame 11a. The cross rail 11c extends in the X direction and is fixed between the pair of columns 11b.

(17) The pair of Y guides 32 extends in the Y direction and is fixed to the floor frame 11a. The Y saddle 36 is disposed on the Y guide 32 in a movable manner in the Y direction. The Y driving device 35 includes a Y ball screw (not shown) and a Y motor (not shown).

(18) The machining table 37 is disposed on the Y saddle 36 in a rotatable manner about a rotation center 65. The machining table 37 is connected to a table rotating device (C motor, not shown) and is rotated by the C motor. The machining table 37 fixes a workpiece 38.

(19) A pair of X guides 15 extends in the X direction and is arranged on the cross rail 11c. The first Z unit 18 and the second Z unit 31 are disposed on the cross rail 11c in a movable manner in the X direction. The first Z unit 18 is disposed on the left side of the second Z unit 31 as viewed from front.

(20) The first X driving device 16 includes a first X motor 16a and a first X ball screw 16b. The first X driving device 16 extends in the X direction and is disposed on the cross rail 11c, and drives the first Z unit 18. Preferably, the first X driving device 16 is arranged on the left side of the cross rail 11c as viewed from front and extends between 50% and 70% of the X-guide.

(21) The second X driving device 17 is disposed on the right side of the cross rail 11c as viewed from front, and drives the second Z unit 31. Other parts of the second X driving device 17 is substantially the same as the first X driving device 16.

(22) As shown in FIG. 2, the first Z unit 18 includes an X saddle 19, a body 33, a Z guide 24, a Z saddle 23, a Z driving device 22, a spindle unit 30, and a bush 25. The Z driving device 22 includes a Z motor 22a, a Z ball screw 22b, and bearings 22c. The Z ball screw 22b is supported by the bearing 22c and directly connected to the Z motor 22a, and its nut is fixed to the Z saddle 23. The spindle unit 30 is slidably guided by the bush 25. The spindle unit 30 includes a ram 26, a spindle 28, and a spindle motor 27. The spindle 28 is rotatably supported in the ram 26 and is directly connected to the rotor of the spindle motor 27. The spindle 28 fixes a tool 29, for example a drill, a reamer or a tap. The first Z unit 18 may be a machining tool disclosed in Japanese Patent No. 3792456 or Japanese Utility Model Registration No. 3130456.

(23) The second Z unit 31 includes a second Z driving device (not shown). The second Z driving device drives the second spindle 39 in the Z direction.

(24) The machining method will be described with reference to FIG. 3. First, a plurality of target holes are divided into multiple sets of two holes. In step S1, the multiple sets of two holes are arranged in order to create a machining order. Next, in step S2, a machining program is created in accordance with the machining order. In step S3, the first spindle 28 and the second spindle 39 are rotated by the spindle motor. In step S4, the Y driving device 35 moves the Y direction of the machining table 37. The C motor moves the rotation direction (C axis) of the machining table 37. In step S5, The first X driving device 16 moves the X direction (X1 axis) of the first Z unit 18. The second X driving device 17 moves the X direction. (X2 axis) of the second Z unit 31. In step S6, the first spindle 28 and the second spindle 39 are lowered, and the workpiece 38 is drilled. In step S7, the first spindle 28 and the second spindle 39 are raised, and the first spindle 28 and the second spindle 39 are retracted. Steps S4 to S7 are repeated until the machining program is completed (step S8).

(25) As shown in FIG. 4, a control device 41 includes an arithmetic device 42, a storage device 47, an input/output port 49, an input unit 50, an output unit 51, and a bus 46. The bus 46 connects and communicates the arithmetic device 42, the storage device 47, the input/output port 49, the input unit 50, and the output unit 51.

(26) The arithmetic device 42 includes a numerical control unit 44. The numerical control unit 44 controls the first X driving device 16, the second X driving device 17, the Y driving device 35, the first Z driving device 22, the second Z driving device, the table rotating device, the first spindle 28, and the second spindle 39. Preferably, the arithmetic device 42 includes a machining order creating unit 43 and a program creating unit 45. The machining order creating unit 43 includes an initial population creating unit 43a, an evaluation unit 43b, a coordinate conversion unit 43c, a reproduction unit 43d, a genetic operators unit 43e, and a determination unit 43i. Preferably, the machining order creating unit 43 includes a restriction unit 43h. The genetic operators unit 43e includes a crossover unit 43f and a mutation unit 43g. The program creating unit 45 creates a machining program based on the determined machining order and the hole coordinates converted into the machine coordinates.

(27) The storage device 47 includes a main storage device and an external storage device. The storage device 47 may include a coordinate storage unit 47a and a program storage unit 47b. The coordinate storage unit 47a and the program storage unit 47b store the hole coordinates and the machining program, respectively.

(28) The input unit 50 is, for example, a keyboard or a pointing device. The output unit 51 is, for example, a monitor. The input/output port 49 is, for example, a communication port such as a USB port or a wireless communication port. The input/output port communicates with the first X driving device 16, the second X driving device 17, the Y driving device 35, the first Z driving device 22, the second Z driving device, the table rotation device, the first spindle 28, and the second spindle 39.

(29) The method of determining the machining order by the genetic algorithm will be described with reference to FIG. 5. First, in step S11, the storage device 47 stores the hole position. In step S12, the initial population creating unit 43a creates an initial population with individuals. In steps S13 and S19, the coordinate conversion unit 43c converts the hole coordinates of the first hole and the second hole, and calculates the machine coordinates. In steps S14 and S20, the restriction unit 43h removes individuals that cannot be machined from among the generated individuals. In steps S15 and S21, the evaluation unit 43b evaluates the fitness of each individual. In step S16, the reproduction unit 43d reproduces an individual having a small fitness. The crossover unit 43f crosses the two parents to generate a child in step S17. In step S18, the individual is mutated by the mutation unit 432. The determination unit 43i determines whether or not the end condition has been met, and repeats steps S16 to S21 until the end condition has been met (S22). When the end condition is met, the determination unit 43i determines the machining order in step S23.

(30) In step S11, the hole coordinates are input to the hole coordinate table 54. As shown in FIG. 6, the hole coordinate table 54 includes a hole number 54a, u and v coordinates 54b. The hole coordinate table 54 may include z1 and z2 coordinates 54c. The z1 coordinate represents the Z coordinate of the upper end of the hole, and the z2 coordinate represents the Z coordinate of the lower end of the hole.

(31) In step S12, the initial population creating unit 43a randomly arranges the hole numbers and generates the initial population by a predetermined number (the number of the individuals of the initial population).

(32) As shown in FIG. 7, each individual is coded as a pass representation of sets of hole numbers for the first hole and the second hole arranged in the machining order. That is, each individual is represented by arranging the hole numbers in the order of the first hole of the first set, the second hole of the first set, the first hole of the second set, the second hole of the second set, . . . , the first hole of the n-th set, the second hole of the n-th set, and so on in the machining order.

(33) The coordinate conversion in steps S13 and S19 will be described below. The FIG. 8A shows the workpiece 38 as viewed from above when the C axis is at the origin. The workpiece 38 has a plurality of target holes 66 to be machined. The target holes 66 includes a first hole 661 and a second hole 662 defined in the machining order. The angle formed by the U axis and the straight line 663 connecting the first hole 661 and the second hole 662 is defined as a rotation angle (c, t). The FIG. 8B shows the workpiece 38 as viewed from above when the machining table 37 is rotated by the rotation angle (c, t). As shown in FIG. 8B, when the first hole 661 and the second hole 662 are machined, the straight line 663 is parallel to the X axis, and the first hole 661 is located on the left side of the second hole 662.

(34) The machine coordinates for machining the set of the first and second holes are calculated by the following equation:

(35) c , t = - tan - 1 ( v 2 - v 1 u 2 - u 1 ) [ Equation 1 ] ( u 1 , t v 1 , t ) = ( cos ( c , t ) - sin ( c , t ) sin ( c , t ) cos ( c , t ) ) ( u 1 v 1 ) ( u 2 , t v 2 , t ) = ( cos ( c , t ) - sin ( c , t ) sin ( c , t ) cos ( c , t ) ) ( u 2 v 2 ) if u 1 , t < u 2 , t ; x 1 = u 1 , t x 2 = u 2 , t y = y 1 , t = y 2 , t c = c , t else ; x 1 = - u 1 , t x 2 = - u 2 , t y = - y 1 , t = - y 2 , t c = c , t + π
Here,

(36) (u1, v1) represents hole coordinates of the first hole.

(37) (u2, v2) represents hole coordinates of the second hole.

(38) (c, t) represents an angle (rad) between the U axis and the straight line connecting the first hole and the second hole.

(39) (u1,t, v1,t) represents coordinates of the first hole after rotational coordinate conversion by the rotation angle (c, t) around the origin.

(40) (u2,t, v2,t) represents coordinates of the second hole after rotational coordinate conversion by the rotation angle (c, t) around the origin.

(41) x1 represents X coordinate (machine coordinate) of the first spindle.

(42) y1 represents Y coordinate (machine coordinate) of the first spindle.

(43) x2 represents X coordinate (machine coordinate) of the second spindle.

(44) y2 represents Y coordinate (machine coordinate) of the second spindle.

(45) c represents C coordinate (machine coordinate).

(46) The C coordinate is the sum of the rotation angles.

(47) In steps S14 and S20, the restriction unit 43h removes an individual included in a set satisfying the following equation from all sets included in each individual.
x2−x1<L74   (Equation 2)
Here,

(48) L74=L75+L76+L77

(49) L74 represents a minimum distance.

(50) L75 represents a distance from the center axis of the first spindle 28 to the right end of the first Z unit 18 (see FIG. 1).

(51) L76 represents a distance from the center axis of the second spindle 39 to the left end of the second Z unit 31 (see FIG. 1).

(52) L77 represents a collision safe distance.

(53) The restriction unit 43h may remove an individual included in a set satisfying the following expression.
√{square root over ((u2−u1).sup.2+(v2−v1).sup.2)}<L74   [Equation 3]

(54) In steps S14 and S20, when the number of populations (population size) is lower than the predetermined number of individuals as a result of the individual being removed by the restriction unit 43h, the initial population creating unit 43a may create a new individual.

(55) In steps S15 and S21, the evaluation unit 43b calculates the fitness as a value of a fitness function f(s).

(56) Here,

(57) x1.sub.n represents X coordinate (X1 coordinate, machine coordinate) of the first spindle of the n-th set of the first hole and the second hole.

(58) x2.sub.n represents X coordinate (X2 coordinate, machine coordinate) of the second spindle of the n-th set of the first hole and the second hole.

(59) y.sub.n represents the Y coordinate of the n-th set of the first hole and the second hole (mechanical coordinate).

(60) c.sub.n represents C coordinate of the n-th set of the first hole and the second hole.

(61) For example, the fitness function f(s) is expressed by the following equation.

(62) f ( s ) = .Math. n max ( .Math. x 1 n - x 1 n - 1 .Math. , .Math. x 2 n - x 2 n - 1 .Math. , E .Math. y n - y n - 1 .Math. , F .Math. c n - c n - 1 .Math. ) [ Equation 4 ]
Here,

(63) E represents a first coefficient.

(64) F represents a second coefficient.

(65) The first coefficient E and the second coefficient F are constants representing the time required by the Y axis and the C axis compared to the X axis, respectively, when attempting to move the same amount as the X axis. For example, E and F satisfy the following equations:
E=AX/AY
F=AX/AC   [Equation 5]
Here,

(66) AX represents X axis acceleration.

(67) AY represents Y axis acceleration.

(68) AC represents C axis acceleration.

(69) In step S16, the reproduction unit 43d preferentially reproduces an individual having a small value of the fitness function f(s) among individuals. Selection may be, for example, an elite selection, a roulette selection, a ranking selection, a tournament selection, and GENITOR algorithms. For example, the reproduction unit 43d reproduces only an individual having a small evaluation value among a parent generation and a child generation by the number of the individuals.

(70) In step S17, the crossover unit 43f randomly selects two parents, and crosses them to generate a child. The crossover unit 43f performs crossover by PMX (partially matched crossover), OX (ordered crossover). CX (cycle crossover), or ER (edge recombination) as a unit of the set of the first hole and the second hole.

(71) For example, FIG. 9 shows a two-point crossover by PMX. The crossover unit 43f randomly selects two crossover points.

(72) In step S18, the mutation unit 43g randomly selects an individual among the population, and makes a mutation. Three mutation techniques are exemplified below.

(73) As shown in FIG. 10, two holes are randomly selected and exchanged.

(74) As shown in FIG. 11, two sets of the first hole and the second hole are randomly selected and exchanged. At this time, the set of the first hole and the second hole is not changed.

(75) As shown in FIG. 12, a set of randomly selected first and second holes is extracted and packed behind. The extracted set is inserted at the positions of the randomly selected set, followed by sequential shifting.

(76) In step S22, the end condition may be that the number of generation alternations reaches a predetermined number of final generation alternations. When the number of repeating the cycles of steps S16 to S21 reaches the final generation alternation number, the determination unit 43i determines that the end condition is met.

(77) The determination unit 43i sets the population at that time as the final generation. The determination unit 43i selects an individual having the smallest fitness among the final generation. In step S23, the determination unit 43i determines the order of the sets of the hole number of the first hole and the hole number of the second hole represented by the selected individual as the machining order.

(78) According to the drilling method of the present embodiment, since two holes can be simultaneously machined, the machining time can be greatly shortened. The drilling machine 10 rotates the machining table 37 to position any two holes parallel to the X axis. Therefore, it is possible to simultaneously machine two holes for a plurality of holes which are not regularly arranged along the X axis. The drilling machine 10 is a vertical type. The Z units 18 and 31, which move the spindles 28 and 39 in Z direction, are fixed to the cross rail 11cin a movable manner in X direction. The table rotation shaft, and the table front and rear shafts are disposed on the floor frame 11a. Therefore, it is only necessary to manufacture the Z unit which focuses only on the thrust direction. Therefore, the entire drilling machine 10 can be manufactured at lower cost.

(79) The drilling method of the present embodiment uses a genetic algorithm to determine the set of the first hole and the second hole, and the machining order. Therefore, the machining program can be easily created for the workpiece 38 including a large number of holes to be drilled. The restriction unit 43h removes an individual of a set of holes in which the two Z units 18 and 31 interfere with each other. For this reason, it is possible to select a machining order composed of appropriate sets from sets of the first hole and the second hole in which the two Z units do not interfere with each other.

(80) In the present embodiment, the number of the target holes is an even number, but the present embodiment can be applied also to the case where the number of the target holes is an odd number, except for a difference from a second embodiment described later.

Second Embodiment

(81) The second embodiment deals with the case where the number of target holes is an odd number. The present embodiment differs from the first embodiment in the individual representation and the coordinate determination method of the single hole by the coordinate conversion unit 43c. A single hole is machined after machining each set of two target holes. The other points are substantially the same as the first embodiment.

(82) Preferably, as shown in FIG. 13, the individual is path-represented by arranging the sets of the first hole and the second hole, and the hole number of the single hole in the order of machining. That is, each individual is represented by arranging the hole numbers in the order of the first hole of the first set, the second hole of the first set, the first hole of the second set, the second hole of the second set, . . . , the single hole. Immediately before the single hole is treated as the boundary of the set.

(83) The machine coordinates of the single hole are determined as follows. First, the X and Y coordinates are expressed as a function of the C coordinates.

(84) ( x a y a ) = ( cos ( c a ) - sin ( c a ) sin ( c a ) cos ( c a ) ) ( u a v a ) [ Equation 6 ]
Here,

(85) (u.sub.a,v.sub.a) represents a hole coordinate of single hole.

(86) x.sub.a represents X coordinate (machine coordinate) of single hole.

(87) y.sub.a represents Y coordinate (machine coordinate) of single hole.

(88) c.sub.a represents C coordinate (machine coordinate) of single hole.

(89) Next, the C coordinate is determined so that the function g(c) representing the moving distance from the immediately preceding machine coordinate to the single hole machine coordinate becomes the minimum value. The function g(c) is expressed the following equation.
g(c)=max(|x.sub.a−x1.sub.a-1|,|x.sub.a−x2.sub.a-1|, E|y.sub.a−y.sub.a-1|,F|c.sub.a−c.sub.a-1|)   [Equation 7]
Here,

(90) x1.sub.a-1 represents X coordinate (X1 coordinate, machine coordinate) of the first spindle for the set of the first hole and the second hole immediately before the single hole.

(91) x2.sub.a-1 represents X coordinate (X2 coordinate, machine coordinate) of the second spindle for the set of the first hole and the second hole immediately before the single hole.

(92) y.sub.a-1 represents Y coordinate (machine coordinate) for the set of the first hole and the second hole immediately before the single hole.

(93) c.sub.a-1 represents C coordinate (machine coordinate) for the set of the first hole and the second hole immediately before the single hole.

(94) The determined C coordinate is then substituted into Equation 6 to determine the machine coordinate (x.sub.a, y.sub.a, c.sub.a) of the single hole.

(95) Finally, the distances from the X coordinate (x.sub.a) of the single hole to the X1 coordinate (x1.sub.a-1) of the immediately preceding machined hole and the X2 coordinate (x2.sub.a-1) of the immediately preceding machined hole are calculated, respectively. It is defined that a single hole is machined on the spindle (selected spindle) with the closer distance. That is, when the set immediately before the single hole is machined, the spindle closer to the X coordinate of the single hole is selected as the selected spindle. When the first spindle is close to the single hole, the single hole is set as the first hole, and the X coordinate of the single hole is set as the X1. coordinate. On the other hand, when the second spindle is close to the single hole, the single hole is set as the second hole, and the X coordinate of the single hole is set as the X2 coordinate.

(96) When a single hole is described at the end of the machining order in the individual representation, regardless of whether the number of target holes is an odd number or an even number, the sets can be defined at every two position from the beginning of the individual representation. Therefore, the calculation is easy. By machining the single holes at the end of the machining order, the target holes are machined as they appear in the individual representation.

(97) The single hole may be processed at the beginning. In this case, the coordinate determination is determined by the machine coordinates of the set of the first hole and the second hole to be processed immediately after and the hole coordinates of the single hole.

(98) The present invention is not limited to the embodiments described above, and various modifications can be made without departing from the gist of the present invention, and all technical matters included in the technical idea described in the claims are the subject matter of the present invention. While the foregoing embodiments illustrate preferred examples, those skilled in the art will appreciate that various alternatives, modifications, variations, or improvements may be made in light of the teachings disclosed herein and are within the scope of the appended claims.

(99) For example, in the individual representation, after the hole numbers of the first holes are arranged in the machining order, the hole numbers of the second holes may be arranged in the machining order. In this case, the crossover point of the second hole and the crossover point of the first hole are made to coincide with each other so that the set of the first hole and the second hole in the parent machining order is not broken at the crossover.

REFERENCE SIGNS LIST

(100) 10 Drilling machine 11b Column, 11c cross rail 15 X linear guide 18 Z unit (first spindle unit) 28 First spindle 31 Z unit (second spindle unit) 32 Y guide 36 Y saddle 37 Machining table 39 Second spindle 41 Control device 43 Machining order creating unit 44 Numerical control unit 45 Program creating unit 47 Storage device