Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Get line no on error.
Klaus
✭✭
I know that it probely not the right forum but cant find the right one.
I have made a modul that collect severel data on error and write in a txt file. I use GetSysData to get name of active tool and wobj but it would be nice to get the line no where the collision was happend.
Et would also be useful to get the targetname.
Is it possible to do that with rapid code.
The one who help men can get the code for free
Best Regards
Klaus Soenderhegn
www.cadalysator.dk
Klaus Soenderhegn
www.cadalysator.dk
0
Comments
-
You can get the current context, with module name and line number, by using the instructions ErrLog or ErrRaise with the errstr ERRSTR_CONTEXT. The information is then written to the controller event log.
To get the context directly in the RAPID program, which probably is what you are looking for, is unfortunately not supported.
Magnus Larsson
ABB Robotics development engineer0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings