Example: Program various depths with OCM cycles
The following NC program illustrates the use of OCM cycles. You will define one pocket and two islands at different heights. Machining includes roughing and finishing of a contour.
Program sequence
- Tool call: Roughing cutter (Ø 10 mm)
- Program CONTOUR DEF
- Define Cycle 271
- Define and call Cycle 272
- Tool call: Finishing cutter (Ø 6 mm)
- Define and call Cycle 273
- Define and call Cycle 274
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 OCM_DEPTH MM | |||
1 BLK FORM 0.1 Z X-50 Y-50 Z-30 | |||
2 BLK FORM 0.2 X+50 Y+50 Z+0 | |||
3 TOOL CALL 5 Z S8000 F1500 | ; Tool call (diameter: 10 mm) | ||
4 L Z+100 R0 FMAX M3 | |||
5 CONTOUR DEF P1 = LBL 1 I2 = LBL 2 I3 = LBL 3 DEPTH5 | |||
6 CYCL DEF 271 OCM CONTOUR DATA ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
7 CYCL DEF 272 OCM ROUGHING ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
8 CYCL CALL | ; Cycle call | ||
9 TOOL CALL 23 Z S10000 F2000 | ; Tool call (diameter: 6 mm) | ||
10 L Z+100 R0 FMAX M3 | |||
11 CYCL DEF 273 OCM FINISHING FLOOR ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
12 CYCL CALL | ; Cycle call | ||
13 CYCL DEF 274 OCM FINISHING SIDE ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
14 CYCL CALL | ; Cycle call | ||
15 M30 | ; End of program run | ||
16 LBL 1 | ; Contour subprogram 1 | ||
17 L X-40 Y-40 | |||
18 L X+40 | |||
19 L Y+40 | |||
20 L X-40 | |||
21 L Y-40 | |||
22 LBL 0 | |||
23 LBL 2 | ; Contour subprogram 2 | ||
24 L X-10 Y-10 | |||
25 L X+10 | |||
26 L Y+10 | |||
27 L X-10 | |||
28 L Y-10 | |||
29 LBL 0 | |||
30 LBL 3 | ; Contour subprogram 3 | ||
31 L X-20 Y-20 | |||
32 L X+20 | |||
33 L Y+20 | |||
34 L X-20 | |||
35 L Y-20 | |||
36 LBL 0 | |||
37 END PGM OCM_DEPTH MM |