1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Reset KUKA robot with E-Stop

  • emiraguerrebere
  • April 18, 2018 at 7:23 PM
  • Thread is Resolved
  • emiraguerrebere
    Trophies
    3
    Posts
    3
    • April 18, 2018 at 7:23 PM
    • #1

    Hello, guys.

    Well, I have this issue and I was wondering if any of you could help me.

    When I am running a program in Automatic External, in an already selected program within the system, I want to press the E-Stop and stop the current run and also, reset the whole running program to re-select a program inside the Cell.

    In other words, how can I stop not only the current run with the E-Stop but exit the program that is running to select again a program?

    I need this because I use a HMI for the operator and I want to avoid them to move anything from the SmartPAD.


    Thank you in advance.

    I hope you can help me.

  • davidina
    Reactions Received
    3
    Trophies
    3
    Posts
    95
    • April 18, 2018 at 8:40 PM
    • #2

    Hello,
    E-Stop means E-Stop and this is totally for safety related purpose. Its function does not include deselecting and selecting programs.
    If a robot is stopped, it can resume the current task or go back to Home position using appropriate tested Homing strategies and the respective command in this case can be given from the HMI. Why do you want to "change" a program with Emergency Stops?

  • emiraguerrebere
    Trophies
    3
    Posts
    3
    • April 18, 2018 at 8:50 PM
    • #3

    Actually, what I need to do is stop the current program and send to home to select a program from the beginning.

    I was reading a topic related with CWRITE and also using Interruptions (currently trying both to find the best solution) to go automatically to home after stopping the robot. Because everytime I stop the robot, it starts again on the same routine and continue when it stopped.

  • emiraguerrebere
    Trophies
    3
    Posts
    3
    • April 18, 2018 at 9:37 PM
    • #4

    I found the solution in this page:

    https://www.robot-forum.com/robotforum/kuk…pointer-to-cell

    I actually used CWRITE command and work flawless. Just needed to change the variables that suit my program, in case someone have this issue too.


    Thanks.

  • dalex10
    Trophies
    1
    Posts
    20
    • December 14, 2023 at 5:16 PM
    • #5

    Hello, Im trying to do exactly what you mentioned, the link you provided with the solution doesn't work anymore, can you tell me how you did this? (If you remember).

    Thank you.

  • SkyeFire
    Reactions Received
    1,044
    Trophies
    12
    Posts
    9,391
    • December 14, 2023 at 9:40 PM
    • #6
    Code
        IF (I_PROG_STOP OR ($TIMER_FLAG[16] AND FLAG_WD)) AND ($PRO_STATE1 <> #P_FREE) THEN
          IF (($PRO_STATE1 == #P_STOP) AND I_PROG_RESET) OR ($PRO_STATE1 == #P_END) OR ($PRO_STATE1 == #P_RESET) OR FLAG_CANCELPROGREQUEST THEN
            CWRITE($CMD,STAT,MODE,"CANCEL 1")
          ELSE
            CWRITE($CMD,STAT,MODE,"STOP 1")
          ENDIF
        ENDIF
        IF NOT I_PROG_STOP AND ($PRO_STATE1 == #P_FREE) AND NOT I_PROG_RESET AND NOT O_PROG_SELECTED AND ($MODE_OP == #EX) THEN
            CWRITE($CMD,STAT,MODE,"RUN /R1/ROBOT()")
          ENDIF
        ENDIF
       
     SWITCH $PRO_STATE1
          ; No Program Selected
        CASE #P_FREE 
          O_PROG_SELECTED = FALSE
          O_PROG_RESET = TRUE
    
          ; Program Selected but Stopped
        CASE #P_STOP 
          O_PROG_SELECTED = TRUE
    
        ; Program Stopped at Step 0, Ready to Start
        CASE #P_RESET
          O_PROG_SELECTED = TRUE
          O_PROG_RESET = TRUE
    
        ; Program Selected and Running
        CASE #P_ACTIVE
          O_PROG_SELECTED = TRUE
          O_PROG_RESET = FALSE
        ENDSWITCH
    Display More

    The CWRITE to the $CMD channel in the SPS can perform STOP, CANCEL, and RUN operations on the Robot Interpreter. Use of these commands needs to be carefully managed with the $PRO_STATE1 variable to ensure each command is only fired once, and in proper sequence, instead of "hammering" the command repeatedly.

    In the above example, the user inputs I_PROG_STOP and I_PROG_RESET could stop the program, or Cancel it and then call the program ROBOT() (this can be replaced with whatever your 'main' program is, but the /R1/ part is mandatory). The user outputs O_PROG_SELECTED and O_PROG_RESET are used as status indicators.

    Since the SPS runs in an infinite loop, and cannot contain WAIT commands, using state machines as above is also mandatory.

  • hermann
    Reactions Received
    405
    Trophies
    9
    Posts
    2,596
    • December 16, 2023 at 9:47 AM
    • #7
    Quote from dalex10

    the link you provided with the solution doesn't work anymore,

    Here it is: Cancel Program and Send Pointer to Cell.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download