Complex machining machine tool

Abstract: In a complex machining machine tool capable of executing a plurality of kinds of machining on a workpiece by selectively indexing and using an insert installed on a complex tool, complex tool is registered concerning a plurality of machining capable of executing with the complex tool as a plurality of virtual tools for executing the machining in tool file. The virtual tools include a turning tool and a milling tool. The tool data is stored for each virtual tool. In the tool data, the angle of B-axis direction at which the tool is positioned when the virtual tool is used is stored as B-axis angle concerning each virtual tool. The tool data of the corresponding virtual tool is read out from the tool file on the basis of the machining instruction by the virtual tool stored in machining program, and the B-axis angle is set on the basis of the tool data so as to execute machining.

Description: BACKGROUND OF THE INVENTION This invention relates to complex machining machine tool using complex tool, installing a plurality of inserts on a single holder portion thereon, capable of performing turning machining and rotational tool machining such as drilling/milling machining with one tool. In a conventional machine tool, tools are divided into tools for turning machining and tools for drilling/milling machining. For every change of machining contents, the tool installed on a tool rest is exchanged by its attachment and detachment according to the machining to be executed from now on so as to machine. It is necessary to exchange a tool every time machining contents change in such a machine tool. The time for exchange of tool causes lowering of machining efficiency. Then, the recent proposal is that the complex tool wherein a plurality of inserts is installed on a single tool is used so as to save the trouble of tool exchange and to improve machining efficiency. But, it is absolutely impossible for an operator to sufficiently know the machining contents of such complex tool in advance at the time of composing a machining program. So, the development of the machine tool capable of machining with a complex tool without an operator's consciousness of complex tools is desired. DE-A-37 33 298 discloses a complex tool having a plurality of inserts thereon, installed on a tool holding means of a machine tool. During machining at least one of the inserts of the plurality of said inserts can be used for a turning machining operation on a rotating workpiece, with the complex tool being fixed and held. Alternatively at least one of the inserts of the plurality of said inserts installed on the complex tool can be used to perform a milling machining operation on the workpiece, with the complex tool being rotated and driven. EP-A-511 395 teaches a machine tool equipped with a composite tool. The composite tool has only one insert. The composite tool is capable of a plurality of kinds of machining operations on a workpiece. The object of the present invention is to provide a complex machining machine tool capable of easily using a complex tool with no knowledge concerning a complex tool, taking the above-mentioned circumstances into consideration. This object is solved by the complex machining machine tool of claim 1. According to claim 1, a plurality of virtual tools is set according to the machining contents of the complex tool in the tool file. Then, designation of tool finishes by only designating the virtual tool to be used in the machining program, and an operator can use the complex tool with the sense similar to a usual tool without consciousness of complex tool. Besides, the angle in the B-axis direction at which the tool is positioned when the virtual tool is used is stored as the B-axis angle concerning each virtual tool. Then, it is not necessary to set the B-axis angle when an operator uses the virtual tool, and an operator can easily use the complex tool. According to claim 2, the tool length is stored for each insert. Then, the tool length can be maintained regardless of the machining contents, such as milling and turning with the insert. So, the maintenance is easy. According to claim 3, the B-axis angle changing means changes and sets the B-axis angle (the angle of 4 ○ of Fig.10) concerning the virtual tool stored in the tool data so as to shift a predetermined quantity in the direction where the complex tool gets away from the workpiece in case where the interference between the workpiece to be machined and each virtual tool is judged (for instance, the cases as shown in Fig.11 (a) , (c) , (d)). Even if the workpiece and the tool interfere with each other, using the complex tool, the B-axis angle is changed so as to automatically avoid the interference. Therefore, an operator can execute the machining with no consciousness of the B-axis angle of the complex tool 21. According to claim 4, the B-axis angle is not shifted exceeding the maximum shift quantity. Then, such a situation that the B-axis angle of each virtual tool of the complex tool is shifted over a predetermined quantity and the function as the virtual tool can not be exercised can be avoided, and proper machining can be continued. BRIEF DESCRIPTION OF THE DRAWINGS Fig.1 is a control block diagram showing an example of a complex machining machine tool to which the present invention is applied; Fig.2 is a view obliquely showing an example of a workpiece to be machined; Fig.3 is a typical view for explaining an example of tool data stored in tool file and its contents; Fig.4 is a view obliquely showing an example of a complex tool; Figs.5, 6, 7, and 8 are views showing details when the workpiece as shown in Fig.2 is machined with the complex tool; Fig.9 is a flowchart showing an example of B-axis angle determination program; Fig.10 is a view for explaining the state of angle of tool edge at the time of machining; and Fig.11 is a view for showing the state of interfering tool edge and workpiece with each other. DESCRIPTION OF THE PREFERRED EMBODIMENTS A complex machining machine tool 1 has a main control portion 2, as shown in Fig.1. With the main control portion 2, an input portion, such as a keyboard 5, a system program memory 6, a tool file 7, a simulation control portion 8, a machining program memory 9, a B-axis angle changing judging control portion 4, a spindle control portion 10, a tool rest control portion 11 and a display 12 are connected through a bus line 3. A spindle motor 13 is connected with the spindle control portion 10. With the spindle motor 13, a spindle 15, being free to rotate, drive and position with axial center CT provided parallel to Z-axis as its center is connected. With the spindle 15, a chuck 16 is provided. Claws 16a are provided with the chuck 16, being free to hold and release a workpiece 17 to be machined, being free to move and drive in the direction as shown by arrows C and D. Tool rest driving motors 19 (the plural number) are connected with the tool rest control portion 11. A tool rest 20 is connected with the tool rest driving motor 19, being free to move and drive in the Z-axis direction and in the direction as shown by arrows E and F rectangular to the Z-axis, that is, in the X-axis direction by the tool rest driving motor 19. Furthermore, the tool rest 20 is provided, being free to move and drive in Y-axis direction rectangular to the X-axis and Z-axis, and rectangular to the paper , and in the direction as shown by arrows G and H which is B-axis direction with the Y-axis as its center by the tool rest driving motor 19. A tool holding portion 20a is formed on the tool rest 20. A turning tool, a milling/drilling tool, and a complex tool 21 capable of turning and milling/drilling machining are provided with the tool holding portion 20a, being free to attach, detach and exchange. The tool holding portion 20a is provided, being free to fix and hold the complex tool and other tools in a predetermined holding state, and being free to rotate, drive and position around axial center CT2. The complex tool 21 has a main body 21a formed in round bar shape, as shown in Fig.4. On the top of the main body 21a, an insert installation portion 21b is formed. Four inserts 22, 23, 25 and 26 are respectively installed on the insert installation portion 21b at the pitch of 90° with axial center CT3 of the main body 21a as its center so as to attach and detach. As shown in Fig.3 (a), indexing number KD is set for each insert. The indexing number KD is set as 1 for the insert 22, and clockwise, the indexing number KD is 2 for the insert 23, the indexing number KD is 3 for the insert 25 and the indexing number KD is 4 for the insert 26. Tool name is allotted to the respective inserts 22, 23, 25 and 26 as a virtual tool according to the machining contents to be performed with the complex tool 21. For the insert 22 which indexing number KD is 1, three kinds of tool name, 1 ○ turning drill for performing drilling machining wherein tool itself does not rotate, 6 ○ milling drill for performing drilling machining wherein tool itself rotates and 7 ○ end mill for performing milling machining is allotted as a virtual tool, as shown in Fig.3(c). For the insert 23 which indexing number KD is 2, tool name NA, 4 ○ inside diameter rough machining for performing turning rough machining on inside diameter is allotted, for the insert 25 which indexing number KD is 3, tool name NA, 2 ○ outside diameter rough machining for performing turning rough machining on outside diameter is allotted, and for the insert 26 which indexing number KD is 4, tool name NA, 3 ○ outside diameter finishing for performing turning finishing machining on outside diameter and 5 ○ inside diameter finishing for performing turning finishing machining on inside diameter is allotted as a virtual tool. The complex machining machine tool 1 has the before-mentioned structure. Then, in order to machine the cylindrical workpiece 17 which diameter is D1, for instance, as shown in Fig.2, an operator inputs various kinds of machining data by a known automatic programming method, operating the keyboard 5 so as to compose machining program. On this occasion, the main control portion 2 composes the machining program PRO on the basis of the various kinds of data input by an operator according to a known automatic program composing program stored in the system program memory 6, then the composed machining program PRO is stored in the machining program memory 9. After the machining program PRO concerning the workpiece 17 is composed, an operator instructs the main control portion 2 to machine the workpiece 17 through the keyboard 5. Receiving this instruction, the main control portion 2 reads out the machining program PRO concerning the workpiece 17 from the machining program memory 9 so as to execute machining, appropriately driving the spindle control portion 10 and the tool rest control portion 11. As shown in (M1) of Fig.5, at the machining on the workpiece 17, the machining for forming a hole 17a on the central portion of the workpiece 17 by a drill is firstly performed. The tool to be used at this time is designated by the machining program PRO. The main control portion 2 refers to the tool file 7 when the tool to be used is designated by the machining program PRO, and reads out tool data TL of the corresponding tool. In the tool file 7, tool number TN, tool setting direction DR, tool name NA, nominal diameter/tool angle CA, suffix DC, rotational direction/tool character RT, tool diameter/ tool edge R DM, finishing machining/rough machining division RF of the tool data DAT are set for each tool as chart data DAT1, as shown in Fig.3(b). Furthermore, detailed data concerning each tool is stored as detailed data DAT2. The complex tool 21 is set as an independent tool in this tool file 7, dividing into a plurality of virtual tools according to the machining contents capable of machining with the complex tool 21. For instance, seven virtual tools, on which the tool name NA and the suffix DC from 1 ○ to 7 ○ mentioned before are affixed, are stored as the tool number TN 1 (the example of Fig.3 (b) is one example, and if the machining form with the complex tool 21 extends over many kinds, the virtual tools having many of tool name NA and suffix DC according to the machining kind are registered). That is, every machining contents allotted to the respective inserts 22, 23, 25, 26 of the complex tool 21, the tool data of the inserts 22, 23, 25, 26 for performing the machining contents is stored in the tool file 7, regarding the respective inserts as an independent tool. For instance, the virtual tools 1 ○ through 7 ○ corresponding to each virtual tool name NA as shown in Fig.3(c) are stored, corresponding to 1 ○ through 7 ○ in Fig.3(b). That is, the virtual tool of 1 ○ turning drill of Fig.3(c) is registered in such a manner that tool number Tno is 1, tool setting direction is ←, tool name NA is DRL EDG, nominal diameter/tool angle CA is 180, suffix DC is A, rotational direction/tool character RT is right rotation, and tool diameter/tool edge R DM is 50, as shown in 1 ○ of Fig.3(b). On this occasion, tool setting direction DR shows the tool direction as default value by the direction of an arrow, "←" shows the direction wherein the direction of the tool is parallel to the Z-axis, that is, the B-axis angle is 0° and " ↓ " shows the direction wherein the direction of the tool is parallel to the X-axis, that is, the B-axis angle is 90° . The virtual tool of 2 ○ outside diameter rough machining of Fig.3 (c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓ , tool name NA is GNL OUT, nominal diameter/tool angle CA is 75, suffix DC is B, rotational direction/tool character RT is left hand/right rotation, tool diameter/tool edge R DM is 0.4, finishing machining/rough machining division RF is R (rough machining), as shown in 2 ○ of Fig.3(b). The virtual tool of 3 ○ outside diameter finishing machining of Fig.3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓, tool name NA is GNL OUT, nominal diameter/tool angle CA is 40, suffix DC is C, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.2, finishing machining/rough machining division RF is F (finishing machining), as shown in 3 ○ of Fig.3(b). Furthermore, the virtual tool of 4 ○ inside diameter rough machining of Fig.3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ←, tool name NA is GNL IN, nominal diameter/tool angle CA is 75, suffix DC is D, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.4, finishing machining/rough machining division RF is R (rough machining) , as shown in 4 ○ of Fig.3(b). The virtual tool of 5 ○ inside diameter finishing machining of Fig.3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ← , tool name NA is GNL IN, nominal diameter/tool angle CA is 40, suffix DC is E, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.2, finishing machining/rough machining division RF is F (finishing machining), as shown in 5 ○ of Fig.3(b). The virtual tool of 6 ○ mill drill of Fig.3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓ , tool name NA is drill, nominal diameter/tool angle CA is 50, suffix DC is H, rotational direction/tool character RT is left direction, as shown in 6 ○ of Fig.3(b). The virtual tool of 7 ○ end mill of Fig. 3 (c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓ , tool name NA is end mill, nominal diameter/tool angle CA is 50, suffix DC is J, rotational direction/tool character RT is right direction and tool diameter/tool edge R DM is 50, as shown in 7 ○ of Fig.3(b). Then, in the machining program PRO, as the tool to be used in the machining program PRO, the tool name NA and the suffix DC of the corresponding virtual tool are designated, regardless of use of the complex tool 21 in the machining, similar to the case of designating a normal tool even if the complex 21 is used. In case of the machining (M1) for forming the hole 17a on the central portion of the workpiece 17 as shown in Fig.5 as mentioned before, the virtual tool of 1 ○ turning drill of the complex tool 21 is used as a tool. So, in this designation, the tool name NA "DRL EDG" and the suffix DC "A" are input in the machining program PRO, similar to a normal tool designation. By doing so, the tool designation finishes only by acknowledging and designating each virtual tool in the tool file 7 by an operator without understanding the whole complex tool 21 at the time of composing the machining program PRO. Then, the composing of the machining program PRO is possible with no specific knowledge concerning the complex tool 21. Then, the main control portion 2 searches the tool data DAT of the tool file 7 so as to select the corresponding tool, that is, the virtual tool wherein the tool number TNo as shown in 1 ○ of Fig.3 (b) is 1 and tool name NA is "DRL EDG" and suffix DC is "A" as shown on the most upper hand of the figure, and instructs the tool rest control portion 11 to index the tool at the machining position. In the tool file 7, the respective tools (including 1 ○ through 7 ○ as "virtual tool" regarded seven independent tools of the complex tool 21) are differentiated by tool name NA and suffix DC concerning turning machining related tool (in case of the same tool name NA, it is differentiated by changing suffix DC into "A", "B", "C", "D" and "E"), and are differentiated by tool name NA and nominal diameter/tool angle CA concerning the milling machining related tool, regardless of being the complex tool 21 or not. Then, when tool name NA and suffix DC or tool name NA and nominal diameter/tool angle CA are designated in the machining program PRO, the corresponding tool is immediately determined. The tool rest control portion 11 drives the tool exchanger which is not shown, and selects the complex tool 21 which tool number TNo is 1 from the tool magazine which is not shown so as to install on the tool rest 20. When the complex tool 21 is installed on the tool rest 20, the tool rest control portion 11 refers to the detailed data DAT2 corresponding to 1 ○ turning drill from tool name NA and suffix DC designated in the machining program PRO, and reads out the indexing number KD concerning 1 ○ turning drill and the B-axis angle ANG of the complex tool 21 shown in the detailed data DAT2. As shown in Fig. 3 (b) , tool data, similar to normal turning tool and milling tool, is stored for each virtual tool in the detailed data DAT2. In the detailed data DAT2 concerning each virtual tool, more detailed tool data is stored, for instance, tool length in X-axis and Z-axis direction TL, indexing number KD and B-axis angle ANG as default value, in addition to the above-mentioned tool name NA, nominal diameter/tool edge angle CA, suffix DC, rotational direction/tool character RT, tool diameter/tool edge R DM, finishing machining/rough machining division RF. Since the respective inserts 22, 23, 25, 26 are fixedly provided with respect to the main body 21a, the tool length TL measured concerning some virtual tool using an insert can be also used for other virtual tool using this insert. That is, even if B-axis angle ANG or indexing number KD of the complex tool using the same insert is different, the change of the tool length TL based on the difference is caused by only change of rotational angle with B-axis and the axial center CT2 as their center. Concerning the virtual tool having other B-axis angle ANG or other indexing number KD, using the same insert, its tool length can be geometrically easily computed. Therefore, the tool length TL measured for one virtual tool, using the same insert, can be also used for other virtual tool using the insert. The tool rest control portion 11 drives and controls a tool driving motor (not shown) built in the tool rest on the basis of the indexing number KD and the B-axis angle ANG concerning the read 1 ○ turning drill so as to rotate the complex tool 21 around its axial center CT3 and to position it in the state that the indexing number KD is 1. The state that the indexing number 1 is the state that the insert 22 is positioned facing upper hand in the figure (Y-axis direction), as shown in Fig.3(a). Furthermore, the tool rest 20 is moved and driven in the direction as shown by the arrows G and H with the Y-axis as its center by driving the B-axis driving motor (not shown) so as to position the complex tool 21 being parallel to Z-axis, which B-axis angle position is 0° , as shown in Fig.3(c). In this state, the spindle 15 is rotated and driven by the spindle driving motor 13 at a predetermined rotational number and the complex tool 21 is moved and driven in the direction by the arrow A of the Z-axis direction so as to machining and forming the hole 17a of a predetermined depth on the rotating workpiece 17 by the insert 22, as shown in Fig. 5 (M1). Subsequently, an end face 17b of Fig.5(M2) is machined by the insert 22 of the complex tool 21. In this case, the tool rest control portion 11 drives the B-axis driving motor with 1 ○ turning drill tool being selected so as to rotate and drive the tool rest 20 a predetermined angle in the direction as shown by the arrow H of B-axis (that is, the B-axis angle ANG is changed). Then, the complex tool 21 is held, slightly inclined with respect to the Z-axis, and the end face 17b of the workpiece is machined by the same insert 22, as shown in Fig.5(M2). Next, rough machining is performed on an outside diameter 17c of the workpiece 17 of Fig.5(M3) by the complex tool 21. In this case, the virtual tool is designated by inputting "GNL OUT" as tool name NA, "B" as suffix DC in the machining program PRO. Then, main control portion 2 searches the tool data DAT of the tool file 7, and selects the corresponding tool, that is, the virtual tool which tool name NA is "GNL OUT" and the suffix DC is "B", shown on the second from the upper of the figure which tool number is 1 as shown in 2 ○ of Fig.3(b), and instructs the tool rest control portion 11 to index the tool to the machining position. The tool rest control portion 11 refers to the detailed data DAT2 corresponding to 2 ○ outside diameter rough machining from the tool name NA and the suffix DC designated in the machining program PRO, and reads out the indexing number KD "3" and the B-axis angle ANG "112° " concerning 2 ○ outside diameter rough machining of the complex tool 21 shown in the detailed data DAT2. The tool rest control portion 11 drives and controls the tool driving motor (not shown). built in the tool rest on the basis of the read indexing number KD "3" and the B-axis angle "112° " concerning 2 ○ outside diameter rough machining so as to rotate the complex tool 21 around its axial center CT3. And, the complex tool 21 is positioned in the state that the indexing number KD is 3, as shown in Fig.3(a). Furthermore, the B-axis driving motor (not shown) is driven so as to move and drive the tool rest 20 in the direction as shown by the arrows G and H of the B-axis direction. Then, the complex tool 21 is positioned so that the B-axis angle position is anticlockwise 112° with respect to the Z-axis, as shown in Fig.5(M3). In this state, the complex tool 21 is moved and driven in the direction as shown by the arrow A of the Z-axis direction so as to machine the outside diameter 17c of the rotating workpiece 17 a predetermined length L1 by the insert 25, as shown in Fig.5(M3). Subsequently, finishing machining is executed on an inside diameter 17d of the workpiece 17 of Fig.6(M4) with the complex tool 21. In this case, the virtual tool is designated by inputting "GNL IN" as tool name NA, "E" as suffix DC in the machining program PRO. Then, main control portion 2 searches the tool data DAT of the tool file 7, and selects the corresponding tool, that is, the virtual tool which tool name NA is "GNL IN" and the suffix DC is "E", shown on the fifth from the upper of the figure which tool number TN is 1 as shown in 5 ○ of Fig. 3 (b) , and instructs the tool rest control portion 11 to index the tool to the machining position. The tool rest control portion 11 refers to the detailed data DAT2 corresponding to 5 ○ inside diameter finishing machining from the tool name NA and the suffix DC designated in the machining program PRO, and reads out the indexing number KD "5" and the B-axis angle "0° " concerning 5 ○ inside diameter finishing machining of the complex tool 21 shown in the detailed data DAT2. The tool rest control portion 11 drives and controls the tool driving motor (not shown) built in the tool rest on the basis of the read indexing number "4" and the B-axis angle "0° " concerning 5 ○ inside diameter finishing machining so as to rotate the complex tool 21 around its axial center CT3. And, the complex tool 21 is positioned in the state that the indexing number KD is 4, as shown in Fig.3(a). Furthermore, the B-axis driving motor (not shown) is driven so as to move and drive the tool rest 20 in the direction as shown by the arrows G and H of the B-axis direction. Then, the complex tool 21 is positioned so that the B-axis angle position is 0° with respect to the Z-axis, that is, so as to be parallel, as shown in Fig.6(M4). In this state, the complex tool 21 is moved and driven in the direction as shown by the arrow A of the Z-axis direction so as to machine the inside diameter 17d of the rotating workpiece 17 a predetermined length by the insert 26, as shown in Fig.6(M4). As shown in Fig.6(M5), (M6) and Fig.7(M7), (M8), the respective inserts 22, 23, 25, 26 of the same complex tool 21 are rotated around the tool axial center CT3 on the basis of the tool data DAT stored in the tool file 7 so as to selectively index and position the insert to be used for machining. And, the tool rest is properly rotated and positioned in the direction of the B-axis angle so as to execute various kinds of machining, such as the outside diameter finishing machining as shown in Fig.6(M5), the outside diameter slot machining as shown in Fig.6(M6), the inside diameter screw machining as shown in Fig.7(M7) and the outside diameter screw machining as shown in Fig.7(M8) on the workpiece 17 by the respective inserts 22, 23, 25, 26. On this occasion, the virtual tools 1 ○ through 7 ○ as shown in Fig.3(c) are not used in a part of machining concerning Fig.6 and Fig.7. But, in this case also, machining is executed using the virtual tool concerning the complex tool 21 of Fig.4 set and stored in the other part of the tool file 7. For instance, the virtual tool to be used for the outside diameter finishing machining of Fig.6(M5) is one which tool number TN is 1 (showing the complex tool 21), tool name NA is "GNL OUT", suffix DC is "K", indexing number KD is "2", B-axis angle is 5° in the tool file 7. Then, this is the machining with the insert 26. After turning machining finished on the workpiece 17, milling machining as shown in Fig.8 (M9), (M10) and (M11) is executed at this time. In this case also, (M9) face machining, (M10) drilling machining and (M11) spot facing machining are executed on the workpiece 17 with 6 ○ milling drill and 7 ○ end mill of the virtual tools concerning the complex tool 21 set in the tool file 7 of the complex tool 21. Both 6 ○ milling drill and 7 ○ end mill of the virtual tools are the machining with the insert 22 which indexing number is 1, as shown in Fig.3(c). Then, milling machining is executed in such a manner that the workpiece 17 held by the spindle is fixedly held around the Z-axis or is rotated with C-axis control while the complex tool 21 being rotated at high speed with the axial center CT2 as its center, changing the B-axis angle. By machining as mentioned before, the workpiece, for instance, as shown in Fig.2 can be cut and machined from a round bar, with one complex tool 21. There is such a case where the inserts 22, 23, 25, 26 of the respective virtual tools of the complex tool 21 and the workpiece 17 may interfere with each other due to the machining shape of the workpiece 17 on such a machining, as shown in Fig.11(a), (c), (d). Each virtual tool is generally positioned by the tool rest 20 on the basis of the B-axis angle ANG as shown in 4 ○ of Fig.10, set in the detailed data DAT2 set in the tool file 7 concerning the virtual tool. But, in case where the angle of a taper TP portion of the workpiece 17 exceeds the clearance angle 3 ○ of the tool as shown in Fig.11(a), or there is an arc CT portion of the workpiece 17 as shown in Fig.11(b) and (c), there is no clearance angle between the virtual tool and the workpiece as shown in 3 ○ of Fig.10, the virtual tool and the workpiece 17 interfere with each other, and then a proper machining can not be executed. Furthermore, in case where as shown in Fig.11(e), the main body 21a of the complex tool 21 and the taper TP or the arc portion CT of the workpiece 17 interfere with each other also, a proper machining can not be executed. Then, the main control portion 2 simulates machining program by the simulation control portion 8 prior to the machining on a workpiece 17 with the complex tool by the machining program, and gets the B-axis angle changing judging control portion 4 to judge whether there is an interference between the workpiece and the virtual tool when machining is executed, with each virtual tool which use is instructed in the machining program, keeping the B-axis angle ANG as a default value, in the detailed data DAT2 in the tool data TL set for the tool. Besides, the B-axis angle ANG set as the default value is changed in case where there is an interference. That is, the B-axis angle changing judging control portion 4 executes the B-axis angle changing judging program BJP as shown in Fig.9, and reads out the cutting angle in 1 ○ of Fig.10 and the tool angle in 2 ○ of Fig.10 concerning the virtual tool which use is instructed in the machining program simulated from the corresponding detailed data DAT2 in the tool file 7 as shown in Fig.3(b) so as to obtain at step S1. Subsequently, the program enters into step S2, and as to whether or not the machining of the machining program simulated is rough machining is judged. In case of rough machining, the finishing machining shape registered in the machining program is shifted at the quantity of its finishing stock in step S3, and the machining shape formed by the rough machining is set. Next, the program enters into step S4, and correction of tool edge R as known art is executed. And, in step S5, the B-axis shift quantity is made O, that is, the default value stored in the tool data DAT is adopted as the value of the B-axis angle. For instance, in case of Fig.3(b), 112° is adopted as the B-axis angle ANG. Next, the clearance angle as shown in 3 ○ of Fig.10 is calculated at step S6. This clearance angle 3 ○ is shown by the following expression. clearance angle 3 = 180° - 1 cutting angle - 2 tool angle + B-axis shift quantity After the clearance angle 3 ○ is thus obtained, as to whether or not there is an interference between the workpiece and the virtual tool to be used for machining is judged by simulating at step S8. When the clearance angle 3 ○ is sufficient and the interference between the workpiece and the virtual tool to be used for machining (the complex tool 21) does not occur, the program enters into step S9. The default value is adopted as it is as the B-axis angle ANG, and actual machining is executed with the default value. But, in case where the clearance angle 3 ○ is short and the interference between the workpiece and the virtual tool to be used for machining (the complex tool 21) occurs as shown in Fig.11 (a), (c) , (d) and (e), the program enters into step S10, and as to whether or not the B-axis shift value reaches a predetermined clamp value (mentioned hereinafter) is judged. If not reach, the present B-axis angle ANG is shifted a predetermined quantity in the direction as shown by the arrows G and H of Fig.1 which is the B-axis direction so as to get the insert away from the workpiece 17. The complex tool 21 is moved 5° , for instance, in the direction where the inserts 22, 23, 25, 26 get away from the workpiece 17, that is, in the arrow K direction of Fig.11 for avoiding the interference between the workpiece and the insert. In this state, the step 6 and the subsequent steps are repeated again. The complex tool 21 is rotated a predetermined quantity in the direction opposite to the workpiece 17, as already mentioned. Therefore, the possibility of occurring the interference between the workpiece and the virtual tool is lower in comparison with the last simulation. Then, as to whether or not there is interference between the workpiece and the virtual tool is judged again in step S8. In case where the judgement is no interference as shown in Fig.11(b), the program enters into step S9 from step S8. And, the B-axis angle is changed into the value shifted a predetermined quantity as the B-axis angle ANG at the time of actual machining and its value is determined. In case where the interference between the workpiece 17 and the virtual tool is judged after shifting of the B-axis angle ANG at step S8, the B-axis angle ANG is further shifted in the direction as shown by the arrows G and H of Fig.1 which is the B-axis direction, in the direction where the inserts 22, 23, 25, 26 get away from the workpiece 17 via step 10 and step 11. And, this is repeated until no interference is judged at step S8. By doing so, the B-axis angle ANG is gradually moved in the direction opposite to the workpiece 17. But, in case where the B-axis angle ANG is widely changed in comparison with the initial default value, there is a danger of occurring hindrance on the execution of the machining with the virtual tool. So, the maximum shift quantity of the B-axis angle shifted from the default value of the B-axis angle ANG at step S11 is limited to a constant value. In case where the interference between the workpiece and the virtual tool is judged at step S8 in such a state that the B-axis angle is changed into the B-axis angle ANG adding the maximum shift quantity to the B-axis angle ANG at step S11, the judgement that the shift quantity with respect to the B-axis angle ANG reaches the maximum value, that is, reaches the clamp value is done at step S10. Then, the program enters into step S9, and the B-axis angle ANG is determined with the clamp value. In this case, the interference between the workpiece and the virtual tool is not released. Then, the main control portion 2 outputs the alarm to the display 12 and notifies an operator of change of tool to be used. The present invention is explained on the basis of the embodiment heretofore. The embodiments which are described in the present specification are illustrative and not limiting. The scope of the invention is designated by the accompanying claims and is not restricted by the descriptions of the specific embodiments. Accordingly, all the transformations and changes belonging to the claims are included in the scope of the present invention.

