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. Fanuc 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

Jumping from one program to another program

  • venkata1988
  • January 28, 2025 at 7:58 PM
  • Thread is Unresolved
  • venkata1988
    Posts
    12
    • January 28, 2025 at 7:58 PM
    • #1

    Hello All


    I have a question , i am working on a pick and place application . My question is , when i am running the robot , if an error or jam happens , the robot stops . After resetting the error , i want to home the robot . How can i abort the current pick program , and jump to the home program ?

  • KiloCo3026
    Trophies
    1
    Posts
    10
    • January 28, 2025 at 8:21 PM
    • #2

    If you set "CSTOPI for ABORT" to TRUE in the system config, the UI[4: Cycle Stop] can be used as an ABORT signal.

  • venkata1988
    Posts
    12
    • January 30, 2025 at 6:42 PM
    • #3

    Thank you for the response , the CSTOP worked , it aborted the program , but when i try to jump to the main program ,i am getting invalid item mix error .

    I used an if condition that if UI4 is off and Home button is pushed - jump to main home program .

    But i am not able to add this program in the background running .

    Any ideas or suggestions ?

  • KiloCo3026
    Trophies
    1
    Posts
    10
    • January 31, 2025 at 2:55 PM
    • #4

    It sounds like the "Invalid Item" is related to some Mixed Logic, probably in your IF statement. Can you provide the code you're using?

  • gpunkt
    Reactions Received
    125
    Trophies
    6
    Posts
    474
    • January 31, 2025 at 3:04 PM
    • #5
    Quote from venkata1988

    Thank you for the response , the CSTOP worked , it aborted the program , but when i try to jump to the main program ,i am getting invalid item mix error .

    I used an if condition that if UI4 is off and Home button is pushed - jump to main home program .

    But i am not able to add this program in the background running .

    Any ideas or suggestions ?

    In your BG Logic program, you can't jump backwards, and you can't call other programs.

    What you need is a way of starting from a Main program while the robot is aborted.
    This can be done with the program start method "other" where you specify the Main program.

    One downside is that the robot needs to be put in remote mode for this to work. But in your case that might not be a problem?

  • CoryA
    Trophies
    2
    Posts
    1
    • January 31, 2025 at 4:51 PM
    • #6

    Your IF statement has to be mixed logic to run in a background program ' IF (...) '.

  • oakleyas
    Reactions Received
    4
    Trophies
    3
    Posts
    45
    • February 1, 2025 at 6:53 PM
    • #7

    Couldn't he abort the program then call a macro to move home then start over?

  • venkata1988
    Posts
    12
    • February 5, 2025 at 7:21 PM
    • #8

    oakleyas i was able to abort the program , and the macro using the cycle stop , and using DI[2] input i was able to go call the macro for home sequence . The issue i am having is , when the robot is homed , i did a call Main program . But this is not happening . My curser still stays in the last program .

  • KiloCo3026
    Trophies
    1
    Posts
    10
    • February 5, 2025 at 7:52 PM
    • #9

    How are you calling and starting your Main program?

    Is your Main program the same program that you were running before aborting and homing?

    If it is the same program, then I'm not sure why you can't start it up the same way you did originally after completing the home macro.

  • venkata1988
    Posts
    12
    • February 5, 2025 at 7:59 PM
    • #10

    1) inside the Home program macro , once the macro is executed - the last line in the home program is the Call Main program .

    2)No i was running a different program before aborting.

  • KiloCo3026
    Trophies
    1
    Posts
    10
    • February 5, 2025 at 8:15 PM
    • #11
    Quote from venkata1988

    1) inside the Home program macro , once the macro is executed - the last line in the home program is the Call Main program .

    2)No i was running a different program before aborting.

    I'm not sure how your Main works, but this just doesn't sound like a good idea. Your Main and Home macro should be separate.

    I tried running a macro with a "Main" call at the bottom that is just a constant loop and it executed properly. I don't believe you can view where the program is at while it's executing since it is a macro. The only way that I can even tell that the Main loop is running is the UO[10: BUSY] signal being on and the BUSY and RUN indicators lighting up green in the top right of the TP screen.

    When your robot reaches home, do your indicators turn off at the top of the TP?

  • AlanL
    Reactions Received
    22
    Trophies
    3
    Posts
    78
    • February 5, 2025 at 8:48 PM
    • #12

    Setup your production start program. Menu > setup > prog select. On program select mode set it to other, under detail put in the name of you main program.

    Have your main program call your homing program 1st, before getting into your main loop.

    After you abort, send production start signal

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

Similar Threads

  • program reset

    • jrobotics
    • April 18, 2023 at 1:04 PM
    • KUKA Robot Forum
  • RSI Axiscorr not keeping up with input

    • lennort
    • October 26, 2022 at 8:07 PM
    • KUKA Robot Forum
  • Considering Software update from v8.10 to v9.30, risks?

    • Douggle07
    • February 25, 2022 at 3:21 PM
    • Fanuc Robot Forum
  • Re-commissioning Our AW-005CL

    • Grasponer
    • December 21, 2021 at 8:16 PM
    • Panasonic Robots

Tags

  • Fanuc

Users Viewing This Thread

  • 2 Guests
  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