Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jguillen on October 01, 2007, 05:05:54 PM

Title: External LEDS
Post by: jguillen on October 01, 2007, 05:05:54 PM
Hello All,

Does any one know how to light up an external led with Mach3?.  What I am trying to do is have 3 LEDs  on my home made MPG light up with the corresponding active axis.  I looked at the oem codes for the the LEDs on the Tab screen and figured out that they are 59 for the x axiis, 60 for the y axis, and 61 for the z.  This is as far as I can get.  I cant figure out how to relate these codes to an output signal.


Thanks,

Jose.
Title: Re: External LEDS
Post by: poppabear on October 01, 2007, 05:53:06 PM
you will need to do it in a VB script or brain.

VB in macro pump the x axis as an example

If GetOEMLED(59) Then
ActivateSignal(OUTPUT1)
End If


In Brian,

pick a LED input led59 for example,
then your lobe is straight through
termnation is OUTPUT1

so get these outputs and drive them trough your amp to your leds on your pendant

scott
Title: Re: External LEDS
Post by: jguillen on October 01, 2007, 11:31:54 PM
I created the attached brain and when I enable it, it causes Mach3 to shut down.  Any suggestions?
Title: Re: External LEDS
Post by: Hood on October 02, 2007, 02:45:38 AM
What version of Mach are you using, I had similar problems with 2.47 I think it was but 2.48 cured it and I now have the update installed and am at 2.52 which seems to work fine.
Hood
Title: Re: External LEDS
Post by: Chaoticone on October 02, 2007, 06:52:49 AM
Rename your file. Take the space out that is between led     and      output. Brains don't like blank spaces in their name, or didn't a few releases back. Hood knows all about it.  ;)

Brett
Title: Re: External LEDS
Post by: jguillen on October 03, 2007, 01:57:52 AM
Thanks for the replies.  Yep, getting rid of the spaces in the file name fixes the problem. I'm on verssion 2.48.