
12-21-2005, 06:59 PM
|
| | | Join Date: Jul 2005 Location: Canada
Posts: 11,563
| |
It is fairly simple: you use two subroutines and you can use either five work zeroes or one work zero and five G52 commands. This explanation uses five work zeroes. Your main program does the first subroutine call with an L count that is the number of times you can pull the bar before needing a new length; the first subroutine selects one of five work zeroes G54 to G58 then calls the second subroutine; the second subroutine is the program that makes the part.
Also in the main program are five G10 commands that enter Z values for the five work zeroes. G54 is left at 0.0, G55 is moved Z-{the part length plus parting allowance plus small facing allowance), G56 two times the Z- shift in G55, G57 three times and G58 four times.
Tool offsets are all set to the end face of the bar when it is pulled out ready to go using G54 as the work zero.
Starting with a new bar you pull it to the correct length, go to the first subroutine; select G54 call second subroutine and part off first piece then return select G55 call second subroutine etc, etc until all five parts are done. Return to main program select G54 pull bar and go back to the first subroutine etc, etc until the L count is reached. |