Hello Guest it is March 28, 2024, 08:46:12 PM

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 - Chevygirl

Pages: 1
1
General Mach Discussion / Re: Subroutine Using M98
« on: August 22, 2009, 01:20:40 PM »
Incremental mode!!!!! Dang it!! Ok, I've got it now. I don't even need the #3 = #3-0.003 if I'm in incremental mode, and just don't return to Z0 until after my subroutine call.... Ok, I think I've got something that works (G52 and my controller just don't get along  :) )

Thanks for the help!

2
General Mach Discussion / Re: Subroutine Using M98
« on: August 20, 2009, 12:34:10 AM »
Hi,

Thanks for the help! I'm cutting it on a machine. I'm not a 100% familiar with the machine, it's my dad's. He has a Rottler F65 that stopped functioning correctly, so he installed a Vital Systems DSPMC control system and uses Mach3. There is a lot of functionality in Mach3 that he can't use with the DSPMC controller, one function is how to run the spindle... so the M3 and M5 are a no go. I was hoping my code was completely messed, now I am thinking it's the controller. It doesn't seem to like G52, and won't run the loop, it will only run the code once with an incorrect increment. I guess I need to try to write something that has a loop, but doesn't require G52. I put this together looking at some of the other posts on here (this forum is extremely helpful!) but I haven't run it yet: I'm not sure if the #3=[#3-0.003] will work. But check out the G00's ;) 

#3=0
M98  P1 L2
M30
O1
G91
G00  Z#3
S1300
G04  P2000
G01  X-6 F30 ( F30 for rough, F10 for finish)
S0
G04  P1000
G00  Z0.5
G00  X0 Z0
#3=[#3-0.003]
M99
%

3
General Mach Discussion / Subroutine Using M98
« on: August 18, 2009, 07:52:14 PM »
This is the first program I've ever written in G code, and surprise, surprise it doesn't work! I'm trying to create a subroutine to change my Z position by three thousands of an inch increments. I know there are a lot of threads on here that already discuss this topic, but I haven't been able to find a solution that makes this code work. This is what I have:

G00  G49  G40.1  G17
G80  G50  G90  G98   
G20  (Inch)

G52  Z0.003
M98  P1
G52  Z0.006
M98  P1
G52  Z0.009
M98  P1
G52  Z0
G00  Z-0.01
S1300
G04  P2000
G01  X-6 F10
S0
G04  P1000
G00  Z0.5
G01  x0 F200 
M30
O1
S1300
G04  P2000
G01  X-6 F30
S0
G04  P1000
G00  Z0.5
G01  x0 F200   
G00  Z0
M99
%

I'm sure my code is fundamentally flawed, but if you know what I've missed I would appreciate knowing!

Thanks!

Pages: 1