EasyManua.ls Logo

Siemens SINUMERIK Series

Siemens SINUMERIK Series
956 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
M5: Measurement
7.5 Setting zeros, workpiece measuring and tool measuring
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
467
Example
x edge measurement
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
T1 D1
g0 x0 y0 z0 f10000
G54
;Measure x edge
$AC_MEAS_VALID = 0 ; Set all input values to invalid
g1 x-1 y-3 ; 1. Approach measuring point
$AA_MEAS_POINT1[x] = $AA_IW[x]
$AA_MEAS_POINT1[y] = $AA_IW[y]
$AA_MEAS_POINT1[z] = $AA_IW[z]
$AC_MEAS_DIR_APPROACH = 0 ; Set approach direction +x
$AA_MEAS_SETPOINT[x] = 0 ; Set setpoint position of the edge
$AA_MEAS_SETPOINT[y] = 0
$AA_MEAS_SETPOINT[z] = 0
$AC_MEAS_ACT_PLANE = 0 ; Measuring plane is G17
$AC_MEAS_FRAME_SELECT = 101 ; Select frame - IFRAME
$AC_MEAS_T_NUMBER = 1 ; Select tool
$AC_MEAS_D_NUMBER = 1
$AC_MEAS_TYPE = 1 ; Set measurement type for x edge
RETVAL = MEASURE() ; Start measuring process

Table of Contents

Other manuals for Siemens SINUMERIK Series

Related product manuals