Hello. I would like to turn on a user led when my spindle is on, then turn off the spindle, but I still want that the led remain ON, so I did:
If GetOEMLed (11) SetUserLed (1500,1) ' This is ok, will turn on the user led 1500
If GetOEMLed (11) DoOEMButton (110)' This turns off the spindle, BUT also turns off the led 1500
This should not happen. What I am doing wrong ?
Thank you,
Filipe