![]() | |
| 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 am trying to set up a program to drill a small hole between each location in a set of coordinates. Below is a sample of how I've set up the subroutine, but the Z comes down, goes up, then fails to continue with the program. 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 What am I doing wrong? Thanks, Charlie |
|
#2
| |||
| |||
| Is this the actual program or did you retype it. Your ninth line seems to read O1, that is the letter O not zero 0. That could hang things up. What you are doing should be possible with a drilling canned cycle such as: G0 X0. Y0. Z.1 G82 X0. Y0. Z-.2 R.1 F30 (Start canned cycle) X.5 Y0. X1. Y0. G80 (Cancel canned cycle) |
|
#3
| |||
| |||
| Yes, I meant for that line to read O1. I am just learning, and the Mach 3 manual says "The program must contain an O line with the number given by the P word of the Call." Obviously, I've used it wrong. I want to learn how to call a subroutine, then I'll tackle the canned cycle you mention. This program is just a practice example. Can you show me with code how I would call the subroutine to drill a hole at every location? Thanks, Charlie |
|
#4
| |||
| |||
| N1 G90 G20 G0 X0.0 Y0.0 Z.1 M97 P100 X0.5 Y0.0 M97 P100 X1.0 Y0.0 M97 P100 M30 N100 G1 F30 Z-.2 G0 Z.1 M99 One thing you might try is using P100 and make your call line O100. Or wait for somebody familiar with Mach. |
|
#5
| |||
| |||
| Thanks Geof, I appreciate your answers. I would have posted on the Mach 3 forum, but I thought my problem was more of a G-code question than a Mach 3 question. I'll try it over there and see what they have to say. Thanks again, Charlie |
| 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 |
| Subroutine question (Cincinnati Milacron Acromatic 850 SX) | burnthills | G-Code Programing | 5 | 09-15-2009 10:34 AM |
| G-code viewer (subroutine) | hao | G-Code Programing | 1 | 11-15-2006 06:10 AM |
| Need help with a subroutine formulae... | Darc | G-Code Programing | 2 | 01-09-2006 05:05 PM |
| Need help with subroutine | 2_jammer | General CAM Discussion | 1 | 01-17-2005 10:46 PM |