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.

Error Handling

Hello,

I am trying to do some error handling. My goal is for any errors that aren't included in the error handlers (which is almost all errors), I want a light to turn on before the RobotStudio program stops execution. So essentially, if during program execution the robot encounters an error not in the error handlers, it will jump to some sort of routine (maybe TRAP routine somehow?) and turn on a light and THEN the program is allowed to stop executing. Is this possible?

Thanks for any help!
SM

Comments

  • You can try to the system output "Execution Error". You can link this state to a digital output, which could be used to power the light.


    bR

    Carlos Martinez
    ABB
  • Carlos,

    Thanks for the response! It worked perfectly!

    Thanks,
    SM