EasyManua.ls Logo

Siemens SINUMERIK Series - Page 482

Siemens SINUMERIK Series
956 pages
Print Icon
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
482 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Example
Reference point setting in relative coordinate systems.
Program code Comment
DEF INT RETVAL
T1 D1 ; Activate probe
G54 ; Activate all frames and G54
TRANS x=10 ; Offset between WCS and ENS
G0 x0 f10000 ; WCS(x) = 0; ENS(x) = 10
$AC_MEAS_VALID = 0 ; Set all input variables to invalid
$AC_MEAS_TYPE = 14 ; Measuring type for preset actual value
memory
$AC_MEAS_ACT_PLANE = 0 ; Measuring plane is G17
$AC_MEAS_P1_COORD = 5 ; ENS_REL for 1st measuring point
$AC_MEAS_LATCH[0] = 1 ; Pick up all axis positions
$AC_MEAS_SET_COORD = 5 ; Setpoint position is relative to ENS
$AA_MEAS_SETPOINT[x] = 0 ; Setpoint position in the relative ENS
coordinate system
$AC_MEAS_FRAME_SELECT = 2505 ; $P_RELFR
RETVAL = MEASURE() ; Calculation of $P_RELFR; PI SETUDT(6)
IF RETVAL <> 0 GOTOF ERROR
ENDIF $ P_RELFR = $AC_MEAS_FRAME ; Activation; PI SETUDT(7)
Preset actual value memory for special axes only ($AC MEAS TYPE = 15)
This measurement type is used on the HMI operator interface.
$6HW$6HW$6HW
$$FW
$$FW
$$FW
6SHFLDOD[HV
Figure 7-11 Preset actual value memory for special axes only

Table of Contents

Other manuals for Siemens SINUMERIK Series

Related product manuals