Hello Guest it is March 29, 2024, 02:22:07 AM

Author Topic: Editing M3 & M4 command to add delay?  (Read 4530 times)

0 Members and 1 Guest are viewing this topic.

Editing M3 & M4 command to add delay?
« 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?
Milton from Tennessee ya'll.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Editing M3 & M4 command to add delay?
« Reply #1 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
Re: Editing M3 & M4 command to add delay?
« Reply #2 on: March 26, 2013, 02:56:50 PM »
Oops, even I should've known that.  Thanks!
Milton from Tennessee ya'll.
Re: Editing M3 & M4 command to add delay?
« Reply #3 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.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Editing M3 & M4 command to add delay?
« Reply #4 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
Re: Editing M3 & M4 command to add delay?
« Reply #5 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.