Program and machine tool

The program and machine tool configuration addresses misalignment issues by measuring and correcting deviations in the tool spindle's alignment, enhancing machining accuracy through precise center positioning.

JP2024146992APending Publication Date: 2024-10-16TSUGAMI CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023059737
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-03
Publication Date
2024-10-16

AI Technical Summary

Technical Problem

The alignment of the tool spindle with respect to the B-axis rotation mechanism is prone to misalignment due to assembly errors, leading to decreased machining accuracy in existing machine tools.

Method used

A program and machine tool configuration that includes a tool spindle unit, a mounting part, and a rotation mechanism, equipped with a deviation amount acquisition function to measure and correct the misalignment between the rotation center and the mounting part, and a coordinate shift function to align the center positions, using a control unit to execute these functions.

Benefits of technology

This configuration enhances machining accuracy by correcting misalignments caused by assembly errors, ensuring precise alignment of the tool spindle, thereby improving processing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146992000001_ABST
    Figure 2024146992000001_ABST
Patent Text Reader

Abstract

To provide a program and a machine tool that are able to prevent deterioration in machining accuracy.SOLUTION: A machine tool includes: a tool spindle unit 50 having a mount portion 52 and to which a tool 70 is attached; and a rotation mechanism having a mounting portion 47a on which the mount portion 52 is mounted, and configured to rotate together with the tool spindle unit 50 while the mount portion 52 is kept mounted on the mounting portion 47a. A program is for causing a control unit to function to control the machine tool. The program causes the control unit to realize a deviation amount acquisition function of acquiring the amounts of deviation dx, dz between a rotation center JB of the rotation mechanism and a center position JT of the mount portion 52, in a direction intersecting the rotation center JB of the rotation mechanism, and a coordinate shift function of shifting coordinates of the center position JT of the mount portion 52 to coordinates of the rotation center JB of the rotation mechanism 45, based on the acquired amounts of deviation dx, dz.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a program and a machine tool. [Background technology]

[0002] The machine tool described in Patent Document 1 includes a tool spindle (tool spindle unit) that rotatably supports a tool, and a B-axis rotation mechanism that rotates the tool spindle in the B-axis direction. [Prior art documents] [Patent documents]

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

[0004] In the configuration described in Patent Document 1, when the tool spindle is attached to the B-axis rotation mechanism, assembly errors, etc. may cause the position of the tool spindle to shift relative to the center of rotation of the B-axis rotation mechanism, which may result in reduced machining accuracy.

[0005] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide a program and a machine tool that can suppress a decrease in machining accuracy. [Means for solving the problem]

[0006] In order to achieve the above-mentioned object, a program according to a first aspect of the present invention is a program for causing a control unit to execute control of a machine tool including a tool spindle unit having an attachment portion and on which a tool is attached, and a rotation mechanism having a mounting portion to which the attachment portion is attached and rotating together with the tool spindle unit with the attachment portion attached to the mounting portion, the program causing the control unit to realize an offset amount acquisition function for acquiring an amount of offset between the center of rotation of the rotation mechanism and a central position of the attachment portion in a direction intersecting the rotation center of the rotation mechanism, and a coordinate shifting function for shifting the coordinates of the central position of the attachment portion to the coordinates of the rotation center of the rotation mechanism based on the acquired offset amount.

[0007] In order to achieve the above-mentioned object, a machine tool according to a second aspect of the present invention includes a memory unit that stores the program, a control unit that controls operation of the machine tool by executing the program, the tool spindle unit, and the rotation mechanism. Effect of the Invention

[0008] According to the present invention, it is possible to suppress a decrease in processing accuracy. [Brief description of the drawings]

[0009] [Figure 1] 1 is a front view of a machine tool according to an embodiment of the present invention; [Diagram 2] 1 is a plan view of a machine tool according to an embodiment of the present invention; [Diagram 3] 1 is a side view of a machine tool according to an embodiment of the present invention; [Figure 4] FIG. 2 is a side view of a tool spindle unit, a tool spindle moving mechanism, and a rotation mechanism according to an embodiment of the present invention. [Diagram 5] FIG. 1 is a front view of a tool spindle unit according to an embodiment of the present invention. [Figure 6] FIG. 1A is a front view of a rotating shaft portion according to one embodiment of the present invention, FIG. 1B is a cross-sectional view of the rotating shaft portion and a drive portion, FIG. 1C is a front view of a tool spindle unit, and FIG. 1D is a side view of the tool spindle unit. [Figure 7] 1A and 1B are side views of a tool spindle unit and a rotation shaft portion according to an embodiment of the present invention, and FIG. 1C is a diagram showing the deviation of the rotation center of the rotation mechanism from the central position of the mounting portion when viewed from the Y-axis direction. [Figure 8] 1A to 1D are views showing a state in which a dial gauge is placed against an inspection tool attached to a tool spindle unit according to one embodiment of the present invention, and FIG. 1E is a side view of the inspection tool. [Figure 9] 1 is a diagram showing a mechanical coordinate system for determining the amount of deviation in the X-axis direction between the center of rotation of the rotation mechanism and the center position of a mounting part in one embodiment of the present invention. FIG. [Figure 10] 1 is a diagram showing a mechanical coordinate system for determining the amount of deviation in the Z-axis direction between the center of rotation of a rotation mechanism and the center position of a mounting part in an embodiment of the present invention. FIG. [Figure 11] FIG. 2 is a diagram showing a tool spindle unit, a first spindle unit, and a tool setter as viewed from the front side of the machine tool according to one embodiment of the present invention. [Figure 12] FIG. 1A is a plan view of a tool setter according to an embodiment of the present invention, and FIG. 1B is a view of the tool setter according to an embodiment of the present invention as viewed from its front end side. [Figure 13] 1A is a flowchart of a method for deriving a deviation amount according to one embodiment of the present invention, and FIG. 1B is a flowchart of a coordinate shift process according to one embodiment of the present invention. [Figure 14] FIG. 11 is a front view of a tool spindle unit illustrating coordinate shifting according to an embodiment of the present invention. [Figure 15] FIG. 1A is a front view of a tool spindle unit when an offset amount is obtained without shifting the coordinates in accordance with a comparative technology, and FIG. 1B is a front view of a tool spindle unit when an offset amount is obtained by shifting the coordinates in accordance with one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, a program and a machine tool according to an embodiment of the present invention will be described with reference to the drawings. As shown in Figures 1 to 3, machine tool 1 includes a bed S which is a base for the entire machine tool 1, a first spindle unit 10 having a first spindle 11, a second spindle unit 20 having a second spindle 21, a second spindle moving mechanism 25, a tool spindle unit 50, a rotation mechanism 45, a tool spindle moving mechanism 42, a tool magazine 60, a tool changer 65, a tool transport device 67, a tool setter 80, a control unit 300, a memory unit 302, and an operation unit 310. In the following, the direction parallel to the rotation axis of first main shaft 11 is defined as the Z-axis direction, the height direction perpendicular to the Z-axis direction is defined as the X-axis direction, and the depth direction perpendicular to the X-axis and Z-axis directions is defined as the Y-axis direction.

[0011] The first spindle unit 10 grips the workpiece W and rotates it in a direction about the central axis of the workpiece W as the rotation axis. Specifically, the first spindle unit 10 includes a first spindle 11, a first spindle stock 12 that rotatably supports the first spindle 11, and a first workpiece gripping portion 11a that rotates together with the first spindle 11 and grips an end of the workpiece W.

[0012] The second spindle unit 20 is provided at a position facing the first spindle unit 10 in the Z-axis direction, and is configured to be able to transfer the workpiece W between the first spindle unit 10 and the second spindle unit 20. The second spindle unit 20 grips the workpiece W and rotates it in a direction about the central axis of the workpiece W as the rotation axis. The second spindle unit 20 includes a second spindle 21, a second spindle stock 22 that rotatably supports the second spindle 21, and a second workpiece gripping portion 21a that rotates together with the second spindle 21 and grips an end of the workpiece W.

[0013] The second spindle moving mechanism 25 moves the second spindle unit 20 in the Z-axis direction. The tool spindle moving mechanism 42 includes an X moving mechanism 42X that moves the tool spindle unit 50 in the X-axis direction, a Y moving mechanism 42Y that moves the tool spindle unit 50 in the Y-axis direction, and a Z moving mechanism 42Z that moves the tool spindle unit 50 in the Z-axis direction.

[0014] Each of the movement mechanisms 25, 42Y, 42X, 42Z has a motor, a ball screw, and a nut. The rotational force of the motor is converted into linear motion by the ball screw and the nut, so that the corresponding second spindle unit 20 or tool spindle unit 50 moves linearly.

[0015] The tool magazine 60 stores a plurality of tools 70 of different shapes and types, and exchanges the tools 70 with the tool spindle unit 50 via a tool changer 65. The tool magazine 60 is located above the second spindle stock 22 when it is farthest from the first spindle unit 10 in the Z-axis direction. The tool magazine 60 includes a plurality of tool support portions 61 and a drive portion 62 . The multiple tool support parts 61 are substantially annular and supported rotatably about a rotation axis Az extending in the X-axis direction. The multiple tool support parts 61, two in this example, are aligned on the rotation axis Az. Each tool support part 61 supports multiple tools 70 on its outer periphery. The drive part 62 has a motor and rotates the tool support part 61 about the rotation axis Az. The tool transfer device 67 is configured to be movable in the X-axis direction and the Z-axis direction, and transfers the tool 70 between the tool support part 61 and the tool exchange device 65. The tool changer 65 exchanges the tool 70 transported by the tool transporter 67 with the tool 70 attached to the tool spindle unit 50 .

[0016] The tool setter 80 is attached to the upper surface of the first headstock 12. As shown in Fig. 11, the tool setter 80 includes a touch sensor 81, a sensor support part 83 that supports the touch sensor 81, and a drive part 82. The sensor support part 83 has a rectangular column shape that is long in the Z-axis direction. The touch sensor 81 is located on the front end surface of the sensor support portion 83, and detects contact with the cutting edge of the tool 70 attached to the tool spindle unit 50. The touch sensor 81 is located directly above the rotation axis of the first spindle 11. 12(A) and (B), the touch sensor 81 includes four detection surfaces 81a to 81d formed on each side of the touch sensor 81, and one detection surface 81e formed on the front surface of the touch sensor 81. The detection surfaces 81a and 81c are provided for detecting the position of the cutting edge in the X-axis direction. The detection surfaces 81b and 81d are provided for detecting the position of the cutting edge in the Y-axis direction. The detection surface 81e is provided for detecting the position of the cutting edge in the Z-axis direction. The touch sensor 81 detects that the cutting edge of the tool 70 has come into contact with the detection surfaces 81a to 81e, and outputs the detection result to the control unit 300.

[0017] The drive unit 82 is attached to the upper surface of the first headstock 12, and is made of a cylinder such as a hydraulic cylinder or an air cylinder, and moves the sensor support unit 83 back and forth in the Z-axis direction under the control of the control unit 300. Under the control of the control unit 300, the drive unit 82 moves the touch sensor 81 forward when the touch sensor 81 is in use, and moves the touch sensor 81 backward when the touch sensor 81 is not in use.

[0018] As shown in FIG. 4, FIG. 5, and FIG. 6, the rotation mechanism 45 rotates the tool spindle unit 50 to which the tool 70 is attached in the B-axis direction. The B-axis direction is the rotation direction centered on the rotation center JB of the rotation mechanism 45 extending in the Y-axis direction. The rotation angle range Ar of the tool spindle unit 50 is set to 210° centered on the rotation center JB. When the cutting edge of the tool 70 faces downward, the axial direction of the tool 70 bisects the rotation angle range Ar. The rotation angle of the tool spindle unit 50 is set to 0° (zero degrees) when the cutting edge of the tool 70 faces the first spindle 11 side (left side in FIG. 5). The tool spindle unit 50 can rotate within an angle range of −15° to 195°, with the counterclockwise direction being the positive direction when the tool spindle unit 50 is viewed from the front. By changing the rotation angle of the tool spindle unit 50, the direction of the cutting edge of the tool 70 relative to the workpiece W can be changed, enabling a variety of machining operations.

[0019] The rotation mechanism 45 includes a drive unit 46 , a rotation shaft unit 47 , a bearing 48 , and a housing unit 49 . The rotating shaft portion 47 has a generally cylindrical shape extending in the Y-axis direction, and is supported in a housing portion 49 via a bearing 48 so as to be rotatable about a rotation center JB. The rotating shaft portion 47 is provided with a mounting portion 47a formed on an end surface of the rotating shaft portion 47, to which a mounting portion 52 (described later) of the tool spindle unit 50 is attached. The mounting portion 47a is formed as a circular recess having a diameter larger than the outer diameter of the mounting portion 52. The driving unit 46 rotates the rotating shaft unit 47 about the rotation center JB under the control of the control unit 300. The driving unit 46 is located on the outer periphery of the rotating shaft unit 47. The driving unit 46 is a direct drive motor.

[0020] The tool spindle unit 50 is configured so that a tool 70 or an inspection tool described later can be detachably attached thereto. The tool 70 is a rotating tool 72 such as a milling tool, or a fixed tool such as a turning tool. The tool spindle unit 50 is located between the first and second spindle units 10, 20 in the Z-axis direction. The rotating tool 72 is rotatably attached to the tool spindle unit 50, and a fixed tool is non-rotatably attached thereto. The tool spindle unit 50 mills or turns the workpiece W grasped by the first or second spindle unit 10, 20 using the attached rotating tool 72 or fixed tool.

[0021] The tool spindle unit 50 includes a main body 51 and an attachment portion 52. The main body 51 is formed in a substantially rectangular parallelepiped shape. The main body 51 includes a motor (not shown) that rotates the rotating tool 72. A tool attachment portion (not shown) is formed on the bottom surface of the main body 51. It is possible to grasp the state in which the holder portion 70h of the tool 70 is attached to this tool attachment portion. The mounting portion 52 is a portion that is attached to the mounting portion 47a, and has a cylindrical shape that fits into the mounting portion 47a. The mounting portion 52 is fixed to the rotating shaft portion 47 by a fastening means such as a bolt (not shown) in a state where it is attached to the mounting portion 47a. This allows the tool spindle unit 50 to rotate together with the rotating shaft portion 47 about the rotation center JB.

[0022] The control unit 300 controls the first spindle unit 10, the second spindle unit 20, the second spindle moving mechanism 25, the tool spindle unit 50, the tool spindle moving mechanism 42, the rotation mechanism 45, the tool magazine 60, and the like. In addition to the machine coordinate system of the machine tool 1 itself, the control unit 300 has a coordinate system for the tool spindle unit 50, which is represented by X and Z coordinates with the rotation center JB of the rotation mechanism 45 as the origin (reference point) in the initial state. Then, as will be described later, the control unit 300 is capable of shifting the coordinates of the center position JT of the mounting part 52 so that the coordinates of the center position JT are aligned with the coordinates of the rotation center JB. The control unit 300 is composed of a CPU (Central Processing Unit), etc. The storage unit 302 is composed of a ROM (Read Only Memory), a RAM (Random Access Memory), etc., and stores a program PG that defines the procedure of processing by the control unit 300. The control unit 300 executes the program PG to perform processing such as machining and coordinate shifting for machining the workpiece W. The machining can be performed according to an NC (Numerical Control) program created by an operator or the like. In the machining process, the workpiece W grasped by the first spindle unit 10 is machined by the tool 70 of the tool spindle unit 50, and after the machining is completed, the workpiece W is transferred to the second spindle unit 20. Then, the workpiece W grasped by the second spindle unit 20 is machined by the tool 70 of the tool spindle unit 50, and the machined workpiece W is discharged to the outside. During the machining process or before the start of the machining process, the tool 70 attached to the tool spindle unit 50 is exchanged between the tool magazine 60 via the tool changer 65 and the tool transport device 67, thereby enabling a variety of machining operations on the workpiece W.

[0023] Here, a description will be given of the deviation of the center position JT of the mounting portion 52 from the rotation center JB of the rotation mechanism 45 when the mounting portion 52 is mounted on the mounted portion 47a. As shown in FIG. 7(A), the center position JT of the mounting portion 52 coincides with the rotation center JB of the rotating shaft portion 47 of the rotating mechanism 45 when the mounting portion 52 is mounted in an ideal state without any assembly error. However, in reality, when the tool spindle unit 50 is attached to the rotation mechanism 45, an assembly error occurs. Therefore, as shown in FIG. 7B when viewed from the Z-axis direction and FIG. 7C when the attached portion 47a and the attachment portion 52 are viewed from the Y-axis direction, the center position JT of the tool spindle unit 50 does not coincide with the rotation center JB of the rotating shaft portion 47, and the rotation center JB and the center position JT are shifted by shift amounts dx and dz in the X-axis direction and the Z-axis direction, respectively. In this shifted state, the attachment portion 52 rotates eccentrically about the rotation center JB. Note that when the rotation angle of the tool spindle unit 50 shown in FIG. 8B is 0°, the shift amount in the X-axis direction is set to the shift amount dx, and the shift amount in the Z-axis direction is set to the shift amount dz. In FIG. 9 and FIG. 10, since the rotation angle of the tool spindle unit 50 is 90°, the shift amount in the X-axis direction is set to the shift amount dz, and the shift amount in the Z-axis direction is set to the shift amount dx. Conventionally, as described later, the deviations dx and dz are included in the offset amount, which deteriorates the machining accuracy. Therefore, in this embodiment, a correction is performed by shifting the coordinates of the center position JT to the coordinates of the rotation center JB based on the derived deviations dx and dz through coordinate shift processing, thereby acquiring the correct offset amount and suppressing the deterioration of the machining accuracy. A specific description will be given below.

[0024] First, the operator derives the amounts of deviation dx, dz using a computer or the like, and inputs the derived amounts of deviation dx, dz to the control unit 300 by operating the operation unit 310. As a result, the control unit 300 obtains the amounts of deviation dx, dz. The method of deriving the amount of deviation will be described below. The amount of deviation is derived after the tool spindle unit 50 is attached to the rotation mechanism 45. Before starting this deviation amount deriving method, an inspection tool 78 for measuring the deviation amount shown in Figs. 8(A) to (E) is attached to the tool spindle unit 50. The inspection tool 78 includes a grasped portion 78a that is grasped in a tool attachment portion (not shown) of the tool spindle unit 50, and a measured portion 78b that is to be measured. The measured portion 78b is cylindrical and has a larger diameter than the grasped portion 78a. The outer diameter D and length h of the measured portion 78b are measured in advance by a measuring means such as a micrometer or a three-dimensional measuring machine. In addition, a dial gauge 79 is used in this deviation amount deriving method. The dial gauge 79 is a device that measures the amount of movement of a contact, and is supported on the bed S by a supporting member (not shown).

[0025] In the method of deriving the deviation amount, first, the operator operates the operation unit 310 to record the coordinates when the contact 79a of the dial gauge 79 is placed against the end face and outer peripheral surface of the inspection tool 78 at two rotation angles of the tool spindle unit 50, 0° and 90°, as machine coordinates X2, X1, Z1, Z2 (steps S101 to S104 in Figure 13(A)). In detail, the rotation mechanism 45 positions the rotation angle of the tool spindle unit 50 at 90° by the operator's operation on the operation unit 310 (see FIG. 8(A)). Then, the operator operates the operation unit 310, and the tool spindle movement mechanism 42 moves the tool spindle unit 50 and stops the movement of the tool spindle unit 50 at a position where the end face of the inspection tool 78 (measurement target portion 78b) hits the contact 79a of the dial gauge 79. The operator sets the scale of the dial gauge 79 at this time to zero. It is also possible to set the contact 79a of the dial gauge 79 to a position where it hits the inspection tool 78 without moving the tool spindle unit 50 and set the scale to zero. In this state, the operator records the X coordinate at the stop position of the tool spindle unit 50 as the machine coordinate X2 (step S101). As shown in FIG. 9, the machine coordinate X2 is the distance in the X-axis direction from the machine coordinate origin to the rotation center JB when the rotation angle is 90°. When the coordinate is a diameter value, the radius value is set as the machine coordinate X2.

