Pulley groove processing macro program, one cutter can do it. Fanac, Guangshu system. The center of the right end face is the programming zero point, and the front tool tip is set to the tool.
The program is to cut the first slot. The 2nd, 3rd, and 4th slots can be changed to Z-axis tool compensation, or processed with the workpiece shift function.
O0001
M3S150
T101
M8
#1=4 tool width
#2=19 Slot single side angle
#3=0.5 The cutting depth of each radial single side
#4=0.5*TAN[#2] Z-axis each time the displacement of the tool
#5=#3*TAN[#2]
#6=[17-#1-2*#5] Remaining displacement of Z axis each time
G0X201
Z-8
G99 G1 X200 F.2
N01 G1 X[200-2*#3] Z-[8+#5] F0.15
W-#6 F0.25
U0.5 W-#4
G0 Z-[8+#5]
G1 X[200-2*#3]
#3=#3+0.5
#5=#3*TAN[#2]
#6=[17-#1-2*#5]
IF [#3 LE 17] GOTO01 (not enough depth, jump forward)
G0 X206
Z-6.86 (The starting point of finishing is calculated according to the cutter fillet radius R0.4)
G1 A-109 X166 F0.2 (finishing right side)
G0 X206
Z-22.14 (The starting point of finishing is calculated according to the cutter fillet radius R0.4)
G1 A-71 X166 (finishing left side)
G0 X206
Z200
M30




