Example: Measuring and reworking a rectangular stud

Program sequence

  • Rough the rectangular stud with 0.5 mm finishing allowance
  • Measure the rectangular stud
  • Finish the rectangular stud, taking the measured values into account

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

Change the following contents as needed:

  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions (e.g., with M91)
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

0 BEGIN PGM TOUCHPROBE MM

1 TOOL CALL 5 Z S6000

; Tool call: roughing

2 Q1 = 81

; Rectangle length in X (roughing dimension)

3 Q2 = 61

; Rectangle length in Y (roughing dimension)

4 L Z+100 R0 FMAX M3

; Retract the tool

5 CALL LBL 1

; Call the subprogram for machining

6 L Z+100 R0 FMAX

; Retract the tool

7 TOOL CALL 600 Z

; Call the touch probe

8 TCH PROBE 424 MEAS. RECTAN. OUTS. ~

Q273=+50

;CENTER IN 1ST AXIS ~

Q274=+50

;CENTER IN 2ND AXIS ~

Q282=+80

;FIRST SIDE LENGTH ~

Q283=+60

;2ND SIDE LENGTH ~

Q261=-5

;MEASURING HEIGHT ~

Q320=+0

;SET-UP CLEARANCE ~

Q260=+30

;CLEARANCE HEIGHT ~

Q301=+0

;MOVE TO CLEARANCE ~

Q284=+0

;MAX. LIMIT 1ST SIDE ~

Q285=+0

;MIN. LIMIT 1ST SIDE ~

Q286=+0

;MAX. LIMIT 2ND SIDE ~

Q287=+0

;MIN. LIMIT 2ND SIDE ~

Q279=+0

;TOLERANCE 1ST CENTER ~

Q280=+0

;TOLERANCE 2ND CENTER ~

Q281=+0

;MEASURING LOG ~

Q309=+0

;PGM STOP TOLERANCE ~

Q330=+0

;TOOL

9 Q1 = Q1 - Q164

; Calculate the length in X based on the measured deviation

10 Q2 = Q2 - Q165

; Calculate the length in Y based on the measured deviation

11 L Z+100 R0 FMAX

; Retract the touch probe

12 TOOL CALL 25 Z S8000

; Tool call: finishing

13 L Z+100 R0 FMAX M3

; Retract the tool

14 CALL LBL 1

; Call the subprogram for machining

15 L Z+100 R0 FMAX

16 M30

; End of program run

17 LBL 1

; Subprogram with rectangular stud machining cycle

18 CYCL DEF 256 RECTANGULAR STUD ~

Q218=+Q1

;FIRST SIDE LENGTH ~

Q424=+82

;WORKPC. BLANK SIDE 1 ~

Q219=+Q2

;2ND SIDE LENGTH ~

Q425=+62

;WORKPC. BLANK SIDE 2 ~

Q220=+0

;RADIUS / CHAMFER ~

Q368=+0.1

;ALLOWANCE FOR SIDE ~

Q224=+0

;ANGLE OF ROTATION ~

Q367=+0

;STUD POSITION ~

Q207=+500

;FEED RATE MILLING ~

Q351=+1

;CLIMB OR UP-CUT ~

Q201=-10

;DEPTH ~

Q202=+5

;PLUNGING DEPTH ~

Q206=+3000

;FEED RATE FOR PLNGNG ~

Q200=+2

;SET-UP CLEARANCE ~

Q203=+10

;SURFACE COORDINATE ~

Q204=+20

;2ND SET-UP CLEARANCE ~

Q370=+1

;TOOL PATH OVERLAP ~

Q437=+0

;APPROACH POSITION ~

Q215=+0

;MACHINING OPERATION ~

Q369=+0

;ALLOWANCE FOR FLOOR ~

Q338=+20

;INFEED FOR FINISHING ~

Q385=+500

;FINISHING FEED RATE

19 L X+50 Y+50 R0 FMAX M99

; Cycle call

20 LBL 0

; End of subprogram

21 END PGM TOUCHPROBE MM