Control device, control method, and computer program

The control device for machine tools addresses the challenge of unequal pot spacing by calculating and controlling the movement of pots to achieve accurate positioning at indexed positions, enhancing the operational efficiency of machine tools with irregularly spaced pots.

JP7655229B2Active Publication Date: 2025-04-02BROTHER KOGYO KK
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2022007342
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2025-04-02
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

Machine tools with pots arranged at unequal intervals face challenges in calculating the driving amount for movement control during pot exchange at indexed positions.

Method used

A control device for machine tools that includes an acquisition unit to measure the distance between pots, an operation unit to calculate the movement amount based on the current and planned pot positions and distances, and a control unit to move the pots along the rail to position the planned pot at the indexing position.

Benefits of technology

Enables effective movement control for exchanging pots at indexed positions in machine tools with pots arranged at unequal intervals, ensuring accurate positioning and efficient operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007655229000007
    Figure 0007655229000007
  • Figure 0007655229000008
    Figure 0007655229000008
  • Figure 0007655229000009
    Figure 0007655229000009
Patent Text Reader

Abstract

To provide a control device, etc. that is able to perform movement control for replacing pots to be arranged at index positions even in a machine tool in which pots are arranged at unequal intervals.SOLUTION: A control device according to an embodiment of the present disclosure, is a control device for a machine tool 100 including: a spindle head 20; an endless rail; and a tool magazine 30 including a plurality of pots arranged at unequal intervals on the rail and storing tools, the plurality of pots including a current pot arranged at an index position for mounting on the spindle and a planned pot planned to be arranged at the index position. The control device comprises: an acquisition unit that acquires a distance among the plurality of pots; a calculation unit that calculates an amount of movement on the basis of information on the current pot and the planned pot and on the basis of the distance; and a control unit that, in order to arrange the planned pot at the index position, executes control for moving the pot along the rail on the basis of the amount of movement.SELECTED DRAWING: Figure 1
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 controlling a machine tool. [Background technology]

[0002] Conventionally, machine tools are equipped with a spindle head that can move up and down, and a tool magazine (see, for example, Patent Document 1). The tool magazine is equipped with multiple movable bodies connected in an endless manner. Each movable body holds multiple gripping arms (pots) that hold tools. The tool magazine moves the multiple movable bodies along a rail that surrounds the periphery of the spindle head, and positions a predetermined pot below the spindle head (index position). The spindle head descends, and the tool held by the pot is attached to the spindle. In the machine tool described in Patent Document 1, the pots are arranged at equal intervals on the rail, so that movement control for replacing the pots to be positioned at the index position is possible based on information on the length of one revolution of the rail and the total number of pots. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2013-154436 A Summary of the Invention [Problem to be solved by the invention]

[0004] In a machine tool, it is possible to increase the number of pots in a tool magazine by arranging the pots at unequal intervals. In this case, the drive amount during movement control cannot be calculated by the same process as above.

[0005] The present disclosure has been made in consideration of the above circumstances, and aims to provide a control device etc. capable of controlling movement for replacing pots placed at index positions, even in a machine tool in which pots are arranged at uneven intervals. [Means for solving the problem]

[0006] A control device according to one embodiment of the present disclosure is a control device for a machine tool having a spindle, an endless rail, and a tool magazine having a plurality of pots arranged at unequal intervals on the rail for storing tools, the plurality of pots including a current pot arranged at an index position for attachment to the spindle and a planned pot to be arranged at the index position, and the control device comprises an acquisition unit that acquires the distance between the plurality of pots, a calculation unit that calculates a movement amount based on information relating to the current pot and the planned pot and the distance, and a control unit that controls the movement of the pot along the rail based on the movement amount in order to arrange the planned pot at the index position.

[0007] According to a control device according to an embodiment of the present disclosure, in a machine tool in which pots are arranged at unequal intervals, movement control for replacing pots to be arranged at index positions is possible.

[0008] In one embodiment of the control device of the present disclosure, the interval includes a first interval and a second interval wider than the first interval, the pots are arranged so that the first interval and the second interval alternate, and the calculation unit calculates the amount of movement based on a first distance, which is the distance of the first interval, and a second distance, which is the distance of the second interval.

[0009] According to a control device according to an embodiment of the present disclosure, in a machine tool in which two types of spacing are arranged alternately, movement control for replacing a pot to be placed at an index position is possible.

[0010] In one embodiment of the control device of the present disclosure, the information includes a number assigned to the pot and a starting interval indicating the distance between the current pot and the adjacent pot upstream in the movement direction, and the calculation unit calculates the number of pots to be moved based on the numbers assigned to the current pot and the planned pot, and calculates the movement amount by adding the product of the sum of the first distance and the second distance and the quotient obtained by dividing the number of pots to be moved by 2 to the product of the distance of the starting interval and the remainder obtained by dividing the number of pots to be moved by 2.

