Example: Interpolation turning with Cycle 291
The following NC program illustrates the use of Cycle 291 COUPLG.TURNG.INTERP. This programming example shows how to machine an axial recess and a radial recess.
Tools
- Turning tool as defined in toolturn.trn: Tool no. 10: TO:1, ORI:0, TYPE:ROUGH; tool for axial recesses
- Turning tool as defined in toolturn.trn: Tool no. 11: TO:8, ORI:0, TYPE:ROUGH; tool for radial recesses
Program sequence
- Tool call: Tool for axial recess
- Start of interpolation turning: Description and call of Cycle 291; Q560 = 1
- End of interpolation turning: Description and call of Cycle 291; Q560 = 0
- Tool call: Recessing tool for radial recess
- Start of interpolation turning: Description and call of Cycle 291; Q560 = 1
- End of interpolation turning: Description and call of Cycle 291; Q560 = 0
- Tip
By converting parameter Q561, the turning tool is displayed in the simulation graphic as a milling tool.
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.
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 5 MM | |||
1 BLK FORM CYLINDER Z R15 L60 | |||
2 TOOL CALL 10 | ; Tool call: tool for axial recess | ||
3 CC X+0 Y+0 | |||
4 LP PR+30 PA+0 R0 FMAX | ; Retract the tool | ||
5 CYCL DEF 291 COUPLG.TURNG.INTERP. ~ | |||
| |||
| |||
| |||
| |||
| |||
6 CYCL CALL | ; Call the cycle | ||
7 LP PR+9 PA+0 RR FMAX | ; Position the tool in the working plane | ||
8 L Z+10 FMAX | |||
9 L Z+0.2 F2000 | ; Position the tool in the spindle axis | ||
10 LBL 1 | ; Recessing on face (infeed: 0.2 mm, depth: 6 mm) | ||
11 CP IPA+360 IZ-0.2 DR+ F10000 | |||
12 CALL LBL 1 REP30 | |||
13 LBL 2 | ; Retract from recess (step: 0.4 mm) | ||
14 CP IPA+360 IZ+0.4 DR+ | |||
15 CALL LBL 2 REP15 | |||
16 L Z+200 R0 FMAX | ; Retract to clearance height, deactivate radius compensation | ||
17 CYCL DEF 291 COUPLG.TURNG.INTERP. ~ | |||
| |||
| |||
| |||
| |||
| |||
18 CYCL CALL | ; Call the cycle | ||
19 TOOL CALL 11 | ; Tool call: tool for radial recess | ||
20 CC X+0 Y+0 | |||
21 LP PR+25 PA+0 R0 FMAX | ; Retract the tool | ||
22 CYCL DEF 291 COUPLG.TURNG.INTERP. ~ | |||
| |||
| |||
| |||
| |||
| |||
23 CYCL CALL | ; Call the cycle | ||
24 LP PR+15 PA+0 RR FMAX | ; Position the tool in the working plane | ||
25 L Z+10 FMAX | |||
26 L Z-11 F7000 | ; Position the tool in the spindle axis | ||
27 LBL 3 | ; Recessing on lateral surface (infeed: 0.2 mm, depth: 6 mm) | ||
28 CC X+0.1 Y+0 | |||
29 CP IPA+180 DR+ F10000 | |||
30 CC X-0.1 Y+0 | |||
31 CP IPA+180 DR+ | |||
32 CALL LBL 3 REP15 | |||
33 LBL 4 | ; Retract from recess (step: 0.4 mm) | ||
34 CC X-0.2 Y+0 | |||
35 CP PA+180 DR+ | |||
36 CC X+0.2 Y+0 | |||
37 CP IPA+180 DR+ | |||
38 CALL LBL 4 REP8 | |||
39 LP PR+50 FMAX | |||
40 L Z+200 R0 FMAX | ; Retract to clearance height, deactivate radius compensation | ||
41 CYCL DEF 291 COUPLG.TURNG.INTERP. ~ | |||
| |||
| |||
| |||
| |||
| |||
42 CYCL CALL | ; Call the cycle | ||
43 TOOL CALL 11 | ; Repeated TOOL CALL in order to reset the conversion of parameter Q561 | ||
44 M30 | ; End of program run | ||
45 END PGM 5 MM |