How to write error Handling with GoFa Collision

Robero
Robero Mölndal
Hi everyone,

I am trying to write a error handling from a collision on our GoFa but I can´t get it to work.
I uploaded a screenshot of my code. To test it there is just two positions going back and forward, to try it out and make it easy.
Buy my error handler does not react and nothing happens after the error.
What am I doing wrong?


Comments

  • Forge_Engineering
    Forge_Engineering Mackay, QLD, Australia
    Hi Robero,

    Is CollisionErrorHandling set to "Yes" in your controller configuration under General Rapid:


    If it is set to No, the program will just stop. If it is set to Yes, the robot will still halt motion but the program will continue into the error handler.

    Regards,

    Harry
  • graemepaulin
    graemepaulin New Zealand mod
    Also the errno is not a number but the "pre defined text equivalent" - you can find the list in the manual RAPID Instructions, Functions and Data types.
    In this case probably ERR_COLL_STOP.
  • Robero
    Robero Mölndal
    So many thanks guys! It works with ERR_COLL_STOP. Is there any way to handle the errors like that in the screenshot? In this example Error 50204 ''motion supervised. Can you write error handling for those kind of errors?
  • graemepaulin
    graemepaulin New Zealand mod
    From the RAPID Kernal manual:
    The RAPID execution does not have to stop when a collision error occurs (event number 50204 - Motion supervision). If the system parameter Collision Error Handler is defined the execution will enter the RAPID error handler after the retraction and the execution can continue if all conditions for further execution are fulfilled.
    To be able to start the motion after leaving the error handler, a StartMove instruction must be called from the error handler.