Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: bajadave on March 20, 2011, 07:13:48 PM

Title: Spindle on/off Relay
Post by: bajadave on March 20, 2011, 07:13:48 PM
I have a control  box with a relay in it to turn on and off the spindle... I can't seem to find out in Mach where or  how to do this.. I know its an m5 command... I believe my spindle control is setup for pin1 port1. can someone direct me to where i need to enter this info... Thanks
Title: Re: Spindle on/off Relay
Post by: Hood on March 20, 2011, 07:34:24 PM
Config menu then Ports and Pins then Spindle Setup. Take the tick out of the disable relays box and then choose which outputs you want to use for M3 and M4. Next go to the Outputs page and set up the output numbers you chose with the port and pin number.
Hood
Title: Re: Spindle on/off Relay
Post by: bajadave on March 20, 2011, 07:54:49 PM
Thanks Hood But I must still be missing something. When I run the roadrunner file, at the end is the M5 command but my spindle does not shutoff... under ports and pins and spindle setup, I have the box unchecked and the output for M3 is #2 and for M4 is #1... under output signals I have output#2 Enabled with port 1 and Pin 1 set to Active low.... This is correct? If it is, my spindle doesnt shutoff so where should I start looking for the error?

Thanks
Title: Re: Spindle on/off Relay
Post by: Hood on March 20, 2011, 07:58:59 PM
Does your spindle start when you press the button on screen? Does it stop when you press it again?
If you want to attach your xml I will take a look.
Hood
Title: Re: Spindle on/off Relay
Post by: bajadave on March 20, 2011, 08:16:35 PM
No the button does nothing... Its a porter cable trim router with a on/off switch.. I can manually turn it off/on... when I run the road runner file and i manually turn the router on, it doesnt shut off at the end of the file.. thanks
Title: Re: Spindle on/off Relay
Post by: bajadave on March 21, 2011, 12:57:29 AM
Figured it out, it was the wrong pin number.. Thanks again Hood
Title: Re: Spindle on/off Relay
Post by: Hood on March 21, 2011, 03:17:26 AM
Ok good to hear :)
Hood