Hello Guest it is March 28, 2024, 07:47:38 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lew

Pages: 1 2 3 4 5 6 7 8 »
1
G-Code, CAD, and CAM discussions / Spindle stops after subroutine
« on: April 28, 2016, 12:18:37 AM »
Anybody know why the spindle stops after a subroutine? Running Mach3 and it never used to do that but recently it's happening. Is there a setting I'm missing in Mach?

2
General Mach Discussion / Spindle stop after subroutine question
« on: April 25, 2016, 12:16:07 AM »
OK, this is weird to me. I have been running Mach 3 for a long time. Lately, I've run some programs with subroutine calls and it always seemed to me that I put an M3 command in before the call to subroutine (way at the beginning of the program) and the spindle just keeps running even after the subroutine ends. Now, I need to put in an M3 command within the subroutine because without it the spindle stops after the first subroutine call and doesn't start again because the M3 is way at the beginning. There is not an M5 command in the subroutine. 
I'm not sure if a setting got hosed or I'm losing it.
Can anybody shed some light on this for me?

3
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 07, 2010, 11:48:24 AM »
Hi BR:
First of all thanks for your help.
Here's what I did. I changed what you programmed so it works in G90. I wanted to drill the first 3" without pecking. Then I wanted it to start pecking but retract to X0.0. Needed to clear the drill from the piece. Also, I added a couple lines that will make sure the drill gets to the final depth.
The code below is what I'm using now and it works pretty good.
Thanks again for all your help. I know what kind of time is involved with doing the programming.

M4
M98P1 L1
o1
#100 = 14.18    ;Drill Depth)
#101 = 0.375    ;Peck depth)
#102 = Fup[[#100-#105]/#101]
#103 = [#100/#102]
#104= #103
#105 = 3.0       ;INITIAL DRILL DEPTH
#106 = 1.0       ;Feedrate)
G90
M98 P2 L#102
G0 X[#105-.02]
G1 X#100 F#106
M5
G0 X-0.2
G90
M30
o02
G1 X#105 F#106
G0X0.0
X[#105-.020]
G1X[#105+.020]
#105=[#105+#101]

M99
%

4
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 06, 2010, 07:36:40 PM »
Hi BR549:
Thanks for taking the time to write the code. I just tried it on the computer and it looks like it works just fine. Didn't have much time to play with it, just threw in some variables and ran it. Very nice. If I wanted to retract back to x0.0 each time what would need to be done?
Cool stuff.
Thanks again BR

5
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 06, 2010, 12:09:11 PM »
Just played around with some other code and this is what I've got:
This code shows an error in the "if" line. this where my syntax must be wrong.


#1=3.0
#2=0.3
#3=0.3

n100
g90
g0 x0.49
g1 x[.49+#3] f#1
g0 x0.49
m98 p1

o1:
#3=[#3+#2]
if #3<13.0 then n100
m99
g0 x0.0
m30

6
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 06, 2010, 11:32:53 AM »
Here's what I started doing and then got busy with something else.

#n=0.3
#p=0.3
#1=3.0


10 g90
g0 x0.49
g1 x[.49+#n] f#1
g0 x0.49
#p=[#p+#n]
if#p<13.0 then 10
g0 x0.0
m30

7
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 06, 2010, 11:05:12 AM »
Thanks for the reply. I believe you to be correct. Of course, I can set the job up so that the drill points in the negative direction. But, I was wondering if you have any simple code that would let the x axis act in the manner that I want. I tried working up a math expression with the "if" statement but it will take some additional learning on my part to get the syntax right.
Thanks again.

8
G-Code, CAD, and CAM discussions / Re: Peck drilling in the X axis
« on: November 06, 2010, 09:22:00 AM »
OOPS, I meant G19 to select the yz plane
Here's the code that doesn't work - get an error that says R value less than X.
g90
g19
g83 x10.5 r0.05 p0.0 q0.50 f5.0
g80
g0 x0.0
m30

If I put a negative sign in front of the 10.5 then it works but goes the wrong way.

9
G-Code, CAD, and CAM discussions / Peck drilling in the X axis
« on: November 06, 2010, 09:00:37 AM »
I've got a right angle head on my mill and I'm trying to drill a very long hole in the x axis. Is there a way to program this move with X going in the positive direction? I've used G17 to select the yz plane and programmed G83 to drill but the table moves in the negative direction. I'm trying to move the table in the positive direction while peck drilling.
Thanks in advance.

10
G-Code, CAD, and CAM discussions / Thread milling
« on: September 15, 2008, 11:17:10 PM »
I have a question regarding thread milling.
Can a tapered pipe thread be thread milled?
I've done some standard straight thread milling but never a tapered thread such as NPT.
Anyone have any helpful hints?
Thanks in advance.
LEW

Pages: 1 2 3 4 5 6 7 8 »