Hi all,
I have just built a pendant for my CNC Router I built (see
http://web.mac.com/dacostad) and I have the following in my
macropump.m1s to control the turning on and off of the LED's on my
pendant.
As you can see towards the end of the code I have a single LED on the
pendant that when on means that the pendant is not in MPG mode.
However as there are two non-MPG modes (cont and step) I would like to
have the LED be on for cont mode and flash for step.
At the moment I just turn it on for both (OEM LED 14 and 15) and as I
am not a programmer I am not sure how to get to flash when OEM LED 15
is on.
I imagine that I need something like a do while loop.
Can someone advise me on the correct code.
Here is the code;
If GetOEMLed(59) Then ' X Axis selected
ActivateSignal (OUTPUT4)
Else
DeActivateSignal(OUTPUT4)
End If
If GetOEMLed(60) Then ' Y Axis selected
ActivateSignal (OUTPUT5)
Else
DeActivateSignal(OUTPUT5)
End If
If GetOEMLed(61) Then ' Z Axis selected
ActivateSignal (OUTPUT2)
Else
DeActivateSignal(OUTPUT2)
End If
If GetOEMLed(14) Or GetOEMLed(15) Then
ActivateSignal (OUTPUT3) 'Jog Mode, LED on is cont. mode
Else
DeActivateSignal(OUTPUT3)
End If
Thanks
David