Claims: A complex machining machine tool having a tool rest (20) capable of attachably and detachably receiving a complex tool (21) having a plurality of inserts (22 - 26) thereon, the complex tool (21) being capable of a plurality of kinds of machining operations on a workpiece (17) by selectively indexing and using a selected one of said inserts (22 - 26) on said complex tool (21), characterised by said complex machining machine tool (1) comprising: a spindle (15) rotatably supported and defining a Z-axis as its center; said tool rest (20) being free to move and drive in an X-axis direction perpendicular to said Z-axis, and being free to rotate, position and drive in a B-axis direction with a Y-axis as its center which Y-axis is perpendicular to said X-axis and to said Z-axis; a tool file (7) storing tool data concerning said complex tool (21) to be used in a machining program; said complex tool (21) being registered in said tool file (7) as a plurality of virtual tools; a plurality of said virtual tools being virtually set concerning said complex tool (21), the virtual tools corresponding to machining operations that are capable of being executed with said complex tool (21); said virtual tools including a turning tool and a milling tool; said tool data being stored for every said virtual tool; said tool data including an angle in said B-axis direction concerning each said virtual tool at which angle said virtual tool is positioned when said virtual tool is used; and machining executing means reading out the tool data corresponding to a virtual tool from said tool file (7) on the basis of programmed machining instructions for use of said virtual tool according to a stored machining program and for executing the stored machining program with said virtual tools of said complex tool (21) being set and selected on the basis of said tool data. The complex machining machine tool as set forth in claim 1, wherein tool lengths concerning said complex tool (21) are respectively stored for each insert of the complex tool (21). The complex machining machine tool as set forth in claim 1, further comprising interference occurrence judging means operable for judging whether interference can be expected between a workpiece (17) to be machined and said virtual tools by simulating execution of the machining program to be executed, and wherein a B-axis angle changing means is provided for changing the B-axis angle concerning said virtual tool stored in said tool data so as to shift the B-axis angle to be used, by a predetermined amount, and to move said complex tool (21) away from said workpiece (17) and prevent said interference. The complex machining machine tool as set forth in claim 3, wherein said B-axis angle changing means is limited for controlling an extent of shifting of the B-axis angle by said B-axis angle changing means, so as not to shift by more than a maximum shifting quantity.

Inventors: FUKUMURA NAOE, KIKATA KAZUHIRO, MAKI KOICHI, MIYAZAKI SADAMI, MIZUKADO MASAYOSHI, YAMAZAKI TSUNEHIKO, FUKUMURA, NAOE, KIKATA, KAZUHIRO, MAKI, KOICHI, MIYAZAKI, SADAMI, MIZUKADO, MASAYOSHI, YAMAZAKI, TSUNEHIKO
Applicants: YAMAZAKI MAZAK CORP, YAMAZAKI MAZAK KABUSHIKI KAISHA
Application year: 2001
Main classification: G05B19
IPC codes: B23C5, B23B51, G05B19, B23Q3, B23Q15, B23P23