Drilling method and drilling machine
11273500 · 2022-03-15
Assignee
Inventors
Cpc classification
B23B35/00
PERFORMING OPERATIONS; TRANSPORTING
International classification
B23B39/16
PERFORMING OPERATIONS; TRANSPORTING
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)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
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
(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
(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
(25) As shown in
(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
(30) In step S11, the hole coordinates are input to the hole coordinate table 54. As shown in
(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
(33) The coordinate conversion in steps S13 and S19 will be described below. The
(34) The machine coordinates for machining the set of the first and second holes are calculated by the following equation:
(35)
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
(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
(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)
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,
(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
(74) As shown in
(75) As shown in
(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
(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)
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