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
494 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
The following output variables are written for measurement type 20:
Output variable Meaning
$AC_MEAS_FRAME Result frame with rotations and translation
Example
2-dimensional setpoint selection
Program code Comment
DEF INT RETVAL
DEF REAL _CORMW_XX,
_CORMW_YY,
_CORMW_ZZ
DEF AXIS _XX, _YY, _ZZ
T1 D1 ; Activate probe
G54 ; Activate all frames and G54
$AC_MEAS_VALID = 0 ; Set all input values to invalid
$AC_MEAS_TYPE = 20 ; Set measurement type for 2-dimensional
setpoint selection
$AC_MEAS_ACT_PLANE = 0 ; Measuring plane is G17
_XX=$P_AXN1 ; Define axes according to the plane
_YY=$P_AXN2
_ZZ=$P_AXN3
; Assign measured values
$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 applicate
$AA_MEAS_SETPOINT[_xx] = 10 ; Define setpoint for abscissa and ordinate
$AA_MEAS_SETPOINT[_yy] = 10
$AC_MEAS_FRAME_SELECT = 102 ; Select target frame - G55
RETVAL = MEASURE() ; Start measurement calculation
if RETVAL <> 0
setal(61000 + RETVAL)
endif
$P_UIFR[2] = $AC_MEAS_FRAME ; Write measurement frame in data management
(G55)
G55 G0 AX[_xx]=10 AX[_yy]=10 ; Activate frame and traverse
m30

Table of Contents

Other manuals for Siemens SINUMERIK Series

Related product manuals