HEIDENHAIN TNC 640 (34059x-05) Cycle programming User Manual
Page 518

Touch Probe Cycles: Automatic Datum Setting
15.14 Example: Datum setting in center of a circular segment and on top
surface of workpiece
15
518
TNC 640 | User's Manual Cycle Programming | 1/2015
15.14
Example: Datum setting in center
of a circular segment and on top
surface of workpiece
0 BEGIN PGM CYC413 MM
1 TOOL CALL 69 Z
Call tool 0 to define the touch probe axis
2 TCH PROBE 413 DATUM OUTSIDE CIRCLE
Q321=+25
;CENTER 1ST AXIS
Center of circle: X coordinate
Q322=+25
;CENTER 2ND AXIS
Center of circle: Y coordinate
Q262=30
;NOMINAL DIAMETER
Circle diameter
Q325=+90
;STARTING ANGLE
Polar coordinate angle for 1st touch point
Q247=+45
;STEPPING ANGLE
Stepping angle for calculating the starting points 2 to 4
Q261=-5
;MEASURING HEIGHT
Coordinate in the touch probe axis in which the
measurement is made
Q320=2
;SET-UP CLEARANCE
Safety clearance in addition to SET_UP column
Q260=+10
;CLEARANCE HEIGHT
Height in the touch probe axis at which the probe can
traverse without collision
Q301=0
;MOVE TO CLEARANCE
Do not move to clearance height between measuring points
Q305=0
;NO. IN TABLE
Set display
Q331=+0
;DATUM
Set the display in X to 0
Q332=+10
;DATUM
Set the display in Y to 10
Q303=+0
;MEAS. VALUE TRANSFER
Without function, since display is to be set
Q381=1
;PROBE IN TS AXIS
Also set datum in the touch probe axis
Q382=+25
;1ST CO. FOR TS AXIS
X coordinate of touch point
Q383=+25
;2ND CO. FOR TS AXIS
Y coordinate of touch point
Q384=+25
;3RD CO. FOR TS AXIS
Z coordinate of touch point
Q333=+0
;DATUM
Set the display in Z to 0
Q423=4
;NO. OF PROBE POINTS
Measure circle with 4 probes
Q365=0
;TYPE OF TRAVERSE
Move on circular path between measuring points
3 CALL PGM 35K47
Call part program
4 END PGM CYC413 MM