Machine tool

JPWO2025041297A1Pending Publication Date: 2025-02-27
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025541243
Authority / Receiving Office
JP · JP
Patent Type
Applications
Filing Date
2023-08-23
Publication Date
2025-02-27
Patent Text Reader

Abstract

The present invention provides a machine tool that can acquire settings information necessary to create a machining program. The machine tool comprises: a workpiece holding device that holds a workpiece; a machining device on which a tool can be mounted to perform machining on a workpiece held by the workpiece holding device; an acquisition device capable of acquiring at least one mounting state out of the mounting state of a workpiece in the workpiece holding device and the mounting state of a tool in the machining device; and a processing device that sets settings information necessary to create a machining program for controlling machining operation on the basis of the mounting state(s) acquired by the acquisition device.
Need to check novelty before this filing date? Find Prior Art

Description

machine tools

[0001] The present disclosure relates to a technique for acquiring the state of a machine tool.

[0002] Patent Document 1 below describes a processing device that acquires information from a workpiece. The processing device in Patent Document 1 uses an imaging device to capture an image of the workpiece placed on a stage and read a barcode attached to the workpiece. The processing device acquires information about the workpiece, such as the material of the workpiece, from the read barcode.

[0003] Japanese Patent Application Laid-Open No. 2020-71703

[0004] The machine tool of Patent Document 1 is configured to perform grinding by applying a grinding wheel to a workpiece on a stage. However, the information required varies depending on the configuration of the machine tool, and there is room for improvement in terms of acquiring the information.

[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a machine tool that can acquire setting information necessary for creating a machining program.

[0006] In order to solve the above problems, this specification discloses a machine tool comprising: a work holding device for holding a work; a processing device capable of attaching a tool for performing processing on the work held by the work holding device; an acquisition device capable of acquiring at least one of the attachment states of the work in the work holding device and the attachment state of the tool in the processing device; and a processing device that sets setting information required to create a processing program that controls processing operations based on the attachment states acquired by the acquisition device.

[0007] According to the machine tool of the present disclosure, the acquisition device can acquire at least one of the attachment states of the workpiece in the workholding device and the attachment state of the tool in the machining device. The processing device sets setting information necessary for creating a machining program that controls machining operations based on the attachment states acquired by the acquisition device. As a result, in the case of the attachment state of the workpiece, setting information such as the size of the base material before machining and the protrusion amount of the base material can be set based on the acquired state acquired by the acquisition device. In addition, in the case of the attachment state of the tool, setting information such as the type of tool and the protrusion amount of the tool can be acquired by the acquisition device and set based on the acquired state. As a result, the setting information necessary for creating a machining program can be automatically acquired and set.

[0008] The present invention relates to a machine tool for manufacturing a machine tool, a machine tool for manufacturing a machine tool, a turret for mounting a tool, a program for creating a program, and a program for creating a program.

[0009] An embodiment of a machine tool according to the present disclosure will be described in detail below 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) is 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 is referred to as the X-axis direction, and the direction perpendicular to the X-axis and Z-axis directions is 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 ), a control unit 22 (see FIG. 2 ), an imaging device 56, and a tool setter 57. 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 disclosed herein is not limited to a lathe, and various machine tools capable of being equipped with tools, 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 the workpiece W 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 unit 11 is fixed to the bed 16 and includes a headstock 23 and a rotation device 24. The headstock 23 can be fitted with a chuck mechanism 28 that holds (grabs) the workpiece W. The chuck mechanism 28 includes, as a mechanism for holding the workpiece W, a backing plate 31 for seating the workpiece W and a plurality of chuck jaws 32 that chuck the workpiece W seated on the backing plate 31. Note that the chuck mechanism 28 for holding the workpiece W is not limited to a mechanism using the chuck jaws 32, and other mechanisms such as a collet chuck can also be used. The chuck mechanism 28 includes an air cylinder or hydraulic cylinder as a drive source, and drives the drive source to open and close the chuck jaws 32 under the control of the control device 22 (see FIG. 2 ) of the machine tool 10. The headstock 23 holds the workpiece W with the chuck mechanism 28 at a position above the chip collection unit 17. The work spindle device 11 rotates the workpiece W held by the chuck mechanism 28 around a work spindle that is parallel to the Z-axis direction. Note that the work spindle device 11 is not limited to a configuration in which the headstock 23 is fixed, and may be configured such that the headstock 23 slides relative to the bed 16 in the Z-axis direction or the like.

[0013] A spindle (not shown) is rotatably supported by bearings inside the headstock 23. A chuck mechanism 28 is attached to one end of the spindle in the Z-axis direction (the turret device 12 side), 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 the control device 22 (see FIG. 2) of the machine tool 10. The timing belt 27 is stretched between 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 rotation speed and rotation position of the spindle based on rotation position information from a spindle encoder 29 (see FIG. 2) attached to the spindle servo motor 26 .

[0014] The turret device 12 includes a turret main body 41 and a turret 43. The turret main body 41 is box-shaped and is 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 multiple tools can be attached to it. Note that FIG. 1 shows the turret 43 with the tools removed. Also, a pusher 51 that pushes the workpiece W toward the workpiece spindle device 11 is attached to the turret 43 shown in FIG. 1.

[0015] FIG. 3 is an enlarged view of the turret 43 with a tool attached. Note that FIG. 3 also shows the chuck mechanism 28 (see FIG. 1) removed from the workpiece spindle device 11. As shown in FIG. 3, the turret 43 has a predetermined thickness in the Z-axis direction and, for example, a shape that is approximately a regular decagon when viewed from the Z-axis direction. The turret 43 has tool attachment portions 45 formed on ten sides and around the ten sides to which tools can be attached. The tool attachment portions 45 have a structure that allows tools, etc., to be attached to the surface of the turret 43 facing the workpiece spindle device 11 or to the outer peripheral surface of the turret 43. In the example shown in FIG. 3, a cutting tool 33 is attached as the tool. The cutting tool 33, a rotary tool such as an end mill or a drill, or a pusher 51 (see FIG. 1) is detachably attached to the tool attachment portion 45. In the following description, the cutting tool 33 and the rotary tool will be collectively referred to as the tool.

