M5: Measurement
7.5 Setting zeros, workpiece measuring and tool measuring
Extended Functions
476 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Program code Comment
$P_SETFRAME = $AC_MEAS_FRAME
$P_SETFR = $P_SETFRAME ; Describe system frame in data management
g1 x-3 y0 ; Approach P1
g2 I = $AC_MEAS_DIAMETER / 2 ; Approach hole in reference to the center of
the circle
m30
7.5.3.4 Measurement of a shaft (measurement type 9)
Measuring points for determining a shaft ($AC_MEAS_TYPE = 9)
Three measuring points are needed to determine the center point and diameter. The three
points must all be different. When four points are specified, the circle is adjusted in
accordance with the least square method. The circle is determined so that the sum of the
distance squares of the points to the circle is minimal. The quality of the adjustment can be
read.
*
'
\
]
*
'
]
[
*
'
[
\
Figure 7-7 Shaft
The values of the following variables are evaluated for measurement type 9:
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