1. Technical Field
Embodiments of the present disclosure generally relate to object measurement methods, and more particularly to a method for measurement of flatness of objects using an electronic device thereof.
2. Description of Related Art
A measuring machine is used in the industry to measure manufactured parts. The measuring of the manufactured part can determine if the manufactured part meets design specifications and can provide information for improvements in process control. For example, the measuring machine can measure a flatness of the manufactured part. In common methods, the flatness of workpieces are measured one by one. This method requires lengthy application time, and the accuracy of the measurement may not be total. Therefore, an improved s method is desirable to address the aforementioned issues.
In general, the term “module,” as used herein, 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 EPROM. It will be appreciated that 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 non-transitory computer-readable medium or computer storage device.
In one embodiment, the electronic device 1 may be a computer, a server, a portable electronic device, or any other electronic device that includes a storage system 12, and at least one processor 14. In one embodiment, the storage system 12 may be a magnetic or an optical storage system, such as a hard disk drive, an optical drive, a compact disc, a digital video disc, a tape drive, or other suitable storage medium. The processor 14 may be a central processing unit including a math co-processor, for example.
The electronic device 1 is electronically connected to a display device 3. The display device 3 is configured for indicating the flatness of each object 5, and reporting information as to quality control.
The establishing module 100 establishes a first coordinate system for the worktable 22 of the measuring machine 2. In the embodiment, two objects 5 can be held by the fixture tool 4 where the fixture tool 4 is positioned on a surface of the worktable 22 of the measuring machine 2. The measuring machine 2 has two laser heads 20, and each of the two laser heads 20 is vertically above one object 5. For example, if two objects “a” and “b” are held down by the fixture tool 4 which is sitting on the worktable 22, and the measuring machine 2 has two laser heads “c” and “d,” the laser head “c” is just above the object “a,” and the laser head “d” is just above the object “b.” The laser head “c” is used for scanning the measuring points of the object “a,” and the laser head “d” is used for scanning the measuring points of the object “b.”
The setting module 112 sets two groups of horizontal scanning points for each of the objects 5, and sets two groups of vertical scanning points for each of the objects 5. Each of the groups of scanning points includes a start scanning point and an end scanning point. As shown in
The control module 104 controls the two laser heads 20 to measure the objects 5 by scanning the groups of scanning points on the objects 5, and obtains coordinate values for each of the groups of scanning points for a first coordinate system. In detail, the control module 104 controls the two laser heads 20 to scan each of the groups of scanning points from the start scanning point to the end scanning point of each of the scanning points. The coordinate values of each of the objects 5 include an x-axis value, a y-axis value, and a z-axis value.
The calibration module 106 calibrates the first coordinate system and establishes a second coordinate system based on the coordinate values.
In detail, the calibration module 106 determines whether one of the laser heads 20 has scanned a point by detecting whether the z-axis value is a null value, means that detecting whether the z-axis value is zero. For example, the object 5 may be a computer keyboard, and the laser head 20 needs to measure the keys in the keyboard. If the z-axis value is not a null value, the calibration module 106 can determine that the laser head 20 has scanned at least one key of the keyboard. If the z-axis value shows a null value, the calibration module 106 can determine that the laser head 20 has scanned a gap between two keys of the keyboard. Following this method, the calibration module 106 can detect all the points scanned by the laser head 20 in each group of scanning points of the object 5. Next, the calibration module 106 finds as the first scanning point and the last scanning point the first and last points where the z-axis values do not have a null value in each group of scanning points. The calibration module 106 calculates a midpoint of the first and last scanning points in each group of scanning points, connects each of the calculated midpoints in the horizontal direction to obtain a horizontal line, and connects each of the midpoints in the vertical direction to obtain a vertical line. Each of the horizontal lines and the vertical lines have an intersection point. The calibration module 106 establishes the second coordinate system by taking each intersection point as an origin, by regarding the horizontal line as the x-axis, and by regarding the vertical line as the y-axis of the second coordinate system.
As shown in
The control module 104 further controls the two laser heads 20 to measure the objects 5 by reference to the second coordinate system, and obtains measurement data of the objects 5.
The calculation module 108 calculates a flatness of each of the objects 5 based on measurements taken according to the second coordinate system. Supposing there are N scanning points Pi (xi, yi, zi), where i=1, 2, . . . , N, on a surface of the object 5, and an equation of the surface is: z=Ax+By +C, and an objective function of the plane is
According to an extremum principle, if a user wants to obtain a minimum value of the objective function F (A, B, C),
then:
where:
(l, m, n) is a normal vector of the surface. The flatness of the object 5 is equal to a total of a maximum distance between a point above the surface and a maximum distance between a point under the surface. The distance can be established according to the formula:
The report module 110 displays an indication of the flatness of each of the objects 5 on the display device 3. Furthermore, the report module 110 determines whether the flatness of each of the objects 5 is within a predetermined range according to the requirements of quality control. If the flatness of one of the objects 5 is within the predetermined range, the report module 110 reports that the object 5 is acceptable, and displays indication of the flatness in a first color. If the flatness of any object 5 is not within the predetermined range, the report module 110 reports that the object 5 is not acceptable, and marks the relevant indication in a different second color.
In block S01, a fixture tool 4 for holding down more than one object 5 is installed in a worktable 22 of the measuring machine 2, and the establishing module 100 may begin to establish a first coordinate system for the worktable 22. In the embodiment, two objects 5 are held down by the fixture tool 4, and the fixture tool 4 is sitting on the worktable 22. The measuring machine 2 has two laser heads 20, and each of the two laser heads 20 is vertically above one object 5. For example, the laser head “c” is just above the object “a” for scanning the measuring points of the object “a,” and the laser head “d” is just above the object “b” for scanning the measuring points of the object “b.”
In block S02, the setting module 112 sets two groups of horizontal scanning points for each of the objects 5, and sets two groups of vertical scanning points for each of the objects 5. Each of the groups of scanning points includes a start scanning point and an end scanning point.
In block S03, the control module 104 controls the two laser heads 20 to measure the objects 5 by scanning the groups of scanning points relating to each object 5, and obtains coordinate values of each of the groups of scanning points for the first coordinate system. In detail, the control module 104 controls the two laser heads 20 to scan each of the groups of scanning points from the start scanning point to the end scanning point. The coordinate values for each of the scanning points include an x-axis value, a y-axis value, and a z-axis value.
In block S04, the calibration module 106 calibrates a first coordinate system and establishes a second coordinate system based on the coordinate values.
In block S05, the control module 104 controls the two laser heads 20 to measure the objects 5 according to a second coordinate system. The calculation module 108 calculates a flatness of each of the objects 5 according to the measurements taken in relation to the second coordinate system. The indication(s) as to the flatness of each of the objects 5 are displayed on the display device 3.
In block S06, the report module 110 determines whether the flatness of each of the objects 5 is within a certain predetermined range, and reports that the object 5 is within or outside the range. In detail, if the flatness of one object 5 is within the predetermined range, the report module 110 reports that the object 5 is acceptable, and indicates the flatness in a first color on the display screen 3. If the flatness of any object 5 is not within the predetermined range, the report module 110 reports that the object 5 is unacceptable, and indicates the flatness in a different second color on the display screen 3.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110078574.7 | Mar 2011 | CN | national |