Have the button call M5.
Hey guys,
So I've been looking through lists of OEM buttons for Mach 3 that I have found in several different places on the internet, as well as lots of Google searches, but I cant find any info about a more specific code I'm trying to find, so it might not exist.
I'm looking for a code to turn the spindle off no matter which direction it is going. I'd like to have 3 panel mounted buttons, one for CCW, STOP, and CW. I know that if the CW button is pressed twice, it will
stop the spindle, but I'm looking for a button that will stop the spindle and nothing else.
Any ideas?
Thanks
Similar Threads:
Have the button call M5.
Gerry
UCCNC 2017 Screenset
[URL]http://www.thecncwoodworker.com/2017.html[/URL]
Mach3 2010 Screenset
[URL]http://www.thecncwoodworker.com/2010.html[/URL]
JointCAM - CNC Dovetails & Box Joints
[URL]http://www.g-forcecnc.com/jointcam.html[/URL]
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
If it's a button wired to an input, you'd use the macropump macro to monitor the input, and call the M5.
Gerry
UCCNC 2017 Screenset
[URL]http://www.thecncwoodworker.com/2017.html[/URL]
Mach3 2010 Screenset
[URL]http://www.thecncwoodworker.com/2010.html[/URL]
JointCAM - CNC Dovetails & Box Joints
[URL]http://www.g-forcecnc.com/jointcam.html[/URL]
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
No luck yet. All I manage to get is a syntax error from VB editor from what I've entered into my macropump.m1s file:
If GetLED(821)=1
Then
DoSpinStop()
I have verified function of input 1 using the diagnostic screen, but cant get it to do anything.
Update:
With more relentless tinkering and a .pdf guide I found, I came up with
If IsActive(Input1) Then
DoSpinStop()
End If
This functions as desired for a command that just stops the spindle. Thanks Gerry for getting me pointed in the right direction