Siemens SINUMERIK Series Function Manual page 506

Extended functions
Hide thumbs Also See for SINUMERIK Series:
Table of Contents

Advertisement

M5: Measurement
7.5 Setting zeros, workpiece measuring and tool measuring
Input variable
$AC_MEAS_ACT_PLANE
$AC_MEAS_TYPE
* optional
The following output variables are written for measurement type 10:
Output variable
$AC_MEAS_TOOL_LENGTH
$AC_MEAS_RESULTS[0]
$AC_MEAS_RESULTS[1]
$AC_MEAS_RESULTS[2]
$AC_MEAS_RESULTS[3]
$AC_MEAS_RESULTS[4]
$AC_MEAS_RESULTS[5]
Example
Measuring the tool length
Program code
DEF INT RETVAL
T0 D0
g0 x0 y0 z0 f10000
$AC_MEAS_VALID = 0
g1 z10
$AC_MEAS_LATCH[0] = 1
$AC_MEAS_DIR_APPROACH = 5
$AA_MEAS_SETPOINT[x] = 0
$AA_MEAS_SETPOINT[y] = 0
$AA_MEAS_SETPOINT[z] = 0
$AC_MEAS_ACT_PLANE = 0
$AC_MEAS_T_NUMBER = 0
$AC_MEAS_D_NUMBER = 0
$AC_MEAS_TYPE = 10
RETVAL = MEASURE()
if RETVAL <> 0 setal(61000 + RETVAL)
endif
if $AC_MEAS_TOOL_LENGTH <> 10
setal(61000 + $AC_MEAS_TOOL_LENGTH)
endif
m30
506
Meaning
Calculated as active plane unless otherwise specified *
10
Meaning
Tool length
Tool length in x
Tool length in y
Tool length in z
Tool length L1
Tool length L2
Tool length L3
Comment
; Measure tool length
; Set all input values to invalid
; Move tool towards reference part
; Pick up measuring point 1
; Set approach direction -z
; Set reference position
; Measuring plane is G17
; No tool has been selected
; Set measuring type on tool length
, Start measuring process
; Query known tool length
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 828d

Table of Contents