[0011] According to a control device according to an embodiment of the present disclosure, it is possible to calculate the amount of movement regardless of the distance between the pot and the adjacent pot in the direction of movement.

[0012] A control device according to one embodiment of the present disclosure includes a memory unit that stores the first distance and the second distance, and the acquisition unit acquires the first distance and the second distance from the memory unit.

[0013] According to a control device according to an embodiment of the present disclosure, it is possible to calculate the amount of movement based on the first distance and the second distance.

[0014] A control device according to one embodiment of the present disclosure includes a memory unit that stores the distance around the rail, the total number of pots, and the ratio of the first interval to the second interval, and the acquisition unit acquires the first distance and the second distance based on the distance around the rail, the total number of pots, and the ratio of the first interval to the second interval.

[0015] According to a control device according to one embodiment of the present disclosure, even if the configuration of the machine tool is changed, it is possible to calculate the first distance and the second distance by re-storing the changed numerical values.

[0016] In one embodiment of the control device of the present disclosure, the information includes the coordinates of the current pot and the planned pot, and is provided with a memory unit that stores coordinates corresponding to coordinates assigned to the pots, and the acquisition unit acquires the coordinates of the current pot and the planned pot from the memory unit, calculates the difference between the coordinates of the current pot and the planned pot from the memory unit, and acquires the distance based on the difference.

[0017] According to a control device according to an embodiment of the present disclosure, in a machine tool in which pots are arranged at irregular intervals, movement control for replacing pots to be arranged at index positions is possible.

[0018] A control device according to one embodiment of the present disclosure includes a movement direction determination unit that determines a movement direction in which to move the pot based on coordinates assigned to the current pot and the planned pot, and the calculation unit calculates the movement amount based on the movement direction.

[0019] According to the control device according to an embodiment of the present disclosure, when replacing the pot to be placed at the index position, movement control can be performed in a movement direction in which the movement amount is shorter.

[0020] A control method according to one embodiment of the present disclosure is a control method for a machine tool having a spindle, an endless rail, and a tool magazine having a plurality of pots arranged at unequal intervals on the rail for storing tools, the plurality of pots including a current pot to be attached to the spindle and a planned pot to be placed at the index position, the control method obtains distances between the plurality of pots, calculates a movement amount based on information relating to the current pot and the planned pot and the interval distance, and moves the pot along the rail based on the movement amount in order to place the planned pot at the index position.

[0021] According to a control method according to an embodiment of the present disclosure, movement control for replacing pots to be placed at index positions is possible in a machine tool in which pots are arranged at uneven intervals.

[0022] A computer program according to one embodiment of the present disclosure is a program executable by a control device of a machine tool having a spindle, an endless rail, and a tool magazine having a plurality of pots arranged at unequal intervals on the rail for storing tools, the plurality of pots including a current pot to be attached to the spindle and a planned pot to be placed at the index position, the program causing the control device to execute a process of acquiring distances between the plurality of pots, calculating a movement amount based on information relating to the current pot and the planned pot and the distance of the interval, and moving the pot along the rail based on the movement amount in order to place the pot at the index position.

[0023] According to a computer program according to an embodiment of the present disclosure, movement control for replacing pots to be placed at index positions is possible in a machine tool in which pots are placed at uneven intervals. Effect of the Invention

[0024] In a control device according to an embodiment of the present disclosure, movement control for replacing a pot placed at an index position is possible even in a machine tool in which pots are placed at uneven intervals. [Brief description of the drawings]

[0025] [Figure 1] FIG. [Diagram 2] FIG. [Diagram 3] FIG. 2 is a right side view of the machine tool with the chain portion and other parts omitted. [Figure 4] FIG. [Diagram 5] FIG. 4 is a schematic perspective view of a tool magazine that moves along a rail portion. [Figure 6] FIG. [Figure 7] FIG. 2 is a block diagram showing a control device. [Figure 8] FIG. 2 is a schematic top view of the rail and the pot. [Figure 9] 11 is a flowchart illustrating a method for determining a moving direction and a method for calculating the number of pots to be moved. [Figure 10] 4 is a flowchart illustrating drive control according to the first embodiment. [Figure 11] 11 is a flowchart illustrating a first distance and a second distance calculation process. [Figure 12] FIG. 11 is a schematic top view of a rail and a pot according to a third embodiment. [Figure 13] 13 is a flowchart illustrating a method for setting a start point distance and an end point distance according to the third embodiment. [Figure 14] 13 is a flowchart illustrating a method for setting a start point distance and an end point distance according to the third embodiment. [Figure 15] 11 is a flowchart illustrating drive control according to the third embodiment. [Figure 16] FIG. 11 is a schematic top view of a rail and a pot according to a fourth embodiment. [Figure 17] FIG. 13 is an explanatory diagram showing a coordinate table. [Figure 18] 10 is a flowchart illustrating drive control according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] (Embodiment 1) A machine tool and a control device according to embodiment 1 will be described below with reference to the drawings. In the following description, up, down, front, back, left and right are used as shown in the drawings.

[0027] FIG. 1 is a perspective view of the machine tool. FIG. 2 is a front view of the machine tool. FIG. 3 is a right side view of the machine tool with the chain section and the like omitted. The machine tool 100 includes a base 10, a spindle head 20, a tool magazine 30, and the like. The base 10 is rectangular and extends in the front-rear direction. The workpiece holder 11 is provided on the upper front side of the base 10. The workpiece holder 11 holds a workpiece to be machined. The workpiece holder 11 is rotatable around a C-axis extending up and down. The support base 12 is provided on the rear side of the upper part of the base 10. An X-axis direction moving device 14 is provided on the upper surface of the support base 12. The X-axis direction moving device 14 is movable in the left-right direction (X-axis direction). The Y-axis direction moving device 15 is provided on the upper part of the X-axis direction moving device 14. The Y-axis direction moving device 15 supports the column 13 so that it can move in the front-rear direction (Y-axis direction). The Z-axis direction moving device 16 is provided on the front side of the column 13. The Z-axis direction moving device 16 moves the spindle head 20 in the vertical direction (Z-axis direction).

[0028] The spindle head 20 is equipped with a spindle 21 that extends vertically. The spindle 21 rotates around its axis. A tool is attached to the lower end of the spindle 21. A spindle motor 22 is provided at the upper end of the spindle head 20. The spindle 21 and the tool rotate with the rotation of the spindle motor 22. The rotating tool machines the workpiece held by the workpiece holder 11.

[0029] FIG. 4 is a schematic perspective view of the rail portion. FIG. 5 is a schematic perspective view of the tool magazine moving on the rail portion. The tool magazine 30 includes a rail portion 31, a chain portion 32, and a magazine drive portion 33. The tool magazine 30 moves the chain portion 32 along the rail portion 31 by the drive of the magazine drive portion 33. The rail portion 31 includes two support beams 311, a rail base 312, and a rail 313. The support beam 311 is a plate-like structural member in the shape of a right triangle. The hypotenuse of the support beam 311 is disposed on the upper side. The hypotenuse of the support beam 311 is inclined so as to descend toward the front. The support beam 311 is fixed to the left and right of the column 13 in a cantilever manner. The support beam 311 extends from the portion fixed to the left and right of the column 13 to both side portions of the spindle head 20. The upper end surface of the support beam 311 is inclined from the lower front to the upper rear at approximately 30 degrees from the horizontal plane.

[0030] The rail base 312 has a rounded rectangular shape in a plan view, and extends forward and backward. The rail base 312 is fixed to the hypotenuse of the support beam 311, and surrounds the column 13 and the spindle 21. The rail base 312 is inclined at approximately 30 degrees from the horizontal plane. A positioning mechanism 314 for aligning the positions of the tool and the spindle 21 is provided in the center of the front lower end of the rail base 312. The center of the lower end of the rail base 312 is located at the tool changing position.

[0031] The rail 313 is provided on the upper part of the rail base 312 and forms an endless track. The rail 313 is a rectangle with rounded corners in a plan view and has a substantially rectangular cross section. The rail 313 has two first straight portions 313a facing each other and two second straight portions 313b facing each other, and the ends of the first straight portions 313a and the second straight portions 313b are connected by a curved portion 313c. The two first straight portions 313a are provided at the front and rear of the spindle head 20, respectively, and extend linearly in the left-right direction. The two second straight portions 313b are provided at the left and right of the spindle head 20, respectively, and extend linearly in the front-rear direction, i.e., in a direction perpendicular to the left-right direction. The rail base 312 and the rail 313 are arranged such that the first straight portions 313a are parallel to a direction perpendicular to the axial direction of the spindle 21, and the longitudinal center of the first straight portions 313a is parallel to the longitudinal direction of the spindle 21. and the axis of the main shaft 21 are arranged so as to coincide with each other.

[0032] The mounting base 315 is provided on the inside rear of the rail base 312. The magazine drive unit 33 is attached to the upper side of the mounting base 315. The magazine drive unit 33 includes a motor 331 and a gear 332. The axis of the gear 332 is approximately perpendicular to the oblique side of the support beam 311. The gear 332 meshes with the chain unit 32. When the motor 331 rotates, the chain unit 32 and the multiple pots P rotate.

[0033] The chain portion 32 is provided along the rail 313. The chain portion 32 includes a plurality of moving bodies 34, a plurality of links 35, and a plurality of pots P. The pots P are arranged on the rail 313 at unequal intervals. The links 35 are in the form of a long, thin, approximately rectangular plate. In other words, the links 35 extend linearly. The links 35 connect adjacent moving bodies 34. The multiple moving bodies 34 and the links 35 form an endless chain.

[0034] Fig. 6 is a schematic partially enlarged plan view of the machine tool. A first distance LA between two pots P arranged on a moving body 34 is narrower than a second distance LB between two adjacent pots P across a link 35. The first distance LA is the distance between the centers of adjacent pots P in the moving direction. The second distance LB is the distance between the shaft centers of the connecting shaft bodies 345 at both ends of the link 35. To avoid complication, only some of the connecting shaft bodies 345 are labeled in Fig. 6.

[0035] FIG. 7 is a block diagram showing the control device. The machine tool 100 includes a control device 40 that controls the driving of the motor 331. The control device 40 drives the motor 331 to rotate the gear 332 and rotate the multiple pots P. The control device 40 includes a CPU 41, a RAM 42, and a storage unit 43. The storage unit 43 has a rewritable storage medium such as an EEPROM, an EPROM, or a hard disk. The storage unit 43 stores the pot number assigned to each pot P, the distance of the first interval LA (first distance la), the distance of the second interval LB (second distance lb), and a machining program for machining the workpiece. A machining program (program product) stored in a portable storage medium 43a, such as a CD-ROM or flash memory, may be stored in the storage unit 43, or each program may be stored in the storage unit 43 from a server via a network. The CPU 41 reads the machining program into the RAM 42 and executes the machining program. The motor 331 also has an encoder 331a. The encoder 331a outputs a signal indicating the rotational position of the motor 331 to the control device 40. The control device 40 is equipped with motors, a main shaft motor, and the like, which are included in the X-axis direction moving device, the Y-axis direction moving device, and the Z-axis direction moving device, but are not shown in the figure.

[0036] Fig. 8 is a schematic top view of the rails and the pots. A pot number is assigned to each pot, and as shown in Fig. 8, the pot numbers are assigned in order from 1 in a counterclockwise direction as viewed from above. In this embodiment, the number of pots P (total number of pots) is described as 28. A pot assigned a pot number N is referred to as a pot PN. A pot PN with an odd pot number is also referred to as an odd pot, and a pot PN with an even pot number is also referred to as an even pot.

[0037] In this embodiment, each odd-numbered pot is adjacent to an even-numbered pot with a pot number one larger via a moving body 34, and is adjacent to an even-numbered pot with a pot number one smaller via a link 35. The distance between odd-numbered pot 1 and an even-numbered pot with a pot number one larger is different from the distance between odd-numbered pot 1 and an even-numbered pot with a pot number one smaller. Specifically, the distance between each odd-numbered pot and an even-numbered pot with a pot number one larger is a first distance la, and the distance between each odd-numbered pot and an even-numbered pot with a pot number one smaller is a second distance lb. Note that pot P28 and pot P1 are adjacent to each other via a link, and the distance between them is the second distance lb. Distance 1a and distance 1b are different.

[0038] The pot P that is placed at the index position for mounting on the spindle is the current pot. That is, in FIG. 8, pot P1 is the current pot. Also, the pot PN that is scheduled to be placed at the index position next to be used for workpiece machining is the planned pot. Also, the pot number of the current pot is the current pot number, and the pot number of the planned pot is the planned pot number. Below, an explanation is given of control in an example in which pot P10 is the planned pot and the planned pot P10 is moved to the index position.

[0039] The control device 40 determines the movement direction for moving the planned pot P10 to the indexed position based on the pot numbers of the planned pot P10 and the current pot P1, and calculates the number of pots required to be moved. The clockwise direction as viewed from above is the forward rotation direction, and the counterclockwise direction is the reverse rotation direction. A detailed method for determining the movement direction and a method for calculating the number of pots to be moved will be described later, but in this example, the movement direction is the forward rotation direction, and the number of pots to be moved is 9.

[0040] The CPU 41 of the control device 40 acquires from the memory unit 43 the first distance la, the second distance lb, and the starting distance, which is the distance between the current pot P1 and the adjacent pot on the upstream side in the movement direction (starting distance). In this example, the starting distance is the distance between pot P1 and pot P2, so the starting distance is the first distance, and the starting distance is the first distance la. The method of setting the starting distance will be described later. The control device 40 divides the number of pots to be moved by 2, and calculates the quotient and the remainder. In this example, the quotient is 4, and the remainder is 1. The control device 40 calculates the product of the sum of the first distance la and the second distance lb and the quotient, and further adds up the product of the starting distance and the remainder to determine the movement amount. In other words, the distance calculated by the following formula is determined as the movement amount.

[0041]

number

[0042] The CPU 41 drives the motor 331 based on the calculated amount of movement. Specifically, the memory unit 43 stores the driving distance of the pot P per one rotation of the gear 332, and the control device 40 determines the amount of rotation of the motor 331 based on the driving distance and amount of movement of the pot P per one rotation of the gear 332, and drives the motor 331.

