The present disclosure relates to machining technologies, and more particularly to a system and method for machining a surface of a workpiece.
A surface of a workpiece can be machined by a machining tool of a computer numerical control (CNC) device. A precision of flatness of the surface of the workpiece can be measured after being machined.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
Several definitions that apply throughout this disclosure will now be presented.
The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
In general, the word “module” as used hereinafter refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware such as in an erasable-programmable read-only memory (EPROM). It will be appreciated that the modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
The computing device 100 can include a first storage device 10, a first processing device 11, and a first machining program 12. The first machining program 12 can include a plurality of modules (shown in
The CNC device 200 can include a second storage device 20, a second processing device 21, a clamping device 22, a scanning device 23, a machining tool 24, an optical scale 25, and a second machining program 26. The clamping device 22 can clamp the workpiece to move the workpiece to a worktable (not shown) for machining. The scanning device 23 can scan the surface of the workpiece. In at least one embodiment, the scanning device 23 can include three laser emitters (not shown). Laser points emitted by the laser emitters can form a plane on the surface of the workpiece. The machining tool 24 can machine the surface of the workpiece. The optical scale 25 can measure a coordinate value of a plurality of points of the surface of the workpiece. The second machining program 26 can include one or more software programs in the form of computerized codes stored in the second storage device 20. The computerized codes can include instructions executed by the second processing device 21 to provide functions for the second machining program 26.
Referring to
The scanning module 121 can control the scanning device of the CNC device to scan a plurality of points of the surface of the workpiece. The plurality of points can include a first set of points.
The data acquiring module 122 can obtain a plane formed by the first set of points scanned by the scanning device, and set the plane as an XY plane of an XYZ coordinate system. In at least one embodiment, a number of the first set of points is three.
The aligning module 123 can align an axis of the CNC device 200 according to the XY plane. The axis of the CNC device 200 can be aligned to within five degrees of a normal vector of the XY plane.
The plurality of points scanned by the scanning module 121 can further include a second set of points. In at least one embodiment, a number of the second set of points is at least four. The second set of points can include four points corresponding to four corners of a rectangular area of the surface of the workpiece to be machined. The processing module 124 can calculate a plane of best fit from the second set of points, and set the plane of best fit as a reference plane. The reference plane is set to be coplanar with the XY plane. The plane of best fit can be calculated by determining a minimum value calculated from the following equation:
wherein:
The processing module 124 also can calculate a flatness of the surface of the workpiece according to the reference plane.
The path generating module 125 can define a plurality of rectangular sections of the rectangular area of the workpiece to be machined, and set a start point and an end point of each rectangular section. A continuous machining path is obtained by connecting the start and end points together. The continuous machining path starts from the start point of a first rectangular section, and ends at the end point of a last rectangular section. The first rectangular section and the last rectangular section can be located at opposite sides of the rectangular area. In at least one embodiment, a width of each rectangular section is not greater than three times a precision of a flatness of the surface of the workpiece. For example, if the surface of the workpiece requires a precision of 0.001 mm, then the width of each rectangular section is not greater than 0.003 mm.
During a machining process, the scanning module 121 can control the scanning device to scan a plurality of sets of points of each rectangular section. Each set of points can include three points not on a same line, and each set of points can form a plane. The optical scale of the CNC device can measure a Z-coordinate position of each point scanned by the scanning device. The processing module 124 can determine a Z-coordinate position of a center point of each plane, and calculate a Z-coordinate difference between the center point of each plane and the reference plane. The processing module 124 can report the Z-coordinate difference to the second machining program of the CNC device, and the CNC device can adjust a Z-coordinate position of the machining tool according to the Z-coordinate difference to machine the surface of the workpiece. The Z-coordinate position of the machining tool can be adjusted for each set of points scanned of each rectangular section. The controlling module 126 can control the machining tool to machine the surface of the workpiece by following the continuous machining path while the scanning device scans the plurality of sets of points of each rectangular section. When the machining tool reaches the end point of a rectangular section, the controlling module 126 controls the machining tool to move to the start point of a next rectangular section, until the machining tool reaches the end point of the last rectangular section.
When the machining tool reaches the end point of the last rectangular section, the processing module 124 can recalculate the reference plane of the surface of the workpiece. The determining module 127 can determine whether the flatness precision of the recalculated reference plane is qualified. If the flatness precision of the recalculated reference plane is unqualified, the surface of the workpiece can be machined again as described above.
At block 401, a first set of points of the surface of the workpiece can be obtained. The first set of points can form a plane, and a plane of the first set of points can be set as an XY plane of an XYZ coordinate system.
At block 402, an angle between an axis of a machining tool and a normal vector of the XY coordinate plane can be adjusted to be within a predetermined angle. In at least one embodiment, the predetermined angle is 5 degrees.
At block 403, a second set of points of the surface of the workpiece can be obtained. The second set of points can include four points corresponding to four corners of a rectangular area to be machined. A plane of best fit can be calculated from the second set of points, and the plane of best fit can be set as a reference plane. The reference plane is coplanar with the XY plane.
At block 404, a flatness of the surface of the workpiece can be calculated according to the reference plane.
At block 405, a plurality of rectangular sections of the rectangular area can be defined, and a start point and end point of each rectangular section can be defined. A continuous machining path for machining the workpiece can be set according to the start and end points. The continuous machining path can start from the start point of a first rectangular section, and end at the end point of a last rectangular section. The first rectangular section and the last rectangular section can be located at opposite sides of the rectangular area.
At block 406, a machining tool can be controlled to machine the surface of the workpiece along the continuous machining path while a plurality of sets of points of the rectangular section currently being machined is scanned. Each set of points can form a plane. A Z-coordinate difference between a center point of the plane of each set of points and the reference plane can be calculated. A Z-coordinate position of the machining tool for machining the surface of the workpiece can be adjusted for each plane according to the Z-coordinate difference.
At block 407, the reference plane can be recalculated after all of the rectangular sections have been machined. Whether a flatness precision of the recalculated reference plane is qualified can be determined. If the flatness precision of the recalculated reference plane is not qualified, block 403 can be implemented. If the flatness precision of the recalculated reference plane is qualified, the method ends.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including, the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410441190.0 | Sep 2014 | CN | national |