In the Ports and Pins screen, assign pin 14 to an output in the "Output Signals" tab, then assign that output in the "Spindle Setup" tab.
I have installed some relays with separate 5vdc power supply to basically turn on/off a power receptacle where my spindle and the vacuum cleaner are connected to and this is what it does without any software setup:
I started the computer, loaded Mach3, and turned on the control box and it stayed off as it should. I loaded a simple test program that didn’t have any M03 g-code in it and when I clicked on start the machine started running and the relayed turned on, ran the program and it came back to the starting point but the relay never turned off and the program had M05 (Spindle Off) and M02 (End Program). The relay also never turned off after I closed the Mach3 and turned off the control box. If I would disconnect the parallel cable from the computer it will turn off but after plugging the cable back in it would turn on again. The relay is connected to pin #14 so the got the power to turn it on when the program stated running and there was nothing there to shut it off after that and it’s still pumping 5v from the computer only. I have never played with that part of the software and I need to find out how to set it.
In the Ports and Pins screen, assign pin 14 to an output in the "Output Signals" tab, then assign that output in the "Spindle Setup" tab.
Gerry
Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
It sounds to me like you are driving the relay direct from the parallel port?
If so you should really use a buffer/driver or a BOB, see recent posts here re 2n7000 etc.
Al.
CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Just curious...I am about to create the same scenario and was wondering
if there is some way the relay can be triggered erratically...rather then a start and stop....I would like say the vacuum to come on every 200 lines of g-code....does this mean I need to inject mstarts and stops throughout the run.
thanks
cnc guy
toronto
You can use Output #1 and Output #2 turned on by M7 and M8, and both turned off by M9. Relays are are on my BOB.
Intended for mist and coolant, but I use one for a 1HP monster dust sucker.
I put a double power outlet on my machine and plug in whatever I like.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.