Hi Craven12,
Well OK then, now we know a bit more about the various codes, your program is basically doing this:
Set Maximum Spindle Speed.
Start from Home posn, Spindle off
Select tool 1
Move to posn 0.02 from machined face
Open the Chuck
Wait for bar feeder to advance
Close the chuck
Wait another 2 seconds
Rapid to Z1
Check to see if Bar Feeder is empty, Jump to reload routine if it is
Jump to end of Sub Program if not empty.
N100 Advance the Part Catcher
Open the Chuck
Move at Rapid to Home Posn
Wait 8 Seconds
Change the Bar
Close the Chuck
Retract the Parts Catcher
Wait 2 seconds
Rapid to end of bar posn?
Open the Chuck
Wait 8 Seconds
Close the Chuck
Wait 2 seconds
Move to Z1
Return from Subprog.
I do have some questions however...
Where is Z0 on the job? Is it at the back face?
What is the length of Bar Feed each run?
Does the part move out of the chuck as the tool moves away, or does the tool move and then the chuck opens allowing the material to move out?
There appears to be no ability in your program to allow for varying the barfeed amount.
Hope you can answer these questions as I am curious to know how it is going.
Regards
Brian. |