Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Tarak on September 03, 2007, 05:57:17 PM
-
Hey this is really wierd.
When I load a program (Load NOT run) my spindle starts up on slow speed, I've recenly made the screen and designated M13 through to M16 for my spindle (see pic.)
Is M13 a reserved M code for some other purpose?
I did previously have it as M12 but had the same problem, so I changed it to M13 instead (But it's still doing it)
I'm thinking that I need to change to a different M code again.
Thoughts.
-
When Mach loads a program it reads the code to draw the toolpath, any M codes you have created are also read, what you have to do is this :-
enter this code into each and every macro you have created:
If IsLoading() Then
' program loading, do nowt
Else
' enter your existing code lines here
End If
This will stop mach3 executing the code during loading
Graham.
-
Thanks Graham, I'll give it a go.
-
Worked Beautifully Graham, Thanks.
Darc
-
Hi Darc,
Glad to be of help.
Graham.