Hello Guest it is April 19, 2024, 01:31:57 PM

Author Topic: Led Set Variable Position  (Read 3402 times)

0 Members and 1 Guest are viewing this topic.

Led Set Variable Position
« on: May 27, 2009, 06:24:38 PM »
I would like to add a button led to Set Variable Position. The LED should turn on by pressing the button and turn off by pressing the button Goto Variable Position. Can you help? Thanks in advance. Giordano
Re: Led Set Variable Position
« Reply #1 on: June 01, 2009, 02:33:19 AM »
It should be several ways to do that, my option would be:

Make your own led number (your specific led).
Make also the button that turns on the led and the button that turns off the led editable in mach3 as a script.
Edit the script, and for each button put the led on and off (after or before the script to do set variable position and goto variable position)

Filipe

Offline Bill_O

*
  •  563 563
    • View Profile
Re: Led Set Variable Position
« Reply #2 on: June 01, 2009, 08:18:36 AM »
Try something like this.

If (GetUserLED (1135) = 1) Then
SetUserLED (1135, 0)
Else
SetUserLED (1134 , 1)
End If   

Bill