ErrLog in a Trap Routine
EricH
✭
When I write an ErrLog in a Trap Routine, the log is displayed without description text. Is there a way to fix this?
TRAP ClearPickAreaTrap
IF rob_do_48_Rob_out_of_TurnTable = 0 THEN
StopMove \Quick;
ErrLog 4830,\W,"Clearance Error",ERRSTR_TASK,"Lost clearance for Turntable, while picking a part",ERRSTR_EMPTY,ERRSTR_EMPTY;
WHILE rob_di_16_Clearance_Pick_Part = 0 DO
WaitTime 1;
ENDWHILE
StartMove;
ENDIF
IF rob_do_48_Rob_out_of_TurnTable = 0 THEN
StopMove \Quick;
ErrLog 4830,\W,"Clearance Error",ERRSTR_TASK,"Lost clearance for Turntable, while picking a part",ERRSTR_EMPTY,ERRSTR_EMPTY;
WHILE rob_di_16_Clearance_Pick_Part = 0 DO
WaitTime 1;
ENDWHILE
StartMove;
ENDIF
ENDTRAP
This is the Result:
0
Comments
-
The switches prohibit writing the message to the pendant.[ \W ]WarningData type: switchGives a warning that is stored in the robot error message log only (not shown directly on the FlexPendant display).
[ \I ]InformationData type: switchGives an information message that is stored in the event log only (not shown directly on the FlexPendant display).
If none of the arguments \W or \I are specified then the instruction will generate an error message directly on the flexpendant and also store it in the event log.0 -
Without \W has the same problem. Still no title and description displayed.0
-
Curious.
Have you tried creating your own error strings as opposed to using the predefined data?
Maybe Lemster of Micky will have better ideas than I have.
0 -
Did you install your own .xml file? If you want to use just your own strings then you have to use 4800.Lee Justice1
-
Thanks lemster, that was the problem.Found this in the Help manuals:ErrLog generates program errors between 4800-4814 if using the xml file that are installed by the system, and between 5000-9999 if installing an own xml file.
So this means I have only 15 error ids, if I don't use xml files.
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
- 314 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 794 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings