Control device, control method, and computer program

The control device updates reference values based on the power source's drive amount to determine the location of moving parts in machine tools, addressing inefficiencies and errors in existing systems by maintaining a precise association with the power source, enhancing power supply switching accuracy.

JP2024123622APending Publication Date: 2024-09-12BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023031196
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing numerical control devices require storing the position of each controlled object every time the power supply destination from the power source is switched, which is inefficient and can lead to errors in determining the location of the controlled objects.

Method used

A control device that includes a plurality of moving parts, a single power source, and a storage unit that updates a reference value based on the power source's drive amount, allowing the location of moving parts to be determined without memorizing the position of each controlled object during power supply switching, using a conversion unit to add or subtract pulse values for precise positioning.

Benefits of technology

Enables efficient and accurate determination of the location of moving parts by maintaining a reference value association with the power source, reducing errors and improving the efficiency of power supply switching in machine tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024123622000001
    Figure 2024123622000001
Patent Text Reader

Abstract

To provide a control device and the like of a machine tool, which can determine a location of each controlled object without memorizing the location of each controlled object every time a power source destination from a power source is switched.SOLUTION: A control device is a control device for a machine tool which includes: a plurality of move units for moving a work-piece or a main shaft; and a single power source for supplying power to the plurality of move units, and which can switch a supply destination of the power from the power source from one move unit to another move unit. The control device comprises: a storage unit which is linked to a reference position of the one move unit and stores a reference value for determining a location of the one move unit based on a difference from a location of the power source; and an update unit which updates the reference value stored in the storage unit while maintaining the link to the reference position according to a drive amount of the power source when the other move unit is moved.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to a control device, a control method, and a computer program for a machine tool. [Background technology]

[0002] There is a numerical control device that controls the connection between a single servo motor and a first controlled object part or a second controlled object part. When the numerical control device disconnects the servo motor from the first controlled object part, it stores the position of the first controlled object part at the time of disconnection (hereinafter, disconnection position). The numerical control device connects the servo motor to the second controlled object part. The servo motor drives the second controlled object part. While driving the second controlled object part, the numerical control device calculates the amount of movement of the first controlled object part when it is assumed that the servo motor is connected to the first controlled object part, and stores the virtual position of the first controlled object part (hereinafter, virtual position).

[0003] When driving of the second controlled object part is finished and the servomotor is to be connected to the first controlled object part, before connecting the servomotor to the first controlled object part, the numerical control device calculates the difference between the virtual position and the disconnected position, and drives the servomotor until the difference becomes 0. When the difference becomes 0, the servomotor is in a position where it can be connected to the first controlled object part. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent No. 5919329 Summary of the Invention [Problem to be solved by the invention]

[0005] In Patent Document 1, the numerical control device stores the position of each control target every time it switches the connection destination of the servo motor.

[0006] The present disclosure has been made in consideration of the above circumstances, and aims to provide a control device, control method, and computer program for a machine tool that can determine the location of each control object without having to memorize the position of each control object each time the destination of power supply from a power source is switched. [Means for solving the problem]

[0007] A control device according to one embodiment of the present disclosure is a control device for a machine tool that has a plurality of moving parts that move a workpiece or a spindle, and a single power source that supplies power to the plurality of moving parts, and is capable of switching the destination of the power supply from the power source from one of the moving parts to another of the moving parts, and is equipped with a memory unit that is linked to a reference position of the one moving part and stores a reference value for determining the location of the one moving part based on the difference from the location of the power source, and an update unit that, when performing movement of the other moving part, updates the reference value stored in the memory unit while maintaining its link to the reference position in accordance with the driving amount of the power source.

[0008] In the present disclosure, when another moving part moves, the reference value is updated according to the driving amount of the power source while maintaining the link to the reference position.

[0009] In one embodiment of the control device of the present disclosure, the reference value includes a pulse value, and the control device is provided with a conversion unit that converts the movement amount of the other moving part from a position to a pulse value, and the update unit adds or subtracts the pulse value of the movement amount of the other moving part converted by the conversion unit to the reference value.

[0010] In the present disclosure, the amount of movement of the other moving part is converted from a position to a pulse value, and the converted pulse value of the amount of movement of the other moving part is added to or subtracted from the reference value to update the reference value.

[0011] A control device according to one embodiment of the present disclosure updates the reference value in the update unit, and then when determining the location of the one moving unit, derives the difference between the updated reference value and the location of the power source.

[0012] In the present disclosure, when determining the location of one moving part after updating the reference value, the difference between the updated reference value and the location of the power source is derived. The control device determines the location of the one moving part based on the difference.

[0013] In one embodiment of the control device disclosed herein, the machine tool is provided with an engaging portion and an engaged portion that engage when switching the destination of the power supply from the power source, and a positioning portion that positions the engaging portion or the engaged portion at an engageable position, and when switching the destination of the power supply from the power source from the one moving portion to the other moving portion, the machine tool is provided with an execution portion that engages the engaging portion or the engaged portion after positioning by the positioning portion.

[0014] In the present disclosure, after positioning is performed by the positioning portion, engagement between the engaging portion and the engaged portion is performed.

[0015] In one embodiment of the control device disclosed herein, the machine tool is provided with an engaging portion and an engaged portion that move relatively in conjunction with movement of the moving portion and are capable of switching the destination of the supply of power from the power source when engaged, the engaging portion and the engaged portion are engageable at a plurality of positions, and when switching the destination of the supply of power from the power source, the control device is provided with a judgment portion that determines whether the engaging portion and the engaged portion are in an engageable position, a first engagement execution portion that executes engagement of the engaging portion and the engaged portion when the judgment portion determines that they are in an engageable position, a movement execution portion that executes movement of the engaging portion and the engaged portion to a position where the engaging portion and the engaged portion can be engaged, and a second engagement execution portion that executes engagement of the engaging portion and the engaged portion after movement by the movement execution portion.

[0016] In the present disclosure, when the engaging portion and the engaged portion are in an engageable position, the engaging portion and the engaged portion are engaged with each other. When the engaging portion and the engaged portion are not in an engageable position, the engaging portion and the engaged portion are moved to an engageable position, and then the engaging portion and the engaged portion are engaged with each other.

[0017] In one embodiment of the control device of the present disclosure, when the determination unit determines that the engaging portion and the engaged portion are not in an engageable position, the movement execution unit executes movement of the engaging portion and the engaged portion to an engageable position closest to their locations.

[0018] In the present disclosure, when the engaging portion and the engaged portion are in an engageable position, the engaging portion and the engaged portion are engaged with each other. When the engaging portion and the engaged portion are not in an engageable position, the engaging portion and the engaged portion are moved to an engageable position closest to the positions of the engaging portion and the engaged portion, and then the engaging portion and the engaged portion are engaged with each other.

[0019] In one embodiment of the control device disclosed herein, the machine tool is provided with an engaging part and an engaged part that move relatively in conjunction with the movement of the moving part and that can switch the destination of the power supply from the power source when engaged, and is provided with a judgment part that judges whether the engaging part and the engaged part are in an engageable position when switching the destination of the power supply from the power source, an engagement execution part that executes engagement of the engaging part and the engaged part when the judgment part determines that they are in an engageable position, and an alarm execution part that executes an alarm that engagement is not possible when the judgment part determines that they are not in an engageable position.

[0020] In the present disclosure, when the engaging portion and the engaged portion are in an engageable position, the engaging portion and the engaged portion are engaged with each other, and when the engaging portion and the engaged portion are not in an engageable position, a notification is issued that the engaging portion and the engaged portion are not engageable.

[0021] A control method according to one embodiment of the present disclosure is a control method for a machine tool having a plurality of moving parts that move a workpiece or a spindle, and a single power source that supplies power to the plurality of moving parts, and capable of switching the destination of the power supply from the power source from one of the moving parts to another of the moving parts, wherein the control method is linked to a reference position of the one of the moving parts, and a reference value for determining the position of the one moving part based on a difference from the position of the power source is stored, and when movement of the other moving part is performed, the stored reference value is updated while maintaining its link to the reference position in accordance with the driving amount of the power source.

[0022] In the present disclosure, when the power supply destination is switched from one moving unit to another moving unit, the reference value is updated according to the driving amount of the power source while maintaining the link to the reference position.

[0023] A computer program according to one embodiment of the present disclosure is a computer program executable by a control device of a machine tool having multiple moving parts that move a workpiece or a spindle and a single power source that supplies power to the multiple moving parts, and that is capable of switching the destination of the power supply from the power source from one of the moving parts to another of the moving parts, wherein the control device stores a reference value that is linked to a reference position of the one moving part and is used to determine the position of the one moving part based on a difference from the position of the power source, and when movement of the other moving part is performed, the stored reference value is updated in accordance with the driving amount of the power source, while maintaining its link to the reference position.

[0024] In the present disclosure, when the power supply destination is switched from one moving unit to another moving unit, the reference value is updated according to the driving amount of the power source while maintaining the link to the reference position. Effect of the Invention

[0025] In the control device, control method, and computer program for a machine tool according to an embodiment of the present disclosure, when the power supply destination is switched from one moving unit to another moving unit, the reference value is updated according to the drive amount of the power source while maintaining the link to the reference position, and the location of the one moving unit can be calculated based on the difference between the reference value and the location of the power source. [Brief description of the drawings]

[0026] [Figure 1] 1 is an external perspective view of a machine tool according to a first embodiment; [Diagram 2] FIG. 2 is a schematic perspective view of a machine tool inside a cover. [Diagram 3] FIG. 1 is a first vertical cross-sectional view of a spindle unit. [Figure 4] FIG. 4 is a second vertical cross-sectional view of the spindle unit. [Diagram 5] FIG. [Figure 6] FIG. 2 is a perspective view of a spindle unit with the first housing omitted. [Figure 7] 13 is a partially enlarged perspective view of the dog clutch, the first engagement portion, and the second engagement portion when the first engagement portion is engaged between the upper teeth. FIG. [Figure 8] 13 is a partially enlarged perspective view of the dog clutch, the first engagement portion, and the second engagement portion when the second engagement portion is engaged between the lower teeth. FIG. [Figure 9] FIG. 2 is a block diagram of a control device, a movement motor, an A / C axis motor, etc. [Figure 10] 1 is a conceptual diagram of an example of a table. [Figure 11] 13 is a graph showing the relationship between a command position and a location position on the A axis, and a graph showing the relationship between a command position and a location position on the C axis. [Figure 12] 13 is a flowchart illustrating the update process of table T and the drive process of the A / C axis motor by the control unit when a movement command about the A axis is executed. [Figure 13] FIG. 11 is a block diagram of a control device, a movement motor, an A / C axis motor, and the like according to the second embodiment. [Figure 14] 13 is a flowchart illustrating an A-axis connection process of the dog clutch. [Figure 15] 13 is a flowchart illustrating an A-axis connection process of a dog clutch that is executed before the A-axis moves according to the third embodiment. [Figure 16] 13 is a schematic perspective view of an air cylinder, a large diameter gear, and the like in a state in which a positioning rod according to a fourth embodiment is not inserted into a positioning hole. FIG. [Figure 17] 4 is a schematic perspective view of an air cylinder, a large diameter gear, and the like in a state in which a positioning rod is inserted into a positioning hole. FIG. [Figure 18] 10 is a flowchart illustrating a process for connecting a dog clutch by a control unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] (Embodiment 1) The present invention will be described below based on the drawings showing a machine tool according to embodiment 1. In the following description, up, down, front, back, left and right shown in the drawings will be used. Figure 1 is an external perspective view of the machine tool, and Figure 2 is a simplified perspective view of the machine tool inside the cover.

[0028] The machine tool has a workpiece holder 1. The upper surface of the holder 1 holds a workpiece. A cover 2 is provided around the holder 1. The cover 2 is a rectangular parallelepiped extending vertically, and has a front surface 2a, a right surface 2b, a left surface 2c, a rear surface 2d, and a top surface 2e. An opening and closing door 3 is provided on the front surface 2a, and transparent windows 4 are provided on the right surface 2b and the left surface 2c.

[0029] Three upright pillars 5 extending in the vertical direction are provided inside the cover 2. The three upright pillars 5 are arranged around the support base 1 with a phase interval of approximately 120 degrees in a plan view. A track 6 is provided on the side surface of each upright pillar 5 facing the support base 1. The track 6 extends in the vertical direction. A moving unit 7 and a drive mechanism (not shown) are provided on the track 6, and the moving mechanism is composed of a ball screw mechanism or the like. A moving motor 8 that supplies power to the drive mechanism is provided on the upper end of the upright pillars 5. When driven by the moving motor 8, the moving unit 7 moves in the vertical direction along the track 6. The moving motor 8 is provided on the upper surface portion 2e and is located outside the cover 2.

[0030] As shown in Fig. 2, the upper surface portion 2e is provided with a support plate 2f that is triangular in plan view. An A / C shaft motor 10 and a reducer 11 are provided on the support plate 2f. The A / C shaft motor 10 constitutes a single power source. The upper ends of the three upright columns 5 protrude upward from the upper surface portion 2e. The upper ends and corners of the support plate 2f are connected via connecting plates 9. The upper ends, support plate 2f, and connecting plate 9 are omitted from Fig. 1.

[0031] A spindle unit 20 is disposed above the support table 1. The spindle unit 20 is connected to a reducer 11 via a ball spline 12 extending vertically. The rotation of an A / C shaft motor 10 is reduced in speed by the reducer 11 and then transmitted to the ball spline 12. The ball spline 12 rotates around its axis.

[0032] The spindle unit 20 faces each of the upright pillars 5. The spindle unit 20 and the moving part 7 are connected by two parallel links 13. The links 13 are rod-shaped. One end of each of the two links 13 is connected to a first housing 21 (see Figure 3) of the spindle unit 20 via a rotatable joint 14. The other end of each of the two links 13 is connected to the moving part 7 via a joint 14. The joint 14 is a universal joint or the like. By changing the vertical positions of the three moving parts 7, the spindle unit 20 moves up, down, front, back, left and right.

[0033] Fig. 3 is a first vertical cross-sectional view of the spindle unit 20, Fig. 4 is a second vertical cross-sectional view of the spindle unit 20, and Fig. 5 is a sectional perspective view of the spindle unit 20. The cutting positions of the cut surfaces in Fig. 3 and Fig. 4 are different. The spindle unit 20 has a first housing 21 having a truncated cone shape. The first housing 21 is arranged with its small diameter side facing upward and its large diameter side facing downward. The entire bottom surface of the first housing 21 is open. A link 13 is connected to the lower edge portion of the first housing 21.

[0034] A through hole 21b penetrating vertically is formed in the top surface portion 21a of the first housing 21. A first rotating shaft 24 is inserted into the through hole 21b. A plain bearing 25 fits between the first rotating shaft 24 and the through hole 21b. The plain bearing 25 rotatably supports the first rotating shaft 24. The first rotating shaft 24 is cylindrical, and wiring 60 is inserted into the inside of the first rotating shaft 24. A plurality of first engaging portions 21c are fixed to the underside of the top surface portion 21a of the first housing 21. The plurality of first engaging portions 21c are provided around the through hole 21b at approximately equal intervals in the circumferential direction.

[0035] A drive gear 27 is provided approximately midway through the first rotating shaft 24. The drive gear 27 is a double gear having a small diameter gear 27b and a large diameter gear 27a. The small diameter gear 27b is located on the lower side and the large diameter gear 27a is located on the upper side. The first rotating shaft 24 is inserted into a hole in the center of the drive gear 27. Two bearings 24b with their axial direction extending up and down are fitted between the first rotating shaft 24 and the drive gear 27. The two bearings 24b are lined up vertically and rotatably support the first rotating shaft 24 and the drive gear 27. The rotation of the ball spline 12 is transmitted to the large diameter gear 27a.

[0036] The drive gear 27 has a plurality of second engagement portions 27c. The second engagement portions 27c are fixed to the upper surface of the large diameter gear 27a and are provided at approximately equal intervals in the circumferential direction of the first rotating shaft 24. A dog clutch 26 is provided between the upper surface portion 21a of the first housing 21 and the drive gear 27. The dog clutch 26 has a cylindrical shape that is short in the axial direction and is disposed with the up-down direction as the axial direction. A ring-shaped groove 26a extending in the circumferential direction is formed in the axial center of the outer circumferential surface of the dog clutch 26. The dog clutch 26 is made of a thermoplastic resin material, for example a resin material containing polyoxymethylene.

[0037] A plurality of upper teeth 26b protruding upward are arranged in the circumferential direction on the upper edge of the dog clutch 26, and a plurality of lower teeth 26c protruding downward are arranged in the circumferential direction on the lower edge. The dog clutch 26 is provided on the outside of the first rotating shaft 24. That is, the first rotating shaft 24 is inserted into the inside of the dog clutch 26. A key groove is provided on one of the outer peripheral surface of the first rotating shaft 24 and the inner peripheral surface of the dog clutch 26, and a key that fits into the key groove is provided on the other (both are not shown). The axial dimension of the key groove is longer than the key, and the key can move up and down along the key groove. The circumferential dimension of the key groove is approximately the same as that of the key. That is, the dog clutch 26 is fixed in the circumferential direction to the first rotating shaft 24, and can move in the axial direction.

[0038] The second housing 22 is provided at the bottom opening of the first housing 21. The second housing 22 is cylindrical with a hollow interior and is disposed with the up-down direction as its axial direction. The upper edge of the second housing 22 is disposed inside the lower edge of the first housing 21. A cross roller bearing 23 is provided between the upper edge of the second housing 22 and the lower edge of the first housing 21. The cross roller bearing 23 rotatably supports the second housing 22. The second housing 22 rotates about a vertical axis.

[0039] A first support tube 22a is formed in the center of the upper surface of the second housing 22. The first support tube 22a extends upward and downward from the upper surface 22d so as to vertically penetrate the upper surface 22d of the second housing 22. The lower part of the first rotating shaft 24 is inserted inside the first support tube 22a. A key groove is provided on one of the outer peripheral surface of the first rotating shaft 24 and the inner peripheral surface of the first support tube 22a, and a key that fits into the key groove is provided on the other (both are not shown). The axial dimensions and circumferential dimensions of the key groove and the key are approximately the same, and the key groove and the key fix the first supporting tube 22a to the first rotating shaft 24 in the axial and circumferential directions. The lower end of the first rotating shaft 24 protrudes downward from the first supporting tube 22a. A cylindrical fixing member 24a is attached to the outer periphery of the lower end of the first rotating shaft 24. The fixing member 24a fixes the lower ends of the first supporting tube 22a and the first rotating shaft 24.

[0040] A second support tube 22b is formed on the upper surface portion 22d of the second housing 22. The second support tube 22b is located next to the first support tube 22a in the radial direction. The second support tube 22b protrudes downward from the upper surface portion 22d and is located inside the second housing 22. The upper end opening of the second support tube 22b penetrates the upper surface portion 22d. A first intermediate shaft 31 is inserted into the second support tube 22b. Two bearings 31a with the up-down direction as the axial direction are provided between an approximately midway portion of the first intermediate shaft 31 and the second support tube 22b. The two bearings 31a are lined up vertically and rotatably support the first intermediate shaft 31.

[0041] An upper end of the first intermediate shaft 31 protrudes upward from the second support cylinder 22b. A spur gear 29 with its axial direction extending in the vertical direction is fitted onto the upper end. The spur gear 29 meshes with the small diameter gear 27b of the drive gear 27. A lower end of the first intermediate shaft 31 is located near the lower surface of the second housing 22. A bevel gear 30 is fitted onto the lower end.

[0042] A part of the peripheral surface of the second housing 22 protrudes radially outward and obliquely downward. Hereinafter, this protruding portion will be referred to as protruding portion 22c. The lower end of protruding portion 22c is open. Protruding portion 22c is located next to second support cylinder 22b. A first arm 40 is connected to the lower end of protruding portion 22c. The angle between protruding portion 22c and the peripheral surface of second housing 22 is an acute angle, for example, about 30 degrees.

[0043] The first arm 40 is provided with a cylindrical housing 41 with a bottom. An opening of the housing 41 is connected to an opening of the protruding portion 22c. The housing 41 extends in the same direction as the protruding direction of the protruding portion 22c. An upper portion of the housing 41 houses the second intermediate shaft 32 and two bearings 32a. The second intermediate shaft 32 extends in the same direction as the protruding direction. The protruding direction is the axial direction of the bearing 32a. The two bearings 32a are aligned in the protruding direction and support the second intermediate shaft 32. A bevel gear 34 is fitted to the upper end portion of the second intermediate shaft 32. The bevel gear 34 meshes with the bevel gear 30 of the first intermediate shaft 31.

[0044] The central portion of the housing 41 houses the third intermediate shaft 33 and two bearings 33a. The third intermediate shaft 33 extends in the same direction as the protruding direction. The protruding direction is the axial direction of the bearing 33a. The two bearings 33a are aligned in the protruding direction and support the third intermediate shaft 33. A coupling 37 connects an upper end portion of the third intermediate shaft 33 and a lower end portion of the second intermediate shaft 32. The lower end portion of the third intermediate shaft 33 forms a hypoid pinion 33b.

[0045] An opening 42 is formed in the side surface of the lower end of the housing 41. The opening 42 is located on the second housing 22 side. The lower end of the housing 41 houses a second rotating shaft 35. The second rotating shaft 35 extends in a direction perpendicular to the protruding direction (hereinafter, the perpendicular direction) and penetrates the lower end of the housing 41. One end of the second rotating shaft 35 protrudes from the opening 42. The second rotating shaft 35 is cylindrical, and wiring 60 is inserted inside the second rotating shaft 35.

[0046] The lower end of the housing 41 houses the first bearing 35a, the second bearing 36a, and the hypoid gear 36. The first bearing 35a is located on the opposite side of the opening 42, and supports the other end of the second rotating shaft 35. The second bearing 36a is located between the first bearing 35a and the opening 42, and the second bearing 36a supports the outer periphery of the hypoid gear 36. The second rotating shaft 35 is inserted into the hypoid gear 36, and the hypoid gear 36 is fixed to the center of the second rotating shaft 35. The hypoid gear 36 is connected to the second rotating shaft 35, and meshes with the hypoid pinion 33b.

[0047] The reduction ratio of the hypoid gear 36 and the hypoid pinion 33b is higher than that of the two bevel gears 30, 34, and higher than that of the spur gear 29 and the small diameter gear 27b. A worm wheel may be used instead of the hypoid gear 36, and a worm gear may be used instead of the hypoid pinion 33b. Even in this case, the reduction ratio of the worm wheel and the worm gear is higher than that of the two bevel gears 30, 34, and higher than that of the spur gear 29 and the small diameter gear 27b.

[0048] A second arm 43 is connected to the periphery of the opening 42. The second arm 43 includes an arm portion 44 and a support tube 45. The arm portion 44 is configured like a rod with the center bent, and includes a first portion 44a extending in a direction parallel to the housing 41, and a second portion 44b extending in a direction intersecting the first portion 44a. One end of the first portion 44a and one end of the second portion 44b are integrally connected. The other end of the first portion 44a has a cylindrical shape with the orthogonal direction as its axial direction, and faces the periphery of the opening 42. One end of the second rotating shaft 35 protruding from the opening 42 is fixed to the other end of the first portion 44a.

[0049] The second portion 44b has a through hole 44c formed therein, into which the wiring 60 is inserted. A support tube 45 is provided at the other end of the second portion 44b. The support tube 45 is arranged so that the axis of the support tube 45 coincides with the axis of the first rotating shaft 24. The support tube 45 coaxially supports the main shaft 46 inside thereof. A main shaft motor 48 is provided on the support tube 45. A tool 47 is attached to the lower end of the main shaft 46. The main shaft motor 48 supplies power to the main shaft 46, causing the main shaft 46 and the tool 47 to rotate. The wiring 60 passes through the second rotating shaft 35 and the through hole 44c, and is electrically connected to the main shaft motor 48 to supply power.

[0050] 3, when the axis of the first rotating shaft 24 is C, the axes of the main shaft 46 and the tool 47 coincide with C. When the axis of the second rotating shaft 35 is A, the tip of the tool 47 is located at A. In other words, the tip of the tool 47 is located at the intersection of the axes C and A. The angle θ between the axes C and A is approximately 60 degrees. The angle θ may be any value between 45 degrees and 90 degrees, preferably between 50 degrees and 90 degrees, and more preferably between 55 degrees and 80 degrees.

[0051] Fig. 6 is a perspective view of the spindle unit 20 without illustrating the first housing 21, Fig. 7 is a partially enlarged perspective view of the dog clutch 26, the first engaging portion 21c, and the second engaging portion 27c when the first engaging portion 21c is engaged between the upper teeth 26b, and Fig. 8 is a partially enlarged perspective view of the dog clutch 26, the first engaging portion 21c, and the second engaging portion 27c when the second engaging portion 27c is engaged between the lower teeth 26c. The first engaging portion 21c and the second engaging portion 27c correspond to the engaging portion, and the dog clutch 26 corresponds to the engaged portion.

[0052] 7 and 8, the first engagement portion 21c includes a fixed portion 21c1 that is fixed to the upper surface portion 21a of the first housing 21, and a protrusion 21c2 that protrudes downward from the fixed portion 21c1. An inclined surface is formed on both sides of the lower end portion of the protrusion 21c2. The width of the lower end portion of the protrusion 21c2 is smaller than the width between the upper teeth 26b.

[0053] The second engagement portion 27c includes a fixed portion 27c1 that is fixed to the upper surface of the large diameter gear 27a, and a protrusion 27c2 that protrudes upward from the fixed portion 27c1. An inclined surface is formed on both sides of the upper end of the protrusion 27c2 so that the width of the protrusion 27c2 in the circumferential direction of the dog clutch 26 decreases toward the upper side. The width of the upper end of the protrusion 27c2 is smaller than the width between the upper teeth 26b.

[0054] An air cylinder 50 is attached to the outside of the first housing 21. The air cylinder 50 has a rod 50a whose axial direction is the up and down direction. The rod 50a protrudes downward from the air cylinder 50 and moves up and down by air pressure. Compressed air is supplied to the air cylinder 50 via a switching valve 50b (see FIG. 9). The switching valve 50b is an electromagnetic valve. The switching valve 50b switches the compressed air to a first path through which the rod 50a rises or a second path through which the rod 50a descends.

[0055] A bifurcated fork 52 is attached to the lower end of the rod 50a. The base end of the fork 52 is rotatably connected to the lower end of the rod 50a with the radial direction of the dog clutch 26 as the rotation axis direction. The bifurcated portion of the fork 52 engages with the groove 26a. The bifurcated portion of the fork 52 is located inside the first housing 21, and the base end of the fork 52 penetrates the first housing 21 in the radial direction of the dog clutch 26.

[0056] A support shaft 51 extending in a radial direction of the dog clutch 26 is provided inside the first housing 21. The support shaft 51 passes through a middle portion of a base end portion of a fork 52. The support shaft 51 supports the fork 52 so as to be rotatable about its axis.

[0057] When the rod 50a moves downward, the bifurcated portion of the fork 52 moves upward with the support shaft 51 as a fulcrum, and the first engagement portion 21c engages between the upper teeth 26b of the dog clutch 26 (see FIG. 7). When the rod 50a moves upward, the bifurcated portion of the fork 52 moves downward with the support shaft 51 as a fulcrum, and the second engagement portion 27c engages between the lower teeth 26c of the dog clutch 26 (see FIG. 8).

[0058] 7, the first housing 21, the air cylinder 50, and the fork 52 are omitted. When the fork portion of the fork 52 moves upward and the first engagement portion 21c engages between the upper teeth 26b, the dog clutch 26, the first rotating shaft 24, and the second housing 22 are fixed to the first housing 21. The second engagement portion 27c does not engage between the lower teeth 26c of the dog clutch 26.

[0059] The ball spline 12 rotates by the rotation of the A / C shaft motor 10, and the rotation is transmitted to the large diameter gear 27a, causing the drive gear 27 to rotate. The spur gear 29 meshing with the small diameter gear 27b rotates, causing the first intermediate shaft 31, the bevel gears 30 and 34, the second intermediate shaft 32, and the third intermediate shaft 33 to rotate. The hypoid pinion 33b at the lower end of the third intermediate shaft 33 rotates, causing the hypoid gear 36 to rotate. The second rotating shaft 35 and the second arm 43 rotate together with the hypoid gear 36 around the axis A. Hereinafter, the axis A will also be referred to as the A-axis. The dog clutch 26, the first rotating shaft 24, and the second housing 22 are fixed to the first housing 21 and do not rotate. The drive gear 27, spur gear 29, first intermediate shaft 31, bevel gears 30, 34, second intermediate shaft 32, third intermediate shaft 33, hypoid pinion 33b, hypoid gear 36, second rotating shaft 35, and second arm 43 etc. constitute a moving part that moves the main shaft 46 around the A axis.

[0060] In FIG. 8, the first housing 21, the air cylinder 50, and the fork 52 are omitted. When the bifurcated portion of the fork 52 moves downward and the second engagement portion 27c engages between the lower teeth 26c, the dog clutch 26, the first rotating shaft 24, and the second housing 22 are connected to the drive gear 27. The rotation of the ball spline 12 is transmitted to the drive gear 27, and the first rotating shaft 24, the second housing 22, the first arm 40, and the second arm 43 rotate together with the drive gear 27 around the axis C. Hereinafter, the axis C is also referred to as the C-axis. Note that the first intermediate shaft 31, the second intermediate shaft 32, the third intermediate shaft 33, and the second rotating shaft 35 also rotate together with the drive gear 27 around the C-axis, so that the first intermediate shaft 31, the second intermediate shaft 32, the third intermediate shaft 33, and the second rotating shaft 35 themselves do not rotate, and the second arm 43 does not rotate around the A-axis. The drive gear 27, the first rotating shaft 24, the second housing 22, the first arm 40, the second arm 43, etc. constitute a moving part that moves the main shaft 46 around the C axis.

[0061] When the rotation around the A-axis is switched to the rotation around the C-axis, the dog clutch 26 moves downward. When the second engagement portion 27c is not positioned between the lower teeth 26c, the lower teeth 26c contact the inclined surface 27c3 of the second engagement portion 27c. The driving gear 27 rotates around the C-axis due to the force acting on the inclined surface 27c3 from the lower teeth 26c, and the protrusion 27c2 of the second engagement portion 27c is positioned between the lower teeth 26c.

[0062] When switching from rotation around the C-axis to rotation around the A-axis, the dog clutch 26 moves upward. When the first engagement portion 21c is not positioned between the upper teeth 26b, the upper teeth 26b contact the inclined surface 21c3 of the first engagement portion 21c. The driving gear 27 rotates around the C-axis due to the force acting on the inclined surface 21c3 from the upper teeth 26b, and the protrusion 21c2 of the first engagement portion 21c is positioned between the upper teeth 26b.

[0063] FIG. 9 is a block diagram of the control device 80, the movement motor 8, the A / C axis motor 10, etc. The control device 80 includes a control unit 81, a main memory unit 82, and an auxiliary memory unit 83. The control unit 81 is, for example, a processor or a logic circuit. The processor includes a CPU, an MPU, or a GPU. The logic circuit includes an FPGA, a CPLD, or an ASIC. The main memory unit 82 is, for example, a RAM. The auxiliary memory unit 83 includes, for example, a ROM, an EPROM, an EEPROM, a flash memory, or a hard disk. The auxiliary memory unit 83 stores a control program that controls the machine tool. The control program includes a machining program for machining a workpiece, and an update program for updating a reference encoder value, which will be described later.

[0064] The control program may be installed in the control device 80 from a portable storage medium 84. The storage medium 84 is, for example, an optical disk or a USB memory. The control device 80 may be connected to a network, and the control program may be downloaded to the control device 80 from a server on the network.

[0065] The machine tool includes an operation unit 61. The operation unit 61 includes a keyboard, a switch, a button, a touch panel, or the like. The operation unit 61 accepts operations by an operator and outputs a signal indicating the operation content to the control device 80. The machine tool includes a display unit 62. The display unit 62 includes a liquid crystal display or an organic EL display, or the like, and may be provided with a touch panel. The control device 80 outputs a signal to display information on the display unit 62.

[0066] The control device 80 outputs a movement command to a drive circuit 10b of the A / C axis motor 10. The drive circuit 10b outputs a drive signal based on the movement command to the A / C axis motor 10. The A / C axis motor 10 is equipped with an encoder 10a. The encoder 10a detects the position of the A / C axis motor 10. The drive circuit 10b feedback-controls the drive of the A / C axis motor 10 using a signal indicating the position from the encoder 10a as a feedback signal.

[0067] The control device 80 outputs a movement command to a drive circuit 8b of the movement motor 8. The movement motor 8 is equipped with an encoder 8a. As with the A / C axis motor 10, the drive circuit 8b feedback-controls the drive of the movement motor 8. The control device 80 outputs a movement command to a drive circuit 48b of the spindle motor 48. The spindle motor 48 is equipped with an encoder 48a. As with the A / C axis motor 10, the drive circuit 48b feedback-controls the drive of the spindle motor 48.

[0068] The control device 80 outputs a switching signal to the switching valve 50b. The switching valve 50b switches the supply destination of the compressed air to the first path or the second path described above.

[0069] The auxiliary memory unit 83 stores a table T indicating the positions and reference encoder values ​​of the A-axis and C-axis, and the command positions to the A / C-axis motor 10. The reference encoder values ​​correspond to the reference values. The control unit 81 reads out table T from the auxiliary memory unit 83 to the main memory unit 82. When moving around the A-axis or C-axis, the control unit 81 updates table T in the main memory unit 82. The control unit 81 overwrites the updated table T from the main memory unit 82 to the auxiliary memory unit 83.

[0070] FIG. 10 is an example of a conceptual diagram of table T. In FIG. 10, the "location" column shows the location around the A-axis and C-axis, i.e., the angle (degree). The "reference encoder value" is a value that is a reference for the detection value of the encoder 10a of the A / C-axis motor 10. The "reference encoder value" is expressed in pulses. A pulse is a unit that shows the position of the A / C-axis motor 10. The "command position" column shows the position after the A / C-axis motor 10 has moved based on the movement command input to the drive circuit 10b, i.e., the location of the A / C-axis motor 10. The "command position" is expressed in pulses. The "command position" corresponds to the location of the power source. 1 [degree] of the A-axis position can be converted to 1000 [pulses] of the command position. 1 [degree] of the C-axis position can be converted to 100 [pulses] of the command position.

[0071] FIG. 10 shows the first to fourth states of the table T. In the first state, the positions of the A-axis and C-axis are 0, the reference encoder values ​​of the A-axis and C-axis are 150000, and the command position of the A / C-axis motor 10 is 150000. The positions of the A-axis and C-axis in the first state (0 in this embodiment) correspond to the reference position. The reference position is a position that serves as a reference when determining the position of the A-axis or C-axis, and is, for example, a position associated with the position in the initial state. When the A / C-axis motor 10 is driven from the initial state, the control unit 81 determines the position of the A-axis or C-axis based on the difference between the reference position and the command position. The reference position is not limited to 0.

[0072] In the first state, when the control unit 81 reads out a movement command indicating movement of the A-axis to the target position 15 from the machining program, the control unit 81 calculates the difference between the target position 15 of the A-axis and the current position 0, and converts the difference (angle) into pulses. The pulse value of the difference is 15000. The difference of 15 [degrees] or 15000 [pulses] corresponds to the drive amount around the A-axis in the A / C-axis motor 10, that is, the drive amount of the power source. The control unit 81 adds 15 to the location of the A-axis, adds 15000 to the reference encoder value of the C-axis, and adds 15000 to the command position. The location of the A-axis becomes 15, the reference encoder value of the C-axis becomes 165000, and the command position becomes 165000. That is, the control unit 81 updates the table T to the second state.

[0073] In the second state, when the control unit 81 reads out a movement command indicating movement of the C-axis to the target position 30 from the machining program, the control unit 81 calculates the difference between the target position 30 and the current position 0 of the C-axis, and converts the difference into a pulse. The pulse value of the difference is 3000. The difference of 30 [degrees] or 3000 [pulses] corresponds to the drive amount of the A / C-axis motor 10 around the C-axis, that is, the drive amount of the power source. The control unit 81 adds 30 to the C-axis position, adds 3000 to the reference encoder value of the A-axis, and adds 3000 to the command position. The C-axis position becomes 30, the reference encoder value of the A-axis becomes 153000, and the command position becomes 168000. That is, the control unit 81 updates the table T to the third state.

[0074] In the third state, when the control unit 81 reads out a movement command indicating movement of the A-axis to the target position 45 from the machining program, the control unit 81 calculates the difference between the target position 45 and the current position 15 of the A-axis, and converts the difference into pulses. The pulse value of the difference is 30000. The difference of 30 [degrees] or 30000 [pulse] corresponds to the drive amount around the A-axis in the A / C-axis motor 10, that is, the drive amount of the power source. The control unit 81 adds 30 to the location of the A-axis, adds 30000 to the reference encoder value of the C-axis, and adds 30000 to the command position. The location of the A-axis becomes 45, the reference encoder value of the C-axis becomes 195000, and the command position becomes 198000. That is, the control unit 81 updates the table T to the fourth state.

[0075] The control unit 81 can obtain the location of the A axis based on the difference between the reference encoder value of the A axis and the command position, and can obtain the location of the C axis based on the difference between the reference encoder value of the C axis and the command position. When the table T changes from the first state to the second state, that is, when it rotates 15 degrees around the A axis, both the reference encoder value and the command position of the C axis increase by 15,000. That is, when moving around the A axis, the control unit 81 maintains the difference between the reference encoder value of the C axis and the command position. Therefore, the control unit 81 can obtain the location of the C axis based on the difference between the reference encoder value of the C axis and the command position. In this embodiment, in both the first state and the second state, the difference between the reference encoder value of the C axis and the command position is 0 [pulse], and the location of the C axis is 0 [degree].

[0076] When the table T changes from the second state to the third state, that is, when it rotates 30 degrees around the C axis, both the reference encoder value and the command position of the A axis increase by 3000. That is, when moving around the C axis, the control unit 81 maintains the difference between the reference encoder value and the command position of the A axis. Therefore, the control unit 81 can obtain the location of the A axis based on the difference between the reference encoder value and the command position of the A axis. In this embodiment, in both the second state and the third state, the difference between the reference encoder value and the command position of the A axis is 15000 [pulse], and the location of the A axis is 15 [degree].

[0077] When the table T changes from the third state to the fourth state, the control unit 81 maintains the difference between the reference encoder value of the C-axis and the command position in the same manner as when the table T changes from the first state to the second state. Therefore, the control unit 81 can obtain the position of the C-axis based on the difference between the reference encoder value of the C-axis and the command position. In this embodiment, in both the third state and the fourth state, the difference between the reference encoder value of the C-axis and the command position is 3000 [pulse], and the position of the C-axis is 30 [degree].

[0078] Fig. 11 is a graph showing the relationship between the command position and the location on the A axis, and a graph showing the relationship between the command position and the location on the C axis. A1 in Fig. 11 is a graph showing the relationship between the command position and the location on the A axis in the first state and the second state. In the graph A1, the command position 150000 at the location 0 of the A axis indicates the reference encoder value of the A axis in the first state and the second state.

[0079] 11A2 is a graph showing the relationship between the command position and the current position of the A-axis in the third and fourth states. In the graph A2, the command position 153000 at the current position 0 of the A-axis indicates the reference encoder value of the A-axis in the third and fourth states.

[0080] 11 is a graph showing the relationship between the command position and the location position on the C axis in the first state. In the graph C1, the command position 150000 at the location position 0 on the C axis indicates the reference encoder value of the C axis in the first state.

[0081] 11 is a graph showing the relationship between the command position and the current position of the C axis in the second and third states. In the graph C2, the command position 165000 at the current position 0 of the C axis indicates the reference encoder value of the C axis in the second and third states.

[0082] 11 is a graph showing the relationship between the command position and the current position of the C axis in the fourth state. In the graph C3, the command position 195000 at the current position 0 of the C axis indicates the reference encoder value of the C axis in the fourth state.

[0083] When transitioning from the first state to the second state, graph C1 translates to the right, becoming graph C2. The reference encoder value of the C-axis is updated from 150,000 to 165,000. When transitioning from the third state to the fourth state, graph C2 translates to the right, becoming graph C3. The reference encoder value of the C-axis is updated from 165,000 to 195,000. In other words, when executing movement of the A-axis, the control unit 81 updates the reference encoder value of the C-axis while maintaining its association with the location position of the C-axis according to the driving amount of the A / C-axis motor 10.

[0084] When transitioning from the second state to the third state, graph A1 moves in parallel to the right, becoming graph A2. The reference encoder value of the A axis is updated from 150,000 to 153,000. In other words, when executing movement of the C axis, the control unit 81 updates the reference encoder value of the A axis while maintaining its association with the location of the A axis according to the driving amount of the A / C axis motor 10. Note that when the difference between the target position of the A axis and the location of the A axis is negative, or when the difference between the target position of the C axis and the location of the C axis is negative, the control unit 81 updates the reference encoder value by subtracting it.

[0085] 12 is a flowchart explaining the update process of table T and the drive process of A / C axis motor 10 by the control unit 81 when executing a move command around the A axis. The first engagement portion 21c engages between the upper teeth 26b, and the second arm 43 is rotatable around the A axis. The control unit 81 reads out a move command indicating movement of the A axis to a target position from the machining program, and obtains the difference between the target position of the A axis and the current position of the A axis, and the movement amount of the A axis (S1).

[0086] The control unit 81 converts the unit of the A-axis movement amount from degrees to pulses (S2). The control unit 81 updates the reference encoder value of the C-axis on table T by adding or subtracting the pulse value converted in step S2 (S3). The control unit 81 drives the A / C-axis motor 10 until the position of the A-axis reaches the target position (S4). The control unit 81 transmits the pulse value of the A-axis movement amount to the drive circuit 10b. The A / C-axis motor 10 drives based on the received pulse value. Note that steps S3 and S4 may be executed in parallel.

[0087] When a command to move around the C-axis is executed, the control unit 81 also executes the update process of the table T and the drive process of the A / C-axis motor 10, but since the relationship between the A-axis and the C-axis is reversed in the update process and drive process when a command to move around the A-axis is executed, detailed description thereof will be omitted. When a command to move around the C-axis is executed, the second engagement portion 27c engages between the lower teeth 26c, and the first arm 40 and the second arm 43 can rotate around the C-axis.

[0088] When determining the position of the A-axis or C-axis after updating the reference encoder value, the control unit 81 derives the difference between the updated reference encoder value and the command position. The control unit 81 converts the difference from pulses to angles, and obtains the position of the A-axis or C-axis based on the position in the first state (reference position).

[0089] In the machine tool according to the first embodiment, when the A-axis moves, the reference encoder value of the C-axis is updated according to the drive amount of the A / C-axis motor 10 while maintaining the link to the location of the C-axis in the first state (reference position). The location of the C-axis can be obtained based on the difference between the reference encoder value of the C-axis and the location of the A / C-axis motor 10. When the C-axis moves, the reference encoder value of the A-axis is updated according to the drive amount of the A / C-axis motor 10 while maintaining the link to the location of the A-axis in the first state (reference position). The location of the A-axis can be obtained based on the difference between the reference encoder value of the A-axis and the location of the A / C-axis motor 10.

[0090] Also, the amount of movement of the A-axis is converted from a position, i.e., angle, to a pulse value, and the pulse value of the converted amount of movement is added to or subtracted from the reference encoder value of the C-axis to update the reference encoder value. Also, the amount of movement of the C-axis is converted from a position, i.e., angle, to a pulse value, and the pulse value of the converted amount of movement is added to or subtracted from the reference encoder value of the A-axis to update the reference encoder value.

[0091] Furthermore, when determining the position of the C-axis or A-axis after updating the reference encoder value, the difference between the updated reference encoder value and the position of the A / C-axis motor 10 is derived. The control device 80 determines the position of the C-axis or A-axis based on the difference.

[0092] (Embodiment 2) The present invention will be described below with reference to the drawings showing a machine tool according to a second embodiment. Among the configurations of the second embodiment, the same configurations as those of the first embodiment are given the same reference numerals, and detailed description thereof will be omitted. Connection of the dog clutch 26 to the A-axis side is possible only when the position of the A-axis is a predetermined position, for example, a position in increments of 5 with respect to 0 degree, for example, -10, -5, 0, 5, 10, .... Connection of the dog clutch 26 to the C-axis side is possible only when the position of the C-axis is a predetermined position, for example, a position in increments of 15 with respect to 0 degree, for example, -30, -15, 0, 15, 30, ....

[0093] FIG. 13 is a block diagram of the control device 80, the moving motor 8, the A / C axis motor 10, etc. As shown in FIG. 13, the operation unit 61 has an A axis selection key and a C axis selection key. The air cylinder 50 is provided with a position sensor 50c that detects the position of the rod 50a. The position sensor 50c detects whether the rod 50a is in the lower position, that is, the position where the first engagement portion 21c engages between the upper teeth 26b of the dog clutch 26, or in the upper position, that is, the position where the second engagement portion 27c engages between the lower teeth 26c of the dog clutch 26. The position where the first engagement portion 21c engages between the upper teeth 26b of the dog clutch 26 is the position where the dog clutch 26 is connected to the A axis side. The position where the second engagement portion 27c engages between the lower teeth 26c of the dog clutch 26 is the position where the dog clutch 26 is connected to the C axis side.

[0094] When an A-axis connection command is input to the control unit 81, the control unit 81 executes an A-axis connection process. The A-axis connection command is input to the control unit 81, for example, when the A-axis selection key is pressed or when an A-axis movement command is read from the machining program. The control unit 81 executes the A-axis connection process, for example, before executing the A-axis movement.

[0095] Fig. 14 is a flowchart explaining the A-axis connection process of the dog clutch 26. As shown in Fig. 14, when an A-axis connection command is input, the control unit 81 determines whether or not the dog clutch 26 is connected to the A-axis side, that is, whether or not the first engagement portion 21c is engaged between the upper teeth 26b and the second arm 43 is rotatable around the A-axis (S11). The control unit 81 obtains the detection value of the position sensor 50c and determines whether or not the dog clutch 26 is connected to the A-axis side. If the dog clutch 26 is connected to the A-axis side (S11: YES), the control unit 81 ends the process.

[0096] If the dog clutch 26 is not connected to the A-axis side (S11: NO), the control unit 81 displays on the display unit 62 that the A-axis selection key is to be operated, i.e., a switching operation to the A-axis is to be performed (S12). The control unit 81 determines whether or not the A-axis selection key is being operated (S13). For example, it determines whether or not the operator is pressing the A-axis selection key. If the A-axis selection key is not being operated (S13: NO), the control unit 81 returns the process to step S12.

[0097] If the A-axis selection key is being operated (S13: YES), the control unit 81 refers to the table T and determines whether the position of the A-axis is a position where the dog clutch 26 can be connected to the A-axis side (S14). If the position of the A-axis is a position where the dog clutch 26 can be connected to the A-axis side (S14: YES), that is, if the first engagement portion 21c and the upper teeth 26b are in an engageable position, the control unit 81 operates the switching valve 50b to connect the dog clutch 26 to the A-axis side (S15) and ends the process. If the position of the A-axis is not a position where the dog clutch 26 can be connected to the A-axis side (S14: NO), that is, if the first engagement portion 21c and the upper teeth 26b are not in an engageable position, the control unit 81 drives the A / C axis motor 10 until the position of the A-axis is a position where the dog clutch 26 can be connected to the A-axis side (S16), and returns the process to step S14. In step S16, the control unit 81 drives the A / C shaft motor 10 until the upper teeth 26b of the dog clutch 26 reach a position where they can engage with the first engagement portion 21c.

[0098] If the operator stops operating the A axis selection key during steps S14 to S16 of the A axis connection process, for example, if the operator releases the A axis selection key, the control unit 81 returns the process to step S12. The control unit 81 executes the processes of steps S14 to S16 when the operator continues to operate the A axis selection key.

[0099] When a C-axis connection command is input to the control unit 81, the control unit 81 executes a C-axis connection process. The C-axis connection command is input to the control unit 81, for example, when the C-axis selection key is pressed or when a C-axis movement command is read from a machining program. The control unit 81 executes the C-axis connection process, for example, before executing a C-axis movement. The C-axis connection process is performed by simply reversing the relationship between the A-axis and C-axis in the A-axis connection process, and therefore a detailed description thereof will be omitted.

[0100] In the machine tool according to the second embodiment, when a connection command for the A-axis is input, and the first engagement portion 21c and the upper teeth 26b are in an engageable position, the first engagement portion 21c and the upper teeth 26b are engaged. When the first engagement portion 21c and the upper teeth 26b are not in an engageable position, the first engagement portion 21c and the upper teeth 26b are moved to an engageable position, and then the first engagement portion 21c and the upper teeth 26b are engaged. When a connection command for the C-axis is input, and the second engagement portion 27c and the lower teeth 26c are in an engageable position, the second engagement portion 27c and the lower teeth 26c are engaged. When the second engagement portion 27c and the lower teeth 26c are not in an engageable position, the second engagement portion 27c and the lower teeth 26c are moved to an engageable position, and then the second engagement portion 27c and the lower teeth 26c are engaged.

[0101] In step S16, the position where the dog clutch 26 can be connected to the A-axis side is, for example, the position where connection is possible that is closest to the position of the A-axis. This allows the drive time of the A / C-axis motor 10 to be shortened.

[0102] (Embodiment 3) The present invention will be described below with reference to the drawings showing a machine tool according to a third embodiment. Among the configurations of the third embodiment, the same configurations as those of the first or second embodiment are given the same reference numerals, and detailed description thereof will be omitted. In the second embodiment, the operator operates the A-axis selection key and the C-axis selection key to switch the dog clutch 26, but in the third embodiment, the operator does not operate the A-axis selection key and the C-axis selection key. FIG. 15 is a flow chart for explaining the A-axis connection process of the dog clutch 26.

[0103] 15, when an A-axis connection command is input, the control unit 81 determines whether or not the dog clutch 26 is connected to the A-axis side, i.e., whether or not the first engagement portion 21c is engaged between the upper teeth 26b and the second arm 43 is rotatable around the A-axis (S21). The control unit 81 obtains the detection value of the position sensor 50c and determines whether or not the dog clutch 26 is connected to the A-axis side. If the dog clutch 26 is connected to the A-axis side (S21: YES), the control unit 81 ends the process.

[0104] If the dog clutch 26 is not connected to the A-axis side (S21: NO), the control unit 81 refers to the table T and determines whether the position of the A-axis is a position where the dog clutch 26 can be connected to the A-axis side (S22). If the position of the A-axis is a position where the dog clutch 26 can be connected to the A-axis side (S22: YES), that is, if the first engagement portion 21c and the upper teeth 26b are in an engageable position, the control unit 81 operates the switching valve 50b to connect the dog clutch 26 to the A-axis side (S23), and ends the process. If the position of the A-axis is not a position where the dog clutch 26 can be connected to the A-axis side (S22: NO), that is, if the first engagement portion 21c and the upper teeth 26b are not in an engageable position, the control unit 81 displays an alarm on the display unit 62, that is, displays that connection to the A-axis side is impossible (S24), and ends the process. Displaying an alarm on the display unit 62 is merely one example of an alarm notification. For example, instead of displaying on the display unit 62, an alarm may be notified by emitting a buzzer sound or turning on a light.

[0105] When a C-axis connection command is input, the control unit 81 executes C-axis connection processing. The C-axis connection processing is performed by reversing the relationship between the A-axis and the C-axis in the A-axis connection processing, and therefore a detailed description thereof will be omitted.

[0106] In the third embodiment, when a connection command for the A-axis is input, and the first engagement portion 21c and the upper teeth 26b are in an engageable position, the first engagement portion 21c and the upper teeth 26b are engaged. When the first engagement portion 21c and the upper teeth 26b are not in an engageable position, a notification is issued that engagement is not possible. When a connection command for the C-axis is input, and the second engagement portion 27c and the lower teeth 26c are in an engageable position, the second engagement portion 27c and the lower teeth 26c are engaged. When the second engagement portion 27c and the lower teeth 26c are not in an engageable position, a notification is issued that engagement is not possible.

[0107] (Embodiment 4) The present invention will be described below with reference to the drawings showing a machine tool according to a fourth embodiment. Among the configurations of the fourth embodiment, the same configurations as those of the first to third embodiments are given the same reference numerals, and detailed description thereof will be omitted. Fig. 16 is a schematic perspective view of the air cylinder 270 and the large diameter gear 27a etc. in a state where the positioning rod 271 is not inserted into the positioning hole 27a1, and Fig. 17 is a schematic perspective view of the air cylinder 270 and the large diameter gear 27a etc. in a state where the positioning rod 271 is inserted into the positioning hole 27a1. The control unit 81 includes a timer (not shown).

[0108] A plurality of positioning holes 27a1 are formed on the upper surface of the outer periphery of the large diameter gear 27a. The plurality of positioning holes 27a1 are arranged at approximately equal intervals in the circumferential direction. An air cylinder 270 is disposed on the upper side of the outer periphery of the large diameter gear 27a. The air cylinder 270 has a positioning rod 271. The positioning rod 271 protrudes downward from the air cylinder 270 and is movable up and down. The air cylinder 270 is provided with a position sensor (not shown) that detects the position of the positioning rod 271. The position sensor detects whether the positioning rod 271 is in an upper position where it is not inserted into the positioning hole 27a1, or in a lower position where it is inserted into the positioning hole 27a1. The air cylinder 270, the positioning rod 271, and the positioning hole 27a1 correspond to a positioning portion.

[0109] When executing connection of the dog clutch 26 to the A-axis side or C-axis side, the control unit 81 inserts the positioning rod 271 into the positioning hole 27a1 and fixes the large diameter gear 27a, i.e., the drive gear 27, before executing the connection (see FIG. 17). Since the second engagement portion 27c is positioned in the circumferential direction by fixing the drive gear 27, or the second engagement portion 27c and the dog clutch 26 are positioned in the circumferential direction, it becomes easier to position the second engagement portion 27c and the lower teeth 26c of the dog clutch 26, and also easier to position the first engagement portion 21c and the upper teeth 26b of the dog clutch 26.

[0110] 18 is a flowchart explaining the connection process of the dog clutch 26 by the control unit 81. In the initial state, the positioning rod 271 is not inserted into the positioning hole 27a1 (see FIG. 16). The control unit 81 drives the air cylinder 270 to lower the positioning rod 271 (S31). The control unit 81 obtains the detection value of the position sensor and determines whether or not the positioning rod 271 is in the lower position, i.e., whether or not the positioning rod 271 has been inserted into the positioning hole 27a1 (S32).

[0111] If the positioning rod 271 is not in the lower position (S32: NO), the control unit 81 determines whether or not a predetermined time has elapsed since the positioning rod 271 started to descend (S33). For example, the control unit 81 determines whether or not a predetermined time has elapsed since the processing of step S31 was started. If the predetermined time has not elapsed (S33: NO), the control unit 81 returns the processing to step S32. If the predetermined time has elapsed (S33: YES), the control unit 81 displays a warning on the display unit 62 that positioning is not possible (S34), and ends the processing.

[0112] In step S32, if the positioning rod 271 is in the lower position (S32: YES), i.e., if the positioning rod 271 is inserted into the positioning hole 27a1 (see FIG. 17), the control unit 81 connects the dog clutch 26 to the A-axis side or the C-axis side (S35). The control unit 81 determines whether or not the connection of the dog clutch 26 has been completed (S36). The control unit 81 determines whether or not the connection to the A-axis side or the C-axis side has been completed based on, for example, the detection value of the position sensor 50c (see FIG. 13).

[0113] If the connection of the dog clutch 26 is not complete (S36: NO), the control unit 81 determines whether or not a predetermined time has elapsed since the control unit 81 started connecting the dog clutch 26 (S37). For example, the control unit 81 determines whether or not a predetermined time has elapsed since the processing of step S35 was started. If the predetermined time has not elapsed (S37: NO), the control unit 81 returns the processing to step S36. If the predetermined time has elapsed (S37: YES), the control unit 81 displays a warning on the display unit 62 that connection is not possible (S38), and ends the processing.

[0114] When the connection of the dog clutch 26 is completed (S36: YES), the control unit 81 drives the air cylinder 270 to raise the positioning rod 271 (S39, see FIG. 16), and ends the process. When connecting the dog clutch 26 to the A-axis side or C-axis side in the first to third embodiments, the control unit 81 executes the above-mentioned positioning process before executing the connection.

[0115] In the machine tool according to the fourth embodiment, the positioning rod 271 is inserted into the positioning hole 27a1, and then the dog clutch 26 is engaged with the first engagement portion 21c or the second engagement portion 27c. That is, the second engagement portion 27c or the dog clutch 26 is positioned, and then the dog clutch 26 is engaged with the first engagement portion 21c or the second engagement portion 27c. Therefore, the dog clutch 26 can be smoothly engaged with the first engagement portion 21c or the second engagement portion 27c.

[0116] In the first to fourth embodiments, a mechanism for moving the spindle 46 around the A-axis or the C-axis using a single motor is described, but the above-mentioned technology can also be applied to a mechanism for moving a workpiece around the A-axis or the C-axis using a single motor.

[0117] It should be noted that a computer program can be deployed to be executed on a single computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

[0118] The embodiments disclosed herein should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is intended to include all modifications within the scope of the claims and the scope equivalent to the claims. The matters described in each embodiment can be combined with each other. In addition, the independent claims and dependent claims described in the claims can be combined with each other in all combinations regardless of the citation format. Furthermore, the claims use a format (multiple claim format) in which a claim cites two or more other claims, but this is not limited to this. A format in which a multiple claim (multi-multi claim) citing at least one multiple claim may be used. [Explanation of symbols]

[0119] 10 A / C shaft motor (power source) 21c First engaging part 22 Second housing (moving part) 24 First rotating shaft (moving part) 26 Dog clutch (engaged part) 27 Drive gear (moving part) 27c Second engaging part 29 Spur gear (moving part) 30, 34 Bevel gear (moving part) 31 First intermediate shaft (moving part) 32 Second intermediate shaft (moving part) 33 Third intermediate shaft (moving part) 33b Hypoid pinion (moving part) 35 Second rotating shaft (moving part) 36 Hypoid gear (moving part) 40 First arm (moving part) 43 Second arm (moving part) 46 Spindle 80 Control device 81 Control Unit 82 Main memory 83 Auxiliary storage 270 Air cylinder (positioning part) 271 Positioning rod (positioning part) 27a1 Positioning hole (positioning part)

Claims

1. A control device for a machine tool, comprising a plurality of moving units which move a workpiece or a spindle, and a single power source which supplies power to the plurality of moving units, and which is capable of switching a supply destination of power from the power source from one of the moving units to another of the moving units, a storage unit that stores a reference value that is associated with a reference position of the one moving unit and is used to calculate the location of the one moving unit based on a difference between the reference value and a location of the power source; an update unit that updates the reference value stored in the storage unit while maintaining the association with the reference position in accordance with the drive amount of the power source when the movement of the other moving unit is executed; A control device comprising:

2. the reference value includes a pulse value; a conversion unit for converting the amount of movement of the other moving unit from a position to a pulse value, The update unit adds or subtracts the pulse value of the movement amount of the other movement unit converted by the conversion unit from the reference value. The control device according to claim 1 .

3. When determining the location of the one moving part after updating the reference value by the update unit, a difference between the updated reference value and the location of the power source is derived. The control device according to claim 1 or 2.

4. The machine tool comprises: an engaging portion and an engaged portion that engage with each other when switching a destination of power supply from the power source; a positioning portion that positions the engaging portion or the engaged portion at an engageable position; Equipped with and an execution unit that executes engagement of the engaging unit or the engaged unit after positioning by the positioning unit when switching a destination of power supply from the power source from the one moving unit to the other moving unit. The control device according to claim 1 or 2.

5. the machine tool includes an engaging part and an engaged part that move relative to each other in conjunction with movement of the moving part and that can switch a destination of power supply from the power source when engaged with each other; The engaging portion and the engaged portion are engageable at a plurality of positions, a determination unit that determines whether or not the engaging portion and the engaged portion are in an engageable position when switching a destination of power supply from the power source; a first engagement execution unit that executes engagement between the engaging portion and the engaged portion when the determination unit determines that the engaging portion is in an engageable position; a movement execution unit that executes movement of the engaging portion and the engaged portion to a position where the engaging portion and the engaged portion can be engaged when the determination unit determines that the engaging portion and the engaged portion are not in a position where the engaging portion and the engaged portion can be engaged; a second engagement execution unit that executes engagement between the engaging portion and the engaged portion after the movement by the movement execution unit; The control device according to claim 1 or 2, comprising:

6. The control device according to claim 5, wherein the movement execution unit executes movement of the engaging portion and the engaged portion to an engaging position closest to their positions when the determination unit determines that the engaging portion and the engaged portion are not in an engaging position.

7. the machine tool includes an engaging part and an engaged part that move relative to each other in conjunction with movement of the moving part and that can switch a destination of power supply from the power source when engaged with each other; a determination unit that determines whether or not the engaging portion and the engaged portion are in an engageable position when switching a destination of power supply from the power source; an engagement execution unit that executes engagement between the engaging portion and the engaged portion when the determination unit determines that the engaging portion is in an engageable position; a notification execution unit that issues a notification that the engagement is not possible when the determination unit determines that the engagement is not possible; The control device according to claim 1 or 2, comprising:

8. A method for controlling a machine tool comprising a plurality of moving units which move a workpiece or a spindle, and a single power source which supplies power to the plurality of moving units, the method being capable of switching a supply destination of power from the power source from one of the moving units to another of the moving units, the method comprising: a reference value that is associated with a reference position of the one moving part and is used to calculate the position of the one moving part based on a difference between the reference value and the position of the power source; When the movement of the other moving part is executed, the stored reference value is updated according to the driving amount of the power source while maintaining the association with the reference position. Control methods.

9. A computer program executable by a control device of a machine tool, the control device including a plurality of moving units that move a workpiece or a spindle, and a single power source that supplies power to the plurality of moving units, the control device being capable of switching a supply destination of power from the power source from one of the moving units to another of the moving units, The control device includes: a reference value that is associated with a reference position of the one moving part and is used to calculate the position of the one moving part based on a difference between the reference value and the position of the power source; When the movement of the other moving part is executed, the stored reference value is updated in accordance with the driving amount of the power source while maintaining the association with the reference position. A computer program that executes a process.

Citation Information

Patent Citations

  • Cleaning method and device thereof

    JP1984019329A