Example: Determining a basic rotation from two holes

  • Q268 = Center of the 1st hole: X coordinate
  • Q269 = Center of the 1st hole: Y coordinate
  • Q270 = Center of the 2nd hole: X coordinate
  • Q271 = Center of the 2nd hole: Y coordinate
  • Q261 = Coordinate in the touch probe axis in which the measurement is performed
  • Q307 = Angle of the reference line
  • Q402 = Compensation of workpiece misalignment by rotating the table
  • Q337 = Set the display to zero after the alignment

0 BEGIN PGM TOUCHPROBE MM

1 TOOL CALL 600 Z

2 TCH PROBE 401 ROT OF 2 HOLES ~

Q268=+25

;1ST CENTER 1ST AXIS ~

Q269=+15

;1ST CENTER 2ND AXIS ~

Q270=+80

;2ND CENTER 1ST AXIS ~

Q271=+35

;2ND CENTER 2ND AXIS ~

Q261=-5

;MEASURING HEIGHT ~

Q260=+20

;CLEARANCE HEIGHT ~

Q307=+0

;PRESET ROTATION ANG. ~

Q305=+0

;NUMBER IN TABLE

Q402=+1

;COMPENSATION ~

Q337=+1

;SET TO ZERO

3 CALL PGM 35

; Call the part program

4 END PGM TOUCHPROBE MM