8211
General Mach Discussion / Re: Add Cont-Step-MPG Leds to Cntrl Pnl.
« on: June 07, 2010, 06:16:23 AM »
Think I misunderstood the original question.
If you are using physical led's on a physical control panel then yes you will need an output to turn them on.
There is more than one way of doing this but Using VB the Jog Cont led can be detected with GetOemLed(14) and output #1 can be turned on with ActivateSignal(Output1). Obviously you would need to assign an output for each LED.
So something like:-
If GetOemLED(14)=True Then
ActivateSignal(Output 1)
Else DeActivateSignal(Output 1)
End If
Could be used for each virtual LED you wish to detect and physical LED you wish to switch.
Does this help ?
Tweakie.
If you are using physical led's on a physical control panel then yes you will need an output to turn them on.
There is more than one way of doing this but Using VB the Jog Cont led can be detected with GetOemLed(14) and output #1 can be turned on with ActivateSignal(Output1). Obviously you would need to assign an output for each LED.
So something like:-
If GetOemLED(14)=True Then
ActivateSignal(Output 1)
Else DeActivateSignal(Output 1)
End If
Could be used for each virtual LED you wish to detect and physical LED you wish to switch.
Does this help ?
Tweakie.