3  Measuring Cycle Auxiliary Programs 07.90
3.2.10  L966 Prepositioning cycle (external)
Example: ZO determination at a workpiece with cycle L978 in the X and Y axes
without L970
Probe length (Z axis) in tool offset memory D99 (value 50)
%MPF 9782
N5 G54 T200  
 T No. probe; ZO selection
N10 G00 G90 X-20 Y25  
 Position probe to face the measuring surface in X/Y
N15 Z10 D99  
 Position probe in Z TO selection
N20 R10=1 R11=10 R22=1 R23=0  
 Define parameters for measuring cycle
R25=0 R27=1 R28=2 R30=1
R32=0 R36=3
N25 L978  
 Cycle call for ZO determination in X axis
N30 G00 X-20  
 Retraction in X axis
N35 Y-20  
 Positioning in Y axis
N40 X50  
 Positioning in X axis
N45 R11=11 R30=2  
 Define parameters for measuring cycle
N50 L978  
 ZO determination in Y axis
N55 G00 Y-20  
 Retraction in Y axis
N60 Z100  
 Retraction in Z axis
N65 X-40 Y80  
 Retraction in X/Y
.
.
Machining centre program
.
.
N900 M30
Example: ZO determination at a wokpiece with cycle L978 in the X and Y axes with
L970
Probe length (Z axis) in the tool offset memory D99 (value 50)
%MPF 9783
N5 G54 T200   T No. probe; ZO selection
N10 R23=1 R25=0 R30 =1 R32=-20 L970   Position probe to face
 
R30=2 R32=25 L970   the measuring surface in X/Y
N15 R30=3 R32=10 D99 L970   Position probe in Z
TO selection
N20 R10=1 R11=10 R22=1 R23=0   Define parameters for measuring cycle
R25=0 R27=1 R28=2 R30=1
R32=0 R36=3
N25 L978   Cycle call for ZO determination in 
      X axis
N30 R23=1 R30 =1 R32=-20 L970  Retraction in X axis
N35 R30=2 R32=-20 L970   Positioning in Y axis
N40 R30=1 R32=50 L970   Positioning in X axis
N45 R11=11 R23=0 R30=2 R32=0   Define parameters for measuring cycle
N50 L978   ZO determination in Y axis
N55 R23=1 R30 =2 R32=-20 L970  Retraction in Y axis
N60 R30=3 R32=100 L970   Retraction in Z axis
N65 R30=1 R32=-40 L970   Retraction in X/Y
R30=2 R32=80 L970
.
.
Machining centre program
.
.
3–8 © Siemens AG 1990 All Rights Reserved      6FC5197- AB70
SINUMERIK 840/850/880 (BN)