Machine tool

WO2025032717A1PCT designated stage expired Publication Date: 2025-02-13FUJI CORP

Patent Information

Application Number
PCT/JP2023/028900
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2025-02-13

Smart Images

  • Figure JP2023028900_13022025_PF_FP_ABST
    Figure JP2023028900_13022025_PF_FP_ABST
Patent Text Reader

Abstract

Provided is a machine tool capable of designating a position where a turret can turn within a range. A control device for this machine tool executes: a coordinate reception process for receiving the values of first coordinates of a first coordinate axis parallel to a first direction and the values of second coordinates of a second coordinate axis parallel to a second direction, the coordinates defining a turning permission area for permitting turning of a turret; a determination process for determining, on the basis of the turning permission area defined by the first coordinates and the second coordinates received in the coordinate reception process, whether to permit turning of the turret; and a turning process for controlling the turning device to turn the turret when it is determined in the determination process that turning of the turret is permitted.
Need to check novelty before this filing date? Find Prior Art

Description

machine tools

[0001] TECHNICAL FIELD This disclosure relates to turret pivoting for machine tools.

[0002] Japanese Patent Application Laid-Open No. 2006-101094 describes a numerically controlled lathe that changes the position to which a turret is rotated according to a set value. The numerical control device of the numerically controlled lathe in Japanese Patent Application Laid-Open No. 2006-101094 starts a turning process according to a machining program stored in a program memory, and executes a tool change program when a cutting process is completed and a tool change is to be performed. By executing the tool change program, the numerical control device sets the rotation position according to a preset set value.

[0003] Japanese Patent Application Publication No. 3-019747

[0004] In the numerically controlled lathe of the above-mentioned Patent Document 1, a tool change program is executed and the turret is rotated at a position set based on a set value. Therefore, there is a risk that the positions to which the turret can be rotated may be limited to specific positions, and there is room for improvement.

