Machine tool, machining path generation method, and recording medium
12605798 ยท 2026-04-21
Assignee
Inventors
Cpc classification
B23Q15/013
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/0961
PERFORMING OPERATIONS; TRANSPORTING
B23Q15/18
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/0966
PERFORMING OPERATIONS; TRANSPORTING
International classification
B23Q15/013
PERFORMING OPERATIONS; TRANSPORTING
B23Q15/18
PERFORMING OPERATIONS; TRANSPORTING
B23Q17/09
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A machine tool includes a spindle having a tip on which a tool is mounted, a moving portion configured to move the spindle, on which a tool is mounted, toward a peripheral edge of a master workpiece or away from the peripheral edge along a reference path on an outer peripheral side or an inner peripheral side of the master workpiece, a first detection unit configured to detect contact with a peripheral edge of the tool, an acquisition unit configured to acquire coordinates of the spindle each time the first detection unit detects the contact, and a first generation unit configured to generate a first machining path based on a plurality of coordinates detected by the acquisition unit.
Claims
1. A machine tool, comprising: a spindle configured to mount a tool thereon; and a processor programmed to: move the spindle toward a peripheral edge of a master workpiece machined with desired accuracy or away from the peripheral edge along a reference path on an outer peripheral side or an inner peripheral side of the master workpiece, the reference path having a plurality of reference points; detect that the tool comes into contact with the peripheral edge; acquire coordinates of the spindle each time the contact is detected; generate a first machining path based on the acquired plurality of coordinates; move the spindle away therefrom based on a third vector, which is a sum of a first vector directed from a center of the spindle toward a shortest one of the reference points in a traveling direction of the spindle and having a predetermined first length and a second vector orthogonal to the first vector and having a predetermined second length, when the contact is detected; and move the spindle closer thereto based on a fourth vector having an opposite direction to a direction of the second vector and having a third length longer than the second length.
2. The machine tool according to claim 1, wherein the processor is programmed to move the spindle in a zigzag manner along the reference path.
3. The machine tool according to claim 1, wherein the processor is programmed to move the spindle closer thereto or away therefrom at contact/separation points, the contact/separation points being points provided at a predetermined interval on the reference path.
4. The machine tool according to claim 1, wherein the first machining path includes a line-segment shaped locus or a curved locus of the plurality of coordinates.
5. The machine tool according to claim 1, wherein the spindle is rotated by drive of a spindle motor, the processor is programmed to detect a load applied to the spindle, and the processor is programmed to detect the contact by a change in the detected load.
6. The machine tool according to claim 5, wherein the processor is programmed to detect a rotation speed, torque, or a deviation amount of the spindle when the spindle motor is rotated forward or backward at a low speed.
7. The machine tool according to claim 5, comprising: a fixing portion configured to fix the spindle, and a force sensor provided on the fixing portion to detect a force applied to the spindle.
8. The machine tool according to claim 1, wherein the processor is programmed to control a moving shaft motor for driving a moving shaft connected to the spindle, the processor is programmed to detect a load applied to the moving shaft, and the processor is programmed to detect the contact by a change in the detected load.
9. The machine tool according to claim 1, comprising: a battery applying a voltage to the spindle; and a current sensor connected to the battery, wherein the processor detects the contact by a current detected by the current sensor.
10. The machine tool according to claim 1, wherein the processor is programmed to move the spindle toward a peripheral edge of the master workpiece or away from the peripheral edge along the generated first machining path, the processor is programmed to generate a second machining path based on the acquired plurality of coordinates, the processor is programmed to calculate a matching ratio between the first machining path and the second machining path, and the machine tool comprises a storage unit configured to store the first machining path when the calculated matching ratio is equal to or less than a predetermined value.
11. A machining path generation method, comprising: holding a master workpiece machined with desired accuracy on a holding table of a machine tool; mounting a tool at a tip of a spindle; moving the spindle toward a peripheral edge of the master workpiece or away from the master workpiece along a reference path on an outer peripheral side or an inner peripheral side of the master workpiece, the reference path has a plurality of reference points; detecting that the tool comes into contact with the peripheral edge; acquiring coordinates of the spindle each time the contact is detected; generating a machining path based on a plurality of acquired coordinates; moving the spindle away therefrom based on a third vector, which is a sum of a first vector directed from a center of the spindle toward a shortest one of the reference points in a traveling direction of the spindle and having a predetermined first length and a second vector orthogonal to the first vector and having a predetermined second length, when detecting the contact; and moving the spindle closer thereto based on a fourth vector having an opposite direction to a direction of the second vector and having a third length longer than the second length.
12. A non-transitory computer-readable recording medium recording a computer program configured to cause a computer to execute processes of: moving a spindle of a machine tool, on which a tool is mounted, toward a peripheral edge of a master workpiece machined with desired accuracy or away from the peripheral edge along a reference path on an outer peripheral side or an inner peripheral side of the master workpiece the reference path having a plurality of reference points; detecting whether or not the tool comes into contact with the peripheral edge; and acquiring coordinates of the spindle and generating a machining path based on a plurality of acquired coordinates when it is determined that the tool comes into contact with the peripheral edge; moving the spindle away therefrom based on a third vector, which is a sum of a first vector directed from a center of the spindle toward a shortest one of the reference points in a traveling direction of the spindle and having a predetermined first length and a second vector orthogonal to the first vector and having a predetermined second length, when detecting the contact; and moving the spindle closer thereto based on a fourth vector having an opposite direction to a direction of the second vector and having a third length longer than the second length.
Description
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19) Hereinafter, description will be given with reference to the drawings illustrating a machine tool 1 of the disclosure. In the following description, up, down, front, back, right, and left illustrated in the drawings are used.
(20) The machine tool 1 includes a base 2 having a rectangular shape in a plan view. A plurality of reinforcing cylinders 2a is provided on an upper surface of the base 2. A holding table 3 is provided on the reinforcing cylinders 2a at a center of the base 2. The holding table 3 has a cylindrical shape and holds a workpiece.
(21) Three vertical columns 4 are provided around the holding table 3 and extend upward from the reinforcing cylinders 2a. The three vertical columns 4 are disposed with a phase interval of about 120 degrees in the plan view. Of the side surfaces of each of the vertical columns 4, a track 5 is provided on a side surface on the holding table 3 side, and the track 5 extends in a vertical direction.
(22) A moving portion 6 and a drive source are provided on the track 5. The drive source is, for example, a ball screw 14 and a moving shaft motor 13 (see
(23) The first support plate 10 is disposed on the upper side of the holding table 3. The first support plate 10 has a triangular shape in the plan view and is substantially parallel to an upper surface of the holding table 3. Three sides of the first support plate 10 face the three vertical columns 4, respectively. That is, the three sides correspond to three moving portions 6, respectively. Each side and each moving portion 6 are coupled by two parallel first links 11. Each of the first links 11 has a rod shape. One end of each of the two first links 11 is coupled to each of both ends of the side via a rotatable joint 7. The other end of each of the two first links 11 is coupled to the moving portion 6 via a rotatable joint 7. The joint 7 is, for example, a universal joint.
(24) The first support plate 10 holds a spindle 30 protruding upward and downward. The spindle 30 grips a tool 30a at an end.
(25) A second support plate 20 is disposed on an upper side (moving portion 6 side) of the first support plate 10, and a coupling cylinder 8 (connecting portion) with the vertical direction as an axial direction is provided between the first support plate 10 and the second support plate 20. The coupling cylinder 8 couples the first support plate 10 and the second support plate 20 to each other. The coupling cylinder 8 integrates the first support plate 10 and the second support plate 20.
(26) An upper portion of the spindle 30 penetrates the second support plate 20 from the inside of the coupling cylinder 8. The second support plate 20 has a triangular shape in the plan view and is substantially parallel to the first support plate 10. Three sides of the second support plate 20 face the three vertical columns 4, respectively. That is, the three sides correspond to the three moving portions 6, respectively. Each side and each of the moving portions 6 are coupled by two parallel second links 21. Each of the second links 21 has a rod shape. One end of each of the two second links 21 is coupled to each of the both ends of the side via a rotatable joint 7. The other end of each of the two second links 21 is coupled to each of the moving portions 6 via a rotatable joint 7. The joint 7 is, for example, a universal joint.
(27) The coupling cylinder 8 has a hexagonal shape in the plan view, and among six sides of an upper end of the coupling cylinder 8, three sides skipping one in a circumferential direction are coupled to the three sides of the second support plate 20. Among six sides of a lower end of the coupling cylinder 8, three adjacent sides skipping one in the circumferential direction are coupled to the three sides of the first support plate 10.
(28) When the three moving portions 6 are at the same height position, the spindle 30 is located substantially directly above a center of the holding table 3.
(29) When two moving portions 6 are at the same vertical position and the other one moving portion 6 moves below the two moving portions 6, the spindle 30 moves only in a horizontal direction toward the opposite side from the moving portion 6 that moves downward.
(30) When two moving portions 6 are at the same vertical position and the other one moving portion 6 moves above the two moving portions 6, the spindle 30 moves only in the horizontal direction toward the moving portion 6 that moves upward. When the three moving portions 6 move in the vertical direction by the same distance, the spindle 30 moves in the vertical direction. By combining these movements, the machine tool 1 positions the spindle 30 at a desired upper, lower, front, back, right, and left position. Therefore, the spindle 30 is connected to the ball screw 14 via the first support plate 10, the second support plate 20, the coupling cylinder 8, the first links 11, the second links 21, the joints 7, and the moving portions 6.
(31) The spindle 30 includes a spindle motor 12 (see
(32) As illustrated in
(33) Table 1 below is an example of a storage table of the machining program DB 421. The machining program DB 421 stores a No. column, a machining program column, and a machining path column. The No. column stores a machining program number. The machining program column stores each machining program. The machining path column initially stores a reference path L.sub.0 generated by a method such as online teaching using CAM software, etc. When a machining path L.sub.1 is generated based on the program 422, the CPU 41 overwrites the machining path L.sub.1 in the machining path column and stores the machining path L.sub.1.
(34) TABLE-US-00001 TABLE 1 Machining Machining No. Program Path 1 Pro (1) L.sub.0 (1) 2 Pro (2) L.sub.0 (2) . . . . . . . . .
(35) When an operator operates the operation unit 45, a signal is input from the operation unit 45 to the input/output interface 44. The operation unit 45 is a keyboard, a button, a touch panel, etc. The input/output interface 44 outputs a signal to the display unit 46. The display unit 46 is a liquid crystal display panel, etc., and displays characters, figures, symbols, etc.
(36) The control device 40 further includes a spindle control circuit 47 corresponding to the spindle motor 12, a servo amplifier 48, a moving shaft control circuit 49 corresponding to the moving shaft motor 13, and a servo amplifier 50. Based on a command from the CPU 41, the spindle control circuit 47 outputs an instruction indicating a target value such as a rotation direction or a rotation speed of the spindle motor 12 to the servo amplifier 48. The servo amplifier 48 supplies electric power to the spindle motor 12 based on the instruction. An encoder 18 detects a rotational position and speed of the spindle motor 12 and transmits a detection signal to the servo amplifier 48. The servo amplifier 48 compares the detection signal with the target value and controls output power.
(37) Based on a command from the CPU 41, the moving shaft control circuit 49 outputs an instruction indicating a target value such as a moving direction or a speed of the three moving portions 6 to the servo amplifier 50. The servo amplifier 50 supplies electric power to the moving shaft motor 13 based on the instruction. An encoder 19 detects a rotational position and speed of the moving shaft motor 13 and transmits a detection signal to the servo amplifier 50. The servo amplifier 50 compares the detection signal with the target value and controls output power. The CPU 41 corresponds to a movement control unit.
(38) In the machining path generation method, the deburred master workpiece 9 is held on the holding table 3 of the machine tool 1, and the tool 30a is attached to a tip of the spindle 30. The master workpiece 9 has been deburred, and thus has desired machining accuracy. As illustrated in
(39) The CPU 41 detects contact of the tool 30a with the peripheral edge, and acquires coordinates of a center P of the spindle 30 each time the contact is detected. As illustrated in
(40) Hereinafter, a method of generating a machining path will be described in detail.
(41) A deburred non-defective workpiece is used as the master workpiece 9, and the operator holds the master workpiece 9 on the holding table 3. The operator attaches the tool 30a to be used to the spindle 30.
(42)
(43) The CPU 41 displays the reference path L.sub.0 and an input field on the display unit 46 (S2). In the input field, conditions such as a search method No., a search interval, and a search width are input. The search method will be described later.
(44) The CPU 41 generates a search path T based on the reference path L.sub.0, and the search interval, the search width, etc., which are set conditions (S4). The CPU 41 rotates the spindle motor 12 at a low speed (forward rotation or backward rotation), and moves the spindle 30 along the search path T using the moving shaft motor 13 (S5). A suitable low speed is 100 to 1000 rpm.
(45) The CPU 41 determines whether or not the master workpiece 9 and the tool 30a are in contact with each other (S6). Upon determining that the master workpiece 9 and the tool 30a are not in contact with each other (S6: NO), the CPU 41 repeats determination of S6. Upon determining that the master workpiece 9 and the tool 30a are in contact with each other (S6: YES), the CPU 41 acquires the coordinates of the center P of the spindle 30 at the time of contact (S7). The CPU 41 generates the machining path L.sub.1 based on the coordinates of the plurality of centers P, and stores the machining path L.sub.1 in the RAM 43 (S8).
(46) The CPU 41 determines whether or not the machining path L.sub.1 is generated for the first time (S9). Upon determining that the machining path L.sub.1 is generated for the first time, (S9: YES), the CPU 41 sets the machining path L.sub.1 as the reference path L.sub.0 (S10), and returns the process to S2. The operator may input a small search interval in order to improve the accuracy, and the CPU 41 sets the input search interval in second condition setting (S3). The CPU 41 generates a search path T based on the new reference path L.sub.0, and repeats processing of S4 to S8. In S8, the second machining path L.sub.1 is generated. The CPU 41 that generates the second machining path L.sub.1 in S8 corresponds to a second generation unit. In S9, when it is determined that the machining path L.sub.1 is not generated for the first time (S9: NO), a matching ratio is calculated based on the first machining path L.sub.1 for the second machining path L.sub.1 (S11). The matching ratio may be expressed as a ratio of the area of a deviation between a portion A surrounded by the first machining path L.sub.1 and a portion B surrounded by the second machining path L.sub.1 to the area of the portion A. The CPU 41 that executes S11 corresponds to a calculation unit.
(47) The CPU 41 determines whether or not the matching ratio is equal to or less than a threshold value (S12). Upon determining that the matching ratio is not equal to or less than the threshold value (S12: NO), the CPU 41 returns the process to S10. The CPU 41 repeats processing of S2 to S11 before the matching ratio becomes equal to or less than the threshold value. Upon determining that the matching ratio is equal to or less than the threshold value (S12: YES), the CPU 41 overwrites the latest generated machining path L.sub.1 in the machining path column of the corresponding No. of the machining program of the machining program DB 421 to store the machining path L.sub.1 (S13), and ends the process. The CPU 41 that executes S13 corresponds to a storage unit.
(48) As illustrated in
(49) As illustrated in
(50)
(51)
(52)
(53) As illustrated in
(54) In the present embodiment, when the spindle 30 is brought into contact with and separated from the peripheral edge of the master workpiece 9 along the reference path L.sub.0, and contact with the peripheral edge of the tool 30a is detected, the coordinates of the center P of the spindle 30 may be acquired, and the machining path L.sub.1 may be generated accurately and in a short time based on the coordinates. In the present embodiment, each time the master workpiece 9 is created, the machining path L.sub.1 that imitates the surface of the master workpiece 9 is generated. Therefore, even when the shape of the workpiece 95 changes due to a difference in mold, mold correction, a lot difference, etc., or even when a mounting position shifts due to a change in jig arrangement, the disclosure does not require an operation of modifying a program to adjust the machining path at the time of mass production. The reference path L.sub.0 is not limited to the case where the reference path L.sub.0 is generated on the outer peripheral side of the master workpiece 9. When a hole is provided on the inner peripheral side of the master workpiece 9, the reference path L.sub.0 may be generated on the inner peripheral side of the master workpiece 9. The CPU 41 that executes S6 corresponds to a first detection unit, the CPU 41 that executes S7 corresponds to an acquisition unit, and the CPU 41 that executes S8 corresponds to a first generation unit.
(55) A second embodiment has a configuration similar to that of the first embodiment except that a search method is a method No. 2. As illustrated in
(56) Between P.sub.1 and P.sub.2 (swing and miss) (i) At the teaching point P.sub.1, the spindle 30 is brought closer by half of the search width in a direction (1) perpendicular to a vector from the teaching point P.sub.1 to the teaching point P.sub.2. (ii) During non-contact with the master workpiece 9, the spindle 30 is separated by half the search width in an opposite direction (2). (iii) During non-contact with the master workpiece 9, the spindle 30 returns to the teaching point P.sub.1 and moves by the search interval in a direction from the teaching point P.sub.1 to the teaching point P.sub.2 (direction (3)). (iv) At a center P.sub.1a after movement, the same operation as in (i) to (iii) is performed.
(57) Between P.sub.2 and P.sub.2e (during contact while moving in (3)) (i) At the teaching point P.sub.2, after moving in the direction (1) and the direction (2), the spindle 30 returns to the teaching point P.sub.2 and moves by the search interval in a direction from the teaching point P.sub.2 to the teaching point P.sub.3 (direction (3)). When contact is detected during movement, coordinates of a center P.sub.2a of the spindle 30 are stored. (ii) At the center P.sub.2a, the spindle 30 is brought closer in the direction (1).
(58) When detection of contact continues, the spindle 30 is separated in the opposite direction (2). (iii) From a retreat point moved in the direction (2), the spindle 30 moves by the search interval in a direction of the teaching point P.sub.3 (direction (3)). When contact is detected during movement, coordinates of a center P.sub.2b of the spindle 30 are stored. (iv) Movement similar to that of the above description is performed.
(59) Between P.sub.2e and P.sub.3c (during contact while moving in (1)) (i) When a distance from a center P.sub.2e to the teaching point P.sub.3 is shorter than the search interval, the spindle 30 approaches a vector from the center P.sub.2e to the teaching point P.sub.3 by half of the search width in the direction (1). At the time of contact with the master workpiece 9, a center P.sub.2e at that time is stored. (ii) After storage, the spindle 30 returns to the center P.sub.2e and moves in a direction from the center P.sub.2e to the teaching point P.sub.3 (direction (3)) by the search interval. (iii) Movement similar to that of the above description is performed.
(60) In the present embodiment, the machining path can be accurately generated and in a short time, and the machining accuracy is improved.
(61) A third embodiment has a configuration similar to that of the first embodiment except that a search method is a method No. 3. As illustrated in
(62) As illustrated in
(63) When a distance between a center P.sub.1c of the spindle 30 and the teaching point P.sub.2 at the time of contact becomes less than a width of the search interval, the CPU 41 separates the spindle 30 based on a third vector c, which is a sum a first vector a directed from the center P.sub.1c toward a next teaching point P.sub.3 and having a first length and a second vector b orthogonal to the first vector a and having a second length.
(64) It is to be noted that, as used herein and in the appended claims, the singular forms a, an, and the include plural referents unless the context clearly dictates otherwise.
(65) While the invention has been described in conjunction with various example structures outlined above and illustrated in the figures, various alternatives, modifications, variations, improvements, and/or substantial equivalents, whether known or that may be presently unforeseen, may become apparent to those having at least ordinary skill in the art. Accordingly, the example embodiments of the disclosure, as set forth above, are intended to be illustrative of the invention, and not limiting the invention. Various changes may be made without departing from the spirit and scope of the disclosure. Therefore, the disclosure is intended to embrace all known or later developed alternatives, modifications, variations, improvements, and/or substantial equivalents.