Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: turmite on January 31, 2018, 11:52:55 AM
-
Is anyone using the Mach 4 6 axis screen and having trouble with turning the spindle on using M3 and a speed number, ie,
M3 S5000
I have that in my code and have placed it as the first line and also the second line after the initial move. The spindle will not come and the gcode will not advance until I hit the start button again. Spindle still doesn't come on but the code runs and I can start the spindle by hitting the M3/M5 button.
I will post the actual code as soon as I get to the shop!
Mike
-
Here is the code I tested!
G00 G90 G17 G54 G40 G49 G80
s5000 m3 p7
G0x10.00y5.00z-3.00
g1z-4f100
g1y10f300
g1y5
g1z0f100
g0x0y0
m05
m30
-
Runs fine in the simulator.
Do you have a spindleSpeed.mcs in your macros directory? if so post a copy.
What is the p7
-
Yeah. It's running good on my sim as well. If the P7 is a pause, you need a G04 P7.0 to make it pause 7 seconds.
-
Hello rtuttle,
No there is no speedSpindle.mcs in the macro folder!
I can turn the spindle on via mdi as well as change the spindle speed with the slider bar for speed control.
Is the speedSpindle.mcs supposed to be a part of the default software from New Fangled?
Mike
-
No it is not. It is how you can change the behavior of a M3 command. Just wanted to make sure that you hadn't put one in and forgot or if you had that the code was okay.
-
So am I suppose to have one?
-
rhtuttle another thing that might be part of this that I forgot to mention!
I am using a Vital Systems Hicon controller but I thought the controller used the Mach 4 commands to control the spindle, read the inputs and control the outputs!
Mike
-
Not unless you have a need to change the default behavior. Your code shouldn't be causing this behavior on your physical machine since it runs on the simulator. It is more likely your motion controller doesn't like one of the codes and stops. Have you tried eliminating the P7 from the code?
RT
-
Yes sir! I have tried it about every configuration I could think of! I just thought of something. I need to run to the shop run the test again and post something that might be part of this. I will post from the shop in about 5 minutes!
Mike
-
Ok here is what I thought I remembered!
This is in the status bar at the bottom of my screen when I load the code.
Vertex Buffer Objects requested but not available
-
That status message is related to your toolpath. If your video card is not quite up to snuff, you'll see that message. You can go to Configure>Mach>Toolpath to disable VBO tool path.
-Bryanna
-
Found the problem!!!
Configure, Mach, Spindle......I had a tick mark in the "wait on spindle to stabalize at 90%"
Took that out and it worked fine!
Thank all of you that offered me help!
Mike