Hello Guest it is March 28, 2024, 09:31:27 AM

Author Topic: External LEDS  (Read 4592 times)

0 Members and 1 Guest are viewing this topic.

External LEDS
« 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.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: External LEDS
« Reply #1 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
fun times
Re: External LEDS
« Reply #2 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?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: External LEDS
« Reply #3 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

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: External LEDS
« Reply #4 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
« Last Edit: October 02, 2007, 06:54:46 AM by Chaoticone »
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: External LEDS
« Reply #5 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.