![]() | |
| 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 have run a CR onsrud for 9 years with a AMC controller and Mastercam software. I am now programming a Matsurra mill with a Fanuc 11M controller using bobcad (which I find pretty useless) so I have been programming it line by line. I need to drill an 11 x 11 grid of holes spaced at.69" apart how do I repeat the movement in the x and y axis without having to call out every point? I know it is probably a very easy thing to do but I will appreciate any hints of help I can get Thanks |
|
#2
| ||||
| ||||
| This might work. It's been a long time since I've programmed an 11M. % O1000 (MAIN PROGRAM) G0 G40 G80 G91 G28 Z0 T1 M6 G54 X0 Y0 S2000 M03 G43 Z0.1 H01 M08 G81 Z-0.28 F10. M98 P1001 G91 G28 Z0 M19 G28 Y0 G90 M30 O1001 (DRILL SUB 1) G91 X0.69 L10 (DRILL 1ST ROW) Y0.69 X-0.69 L10 (2ND ROW) Y0.69 X0.69 L10 (3RD ROW) Y0.69 X-0.69 L10 (4TH ROW) Y0.69 X0.69 L10 (5TH ROW) Y0.69 X-0.69 L10 (6TH ROW) Y0.69 X0.69 L10 (7TH ROW) Y0.69 X-0.69 L10 (8TH ROW) Y0.69 X0.69 L10 (9TH ROW) Y0.69 X-0.69 L10 (10TH ROW) Y0.69 X0.69 L10 (11TH ROW) G80 G90 M09 M99 % |
|
#4
| ||||
| ||||
| Write the main like dcoupar suggests then your sub. You can add as many y rows as you like. This is a quick and dirty method that comes in very handy when in a rush. % O1000 (MAIN PROGRAM) G0 G40 G80 G91 G28 Z0 T1 M6 G54 X0 Y0 S2000 M03 G43 Z0.1 H01 M08 G81 Z-0.28 F10. M98 P1001L14 G80 G90G0X?Y? G81Z-.28F10. M98P1001L14 G91 G28 Z0 M19 G28 Y0 G90 M30 Write your sub like this % O1001 G91X.1 %
__________________ Toby D. "Imagination and Memory are but one thing, but for divers considerations have divers names" Schwarzwald (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) www.refractotech.com |
|
#5
| |||
| |||
Thanks I had tried that but in the main program not the sub. N10G17G90G40G80G54 N20G0G40Z1.5M9 N30G91G30Y0Z0 N40M6T12G90 N50(5/16 DRILL) N60G43Z4.0H12 N70M3S700 N80M8 N90G0X1.12Y1.31 N100G83X1.12Y1.31Z-.625R.1Q.1F300 N110G91X.69L9 N120Y.69 N130X-.69L9 N140Y.69 N150X.69L9 N160X-.69L9 N170Y.69 N180X.69L9 N190X-.69L9 N200Y.69 N210X.69L9 N220X-.69L9 N230Y.69 N240X.69L9 N250G80G90 N260G49G28Z0 N270 N280 I will ty it both ways. Thanks for your help |
| 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 |
| Repeating large number | pommac | Fanuc | 1 | 05-19-2008 06:28 PM |
| Repeating a Subroutine. | Mike Mattera | G-Code Programing | 6 | 05-18-2008 04:01 PM |
| Need Help!- EZ path repeating problem | waltrobertson | Bridgeport and Hardinge Mills | 2 | 03-12-2008 07:37 AM |
| Repeating issue | scorchtool | Milltronics | 16 | 01-19-2008 07:26 AM |
| Repeating part | Sputnik | Mach Mill | 3 | 11-01-2006 12:25 PM |