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.

Triggering motion supervision in RobotStudio simulation

Hey All,

Does anyone know how to trigger a motion supervision event in RobotStudio to test error handling code?

Thanks

Answers

  • Hi Psyonic, 

    You can't raise internal errors as far as I'm aware, but you can raise custom errors you have created.
    Could you trigger another error that you filter for in your error handler as well that is raised from a trap routine tied to a randomly occurring interrupt? 
    The interrupt can execute a StopMove and then your error handler can perform the same recovery.

    Good Luck, 

    Regards,

    Harry
  • Thanks Harry,

    I'll give that a go :)