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

Background logic, CALL program

  • FanucMaKo
  • October 24, 2019 at 2:59 PM
  • Thread is Unresolved
  • FanucMaKo
    Reactions Received
    2
    Posts
    5
    • October 24, 2019 at 2:59 PM
    • #1

    Hi to all,

    I am interested if i can run motion program from BG logic.

    I need that option for running home position recovery program.

    If anyone have better solution please suggest it.

    Thanks:smiling_face:

  • domo_arigato
    Reactions Received
    8
    Trophies
    3
    Posts
    14
    • October 24, 2019 at 4:35 PM
    • #2

    As far as I know, BG Logic programs can only perform certain tasks, which do not include running motion programs.

    What's the overall goal, step by step, for your recovery? Depending on how you want things to flow, you may be able to use a combination of macros, multitasking, condition handlers, etc. to achieve your goal. This all depends on what you have upstream of the robot (PLC, etc) and how you want to initiate the recovery process.

  • HawkME October 24, 2019 at 4:37 PM

    Moved the thread from forum Manuals, Software and Tools for Fanuc Robots (you should look here first before posting) to forum Fanuc Robot Forum.
  • rumblefish
    Reactions Received
    19
    Trophies
    2
    Posts
    131
    • October 24, 2019 at 4:59 PM
    • #3

    If you're goal is to have the robot return to home/reference position after a stoppage I would create a specific program for it. One method is to call a recovery program via program select. First the current program is aborted with cstop, then once the "paused" bit goes low the recovery program is started. The pause bit lets you verify the current program was aborted and the pointer reset. I generally use this method for recovery.

    You can get even more involved with no-stop dcs zones to track tcp etc.

  • FanucMaKo
    Reactions Received
    2
    Posts
    5
    • October 25, 2019 at 8:28 AM
    • #4

    My idea was to CALL recovery program via NUM REG (robot was doing Main program previously, an it stopped because of something).

    My question is how to start recovery program when I type "1" in NUM REG.

    I tried with BG logic but I didn't find solution.

    I don't have PLC.

    Thanks

  • Robo_Eng_13
    Reactions Received
    26
    Trophies
    4
    Posts
    432
    • October 25, 2019 at 2:20 PM
    • #5

    I believe you CAN accomplish this with a combination of BG Logic and Macros.

    BG Logic would contain a single program that would look for R[1] = 1. When R[1] = 1, it would then set DO[1] to ON. Then, have a Macro set up on DO[1] to abort programs. After a delay, have the BG Logic then set DO[2] to ON, triggering your home program in another Macro.

    I have never tried something like this, but the general idea ought to work, if nothing i mentioned is prohibited. But, why do you want to launch a program by setting a register rather than any other method?

  • FanucMaKo
    Reactions Received
    2
    Posts
    5
    • October 25, 2019 at 3:02 PM
    • #6

    Thanks for the answer.

    My idea was to change register value with tablet app (I have Robot Interface option) and do described above.

    Which are other methods?

  • Robo_Eng_13
    Reactions Received
    26
    Trophies
    4
    Posts
    432
    • October 25, 2019 at 9:18 PM
    • #7
    Quote from rumblefish

    One method is to call a recovery program via program select. First the current program is aborted with cstop, then once the "paused" bit goes low the recovery program is started. The pause bit lets you verify the current program was aborted and the pointer reset.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • BG Logic on a R-30iA Controller

    • Drak29
    • March 18, 2019 at 4:55 PM
    • Fanuc Robot Forum
  • How To Turn on BG Logic on the Old-Style Teach Pendant (R-30iA)?

    • alive15
    • February 14, 2019 at 7:03 PM
    • Fanuc Robot Forum
  • BG logic(or not ?) help for a few things

    • chris051873
    • November 3, 2018 at 3:16 AM
    • Fanuc Robot Forum
  • Controled stopping when fence is open

    • NovaFlatline
    • July 10, 2018 at 2:00 PM
    • Fanuc Robot Forum
  • Karel program in a background logic

    • DanRoboticSolutions
    • June 19, 2018 at 6:05 PM
    • Fanuc Robot Forum
  • Issues aboute Karel and BG Logic

    • emanuel_eng
    • August 21, 2017 at 8:21 PM
    • Fanuc Robot Forum
  • Fanuc LR Mate 200ic Background Logic

    • sep945366
    • March 13, 2017 at 3:55 PM
    • Fanuc Robot Forum
  • question about background logic to abort program

    • lunknowl
    • March 17, 2017 at 9:47 PM
    • Fanuc Robot Forum
  • Trying to run 3 programs simultaneously but getting error INTP-267 (Need Help!)

    • pdubey
    • February 22, 2017 at 10:49 PM
    • Fanuc Robot Forum
  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