RobotStudio event

Exit; in trap routine

I expect Exit; to terminate the T_ROB1 task however it does not seem to work either on a VC nor a real IRC5.

I execute it inside a trap routine, is this illegal ?

Comments

  • Hi Laro88,

     

    What is it doing? It has been my experience that in the IRC5 the Exit command simply stops the program immediately and removes the program pointer, thus forcing a manual reset of PP To Main. It will look different from the S4's when Exit would put the program pointer at the beginning of main and stop.

     

    Shane
  • Hi!
    As Wolf Tech answered, Exit command stops the program immediately and removes the program pointer, thus forcing a manual reset of PP To Main. I have tested this both on a Virtual Controller and a real controller, and it works as described.

     

    Make sure that your TRAP is executed. If the TRAP is executed, then let me know which version of robotware you are using.

     

    Torbjorn
  • I had a problem with the Messaging Queue yet again, queue full prior to the message triggering Exit; I dislike hunting a problem that has one of those wideranging problem scenarios - "either this, or that or something else caused a problem" :-)