This application claims priority benefit of TW Patent Application Ser. No. 104102963 filed 2015 Jan. 29 which is hereby incorporated herein by reference its entirety.
1. Field of the Invention
The present invention is related to a trajectory planning system for integrated computer numerical control (CNC) machine, trajectory planning device, a trajectory planning method, and a computer program product thereof. More particularly, the present invention is related to a trajectory planning system, a trajectory planning device, a trajectory planning method, and a computer program product thereof which can promote processing velocity.
2. Description of the Prior Art
In automatic manufacturing industry, the trajectory planning issue affects the manufacture quality and manufacture times deeply. When the structure of processing product becomes more and more complex, it may raise the processing velocity variance of the processing trajectory. For planning aforementioned high order trajectory planning, present CNC machine needs to adjust the trajectory processing velocity constantly and causes the excessive velocity variance. However, the excessive velocity variance will reduce the manufacture speed and manufacture quality.
To solve aforementioned trajectory planning problem, prior art provides a NURBS (Non-Uniform Rational B-Splines) model to synthesis high order processing trajectory. However, only few of high order controllers support NURBS algorithm. Therefore, for processing the high order processing trajectory, the mechanical industry needs to replace existing CNC controller, and thus increases the overall manufacture costs.
In summary, providing a technical means which can plan high order trajectory and can be applied in normal controller is a technical issue need to be solved in the technical field.
To solve the previous technical problems, one objective of the present application is providing trajectory planning system for integrated computer numerical control (CNC) machine, trajectory planning device, trajectory planning method, and computer program product thereof.
To achieve the aforementioned objective, the present application provides a trajectory planning device for configuring processing trajectory. Aforementioned device configures a processing velocity parameter or processing velocity parameter of a related processing segment according to segment type of the processing segment. And the CNC machine operates the mechanical processing according to the smoothed processing acceleration so as to promote manufacturing quality and manufacturing speed.
To achieve the aforementioned objective, the present application provides a trajectory planning method for configuring processing trajectory. The aforementioned method comprises following steps: configuring a processing velocity parameter or a processing acceleration parameter of a related processing segment according to segment type of the processing segment so as to provide a processing trajectory.
To achieve the aforementioned objective, the present application provides a computer program product for configuring processing trajectory. While loading and executing the computer program product, the computer device is able to accomplish steps of the aforementioned method.
To achieve the aforementioned objective, the present application provides a trajectory planning configuring system which integrates a computer numerical control (CNC) machine. The aforementioned system comprises a CNC machine, and trajectory planning device. The trajectory planning device connects with the CNC machine and configures the CNC machine executing the processing operation according to the processing setting.
In summary, the technique feature of present application analyzes each segment type of processing segment to adjust the processing velocity or the acceleration, and uses a general controller that is able to provide smoothly processing trajectory.
For a better understanding of the aforementioned embodiments of the invention, as well as, additional embodiments thereof, reference should be made to the Description of Embodiments below, in conjunction with the following drawings in which like reference numerals refer to corresponding parts throughout the figures.
The following description of embodiments of the present invention is illustrative, and not intended to limit the scope, of the present invention.
The aforementioned processing segment 21 comprises processing location information, velocity information or acceleration information, etc. In the present embodiment, the processing segment may be a linear segment or a curved segment. The processing setting comprises previous segment processing setting 231 and present segment processing setting 232.
Furthermore, when the trajectory planning device 1 acquired processing position, velocity, and acceleration of present processing segment, the internal first determining module 11 determines the present setting value whether exceeding the controlling machine allowed condition 22. The aforementioned allowed condition 22 comprises allowed velocity parameter, allowed acceleration parameter, etc. The trajectory planning device 1 outputs the processing setting to the CNC machine 3 by the output port 13 when the present setting doesn't exceed the allowed condition 22. While the present setting exceeds the allowed condition 22, the second determining module 12 optimizes and assigns new processing velocity/acceleration to the CNC machine 3 according to the processing position, processing velocity, and processing acceleration of the present and previous processing segments.
Compared with the prior art, using the NURBS to synthesize the processing trajectory from processing path, device 1 of present application divides and planes the processing path into a plurality of processing segments 21, including linear segment (CNC code: G01), and curved segment (CNC code: G02/G03), then the trajectory planning device 1 optimizes and adjusts whole processing segments. For example, while the trajectory planning device 1 determines the processing segment 21 is linear segment, then configures the tangent acceleration of the processing velocity of processing segment 21; while the trajectory planning device 1 determines the processing segment 21 is curved segment, and then configures the tangent acceleration and normal acceleration. In another one embodiment, aforementioned normal acceleration (accelerationnormal) may be expressed by the Equation (1).
Wherein, v is tangent velocity of the curved segment, ρ is curvature radius of the curved segment, and et is a unit vector at a tangent direction of the curved segment.
The complex processing path usually comprises large number of linear segments and curved segments. Therefore, the trajectory planning device 1 further configures the processing velocity parameter (vi) of present processing segment according to the velocity parameter of previous processing segment and velocity parameter of present processing segment.
In another embodiment, the setting of processing velocity parameter (vi) may be expressed as Equation (2):
Wherein, i is index value of processing segments 21, vi-1 is the processing velocity parameter of the previous processing segment, amax is an allowed maximum acceleration, dmax is a allowed maximum deceleration, piremain is a segment length of the present processing segment 21.
The present application may select blending algorithm, look-ahead algorithm, or look-backward algorithm to optimize the processing setting of the whole processing path. The optimizing operation is shown in
The optimizing operation procedure is expressed as following steps:
S101: calculating velocity parameters of i processing segments 21.
S102: analyzing velocity parameter of processing segment 21 (e.g. tangent velocity Vt, normal velocity Vn, tangent acceleration at, or normal acceleration an) whether complying the allowed condition? (Yes, executing S106; No, executing S103)
S103: recalculating the i-th processing segment 21 to the first processing segment, and determining i=0? (Yes, executing S106; No, executing S104)
S104: i=i−1.
S105: calculating the velocity parameter (velocity/acceleration) of the i-th processing segment 21.
S106: assigning the processing segment which velocity/acceleration comply the allowed condition.
END.
In another embodiment, aforementioned tangent acceleration (at) may be expressed in Equation (3):
The aforementioned normal acceleration (an) is expressed in Equation (4), as follows:
The present application further provides a second embodiment providing a trajectory planning method for configuring the processing trajectory. The aforementioned method includes the step of configuring the processing velocity or the processing acceleration of a related processing segment according to segment type of the processing segment, and then providing a processing trajectory.
Aforementioned method further determines the processing segment whether a linear segment or curved segment so as to configure the tangent acceleration or normal acceleration of related processing segment.
The forementioned method further determines if the processing segment is curved, and then configures the normal acceleration of the processing segment. The normal acceleration is configured by the tangent acceleration of the curved segment and curvature radius.
The aforementioned method further configures the processing velocity parameter of present processing segment according to the velocity parameter of previous processing segment and present processing segment.
The aforementioned method further analyzes the processing velocity to determine whether to comply an allowed condition so as to configure the tangent acceleration or normal acceleration of the processing velocity.
The present application further provides a third embodiment providing a computer program product for configuring the processing trajectory wherein the computer device loads and executes the computer program product so then the computer device is able to accomplish steps of the second embodiment.
The present invention further provides a forth embodiment providing a trajectory planning configuring system which integrates computer numerical control (CNC) machine. The system comprises aforementioned trajectory planning device 1, and a CNC machine. The CNC machine may adopt the Gantry Hybrid CNC which has multiple processing axes (x, y, v), however the type of CNC machine is not limited as aforementioned type. The trajectory planning device 1 connects with the CNC machine, and configures the CNC to execute the processing operation according to the processing setting.
The above disclosure is related to the detailed technical contents and inventive features thereof. People skilled in this field may proceed with a variety of modifications and replacements based on the disclosures and suggestions of the invention as described without departing from the characteristics thereof. Nevertheless, although such modifications and replacements are not fully disclosed in the above descriptions, they have substantially been covered in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
104102963 | Jan 2015 | TW | national |