[0026] Next, while maintaining the position of the dial gauge 79 in step S101, the operator operates the operation unit 310 to move the tool spindle unit 50 away from the dial gauge 79, and then position the rotation angle of the tool spindle unit 50 at 0° (see FIG. 8(B)). Then, the operator operates the operation unit 310 to move the tool spindle unit 50, bringing the outer circumferential surface of the inspection tool 78 (measurement target portion 78b) into contact with the contact 79a of the dial gauge 79, and stops the movement of the tool spindle unit 50 at a position where the scale of the dial gauge 79 becomes zero. In this state, the operator records the X coordinate at the stop position of the tool spindle unit 50 as the machine coordinate X1 (step S102). The machine coordinate X1 is the distance in the X-axis direction from the machine coordinate origin to the rotation center JB when the rotation angle is 0°. When the coordinate is a diameter value, the radius value is set as the machine coordinate X1. After recording the machine coordinate X1, the operator operates the operation unit 310 to move the tool spindle unit 50 away from the dial gauge 79 so as not to move the dial gauge 79. After measuring the machine coordinates X2 and X1, the dial gauge 79 may be moved to a position where it is easy to measure the machine coordinates Z1 and Z2.

[0027] Next, while maintaining the rotation angle of the tool spindle unit 50 at 0°, the operator operates the operating unit 310 to move the tool spindle unit 50 and stops the movement of the tool spindle unit 50 at a position where the end face of the measured portion 78b abuts the contact 79a of the dial gauge 79 (see FIG. 8(C)). The operator sets the scale of the dial gauge 79 at this time to zero. It is also possible to set the contact 79a of the dial gauge 79 to a position where it abuts the inspection fixture 78 without moving the tool spindle unit 50 and set the scale to zero. In this state, the operator records the Z coordinate at the stop position of the tool spindle unit 50 as the machine coordinate Z1 (step S103). The machine coordinate Z1 is the distance in the Z axis direction from the machine coordinate origin to the rotation center JB when the rotation angle is 0°.

[0028] Next, while maintaining the position of the dial gauge 79 in step S103, the operator operates the operation unit 310 to move the tool spindle unit 50 away from the dial gauge 79, and then position the rotation angle of the tool spindle unit 50 at 90° (see FIG. 8(D)). Then, the operator operates the operation unit 310 to move the tool spindle unit 50, bringing the outer circumferential surface of the measured portion 78b into contact with the contact 79a of the dial gauge 79, and stops the movement of the tool spindle unit 50 at a position where the scale of the dial gauge 79 becomes zero. In this state, the operator records the Z coordinate at the stop position of the tool spindle unit 50 as the machine coordinate Z2 by inputting data into the operation unit 310 (step S104). The machine coordinate Z2 is the distance in the Z axis direction from the machine coordinate origin to the rotation center JB when the rotation angle is 90°. After recording the machine coordinate Z2, the operator operates the operation section 310 to move the tool spindle unit 50 away from the dial gauge 79. With the above, the machine coordinates X2, X1, Z1, and Z2 are recorded. After this, the dial gauge 79 is removed from the machine tool 1.

[0029] Next, the operator derives the deviation amounts dx and dz from the machine coordinates X2, X1, Z1, and Z2 using a computer or the like (step S105). The deviation dx is the deviation in the X-axis direction between the rotation center JB and the center position JT when the rotation angle of the tool spindle unit 50 is 0°. The deviation dz is the deviation in the Z-axis direction between the rotation center JB and the center position JT when the rotation angle of the tool spindle unit 50 is 0°. The deviations dx and dz are coordinates with the center position JT as the origin, and are expressed as positive and negative values. As shown in FIG. 9, the relationship of the following formula (1) holds between the machine coordinates X1 and X2, and as shown in FIG. 10, the relationship of the following formula (2) holds between the machine coordinates Z1 and Z2. X2=dz+h+L+X1-dx-D / 2…Formula (1) Z1=Z2+dx-D / 2+h+L+dz…Equation (2) X1, X2, Z1, Z2: Machine coordinates h: Length of the measured part 78b D: outer diameter of the measurement target portion 78b dx, dz: Displacement amount L: Distance from the center position JT to the tool mounting surface of the tool spindle unit 50 The distance L may be measured by a measuring means such as a coordinate measuring machine, or a value on a design drawing may be used. By solving the simultaneous equations of the above expressions (1) and (2), the following expressions (3) and (4) for deriving the deviation amounts dx and dz are established. dx=(Z1-Z2+X1-X2)×1 / 2…Equation (3) dz=(Z1-Z2-X1+X2-2h-2L+D)×1 / 2…Equation (4) The deviation amounts dx and dz are derived from the above equations (3) and (4).

[0030] Finally, the operator inputs the deviation amounts dx and dz as offset parameters to the control unit 300 by operating the operation unit 310 (step S106). The offset parameters are values ​​that are referenced in a coordinate shift process that will be described later.

[0031] 13B, a description will be given of the coordinate shift process executed by the control unit 300. This coordinate shift process is executed after the deviation amounts dx and dz are set as offset parameters. When a rotation command for the tool spindle unit 50 is received by a command code in the NC program or an operation on the operation unit 310 (step S201), the tool spindle unit 50 is rotated to the command angle contained in the command (step S202), and the rotation angle of the tool spindle unit 50 is positioned. After the rotation angle of the tool spindle unit 50 is determined, the shift amount of the coordinate of the center position JT corresponding to the command angle is derived based on the deviation amounts dx and dz input as the offset parameters, and the coordinate of the center position JT is shifted by the derived shift amount (step S203), and the coordinate shift process is terminated. By the coordinate shift process, the coordinate of the center position JT moves to the coordinate of the rotation center JB, as shown in FIG. Here, the deviation amounts dx, dz are the deviation amounts when the rotation angle of the tool spindle unit 50 is 0°, so the deviation amounts in the X-axis and Z-axis directions between the rotation center JB and the center position JT change according to the rotation angle of the tool spindle unit 50. Therefore, it is necessary to derive the coordinate shift amounts Sx, Sz (see FIG. 14) according to the rotation angle of the tool spindle unit 50. Using the following equation (5), the coordinates (Sz, Sx) of the center position JT after rotation with the rotation center JB as the origin can be found from the coordinates (dz, dx) of the center position JT before rotation and the rotation angle θ. (Sz,Sx)=(dzcosθ-dxsinθ,dxcosθ+dzsinθ)…Equation (5) When the tool spindle unit 50 is at 0°, the coordinates (Sz, Sx) of the center position JT after rotation are equal to the deviation amounts dz, dx. The coordinate shift process is executed every time the rotation angle of the tool spindle unit 50 changes, so that the coordinates of the center position JT can always be positioned at the coordinates of the rotation center JB. This is the end of the explanation of the coordinate shifting process.

[0032] Since the cutting edge position relative to the center position JT differs depending on the shape of the tool 70, when a new tool 70 is attached to the tool spindle unit 50, it is necessary to set an offset amount related to the cutting edge position of that tool 70. An example of setting the offset amount will be described below. In this example, the rotation angle of the tool spindle unit 50 is set to 90°, and a new fixed tool 71 is attached to the tool spindle unit 50, as shown in FIG. In this state, the driving unit 82 advances the touch sensor 81 forward of the first spindle 11. Then, the tool spindle unit 50 is moved in the Z-axis direction to bring the cutting edge of the fixed tool 71 into contact with the detection surface 81e of the touch sensor 81. The control unit 300 measures the coordinates when the contact of the cutting edge of the fixed tool 71 is detected by the detection surface 81e, and obtains an offset amount FZ in the Z-axis direction from the measured coordinates. In more detail, as shown in FIG. 15(B), in a state where there is no assembly error and the center position JT coincides with the rotation center JB, the distance in the Z-axis direction from the coordinate of the rotation center JB to the coordinate of the detection surface 81e is obtained as the correct offset amount FZ. Then, the offset amount FZ is set as a tool shape offset parameter related to the tool shape. Since the offset amount FZ does not include the deviation amount dz, the machining accuracy is improved. On the other hand, as shown in FIG. 15(A), in the comparative technique in which the coordinate shift process is not performed, the reference point (origin) of the coordinate system is located at the rotation center JB, so the offset amount FZ includes the deviation amount dx in the Z-axis direction between the rotation center JB and the center position JT. Therefore, the offset amount FZ cannot be set accurately, and a deviation occurs between the cutting edge position on the coordinate system and the actual cutting edge position, resulting in a decrease in machining accuracy. In contrast, when the coordinate shift process is performed, the coordinate of the center position JT is corrected by the deviation amounts dz, dx so that it matches the coordinate of the rotation center JB. Therefore, it is possible to set the correct offset amount FZ corrected by the deviation amount dx. Therefore, the cutting edge position on the coordinate system matches the actual cutting edge position, and machining accuracy can be improved. Although the offset amount FZ in the Z-axis direction has been described above, the offset amount FX in the X-axis direction is similar. That is, the distance from the center position JT to the detection surface 81a when the cutting edge is brought close to and in contact with the detection surface 81a from the X-axis direction is obtained as the offset amount FX and set as the tool shape offset parameter. Furthermore, the offset amount in the Y-axis direction may also be obtained and set using the detection surfaces 81b and 81d. After the offset amount in each axial direction is set, the touch sensor 81 is moved back to above the first main shaft 11 via the drive unit 82. This completes the setting of the offset amount for the tool shape, and machining can then be performed.