[0016] The turret 43 is provided with tool mounting portions 45 at predetermined rotational angle intervals in the rotation direction 34. In this embodiment, the turret 43 is provided with tool mounting portions 45 at 36-degree intervals, for a total of ten tool mounting portions 45. The tool mounting portions 45 include a first mounting portion 35 and a second mounting portion 36. The first mounting portion 35 has a flat surface formed on the outer peripheral surface of the turret 43, and is formed with a threaded portion 35A onto which a threaded member 38, such as a bolt or a screw, is threaded. The cutting tool 33 is attached to the first mounting portion 35 by a holder 37. The cutting tool 33 has a cutting edge 33A, a tip 33B, and a shank 33C. The shank 33C is fixed to the first mounting portion 35 by the holder 37. The holder 37 is fixed to a predetermined first mounting portion 35 (tool mounting portion 45) by a threaded member 38. The shank 33C of the cutting tool 33 attached to the first attachment portion 35 is a generally cylindrical or rectangular prism-shaped member that is long in the Z-axis direction, and when attached to the first attachment portion 35, is held by the holder 37 with its base end inserted into the holder 37. For example, the position of the shank 33C in the Z-axis direction is fixed by a bolt threaded into the holder 37. By loosening this bolt, the shank 33C becomes movable in the Z-axis direction relative to the holder 37. A tip 33B is detachably attached to a cutting edge 33A at the tip of the shank 33C. The tip 33B is fixed to the cutting edge 33A by a threaded member 39 such as a bolt or a screw.

[0017] The turret 43 can also mount the cutting tool 33 on the second mounting portion 36. The second mounting portion 36 has a groove formed along the radial direction of the turret 43. When mounting the cutting tool 33 on the second mounting portion 36, the shank 33C is attached to the second mounting portion 36 by the clamper 40. The clamper 40 is inserted into the groove of the second mounting portion 36 together with the base end of the shank 33C, and a threaded member 40A is screwed into the clamper 40. The clamper 40 is inserted into the groove of the second mounting portion 36 together with, for example, a wedge-shaped adjustment member (a so-called liner), and the clamping force for the shank 33C is changed depending on the amount of threading of the threaded member 40A. Therefore, by screwing the threaded member 40A into the groove, the shank 33C is fitted into the groove together with the clamper 40, and its position in the radial direction is fixed. The shank 33C of the cutting tool 33 attached to the second attachment portion 36 is a generally rectangular prism member that is elongated in the radial direction, and its base end is held by a clamper 40. A tip 33B is detachably attached to a cutting edge 33A at the tip of the shank 33C by a threaded member 39. Therefore, the cutting tool 33 is a so-called throw-away tool in which the tip 33B is detachably attached to the cutting edge 33A. When a tip that has reached the end of its life needs replacement, the user loosens the threaded member 39 of the cutting tool 33 and replaces the tip 33B.

[0018] The turret device 12 also includes, for example, a turret servo motor 47 (see FIG. 2 ) built into the turret main body 41. The control device 22 controls the rotation of the turret servo motor 47, causing the turret device 12 to rotate the turret 43 around a rotation axis parallel to the Z-axis direction. The turret device 12 rotates the turret 43 to change the tool (e.g., cutting tool 33) indexed to the work position, and performs machining on the workpiece W held by the workpiece spindle device 11 using the tool indexed to the work position. The turret servo motor 47 not only rotates the turret 43, but also functions as a drive source for rotating a rotary tool (e.g., an end mill) attached to the turret 43. The control device 22 controls, for example, the turret servo motor 47 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, separate from the rotation drive source. Furthermore, the turret 43 may be configured such that it is not possible to attach a rotary tool, and only a cutting tool can be attached.

[0019] 1 and 2, 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 parallel to the work spindle (the direction toward or away from the workpiece W). The X-axis slide device 13 is a device that moves the turret device 12 in the X-axis direction, i.e., the direction perpendicular to the Z-axis direction.

[0020] 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.

[0021] 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.

[0022] 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.

[0023] 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.

[0024] 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 orthogonal X, Y, and Z axes. 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 the method using an encoder. The control device 22 may also detect the slide position of the Z-axis slider 53 and the X-axis slider using other position detection devices, such as a linear scale.

[0025] 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 the workpiece W. The robot 15 also has, 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 W between, for example, an entrance device that loads the workpiece W, the workpiece spindle device 11, an exit device that unloads the workpiece W, an inspection device that inspects the shape of the workpiece W, a workpiece inversion device that inverts the workpiece W, and the like (all not shown).

[0026] 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, accepts operation instructions, and the like. The operation panel 20 is provided, for example, on the front of an equipment cover (not shown) of the machine tool 10. 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. Furthermore, the machine tool 10 may include a user interface other than the operation panel 20, for example, a portable user interface such as a teaching pendant. The machine tool 10 may accept operation input from a user via the portable user interface.

[0027] The imaging device 56 is a device that captures images of the turret 43, tools, workpiece W, chuck mechanism 28, etc. The imaging device 56 includes a camera 58, a movable section 59 (see FIG. 2), and a reflection suppression section 60 (see FIG. 2). The camera 58 has an imaging element such as a CCD or CMOS, captures images under the control of the control device 22, and outputs the captured image data to the control device 22. The captured image data may be two-dimensional or three-dimensional data. The control device 22 acquires the captured image data by the camera 58 as the attachment state of the tools on the turret 43 and the attachment state of the workpiece W on the work spindle device 11, and sets setting information based on the acquired image data (acquired state). Details of the setting information to be set will be described later. The camera 58 is also equipped with a light, and the light can be turned on and off and the light intensity can be changed under the control of the control device 22.

[0028] The movable unit 59 is a device that changes the imaging direction of the camera 58 and the distance between the camera 58 and the object. The object is, for example, a tool, the chuck jaws 32, the workpiece W, or the like, and is the object whose mounting state is to be imaged. As the movable unit 59, for example, a sliding mechanism that moves the camera 58 in directions parallel to the X, Y, and Z axes, and a rotation mechanism that rotates the camera 58 around the X, Y, and Z axes can be used. Therefore, as the movable unit 59, a device that can change the position and angle of the camera 58 and change the imaging position, imaging range, and imaging direction can be used in order to image a desired part of the object from a desired angle.

[0029] The reflection suppression unit 60 includes, for example, a polarizing filter and a rotation mechanism for rotating the polarizing filter. Reflections from lighting and metal covers can occur in the machining chamber of the machine tool 10, potentially resulting in halation. For example, a user checks the image data captured at each imaging position and pre-sets the rotation angle of the polarizing filter for each imaging position. The control device 22 associates the imaging position with the rotation angle of the polarizing filter at that imaging position and stores the association information in the storage device 72. When capturing an image at a given imaging position, the control device 22 reads from the storage device 72 the rotation angle of the polarizing filter pre-set for that imaging position and controls the rotation mechanism of the reflection suppression unit 60 according to the read rotation angle to adjust the polarizing filter to the set rotation angle. This improves the accuracy of detecting an object (such as a workpiece W) from the image data. The control device 22 may also process the image data and automatically adjust the rotation angle of the polarizing filter based on the results of the image processing. The control device 22 may also automatically adjust the intensity of the lighting, the shutter speed of the camera 58, and the like.

[0030] The imaging device 56 is an example of an acquisition device of the present disclosure. The imaging device 56 is not limited to the configuration described above. For example, the machine tool 10 may be provided with an imaging device 56 that images the workpiece W, in addition to the imaging device 56 that images the tool. That is, the machine tool 10 may be provided with multiple imaging devices 56. Furthermore, mist, water droplets, chips, etc. may scatter within the machining chamber. For this reason, the imaging device 56 may be provided with a wiper that removes scattered particles from the camera 58, a shutter that protects the camera 58 from scattered particles, etc.

[0031] Furthermore, the acquisition device that acquires the attachment state of the tool or workpiece is not limited to the camera 58 (imaging device 56). For example, the acquisition device of the present disclosure may be a sensor that can detect the shape of the tool or workpiece W. Specifically, it may be a 3D scanner using infrared rays or a laser, or a non-contact sensor that uses ultrasound or microwaves. Alternatively, the acquisition device may be a contact sensor that uses a limit switch, a differential transformer (coil), or the like. Furthermore, when a sensor is used as the acquisition device, the acquisition device may be provided with a movable part 59 that changes the detection direction of the sensor, as in the case of the camera 58. Furthermore, the acquisition device may be configured by combining the camera 58 and a sensor.

[0032] The tool setter 57 is a device that detects the cutting edge of the tool. The tool setter 57 includes, for example, an arm 57A, a cutting edge detection sensor 57B, and a sensor driver 57C (see FIG. 2). The arm 57A extends from below the headstock 23 toward the front of the headstock 23 within the machining chamber. The cutting edge detection sensor 57B is a contact-type sensor and is provided at the tip of the arm 57A. The cutting edge detection sensor 57B outputs a detection signal to the control device 22 in response to contact with the cutting edge of the tool (such as the cutting edge of the insert 33B). This allows the control device 22 to detect the amount of tool protrusion based on the XZ coordinates of the cutting edge at the time of contact detection. The sensor driver 57C is, for example, a rotation mechanism that rotates the arm 57A around its base end. The sensor driving unit 57C rotates the arm 57A to switch the position of the cutting edge detection sensor 57B between a detection position where it contacts the cutting edge of the tool and a retracted position where it is retracted from the tool or workpiece W.

[0033] 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.

[0034] The machine tool 10 also includes a plurality of drive circuits 67 connecting the control device 22 with each of the above-mentioned devices (workpiece spindle device 11, turret device 12, X-axis slide device 13, Z-axis slide device 14, robot 15, operation panel 20, imaging device 56, and tool setter 57). 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.

[0035] 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.

[0036] Furthermore, in this embodiment, the control device 22 stores reference data 104, a claw database 105, and procedure manual data 106, which will be described later, in the storage device 72. Note that the control device 22 may store the reference data 104, the claw database 105, and the procedure manual data 106 in a storage device other than the storage device 72. For example, the control device 22 may store the reference data 104, etc. in the storage device 82 of the PLC 66, an external storage device connected to the machine tool 10, or the like.

[0037] 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.

[0038] In addition to the NC program 73, the storage device 72 also stores a registration program 75 and various other data (not shown) necessary for machining. The registration program 75 sets setting information based on the acquired status acquired by the imaging device 56 and the tool setter 57. In the following description, the control device 22 may execute the registration program 75 with the CPU 71 to control each device, and this may be described simply by the device name. For example, "the control device 22 executes imaging by the imaging device 56" means "the control device 22 executes the registration program 75 with the CPU 71 and controls the imaging device 56 via the drive circuit 67, thereby executing imaging by the camera 58."

[0039] (Regarding Acquisition of Mounting Status and Setting of Setting Information) Methods for creating the NC program 73 include, for example, "a method of directly inputting codes such as G-code," "a method of inputting using an interactive function," and "a method of conversion using a CADCAM system." FIG. 4 shows the flow for creating the NC program 73. In any of the three creation methods described above, the NC program can be created by following the flow of steps (hereinafter simply referred to as S) 1 to S7 shown in FIG. 4. FIG. 4 also illustrates a comparison between a comparative example (left side of FIG. 4) in which setting information is manually input and this embodiment (right side of FIG. 4).

[0040] For example, the user operates the touch panel 61 of the machine tool 10 to register setting information for the base material before machining in S1. Next, the user registers information about the tools to be used in S2. Next, the user selects tools to be attached to each tool mounting portion 45 (holder number) of the turret 43 from the registered tools in S3 and associates the tools with the holder numbers. The holder number here refers to a number that identifies multiple tool mounting portions 45. Next, the user sets the order of the machining steps in S4. Next, the user sets the machining conditions for each step set in S4 in S5. Examples of machining conditions include the number of rotations per unit time (rotational speed) of the workpiece W, the tool to be used, and the feed rate. Next, the user sets dimensional values ​​(such as cutting diameter) in S6. This allows the user to register setting information for creating the NC program 73 and create the NC program 73. The user then runs a simulation in S7 to check whether interference between the workpiece W and the tool occurs in each step of the created NC program 73. The contents and processing order of each step S1 to S7 described above are merely examples.

[0041] In steps S1 and S2, there are many setting items (such as the size of the base material). Therefore, if the setting information is manually input as in the comparative example, the workload of the setting work increases. The workload increases whether the setting information is input as a G-code parameter, input using an interactive function, or imported as a parameter in a CADCAM system. Furthermore, because setting information for the workpiece W and the tool (such as the width and protrusion of the tool) affects machining accuracy, it must be input accurately, for example, to the decimal point. Therefore, manual input may result in input errors in numerical values ​​and the number of digits. Furthermore, a single machine tool 10 may use multiple types of tools to accommodate various types and quantities, and so-called setup changes, which change the type of workpiece W being produced, may occur frequently. Setting information must be input each time a setup change is performed, which may result in operational errors.

[0042] In contrast, as shown in function 1 of Fig. 4 , the control device 22 of this embodiment acquires the sizes of the workpiece W and the tool based on the image data (mounting state) of the imaging device 56, and automatically sets the above-mentioned setting information. Objects for which the mounting state is acquired include, for example, the workpiece W, chuck jaws 32, jigs, tools (cutting edge 33A, tip 33B, shank 33C, etc.), holder 37, etc. Therefore, in order to image these objects, the imaging device 56 is capable of changing the imaging direction and imaging position by means of a movable part 59. Note that the machine tool 10 may be configured to include multiple imaging devices 56, and multiple imaging devices 56 may be installed so as to be able to image each of the above-mentioned objects.

[0043] The control device 22 acquires setting information for the workpiece W based on the image data captured by the imaging device 56. Specifically, the control device 22 acquires, for example, the size (dimensions and length) of the base material before machining and the protrusion amount of the base material based on the image data, and sets the acquired values ​​as setting information for creating the NC program 73. The protrusion amount of the base material is, for example, the amount (length) by which the base material seated on the backing plate 31 of the chuck mechanism 28 protrudes from the chuck jaws 32.

[0044] For example, in response to a setup change, the user installs the chuck mechanism 28 (chuck jaws 32 and backing plate 31), workpiece, holder 37, cutting tool 33, etc. to be used in the next machining operation, and then operates the touch panel 61 to instruct the machine tool 10 to acquire and register setting information. When the control device 22 receives a user instruction via the touch panel 61, the CPU 71 executes the registration program 75 and controls the movable unit 59 to position the imaging device 56 at each imaging position. The control device 22 controls the movable unit 59 to adjust the imaging direction and the reflection suppression unit 60 to adjust the rotation angle of the polarizing filter to capture images of the chuck mechanism 28 and workpiece. The control device 22 (registration program 75) processes the image data to acquire the workpiece size and the workpiece protrusion amount. The control device 22 sets the acquired values ​​as setting information for creating the NC program 73 described above. This allows the registration of code variables for the NC program 73, parameters read from the code, and the like. The acquired setting information may be used not only for creating NC program 73 but also for setting values ​​(offset values, correction values, etc.) of machine tool 10. The same applies to setting information acquired from the attachment state of a tool, which will be described later.

[0045] Various methods can be used to acquire setting information such as the base material size from the imaging data. For example, the control device 22 may use image processing to detect the chuck jaws 32 and the outer edges (edges) of the base material from the imaging data, and detect the base material size, protrusion amount, etc. Alternatively, the control device 22 may detect the base material size, etc. based on the machine origin of the machine tool 10 and the slide position (imaging position) of the imaging device 56.

[0046] Similarly, the control device 22 acquires tool setting information based on the imaging data. Specifically, the control device 22 acquires, for example, the type of tool, the type of tip, the tool width, the tool protrusion amount, the nose radius, the cutting angle, and the cutting edge angle, and sets the acquired values ​​as setting information for creating the NC program 73. Alternatively, if a rotary tool is attached to the turret 43 as the tool, the control device 22 may acquire, for example, the type of drill, the drill diameter, the drill protrusion amount, and the drill runout amount. The control device 22 may also acquire, from the imaging data, the type of jig used in the chuck mechanism 28 or the turret 43. The protrusion amount of the tool (cutting tool 33 or rotary tool) is, for example, a value indicating the distance (deviation) from a reference position to the position of the cutting edge of each tool, and is the amount (setting value, offset value) by which the cutting edge position is adjusted in the NC program 73.

