Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Snipes44 on November 27, 2012, 10:11:50 PM

Title: Hardware Spindle Start/Stop Buttons
Post by: Snipes44 on November 27, 2012, 10:11:50 PM
Hello,

I have hardware buttons setup through a pokeys 56U. I have one that is for Start spindle CW and another setup as stop. I have done some searching but have not found how I can have individual buttons for those functions. Right now both buttons toggle the spindle on and off. I don't like having a toggle on/off via one button on my machine. My hardware start switch has a flapper over it so you can't accidentally turn the spindle on.

Am I going to need to write a brain that determines which state the spindle is in before it decides to either start the spindle if it is not running or do nothing if it is running. Also we need  to the same for the stop button.

Or is are there some separate spindle commands that I couldn't find. I looked through all the options in the pokeys plugin and didn't see anything that look relevant.

Thanks
Title: Re: Hardware Spindle Start/Stop Buttons
Post by: BR549 on November 28, 2012, 02:39:36 AM
DoSpinCW()

DoSpinCCW()

DoSpinStop()