Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: cnc many on December 18, 2015, 08:38:29 AM

Title: M3 M4 M5 spindle relay solved
Post by: cnc many on December 18, 2015, 08:38:29 AM
Iv had a lot of problems getting m3,4,5 to work with the relay on my bob working on pin 14
And from the forums im not the only one

Output 1 activated
Pins set up and configures

It will trigger the relay with the screen button on main Mach 3 page and in the diagnostics screen etc
But nothing from MDI or g code files

Solution is so basic I could cry!
when setting up Mach 3 you are asked to set up profiles and not alter the generic profile
If you check c: mach3/ macros in the new profile they are all empty. But the mach 3 profile has a tiny bit of vb script in them
So you meanly copy these and paste into your own profile

Eg in M3 macro you need
DoSpinCW()

AND IT WORKS,!!
Ridiculously simple.   I struggled for hours on this and viewed 20 pages in this forum with no real solutions and found a few bits ov vb script solutions to a plethora of spindle problems wtih no simple solutions  but it's so simple

Have fun. Now the machine is truly finished!
So if Amy other Mcodes don't work you now know what to do!

Manny

Title: Re: M3 M4 M5 spindle relay solved
Post by: Tweakie.CNC on December 19, 2015, 01:37:08 AM
Hi Manny,

Thanks for posting this information which I am sure will help others that follow.

Tweakie.