[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a machine tool that allows a range of positions within which the turret can be rotated to be specified.

[0006] In order to solve the above-mentioned problems, this specification discloses a machine tool comprising: a work spindle device that holds a workpiece and rotates the workpiece around a spindle; a turret to which a tool for machining the workpiece held by the work spindle device can be attached; a turning device that turns the turret; a sliding device that slides the turret in a first direction parallel to the spindle and a second direction perpendicular to the first direction; and a control device that controls the turning device and the sliding device, wherein the control device executes a coordinate reception process that receives a first coordinate value of a first coordinate axis parallel to the first direction and a second coordinate value of a second coordinate axis parallel to the second direction, the coordinates defining a turning allowance area in which turning of the turret is permitted; a determination process that determines whether or not to permit turning of the turret based on the turning allowance area defined by the first coordinate and the second coordinate received by the coordinate reception process; and a turning process that controls the turning device to turn the turret when it is determined by the determination process that turning of the turret is permitted.

[0007] In the machine tool disclosed herein, a coordinate reception process is executed to receive from a user first and second coordinate values ​​that define a rotation-allowed area. The machine tool determines whether to permit turret rotation based on the rotation-allowed area defined by the received first and second coordinates, and if permitted, executes turret rotation. This allows the user to set any coordinates after checking for interference between the turret and other components (such as a workpiece, robot, or chuck). Setting the first and second coordinates makes it possible to specify a range of positions within which the turret can rotate.

[0008] A perspective view of a machine tool according to a first embodiment. A block diagram of the machine tool. A diagram showing a swing-allowed area setting screen. A flowchart showing a swing determination process. A diagram showing an operation of moving a turret into a swing-allowed area. A diagram showing a swing-allowed area setting screen according to a second embodiment.

[0009] First Embodiment A first embodiment, which is one embodiment of a machine tool according to the present disclosure, will now be described in detail with reference to the drawings. FIG. 1 shows a perspective view of a machine tool 10 according to this embodiment, as viewed from the front side. FIG. 2 shows a block diagram of the machine tool 10 according to this embodiment. Note that FIG. 1 does not show an apparatus cover or the like of the machine tool 10. As shown in FIG. 1 , the direction along the spindle of a workpiece spindle device 11 (described later) will be referred to as the Z-axis direction, the direction perpendicular to the Z-axis direction and in which a turret device 12 moves along a guide surface 19 will be referred to as the X-axis direction, and the direction perpendicular to the X-axis and Z-axis directions will be referred to as the Y-axis direction.

[0010] As shown in FIGS. 1 and 2 , the machine tool 10 is, for example, a turret lathe in which the rotation axis of the turret unit 12 is parallel to the Z-axis. The machine tool 10 includes a workpiece spindle unit 11, a turret unit 12, an X-axis slide unit 13, a Z-axis slide unit 14, a robot 15 (see FIG. 2 ), a bed 16 serving as a base, an operation panel 20 (see FIG. 2 ), and a control device 22 (see FIG. 2 ). Note that the configuration of the machine tool 10 shown in FIGS. 1 and 2 is merely an example. For example, the machine tool 10 may be a lathe equipped with multiple sets of workpiece spindle units 11 and turret units 12, or may be a so-called multi-tasking machine equipped with a tool spindle unit in addition to a lathe. Therefore, the machine tool of the present disclosure is not limited to a lathe, and various machine tools with a turret, such as a machining center, a milling machine, or a drill press, may be used. Furthermore, the machine tool 10 may not be equipped with the robot 15.

[0011] 1, the bed 16 is formed with a box-shaped chip collection section 17 that opens upward, and chips generated during the machining of a workpiece (not shown) are collected in the chip collection section 17. The bed 16 is a slant-type bed that has a guide surface 19 that is inclined toward the chip collection section 17 at the front of the device.

[0012] The workpiece spindle device 11 is fixed to the bed 16 and includes a headstock 23 and a rotation device 24. A chuck mechanism (not shown) for gripping (holding) the workpiece can be attached to the headstock 23. The chuck mechanism for gripping the workpiece can be a multiple chuck jaw or a collet chuck. The headstock 23 grips the workpiece with the chuck mechanism above the chip collection section 17. The workpiece spindle device 11 rotates the workpiece gripped by the chuck mechanism around a workpiece spindle that is parallel to the Z-axis direction. Note that the workpiece spindle device 11 is not limited to a configuration in which the headstock 23 is fixed, and may also be configured so that the headstock 23 slides relative to the bed 16 in the Z-axis direction, etc.

[0013] A spindle (not shown) is rotatably supported by bearings within the headstock 23. A chuck mechanism is attached to one end of the spindle in the Z-axis direction (toward the turret device 12), and a spindle-side pulley 25 is attached to the other end. The rotation device 24 includes a spindle servomotor 26 and a timing belt 27. The spindle servomotor 26 functions as a drive source for rotating the spindle, and its rotation is controlled under the control of a control device 22 (see FIG. 2) of the machine tool 10. The timing belt 27 is wound around a motor-side pulley 30 attached to the output shaft of the spindle servomotor 26 and the spindle-side pulley 25. As a result, the rotational force of the spindle servomotor 26 is transmitted to the spindle via the timing belt 27, and the spindle rotates in accordance with the rotation of the spindle servomotor 26. The control device 22 controls the rotational speed and rotational position of the spindle based on rotational position information from a spindle encoder 29 (see FIG. 2) attached to the spindle servomotor 26.

[0014] The turret unit 12 includes a turret main body 41 and a turret 43. The turret main body 41 is box-shaped and disposed on the inclined guide surface 19 of the bed 16. The turret 43 is rotatably attached to the surface of the turret main body 41 facing the headstock 23 and includes a plurality of tool holders 45 to which tools (turret tools such as cutting tools and rotary tools) can be attached. Note that FIG. 1 shows the turret 43 with the tools removed. The turret 43 also includes a pusher 51 that pushes the workpiece toward the workpiece spindle unit 11. The turret unit 12 includes, for example, a turret servomotor 47 (see FIG. 2) built into the turret main body 41. The rotational operation of the turret servomotor 47 is controlled by the control device 22 to rotate the turret 43 about a rotation axis parallel to the Z-axis direction. The turret device 12 rotates the turret 43 to change the tool indexed to the working position, and performs machining on the workpiece gripped by the workpiece spindle device 11 using the tool indexed to the working position. The turret servo motor 47 functions as a drive source for rotating the turret 43 as well as for rotating a rotary tool (such as an end mill) attached to the turret 43. The control device 22 controls the turret servo motor 47, for example, to perform the rotation indexing of the turret 43 and the rotation of the rotary tool attached to the turret 43. The turret device 12 may be configured to include a drive source for rotating the rotary tool in addition to the rotation drive source. The turret 43 may also be configured so that no rotary tool can be attached, and only a cutting tool can be attached.

[0015] The turret 43 has a predetermined thickness in the Z-axis direction and, for example, has the shape of a regular decagon when viewed in the Z-axis direction. A tool holder 45 is provided on each of the ten sides of the turret 43. A rotary tool such as an end mill or a drill, or a cutting tool such as a cutting tool, is detachably attached to the tool holder 45. A threaded portion 49 is formed on the tool holder 45 to which a threaded member (not shown), such as a bolt or a screw, is threadedly engaged. The rotary tool or cutting tool is attached to the tool holder 45 by the threaded member threaded into the threaded portion 49.

[0016] The X-axis slide device 13 and the Z-axis slide device 14 are devices that change the position of the turret device 12 (the tool at the work position). The Z-axis slide device 14 is a device that moves the turret device 12, for example, in the Z-axis direction (the direction toward or away from the work) parallel to the work spindle. The X-axis slide device 13 is a device that moves the turret device 12 in the X-axis direction, i.e., in a direction perpendicular to the Z-axis direction. The X-axis direction is an example of a first direction in the present disclosure. The Z-axis direction is an example of a second direction in the present disclosure.

[0017] Z-axis slide device 14 includes a Z-axis guide rail 52 and a Z-axis slider 53. Z-axis guide rail 52 is disposed on guide surface 19 of bed 16 and extends in a direction parallel to the Z-axis direction. Z-axis slider 53 is attached so as to be slidable relative to Z-axis guide rail 52. Z-axis slide device 14 includes a Z-axis servo motor 14A (see FIG. 2 ), and transmits the rotational output of Z-axis servo motor 14A to Z-axis slider 53 via a transmission mechanism (e.g., a ball screw mechanism), thereby moving Z-axis slider 53 in the Z-axis direction.

[0018] The Z-axis slide device 14 also includes a Z-axis encoder 14B that outputs encoder information such as the rotational position of the Z-axis servo motor 14A. The control device 22 performs feedback control to control the rotational speed and other parameters of the Z-axis servo motor 14A based on the encoder information (such as rotational position information) from the Z-axis encoder 14B. The control device 22 controls the Z-axis servo motor 14A to move the Z-axis slider 53 to any position in the Z-axis direction.

[0019] The X-axis slide device 13 also includes an X-axis guide rail 54 and an X-axis slider (not shown). The X-axis guide rail 54 is disposed on the Z-axis slider 53, is arranged in a direction parallel to the X-axis direction, and holds the X-axis slider so that it can slide in the X-axis direction. The X-axis slide device 13 also includes an X-axis servo motor 13A, and transmits the rotational output of the X-axis servo motor 13A to the X-axis slider via a transmission mechanism (e.g., a ball screw mechanism), thereby moving the X-axis slider in the X-axis direction.

[0020] The X-axis slide device 13 also includes an X-axis encoder 13B that outputs encoder information of the X-axis servo motor 13A. The control device 22 performs feedback control to control the rotation speed and other aspects of the X-axis servo motor 13A based on the encoder information from the X-axis encoder 13B. The control device 22 controls the X-axis servo motor 13A to move the X-axis slider to any position in the X-axis direction.

[0021] A turret device 12 is mounted on the X-axis slider. Therefore, the control device 22 can move the turret 43 (the indexed tool and pusher 51) to any position in the X-axis and Z-axis directions by controlling the X-axis slide device 13 and the Z-axis slide device 14. The configuration of the slide device described above is merely an example. For example, the machine tool 10 may be provided with a slide device that moves the turret 43 in three mutually perpendicular X, Y, and Z axes, as in a second embodiment described below. The definition of the directions is changed as appropriate depending on the configuration of the machine tool 10. The method for detecting the position information (slide position) of the Z-axis slider 53 and the X-axis slider is not limited to using an encoder. The control device 22 may detect the slide position of the Z-axis slider 53 and the X-axis slider using another position detection device, such as a linear scale.

[0022] The robot 15 is, for example, a gantry-type workpiece transport device (which may also be called a loader). Note that the robot 15 is not shown in FIG. 1 . The robot 15 is equipped with a head having a gripping portion (such as a chuck jaw) that grips a workpiece. The robot 15 also includes, for example, a rail base attached to the machine tool 10, and is capable of moving the head along directions parallel to the left-right, up-down, and front-rear directions of the machine tool 10. The robot 15 uses the gripping portion of the head to transfer the workpiece between, for example, an entrance device that loads the workpiece, the workpiece spindle device 11, an exit device that unloads the workpiece, an inspection device that inspects the shape of the workpiece, a workpiece inversion device that inverts the workpiece, and the like (all not shown).

[0023] The operation panel 20 includes, for example, a touch panel 61 and a plurality of operation switches 62, and displays information related to the machine tool 10 and receives operational instructions. The operation panel 20 is provided, for example, on the front of an apparatus cover (not shown) of the machine tool 10. In particular, in this embodiment, the machine tool 10 uses the touch panel 61 to display a swing-allowed area setting screen 91 (see FIG. 3), which will be described later. The operation panel 20 is an example of a user interface of the present disclosure. Note that the user interface of the present disclosure is not limited to a configuration including both a display device and an input device, such as the touch panel 61. For example, the user interface may include a liquid crystal device and physical switches for selecting items displayed on the liquid crystal device. The machine tool 10 may also include a user interface other than the operation panel 20, such as a portable user interface such as a teaching pendant. The machine tool 10 may then display the swing-allowed area setting screen 91, which will be described later, and receive X and Z coordinates using the portable user interface.

[0024] The control device 22 also includes a numerical control device 65 and a PLC 66. The numerical control device 65 includes a CPU 71 and a storage device 72. The PLC 66 includes a CPU 81 and a storage device 82. The storage devices 72, 82 include, for example, RAM, ROM, flash memory, and HDD. Note that the configuration of the storage devices 72, 82 is not limited to the above-described configuration, and may include an SSD instead of an HDD, an external storage device such as a USB memory, or a storage medium such as a DVD-RAM, or a combination of these.

[0025] The machine tool 10 also includes a plurality of drive circuits 67 connecting the control device 22 with each of the above-mentioned devices (the workpiece spindle device 11, the turret device 12, the X-axis slide device 13, the Z-axis slide device 14, the robot 15, and the operation panel 20). The control device 22 is electrically connected to each device via the drive circuits 67 and is capable of controlling each device. For example, if the drive circuit 67 is connected to the X-axis servo motor 13A of the X-axis slide device 13 or the motor serving as the drive source for the robot 15, the drive circuit 67 is a driver circuit (servo amplifier) ​​that changes the power (e.g., three-phase AC current) supplied to each motor (e.g., servo motor) based on instruction signals (e.g., movement amount, destination position, movement speed, target torque) from the control device 22. For example, if the drive circuit 67 is connected to the operation panel 20, the drive circuit 67 is an amplifier circuit that amplifies signals input from the operation panel 20.

[0026] The storage device 72 also stores multiple NC programs 73 for numerically controlling the operations of the workpiece spindle device 11, turret device 12, X-axis slide device 13, Z-axis slide device 14, robot 15, etc. The numerical control device 65 executes the NC programs 73 using the CPU 71 and outputs instruction signals to a drive circuit 67 (driver circuit) in accordance with the numerical commands written in the NC programs 73 to perform control. The drive circuit 67 performs feedback control to change the current of the three-phase AC current based on, for example, encoder information from an encoder (such as the X-axis encoder 13B) attached to each servo motor (such as the X-axis servo motor 13A) and an instruction signal from the control device 22, and appropriately notifies the numerical control device 65 of the completion of processing, etc. As a result, the control device 22 slides the turret 43 (tool), the head of the robot 15, etc. along each axis to the desired position based on the numerical control by the numerical control device 65. Note that the drive source for sliding each device is not limited to a servo motor, and other drive sources such as a stepping motor or a linear motor can also be used.

[0027] Furthermore, in this embodiment, control device 22 stores the set values ​​of area X coordinate 105 and area Z coordinate 106 that define a turning-allowed area 99 (see FIG. 3 ), which will be described later, in storage device 72. Note that control device 22 may store the set values ​​of area X coordinate 105 and area Z coordinate 106 in a storage device other than storage device 72, such as storage device 82 of PLC 66 or an external storage device connected to machine tool 10.

[0028] PLC 66 is a programmable logic controller. A ladder program 83 for constructing a ladder circuit that processes various signals is stored in storage device 82. PLC 66 executes ladder program 83 with CPU 81 and performs sequence processing based on ladder program 83 to, for example, output signals to various elements such as lamps provided in machine tool 10 to drive them, and input signals from elements such as limit switches. PLC 66 is also connected to numerical control device 65 via, for example, communication bus 69, enabling communication with numerical control device 65. PLC 66 inputs and outputs signals to and from numerical control device 65 using devices 85 constructed based on ladder program 83. Device 85 is, for example, a storage area constructed on storage device 82 by CPU 81 executing ladder program 83, and is a device for storing signal values ​​of external I / O (sensors, etc.) equipped in machine tool 10, a device for storing signal values ​​for communication with numerical control device 65, a device for realizing a keep relay for storing setting values, etc. In this way, PLC 66 relays signals (input / output) between external I / O equipped in machine tool 10 and numerical control device 65.

[0029] In addition to the NC program 73, the storage device 72 also stores a display program 75, a turning judgment program 76, and various other data (not shown) necessary for machining. The display program 75 changes the display content of the touch panel 61. The display program 75 displays a turning-allowed area setting screen 91 (see FIG. 3 , described later) and accepts coordinates on the turning-allowed area setting screen 91. The turning judgment program 76 executes a turning judgment process (see FIG. 4 , described later). In the following description, the control device 22 may execute the display program 75 or the turning judgment program 76 via the CPU 71 to control each device, and the device name may be used to refer to the device. For example, "the control device 22 displays the turning-allowed area setting screen 91 on the touch panel 61" means "the control device 22 executes the display program 75 on the CPU 71 and controls the touch panel 61 via the drive circuit 67, thereby displaying the turning-allowed area setting screen 91 on the touch panel 61."

[0030] (Acceptance of Coordinate Values ​​of the Swivel-Allowed Area) Here, the user manually rotates the turret 43, for example, when changing a tool or adjusting the position of a tool tip and setting a correction value. Alternatively, the control device 22 rotates the turret 43 when automatically indexing a desired tool based on the NC program 73 during execution of the NC program 73. At this time, interference between the turret 43 itself or a tool attached to the turret 43 and other components can be a problem. Examples of other components that may interfere include the chuck mechanism of the workpiece spindle device 11, a workpiece held by the workpiece spindle device 11, and a tailstock that presses the workpiece toward the chuck mechanism. Alternatively, other components that may interfere include, but are not limited to, various components in the machining chamber, such as a touch sensor that detects the position of the tool tip in order to correct the position of the tool tip.

[0031] If the turret 43 is moved to the origin position each time a rotation is performed to avoid interference, there is a problem that the cycle time becomes long. Furthermore, when the position at which the rotation is performed is registered as in the prior art document, there is a risk that the positions at which the turret 43 can be rotated will be limited to the specific positions that have been set. Therefore, in the machine tool 10 of this embodiment, a rotation permission area in which the rotation of the turret 43 is permitted is set, and whether or not to rotate the turret 43 is determined based on the set rotation permission area.

[0032] Fig. 3 shows a swing-allowed area setting screen 91 for setting a swing-allowed area. After, for example, machine tool 10 is powered on and the system of machine tool 10 is started up, control device 22 executes display program 75 in CPU 71 and displays an initial screen on touch panel 61. When control device 22 receives a predetermined operation input (an instruction to display the setting screen) on touch panel 61, it displays swing-allowed area setting screen 91 shown in Fig. 3 on touch panel 61.

[0033] As shown in FIG. 3 , the control device 22 displays a coordinate input section 92 and an area display section 93 on a swing-allowed area setting screen 91. The control device 22 displays two machine coordinate display sections 94x and 94z, an X-coordinate input section 95x, a Z-coordinate input section 95z, and two teach buttons 96 on the coordinate input section 92. The control device 22 displays the machine coordinate display sections 94x and 94z, the X-coordinate input section 95x, the Z-coordinate input section 95z, and the two teach buttons 96, one row for each of the X-axis and Z-axis directions. The control device 22 controls the sliding position of the X-axis slider of the X-axis sliding device 13 and the Z-axis slider 53 of the Z-axis sliding device 14 based on a predetermined origin 98. The origin 98 is set, for example, at a predetermined position within the machine tool 10 and serves as the origin for the sliding movement of the X-axis sliding device 13 and the Z-axis sliding device 14. The X-axis sliding device 13 can move the X-axis slider within a range on the positive X-coordinate side of the origin 98. The Z-axis sliding device 14 can move the Z-axis slider 53 within a range on the positive Z-coordinate side of the origin 98. The X-axis sliding device 13 may be able to move the X-axis slider within a range on the negative X-coordinate side, and the Z-axis sliding device 14 may be able to move the Z-axis slider 53 within a range on the negative Z-coordinate side.

[0034] For example, in the initial state or when retracting the turret 43, the control device 22 positions the turret 43 at the origin 98. In the following description, within the range in which the turret 43 can slide, the origin 98 side is referred to as the origin side, and the workpiece spindle device 11 side is referred to as the spindle side. The area display unit 93 is a display unit that displays a rotation-allowed area 99. In addition to the origin 98 and the rotation-allowed area 99, the control device 22 displays the X coordinate axis, the Z coordinate axis, a turret icon 101, and a spindle icon 102 on the area display unit 93. In this embodiment, the rotation-allowed area 99 is defined as a rectangular area as shown in FIG. 3. Note that the size, shape, position, etc. of the rotation-allowed area 99 shown in FIG. 3 are merely examples. For example, the rotation-allowed area 99 may be a polygonal area such as a triangle or a pentagon, or may be a circular area. The control device 22 may also set multiple rotation-allowed areas 99.

[0035] The machine coordinate display unit 94x is a display unit that displays the X coordinate of the origin side in the turning-allowed area 99. The machine coordinate display unit 94z is a display unit that displays the Z coordinate of the origin side in the turning-allowed area 99. In this embodiment, the coordinates of the origin 98, "0.000, 0.000," are set as the X coordinate and Z coordinate of the origin side. Therefore, the turning-allowed area 99 is defined based on the origin 98. The control device 22 does not accept changes to the X coordinate and Z coordinate of the origin side, and displays only the coordinate values ​​on the machine coordinate display units 94x and 94z. Note that the control device 22 may also accept changes to the X coordinate and Z coordinate of the origin side from the user. The control device 22 may also accept input of X and Z coordinate values ​​on each of the machine coordinate display units 94x and 94z, and set the X coordinate and Z coordinate of the origin side of the turning-allowed area 99 to the accepted values. Therefore, the X and Z coordinates on the origin side of the turning-allowed area 99 are not limited to the coordinates of the origin 98, but may be the coordinates of another position set by the user.

[0036] The X-coordinate input section 95x is an input field that accepts the X-coordinate 105 of the spindle-side end of the turning-allowed area 99 on the X-coordinate axis (hereinafter referred to as the area X-coordinate). In the example shown in FIG. 3, a value of "XX.XX" is input as the area X-coordinate 105. The Z-coordinate input section 95z is an input field that accepts the Z-coordinate 106 of the spindle-side end of the turning-allowed area 99 on the Z-coordinate axis (hereinafter referred to as the area Z-coordinate). In the example shown in FIG. 3, a value of "ZZ.ZZ" is input as the area Z-coordinate 106 in the Z-coordinate input section 95z. The position of the area X-coordinate 105 and the area Z-coordinate 106 is referred to as an intersection 107. The turning-allowed area 99 is an area surrounded by a line (X-coordinate axis) passing through the origin 98 and the area X-coordinate 105, a line (Z-coordinate axis) passing through the origin 98 and the area Z-coordinate 106, a line passing through the area X-coordinate 105 and the intersection 107, and a line passing through the area Z-coordinate 106 and the intersection 107. In other words, the turning-allowed area 99 is a rectangular area with the origin 98, the area X-coordinate 105, the area Z-coordinate 106, and the intersection 107 as vertices.

[0037] As described above, in this embodiment, the control device 22 stores the values ​​of the area X coordinate 105 and the area Z coordinate 106 in the storage device 72 (see FIG. 2 ). For example, when the control device 22 receives an operation to display the turning-allowed area setting screen 91 via the touch panel 61, the control device 22 reads out the current setting values ​​of the area X coordinate 105 and the area Z coordinate 106 from the storage device 72 and displays them in the X coordinate input section 95x and the Z coordinate input section 95z, respectively. The user can change the area X coordinate 105 by inputting a desired value into the X coordinate input section 95x, and can change the area Z coordinate 106 by inputting a desired value into the Z coordinate input section 95z.

[0038] Furthermore, the control device 22 displays a save button 109 and a back button 111 below the area display unit 93 on the turn-allowed area setting screen 91. When the save button 109 is touched, the control device 22 stores the coordinates input into the X-coordinate input unit 95x as the set value of the area X coordinate 105 in the storage device 72, and stores the coordinates input into the Z-coordinate input unit 95z as the set value of the area Z coordinate 106 in the storage device 72 (an example of a coordinate reception process of the present disclosure). This makes it possible to set the area X coordinate 105 and the area Z coordinate 106 that define the turn-allowed area 99. For example, the user can manually move the turret 43 and set the area X coordinate 105 and the area Z coordinate 106 after checking the slide position and whether or not there is interference with other components.

[0039] The two teach buttons 96 are buttons for inputting the current position 113 of the turret 43 into the X-coordinate input section 95x and the Z-coordinate input section 95z, respectively. For example, when a teach button 96 provided in a row in the X-axis direction is touched, the control device 22 inputs the X-coordinate value of the current position 113 of the turret 43 into the X-coordinate input section 95x. Similarly, when a teach button 96 provided in a row in the Z-axis direction is touched, the control device 22 inputs the Z-coordinate value of the current position of the turret 43 into the Z-coordinate input section 95z. This allows the user to confirm an area where no interference will occur, and then easily input the area X-coordinate 105, etc., by touching the teach button 96 at the edge of that area.

[0040] The current position 113 of the turret 43 described above is, for example, the position of the Z-axis slider 53 of the Z-axis slide device 14 on which the turret device 12 is mounted. In this embodiment, for example, the position of the Z-axis slider 53 is used to execute processing as the position of the turret 43. The control device 22 receives values ​​to be compared with the X-coordinate value and the Z-coordinate value of the Z-axis slider 53 as the values ​​of the area X coordinate 105 and the area Z coordinate 106. The control device 22 determines that rotation is permitted if the current position 113 of the Z-axis slider 53 is within the rotation-allowed area 99, and restricts rotation if it is outside the rotation-allowed area 99. The current position 113 may also be the actual position of the turret 43. Specifically, the current position 113 may be, for example, the indexed position of the turret 43. In this case, the control device 22 receives values ​​to be compared with the X-coordinate value and the Z-coordinate value of the indexed position of the tool as the values ​​of the area X coordinate 105 and the area Z coordinate 106. Alternatively, the current position 113 may be the position of the Z-axis slider 53, and values ​​to be compared with the X coordinate value and Z coordinate value of the index position of the tool may be received as the area X coordinate 105 and the area Z coordinate 106, and the received values ​​may be corrected for comparison with the position of the Z-axis slider 53. Therefore, the coordinate values ​​to be received and the current position 113 to be compared may be changed as appropriate.

[0041] The turret icon 101 is an icon that simulates the turret 43. The spindle icon 102 is an icon that simulates the headstock 23 and chuck mechanism of the workpiece spindle device 11. The control device 22 displays the turret icon 101 at the current position 113. The control device 22 also displays the spindle icon 102 at the position of the workpiece spindle device 11. In the area display unit 93, X and Z coordinates are set with reference to the origin 98. As described above, the origin 98 is a predetermined position within the machine tool 10. The control device 22 adjusts the positions at which the turret icon 101 and the spindle icon 102 are displayed in accordance with the position at which the origin 98 is displayed, the X and Z coordinates, the scale of the X and Z coordinates, and the like. For example, the control device 22 scales the swing-allowed area 99 (X and Z coordinates) to match the size of the display space of the area display unit 93, and adjusts the positions at which the turret icon 101 and the spindle icon 102 are displayed in accordance with the scale of the swing-allowed area 99, and the like. This allows the turret icon 101, spindle icon 102, and swing-allowed area 99 to be displayed in a reduced size while maintaining their actual positional relationship, and allows the workpiece spindle device 11 and turret 43 to be displayed in association with the swing-allowed area 99. The turret icon 101 and spindle icon 102 can be displayed at a position that matches the size of the swing-allowed area 99. The control device 22 changes the position at which the turret icon 101 is displayed in accordance with the movement of the turret 43, and displays it together with the swing-allowed area 99 on the area display unit 93. By displaying the turret icon 101 that simulates the turret 43 at the current position 113 of the Z-axis slider 53, and also displaying the swing-allowed area 99, the control device 22 can more intuitively display whether the turret 43 is within the swing-allowed area 99, i.e., whether it is in a position where it can be swung. Furthermore, the user can set the rotation-allowed area 99 while checking the current rotation-allowed area 99, the current position 113 of the turret icon 101, and the spindle icon 102 (the position of the workpiece spindle device 11). This can reduce the occurrence of mistakes in setting the rotation-allowed area 99.

[0042] Furthermore, when the control device 22 receives an operation to display the turn-allowed area setting screen 91, it reads the current setting values, such as the area X coordinate 105, from the storage device 72 and displays them in the X coordinate input section 95x, etc., and also displays the turn-allowed area 99 with a size corresponding to the values ​​of the area X coordinate 105 and the area Z coordinate 106. That is, the control device 22 displays the turn-allowed area 99 connecting the origin 98, the intersection 107, and the read area X coordinate 105 and area Z coordinate 106 in the XZ coordinate of the area display section 93. Furthermore, when the save button 109 is touched and the area X coordinate 105, etc. is updated, the control device 22 also updates the size of the turn-allowed area 99. The control device 22 changes the size and shape of the graphic of the turn-allowed area 99 according to the received values ​​of the area X coordinate 105 and the area Z coordinate 106. This allows the user to graphically confirm the size of the changed turn-allowed area 99. The user can also check the positional relationship between the changed swivel-allowed area 99 and the workpiece spindle device 11 and the turret 43 at the current position 113. The control device 22 does not need to change the size of the swivel-allowed area 99 after the save button 109 is touched to update the area X coordinate 105, etc., in the storage device 72. For example, the control device 22 may change the size of the swivel-allowed area 99 when the value in the X coordinate input section 95x or the Z coordinate input section 95z is changed.

[0043] The display contents of the area display unit 93 shown in FIG. 3 are merely an example and can be changed as appropriate. For convenience of explanation, FIG. 3 illustrates an area X coordinate 105, an area Z coordinate 106, an intersection 107, and a current position 113, but the control device 22 does not have to display the area X coordinate 105, etc. on the area display unit 93. The control device 22 also does not have to display the turret icon 101 or the spindle icon 102 on the area display unit 93. The control device 22 also does not have to change the size of the rotation-allowed area 99 in response to updates to the values ​​of the area X coordinate 105, etc. The control device 22 also does not have to display the area display unit 93 on the rotation-allowed area setting screen 91.

[0044] (Swivel Determination Process) Next, the swing determination process executed by the control device 22 will be described. Note that the following description will be given of a case where a manual swing instruction is received from the user. However, the swing determination process can also be executed in an automatic operation in which the NC program 73 is executed. Figure 4 shows a flowchart of the swing determination process. For example, when the control device 22 displays a screen for receiving an instruction to identify a tool on the touch panel 61, the control device 22 executes the swing determination program 76 in the CPU 71 and starts the process shown in Figure 4.

[0045] First, when the control device 22 starts the processing of FIG. 4 , in step (hereinafter simply referred to as S) 11, it determines whether or not an instruction to index a tool, i.e., an instruction to rotate, has been received on the screen for receiving the instruction. For example, the user operates the screen to specify an arbitrary tool (such as a tool number) and issue an instruction to execute indexing. The control device 22 makes a negative determination (S11: NO) until this instruction is received, and repeatedly executes the determination process of S11. When the control device 22 receives the instruction (S11: YES), it executes S13.

[0046] In S13, the control device 22 determines whether the current position 113 of the turret 43 is within the rotation-permitted area 99. If the X coordinate of the current position 113 is equal to or less than the area X coordinate 105 and the Z coordinate of the current position 113 is equal to or less than the area Z coordinate 106, the control device 22 makes an affirmative determination (S13: YES) and executes rotation (S15). If the X coordinate of the current position 113 is equal to or less than the area X coordinate 105, the X coordinate of the Z-axis slider 53 (X-axis slider) is equal to or less than the area X coordinate 105. If the Z coordinate of the current position 113 is equal to or less than the area Z coordinate 106, the Z coordinate of the Z-axis slider 53 is equal to or less than the area Z coordinate 106. In S15, the control device 22 drives the turret servo motor 47 to rotate the turret 43 without changing the position of the turret 43 from the current position 113. The control device 22 rotates the turret 43 until the tool received in S11 is at the work position, and executes the indexing of the specified tool. The control device 22 ends the processing shown in Fig. 4 and starts the processing from S11, for example. Note that the control device 22 ends the processing in Fig. 4 when the display of the screen for receiving the instruction to index the tool ends.

[0047] Therefore, when the control device 22 receives an instruction to rotate the turret 43 via the touch panel 61, it executes S13 and determines whether to permit the rotation. The control device 22 determines whether the coordinates of the current position 113 of the turret 43 at the time the instruction is received are included in the rotation-permitted area 99. If it is determined that the coordinates are included, the control device 22 executes (permits) the rotation of the turret 43. For example, when an arbitrary tool is indexed and measured using a touch sensor to set a correction value for adjusting the tool position, the user operates the touch panel 61 to move the turret 43 to a position a certain distance away from the workpiece spindle device 11 and instructs the rotation. At this time, the control device 22 automatically determines whether to permit the rotation based on the current position 113, and allows the rotation only if the rotation is permitted. Therefore, the user can execute the rotation if possible by simply executing the rotation instruction after moving the turret 43 to the position where the work will be performed. The user can instruct the rotation without having to check (or worry about) interference between the turret 43 and other components. This reduces the workload on the user.

[0048] Furthermore, as described above, the control device 22 permits the rotation of the turret 43 if the X coordinate of the X-axis slider is equal to or less than the area X coordinate 105 and the Z coordinate of the Z-axis slider 53 is equal to or less than the area Z coordinate 106 (S13: YES). As a result, in a configuration in which the turret 43 is moved by two slide devices, the X-axis slide device 13 and the Z-axis slide device 14, the position of the turret 43 can be changed by moving the X-axis slider and the Z-axis slider 53. Then, by comparing the position of the Z-axis slider 53 on which the turret device 12 is mounted with the area X coordinate 105 and the area Z coordinate 106, it is possible to determine whether rotation is permitted.

[0049] On the other hand, in S13, if at least one of the conditions that the X coordinate of the current position 113 is larger than the area X coordinate 105 and the Z coordinate of the current position 113 is larger than the area Z coordinate 106 is satisfied, the control device 22 makes a negative determination in S13 (S13: NO) and executes S17. By executing S17 and subsequent steps, the control device 22 executes control to move the turret 43 into the rotation-permitted area 99, rotate it, and return it to its original position.

[0050] Specifically, in S17, the control device 22 moves the turret 43 to a position within the rotation-allowed area 99 that is closest to the current position 113. The control device 22 sets the position that is the shortest in a straight line distance from the current position 113, among any positions included in the rotation-allowed area 99, as the destination position, and moves the turret 43 to that position. The method for setting the destination position is not particularly limited. Figure 5 shows the operation of moving the turret 43 into the rotation-allowed area 99 over the shortest distance for three current positions 113A, 113B, and 113C. For example, the current position 113A is a position whose X coordinate is greater than the area X coordinate 105 and whose Z coordinate is equal to or less than the area Z coordinate 106. When the turret 43 is located at a position facing the turn-allowed area 99 in the X-axis direction, as in this current position 113A, the control device 22 sets, as the destination position, a position whose X coordinate is the area X coordinate 105 and whose Z coordinate is the Z coordinate of the current position 113A. In this case, the control device 22 moves the turret 43 parallel to the X-axis direction to a position where the X coordinate of the current position 113A is the area X coordinate 105 (within the turn-allowed area 99). Also, for example, the current position 113B is a position where the X coordinate of the current position 113B is equal to or smaller than the area X coordinate 105 and the Z coordinate is greater than the area Z coordinate 106. When the turret 43 is located at a position facing the turn-allowed area 99 in the Z-axis direction, as in this current position 113B, the control device 22 sets, as the destination position, a position whose X coordinate is the X coordinate of the current position 113B and whose Z coordinate is the area Z coordinate 106. In this case, the control device 22 moves the turret 43 parallel to the Z-axis direction to a position where the Z coordinate of the current position 113 becomes the area Z coordinate 106 (within the turn-allowed area 99).

[0051] Furthermore, for example, current position 113C is a position where the X coordinate of current position 113B is greater than area X coordinate 105 and the Z coordinate is greater than area Z coordinate 106. When turret 43 is located at a position that does not face the turn-allowed area 99 in either the X-axis direction or the Z-axis direction, as in current position 113C, the control device 22 sets intersection 107 as the destination position. In this case, the control device 22 moves turret 43 to a position where the X coordinate of current position 113 is the area X coordinate 105 and the Z coordinate is the area Z coordinate 106.

[0052] When the destination position is set, the control device 22 moves the turret 43 to the set destination position (S17), and rotates the turret 43 at the destination position to index the specified tool (S19). Therefore, when the control device 22 determines that rotation is not permitted (S13: NO), it moves the turret 43 to a position where rotation is permitted based on the rotation permitted area 99 (S17), and rotates the turret 43 after moving it. This makes it possible to move the turret 43 to a position appropriate for rotation based on the rotation permitted area 99 and then execute rotation. This makes it possible to suppress interference between the turret 43 and other members.

[0053] Furthermore, when moving the turret 43 to a position where rotation is permitted, the control device 22 moves the turret 43 to the closest position from the current positions 113A to 113C of the turret 43, and then rotates the turret 43. This makes it possible to reduce the work time required to index the tool while avoiding interference between the turret 43 and other members, thereby shortening the cycle time.

[0054] Furthermore, when the control device 22 receives an instruction to rotate the turret 43 via the touch panel 61, it executes S13 to determine whether or not to permit the rotation. If the control device 22 determines that the rotation is not permitted through the processing of S13 (S13: NO), it restricts the rotation of the turret 43 at the current position 113 and moves it to within the rotation-permitted area 99. This allows, for example, an experienced and skilled worker to set in advance the rotation-permitted area 99 where no interference will occur, thereby restricting the rotation even if another user mistakenly performs a rotation. This makes it possible to suppress interference between the turret 43 and other components.

[0055] The control device 22 executes the rotation in S19, and when the indexing of the specified tool is completed, moves the turret 43 to the position before the movement, i.e., the current position 113 at the time when the user executed the rotation instruction (S21). The control device 22 moves the turret 43 to the original position along the same straight path (shortest distance) as in S17. The control device 22, for example, ends the processing shown in Fig. 4 and executes the processing again from S11.

[0056] Therefore, the control device 22 executes control to move the turret 43 to a position where rotation is permitted based on the rotation permitted area 99, rotate the turret 43, and then return the turret 43 to the position before the movement. As a result, even when a rotation instruction is received outside the rotation permitted area 99, the turret 43 can be moved to the rotation permitted area 99, rotated while avoiding interference, and then placed back in its original current position 113. In other words, the turret 43 can be returned to the location where the user wanted to perform work. This reduces the workload on the user.

[0057] In the above description, the case where permission for rotation is determined when a rotation instruction is received from the user has been described. However, similar processing can also be performed during execution of the NC program 73. For example, the control device 22 executes the NC program 73 to machine a workpiece, completes a given process, and then rotates the turret 43 to change the tool before starting the next process. The machining position varies depending on the process, and the position of the turret 43 at the time of completion of machining varies. For example, the control device 22 retracts the turret 43 from the workpiece by a predetermined distance in the XZ directions from the position at the time of completion of machining, and then rotates the turret 43. In this case, if a fixed distance is set as the retraction distance, the position after machining will differ, and therefore the retraction position will also differ. In such a case, the control device 22 may perform processing similar to the above-described rotation determination processing at the position after retraction.

[0058] For example, the control device 22 executes the process of S13 in Fig. 4 after retracting the turret 43. If the determination in S13 is affirmative (S13: YES), the control device 22 executes tool allocation at that location (retracted position) (S15), and if the determination is negative (S13: NO), the control device 22 moves to the rotation-permitted area 99 and executes indexing (S17 and subsequent steps). As a result, even when the NC program 73 is being executed, interference between the turret 43 and other members can be avoided and rotation can be executed, just as in accordance with instructions from the user.

[0059] The correspondence between the terms used in this embodiment and the terms used in the claims will be described below. In the above embodiment, the X-axis sliding device 13 is an example of a sliding device and a first sliding device. The X-axis slider is an example of a first slider. The Z-axis sliding device 14 is an example of a sliding device and a second sliding device. The turret servo motor 47 is an example of a turning device. The Z-axis slider 53 is an example of a second slider. The touch panel 61 is an example of a user interface. The area X coordinate 105 is an example of a first coordinate. The area Z coordinate 106 is an example of a second coordinate. The X coordinate axis is an example of a first coordinate axis. The Z coordinate axis is an example of a second coordinate axis. S13 is an example of a determination process. The X-axis direction is an example of a first direction. The Z-axis direction is an example of a second direction.

[0060] As described above, the first embodiment provides the following advantages. The control device 22, which is one aspect of the present application, determines whether or not to permit the turret 43 to rotate based on the rotation-permitted area 99 (S13). If the control device 22 determines that rotation is permitted through the processing of S13 (S13: YES), it executes the rotation of the turret 43 (S15). This allows the user to set any coordinates after checking for interference between the turret 43 and other components. By setting the X and Z coordinates, it becomes possible to specify a range of positions within which the turret 43 can rotate. For example, the user can move the turret 43 to more reliably check for an area where interference will not occur and set the area as the rotation-permitted area 99. This allows an inexperienced operator to perform the rotation without considering whether interference will occur. Since the turret 43 can be rotated without returning to the origin 98, the cycle time can be shortened.

[0061] Second Example Next, a second example of the present disclosure will be described. The machine tool 10 of the first example described above is configured to be able to slide the turret 43 in two directions, the X-axis direction and the Z-axis direction. However, the configuration of the machine tool 10 is not limited to this. For example, the machine tool 10 may be configured to be able to slide the turret 43 in three or more directions. In this case, as in the first example, the coordinates of each direction may be received and the allowed rotation area 99 may be defined.

[0062] FIG. 6 shows a swing-allowed area setting screen 91A according to the second embodiment. The swing-allowed area setting screen 91A according to the second embodiment includes input fields for the X-axis direction, the Z-axis direction, and the Y-axis direction. Specifically, the swing-allowed area setting screen 91A includes a machine coordinate display section 94y, a Y-coordinate input section 95y, and a teach button 96 corresponding to the Y-coordinate input section 95y. For example, the machine tool 10 according to the second embodiment includes a Y-axis slide device (not shown) in addition to the X-axis slide device 13 and the Z-axis slide device 14. The Y-axis slide device moves the turret 43 in the Y-axis direction, which is perpendicular to both the X-axis direction and the Z-axis direction. Like the X-axis slide device 13 and the Z-axis slide device 14, the Y-axis slide device includes a Y-axis slider, a Y-axis servo motor, a Y-axis encoder, and the like. In this configuration in which the turret 43 moves in three axes, a three-dimensional (rectangular) shape can be set as the swing-allowed area 99. The machine coordinate display section 94y is a display section that displays the Y coordinate of the origin side in the turning-allowed area 99. The Y coordinate input section 95y is an input field that receives the Y coordinate 108 of the end of the turning-allowed area 99 on the spindle side on the Y coordinate axis (hereinafter referred to as the area Y coordinate) In the example shown in Fig. 6, the value "YY.YY" is input as the area Y coordinate 108.

[0063] The control device 22 receives an area Y coordinate 108 that defines a three-dimensional rotation-permitted area 99 at the Y coordinate input unit 95y, similar to the area X coordinate 105 and the area Z coordinate 106. In the case of such a turret 43 that slides in three axial directions, it is possible to determine whether or not to permit rotation based on the rotation-permitted area 99, similar to the above-described two-axial turret 43. Specifically, for example, the control device 22 permits rotation when the X coordinate of the current position 113 of the turret 43 is equal to or smaller than the area X coordinate 105, the Y coordinate is equal to or smaller than the area Y coordinate 108, and the Z coordinate is equal to or smaller than the area Z coordinate 106.

[0064] Furthermore, the control device 22 restricts turning at the current position 113 when at least one of the following conditions is met: the X coordinate of the current position 113 is greater than the area X coordinate 105, the Y coordinate of the current position 113 is greater than the area Y coordinate 108, and the Z coordinate of the current position 113 is greater than the area Z coordinate 106. Then, as in the first embodiment, the control device 22 moves the turret 43 over the shortest distance into the turning-permitted area 99 and turns it. After turning, the control device 22 returns the turret 43 to its original position.

[0065] The control device 22 also displays the turn-allowed area 99 on the area display unit 93. The control device 22 displays the turn-allowed area 99 in a two-dimensional coordinate system, for example, as in the first embodiment. The control device 22 then displays an XY coordinate button 121, a YZ coordinate button 122, and a ZX coordinate button 123 below the area display unit 93. When the XY coordinate button 121 is touched, the control device 22 displays the turn-allowed area 99, the current position 113, etc. in XY coordinates. Similarly, when the YZ coordinate button 122 is touched, the control device 22 displays the turn-allowed area 99, etc. in YZ coordinates. Similarly, when the ZX coordinate button 123 is touched, the control device 22 displays the turn-allowed area 99, etc. in ZX coordinates.

[0066] 6, the turn-allowed area 99 and the like are displayed in ZX coordinates, i.e., the same coordinate system as in the first embodiment. The user can check the turn-allowed area 99 displayed in each coordinate system by touching the XY coordinate button 121 or the like. The control device 22 may change the display (orientation) of the current position 113 and the spindle icon 102 according to the coordinate system. The control device 22 may also display the turn-allowed area 99, the current position 113, and the like on the area display unit 93 in three dimensions of the XYZ coordinates.

[0067] Furthermore, the present disclosure is not limited to the above-described embodiments and can be embodied in various forms with various modifications and improvements based on the knowledge of those skilled in the art. For example, the content and order of the process of the determination / rotation process shown in FIG. 4 are merely examples. For example, if the control device 22 determines in S13 that the current position 113 is not within the rotation-allowed area 99 (S13: NO), the control device 22 may notify an error and stop operation. This can avoid interference while encouraging the user to move the turret 43. For example, the control device 22 may notify an error by guiding the user to the shortest position within the rotation-allowed area 99 as the destination position. Furthermore, if the control device 22 determines in S13 that the current position 113 is not within the rotation-allowed area 99 (S13: NO), the control device 22 may execute S17 and end the process. That is, the process may end before the turret 43 rotates. Alternatively, the control device 22 may execute the process up to S19 and end the process. That is, the turret 43 may rotate but not return to its pre-movement position. Furthermore, in S17, the control device 22 moves the turret 43 to the position within the rotation-allowed area 99 that is closest to the current position 113, but this is not limiting. For example, the control device 22 may move and rotate the turret 43 to a position that is a predetermined distance inward from the outer edge of the rotation-allowed area 99. Furthermore, the position of the origin 98, the positive and negative directions of the X coordinate axis, and the positive and negative directions of the Z coordinate axis, i.e., the setting of the coordinate system, can be changed as appropriate.

[0068] The contents of the present disclosure are not limited to the dependent relationships described in the claims. For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 2" in claim 4 to "the machine tool according to claim 2 or claim 3." For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1 or claim 2" in claim 6 to "the machine tool according to any one of claims 1 to 5." For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 6" in claim 8 to "the machine tool according to claim 6 or claim 7." For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1 or claim 2" in claim 9 to "the machine tool according to any one of claims 1 to 8."

[0069] 10 Machine tool, 11 Work spindle device, 13 X-axis slide device (slide device, first slide device), 14 Z-axis slide device (slide device, second slide device), 22 Control device, 43 Turret, 47 Turret servo motor (swivel device), 53 Z-axis slider (second slider), 61 Touch panel (user interface), 98 Origin, 99 Swivel permitted area, 105 Area X coordinate (first coordinate), 106 Area Z coordinate (second coordinate), 108 Area Y coordinate (first coordinate, second coordinate), 113, 113A to 113C Current position.

Claims

1. A machine tool comprising: a work spindle device that holds a workpiece and rotates the workpiece around a spindle; a turret on which a tool for machining the workpiece held by the work spindle device can be attached; a turning device that rotates the turret; a sliding device that slides the turret in a first direction parallel to the spindle and a second direction perpendicular to the first direction; and a control device that controls the turning device and the sliding device, wherein the control device executes a coordinate reception process that receives a first coordinate value of a first coordinate axis parallel to the first direction and a second coordinate value of a second coordinate axis parallel to the second direction, which coordinates define a rotation allowance area in which rotation of the turret is allowed; a judgment process that judges whether or not to permit rotation of the turret based on the rotation allowance area defined by the first coordinate and second coordinate received by the coordinate reception process; and a turning process that controls the turning device to rotate the turret when it is judged by the judgment process that rotation of the turret is permitted.

2. A machine tool as described in claim 1, further comprising a user interface that accepts an instruction to rotate the turret, wherein the control device executes the judgment process when an instruction to rotate the turret is accepted via the user interface, and restricts the rotation of the turret by the rotation device when the judgment process determines that rotation of the turret is not permitted.

3. The machine tool described in claim 2, wherein the control device executes the judgment process when an instruction to rotate the turret is received via the user interface, determines whether the coordinates of the current position of the turret at the time the instruction is received are included in the rotation-permitted area, and if it is determined that they are included, determines that rotation of the turret is permitted.

4. The machine tool described in claim 2, wherein the control device displays on the user interface a rectangular figure connecting four positions with straight lines: the origin of the sliding movement of the turret, the first coordinate on the first coordinate axis, the second coordinate on the second coordinate axis, and the position of the first coordinate and the second coordinate; and displays on the user interface the positions of the work spindle device and the turret in association with the figure indicating the rotation-allowed area.

5. The machine tool described in claim 4, wherein the control device receives values ​​of the first coordinate and the second coordinate via the user interface, and changes the figure indicating the permitted turning area according to the received values ​​of the first coordinate and the second coordinate.

6. A machine tool as described in claim 1 or claim 2, wherein, when the control device determines through the judgment process that rotation of the turret is not permitted, it controls the slide device to move the turret and also moves the turret to a position where rotation of the turret is permitted based on the permitted rotation area, and after the movement, controls the rotation device to rotate the turret.

7. A machine tool as described in claim 6, wherein the control device executes control to move the turret to a position where rotation of the turret is permitted based on the permitted rotation area, rotate the turret, and then control the slide device to return the turret to the position before it was moved.

8. A machine tool as described in claim 6, wherein, when the control device moves the turret to a position where rotation of the turret is permitted based on the permitted rotation area, the control device moves the turret to a position within the permitted rotation area that is closest to the current position of the turret, and after the movement, controls the rotation device to rotate the turret.

9. A machine tool as described in claim 1 or claim 2, wherein the slide device comprises: a first slide device which slides a first slider in the first direction; and a second slide device which is provided on the first slider and slides a second slider in the second direction; the turret is provided on the second slider; and the control device, in the judgment process, allows the turret to rotate if the coordinate of the first slider on the first coordinate axis is equal to or less than the first coordinate and the coordinate of the second slider on the second coordinate axis is equal to or less than the second coordinate.

Citation Information

Patent Citations

  • Method for supervising working information of numerical control working machine

    JP1984036810A

  • Method and device for numerical control

    JP1990309403A

  • Control device for nc lathe

    JP1999347887A

  • Control device of machine tool, and shifting control method of tool rest

    JP2010173022A

Cited By

  • Method and system for quickly defining motion coordinates in numerical control multi-axis machine tool simulation system

    CN121069905A