Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: DICKEYBIRD on March 26, 2013, 02:10:34 PM

Title: Editing M3 & M4 command to add delay?
Post by: DICKEYBIRD on March 26, 2013, 02:10:34 PM
I can manually add in a G4 pause to let my spindle get to full speed before the tool touches metal but would rather have it done automagically in case I forget to edit the code.

I can get m3 & m4.m1s open in the VB scripter window but my 'puter-foo ends there.  I tried to look through the manual but I don't have a clue about programming.  What do I need to add to DoSpinCW() to allow a 1 or 2 sec delay before the next line executes...or is that even the correct way to go about it?
Title: Re: Editing M3 & M4 command to add delay?
Post by: Hood on March 26, 2013, 02:23:35 PM
Config menu, Ports and Pins then Spindle Setup, you can set a delay there for M3 and M4 for both spin up and down.
Hood
Title: Re: Editing M3 & M4 command to add delay?
Post by: DICKEYBIRD on March 26, 2013, 02:56:50 PM
Oops, even I should've known that.  Thanks!
Title: Re: Editing M3 & M4 command to add delay?
Post by: metalnwood on March 28, 2013, 05:58:29 PM
I've known that but it doesnt seem to work for me.  I set up a delay but my values are ignored.   I either have to put a pause in the code or I move the spindle to a far corner to give it time to get going.

    Not sure if it is an issue with the ethernet smoothstepper that this doesnt happen for me but adding a delay in mach3 isnt working.
Title: Re: Editing M3 & M4 command to add delay?
Post by: Hood on March 28, 2013, 06:04:24 PM
I am sure I have had that set with the ESS and it worked, cant remember why I was trying it but.....
Hood
Title: Re: Editing M3 & M4 command to add delay?
Post by: metalnwood on March 28, 2013, 06:14:12 PM
yes, I think it works for others as well but I know I am not the only one that it doesnt work for. 

    I think I will just have to spend 15 minutes seeing how to change the post processor in vectric so that it adds the delay there every time.