# Programming Example 2 - Siemens SINUMERIK 840D sl Programming Manual

Measuring cycles hmi sl. Measuring Cycles for Milling and Machining Centers
5.2 CYCLE971 tool: Measuring milling tools, drills
N80 SUPA X70 Z100
N85 _MA=1
N90 CYCLE971
N100 SUPA Z100
N110 SUPA X10
N120 CYCLE971
N130 SUPA Z100
N140 _MA=3
N150 CYCLE971
N160 M2
Explanation of example 1
The new trigger values in -X, +X, -Y, +Y, and -Z are stored in the global data of tool probe 1
(_PRNUM=1) _TP[0,0...4] if they deviate by more than 0.005 mm (_TZL=0.005) from the old
values. Deviations of up to 5 mm (_TSA=5) are permissible.
5.2.3.3

## Programming example 2

Calibrate tool probe in minus X (workpiece-related)
Values of the calibration tool T7 D1:
Tool type (DP1):
Length 1 - geometry (DP3).
Radius - geometry (DP6):
Values of the settable ZO for G54:
Displacement:
Rotation around:
Values of the tool probe 1 in data block
GUD6, approximate values before
calibration begins (workpiece-related):
_TPW[0,0] = 50
_TPW[0,1] = 28
_TPW[0,2] = 42
_TPW[0,3] = 20
_TPW[0,4] = 80
_TPW[0,9] = 4
102
120
L1 = 20.000
R = 5.000
X = 60, Y = 15, Z = 30
X = 0, Y = 0, Z = 18
degrees
;Retract probe in X axis and Z axis, rapid
traverse
;Calibration in the X axis
;Calibration in minus X direction
;Retract from probe in Z axis, rapid
traverse
;
;In X axis move to position from which
;calibration in the plus direction is
possible
;Calibration in plus X direction
;Traverse up in infeed axis
;Calibration in the Z axis on G17
;Calibration in minus Z direction
;End of program
Programming Manual, 03/2009 Edition, 6FC5398-4BP10-2BA0
Measuring cycles  