Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
Intercept UIMessageBox messages
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.
0
Comments
-
Just an idea that popped up:
Make you own custom implementation of UIMessageBox that takes an additional 'test' parameter. If it is false, you just call the regular UIMessageBox, but if it is true, then you do something different (whatever that is), e.g
[CODE]answer := UIMessageBox2(Header:="The Robot is not at the Home
Position"MsgArray:=HomePos_MessageButtons:=btnOKIcon:=iconWarning, bTest);[/CODE]
The parameter bTest can be a global parameter that you define in some system module.
(Moved to RobotWare).
Henrik Berlin2013-02-22 09:41:56Henrik Berlin
ABB0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 364 IRC5
- 83 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 37 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings