Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: dsauka on February 23, 2017, 10:49:39 PM

Title: Is there a built in dwell on M-codes?
Post by: dsauka on February 23, 2017, 10:49:39 PM
Hi I'm a bit of a newbie but have a simple question.

I built a CNC Machine but I am using it for painting.  I use the M3 code to turn on my paint sprayer.  My problem is once I turn on the sprayer I want it to move right away and it doesn't.  It hesitates for about 1.5 seconds and I get runs with my paint.  What can I do to get it to turn on the spray and immediately activate the x-axis movement?  I initially had the M3 code on it's own line then added it to the G-code line but that didn't really speed it up like I thought it might.

Any suggestions would be helpful.

Thanks in advance.
Title: Re: Is there a built in dwell on M-codes?
Post by: Tweakie.CNC on February 24, 2017, 04:16:42 AM
In Config. / Ports and Pins / Spindle Setup  -  set the spin up & spin down delays to zero.

If that is still not quick enough then try the M10 / M11 commands which will turn ON and OFF at the instant of movement. I have described them in a bit more detail here :
 http://hobbycncart.com/publ/cikkek/mach3_temaju_cikkek/switching_a_laser_under_mach_control/8-1-0-29

Tweakie.
Title: Re: Is there a built in dwell on M-codes?
Post by: dsauka on February 24, 2017, 11:24:04 AM
Yes, I checked my ports and pins in spindle setup and yes there was a 1 second delay so I set to zero.  I haven't tried it yet but I'm sure that will make a big improvement.  Thanks!