Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jam1962 on March 17, 2010, 02:37:45 PM

Title: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 02:37:45 PM
When I start Mach3 and run the Gcode the spindle doesn't start on the M3 command, I have to start it with F5 or the screen button.  After this first time though it recognizes the M3 command. It is only on the very first RUN, I didn't allways have this problem, don't know where it came from but I cant seem to remember to push F5 when I should.  Whats wrong?

Jay
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 02:44:56 PM
I seem to recall some people having issues with this a few revisions back, maybe try the latest revision if you are not using that already.
Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 02:48:43 PM
I am using the latest version.  Even reloaded mach and it's still there.  Doesn't keep me from using the machine its just a pain.
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 02:52:03 PM
Try going back a revision or two and see if your problem persists, also check whats in your M3 macro.
Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 03:07:01 PM
M3 marco is this      DoSpinCW()      I will have to download the older versions. 

jay




Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 03:10:29 PM
Macro is fine so that shouldnt be the problem.
If you MDI a M3 does it work?
Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 03:19:42 PM
Doing a MDI M3 dosent turn it on either, however if I go back to the main screen, press F5 it turns on, F5 again it turns off after this the MDI M3 works.  It's just that very firs time when Mach starts up.  I start the computer first then the machine, but have done it the other way with the same outcome.  This is been a problem for a while now but this is the first I took the time to ask,  cant seem to find the answer on my own.   

Jay
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 03:25:17 PM
Can you quickly set up another profile just with the spindle stuff enabled and open that profile and see if it behaves the same.
Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 03:42:41 PM
I did as you asked, same thing.  The LED shows the router on so Mach thinks its on but it didnt turn on the relay.

Jay
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 03:49:31 PM
Do you have a delay set on general config for the spindle, if not try a delay and see.
If that doesnt help attach your xml and I will try here and see if I can replicate.

Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 04:19:03 PM
didnt seem to work, cant seem to upload xml, site says theres already a file by that name Ill get to though
jay
Title: Re: Spindle wont start on first run
Post by: Overloaded on March 17, 2010, 04:44:00 PM
Just rename it to jam1962.xml and it should then accept it.
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 06:02:24 PM
Here you go hood, thanks
Jay
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 06:21:40 PM
I had a look through the xml and only thing I see is you have an output set to pin 18, pin 18 is a gnd pin so you cant use that. I dont think it will mess with things but you never know.
 I dont have a computer here set up with a PP so will have to wait until tomorrow to grab the PP I have at the workshop for testing, if you dont hear from me by this time tomorrow shout again as I will likely have forgotten :D

Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 06:57:48 PM
Thanks for your help, I'll do a bit more looking myself as well. 


Jay
Title: Re: Spindle wont start on first run
Post by: Hood on March 17, 2010, 08:10:06 PM
Just built the old comp up on the desk and loaded Mach and your xml. Had to change the port to suit the standard address of the onboard but thats the only change I made. I rigged up a PP cable with a LED hooked to Pin1 and Gnd pin and restarted your profile. LED was on as expected then went to MDI and did a M3, LED went out as expected. I have restarted a few times and MDI right away and its always worked, wonder if it is a port problem on your computer?
Hood
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 08:40:16 PM
I was just out to the shop and the darn thing was doing OK.  Restarted everything and again OK.  I dont know, the port may very well be the problem.  If it starts acting up again I will swap it to port 2 and see then.  Thanks for all your help.

Jay
Title: Re: Spindle wont start on first run
Post by: ger21 on March 17, 2010, 09:12:10 PM
Someone had a similar problem a few weeks ago. But if they did an M5 before the M3, it would work. I told them to put M5 in their initialization string, and it fixed the problem. You might want to try it.
Title: Re: Spindle wont start on first run
Post by: jam1962 on March 17, 2010, 09:21:08 PM
Thanks Gerry, I will give it try.

Jay