Which signal stop the program running with Auto External

  • Hi,


    when using Auto External , which signal is used to stop the program? the $MOVE_ENABLE ?


    Thanks

    KUKA Conntroller : _________<br />KSS Software : ____________ <br />Robot Model: _____________

  • I always use interrupts with the BRAKE and RESUME statements inside of them.
    The flag which is linked to the interrupts is set from within the SPS.


    My usual program structure is like the following:



    Code
    DEF cycle1_run()
     isr_called_from_cycle=TRUE
     ...
     actual program ...
     PTP ...
     LIN ...
     ...
    END


    Code
    DEF int16_stop ( )
     BRAKE F
     INT_stop=FALSE   
     IF ISR_called_from_cycle THEN
      RESUME 
      ;this allows the robot interpreter to return to the main_application_loop() function
      ;the flag allows the RESUME statement to be executed ony if a function has been 
      ;called from within the main_application_loop, because that loop never returns
     ENDIF
    END

    Edited once, last by diglo ().

Advertising from our partners