I’m trying to test the functionality of safety modules in RAPID. Certain actions cause errors in the program, but are custom UIMessageBox errors, so they can’t be handled with an error handler. Can I intercept these messages for testing purposes? Or, can I read them from the Pendant to ensure they displayed correctly?
Example: If the robot is not in its home position when the start button is pressed, this code executes:
answer := UIMessageBox (Header:="The Robot is not at the Home Position"MsgArray:=HomePos_MessageButtons:=btnOKIcon:=iconWarning);
If possible, I’d like to catch that message instead of displaying it on the Pendant.