Program Question

General Metalworking - All aspects of working with metal. 

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Program Question Ratedr 04-09-2008
Posted by Ratedr on April 9, 2008, 9:07 am
Please log in for more thread options
Using help that I have received in this great NG, I have been able to
write a program that does ALMOST what I want to do. But I am asking
the community to take a look at it and see one thing for me. Here is
the program (the notes I put in there after the ; are for my employees
to learn, I am assuming most people in here might know what those
codes meant already, but I left them in there in case)

The two questions I have are
1. For some reason the coolant is only coming on for the SECOND
operation/subroutine. Now when I look at the program, it seems my m08
code is in the FIRST operation and NOT in the second, but yet it is
not turning on until after I have switched to the 1 tool. Can anyone
see why this might be happening?
2. I am trying to drill these holes to Z-.06 and Z-.105 deep using the
mill and drill respectively. It seems that in this program it is
moving the tool -.06 and -.105 from the ORINGINAL Z starting point of
Z.04 (which I have just for a clearance), meaning it seems its doing
an incremental move of .06. What I need it to do is come to an
ABSOLUTE point of Z-.06. Is there something that I am doing wrong
here? (like should there be a g90/91 switch somewhere)?

; 2 POINT LBS:

N100;THIS FILE FOR 40 HOLE BOLT HOLE PATTERN

N106 G40;

N110 M08 M06 T02;TOOCHANGE .060 carbide mill
N111 G43 H02;TOOL HEIGHT OFFSET REF FOR TOOL 2

N115 S9000 M03;SETS SPINDLE SPEED TO 9000

N120 G0 X0 Y0 Z0.04
N125 M03
N130 G16
N135 G91 X.4675 Y0;RADIUS OF .4675
N140 M98 P1 L40; M98 SUBROUTINE CALL P1 STARTS SUBROUTINE L40 IS 40
HOLES

N145 M06 T01;TOOCHANGE .037 STEEL DRILL
N146 G43 H01;TOOL HEIGHT OFFSET REF FOR TOOL 1

N150 S8000 M03;SETS SPINDLE SPEED TO 8000

N155 G16 G90

N157 G0 X0 Y0 Z0.04
N160 M03
N165 G16
N170 G91 X.4675 Y0;RADIUS OF .4675
N171 M98 P2 L40; M98 SUBROUTINE CALL P2 STARTS SUBROUTINE L54 IS 54
HOLES

N174 G16 G90

N175 M09 M2 ; program end

; subroutines
O1 Y9.0 F8.0;01 IS SUBROUTINE Y IS DEGREES BETWEEN HOLES (360/54)
G81 Z-.06 R0 F8.0
G80
M99

O2 Y9.0 F5.0;02 IS SUBROUTINE Y IS DEGREES BETWEEN HOLES (360/54)
G81 Z-.105 R0 F5.0
G80
M99

Posted by James Waldby on April 9, 2008, 1:26 pm
Please log in for more thread options
On Wed, 09 Apr 2008 06:07:34 -0700, Ratedr wrote:

> Using help that I have received in this great NG, I have been able to
> write a program that does ALMOST what I want to do. But I am asking the
> community to take a look at it and see one thing for me.
[...]
> The two questions I have are
> 1. For some reason the coolant is only coming on for the SECOND
> operation/subroutine. Now when I look at the program, it seems my m08
> code [...]
> 2. I am trying to drill these holes to Z-.06 and Z-.105 deep using the
> mill and drill respectively. It seems that in this program it is moving
[...]
[snip G-code program]

I don't know the answers but have two suggestions --
1, crosspost to alt.machines.cnc instead (or only);
2, specify what machine and controller you have, since
some M codes can be machine specific.
-jiw

Similar ThreadsPosted
International low-residency MFA program December 16, 2006, 5:44 pm
OT - Messerschmitt ME-262 Flight Program February 13, 2007, 12:47 am
OT: e-mail program advice April 6, 2007, 12:13 am
After Thanksgiving Exercise Program November 28, 2007, 4:41 pm
Working on statistics program ignore May 6, 2007, 6:17 am
Working on statistics program ignore May 6, 2007, 6:20 am
Emco lathe toolpath program? May 27, 2007, 4:41 pm
FREE Goal Setting Program December 27, 2007, 5:25 pm
>>>>>>>Guide to Find Right Penis Enlargement Program? February 7, 2008, 9:37 pm
I just try a newly launch program... I hope i will earn something in return March 6, 2007, 9:16 pm

Contact Us | Privacy Policy

XML SitemapXML Sitemap