M5: Measurement
7.5 Setting zeros, workpiece measuring and tool measuring
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
471
Input variable Meaning
$AA_MEAS_POINT3[axis] Measuring point 3
$AA_MEAS_POINT4[axis] Measuring point 4 irrelevant for
$AC_MEAS_CORNER_SETANGLE
$AA_MEAS_WP_SETANGLE Setpoint workpiece position angle *
$AA_MEAS_CORNER_SETANGLE Setpoint angle of intersection *
$AA_MEAS_SETPOINT[axis] Setpoint position of corner *
$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_INPUT[0] Without specification of outer corner *
=0: Measurement for outer corner
=1: Measurement for inner corner
$AC_MEAS_TYPE 4, 5, 6, 7
* optional
The following variables are written for measurement types 4 to 7:
Output variable Meaning
$AC_MEAS_FRAME Result frame with translation and rotation
$AC_MEAS_WP_ANGLE Calculated workpiece position angle
$AC_MEAS_CORNER_ANGLE Calculated angle of intersection
$AC_MEAS_RESULTS[0] Abscissa of calculated vertex
$AC_MEAS_RESULTS[1] Ordinate of calculated vertex
$AC_MEAS_RESULTS[2] Applicate of calculated vertex
Example
Corner measurement C1: Corner with three measuring points (P1, P3 and P4) and known
angle of intersection ϕ (90°) and unknown workpiece position angle α.
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)