Example: Presetting on top surface of workpiece and at center of a bolt hole circle

The control will write the measured bolt-hole circle center to the preset table so that it may be used at a later time.

  • Q291 = Polar coordinate angle for first hole center 1
  • Q292 = Polar coordinate angle for second hole center 2
  • Q293 = Polar coordinate angle for third hole center 3
  • Q305 = Write center of bolt hole circle (X and Y) to row 1
  • Q303 = In the preset table PRESET.PR, save the calculated preset referenced to the machine-based coordinate system (REF system)

0 BEGIN PGM 416 MM

1 TOOL CALL "TOUCH_PROBE" Z

2 TCH PROBE 416 PRESET CIRCLE CENTER ~

Q273=+35

;CENTER IN 1ST AXIS ~

Q274=+35

;CENTER IN 2ND AXIS ~

Q262=+50

;NOMINAL DIAMETER ~

Q291=+90

;ANGLE OF 1ST HOLE ~

Q292=+180

;ANGLE OF 2ND HOLE ~

Q293=+270

;ANGLE OF 3RD HOLE ~

Q261=+15

;MEASURING HEIGHT ~

Q260=+10

;CLEARANCE HEIGHT ~

Q305=+1

;NUMBER IN TABLE ~

Q331=+0

;PRESET ~

Q332=+0

;PRESET ~

Q303=+1

;MEAS. VALUE TRANSFER ~

Q381=+1

;PROBE IN TS AXIS ~

Q382=+7.5

;1ST CO. FOR TS AXIS ~

Q383=+7.5

;2ND CO. FOR TS AXIS ~

Q384=+20

;3RD CO. FOR TS AXIS ~

Q333=+0

;PRESET ~

Q320=+0

;SET-UP CLEARANCE.

3 CYCL DEF 247 PRESETTING ~

Q339=+1

;PRESET NUMBER

4 END PGM 416 MM