Measurement (M5)Setting zeros, workpiece measuring and tool measuringExtended FunctionsFunction Manual, 03/2009, 6FC5397-1BP10-4BA0 665ExampleWorkpiece coordinate system on the inclined planeDEF INT RETVALDEF AXIS _XX, _YY, _ZZT1 D1 ; Activate probeG54 ; Activate all frames and G54$AC_MEAS_VALID = 0 ; Set all input values to invalid$AC_MEAS_TYPE = 18 ; Set measurement type for oblique plane$AC_MEAS_ACT_PLANE = 0 ; Measuring plane is G17_XX=$P_AXN1 ; Define axes according to the plane_YY=$P_AXN2_ZZ=$P_AXN3G17 G1 _XX=10 _YY=10 F1000 ; Approach 1st measuring pointMEAS = 1 _ZZ=...$AA_MEAS_POINT1[_xx] = $AA_MW[_xx] ; Assign measurement value to abscissa$AA_MEAS_POINT1[_yy] = $AA_MW[_yy] ; Assign measurement value to ordinate$AA_MEAS_POINT1[_zz] = $AA_MW[_zz] ; Assign measurement value to applicateG1 _XX=20 _YY=10 F1000 ; Approach 2nd measuring pointMEAS = 1 _ZZ=...$AA_MEAS_POINT2[_xx] = $AA_MW[_xx] ; Assign measurement value to abscissa$AA_MEAS_POINT2[_yy] = $AA_MW[_yy] ; Assign measurement value to ordinate$AA_MEAS_POINT2[_zz] = $AA_MW[_zz] ; Assign measurement value to applicateG1 _XX=20 _YY=20 F1000 ; Approach 3rd measuring pointMEAS = 1 _ZZ=...$AA_MEAS_POINT3[_xx] = $AA_MW[_xx] ; Assign measurement value to abscissa$AA_MEAS_POINT3[_yy] = $AA_MW[_yy] ; Assign measurement value to ordinate$AA_MEAS_POINT3[_zz] = $AA_MW[_zz] ; Assign measurement value to applicate$AA_MEAS_SETPOINT[_xx] = 10 ; Define setpoints for P1$AA_MEAS_SETPOINT[_yy] = 10$AA_MEAS_SETPOINT[_zz] = 10$AC_MEAS_FRAME_SELECT = 102 ; Select target frame - G55