![]() | |
| 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
| |||
| |||
Hi, I'm working on a program to do a grid of C'Bores, 130 holes long and 5 deep. My datum is the top left and my first position is X-10.555Y-7.925 Here is my code. What is happening is it will do the first C'Bore (RHS Grid) then jump straight to the next set of C'Bores and do the same again(LHS Grid). It isn't doing the grid. I'm starting to struggle with finding the flaw. I thought it was the G36/G36.1 in the subroutine that was giving me the problems but I can't see what the matter is. Anyone else spot it? Maybe I can't see it for looking at it ![]() :T19M06 G00Z150.0 M01 S8000M13 (MSG, 6mm carbide slot drill) (MSG, rhs grid) X-10.555Y-7.925 Z3. g38u-9.53v-9.49i13j5 (cls,"hole",D7.65 Z4.4 F400) g37 g00Z100.0 (MSG, lhs grid) X-133.95Y-7.925 Z3. g38u-9.53v-9.49i13j5 (cls,"hole",D7.65 Z4.4 F400) g37 g00Z100.0 g98.1 x500 y0 M02 (dfs,"hole",P2) G36P2 g01z-[&Z] f[&F]/2.5 g41g91x[&D]/2 f[&F] g03.02 x0y0 i-[&D]/2j0 g40G01 x-[&D]/2 g41x-[&D]/2 f[&F] g03.02 x0y0 i[&D]/2j0 g40G01 x[&D]/2 g90g00Z3 G36.1 (ens) |
|
#2
| |||
| |||
| Well I can say I found the flaw. Turns out it was a simple problem I had put negative value "I" and "J" words in at the controller. The program's working a treat now ![]() Never overlook the simple things!!!!! :T19M06 G00Z150.0 M01 S8000M13 (MSG, 6mm carbide slot drill) (MSG, rhs grid) X-10.555Y-7.925 Z3. g38u-9.53v-9.49i13j5 (cls,"hole",D7.65 Z4.4 F400) g37 g00Z100.0 (MSG, lhs grid) X-133.95Y-7.925 Z3. g38u-9.53v-9.49i13j5 (cls,"hole",D7.65 Z4.4 F400) g37 g00Z100.0 g98.1 x500 y0 M02 (dfs,"hole",P2) G36P2 g01z-[&Z] f[&F]/2.5 g41g91x[&D]/2 f[&F] g03.02 x0y0 i-[&D]/2j0 g40G01 x-[&D]/2 g41x-[&D]/2 f[&F] g03.02 x0y0 i[&D]/2j0 g40G01 x[&D]/2 g90g00Z3 G36.1 (ens) |
|
#3
| |||
| |||
| Ok so I lie, that never worked. If I substitute the subroutine (cls,"hole",D7.65 Z4.4 F400) with a G83 deep hole drilling cycle it works fine, but when we introduce the drilling cycle we are get the same problem as before. So therefore it must be a problem with the subroutine, yes? Can anyone see any problems with it? |
![]() |
| 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 |
| G34 rectangular box key program help | Superiorforge | G-Code Programing | 6 | 09-13-2008 10:57 AM |
| 303 rectangular bar source needed | zcases | General Material Machining Solutions | 1 | 04-03-2008 05:03 PM |
| Lazy Cam probs | DRP | Screen Layouts, Post Processors & Misc | 0 | 09-10-2007 03:37 PM |
| diy vmc from rectangular steel tubing ? | andy55 | Vertical Mill, Lathe Project Log | 7 | 01-02-2006 03:59 PM |
| rectangular pocket macro | mistux | G-Code Programing | 0 | 11-01-2005 11:54 AM |