1. Technical Field
Embodiments of the present disclosure relate to error compensation techniques, and particularly to a computing device and a method for compensating for perpendicular errors of three-coordinate measuring machines.
2. Description of Related Art
A three-coordinate measuring machine is a device for measuring the physical dimensions of an object in three dimensions (three-dimensional (3D) device). This measuring machine may be manually controlled by an operator or it may be computer controlled. Measurements are made by a probe attached to third axes of this measuring machine.
The three axes of the measuring machine include an X-axis, a Y-axis, and a Z-axis. For a variety of reasons, the X-axis, the Y-axis, and the Z-axis may be not be perfectly perpendicular. Thus, measurements made by the measuring machine may be not accurate.
In general, the word “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, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. 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 other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The computing device 1 may be a computer, a server, or a personal digital assistant (PDA), or the like. The computing device 1 includes a perpendicular error compensation system 10. The computing device 1 may further include components such as a storage unit 11, a processing unit 12, a display unit 13, and a bus 14. The computing device 1 may be configured in a number of other ways and may include other or different components.
The perpendicular error compensation system 10 includes a number of function modules, such as a data acquiring module 101, a computation module 102, and a compensation module 103. The function modules 101-103 may include computerized code in the form of one or more programs, and provide at least the functions needed to execute the steps illustrated in following
The storage unit 11 may include some type(s) of non-transitory computer-readable storage medium, such as a hard disk drive, a compact disc, a digital video disc, or a tape drive. The storage unit 11 stores the computerized code of the function modules 101 to 103 of the perpendicular error compensation system 10. The storage unit 11 also stores data needed or generated by the perpendicular error compensation system 10.
The processing unit 12 may include a processor, a microprocessor, an application-specific integrated circuit (ASIC), and a field-programmable gate array, (FPGA) for example. The processing unit 12 may execute the computerized code of the function modules 101 to 103 of the perpendicular error compensation system 10 to realize the functions of the perpendicular error compensation system 10 illustrated as follows.
The display unit 13 may include one or more output mechanisms, including a display or a printer, for example.
The bus 14 permits intercommunication among the components, such as the measuring program management system 10, the storage unit 11, the processing unit 12, and the display unit 13.
The computing device 1 communicates with a data acquiring device 3, for controlling the data acquiring device 3 to move on the X-axis 20, the Y-axis 21, and the Z-axis 22 in turn, enable a probe 30 of the data acquiring device 3 makes contacts with the X-axis 20, the Y-axis 21, and the Z-axis 22 during movement of the data acquiring device 3 to generate a plurality of touched points. For example, during moving on the X-axis 20, the probe 30 is controlled to make contact with the X-axis 20 at the beginning of the movement to generate the first touched point. After touching, the probe 30 is controlled to lift up to not contact with the X-axis 20. The probe 30 is controlled to make contact with the X-axis 20 again after the probe 30 has moved a predetermined distance, such as 10 millimeters, to generate the second touched point. After touching, the probe 30 is controlled to lift up again, and the like.
In step S01, the data acquiring module 101 controls the data acquiring device 3 to move on the X-axis 20, the Y-axis 21, and the Z-axis 22 of the measuring machine 2 in turn, to generate touched points on the X-axis 20, the Y-axis 21, and the Z-axis 22, and acquire coordinates of the touched points in a coordinate system 23 of the measuring machine 2. In detail, the data acquiring module 101 may, for example, firstly control the data acquiring device 3 to move on the X-axis 20, then, control the data acquiring device 3 to move on the Y-axis 21, and finally, control the data acquiring device 3 to move on the Z-axis 22 of the measuring machine 2. In other embodiments, the data acquiring module 101 may firstly control the data acquiring device 3 to move on the Z-axis 22, then, control the data acquiring device 3 to move on the X-axis 20, and finally, control the data acquiring device 3 to move on the Y-axis 21 of the measuring machine 2 or apply any other sequence of movements.
In step S02, the data acquiring module 101 records the coordinates of the touched points on the X-axis 20, the Y-axis 21, and the Z-axis 22 respectively into an X array, a Y array, and a Z array. In detail, the data acquiring module 101 records the coordinates of the touched points generated when the data acquiring device 3 is made to move on the X-axis 20 into the X array, records the coordinates of the touched points generated when the data acquiring device 3 is made to move on the Y-axis 21 into the Y array, and records the coordinates of the touched points generated when the data acquiring device 3 is made to move on the Z-axis 20 into the Z array. The X array may include {(X11, Y11, Z11), (X12, Y12, Z12), (X13, Y13, Z13) . . . (X1n, Y1n, Z1n)}, the Y array may include {(X21, Y21, Z21), (X22, Y22, Z22), (X23, Y23, Z23) . . . (X2n, Y2n, Z2n)}, and the Z array may include {(X31, Y31, Z31), (X32, Y32, Z32), (X33, Y33, Z33) . . . (X3n, Y3n, Z3n)} for example. It may be understood that, if the X-axis 20, the Y-axis 21, and the Z-axis 22 are perfectly perpendicular, the coordinates in the X array may be {(X11, Y11, Z11), (X12, Y11, Z11), (X13, Y11, Z11) . . . (X1n, Y11, Z11)}. However, because the X-axis 20, the Y-axis 21, and the Z-axis 22 are not exactly perpendicular, when X-coordinates of points on the X-axis change, the Y-coordinates and the Z-coordinates of the points also changed.
In step S03, the computation module 102 computes a perpendicular error Axy of the X-axis 20 and the Y-axis 21, a perpendicular error Axz of the X-axis 20 and the Z-axis 22, and a perpendicular error Ayz of the Y-axis 21 and the Z-axis 22 using the coordinates in the X array, the Y array, and the Z array.
In one embodiment, the computation module 102 computes a mean coordinates (
After the mean coordinates have been computed, the computation module 102 constructs a line Lx using an origin O which has the coordinates (0, 0, 0) and a first point which has the coordinates (
After the lines Lx, Ly, and Lz have been constructed, the computation module 102 computes an angle βxy between the line Lx and the line Ly an angle βxz between the line Lx and the line Lz, and an angle βyz between the line Ly and the line Lz. In one embodiment, cos βxy=Lx2+Ly2−Lxy2/2LxLy, where
Lx=√{square root over ((X1−0)2+(Y1−0)2+(Z1−0))}{square root over ((X1−0)2+(Y1−0)2+(Z1−0))}{square root over ((X1−0)2+(Y1−0)2+(Z1−0))}2,
Ly=√{square root over ((X2−0)2+(Y2−0)2+(Z2−0))}{square root over ((X2−0)2+(Y2−0)2+(Z2−0))}{square root over ((X2−0)2+(Y2−0)2+(Z2−0))}2, and
Lxy=√{square root over ((X1−X2)2+(Y1−Y2)2+(Z1−Z2))}{square root over ((X1−X2)2+(Y1−Y2)2+(Z1−Z2))}{square root over ((X1−X2)2+(Y1−Y2)2+(Z1−Z2))}2.
The formulas of computing the angle βxz and the angle βyz are similar. The lines Lx, Ly, and Lz and the angles βxy, βxz, and βyz are illustrated in
The computation module 102 then computes the perpendicular error Axy of the X-axis 20 and the Y-axis 21 according to the angle βxy, the perpendicular error Axz of the X-axis 20 and the Z-axis 22 according to the angle βxz, and the perpendicular error Ayz of the Y-axis 21 and the Z-axis 22 according to the angle βyz. In one embodiment, Axy=90−βxy, Axz=90−βxz, and Ayzz=90−βyz.
In step S04, the perpendicular errors Axy, Axz and Ayz are stored into a compensation record in the storage unit 11 and may be outputted by the display unit 13.
In step S05, the compensation module 103 compensates for measurement results generated by the measuring machine 2 when measuring a three-dimensional object using the compensation record. The compensation record may be applied at the time
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110389677.5 | Nov 2011 | CN | national |