Example: Contour with OCM figure cycles
The following NC program illustrates the use of OCM cycles. Machining includes roughing and finishing of a island.
Program sequence
- Tool call: Roughing cutter (Ø 8 mm)
- Define Cycle 1271
- Define Cycle 1281
- Define and call Cycle 272
- Tool call: Finishing cutter (Ø 8 mm)
- Define and call Cycle 273
- Define and call Cycle 274
0 BEGIN PGM OCM_FIGURE MM | |||
1 BLK FORM 0.1 Z X+0 Y+0 Z-30 | |||
2 BLK FORM 0.2 X+100 Y+100 Z+0 | |||
3 TOOL CALL 4 Z S8000 F1500 | ; Tool call (diameter: 8 mm) | ||
4 L Z+100 R0 FMAX M3 | |||
5 CYCL DEF 1271 OCM RECTANGLE ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
6 CYCL DEF 1281 OCM RECTANGLE BOUNDARY ~ | |||
| |||
| |||
| |||
| |||
| |||
7 CYCL DEF 272 OCM ROUGHING ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
8 L X+50 Y+50 R0 FMAX M99 | ; Positioning and cycle call | ||
9 TOOL CALL 24 Z S10000 F2000 | ; Tool call (diameter: 8 mm) | ||
10 L Z+100 R0 FMAX M3 | |||
11 CYCL DEF 273 OCM FINISHING FLOOR ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
12 L X+50 Y+50 R0 FMAX M99 | ; Positioning and cycle call | ||
13 CYCL DEF 274 OCM FINISHING SIDE ~ | |||
| |||
| |||
| |||
| |||
| |||
| |||
| |||
14 L X+50 Y+50 R0 FMAX M99 | ; Positioning and cycle call | ||
15 M30 | ; End of program | ||
16 END PGM OCM_FIGURE MM |