RobotStudio event

Trap conditions

How to activate the trap conditions in robot running time DO signal cutoff means how to stop the robot 

Answers

  • A little more explanation would be appreciated but here is an example of what I think you are referring to.

    VAR intnum sig1int;

    PROC main ()

    IDelete sig1int;

    CONNECT sig1int WITH trap_stop_at_once;

    ISignalDO do1, 0, sig1int;

    !Do stuff here.


    !Do stuff here

    ENDPROC



    TRAP trap_stop_at_once

    stop;

    ENDTRAP

  • revans said:
    A little more explanation would be appreciated but here is an example of what I think you are referring to.

    VAR intnum sig1int;

    PROC main ()

    IDelete sig1int;

    CONNECT sig1int WITH trap_stop_at_once;

    ISignalDO do1, 0, sig1int;

    !Do stuff here.


    !Do stuff here

    ENDPROC



    TRAP trap_stop_at_once

    stop;

    ENDTRAP

    Hi ...
    Use ISleep and IWatch to start and stop trap monitoring.

    Just Complementing...
    TRAP trap_stop_at_once
        ISleep sig1int ! Avoids recursion while executing the trap
    
        StopMove;
    
        ! Wait for UP Signal
        WaitUntil do1=1;
    
        StartMove;
    
        IWatch sig1int
    ENDTRAP
    Good Job