Method for capturing tool path and device thereof
11511380 ยท 2022-11-29
Assignee
Inventors
- Yu-Ling Chang (Taichung, TW)
- Chih-Yuan Hsu (Kaohsiung, TW)
- Guo-Wei Wang (Tainan, TW)
- Yu-An Tseng (Taichung, TW)
- Yung-Sheng Chang (Taichung, TW)
- Bei-Hua Yang (Pingtung County, TW)
- Chia-Chun Li (Taichung, TW)
- Shuo-Peng Liang (Taichung, TW)
Cpc classification
B23Q15/013
PERFORMING OPERATIONS; TRANSPORTING
G05B19/182
PHYSICS
G06F2113/10
PHYSICS
B33Y50/02
PERFORMING OPERATIONS; TRANSPORTING
B29C64/393
PERFORMING OPERATIONS; TRANSPORTING
International classification
B23Q15/013
PERFORMING OPERATIONS; TRANSPORTING
B23Q15/08
PERFORMING OPERATIONS; TRANSPORTING
G05B19/416
PHYSICS
Abstract
A method for capturing a tool path, applicable to a machine tool having a controller and furnished with a tooling, includes the steps of: obtaining a data update frequency of the controller; calculating a feed rate of the controller, determining whether or not the feed rate is obtained, going to next step if positive, and going to the previous step if negative; reading G-codes of the controller to confirm the feed rate; and, based on the confirmed feed rate, recording machine coordinates transmitted from the controller for synthesizing a tool path file. The tool path file is used for simulation and analysis of machining of the machine tool. In addition, a device for capturing the tool path is also provided.
Claims
1. A method for capturing a tool path, applicable to a machine tool having a controller and furnished with a tooling, comprising the steps of: (a) obtaining a data update frequency of the controller; (b) calculating a feed rate of the controller, determining whether or not the feed rate is obtained, going to step (c) if positive, and going to the step (a) if negative; (c) reading G-codes of the controller to confirm the feed rate; and (d) based on the confirmed feed rate, recording machine coordinates transmitted from the controller for synthesizing a tool path file.
2. The method for capturing a tool path of claim 1, further including the following steps between the step (c) and the step (d): (c1) determining whether or not the feed rate is equal to a setting value, going to step (c2) if negative, and going to the step (d) if positive; and (c2) setting an overwrite value to adjust the confirmed feed rate.
3. The method for capturing a tool path of claim 2, wherein the overwrite value is a percentage.
4. The method for capturing a tool path of claim 1, wherein the step (b) includes the steps of: (b1) transmitting a move instruction to the machine tool; (b2) the machine tool performing the move instruction; (b3) reading the machine coordinates, and recording corresponding current times; (b4) determining whether or not the machine coordinates are varied, going to step (b5) if positive, and going back to step (b3) if negative; (b5) updating the machine coordinates and the current times; (b6) determining whether or not the move instruction is already performed, going to step (b7) if positive, and going back to the step (b3) if negative; and (b7) based on a difference between a real path and an ideal path, calculating the feed rate.
5. The method for capturing a tool path of claim 4, wherein, in the step (b1), a test program is transmitted to the controller, and the test program includes the move instruction.
6. The method for capturing a tool path of claim 1, wherein the feed rate includes a linear-path feed rate and a curve-path feed rate.
7. A device for capturing a tool path, coupled electrically with a controller of a machine tool, comprising: a communication-frequency analysis unit, used for obtaining a data update frequency of the controller, and for calculating a suitable feed rate of the controller; a cutting-speed control unit, used for evaluating a feed rate and G-codes of the controller to confirm the feed rate; and a tool-path capture unit, used for evaluating the confirmed feed rate to receive machine coordinates transmitted from the controller for synthesizing a tool path file.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present disclosure will become more fully understood from the detailed description given herein below and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present disclosure and wherein:
(2)
(3)
(4)
(5)
DETAILED DESCRIPTION
(6) In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
(7) Referring now to
(8) The machine tool 20 can be a computer numerical control (CNC) machine tool, and the controller 21 can be a CNC controller thereto. The controller 21 is used for transmitting relative machining parameters of the machine tool 20 (for example, coordinates of a cutting path) to the device 10 in a periodical manner. In one exemplary example, the controller 21 can transmit or update a set of data for every 5 ms. Namely, a data update frequency of the controller 21 is one per 5 ms. However, according to this disclosure, this frequency is not fixed, but can be varied per practical requirements. Thus, the device 10 shall determine a suitable update frequency for the controller 21 in advance, such that the capturing or sampling accuracy in reconstructing machine coordinates can be upheld. For instance, if the update frequency is set too high, then the tool-path reconstruction precision would be high as well, but the associated calculations would be huge and definitely time-consuming.
(9) Referring to both
(10) Step 102: Start the method.
(11) Step 104: Obtain the data update frequency for the controller 21 of the machine tool 20, and calculate a cutting speed or a feed rate for the tooling. The device 10 evaluates the update frequency to receive continuous machine coordinates transmitted from the controller 21. Within a running period of the test program, the machine coordinates are used for calculating the feed rate (mm/sec) of the tooling. In this embodiment, the communication-frequency analysis unit 11 of
(12) Step 106: Detection continues till all the suitable feed rates are obtained for all individual paths. If negative, then go back to perform Step 104 for obtaining all the suitable feed rates. In this disclosure, Step 106 can be integrated with Step 104 as a single step.
(13) Step 108: Read the G-codes from the test program of the controller, and confirm the feed rates. In this step, based on the G-codes of the test program to confirm the suitable feed rate for each path. In this disclosure, the G-codes for the machining program includes linear cutting instructions and curve cutting instructions. For example, the feed rate of a linear path may be greater than that of a curve path, so that the capturing time can be substantially saved. Herein, the machining program is different to the aforesaid test program of Step 104. In this embodiment, the cutting-speed control unit 12 of
(14) Step 110: Determine whether or not the feed rate is equal to the setting value. If negative, then go to perform Step 112. If positive, go to perform Step 114. In this embodiment, the setting value is simply determined according to practical requirements so as for providing a reference basis, and thus is not fixed. In another embodiment not shown herein, Step 110 is omitted.
(15) Step 112: Set an overwrite value for possible feed override and for adjusting the feed rate. While it is determined that, in Step S108, the feed rate is not equal to the setting value (i.e., either greater or smaller), then the overwrite value is set moderately to be higher or lower than the feed rate, so that the suitable feed rate can be obtained. In this embodiment, the overwrite value is a percentage. In another embodiment not shown herein, Step 112 can be omitted.
(16) Step 114: Record the machine coordinates. According to the last, i.e., the final of the confirmed feed rate, the controller is amended to receive a plurality of continuous machine coordinates by the update frequency, and the plurality of continuous machine coordinates is collected into a cluster of machine coordinates for synthesizing a tool path file. In this embodiment, the tool-path capture unit 13 of
(17) Step 116: Determine whether or not an end of the machining program is met. If positive, then the method would be ended (i.e., go to Step 118). If negative, then go back to Step 108.
(18) Step 118: End of the method.
(19) Referring now to both
(20) Step 1041: Start.
(21) Step 1042: Transmit a move instruction to the machine tool 20. The test program is transmitted to the controller 21, and thus the controller 21 can order the machine tool 20 to perform a linear or curve movement so as to produce continuously machine coordinates. The test program for the machine tool 20 to simulate machining may include a plurality of move instructions.
(22) Step 1043: The machine tool 20 performs the move instruction.
(23) Step 1044: Read the machine coordinates, and record the corresponding instant time. In other word, different coordinates on the tooling path are read, and assigned with individual tike labels for comparisons in the following steps.
(24) Step 1045: Determine whether or not the machine coordinates are varied. If positive, then perform Step 1046. If negative, go back to perform Step 1044 to keep reading and recording. In this embodiment, a change in specific coordinates implies that the tooling path meets a change; for example, from a linear path to a curve path, from a curve path to a linear path, or when the tooling path is deviated.
(25) Step 1046: Record the coordinate with updated time difference. Upon when the machine coordinates are determined to be varied in Step 1045, the new (i.e., the different) machine coordinates are assigned with corresponding time labels for comparison in the following steps.
(26) Step 1047: Determine whether or not the test program meets an end. If positive, go to Step 1048. If negative, then go back to Step 1044.
(27) Step 1048: Based on the difference between the real path and the ideal path, the suitable feed rate can be calculated. While the test program is determined to meet the end in Step 1047, the suitable feed rate can be calculated by analyzing tooling feed rates fat different time labels.
(28) Step 1049: End.
(29) As the aforesaid steps are completed, then the suitable feed rate can be obtained, and Step 106 of
(30) Referring now to
(31) As shown in
(32) In summary, the method and device for capturing a tool path provided by this disclosure can evaluate the communication frequency of the controller of the machine tool can calculate a more suitable feed rate. In this disclosure, even that, in this disclosure, calculations of the feed rate are not limited to any specific algorithm and any brand of the controller or interpreter, and also no macro instruction is required; yet the cutting speed of the machine tool can be controlled more accurately, the execution time can be shorter, and the precision of the tool path can be ensured.
(33) With respect to the above description then, it is to be realized that the optimum dimensional relationships for the parts of the disclosure, to include variations in size, materials, shape, form, function and manner of operation, assembly and use, are deemed readily apparent and obvious to one skilled in the art, and all equivalent relationships to those illustrated in the drawings and described in the specification are intended to be encompassed by the present disclosure.