![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I run a Mori Seiki SL25 with a Fanuc 15T control, I often have to make short parts between .5 and 2" long from long stock, I'll hang as much stock as possible out of the chuck and then make and part-off as many part's as I can without pulling out more material, I've just been using the Input+ key to shift over the #00 Shift offset and make a new part, is there an easy way to automate this process other than using subprograms and G55/G59 offsets? |
|
#2
| ||||
| ||||
| why not just bump the stock out each part set up one tool station with a pin program the tip of the pin to be located where the rough stock should be open the chuck and move stock forward until it comes into contact with the pin |
|
#3
| |||
| |||
Your program starts with the command G52 Z0.0 and then calls the subroutine which does a complete part. Below the first subroutine call you have a G52 Z-z.z, where -z.z is the length of the part plus the parting loss plus a facing allowance, then call the subroutine again. You do this for however many parts you can get out of a length and after the last subroutine call you have the command G52 Z0.0 to reset back to the original work coordinate. |
|
#4
| |||
| |||
| Too much trouble, especially when dealing with spincast SS stock that we use a lot, it doesn't like to run true when pulled out. |
|
#6
| |||
| |||
| Geof, can you write me an example, you can just add the proper commands to the top and bottom for me, I've never ran sub-routines. my normal program would look something like this... O0001; G0T0101 G50S2000; G54; G96S300M3; X5.Z.04M8; makes part G0X10.Z6.M9; M1; M30; |
|
#7
| |||
| |||
From line N4 it goes to N1000, does the first part and returns from the M99 at N100n back to N5. Then having had the G52 move the work zero forwardit goes from N6 back to N1000, returns and move again at N7 then back again at N8, returns to N9 cancels all the G52 shifts, homes and stops. O0001; N1 G0T0101 G50S2000; N2 G54; N3 G52 Z0.0; N4 M97 P1000; N5 G52 Z-z.z; N6 M97 P1000; N7 G52 Z-2z.z; N8 M97 P1000; N9 G52 Z0.0; N10 G28M9; N11 M30; N1000 G96S300M3; N1001 X5.Z.04M8; N1002 makes part; ; However many lines needed ; N100n G0X10.Z6.; N100n M99; You will notice I left the spindle command in what becomes the subroutine. Mostly I do this because there will be tool changes in the subroutine and maybe speed changes. I find it easier to read the program if all the stuff telling the machine what to do is in one section. |
|
#9
| |||
| |||
|
Just make sure that is the subroutine call not the sub program call. Doesn't make much difference because you can do the same thing using a sub program instead of a subroutine. |
|
#10
| |||
| |||
|
I guess I was confusing a subprogram with a subroutine, I've never had to use a subroutine, but I'll look up the proper code. |
| Sponsored Links |
|
#11
| |||
| |||
| Have a look at this thread: http://www.cnczone.com/forums/showthread.php?t=34502 One of the posts mentions something about a Fanuc control only doing sub program calls, not subroutine. This may be applicable to you. |
|
#12
| ||||
| ||||
| then flip it and do the other end work great then it was very easy to bump out |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need more work for cnc lathe | R&B | General Metalwork Discussion | 7 | 10-15-2006 10:53 AM |
| offset shift and part off | nitemare | Daewoo/Doosan | 1 | 03-03-2006 09:49 PM |
| CNC lathe work | Crazy Phantom | Employment Opportunity | 8 | 02-05-2006 10:42 PM |
| Anyone need help on 3rd shift?? | AMCjeepCJ | Milltronics | 0 | 12-22-2005 01:34 AM |
| Grid Shift | scuba | General Metal Working Machines | 1 | 10-13-2004 03:50 PM |