![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I am trying to set up a subroutine to drill a small hole at each location in a set of coordinates. Below is a sample of how I've set it up. Then I run the G-code, the Z comes down, goes up, then fails to continue with the program. What am I doing wrong? Please rewrite it correctly so that I can understand and learn from my mistakes. Thanks, Charlie G90 G20 G0 X0.0 Y0.0 Z.1 M98 P1 X0.5 Y0.0 M98 P1 X1.0 Y0.0 M98 P1 M2 O1 G1 F30 Z-.2 G0 Z.1 M99 |
|
#2
| ||||
| ||||
| Make sure the M99 is shown in the g-code window. I copied your code into Notepad and saved it. When loaded into Mach3, the M99 wasn't there. To fix it, go into notepad, place the cursor after the M99, and hit "enter". Then save, and the M99 should appear in Mach3. Once I did that, it ran fine.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| Thanks so much Gerry, I had noticed that the M99 didn't show up in Mach 3; but, being a novice, I thought it was a charactistic of the M command. It is reassuring to know that I actually set it up correctly from reading the manual. I'll try it again in the shop tomorrow. Charlie |
![]() |
| 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 |
| trying to call a subroutine | hindocarina | G-Code Programing | 4 | 02-11-2007 08:01 PM |
| Calling All Richmonders! | Robyn | Trade Shows and Events | 0 | 06-05-2006 07:24 AM |
| Need help with a subroutine formulae... | Darc | G-Code Programing | 2 | 01-09-2006 05:05 PM |
| Calling all granddads..Well, Dads as well, maybe. | Jannie | WoodWorking | 8 | 08-10-2005 09:24 PM |
| Need help with subroutine | 2_jammer | General CAM Discussion | 1 | 01-17-2005 10:46 PM |