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

how to stop a robot in a sub-program using rob_stop() & rob_stop_release()

  • luis flores
  • April 27, 2022 at 4:25 PM
  • Thread is Unresolved
  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 4:25 PM
    • #1

    Hello everyone,

    i need to stop my robot using a $IN[150] == true,

    I've already tried the halt, I can't configure it well with the rob_stop & rob_stop_release intructions.

    thank in advance for the help. :wallbash: :wallbash: :wallbash: :wallbash: :wallbash:

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • April 27, 2022 at 4:51 PM
    • #2

    post your code. how can we tell what is wrong with it if we don't see it?

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 5:06 PM
    • #3

    DepScan1.txt

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 5:33 PM
    • #4

    you will receive

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • April 27, 2022 at 5:59 PM
    • #5

    looks like you placed

    Code
       IF $IN[150] == TRUE THEN
             bResult = ROB_STOP(#RAMP_DOWN)
             paused  = TRUE       
       ENDIF
       
       IF $IN[151] == TRUE THEN
             ROB_STOP_RELEASE()
             resumed = TRUE
       ENDIF    

    inside robot program module.

    syntax looks good but the code is inside the very program that gets disabled. if it is disabled, how is it going to RUN long enough to process release request?

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 6:14 PM
    • #6

    so, i have to put it on my source program ( cell.src )???

    because the logic of the depScan1 program is to pause, resume, reset and cancel the movement of the robot at any time.. inside

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • April 27, 2022 at 6:28 PM
    • #7

    no....

    CELL.SRC and this program as well as pretty much any other SRC file are still meant to be executed by the Robot interpreter. and robot interpreter can only do one thing. and it should be obvious that once it is stopped - it is dead. and process that is not running cannot magically restart itself. some external influence would be needed for that (manual or another process).

    so if you need something that runs independently from dead robot interpreter, that code need to be executed by a different interpreter. that means your code need to be executed by one of Submit interpreters.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 6:45 PM
    • #8

    i'm honest with you, i undestood the part of not touching the cell program, but i didn't undestand the rest of the message, it was a bit complex your explanation for me.

    :wallbash: :wallbash: :wallbash:

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 6:59 PM
    • #9

    how do you pause a program and continue it afterwards.?

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • April 27, 2022 at 7:19 PM
    • #10

    imagine you are a trained medical professional so you know how to help people and know how to revive them when they are passed out or having heart attack or overdosing on some medication etc.

    but one day you are alone and have such condition yourself. guess what - you cannot help yourself. you re incapacitated. you need external help - without someone else to bring you back to the world of living you are gone and will die....

    same things is with programs. program can do work... if someone else started them.... but once the program execution is stopped (not waiting!) it cannot do anything. it is dead... so to continue running (and executing some code) it need to be started - again by someone else.

    that "someone else" could be human operator pressing some button... or... that could be another program that happens to be running. if the other program is also dead or incapacitated, it cannot do squat for you... you both are goners.

    robot has two or more interpreters. they are behind the familiar buttons on top of the smartPad:

    S = Submit interpreter (or interpreters if there is more than one)

    R = Robot interpreter (only one)

    one interpreter can start and stop another interpreter. but none of them can start themselves. that is impossible.


    Program code is stored in files.

    *.SRC files are used to store programs that can be run by Robot intrepreter

    *.SUB files are used to store programs that can be run by Submit interpreters

    even though you can have several SRC programs and few of them could be linked together - in reality only one of them is being executed.

    for example CELL can be used to call programs A, B and C. you (external influence) select and run CELL. then at some point of time, Robot interpreter leaves CELL and it is processing program B for example. But when robot interpreter is program B, absolutely nothing is going on in program CELL any more - it is paused and waiting for Robot interpreter to finish with program B and returns to CELL. At that moment B is dead and CELL continues to run.

    in other words Robot interpreter (like any other) can only process one program block at any time but it can move from one block to another - if they are linked.

    But once that interpreter is dead, all of the linked blocks are dead. revival code placed in one of the linked files does nothing. revival need to come from outside, for example from human operator or from another program - and that other program can only help if it is running itself (in Submit...).

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • April 27, 2022 at 7:23 PM
    • #11
    Quote from luis flores

    how do you pause a program and continue it afterwards.?

    any way you like. you did not provide any details. first you need to know how to do that yourself. and if you want programs to do something for you you need to know exact circumstances, conditions and limitations...

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • luis flores
    Trophies
    2
    Posts
    21
    • April 27, 2022 at 7:57 PM
    • #12

    the explanation by simulating scenarios was great, thank you for your time and the patience to make me understand. :guru:

  • DS186
    Reactions Received
    198
    Trophies
    6
    Posts
    1,048
    • April 27, 2022 at 11:17 PM
    • #13

    ROB_STOP and ROB_STOP_RELEASE can only be used in submit programs.

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