A TRAP is basically another type of procedure call like PROC or FUNC.

  TRAP rStatBeltBroke
    !
    !  Trap Routine To Stop Robot If Belt Brakes On   
       Station 1
    !
    Reset doStat1Start;
    Set doStat1Stop;
    RETURN;
  ENDTRAP

  TRAP rAirLow
    Reset doStat1Start;
    Set doStat1Stop;
    StopMove;
      stOpMsg:="Remove Part Manually And Press YES to
      Abort Cycle.";
    RETURN;
  ENDTRAP

-- 
<http://forum.pspad.com/read.php?2,39081,50997>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem