256 8 Programming: Cycles
8.3 Cycles for Drilling, Tapping and Thread Milling
14 LBL 1
Subprogram 1: Thread cutting
15 CYCL DEF 13.0 ORIENTATION
Define the spindle angle (makes it possible to cut repeatedly)
16 CYCL DEF 13.1 ANGLE 0
17 L M19
Orient the spindle (machine-specific M function)
18 L IX-2 R0 F1000
Tool offset to prevent collision during tool infeed (dependent
on core diameter and tool)
19 L Z+5 R0 F MAX
Pre-position in rapid traverse
20 L Z-30 R0 F1000
Move to starting depth
21 L IX+2
Reset the tool to hole center
22 CYCL CALL
Call Cycle 18
23 L Z+5 R0 F MAX
Retract tool
24 LBL 0
End of subprogram 1
25 END PGM C18 MM