Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: BarryM on August 28, 2008, 04:27:59 PM

Title: Writing a macro
Post by: BarryM on August 28, 2008, 04:27:59 PM
Iam really new at this cnc technology I need help in writing a macro so I can turn my spindle motor on right now its connect to a relay which stays on .Or is there another way to control this
Title: Re: Writing a macro
Post by: Hood on August 28, 2008, 04:53:43 PM
Set up the OutPuts you want to use on the Spindle page in Ports and Pins, then aasign the Port and Pins you want to use for these OutPuts on the OutPuts page of Ports and Pins. Your spindle will turn on from code when you command a M3 or M4 and will stop with a M5. Also pressing the Spindle button will turn the spindle on if you want to start it manually.
Hood