Hello Guest it is February 27, 2021, 09:47:34 PM

Author Topic: How to use Mach3 outputs?  (Read 23290 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: How to use Mach3 outputs?
« Reply #10 on: March 24, 2014, 03:11:45 PM »
First thing to say is technically you should not use under 100 for custom M codes as they are supposed to be reserved for Mach use, so best to use 101 or higher.

To activate an output (example OutPut1) via a macro you would just have the following in your macro

ActivateSignal(OutPut1)

To deactivate it the macro would be

DeActivateSignal(OutPut1)


Hood
Re: How to use Mach3 outputs?
« Reply #11 on: March 24, 2014, 03:22:02 PM »
Thank you hood!!!!!
You are great   :)
Re: How to use Mach3 outputs?
« Reply #12 on: May 14, 2020, 07:55:41 PM »
I spent alot of time trying to find a solution to automatically turning on a dust extractor, water pump or a vacuum board and everything I found was to use the flood button and to add the m8 into the gcode file.
That was all just to painfull adding to every gcode file.
all you need to do is add  ActivateSignal(OutPut1) to m3 macro file and DeActivateSignal(OutPut1) to m5 macro file
eg. M3 macro
DoSpinCW()
ActivateSignal(OutPut1)

M5
DoSpinStop()
DeActivateSignal(OutPut1)

this will turn on and off output 1 with the spindle motor automatically
the only change you need to make is to change the output number to suit your setup eg. ActivateSignal(OutPut2) , DeActivateSignal(OutPut2)

the location of the macro file is C:\Mach3\macros\Mach3Mill


Offline Tweakie.CNC

*
  • *
  •  8,659 8,659
  • Super Kitty
    • View Profile
Re: How to use Mach3 outputs?
« Reply #13 on: May 15, 2020, 01:08:35 AM »
Excellent tip ajwatt.

Tweakie.
KEEP SAFE !