![]() | |
| 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'm reposting this in this forum because I think I had it in an incorrect one yesterday. I'm learning G code and have come across a problem that I cannot solve. I am cutting a simple profile on my home made turning machine. I'm cutting a tube with a flange on the end of it. My tool goes from home to the small OD then goes along to the flange, goes up and across the larger OD. It then goes back to the far end of the small OD to part it off then up bigger than the large OD and down to the other side of the flange to part off then return to home. Problem is I want to offset the tool width when coming back to the flange for parting off but it will not acknowledge the offset. I'm using the G41 D1 code with my #1 tool referenced. What does the "D" reference??? I use Flashcut. Here's a copy of my code to look at. I thought line 262 would offset the tool width. Any help would be appreciated. Thanks N100 G00 G91 (set highspeed, incremental) N110 M06 T1 N120 X-0.5 (Move half of Initial Travel distance along X) N130 Y-3.277 (Move Y to within 0.5" of cutting diameter [CHANGE OD HERE]) N140 G01 F20 Y-0.5 (Change to low speed, begin cutting in to Initial Diameter) N150 X-0.5 (Move again half of Initial Travel distance along X to shank end of ferrule) N150 X-3.862 (Cut straight section of OD) N170 G00 Y0.386 (cut vertical segment) N180 G01 (return to slow after rapid feed out) N190 X-0.387 (Cut straight section of OD) N200 X-0.25 (Cut straight section of OD) N210 G00 Y0.25 (Move to 0.25" larger than largest OD) N220 X4.499 (Move to X position of cutoff at Shank end) N230 Y-0.706 (Move quickly to within .200" of cutoff) N240 G01 F3 Y-0.200 (Finish cutoff slowly) N250 G04 X1 (Pause at cutoff for manual clean) N260 G00 Y0.906 (Move to 0.25" larger than largest OD) N262 G41 D1 N270 X-4.249 N280 Y-0.200 (Move quickly to within .200" of cutoff) N290 G01 F3 Y-0.706 (Finish cutoff slowly) N300 G04 X1 (Pause at cutoff for manual clean) N310 G00 Y0.906 (Move to 0.25" larger than largest OD) N320 G90 X0.0 Y0.0 (Return to Home on Completion) N325 G40 N330 G27 (Find limit switches) N340 M30 (End Program) |
|
#2
| |||
| |||
| Not sure that I'd use G41 for this. Try assigning offset #1 when you start tool #1 like this: T0101, then switch in a different offset (#2) for the same tool , like this: T0102 Most lathe controls recognize the first 2 digits as the tool number, and the last 2 digits as the offset number.
__________________ Diplomacy is the art of saying "Nice doggie" until you can find a rock. - Will Rogers |
|
#4
| |||
| |||
|
![]() |
| 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 |
| Wierd NC Code and G-Code | Tazzer | General CAM Discussion | 10 | 01-09-2012 01:07 PM |
| To hand Code? or to CAD Code? | automizer | Polls | 81 | 11-26-2011 09:30 PM |
| learning g code or cad-cam code output? | slow_rider | G-Code Programing | 3 | 02-27-2010 08:48 PM |
| G-code for beginners - want to learn G-code | FPV_GTp | G-Code Programing | 7 | 11-17-2008 11:25 PM |
| looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft | troyswood | Ability Systems - LPT Indexer and G-Code | 2 | 12-24-2006 09:21 PM |