Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: machfab on January 05, 2011, 06:54:05 PM

Title: Waterjet on/off
Post by: machfab on January 05, 2011, 06:54:05 PM
I am configuring Mach3 for a waterjet. I need to execute a sequence for on and off.
On:
M3 (water on)
G4 Pxx (delay to create vacuum in abrasive line)
M8 (abrasive on)

Off:
M9 (abrasive off)
G4 Pxx (delay to clear abrasive line)
M5 (water off)

My question is:
How can I combine these into a Macro?
Maybe a custom M code that executes the above?
Thanks
 
Title: Re: Waterjet on/off
Post by: BR549 on January 05, 2011, 08:49:28 PM
'M3 Start macro
DoSpinCW()
Sleep(3000)
DoOEMButton(224)


'M5 Stop Macro
DoOemButton(225)
Sleep(3000)
DoSpinStop()

Just a thought, (;-) TP
Title: Re: Waterjet on/off
Post by: machfab on March 11, 2011, 09:50:15 PM
I'll try that!
Thanks