[0043] FIG. 9 is a flow chart for explaining a method for determining a moving direction and a method for calculating the number of moving pots, which are started when a tool exchange command in a machining program is executed. In FIG. 9, the description will be given using variables X and Y. The CPU 41 acquires a current pot number and a planned pot number (S1), and judges whether the planned pot number is equal to or greater than the current pot number (S2). The CPU 41 acquires the current pot number based on the rotation position of the motor 331 output from the encoder 331a, and acquires the planned pot number from the machining program loaded into the RAM 42. If the planned pot number is equal to or greater than the current pot number (S2: YES), the CPU 41 sets X to a number obtained by subtracting the current pot number from the planned pot number (S3). If the planned pot number is less than the current pot number (S2: NO), the CPU 41 sets X to a number obtained by subtracting the current pot number from the planned pot number and adding the total number of pots (S4). The CPU 41 judges whether or not X is greater than the total number of pots / 2 (S5), and if it is greater (S5: YES), sets Y to the number obtained by subtracting the total number of pots from X (S6). If X is equal to or less than the quotient obtained by dividing the total number of pots by 2 (S5: NO), the CPU 41 sets Y to the same value as X (S7). The CPU 41 judges whether or not Y is 0 or greater (S8), and if Y is 0 or greater (S8: YES), sets the moving direction to the forward direction (S9), and calculates the number of moved pots as the same value as Y (S10). If Y is less than 0 (S8: NO), the CPU 41 sets the moving direction to the reverse direction (S11), and calculates the number of moved pots as -Y (S12). After the CPU 41 calculates the number of moved pots in S10 or S12, the process ends.

[0044] By the above process, the CPU 41 can determine the closest movement direction for placing the planned pot at the indexed position. Moreover, regardless of whether the movement direction is forward or reverse, the correct number of pots to be moved can be calculated.

[0045] FIG. 10 is a flowchart for explaining the drive control according to the first embodiment, and is started after the execution of the flowchart in FIG. 9 is completed. The CPU 41 acquires the first distance la and the second distance lb from the storage unit 43 (S21). The CPU 41 acquires the current pot number (S22) and judges whether the current pot number is an even number (S23). If the current pot number is an even number (S23: YES), the CPU 41 judges whether the moving direction of the pot P is forward (S24). If the moving direction is forward (S24: YES), the CPU 41 sets the starting point distance to the second distance (S27). If the moving direction is not forward, that is, reverse (S24: NO), the CPU 41 sets the starting point distance to the first distance (S26). If the pot number is not even, that is, odd (S23: NO), the CPU 41 judges whether the moving direction of the pot P is forward (S25). If the moving direction is forward (S25: YES), the CPU 41 sets the starting point distance to the first distance (S26). If the moving direction is not forward, i.e., reverse (S25: NO), the CPU 41 sets the starting point distance to the second distance (S27). After setting the starting point distance in S26 or S27, the CPU 41 divides the number of moving pots by 2 to calculate a quotient and a remainder (S28). The CPU 41 multiplies the quotient by the sum of the first distance and the second distance (S29), and also multiplies the starting point distance by the remainder (S30). The CPU 41 adds up the calculation results in S29 and S30 to calculate the amount of movement (S31), and calculates the amount of rotation of the motor based on the amount of movement (S32). The CPU 41 drives the motor to rotate (S33), and ends the process.

[0046] According to the above process, even when the pots are alternately arranged on the rails at two different intervals, it is possible to calculate the moving distance of the pots when changing tools.

[0047] (Embodiment 2) The control device 40 according to the first embodiment includes a memory unit 43 that stores the first distance la and the second distance lb, but the control device 40 according to the present embodiment includes a memory unit 43 that stores the distance of one revolution of the rail 313 (total rail length), the total number of pots, and the ratio of the first interval to the second interval (first interval ratio RA: second interval ratio RB), and calculates the first distance la and the second distance lb by calculation by the CPU 41. Hereinafter, the second embodiment will be described with reference to the drawings. Among the configurations according to the second embodiment, the same configurations as those of the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.

[0048] FIG. 11 is a flowchart for explaining the first distance and second distance calculation process. The CPU 41 acquires the distance of one revolution of the rail and the total number of pots from the storage unit 43 (S41), and calculates the average distance between each pot (average interval distance lm) by dividing the total length of the rail by the total number of pots (S42). The CPU 41 acquires the first interval ratio RA and the second interval ratio RB from the storage unit 43 (S43), and calculates the average of the first interval ratio RA and the second interval ratio RB (average interval ratio Rm) (S44). The CPU 41 multiplies the average interval distance lm by the first interval ratio RA and divides the average interval ratio Rm to calculate the first distance la (S45), and multiplies the average interval distance lm by the second interval ratio RB and divides the average interval ratio Rm to calculate the second distance lb (S46). That is, the average interval distance lm, the average interval ratio Rm, the first distance la, and the second distance lb are calculated by the following formulas.

