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

Measuring cycles hmi sl.

The measuring points are approached at distance _FA from the sphere lateral surface
(setpoint sphere diameter). Measuring point P1 is approached first. After joint positioning of
abscissa and ordinate, the applicate is lowered to the height of the center point setpoint of
the applicate and the 1st measurement is taken radially in the direction center point setpont
abscissa/ordinate.
Then P2 to P3 and P4 are measured on a circular path with feedrate _RF and measured in
the same way as P1.
The applicate is positioned from P4 or P3 to a distance _FA above the sphere and then
approached in the abscissa and ordinate of the calculated actual value point (P5). The last
measurement is taken: in the minus direction of the applicate.
After this measurement, the applicate is positioned to safety height (height as beginning of
the cycle).
When 3 spheres are measured the abscissa and ordinate are positioned simultaneously
toward measuring point P1 of the next sphere and continued as described above.
No sphere fixture or other obstacle must be located in this entire traversing range.
The sum of the starting angle _STA1 and all incremental angles _INCA may not exceed 360
degrees.
Position after end of measuring cycle
At the end of the cycle the probe is located above the first calculated actual center point of
the 3rd or only sphere at safety height (height same as at beginning of cycle).
5.9.3

## Programming example CYCLE997

Determining positional deviations in space
Three spheres each with a diameter of 50 mm are measured. Sphere center points 1 to 3
are expected for (X,Y,Z)=(100, 100, 100), (600, 100, 100) and (1100, 1100, 100).
ZO compensation of the active frame is to be performed in accordance with the measured
values. The exact diameter of the sphere is known.
A measured sphere lateral surface with a maximum deviation of ± 5 mm is expected
( --> _FA=5).
Fixture of workpiece (ZO) with G54: NVx, NVy, NVz
Measuring cycles
Programming Manual, 03/2009 Edition, 6FC5398-4BP10-2BA0
Measuring Cycles for Milling and Machining Centers
5.9 CYCLE997 workpiece: Measuring a sphere and ZO determination
233