[0033] According to the embodiment described above, the following effects are achieved. (1) Machine tool 1 includes tool spindle unit 50 having mounting portion 52 and on which tool 70 is attached, and rotation mechanism 45 having mounted portion 47a to which mounting portion 52 is attached and rotating together with tool spindle unit 50 with mounting portion 52 attached to mounted portion 47a. Program PG is for causing control unit 300 to function to control machine tool 1, and causes control unit 300 to realize a deviation amount acquisition function for acquiring deviation amounts dx, dz between center of rotation JB of rotation mechanism 45 and center position JT of mounting portion 52 in a direction intersecting center of rotation JB of rotation mechanism 45, and a coordinate shift function for shifting the coordinates of center position JT of mounting portion 52 to the coordinates of center of rotation JB of rotation mechanism 45 based on the acquired deviation amounts dx, dz. According to this configuration, even if a misalignment occurs between the rotation center JB of the rotation mechanism 45 and the center position JT of the mounting portion 52 due to an assembly error when attaching the mounting portion 52 to the mounted portion 47a, the coordinate of the center position JT is corrected to move to the coordinate of the rotation center JB, so that the cutting edge position on the coordinate system matches the actual cutting edge position, thereby improving machining accuracy.

[0034] (2) In the coordinate shift function, when the tool spindle unit 50 is rotated to a command angle, the amount of shift of the coordinates of the center position JT corresponding to the command angle is derived from the acquired deviation amounts dx, dz, and the coordinates of the center position JT are shifted to the coordinates of the rotation center JB by the derived shift amounts Sx, Sz. According to this configuration, the shift amount is automatically set according to the rotation angle of the tool spindle unit 50. Therefore, it is not necessary to use M codes or G codes for shifting the coordinates of the center position JT in the machining program (NC program), and the machining program is simplified.

[0035] (3) The deviation amount acquisition function acquires machine coordinates X2, X1, Z1, Z2 in two axis directions (X and Z axis directions) of the inspection tool 78 attached to the tool spindle unit 50 when the tool spindle unit 50 is at a first rotation angle (0°) and a second rotation angle (90°) rotated from the first rotation angle, and acquires deviation amounts dx, dz based on the acquired machine coordinates X2, X1, Z1, Z2. According to this configuration, the deviation amounts dx and dz can be easily obtained without using any special device.

[0036] (4) The coordinate shift function shifts a first coordinate system having the coordinates of the center position JT as its origin to a second coordinate system having the coordinates of the rotation center JB as its origin. According to this configuration, by shifting the coordinate system, it is possible to improve the machining accuracy as described above.

[0037] (5) Machine tool 1 includes a memory unit 302 that stores program PG, a control unit 300 that controls the operation of machine tool 1 by executing program PG, a tool spindle unit 50, and a rotation mechanism 45. According to this configuration, as described above, it is possible to suppress deterioration in processing accuracy due to assembly errors and the like.

[0038] The present disclosure is not limited to the above-described embodiments and drawings. Modifications (including deletion of components) can be made as appropriate within the scope of the present disclosure. An example of a modification will be described below.

[0039] (Modification) In the above embodiment, the tool magazine 60 is provided above the second spindle unit 20, but it may be provided in another position. In the above embodiment, the tool spindle unit 50 transfers the tools 70 between the tool magazine 60 via the tool transport device 67 and the tool changer 65, but this is not limited thereto. The tool transport device 67 and the tool changer 65 may be omitted, and the tools 70 may be transferred directly between the tool magazine 60 and the tool spindle unit 50.

[0040] The movement directions of the first spindle unit 10, the second spindle unit 20 and the tool spindle unit 50 are not limited to those in the above embodiment, and may be added or omitted as appropriate. For example, the first spindle unit 10 may be immovable in the Z-axis direction, whereas the second spindle unit 20 may be movable in the Y-axis direction. Furthermore, either one of the first and second spindle units 10, 20 may be omitted.

