The present invention relates to a controller for machine tool for controlling the operation of a feed mechanism which relatively moves a tool and a workpiece according to a machining program related to a fixed cycle.
In the field of machining, there has conventionally been a demand for improvement of machining efficiency. For this purpose, a relative movement of a tool and a workpiece is controlled in the following manner, for example (see the Japanese Unexamined Patent Application Publication No. 10-63329). That is, when a tool which is moving according to an operation command comes close to a specified position, the tool begins to decelerate in order to stop at the specified position and the tool begins to accelerate toward the next specified position to move according to the next operation command. When the movement of a tool is controlled in this manner, before the movement of the tool is completed and the tool is stopped, the subsequent movement is started. Therefore, the movement time of the tool, that is, the machining time is shortened.
However, when a tool is moved as described above, an error occurs between the specified trajectory (true movement trajectory) and the actual movement trajectory. Therefore, depending on the amount of the error, it is possible that machining accuracy is reduced.
Specifically, as shown in
A process for machining a workpiece W usually includes a rough cutting operation and a finishing operation, and in the rough cutting operation, the workpiece W is machined so that a finishing allowance remains. Therefore, even if the workpiece W is excessively machined, this may not immediately cause reduction of machining accuracy (see
Therefore, if the amount of the error at the position P (the amount of the excessive machining of the workpiece W) is controlled and the tool T is moved so that the workpiece W is not machined up to the portion thereof which is included in its shape after finishing, the accuracy of machining the workpiece W is not reduced and further shortening of the machining time can be achieved.
The present invention has been achieved in view of the above-described circumstances, and an object thereof is to provide a controller for machine tool capable of shortening machining time without reducing machining accuracy in machining of a workpiece.
The present invention, for achieving the above-described object, relates to a controller for machine tool which is provided for a machine tool having a feed mechanism for relatively moving a tool and a workpiece, and which controls the operation of the feed mechanism according to a machining program related to a fixed cycle,
the controller for machine tool comprising:
program storage means for storing the machining program related to the fixed cycle;
program analyzing means for analyzing the machining program stored in the program storage means and extracting a fixed cycle command;
parameter setting means for determining an accuracy level on the basis of the fixed cycle command extracted by the program analyzing means and setting parameters which correspond to the accuracy level and relate to the control of the operation of the feed mechanism, the accuracy level being graded into a plurality of grades depending on how high machining accuracy is prioritized as compared with machining time in machining; and
drive control means for controlling the feed mechanism on the basis of the fixed cycle command extracted by the program analyzing means and the parameters set by the parameter setting means, and thereby relatively moving the tool,
wherein:
the drive control means is configured to, for an intersection portion of two linear movement paths, relatively move the tool along an arc-shaped movement trajectory which depends on the parameters set by the parameter setting means, the movement trajectory touching the linear movement paths and being more distant from the intersection portion when the grade of the accuracy level is lower;
the parameter setting means is configured to recognize machining type on the basis of the fixed cycle command;
when the recognized machining type is finishing, the parameter setting means determines the accuracy level to be the highest grade of accuracy level and sets the parameters corresponding to the determined accuracy level; and
when the recognized machining type is rough cutting, the parameter setting means virtually sets a vertical corner portion where two straight lines intersect with each other, and then determines the accuracy level to be the lowest grade of accuracy level among such accuracy levels that an arc-shaped movement trajectory of the tool moving around the virtual corner portion which depends on the parameters does not intersect with a linear offset line which is obtained by offsetting the two straight lines inwardly by a finishing allowance which is recognized from the fixed cycle command, and sets the parameters corresponding to the determined accuracy level, the movement trajectory touching the straight lines and being more distant from the virtual corner portion when the grade of the accuracy level is lower.
According to this invention, a machining program for performing a predetermined machining (machining program related to a fixed cycle or machining program including a machining program related to a fixed cycle) is stored in advance in the program storage means. The above-mentioned fixed cycle makes it possible to, for a machining such as circumferential cutting, pocket hole machining and drilling, specify a series of machining operations with a fewer number of blocks than usual, and its command (fixed cycle command) includes data on at least one or more of machining type, finishing allowance, feed speed, depth of cut per cutting, total depth of cut, number of times of cutting, etc.
The program analyzing means analyzes the machining program stored in the program storage means and extracts a fixed cycle command, and then the parameter setting means determines an accuracy level on the basis of the fixed cycle command extracted, and sets parameters which correspond to the accuracy level and relate to the control of the operation of the feed mechanism for relatively moving the tool and the workpiece.
The accuracy level is graded into a plurality of grades depending on how machining accuracy is prioritized as compared with the machining time in machining the workpiece. For example, machining accuracy is prioritized higher (machining time is longer) in a higher grade of accuracy level, and machining time is prioritized higher (machining time is shorter) in a lower grade of accuracy level. Therefore, the accuracy level is set to a low grade for rough cutting and is set to a high grade for finishing. Further, as the above-described parameters, for example, maximum acceleration for acceleration/deceleration before interpolation, acceleration change time for acceleration/deceleration before interpolation, allowable amount of acceleration change, allowable amount of acceleration change for each axis at linear corner, rate of jerk change time for smooth-bell-shaped acceleration/deceleration, allowable acceleration for circular interpolation, time constant for acceleration/deceleration after interpolation, allowable speed difference at corner, maximum machining speed etc. are given.
The determination of the accuracy level by the parameter setting means is performed in the following manner. Machining type is initially recognized on the basis of the fixed cycle command. When the recognized machining type is finishing, the accuracy level is determined to be the highest grade of accuracy level. On the other hand, when the recognized machining type is rough cutting, a virtual corner portion where two straight lines intersect with each other is virtually set, and then the lowest grade of accuracy level among such accuracy levels that an arc-shaped movement trajectory of a tool moving around the virtual corner portion which depends on the parameters, and which touches the straight lines and is more distant from the virtual corner portion when the grade of the accuracy level is lower does not intersect with a linear offset line which is obtained by offsetting the two straight lines inwardly by a finishing allowance which is recognized from the fixed cycle command is recognized, thereby determining the accuracy level. It is noted that the term “inwardly” used above refers to the side on which the movement trajectory is set.
After the accuracy level is determined in this manner and the parameters are set, the feed mechanism is controlled by the drive control means on the basis of the set parameters and the fixed cycle command extracted by the program analyzing means and thereby the tool is moved relative to the workpiece. At this time, at an intersection portion of two linear movement paths, the tool is moved relatively along an arc-shaped movement trajectory which depends on the set parameters and which touches the linear movement paths and is more distant from the intersection portion when the grade of the accuracy level is lower.
Thus, according to the controller for machine tool of the present invention, when the machining type recognized from the fixed cycle command is finishing, the accuracy level is determined to be the highest grade of accuracy level and the parameters corresponding to the determined accuracy level are set, and when the machining type recognized from the fixed cycle command is rough cutting, the accuracy level is determined to be the lowest grade of accuracy level among such accuracy levels that the arc-shaped movement trajectory does not intersect with the linear offset line and the parameters corresponding to the determined accuracy level are set. Therefore, it is possible to shorten the machining time as much as possible while maintaining machining accuracy.
A configuration may be employed in which: the parameter setting means is configured to, when the machining type recognized from the fixed cycle command is a machining in which a cutting is performed a plurality of times, for cuttings corresponding to rough cutting thereof, determine, for each of them, the accuracy level to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with a linear offset line which is obtained by offsetting the two straight lines inwardly by the remaining amount to be machined that is the amount to be machined to remain after the cutting, and set the parameters corresponding to the determined accuracy level, and for a cutting corresponding to finishing thereof, determine the accuracy level to be the highest grade of the accuracy level and set the parameters corresponding to the determined accuracy level; and the drive control means is configured to relatively move the tool along an arc-shaped movement trajectory, which depends on the parameters being set by the parameter setting means for each cutting, at an intersection portion of two linear movement paths.
When thus configured, since the accuracy level is determined to the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with the linear offset line and the parameters are set based thereon for each of cuttings corresponding to rough cutting and the accuracy level is determined to be the highest grade of accuracy level and the parameters are set based thereon for a cuffing corresponding to finishing, similarly to the above, it is possible to shorten the machining time as much as possible while maintaining machining accuracy.
It is noted that a machining in which a cutting is preformed a plurality of times includes both a machining in which only rough cutting is performed and a machining in which finishing is performed after rough cutting is performed. In the case of a machining in which finishing is performed after rough cutting is performed, a cutting corresponding to rough cutting and a cutting corresponding to finishing are recognized on the data included in the fixed cycle command.
The parameter setting means may be configured to, when determining the accuracy level, raise the accuracy level grade by grade from the most lower grade and thereby determine the accuracy level to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with the linear offset line. When thus configured, it is possible to efficiently determine the accuracy level to be such an accuracy level that the machining time can be shortened without machining the workpiece too much.
The parameter setting means may be configured to, when determining the accuracy level, initially check whether the finishing allowance or the remaining amount to be machined is larger than a predetermined value, and when determining that it is larger than the predetermined value, raise the accuracy level grade by grade from the lowest grade and thereby determine the accuracy level to the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with the linear offset line, and when determining that it is smaller than the predetermined value, raise the accuracy level grade by grade from an intermediate grade and thereby determine the accuracy level to the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with the linear offset line.
It is not efficient to raise the accuracy level grade by grade from the lowest grade when the finishing allowance or the remaining amount of to be machined is small. Therefore, by, as described above, checking the size of the finishing allowance or remaining amount to be machined and raising the accuracy level grade by grade from an intermediate grade when the finishing allowance or the remaining amount to be machined is small, the accuracy level can be determined more efficiently. It is noted that the intermediate grade means a grade between the lowest grade and the highest grade.
The parameter setting means may be configured to, in a case of a machining in which a cutting is performed a plurality of times, when determining the accuracy level for cuttings after first cutting, raise the accuracy level grade by grade from the grade of the preceding cutting and thereby determine the accuracy level to the lowest grade of accuracy level among such accuracy levels that the movement trajectory does not intersect with the linear offset line.
It is not efficient to, when determining the accuracy level for each cutting, raise the accuracy level grade by grade from the lowest grade every time. Therefore, by, as described above, raising the accuracy level grade by grade from the grade of the preceding cutting, the accuracy level can be determined more efficiently.
Thus, according to the controller for machine tool of the present invention, it is possible to shorten machining time without reducing machining accuracy in machining a workpiece.
Hereinafter, a specific embodiment of the present invention will be described with reference to the accompanying drawings.
As shown in
A machining program related to a fixed cycle or a machining program including a machining program related to a fixed cycle, which is a machining program for performing a predetermined machining, is stored in the machining program storage section 11.
The fixed cycle makes it possible to specify a series of machining operations with a fewer number of blocks than usual for a machining such as circumferential cutting, pocket hole machining and drilling, for example. Its command (fixed cycle command) includes data on at least one or more of machining type, finishing allowance, feed speed, depth of cut per cutting, total depth of cut, number of times of cutting, etc.
The program analyzing section 12 analyzes the machining program stored in the program storage section 11 and extracts an operation command relating to movement position and feed speed of the tool T and the fixed cycle command. The extracted commands are stored in the analysis result storage section 13.
In the parameter storage section 14, parameters relating to the control of the operation of the feed mechanism 30 are stored. As the parameters, for example, maximum acceleration for acceleration/deceleration before interpolation, acceleration change time for acceleration/deceleration before interpolation, allowable amount of acceleration change, allowable amount of acceleration change for each axis at linear corner, rate of jerk change time for smooth-bell-shaped acceleration/deceleration, allowable acceleration for circular interpolation, time constant for acceleration/deceleration after interpolation, allowable speed difference at corner, maximum machining speed etc. are given.
Here, these parameters are briefly explained. Maximum acceleration for acceleration/deceleration before interpolation refers to the maximum acceleration at the time of acceleration/deceleration; acceleration change time for acceleration/deceleration before interpolation refers to the time before acceleration reaches the maximum acceleration at the time of acceleration/deceleration; allowable amount of acceleration change refers to an allowable value of the difference of acceleration occurring at an intersection of a linear command and a circular arc command; allowable amount of acceleration change for each axis at linear corner refers to an allowable value of the difference of acceleration occurring at an intersection of a linear command and a linear command; rate of jerk change time for smooth-bell-shaped acceleration/deceleration refers to the time before jerk reaches the maximum jerk at the time of acceleration/deceleration; allowable acceleration for circular interpolation refers to an allowable value of acceleration calculated from the relationship between acceleration and an error of circular arc radius occurring at the time of a circular interpolation command; time constant for acceleration/deceleration after interpolation refers to the time before speed on each feed axis reaches a specified speed; allowable speed difference at corner refers to an allowable value of the speed difference of each feed axis occurring at a corner portion; and maximum machining speed refers to the maximum speed which can be specified.
These parameters can be stored in any format. In the embodiment, for example, for each these parameters, as shown in
The parameter setting section 15 determines the accuracy level and sets the parameters corresponding to the accuracy level on the basis of the fixed cycle command stored in the analysis result storage section 13 and the parameters stored in the parameter storage section 14. The set parameters are stored in the set parameter storage section 16.
Specifically, the parameter setting section 15 performs a series of processings as shown in
In Step S3, when a determination is made that the finishing allowance is larger than the predetermined value, the accuracy level is set to L=1 (Step S4), and when a determination is made that the finishing allowance is smaller than the predetermined value, the accuracy level is set to L=5 (Step S5). Thereafter, a check is made whether the accuracy level is L=10, that is, whether the accuracy level is the highest grade of accuracy level (Step S6). It is noted that the predetermined value (threshold value) is determined depending on the accuracy level which is to be set when a determination is made that the finishing allowance is smaller than it (in the embodiment, accuracy level 5).
When, in Step S6, a determination is made that the accuracy level is not L=10, a value of each of the parameters when the accuracy level is L (1≦L≦9) is calculated on the basis of the linear equations for the parameters (Step S7), and a movement trajectory C of the tool T is calculated on the basis of the calculated parameter values and the recognized feed speed (Step S8).
Here, a method of calculating the movement trajectory C of the tool T is explained. Initially, as shown in
a) and 10(a) and
Subsequently, as shown in
The term “inwardly” used above refers to the side on which the movement trajectory C is set. The determination whether the movement trajectory C intersects with the linear offset line L3 can be made by finding whether the movement trajectory C and the linear offset line L3 have any intersection, and when they have an intersection, a determination is made that they intersect with each other.
On the other hand, when, in Step S10, a determination is made that they intersect with each other, the accuracy level is set to the grade higher by one (L=L+1) (Step S12), and the processings in and after Step S6 are performed again.
Furthermore, when, in Step S2, a determination is made that the machining type is finishing, and, when, in Step S6, a determination is made that the accuracy level is L=10, the accuracy level is determined to be accuracy level 10, that is, the highest grade of accuracy level, the value of each of the parameters when the accuracy level is accuracy level 10 is calculated on the basis of the linear equations for the parameters stored in the parameter storage section 14 (Step S13). In Step S14, the parameter values calculated in Step S7 or in Step S13 are set as the set values of the parameters, and the set values of the parameters are stored in the set parameter storage section 16. Then the series of processings described above is terminated.
The drive control section 17 is configured with an axial movement command generating section 18, an acceleration/deceleration calculating section 19, an axial specified position generating section 20 and a motor control section 21, and controls a drive motor configuring the feed mechanism 30 on the basis of the operation command and fixed cycle command stored in the analysis result storage section 13 and on the basis of the set values of the parameters stored in the set parameters storage section 16, thereby relatively moving the tool T and the workpiece W.
The axial movement command generating section 18 generates a command relating to movement position and feed speed of the tool T on the basis of the operation command and the fixed cycle command and on the basis of the set values of the parameters (for example, the parameters relating to allowable speed difference at corner and maximum machining speed).
The acceleration/deceleration calculating section 19 performs an acceleration/deceleration operation for the specified speed on the basis of the command relating to movement position and feed speed of the tool T generated by the axial movement command generating section 18 and on the basis of the set values of the parameters (for example, maximum acceleration for acceleration/deceleration before interpolation, acceleration change time for acceleration/deceleration before interpolation, allowable amount of acceleration change, rate of jerk change time for smooth-bell-shaped acceleration/deceleration, allowable acceleration for circular interpolation and allowable speed difference at corner).
The axial specified position generating section 20 generates a specified position for each feed axis on the basis of the values obtained from the acceleration/deceleration operation in the acceleration/deceleration calculating section 19 and on the basis of the set values of the parameters (for example, allowable amount of acceleration change for each axis at linear corner, time constant for acceleration/deceleration after interpolation and maximum machining speed).
The motor control section 21 controls the drive motor of the feed mechanism 30 on the basis of the specified positions for the feed axes generated by the axial specified position generating section 20.
When the tool T is moved at the intersection portion of two linear movement paths L1 and L2 by the axial movement command generating section 18, the acceleration/deceleration calculating section 19, the axial specified position generating section 20 and the motor control section 21, as shown in
According to the controller for NC machine tool 1 of the embodiment thus configured, a machining program and parameters are stored in advance in the program storage section 11 and in the parameter storage section 14, respectively. When the machining program stored in the program storage section 11 is preformed on the controller 1, the program analyzing section 12 analyzes the machining program stored in the machining program storage section 11 and extracts an operation command relating to movement position and feed speed of the tool T and a fixed cycle command, and the extracted commands are stored in the analysis result storage section 13.
Thereafter, the parameter setting section 15 determines the accuracy level and sets the values of the parameters corresponding to the determined accuracy level on the basis of the fixed cycle command stored in the analysis result storage section 13 and the parameters stored in the parameter storage section 14, and the set values of the parameters are stored in the set parameter storage section 16.
Subsequently, the drive motor of the feed mechanism 30 is controlled by the drive control section 17 on the basis of the fixed cycle command stored in the analysis result storage section 13 and the set values of the parameters stored in the set parameter storage section 16, thereby relatively moving the tool T and the workpiece W. At this time, at an intersection portion of two linear movement paths L1 and L2, the tool T is relatively moved along a movement trajectory C which touches the linear movement paths L1 and L2 and is more distant from the intersection portion when the grade of the accuracy level is lower.
Thus, according to the controller for NC machine tool 1 of the embodiment, when the machining type is finishing, the accuracy level is determined to be the highest grade of accuracy level and the parameters corresponding to the determined accuracy level are set, and when the machining type is rough cutting, the accuracy level is determined to be the lowest grade of accuracy level among such accuracy levels that the arc-shaped movement trajectory C do not intersect with the linear offset line L3 and the parameters corresponding to the determined accuracy level are set. Therefore, it is possible to shorten the machining time as much as possible while maintaining machining accuracy.
Further, in the determination of the accuracy level, a check is initially made whether the finishing allowance is larger than a predetermined value, and when a determination is made that it is larger than the predetermined value, the accuracy level is raised grade by grade from the lowest grade (accuracy level 1), and when a determination is made that it is smaller than the predetermined value, the accuracy level is raised grade by grade from an intermediate grade (in the embodiment, accuracy level 5). Then the accuracy level is determined to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory C does not intersect with the linear offset line L3. Therefore, it is prevented that the accuracy level is raised in sequence from the lowest grade even when the finishing allowance is small, and thereby it is possible to efficiently determine the accuracy level to be such an accuracy level that the machining time can be shortened without machining the workpiece W too much.
Thus, one embodiment of the present invention has been described. However, a specific mode in which the present invention can be realized is not limited thereto.
In the above embodiment, when the parameter setting section 15 determines the accuracy level, the size of the finishing allowance is checked, and when the finishing allowance is small, the accuracy level is raised grade by grade from accuracy level 5 that is an intermediate grade of accuracy level and is determined to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory C does not intersect with the linear offset line L3. However, the above-mentioned intermediate accuracy level is not limited to accuracy level 5. For example, the intermediate accuracy level may be accuracy level 3 or 4 or accuracy level 6 or 7.
Further, when the parameter setting section 15 determines the accuracy level, the size of the finishing allowance is checked, and the accuracy level is raised grade by grade from the lowest grade when the finishing allowance is large, and is raised grade by grade from an intermediate grade when the finishing allowance is small, and then is determined to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory C does not intersect with the linear offset line L3. However, the accuracy level may be always raised grade by grade from the lowest grade without checking the size of the finishing allowance.
The parameter setting section 15 may be configured to set the parameters for a machining in which a cutting is performed a plurality of times. As a machining in which a cutting is performed a plurality of times, for example, a series of machinings in which finishing is performed after rough cutting is performed as shown in
The parameter setting section 15 initially recognizes a fixed cycle command, that is, various data included in the fixed cycle command (for example, machining type, finishing allowance, feed speed for rough cutting, depth of cut per cutting in rough cutting, total depth of cut etc.) (Step S21), and then checks whether the recognized machining type is a machining in which a cutting is preformed a plurality of times (Step S22). When a determination is made that it is a machining in which a cutting is preformed a plurality of times, the parameter setting section 15 calculates the number of times of cutting N in rough cutting on the basis of the recognized finishing allowance, depth of cut per cutting in rough cutting, and total depth of cut, and recognizes the calculated number (Step S23). The number of times of cutting N in rough cutting can be calculated from, for example, N=(U−S)/T, wherein S is the finishing allowance, T is the depth of cut per cutting in rough cutting, and U is the total depth of cut.
Thereafter, a counter n is set to 1 (Step S24), and the accuracy level is set to L=1 (Step S25), and the remaining amount to be machined is calculated for the first cutting (Step S26). The remaining amount to be machined refers to, as shown in
Subsequently, a check is made whether the calculated remaining amount to be machined is zero (Step S27). When a determination is made that it is not zero, a check is made whether the accuracy level is L=10 (the highest grade of accuracy level) (Step S28). When a determination is made that the accuracy level is not L=10, the values of the parameters when the accuracy level is L (1≦L≦9) are calculated on the basis of the linear equations for the parameters (Step S29), and a movement trajectory C of the tool T is calculated in the same manner as described above on the basis of the calculated parameter values and the recognized feed speed (Step S30).
Then, as shown in
When a determination is made that they do not intersect with each other, the accuracy level is determined to be this accuracy level (L(1≦L≦9)) (Step S33), and the process proceeds to Step S36.
On the other hand, when, in Step S32, a determination is made that they intersect with each other, the accuracy level is raised to the grade higher by one (L=L+1) (Step S34), and the processings in and after Step S28 are preformed again.
When, in Step S27, a determination is made that the remaining amount to be machined is zero, and when, in Step S28, a determination is made that the accuracy level is L=10, the accuracy level is determined to be 10 (the highest grade of accuracy level). In this case, the values of the parameters when the accuracy level is 10 are calculated on the basis of the linear equations for the parameters stored in the parameter storage section 14 (Step S35). In Step S36, the parameter values calculated in Step S29 or in Step S35 are set as the set values of the parameters for the first cutting, and the set values of the parameters are stored in the set parameter storage section 16.
Then, while updating the counter n, the parameters are set for each cutting and the set values are stored in the set parameter storage section 16 (Steps S37, S38). For each of cuttings after the first cutting, the accuracy level is set to the same grade of accuracy level as that of the preceding cutting (Step S39), and the processings in and after Step S26 are performed. When the parameters have been set for all cuttings, that is, when the counter n becomes equal with the recognized number of times of cutting N (Step S37), the series of processings described above is terminated.
Further, also when, in Step S22, a determination is made that the machining type is not a machining in which a cutting is performed a plurality of times, the process is terminated. In this case, the parameters are set by performing the processings shown in
The amount to be machined (the remaining amount to be machined) which remains after the second cutting can be calculated by subtracting the depth of cut for the first cutting the depth of cut for the second cutting from the total depth of cutting as shown in
The parameter setting section 15 sets the parameters for each cutting in rough cutting in this manner. Further, in a case where finishing is preformed after rough cutting is performed, for the cutting in the finishing, the parameter setting section 15 determines the accuracy level to be 10 (the highest grade of accuracy level) and calculates the values of the parameters when the accuracy level is 10 on the basis of the linear equations for the parameters stored in the parameter storage section 14 and sets the calculated parameter values as the set values of the parameters, and the set values of the parameters are stored in the set parameter storage section 16.
A determination whether finishing is performed after rough cutting can be made by checking whether the machining type included in the fixed cycle command is a series of machinings in which finishing is performed after rough cutting or a machining in which only rough cutting is performed. Further, because, in a case where finishing is performed after rough cutting, the fixed cycle command includes not only data on the rough cutting but also data on the finishing, the determination can be also made by checking whether data on finishing is included in the fixed cycle command.
Further, similarly to the above, the drive control section 17 controls the drive motor configuring the feed mechanism 30 on the basis of the operation command and fixed cycle command stored in the analysis result storage section 13 and on the basis of the set values of the parameters relating to cuttings in rough cutting or the set values of the parameters related to cuttings in rough cutting and relating to a cutting in finishing, which are stored in the set parameter storage section 16.
Also when the parameter setting section 15 and the drive control section 17 are thus configured, similarly to the above, it is possible to shorten the machining time as much as possible while maintaining machining accuracy. Further, since, in determining the accuracy level for cuttings after the first cutting, the accuracy level is raised grade by grade from the accuracy level of the preceding cutting and is determined to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory C does not intersect with the linear offset line 3, it is prevented that the accuracy level is raised in sequence from the lowest grade every time, and thereby it is possible to efficiently determine the accuracy level to be such an accuracy level that the machining time can be shorten without machining the workpiece W too much.
In the determination of the accuracy level, the accuracy level may be determined to be the lowest grade of accuracy level among such accuracy levels that the movement trajectory C does not intersect with the linear offset line L3 in such a manner that, similarly to the above, a check is made whether the remaining amount to be machined is larger than a predetermined value and when a determination is made that it is larger than the predetermined value, the accuracy level is raised grade by grade from the lowest grade (accuracy level 1) and when a determination is made that it is smaller than the predetermined value, the accuracy level is raised grade by grade from an intermediate grade (for example, accuracy level 5) instead of raising the accuracy level grade by grade from the grade of the preceding cutting.
Further, in the above embodiments, for the parameters, linear equations showing the relationship between accuracy level and parameter values are stored in the parameter storage section 14. However, the format of the parameters is not limited thereto, and parameter values for each accuracy level may be stored in the parameter storage section 14 instead. In this case, the parameter setting section 15 stores, as the set values of the parameters, the parameter values corresponding to the determined accuracy level in the set parameter storage section 16.
The parameter setting section 15 is configured to, when determining that the movement trajectory C intersects with the linear offset line L3, raise the accuracy level to the grade higher by one and check whether the movement trajectory C at the time of this accuracy level intersects with the linear offset line L3. However, the parameter setting section 15 may be configured to, when determining that the movement trajectory C intersects with the linear offset line 3, to calculate how much they intersect with each other, that is, how much the workpiece W is excessively machined, and raise the accuracy level by two grade when the amount of excessive machining is too large.
Furthermore, the parameter setting section 15 may be configured to recognize machining type from a G code included in the fixed cycle command or from data on finishing allowance included in the fixed cycle command. Further, the determination of accuracy level and the setting of parameters may be performed when the workpiece W is actually machined or when a machining simulation is preformed.
Number | Date | Country | Kind |
---|---|---|---|
2010-018246 | Jan 2010 | JP | national |