Hello Guest it is May 09, 2021, 10:28:01 PM

Author Topic: Trouble with M3 and spindle speed  (Read 1781 times)

0 Members and 1 Guest are viewing this topic.

Trouble with M3 and spindle speed
« 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
Re: Trouble with M3 and spindle speed
« Reply #1 on: January 31, 2018, 02:42:43 PM »
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

Re: Trouble with M3 and spindle speed
« Reply #2 on: January 31, 2018, 04:26:34 PM »
Runs fine in the simulator.

Do you have a spindleSpeed.mcs in your macros directory?  if so post a copy.

What is the p7
Re: Trouble with M3 and spindle speed
« Reply #3 on: January 31, 2018, 07:31:33 PM »
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. 
Chad Byrd
Re: Trouble with M3 and spindle speed
« Reply #4 on: February 01, 2018, 10:28:29 AM »
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



Re: Trouble with M3 and spindle speed
« Reply #5 on: February 01, 2018, 10:39:11 AM »
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.
Re: Trouble with M3 and spindle speed
« Reply #6 on: February 01, 2018, 10:44:06 AM »
So am I suppose to have one?
Re: Trouble with M3 and spindle speed
« Reply #7 on: February 01, 2018, 10:46:55 AM »
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
Re: Trouble with M3 and spindle speed
« Reply #8 on: February 01, 2018, 10:49:55 AM »
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
Re: Trouble with M3 and spindle speed
« Reply #9 on: February 01, 2018, 11:11:47 AM »
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