[0049]

number

[0050]

number

[0051]

number

[0052]

number

[0053] The memory unit 43 of the control device 40 in this embodiment stores the distance around one revolution of the rail 313, the total number of pots, and the ratio between the first and second intervals. Therefore, if the configuration of the machine tool 100 is changed, it is possible to calculate the first distance and the second distance by re-storing the changed numerical values.

[0054] (Embodiment 3) The pots P of the machine tool 100 according to the first embodiment are arranged so that the first interval and the second interval alternate, but the pots P of the machine tool 100 according to the present embodiment are arranged so that the first interval, the second interval, and the third interval alternate. Hereinafter, the third embodiment will be described with reference to the drawings. Among the configurations according to the third embodiment, the same configurations as those of the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.

[0055] FIG. 12 is a schematic top view of the rail and the pots according to the third embodiment. In this embodiment, the total number of pots is 24. The interval between the pots P1 and P2 is the first interval, the interval between the pots P2 and P3 is the second interval, and the interval between the pots P3 and P4 is the third interval. Similarly, the pots are arranged so that the first interval, the second interval, and the third interval are in rotation up to the pot P24. The interval between the pots P24 and P1 is the third interval. As in the first embodiment, the distance of the first interval is the first distance la, the distance of the second interval is the second distance lb, and the distance of the third interval is the third distance lc. The memory unit 43 according to the third embodiment stores the first distance la, the second distance lb, and the third distance lc.

[0056] In the following, the pot P12 is set as the planned pot, and the control in an example in which the planned pot P12 is moved to the indexed position is described. In the following description, the quotient represents an integer quotient in division. The control device 40 determines the movement direction and calculates the number of pots to be moved in the same manner as in the first embodiment. In this example, the movement direction is forward, and the number of pots to be moved is 11.

[0057] The CPU 41 of the control device 40 acquires the first distance la, the second distance lb, the third distance lc, the start distance which is the distance between the current pot P1 and the adjacent pot on the upstream side in the moving direction (start distance), and the end distance which is the distance between the scheduled pot P12 and the adjacent pot on the downstream side in the moving direction (end distance), from the memory unit 43. The method of setting the start distance and the end distance will be described later, but in this example the start distance is la and the end distance is lb.

[0058] The control device 40 divides the number of pots moved by 3 to calculate a first quotient and a first remainder. In this example, the first quotient is 3 and the first remainder is 2. The control device 40 further adds 1 to the first remainder and divides it by 2 to obtain a second quotient. In this example, the second quotient is 1. The control device 40 also divides the first remainder by 2 to obtain a third quotient. In this example, the third quotient is 1. The control device 40 adds up the product of the first quotient and the sum of the first distance la, the second distance lb, and the third distance lc, the product of the second quotient and the starting point distance, and the product of the third quotient and the end point distance to obtain the amount of movement. That is, in this example, the amount of movement is calculated by the following formula.

[0059]

number

[0060] 13 and 14 are flow charts for explaining a method for setting the starting point distance and the end point distance according to the third embodiment. The CPU 41 of the control device 40 determines the moving direction and calculates the number of pots to be moved (see FIG. 9), and then sets the starting point distance and the end point distance. The CPU 41 acquires the first distance la, the second distance lb, and the third distance lc from the memory unit 43 (S51). The CPU 41 acquires the current pot number (S52) and judges whether the current pot number is a multiple of 3 (S53). If the current pot number is a multiple of 3 (S53: YES), the CPU 41 judges whether the moving direction of the pot P is forward (S54). If the moving direction is forward (S54: YES), the CPU 41 sets the starting point distance to the third distance (S58). If the moving direction is not forward, i.e., reverse (S54: NO), the CPU 41 sets the starting point distance to the second distance (S60). If the current pot number is not a multiple of 3 (S53: NO), the CPU 41 judges whether the remainder obtained by dividing the current pot number by 3 is 1 or not (S55). If the remainder is 1 (S55: YES), the CPU 41 judges whether the moving direction of the pot P is forward (S56). If the moving direction is forward (S56: YES), the CPU 41 sets the starting point distance to the first distance (S59). If the moving direction is not forward, i.e., reverse (S56: NO), the CPU 41 sets the starting point distance to the third distance (S58). If the remainder obtained by dividing the current pot number by 3 is not 1, i.e., the remainder is 2 (S55: NO), the CPU 41 judges whether the moving direction is forward (S57). If the moving direction is forward (S57: YES), the CPU 41 sets the starting point distance to the second distance (S60). If the moving direction is not forward, that is, if it is reverse (S57: NO), the CPU 41 sets the starting point distance to the first distance (S59).

