M5: Measurement
7.5 Setting zeros, workpiece measuring and tool measuring
Extended Functions
474 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
The values of the following variables are evaluated for measurement type 8:
Input variable Meaning
$AC_MEAS_VALID Validity bits for input variables
$AA_MEAS_POINT1[axis] Measuring point 1
$AA_MEAS_POINT2[axis] Measuring point 2
$AA_MEAS_POINT3[axis] Measuring point 3
$AA_MEAS_POINT4[axis] When specified, the center is determined from four
points *
$AA_MEAS_SETPOINT[axis] Setpoint position of hole center *
$AC_MEAS_ACT_PLANE Calculated as active plane unless otherwise specified *
$AC_MEAS_FINE_TRANS 0: Coarse offset, 1: Fine offset *
$AC_MEAS_FRAME_SELECT Calculated as additive frame unless otherwise
specified *
$AC_MEAS_T_NUMBER Calculated as active T unless otherwise specified (T0)
*
$AC_MEAS_D_NUMBER Calculated as active D unless otherwise specified (D0)
*
$AC_MEAS_TYPE 8
* optional
The following output variables are written for measurement type 8:
Output variable Meaning
$AC_MEAS_FRAME Result frame with translation
$AC_MEAS_DIAMETER Diameter of hole
$AC_MEAS_RESULTS[0] Abscissa of the calculated center point
$AC_MEAS_RESULTS[1] Ordinate of the calculated center point
$AC_MEAS_RESULTS[2] Applicate of the calculated center point
$AC_MEAS_RESULTS[3] Quality of the circle adjustment: Sum of the distance
squares
Example
Measuring a hole
Program code Comment
DEF INT RETVAL
DEF FRAME TMP
$TC_DP1[1,1]=120 ; Type
$TC_DP2[1,1]=20 ; 0
$TC_DP3[1,1]=10 ; (z) length compensation vector
$TC_DP4[1,1]=0 ; (y)
$TC_DP5[1,1]=0 ; (x)
$TC_DP6[1,1]=2 ; Radius