6
Frames 12.98
6.8 Frame calculation from three measurin
oints in the area
6
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
Siemens AG 2000. All rights reserved
6-210
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
Programming
MEAFRAME(IDEAL_POINT,MEAS_POINT,FIT_QUALITY)
Explanation of the commands
MEAFRAME
Frame calculation of 3 measured points in space
IDEAL_POINT
2-dim. array of real data containing the three coordinates of the ideal points
MEAS_POINT
2-dim. array of real data containing the three coordinates of the measured points
FIT_QUALITY
Variable of type real returning the following information:
−
1: The ideal points are located approximately on a straight line: The frame
could not be calculated. The frame variable returned contains a neutral
frame.
−
2: The measured points are located approximately on a straight line:
The frame could not be calculated. The frame variable returned
contains a neutral frame.
−
4: The calculation of the rotation matrix failed for a different reason
Positive value:
Sum of the distortions (distances between the points) needed to reshape
the measured triangle into one that is congruent to the ideal triangle.
Application example
; Part program 1
;
DEF FRAME CORR_FRAME
;
; Setting measured points
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; allows max. 5
o
rotation of the part position
DEF REAL FIT_QUALITY_LIMIT = 3; allows max. 3 mm distortion 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]
; =======================================================
;
N100 G01 G90 F5000
N110 X0 Y0 Z0
;
N200 CORR_FRAME=MEAFRAME(IDEAL_POINT,MEAS_POINT,FIT_QUALITY)
;