I would like to create a script where where if input1, input2, or input3 LED is active then it displays a message in the status bar that says "X Servo Drive Fault", "Y Servo Drive Fault", "Z Servo Drive Fault".
I've tried a few ways that didn't work because I have no real idea how to do it.
Here is an example of my .m1s file. There have been many variations to no effect.
If GetUserLED(21)=1 then
Message "X Servo Drive Fault"
End If
If GetUserLED(22)=1 then
Message "Y Servo Drive Fault"
End If
If GetUserLED(23)=1 then
Message "Z Servo Drive Fault"
End If
How would you guys write that to get it to work. BTW I'm not even sure if those LEDs descriptions are correct, but when I highlight them in machscreen editor they have OEM code 0 and instead say user defined: 21. etc.
Thanks!