[0047] Various methods can be used to acquire setting information for tools and the like from imaging data. For example, as shown in FIG. 2, the storage device 72 stores reference data 104 that serves as a reference for determining the type of tool and tip 33B. As shown in FIG. 3, for example, the shank 33C and cutting edge 33A attached to the turret 43 each have different structures depending on the machining position (outer diameter, inner diameter), shape, purpose, etc. For this reason, the reference data 104 stores shape data for the tool (cutting edge 33A, tip 33B, shank 33C), etc. This shape data may be two-dimensional data or three-dimensional data. Furthermore, the shape data may be image data of a tool captured in advance, or CAD data created by a tool manufacturer. Furthermore, the reference data 104 may not be separate data from the registration program 75, but may be part of the data for the registration program 75. The control device 22 then compares the overall shape of the tool and the shape of a portion of the tip 33B, etc., detected from the image data through image processing with the shape data included in the reference data 104, and detects the type of tool, the type of tip, etc. by finding matching shape data. The control device 22 may also obtain other setting information such as the width of the tool and the diameter of the rotary tool (e.g., a drill) through image processing of the image data. The control device 22 may also obtain the shape and angle of the tip 33B, such as the nose R, cutting angle, and cutting edge angle, through image processing of the image data.

[0048] As shown in FIG. 3 , each of the tips 33B is held at a different holding position relative to the turret 43 in the Z-axis direction and the X-axis direction. Therefore, even if the turret 43 is slid to the same position in the Z-axis direction and the X-axis direction and each of the tips 33B is indexed to the same rotational position during tool indexing, the cutting edges of the tips 33B will be positioned at different positions (XZ coordinates). For example, the control device 22 acquires the length L from the reference position in the Z-axis direction to the cutting edge of the tip 33B from the image data. Based on the acquired length L, the control device 22 sets the amount of adjustment (protrusion amount) for the cutting edge position in the NC program 73. This allows the cutting edges of the tool indexed to the work position to be positioned at the same position in the Z-axis direction. Similarly, the cutting edges of the tool indexed to the work position can also be positioned at the same position in the X-axis direction by acquiring and setting the adjustment amount from the image data.

[0049] The above-described method of acquiring the setting information and the content of the acquired setting information are merely examples. For example, the control device 22 may acquire the type of holder 37 that attaches the cutting tool 33 to the tool mounting portion 45 from the imaging data. The control device 22 may also automatically associate the tool type with each tool mounting portion 45 (holder number) of the turret 43 in S3 shown in FIG. 4 . As described above, the control device 22 can acquire the tool type based on the imaging data. The control device 22 associates the acquired tool type with the holder number of the tool mounting portion 45 identified at the identified position. This allows automatic detection and setting of the type of tool actually attached to each of the multiple tool mounting portions 45.

[0050] The control device 22 may also detect the wear amount of the tool (tip 33B) based on the imaging data and use the data as a correction value. Furthermore, when a sensor (e.g., a 3D scanner) is used as the acquisition device, the control device 22 may use the sensor to acquire (sense) the attachment status of the workpiece W and tool, and detect and set the setting information (type, position, shape, etc.) based on the acquired status. The control device 22 may also perform a correctness check between the information acquired by the imaging device 56 and the information input by the user. For example, the control device 22 may determine whether the base material size input by the user matches the base material size acquired from the imaging data. If they match, the control device 22 may set the user's input value as the setting information, and if they do not match, it may notify an error. This reduces input errors and prompts the user to confirm and review any incorrect input.

[0051] As described above, the imaging device 56 is capable of capturing an image of the attached state of the workpiece W in the work spindle device 11. Based on the image data acquired by the imaging device 56, the control device 22 detects the size of the workpiece W (base material) and the protrusion amount of the workpiece W in a state where it is held by the chuck mechanism 28, and sets this as setting information for the NC program 73.

[0052] The imaging device 56 is also capable of capturing an image of the attachment state of the tool on the turret 43. The control device 22 detects the type of tool, etc. based on the imaging data acquired by the imaging device 56, and sets this as setting information for the NC program 73. This reduces the effort required for the user to manually input setting information for the workpiece W and the tool, and makes it possible to prevent input errors.

[0053] As described above, the control device 22 detects the type of tool, the protrusion amount, and the like based on the image data. However, it is preferable to detect and set the protrusion amount information to a fine unit such as a few tenths of a millimeter. However, there is a risk that the accuracy of detecting the protrusion amount from the image data will decrease due to the influence of coolant and cutting chips. Therefore, the control device 22 may use the tool setter 57 to perform detection for setting information that requires high accuracy, such as the protrusion amount.

[0054] For example, the control device 22 may acquire the tool type based on the imaging data and acquire the protrusion amount using the tool setter 57. The control device 22 captures an image using the imaging device 56 and detects the tool type by matching the imaging data with the reference data 104. Next, the control device 22 controls the sensor drive unit 57C of the tool setter 57 to position the cutting edge detection sensor 57B at a detection position where the sensor 57B contacts the cutting edge of the tool, and the tool setter 57 detects the position of the cutting edge of the tool. The control device 22 detects the position of the cutting edge based on the XZ coordinates of the turret 43 at the time when a detection signal indicating contact with the cutting edge is input from the tool setter 57, and sets the tool protrusion amount based on the detected cutting edge position. The control device 22 sets the set protrusion amount as setting information in the NC program 73. This allows the imaging device 56 and the tool setter 57 to be used together to set the setting information. When the recognition rate of the imaging device 56 is reduced due to the influence of coolant or cutting chips, the contact-type tool setter 57 can be used together to improve the accuracy of the setting information. The information detected by the tool setter 57 is not limited to the protrusion amount, but may be other information such as the width of the tool.

[0055] (S7: Building a Simulation Environment) The user also executes the simulation in S7 to check for interference within the machine. For example, when executing a simulation using a CADCAM system, in order to build a simulation environment, it is necessary to register the same chuck jaws 32, tools, workpiece W, etc. as those of the actual machine in the CADCAM system. If a registration error causes a difference between the actual environment and the simulation environment, there is a risk that interference will occur in the actual environment even though there was no interference in the simulation environment.

[0056] Therefore, as shown in Function 2 in FIG. 4 , the control device 22 of this embodiment has a function of outputting data usable in a simulation environment based on imaging data captured by the imaging device 56. Specifically, as described above, the imaging device 56 is capable of capturing images of both the attachment state of the workpiece W in the work spindle device 11 and the attachment state of the tool in the turret 43. The work spindle device 11 can be fitted with chuck jaws 32 for chucking the workpiece W, and the chuck jaws 32 can be changed depending on the type of workpiece W. The control device 22 outputs CAD data of the shape of the workpiece W, the shape of the chuck jaws 32, and the shape of the tool based on the imaging data captured by the imaging device 56. For example, if the imaging device 56 is equipped with a 3D camera, the control device 22 may generate and output 3D CAD data from a 3D image of the workpiece W. This allows a user to reduce the burden of registration work in building a simulation environment by having a PC or the like of a CAD CAM system read and register the CAD data output from the control device 22. Furthermore, by using CAD data automatically acquired from the imaging data, it is possible to suppress the occurrence of registration errors and eliminate differences between the actual environment and the simulation environment. Furthermore, the control device 22 outputs the shape of the chuck jaws 32 and the shape of the tool as 3D CAD data, as well as the shape of the workpiece W. Note that the control device 22 does not have to output CAD data for the three shapes, i.e., the shape of the workpiece W, the shape of the chuck jaws 32, and the shape of the tool. The control device 22 may be configured to be able to output CAD data for at least one of the three shapes.

[0057] The data format output by the control device 22 can be any format that can be read in the environment of a system that executes a simulation, such as a CAD CAM system. For example, the control device 22 may capture an image of the workpiece W using the 2D camera 58, detect edge point cloud data from the two-dimensional image data, and generate 2D or 3D CAD data. The control device 22 may not necessarily generate CAD data. For example, CAD data for each type of chuck jaw 32 or tool may be stored in advance in the storage device 72. The CAD data for the chuck jaws 32 may also be stored in association with identification information indicating the type of the chuck jaws 32. The control device 22 then detects the type of the actually attached chuck jaws 32 based on the image data captured by the imaging device 56. The control device 22 may find and output CAD data of a type that matches the detected type of chuck jaws 32 from the storage device 72.

[0058] Furthermore, the method of transmitting data from the machine tool 10 to the CADCAM system is not particularly limited. For example, if the machine tool 10 and the CADCAM system are connected via a network, the control device 22 may transmit the CAD data to the CADCAM system via the network. If the machine tool 10 and the CADCAM system are not connected, the control device 22 may output the CAD data to an external recording medium such as a USB memory. The control device 22 may also output other information required for the simulation (such as an NC program 73) along with the CAD data. This NC program 73 may be created by inputting code or using an interactive function based on the setting information described above.

[0059] As shown in function 2 of FIG. 4 , the above-described CAD data output can register (import) the following information into the simulation environment, in addition to the shapes of the workpiece W and tools. For example, by outputting CAD data for the chuck jaws 32, the CADCAM system can register the type and shape of the chuck jaws 32 from the CAD data. Furthermore, by outputting CAD data for the workpiece W and the chuck mechanism 28, the workpiece size, the protrusion amount of the workpiece W, the type of jig used in the chuck mechanism 28, and the like can be registered. Furthermore, by outputting CAD data for the turret 43 and tools, the type of tool, the type of holder 37, and the holder number of each tool can be registered. It is not necessary to detect and register this information on the CADCAM system. For example, the control device 22 can output the information on the type of the chuck mechanism 28 as text information separately from the CAD data, and have the CADCAM system read the type of the chuck mechanism 28 from the text information.

[0060] Furthermore, the simulation may be performed by a device other than a CADCAM system. For example, the control device 22 may determine interference between components based on the shapes and sizes of the chuck jaws 32, workpiece W, and tools acquired from image data, and the positions of the components in each process. In other words, the simulation may be performed by the machine tool 10. Therefore, the device that performs the simulation and the simulation method may be changed as appropriate.

[0061] (Regarding the jaw database 105) Next, the jaw database 105 will be described. For example, different chuck jaws 32 may be used depending on the diameter of the workpiece W, which differs only by a few millimeters. In extreme cases, the type of chuck jaws 32 differs depending on the type of workpiece W. This requires the user to manage a large number of chuck jaws 32 (small jaws). As described above, the control device 22 can detect the shape and type of the workpiece W and the chuck jaws 32 based on the imaging data. Therefore, the control device 22 detects the shape of the workpiece W and the type of the chuck jaws 32 based on the imaging data, and stores the detected shape of the workpiece W and the type of the chuck jaws 32 in association with each other in the jaw database 105.

[0062] Specifically, the control device 22 detects the shape (outer diameter, axial length, irregularities, holes, etc.) of the base material (workpiece W) before machining from the imaging data. The control device 22 also detects the shape of the chuck jaws 32 from the imaging data and determines the type of chuck jaws 32 based on the detected shape and the reference data 104. The control device 22 then associates the shape of the base material with the information on the type of chuck jaws 32 and registers them in the jaw database 105. The timing of registration is not particularly limited. For example, the control device 22 may execute registration upon receiving an instruction from a user via the touch panel 61. Alternatively, the control device 22 may execute detection and registration upon completion of machining of the planned number of workpieces W. This allows information on the chuck jaws 32 and workpieces W used in past machining to be associated and stored in the jaw database 105. The used chuck jaws 32 and workpieces W can be confirmed later. The control device 22 may register the shape of the workpiece W after machining, rather than the base material before machining, in the jaw database 105 in association with the type of chuck jaws 32.

[0063] Furthermore, when machining is performed next time or later, the jaw database 105 can be used to determine whether the type of workpiece W to be used and the type of chuck jaws 32 are an appropriate combination. For example, the user attaches the chuck mechanism 28 (chuck jaws 32) to be used after the setup change to the workpiece spindle device 11, and while the base material is chucked by the chuck jaws 32, executes an instruction on the touch panel 61 to confirm whether the combination is correct. Upon receiving the instruction on the touch panel 61 (an example of an operation input in the present disclosure), the control device 22 detects the shape of the base material and the type of chuck jaws 32 based on the image data captured by the imaging device 56 and determines whether the detected combination is registered in the jaw database 105. For example, if the detected type of chuck jaws 32 and the shape of the base material associated in the jaw database 105 match the shape detected from the image data, the control device 22 displays on the touch panel 61 that the combination is correct. On the other hand, if the detected type of chuck jaws 32 and the shape of the base material associated in the jaw database 105 do not match the shape detected from the imaging data, the control device 22 displays an error on the touch panel 61. This allows the user to confirm whether the types of base material and chuck jaws 32 are correct if an incorrect combination has been prepared. This prevents the user from starting machining with an incorrect combination of base material and chuck jaws 32. It also reduces the burden on the user of managing the chuck jaws 32. Furthermore, if the detected type of chuck jaws 32 or the shape of the base material is not registered in the jaw database 105, the control device 22 may display a message on the touch panel 61 indicating that they are not registered.

[0064] The data stored in the jaw database 105 is not limited to the above-described data. For example, instead of the shape of the base material, the protrusion amount of the base material may be registered in the jaw database 105. The control device 22 may detect the protrusion amount between the chuck jaws 32 prepared by the user and the base material from the image data and compare it with the protrusion amount in the jaw database 105. That is, various data that can determine whether the combination of the workpiece W and the chuck jaws 32 is correct can be used as the data to be registered in the jaw database 105. The control device 22 may also receive information on the storage location of the chuck jaws 32 from the user and register the received storage location information in the jaw database 105 in association with the chuck jaws 32. In this way, the control device 22 can notify the appropriate storage location of the chuck jaws 32 via the touch panel 61 or the like based on the shape of the base material detected from the image data and the jaw database 105.

[0065] (Regarding the Procedure Manual Data 106) Next, the procedure manual data 106 will be described. The control device 22 of this embodiment has the function of creating a procedure manual and registering the procedure manual in the procedure manual data 106. A procedure manual is a record of information related to past machining of a workpiece W, and records the state of the machine tool 10 when the target workpiece W was machined. FIG. 5 shows an example of the procedure manual 111. As shown in FIG. 5, the procedure manual 111 records, for example, information such as the supplier, product number, product name, and name of the NC program 73 of the workpiece W to be machined at the top. In addition, the procedure manual 111 records, below the supplier, the holder number, the tool number T which is the tool identification number, the name of the tool used, the number of tool blades, the nose radius, the blade length, and the protrusion amount. This information is recorded line by line. Each line corresponds to one of the machining processes. Therefore, information such as the holder number is associated with each process and recorded line by line. The procedure manual 111 also records supplementary information such as information on how to attach the workpiece W and information on any defects that have occurred.

[0066] Typically, a user writes the above information in a paper procedure manual and stores it as a paper document. When processing the same workpiece W, the user retrieves the procedure manual from its storage location and refers to it to perform setup changes. However, because it is handwritten, there is a risk that errors or omissions may occur, making it impossible to perform appropriate setup changes during the next processing. Therefore, the control device 22 creates an electronic procedure manual 111 based on setting information detected from the image data captured by the imaging device 56, and executes a process of registering the created procedure manual 111 in the procedure manual data 106.

[0067] For example, the control device 22 creates the procedure manual 111 when the machining of the planned number of workpieces W is completed. The control device 22 detects the type of tool and the tool protrusion amount based on the image data from the imaging device 56. The control device 22 also detects the order of the processes for machining the workpiece W, the tool number T of the tool used in each process, and the holder number of the tool used based on the NC program 73 used for the machining. The control device 22 associates each piece of detected information to create the procedure manual 111. For example, the storage device 72 stores the manufacturer's model number as information on the type of tool. The tool type information is also associated with the tool number T corresponding to that tool. Based on this information, the control device 22 enters the tool number T and tool used columns in the procedure manual 111.

[0068] The control device 22 displays the format of the procedure manual 111 shown in FIG. 5 on the touch panel 61 and inputs the detected information into each field. This allows the holder number, tool number T, tool type, and protrusion amount to be automatically input. This reduces the burden on the user in creating the procedure manual 111 and reduces the occurrence of writing errors. The control device 22 may also automatically input information that can be detected from the image data captured by the imaging device 56, such as the number of tool blades, nose radius, and blade length, in addition to the protrusion amount, into the procedure manual 111. The control device 22 may also input the program name of the NC program 73 used for machining into the program name field of the procedure manual 111. The control device 22 also receives information such as the supplier, product number, and installation method on the touch panel 61, inputs the information into the procedure manual 111, and registers the completed procedure manual 111 in the procedure manual data 106. The control device 22 may also accept corrections to automatically input items (such as the holder number) via the touch panel 61. The control device 22 may also execute printing of the created procedure manual 111. The control device 22 may also accept information on the supplier and product number via the touch panel 61, and search for and display the procedure manual 111 from the procedure manual data 106 based on the accepted information. This allows the user to easily search for and reuse the required procedure manual 111.

[0069] The image data captured by the imaging device 56 may be used for purposes other than setting the setting information described above. For example, the control device 22 may display the image data captured by the imaging device 56 on the touch panel 61 in real time. The user may want to view the inside of the machining chamber to check for interference, such as during the first machining operation after a setup change. However, depending on the position and size of the viewing window, the tool or chuck jaws 32 may be obscured by coolant or the like. Therefore, the control device 22 may capture an image of the inside of the machining chamber with the imaging device 56 and display the captured image on the touch panel 61. This allows the user to understand the condition inside the machining chamber from the image.

[0070] The correspondence between the terms used in this embodiment and those described in the claims will be explained below. In the above embodiment, the work spindle device 11 is an example of a work holding device. The turret device 12 is an example of a machining device. The control device 22 is an example of a processing device. The cutting tool 33 is an example of a tool. The imaging device 56 is an example of an acquisition device. The touch panel 61 is an example of a user interface. The NC program 73 is an example of a machining program.

[0071] As described above, the present embodiment provides the following advantages. The control device 22, which is one aspect of the present application, sets the setting information required to create the NC program 73 that controls the machining operations, based on the image data captured by the image capture device 56. This allows setting information such as the size of the base material, the protrusion amount of the base material, the type of tool, and the protrusion amount of the tool, to be set based on the image data. As a result, the setting information required to create the NC program 73 can be automatically acquired and set.

[0072] 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 configuration of the machine tool 10 in the above-described embodiments is merely an example. For example, the machine tool 10 may be configured to include a 3D scanner or a touch sensor instead of the imaging device 56. The machine tool 10 may also be configured without the tool setter 57. The control device 22 may also be configured not to output CAD data based on imaging data. The machine tool 10 is not limited to a turret-type lathe, and may also be, for example, a machining center. In this case, the machine tool 10 may use the imaging device 56 to capture images of tools attached to the tool head or stored in the ATC to detect the type and protrusion amount of the tool. The content and order of the steps for creating the NC program 73 shown in FIG. 4 are merely an example and can be modified as appropriate. Furthermore, in the above embodiment, the imaging device 56 is configured to be able to acquire both the mounting state of the workpiece W in the work spindle device 11 and the mounting state of the tools in the turret device 12, but this is not limited to this. The imaging device 56 may be configured to be able to image only one of the two mounting states, i.e., only one of the two mounting states. In this case, the control device 22 may be configured to be able to set only the setting information related to the workpiece W (base material) or the setting information related to the tools. Furthermore, the machining program disclosed herein is not limited to the NC program 73, and may be another machining program capable of controlling the machine tool 10.

[0073] The contents of the present disclosure are not limited to the dependency relationships described in the claims. For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1" in claim 4 to "the machine tool according to any one of claims 1 to 3." For example, this specification also discloses the technical idea of ​​changing "the machine tool according to claim 1 or claim 2" in claim 5 to "the machine tool according to any one of claims 1 to 4." 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 1 or claim 2" in claim 7 to "the machine tool according to any one of claims 1 to 6."

[0074] 10 Machine tool, 11 Work spindle device (work holding device), 12 Turret device (processing device), 22 Control device (processing device), 32 Chuck jaws, 33 Cutting tool (tool), 56 Imaging device (acquisition device), 57 Tool setter, 61 Touch panel (user interface), 73 NC program (processing program), 105 Jaw database, 111 Procedure manual, W Work.

Claims

1. A machine tool comprising: a work holding device for holding a work; a machining device capable of attaching a tool to perform machining on the work held by the work holding device; an acquisition device capable of acquiring at least one of an attachment state of the work in the work holding device and an attachment state of the tool in the machining device; and a processing device that sets setting information required to create a machining program that controls machining operations, based on the attachment states acquired by the acquisition device.

2. A machine tool as described in claim 1, wherein the acquisition device is capable of acquiring the mounting state of the tool in the processing device, and the processing device detects the type of the tool based on the mounting state acquired by the acquisition device, and sets information on the detected type of the tool as the setting information.

3. The machine tool according to claim 2, further comprising a tool setter that contacts a cutting edge of the tool and detects the position of the cutting edge, wherein the acquisition device is an imaging device, and the processing device detects the amount of protrusion of the tool based on detection information from the tool setter, and sets information on the detected amount of protrusion of the tool as the setting information.

4. A machine tool as described in claim 1, wherein the acquisition device is capable of acquiring the mounting state of the workpiece in the work holding device, and the processing device detects the size of the workpiece and the protrusion amount of the workpiece while held by the work holding device based on the mounting state acquired by the acquisition device, and sets the detected information as the setting information.

5. A machine tool as described in claim 1 or claim 2, wherein the acquisition device is an imaging device capable of imaging both the mounting state of the workpiece in the work holding device and the mounting state of the tool in the processing device, the work holding device is capable of being fitted with chuck jaws for chucking the workpiece and the chuck jaws are changeable depending on the type of the workpiece, and the processing device outputs CAD data indicating at least one of the shape of the workpiece, the shape of the chuck jaws and the shape of the tool based on the imaging data captured by the imaging device.

6. A machine tool as described in claim 1 or claim 2, wherein the acquisition device is capable of acquiring the mounting state of the tool in the machining device, and the processing device creates a procedure manual that describes the type of tool and the protrusion amount of the tool detected based on the mounting state acquired by the acquisition device in association with the order of processes for machining the workpiece.

7. A machine tool as described in claim 1 or claim 2, wherein the acquisition device is capable of acquiring both the mounting state of the workpiece in the work holding device and the mounting state of the tool in the processing device, the work holding device is capable of attaching chuck jaws for chucking the workpiece and is capable of changing the chuck jaws depending on the type of the workpiece, and the processing device detects the shape of the workpiece and the type of the chuck jaws based on the mounting state acquired by the acquisition device, and associates the detected shape of the workpiece with the type of the chuck jaws and stores them in a jaw database.

8. A machine tool as described in claim 7, further comprising a user interface, wherein the processing device acquires both the mounting state of the workpiece in the work holding device and the mounting state of the tool in the processing device using the acquisition device, and determines, based on an operation input to the user interface, whether or not the combination of the shape of the workpiece detected from the acquired mounting state and the type of the chuck jaws is registered in the jaw database, and notifies the result of the determination via the user interface.