Coordinate transformation (FRAMES)
5.6 Frame calculation from three measuring points in space (MEAFRAME)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
299
Note
Quality of the measurement
In order to map the measured coordinates onto the ideal coordinates using a rotation and a
translation, the triangle formed by the measured points must be congruent to the ideal
triangle. This is achieved by means of a compensation algorithm that minimizes the sum of
squared deviations needed to reshape the measured triangle into the ideal triangle.
Since the effective distortion can be used to judge the quality of the measurement,
MEAFRAME
returns it as an additional variable.
Note
The frame created by
MEAFRAME can be transformed by the ADDFRAME function into another
frame in the frame chain as from SW 6.3.
Example: Chaining of frames "concatenation with ADDFRAME".
Further information for the parameters for
ADDFRAME(FRAME, STRING) see
/FB1/ Function Manual Basic Functions; Axes, Coordinate Systems, Frames (K2), "FRAME
Chaining".
Example
Program code Comments
; Part program 1
DEF FRAME CORR_FRAME
Setting measuring points
Programming Comments
DEF REAL IDEAL_POINT[3,3] = SET(10.0,0.0,0.0, 0.0,10.0,0.0,
0.0,0.0,10.0)
DEF REAL MEAS_POINT[3,3] = SET
(10.1,0.2,-0.2, -0.2,10.2,0.1, -0.2,0.2,9.8)
; for test
DEF REAL FIT_QUALITY = 0
DEF REAL ROT_FRAME_LIMIT = 5 ; Permits max. 5 degrees rotation of
the part position
DEF REAL FIT_QUALITY_LIMIT = 3 ; Permits max. 3 mm offset between
the ideal and the measured
triangle
DEF REAL SHOW_MCS_POS1[3]
DEF REAL SHOW_MCS_POS2[3]
DEF REAL SHOW_MCS_POS3[3]