The present invention relates to a numerical control (NC) device and a numerical control method for executing numerical control over a multiaxis machine tool having a rotation axis.
A conventional numerical control device that controls a multiaxis machine tool having a rotation axis performs machining on a workpiece after controlling (hereinafter, “indexing”) a tool attitude so that a tool is held perpendicular to a worked surface by rotating the rotation axis when the tool is not perpendicular to the worked surface (for example, Patent Literature 1).
As an indexing method, there are known two types of methods, that is, an indexing method for operating only a rotation axis (hereinafter, “rotation indexing method”) and another indexing method for holding the relative position of a tool tip to the workpiece while operating a rotation axis and a linear axis (hereinafter, “tool-tip-position holding indexing method”).
Conventionally, an operator of the numerical control device makes selection of which method should be used to perform indexing based on a position of the workpiece and a position of the tool, the rotation indexing method or the tool-tip-position holding indexing method.
However, it is difficult for the operator to select one of the indexing methods while accurately grasping the possible interference between the workpiece and the tool because of a complicated operation performed by the multiaxis machine tool controlled by the numerical control device. Accordingly, the operator erroneously selects an indexing method, and this may cause a problem that the interference occurs.
The present invention provides a numerical control device of a machine tool that includes linear axes and rotation axes, for controlling a position and an attitude of a tool with respect to a workpiece, the numerical control device comprising: an indexing-method decision unit that decides, as an indexing method, one of a rotation indexing method of operating only the rotation axis and a tool-tip-position holding indexing method of operating the rotation axis and the linear axis and holding a position of a tool tip with respect to the workpiece, based on a commanded rotation axis, a commanded rotation direction of the commanded rotation axis, and the position of the tool; a moving-amount calculation unit that calculates a moving amount of each of the axes based on the commanded rotation axis, the commanded rotation direction of the commanded rotation axis, the position of the tool, and the indexing method decided by the indexing-method decision unit; and an output unit that outputs a position command to a servo amplifier based on the moving amount calculated by the moving-amount calculation unit.
The present invention provides the numerical control device according to claim 1, wherein the indexing-method decision unit determines whether or not the workpiece or a table becomes closer to the tool when performing indexing in the rotation indexing method, decides the rotation indexing method as the indexing method when determining that the workpiece or the table does not become closer to the tool, and decides the tool-tip-position holding indexing method as the indexing method when determining that the workpiece or the table becomes closer to the tool.
According to the present invention, it is possible to obtain a numerical control device that selects an appropriate indexing method so as to avoid interference between a workpiece and a tool. This can suppress the interference between the workpiece and the tool. It is also possible for an operator of the numerical control device to efficiently perform his/her operations.
A first embodiment is explained with reference to
The numerical control device 40 also includes I/F unit 43, I/F units 44a to 44e and I/F units 45 that are connected to the bus 46, and an input display unit 47 that is connected to the I/F unit 43. The input display unit 47 includes a keyboard (not shown) used by a user to input the machining program, parameters and the like, and a display unit (not shown) for displaying the input machining program, parameters and the like. Servo amplifiers 50a to 50e are connected to the I/F units 44a to 44e, respectively. An X-axis motor 70a, a Y-axis motor 70b, a Z-axis motor 70c, a B-axis motor 70d and a C-axis motor 70e that are control targets of the servo amplifiers 50a to 50e are connected to the servo amplifiers 50a to 50e, respectively. A main axis amplifier 55 is connected to the I/F unit 45, and a main axis motor 75 that is a control target of the main axis amplifier 55 is connected to the main axis amplifier 55.
The X-axis motor 70a, the Y-axis motor 70b, the Z-axis motor 70c, the B-axis motor 70d, the C-axis motor 70e, and the main axis motor 75 drive a machine shown in
Indexing-related processes performed by the numerical control device 40 are described next with reference to
First, the indexing-method decision unit 2 determines whether or not the workpiece 27 is made closer to the tool 21 when using a rotation indexing method, based on rotation axis information 11, rotation direction information 12, and tool relative-position information 13 (S1). The rotation axis information 11 is information for identifying a rotation axis to be commanded, and in this embodiment, the information is assumed to identify the tool rotation axis 22. Therefore, the rotation indexing method according to the present embodiment means an indexing method in which only the tool rotation axis 22 is rotated. The rotation direction information 12 is information for identifying a positive direction or a negative direction as a rotation direction of the rotation axis to be commanded. The rotation axis information 11 and the rotation direction information 12 are inputted when an operator of the numerical control device 40 operates the input display unit 47 and stored in the storage unit 42. The tool relative-position information 13 is information for identifying a relative position of the tool 21 to the workpiece 27, and is a value calculated by the position update unit 4 as described later.
With reference to
First, the indexing-method decision unit 2 calculates a length L1 between the workpiece 27 and the tool tip 21a before rotation of the tool rotation axis 22 and a length L2 between the workpiece 27 and the tool tip 21a after rotation of the tool rotation axis 22 by an angle θ. The lengths L1 and L2 refer to lengths between the tool tip 21a and a surface of the workpiece 27 closest to the tool tip 21a before and after the rotation of the tool 21, respectively. The lengths L1 and L2 can be calculated based on, for instance, the tool relative-position information 13, the rotation direction information 12, the rotation angle θ, measurements of the workpiece 27, a central position of the tool rotation axis 22, a length R between a center of the tool rotation axis 22 and the tool tip 21a, and/or the like. An arbitrary value can be set to the rotation angle θ as long as the rotation angle θ satisfies 0<θ<180. The rotation angle θ, the measurements of the workpiece 27, the central position of the tool rotation axis 22, and the length R between the center of the tool rotation axis 22 and the tool tip 21a are stored in the storage unit 42 in advance.
At the time of calculating the lengths L1 and L2, positions on the machine coordinate system 20 corresponding to the tool tip 21a and a point on the surface of the workpiece 27 may be calculated, respectively, or a relative position of the tool tip 21a to the workpiece 27.
After calculating the lengths L1 and L2, the indexing-method decision unit 2 determines whether or not the lengths L1 and L2 satisfy L1>L2. When the lengths L1 and L2 satisfy L1>L2, the indexing-method decision unit 2 determines that the workpiece 27 and the tool 21 become closer to each other. When the lengths L1 and L2 satisfy L1≦L2, the indexing-method decision unit 2 determines that the workpiece 27 and the tool 21 are not closer to each other.
When determining at S1 that the workpiece 27 and the tool 21 become closer to each other, the indexing-method decision unit 2 decides a tool-tip-position holding indexing method and generates indexing method information 14 for identifying the decided indexing method (S2). The tool-tip-position holding indexing method in the present embodiment means an indexing method of operating the tool rotation axis 22 and the linear axes and holding the relative position of the tool tip 21a to the workpiece 27. Next, the moving-amount calculation unit 3 calculates a moving amount 15 of each of the tool rotation axis 22 and the linear axes in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S3). At this time, the moving-amount calculation unit 3 calculates the moving amount 15 such that the tool axis direction 24 matches the positive direction of the Zf-axis of the feature coordinate system 29 by operating the tool rotation axis 22 and the linear axes while fixing the relative position of the tool tip 21a to the workpiece 27.
The position update unit 4 accumulates the moving amount 15 in every predetermined control cycle calculated at S3, and adds the result of accumulation to the tool relative-position information 13 updated in an immediately previous cycle, so as to update the tool relative-position information 13 (S4). Meanwhile, the moving-amount output unit 5 outputs a position command 17 for each axis to the servo amplifier 50 based on the moving amount 13 calculated at step S3 (S5), and the numerical control device 40 then finishes the processing.
On the other hand, when determining at S1 that the workpiece 27 and the tool 21 do not become closer to each other, the indexing-method decision unit 2 decides the rotation indexing method (S6). The moving-amount calculation unit 3 calculates the moving amount 15 of the tool rotation axis 22 in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S7). At this time, the moving-amount calculation unit 3 calculates the moving amount 15 such that the tool axis direction 24 matches the positive direction of the Zf-axis of the feature coordinate system 29 by operating only the tool rotation axis 22. Thereafter, the numerical control device 40 proceeds to step S4.
In the first embodiment, the case where the rotation axis operated at the time of indexing is the tool rotation axis 22 has been described, but this is not limitation. That is, a table rotation axis 26 may be operated or both the tool rotation axis 22 and the table rotation axis 26 may be operated.
According to the first embodiment, it is possible to obtain the numerical control device that selects an appropriate indexing method for avoiding the interference between the workpiece and the tool. This can suppress the interference between the workpiece and the tool. It is also possible for an operator of the numerical control device to efficiently perform operations.
The numerical control device 40 according to the first embodiment shown in
The machine tool according to the first embodiment shown in
Furthermore, in the first embodiment, it is determined, based on change in the length between the workpiece 27 and the tool tip 21a before and after the rotation of the tool 21, whether or not the workpiece 27 and the tool tip 21a become closer to each other if the rotation indexing method is used, but this is not limitation. A development example of S1 shown in
In an example of
A second embodiment is explained with reference to
When the second table rotation axis 103 rotates, the table 25 operates in the Z-axis direction. Accordingly, there is a higher probability of the interference between the table 25 and the tool 21 than in the first embodiment. Therefore, in the second embodiment, the indexing method is decided depending on whether or not the table 25 becomes closer to the tool 21.
The indexing-method decision unit 2 determines at S11 whether or not the Ya coordinate of the tool tip 21a on the second-table-rotation-axis interlocked coordinate system 104 is positive and whether or not the rotation direction of the second table rotation axis 103 is a positive direction (clockwise). When the Ya coordinate of the tool tip 21a is positive and the rotation direction of the second table rotation axis 103 is a negative direction, or when the Ya coordinate of the tool tip 21a is negative and the rotation direction of the second table rotation axis 103 is a positive direction, the indexing-method decision unit 2 determines that the table 25 and the tool 21 become closer to each other. Conversely, when the Ya coordinate of the tool tip 21a is positive and the rotation direction of the second table rotation axis 103 is the positive direction, or when the Ya coordinate of the tool tip 21a is negative and the rotation direction of the second table rotation axis 103 is the negative direction, the indexing-method decision unit 2 determines that the table 25 and the tool 21 do not become closer to each other.
In an example of
When determining at S11 that the table 25 and the tool 21 become closer to each other, the indexing-method decision unit 2 decides the tool-tip-position holding indexing method and generates indexing method information 14 for identifying the decided indexing method (S12). The tool-tip-position holding indexing method according to the present embodiment means an indexing method of operating the second table rotation axis 103 and the linear axes and holding the relative position of the tool tip 21a to the workpiece 27. Next, the moving-amount calculation unit 3 calculates the moving amount 15 of each of the second table rotation axis 103 and the linear axes in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S13). At this time, the moving-amount calculation unit 3 calculates the moving amount 15 such that the tool axis direction 24 matches the positive direction of the Zf-axis of the feature coordinate system 29 while the relative position of the tool tip 21a to the workpiece 27 is held by operating the second table rotation axis 103 and the linear axes.
The position update unit 4 accumulates the moving amount 15 in every predetermined control cycle calculated at S3, and adds the result of accumulation to the tool relative-position information 13 updated in an immediately previous cycle, thereby to update the tool relative-position information 13 (S14). Meanwhile, the moving-amount output unit 5 outputs the position command 17 for each axis to the servo amplifier 50 based on the moving amount 13 calculated at S3 (S15), and the numerical control device 40 then finishes the processing.
On the other hand, when it is determined at S1 that the table 25 and the tool 21 do not become closer to each other, the indexing-method decision unit 2 decides the rotation indexing method (S16). The moving-amount calculation unit 3 calculates the moving amount 15 of the second table rotation axis 103 in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S17). At this time, the moving-amount calculation unit 3 calculates the moving amount 15 such that the tool axis direction 24 matches the positive direction of the Zf-axis of the feature coordinate system 29 by operating only the second table rotation axis 103. Thereafter, the numerical control device 40 proceeds to S14.
In the second embodiment, description is given for the case where the rotation axis operated at the time of indexing is the second table rotation axis 103, but this is not limitation. However, the rotation axis controlled to operate at the time of indexing is not limited to the second table rotation axis 103. That is, the first table rotation axis 26 may be operated or both the second table rotation axis 103 and the first table rotation axis 26 may be operated.
As described above, according to the second embodiment, it is possible to obtain the numerical control device that selects an appropriate indexing method for avoiding the interference between the workpiece and the tool based on the relative position of the tool to the boundary plane 105. It is thereby possible to achieve advantageous effects equivalent to those of the first embodiment.
A third embodiment is explained with reference to
In the tool-tip-position holding indexing method, not only the rotation axis but also the linear axes are operated. This possibly causes a problem that the operations of the linear axes often become excessive and a state (hereinafter, “stroke-over”) where the tool deviates from a movable range occurs, depending on the position of the tool with respect to the workpiece. Conventionally, when stroke-over occurs, it is required to stop an indexing operation and move the position of the tool to fall within the movable range, and to then restart the indexing operation. The third embodiment is intended to avoid the stroke-over without stopping the indexing operation.
Indexing-related processes performed by the numerical control device 40 are described next with reference to
After S23, the stroke-over determination unit 6 determines whether or not the position of the tool tip 21a in a next control cycle is within the movable range 61, that is, whether or not stroke-over occurs, based on the moving amount 15 in every predetermined control cycle calculated in S23 (S24). When determining at S24 that the position of the tool tip 21a is within the movable range 61 on all the linear axes, that is, when no stroke-over occurs, the stroke-over determination unit 6 sets a stroke-over occurrence signal 16 to be invalid and the numerical control device 40 proceeds to S25. S25 to S28 are equivalent to S4 to S7 shown in
On the other hand, when determining at S24 that the position of the tool tip 21a in the next control cycle is out of the movable range 61 on any of the linear axes, that is, when stroke-over occurs, the stroke-over determination unit 6 sets the stroke-over occurrence signal 16 to be valid and the numerical control device 40 proceeds to S27. That is, when the stroke-over occurrence signal 16 is valid, the indexing-method decision unit 2 switches the indexing method from the tool-tip-position holding indexing method to the rotation indexing method.
The stroke-over determination unit 6 sets the stroke-over occurrence signal 16 to be valid when the tool tip 21a moves to the point P2. In response to this, the indexing-method decision unit 2 switches the indexing method from the tool-tip-position holding indexing method to the rotation indexing method. As a result, at the point P2, while the moving of the tool 21 in each linear axis direction is stopped, operations of the table rotation axis 26 and the tool rotation axis 22 are continued.
According to the third embodiment, it is possible to achieve an effect of avoiding the stroke-over without stopping the indexing operation by switching the indexing method when the stroke-over occurs on any of the linear axes during the indexing operation in addition to the effects of the first embodiment. This can improve the operation efficiency of an operator of the numerical control device.
The stroke-over is avoided by switching the indexing method according to the third embodiment, but this is not limitation.
A fourth embodiment is explained with reference to
Indexing-related processes performed by the numerical control device 40 are described next with reference to
After S32, the moving-velocity decision unit 110 decides a lower moving velocity 111 than a preset commanded velocity based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S33). Thereafter, the moving-amount calculation unit 3 calculates the moving amount 15 of each of the rotation axes and the linear axes in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, the indexing method information 14, and the moving velocity 111 (S34), and the numerical control device 40 proceeds to S35.
S35 to S37 are equivalent to S4 to S6 shown in
After S37, the moving-velocity decision unit 110 decides the same moving velocity 111 as the preset commanded velocity based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S38). The moving-amount calculation unit 3 calculates the moving amount 15 of each rotation axis in every predetermined control cycle based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, the indexing method information 14, and the moving velocity 111 (S39), and the numerical control device 40 proceeds to S35.
According to the fourth embodiment, it is possible to achieve an effect of decreasing the moving velocity of the tool when the workpiece and the tool become closer to each other during the indexing operation in addition to the effects of the first embodiment. For example, it is thereby possible to avoid the interference between the workpiece and the tool for an operator of the numerical control device to stop the device sufficiently in advance.
The moving velocity is decreased when the workpiece 27 and the tool 21 become closer to each other in the fourth embodiment, but this is not limitation. For example, the moving velocity may be decreased when the length between the workpiece 27 and the tool 21 is smaller than a predetermined length. It is thereby possible to achieve effects equivalent to those of the fourth embodiment.
A fifth embodiment is explained with reference to
First, a functional block diagram of the numerical control device 40 according to the fourth embodiment is the same as that shown in
Indexing-related processes performed by the numerical control device 40 are described next with reference to
After S43, the moving-amount calculation unit 3 clears moving amounts of a preset moving-prohibited axis and a moving prohibiting direction (sets the moving amounts to zero) based on the rotation axis information 11, the rotation direction information 12, the tool relative-position information 13, and the indexing method information 14 (S44).
The moving-prohibited axis and the moving prohibiting direction are described while referring to specific examples shown in
On the other hand, as shown in
As the moving-prohibited axis, any one of the X-axis, the Y-axis and the Z-axis of the machine coordinate system 20 is set. The moving-prohibited axis and the moving prohibiting direction may be set in advance at the time of program analysis or the other time, or may be set based on the indexing method information 14 by a unit (not shown).
S45 to S48 are identical to S4 to S7 shown in
According to the fifth embodiment, it is possible to achieve an effect of preventing the moving in a predetermined axial direction in addition to the effects of the first embodiment. Therefore, it is possible to avoid the interference between the workpiece and the tool.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2010/002051 | 3/24/2010 | WO | 00 | 9/12/2012 |