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
479
Program code Comment
$P_CHBFRAME[0] = crot(z,45)
$P_IFRAME[x,tr] = -sin(45)
$P_IFRAME[y,tr] = -sin(45)
$P_PFRAME[z,rt] = -45
;Measure groove
$AC_MEAS_VALID = 0 ; Set all input values to invalid
g1 x-2 ; 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]
g1 x4 ; 2. Approach measuring point
$AA_MEAS_POINT2[x] = $AA_IW[x]
$AA_MEAS_POINT2[y] = $AA_IW[y]
$AA_MEAS_POINT2[z] = $AA_IW[z]
$AA_MEAS_SETPOINT[x] = 0 ; Set setpoint position of the groove center
$AA_MEAS_SETPOINT[y] = 0
$AA_MEAS_SETPOINT[z] = 0
$AC_MEAS_DIR_APPROACH = 0 ; Set approach direction +x
$AC_MEAS_ACT_PLANE = 0 ; Measuring plane is G17
$AC_MEAS_FRAME_SELECT = 0 ; Select frame - SETFRAME
$AC_MEAS_T_NUMBER = 1 ; Select tool
$AC_MEAS_D_NUMBER = 1
$AC_MEAS_TYPE = 12 ; Set measuring type on groove
RETVAL = MEASURE() ; Start measuring process
if RETVAL <> 0 setal(61000 + RETVAL)
endif
$P_SETFRAME = $AC_MEAS_FRAME
$P_SETFR = $P_SETFRAME ; Describe system frame in data management
g1 x0 y0 ; Approach the groove center
m30

Table of Contents

Other manuals for Siemens SINUMERIK Series

Related product manuals