[0061] After setting the starting point distance in S58, S59 or S60, the CPU 41 of the control device 40 acquires the scheduled pot number (S61) and determines whether the scheduled pot number is a multiple of 3 (S62). If the scheduled pot number is a multiple of 3 (S62: YES), the CPU 41 determines whether the moving direction of the pot P is forward (S63). If the moving direction is forward (S63: YES), the CPU 41 sets the end point distance to the second distance (S67). If the moving direction is not forward, i.e., reverse (S63: NO), the CPU 41 sets the end point distance to the third distance (S68). If the scheduled pot number is not a multiple of 3 (S62: NO), the CPU 41 determines whether the remainder when the scheduled pot number is divided by 3 is 1 (S64). If the remainder is 1 (S64: YES), the CPU 41 judges whether the moving direction of the pot P is forward (S65). If the moving direction is forward (S65: YES), the CPU 41 sets the end point distance to a third distance (S68). If the moving direction is not forward, i.e., reverse (S65: NO), the CPU 41 sets the end point distance to a first distance (S69). If the remainder obtained by dividing the scheduled pot number by 3 is not 1, i.e., the remainder is 2 (S64: NO), the CPU 41 judges whether the moving direction is forward (S66). If the moving direction is forward (S66: YES), the CPU 41 sets the end point distance to the first distance (S69). If the moving direction is not forward, i.e., reverse (S66: NO), the CPU 41 sets the end point distance to a second distance (S67). After setting the end point distance in S67, S68 or S69, the CPU 41 ends the process.

[0062] FIG. 15 is a flowchart for explaining the drive control according to the third embodiment, which is started after the execution of the flowcharts of FIG. 13 and FIG. 14 is completed. The CPU 41 divides the number of moved pots by 3 to calculate the first quotient and the first remainder (S71). The method of calculating the number of moved pots is the same as that of the first embodiment (see FIG. 9), so the details are omitted. The CPU 41 divides the first remainder + 1 by 2 to calculate the second quotient (S72), and divides the first remainder by 2 to calculate the third quotient (S73). The CPU 41 multiplies the first quotient by the sum of the first distance, the second distance, and the third distance (S74), multiplies the starting point distance by the second quotient (S75), and multiplies the end point distance by the third quotient (S76). The CPU 41 adds up the calculation results in S74, S75, and S76 to calculate the movement amount (S77), and calculates the rotation amount of the motor based on the movement amount (S78). The CPU 41 drives the motor to rotate (S79) and ends the process.

[0063] According to the above process, even when the pots are arranged on the rails in rotation at three different intervals, it is possible to calculate the moving distance of the pot when changing the tool.

[0064] (Embodiment 4) The pots P of the machine tool 100 according to the first embodiment are arranged so that the first intervals and the second intervals alternate, but the pots P of the machine tool 100 according to the present embodiment are arranged at irregular intervals in order to grip tools of various sizes. Hereinafter, the fourth embodiment will be described with reference to the drawings. Among the configurations according to the fourth embodiment, the same configurations as those of the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.

[0065] Fig. 16 is a top schematic diagram of the rail and pots according to the fourth embodiment. Fig. 17 is an explanatory diagram showing a coordinate table. As shown in Fig. 16, the pots P according to this embodiment are arranged on the rail at irregular intervals. As shown in Fig. 17, the memory unit 43 of the control device 40 stores a coordinate table in which coordinates correspond to pot numbers. The coordinate value stores the distance from the pot P1 in a counterclockwise direction as viewed from above. Hereinafter, the coordinates of the current pot are referred to as current coordinates, and the coordinates of the planned pot are referred to as planned coordinates.

[0066] FIG. 18 is a flow chart for explaining the drive control according to the fourth embodiment. The CPU 41 acquires the current pot number and the planned pot number (S81), and acquires the current coordinates and the planned coordinates from the coordinate table of the storage unit 43 based on the current pot number and the planned pot number (S82). The CPU 41 judges whether the planned coordinates are equal to or greater than the current coordinates (S83), and if the planned coordinates are equal to or greater than the current coordinates (S83: YES), the CPU 41 sets X to a number obtained by subtracting the current coordinates from the planned coordinates (S84). If the planned coordinates are less than the current coordinates (S83: NO), the CPU 41 sets X to a number obtained by subtracting the current coordinates from the planned coordinates and adding the total length of the rail (S85). The CPU 41 judges whether X is greater than the total length of the rail / 2 (S86), and if it is greater (S86: YES), sets Y to a number obtained by subtracting the total length of the rail from X (S87). If X is equal to or less than the total length of the rail / 2 (S86: NO), the CPU 41 sets Y to the same value as X (S88). The CPU 41 determines whether or not Y is 0 or greater (S89), and if Y is 0 or greater (S89: YES), sets the movement direction to the forward direction (S90) and calculates the movement amount as the same value as Y (S91). If Y is less than 0 (S89: NO), the CPU 41 sets the movement direction to the reverse direction (S92) and calculates the movement amount as -Y (S93). After calculating the movement amount in S91 or S93, the CPU 41 calculates the rotation amount of the motor 331 based on the movement amount (S94), drives the motor 331 to rotate (S95), and ends the process.

