Checking A Routine Exists
Paul33
✭
Hello,
I'm programming an IRC5.14.03 robot which asks the operator what part they wish to process within the cell. After the operator inputs the part name, eg 101-028, the RAPID coding changes the name and runs routine Prt_101_028. The problem is that the operator could type the name incorrectly and so the robot would fail trying to run a routine which doesn't exists.
The routine name (Prt_101_028) is held in string %stRoutineName%. The robot is able to process above 500 parts.
I'm looking for a method which checks for the existance of the routine before trying to run it. If the routine doesn't exists then the robot simply asks for the part name again.
Is there anyway to check within the RAPID coding if routine %stRoutineName% exists within the system?
BR
Paul
Paul
BR
Paul330
Paul330
0
Comments
-
Hello,Never mind guys, all sorted...................solution:ERRORIF ERRNO = ERR_REFUNKPRC THEN......Ask Operator for new part nameTRYNEXT;ENDIFBR
Paul TBR
Paul3300 -
thanks for this.. I have the same problem. I will try this.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 801 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings