Hi,
I want to to change my sub program for bar feeder and I need some help.
Right now after feeding the bar is finished, the spindle starts, but my push road is still inside in spindle.
I want the push road to be outside the spindle back in bar feeder and after spindle to start.Can anyone help me?

%
O9001(ELEC. BARFEEDER SUB-PROGRAM)
IF[#1000EQ0]GOTO10
G0W50.M19
M72
#100=0
WHILE[#1001EQ0]DO1
G04X0.1
#100=#100+1
IF[#100GE#615]GOTO2000
END1
G0W-47.5
M65
M71
M98P8020
M99
N10M72
M65
M71
M99
N2000#3000=1(BF NO EJECT)
%

%
O8020(ELEC. BARFEEDER SUB-2 PROGRAM)
G0W50.
T0606
G0X-50.G96S180M3
Z0.
X-19.M8
G1X5.F0.2
X0.5F0.08
G0X-19.
M99
%

M63 BAR FEED ALARM CHECK
M64 CANCEL END OF BAR
M65 BAR SUPPLY FINISH
M66 BAR FEED LOAD IN
M71 CHUCK CLAMP
M72 CHUCK UNCLAMP