RobotStudio event

Trap trigger condition

Hi everyone,

I have question concerning the trap function.  What append if the conditions that trigger a Trap recame true when the trap is running ?

For example I have an object arriving on the A sensor, at this point my trap will activate and a cylinder push the object to the B sensor. If I have the retry the move the object will return in A at this point what will happen ?

Il need to make 3 retry and leave the object at the A position if it can't reach the B

Thanks !
Tagged:

Comments

  • lemster68
    lemster68 ✭✭✭
    Typically, in a trap routine you would use ISleep to disable the interrupt while you deal with the trap condition.  Otherwise, you could get into the situation where the interrupt queue becomes full, causing a robot error.
    Lee Justice
  • Thanks I did'nt know I can use Isleep inside the trap itself
  • lemster68
    lemster68 ✭✭✭
    You are welcome.
    Lee Justice