[0041] In the above embodiment, the operator derives the deviation amounts dx, dz using the above formulas (3) and (4), and inputs the derived deviation amounts dx, dz to the control unit 300 as offset parameters, so that the control unit 300 acquires the deviation amounts dx, dz, but this is not limited thereto. The control unit 300 may acquire the machine coordinates X2, X1, Z1, and Z2 input by the operator, and derive and acquire the deviation amounts dx, dz from the acquired machine coordinates X2, X1, Z1, and Z2 using the above formulas (3) and (4). The operation of machine tool 1 in response to an operator's operation on operation unit 310 in the above-described deviation amount deriving method may be automatically executed as an operating program. For example, the measurement results of the dial gauge 79 may be configured to be obtainable by the control unit 300, and when the scale of the dial gauge 79 reaches a predetermined value, each of the mechanical coordinates X2, X1, Z1, and Z2 may be automatically obtained by the control unit 300. The order of measuring the machine coordinates X2, X1, Z1, and Z2 can be changed as appropriate. For example, the machine coordinates Z1 and Z2 may be obtained first, and then the machine coordinates X2 and X1 may be obtained. Although the machine coordinates X2, X1, Z1, and Z2 have been measured as machine coordinates, they may be measured as other coordinates. Furthermore, although the coordinates are measured when the rotation angles of the tool spindle unit 50 are 0° and 90°, the coordinates may be measured at two rotation angles other than 0° and 90°. Furthermore, the method of measuring the amount of deviation is not limited to the method using the dial gauge 79. For example, a touch probe may be attached to the tool spindle unit 50 to measure the reference sphere and thereby derive the amount of deviation.

[0042] In the above embodiment, the tool setter 80 is provided with the touch sensor 81 that detects contact, but it may be provided with a non-contact proximity sensor such as a laser type or a magnetic type. The non-contact type does not contact the tool 70, so there is no need to stop the rotation of the tool 70, and further, no load is applied to the tool 70 even if the tool 70 has a small diameter.

[0043] In the above embodiment, in step S203, the control unit 300 automatically shifts the coordinates after positioning the rotation angle of the tool spindle unit 50, but this is not limiting, and the coordinates may be shifted using an M code or a G code.

[0044] The program PG in the above embodiment may be downloaded to the control unit 300 via a network, or may be stored in a computer-readable recording medium such as a Universal Serial Bus (USB) memory, a Compact Disc-Read Only Memory (CD-ROM), a Digital Versatile Disc (DVD), or a Hard Disk Drive (HDD). [Explanation of symbols]

[0045] 1 Machine tools 10 First spindle unit 11 1st spindle 11a First workpiece gripping section 12 1st headstock 20 No. 2 spindle unit 21 2nd spindle 21a Second workpiece gripping section 22 2nd headstock 25 2nd spindle movement mechanism 42 Tool spindle movement mechanism 42X X movement mechanism 42Y Y movement mechanism 42Z Z movement mechanism 45 Rotation mechanism 46,62,82 Drive unit 47 Rotating shaft 47a Mounting part 48 Bearings 49 Storage unit 50 Tool spindle unit 51 Main body 52 Mounting part 60 Tool Magazine 61 Tool support part 65 Tool changer 67 Tool transport device 70 Tools 70h Holder part 71 Fixed tools 72 Rotary tools 78 Inspection tool 78a Grasped part 78b Part to be measured 79 Dial Gauge 79a Contact 80 Tool Setter 81 Touch Sensor 81a~81e Detection surface 83 Sensor support 300 Control section 302 Storage section 310 Operation section D Outer diameter L distance h Length S Bed JB Rotation Center W work X1,X2,Z1,Z2 Machine coordinates Postgraduate Program JT center position FZ, FX offset amount Ar rotation angle range Az Rotation Axis Sx, Sz Shift amount dx,dz Displacement θ Rotation angle

Claims

1. a tool spindle unit having an attachment portion and to which a tool is attached; a rotation mechanism having a mounting base to which the mounting portion is attached, the rotation mechanism rotating together with the tool spindle unit in a state in which the mounting portion is attached to the mounting base; A program for causing a control unit to execute control of a machine tool comprising: The control unit, a deviation amount acquisition function that acquires a deviation amount between a rotation center of the rotation mechanism and a center position of the attachment portion in a direction intersecting the rotation center of the rotation mechanism; a coordinate shift function for shifting the coordinates of the center position of the attachment part to the coordinates of the rotation center of the rotation mechanism based on the acquired deviation amount. program.

2. In the coordinate shift function, when the tool spindle unit is rotated to a command angle, a shift amount of the coordinate of the center position corresponding to the command angle is derived from the acquired deviation amount, and the coordinate of the center position is shifted to the coordinate of the rotation center by the derived shift amount. The program according to claim 1.

3. the deviation amount acquisition function acquires coordinates in two axial directions related to the tool spindle unit when the tool spindle unit is at a first rotation angle and a second rotation angle rotated from the first rotation angle, and acquires the deviation amount based on the acquired coordinates.

3. The program according to claim 1 or 2.

4. The coordinate shift function shifts a first coordinate system having the coordinates of the central position as its origin to a second coordinate system having the coordinates of the rotation center as its origin.

3. The program according to claim 1 or 2.

5. A storage unit that stores the program according to claim 1 or 2; a control unit that executes the program to control an operation of the machine tool; The tool spindle unit; The rotation mechanism, Machine tools.

Citation Information

Patent Citations

  • Robot teaching position correction device

    JP1993036502U

  • Tool arrangement device and tool arrangement method

    JP2008073791A

  • Rotation axis center position measuring method of machine tool

    JP2022008099A

  • Position controller for controlling a rotation center of a tilting head

    US20170357237A1

  • Gear train, tool unit and machine tool

    JP2022116439A