Thank you Klaus for the information Klaus
I tried it and it worked.
So when I input a new value the LED is RED until script is executed. then turns green.
What would make the script perfect would be to have the status of the LED set by comparing the USER DRO value with the axis vDRO value
SO if I input a value in the user DRO the LED turn red until the script is executed and the axis has traveled to the input value, Then turn green.
So some kind of Visual basic command comparing these value saying something like this:
If X DRO value is >< than USER DRO
then SetUserLED(1000, 1)
else SetUserLED(1000, 0)
Or simply just:
If X DRO value is = USER DRO
then SetUserLED(1000, 1)
Sorry, I do not know VB script commands, but I think you understand, as you have made the software:)

Best reg
Roy