![]() | |
| 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 want to slice multiple rings from a tube. (face, chamfer, part-off) 5-10 per cycle using the counter on my lathe. How do I program an incremental z-move after M99 that returns to it's origin after x many parts? This should be easy! ????? Last edited by metalmansteve; 09-24-2009 at 06:16 PM. |
|
#2
| ||||
| ||||
The best way .. IMHO ... would be to use sub-programming. Since you didn't mention the make of lathe nor control ... I'll assume it's a Fanuc ( 80%-90% ) of machines use it ... or "fanuc compatible". Format is either : M98 Pxxxx Lyy where M98 is the call ... P is the O program to run and L is the number of times. or M98 PxxxYYYY where xxx is the number of times and YYYY is the O program number to run. So ........ you could do something like this : Main Program : O0001 M98 P1234 L5 ( run program O1234 ... 5 times ) G00 W( 5 x "cccc" dimension ) ( any W move is an incremental move in the Z axis ) ( any U is an incremental move in the X axis ) M30 % Sub Program : O1234 N0001 G96 S325 M03 G00 T0101 *********** make the part complete *********** G00 W-cccc ( incremental move in the Z axis ) ( the amount to move up for each cycle ... part length removed ) M99 ( return from sub to the main to the line after it left ) % In the above ... the sub program will loop the L number of times and since their is an incremental move at the end ... each time it will move up that amount and start again. Depending on how you have your work / geometry offset's set ... you may encounter other issues .... .... but that's a whole nuther message. Post your results and I'm sure someone will have some inputs. Real World Machine Shop Software at www.KentechInc.com |
|
#3
| ||||
| ||||
| I used to do it similar to what Blue Chip described, except after the G0 W movement increment to the new start position, I'd use G92 Z.zzzz to reposition the Z work datum at this new location. Knowing that G92 is anathema nowadays , one could also move the Z datum by using G10 to change the G54Z value on the fly. G10 can also be commanded incrementally.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#4
| |||
| |||
| As suggested make the part program a subprogram and call this subprogram multiple times, moving your work zero forward for each call. You can use G92 if you want to live dangerously, or you can use G52 to set a local work coordinate or you can use a series of G10 to set G55, G56, etc.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
|
#5
| ||||
| ||||
| Oh, I should clarify that I tend to work in gcode system 3 (mill) so G92 crosses to G50 on some lathes. I never understood the need for two different gcode systems and I've always stuck with "mill" type gcodes.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
| Sponsored Links |
![]() |
| 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 |
| Problem- Machining multiple parts in lathe | ISOTECH | GibbsCAM | 2 | 12-29-2009 09:45 AM |
| programming multiple offsets | hoganj | CamWorks | 1 | 07-30-2009 10:59 AM |
| Haas mill multiple vise question (programming) | joesimmers | Haas Mills | 14 | 03-29-2007 05:48 AM |
| Multiple Parts In M.C. | stang5197 | Mastercam | 5 | 03-11-2007 07:13 PM |
| programming multiple double vises | bink | G-Code Programing | 12 | 10-26-2006 09:07 PM |