[0067] According to the above process, even if the pots are arranged on the rail at irregular intervals, it is possible to calculate the movement distance of the pot when changing the tool. In this embodiment, the movement distance of the pot is the distance between the current pot and the planned pot. The coordinates stored in the coordinate table may be an angle with the center of the track of the rail 313 as the center of a circle, in which case the movement amount is calculated based on the angle and the total length of the rail.

[0068] The embodiments disclosed herein are illustrative in all respects and should not be considered as limiting. The technical features described in each embodiment can be combined with each other, and 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. [Explanation of symbols]

[0069] 100 Machine tools 30 Tool Magazine 313 Rail 331 Motor 332 Gear 34 Mobile 35 Links 40 Control device 41 CPU 42 RAM 43 Storage section 43a Storage medium P Pot

Claims

1. The main axis and a tool magazine including an endless rail and a plurality of pots arranged at unequal intervals on the rail for storing tools; A control device for a machine tool comprising: the plurality of pots include a current pot arranged at an index position for mounting on the spindle, and a scheduled pot to be arranged at the index position, An acquisition unit that acquires distances between the plurality of pots; a calculation unit that calculates a movement amount for moving the scheduled pot to the index position based on information on the current pot and the scheduled pot and the distance; a control unit that controls the pot to move along the rail based on the movement amount in order to place the planned pot at the index position; A control device comprising:

2. the intervals include first intervals and second intervals wider than the first intervals, and the pots are arranged such that the first intervals and the second intervals alternate; The calculation unit calculates the movement amount based on a first distance, which is the distance of the first interval, and a second distance, which is the distance of the second interval. The control device according to claim 1 .

3. The information includes a number assigned to the pot and a starting interval indicating an interval between the current pot and an adjacent pot on the upstream side in the moving direction, The calculation unit calculates the number of pots to be moved based on the numbers assigned to the current pot and the planned pot, and calculates the movement amount by adding the product of the sum of the first distance and the second distance and the quotient obtained by dividing the number of pots to be moved by 2 to the product of the distance between the starting points and the remainder obtained by dividing the number of pots to be moved by 2. The control device according to claim 2.

4. A storage unit that stores the first distance and the second distance, The acquisition unit acquires the first distance and the second distance from the storage unit. The control device according to claim 2 or 3.

5. a storage unit that stores the distance of one circumference of the rail, the total number of the pots, and a ratio of the first interval to the second interval; The acquisition unit acquires the first distance and the second distance based on the distance of one revolution of the rail, the total number of the pots, and a ratio of the first interval to the second interval. The control device according to claim 2 or 3.

6. The information includes coordinates of the current pot and the scheduled pot; a storage unit that stores coordinates corresponding to the coordinates assigned to the pots; The acquisition unit acquires the coordinates of the current pot and the planned pot from the storage unit, calculates a difference between the coordinates of the current pot and the planned pot from the storage unit, and acquires the distance based on the difference. The control device according to claim 1 .

7. a moving direction determining unit that determines a moving direction for moving the pot based on coordinates assigned to the current pot and the scheduled pot; The calculation unit calculates the amount of movement based on the direction of movement. A control device according to any one of claims 1 to 6.

8. The main axis and a tool magazine including an endless rail and a plurality of pots arranged at unequal intervals on the rail for storing tools; A method for controlling a machine tool comprising: the plurality of pots include a current pot arranged at an index position for mounting on the spindle, and a scheduled pot to be arranged at the index position, Obtaining distances between the plurality of pots; Calculating a movement amount for moving the scheduled pot to the index position based on information on the current pot and the scheduled pot and the distance; The pot is moved along the rail based on the movement amount so as to place the predetermined pot at the index position. Control methods.

9. The main axis and a tool magazine including an endless rail and a plurality of pots arranged at unequal intervals on the rail for storing tools; A program executable by a machine tool control device comprising: the plurality of pots include a current pot arranged at an index position for mounting on the spindle, and a scheduled pot to be arranged at the index position, Obtaining distances between the plurality of pots; Calculating a movement amount for moving the scheduled pot to the index position based on information on the current pot and the scheduled pot and the distance; moving the pot along the rail based on the amount of movement to place the pot at the index position; A computer program that causes the control device to execute processing.

Citation Information

Patent Citations

  • JP154436A

  • Tool clamping device

    JP1976115377A

  • Magazine for storing tools

    JP1978080083A

  • The indexing device

    JP1982108849U

  • Tool magazine device

    JP1987048439A