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

Updating Tool Offset from BGLogic during motion

  • BrennanU
  • April 27, 2022 at 11:30 PM
  • Thread is Resolved
  • BrennanU
    Trophies
    2
    Posts
    8
    • April 27, 2022 at 11:30 PM
    • #1

    Hi all,

    I am trying to make sense of an existing robot program and I'm hoping someone can shed some light on this.

    The program is trying to track a part by adjusting a PR used as a OFFSET, PR[x] option, from some BGLogic while the motion is occurring. The BGLogic is adjusting the PR based on some feedback from a compliance device. From what I can tell, it appears that the robot only looks at the PR for the offset at the beginning of the motion, rather than continuously throughout the motion. Can someone confirm that this is how the robot would handle this?

    Assuming that you cannot update an offset during motion, any suggestions for better ways to perform this tracking? We have a PushCorp compliance device so we apply a constant pressure, the robot movements would only be to try to keep in the middle of the compliance zone.

  • Go to Best Answer
  • Online
    Erik Olsen
    Reactions Received
    49
    Trophies
    4
    Posts
    172
    • April 28, 2022 at 12:21 AM
    • #2

    I think Fanucs DPM/Dynamic Path Modification option is one way to achieve what you are looking for.

    Quick and dirty would be just looping a short <1mm Incremental motion option move until your robot position matches your desired offset.

    Crappy psudo code:

    Code
    LBL 1
    
    IF Pushcorp Sensor is positive of center THEN 
    //Move  +1mm 
    L P[1] 100mm/s FINE INC 
    }
    ENDIF
    
    IF Pushcorp Sensor is negative of center THEN 
    //Move  -1mm
    L P[1] 100mm/s FINE INC
    ENDIF
    
    JMP LBL 1
    Display More

    but keep in mind that short arc and repetitive motions can cause wear issues in the robot SV/Harmonic reducers. I'm not sure exactly what your application looks like, but you will typically want to allow the pushcorp/compliant device to take up most of the small variations

    Edited once, last by Erik Olsen (April 28, 2022 at 12:28 AM).

  • BrennanU
    Trophies
    2
    Posts
    8
    • April 28, 2022 at 3:41 PM
    • #3

    Thanks!

    DPM does seem cool, but it is probably a little overkill for what we are doing here.

    I kind of figured you cant update an offset during the motion instruction. First step will be to disable that logic as it is causing us to overcorrect when it gets to the next motion instruction (It keeps adding offset, but the robot doesnt listen until it gets to the second half of the circle when it moves way too much).

    The PushCorp takes up most of the variation, so I don't think I would need to update every mm, but I might try breaking the circle up into a few parts and adjusting in between to keep myself in check.

    I got excited this morning when I started looking into the Arc motion instruction, due to the possibility of executing statements between the points, but it looks like you cannot change PRs for an offset as that will mess with the motion planner.

    Thanks again!

  • BrainKaput
    Reactions Received
    1
    Trophies
    2
    Posts
    27
    • May 3, 2022 at 9:15 AM
    • Best Answer
    • #4

    You can not deal with motion in BG Logic (believe me, is for the greater good hehe).

    BG Logic, like it says in it's name, is only for logic.

    Dynamic Path would be the way.

    If not, maybe you could have a sort of measurement before the job, even using the device, and apply the given variation using a pr offset.

    But like you said, the device itself should absord the variations, maybe even better than the robot.

  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • May 3, 2022 at 1:45 PM
    • #5

    Try skipping the motion when out of compliance, with immediate re-execution with new offset..

    Not sure it has necessarily to be FINE.

    LBL 10

    SKIP CONDITION= F[10:OUT OF COMPLIANCE]

    L P[1] 250mm/s FINE OFFSET PR[1] SKIP LBL 20

    JMP LBL 10

    LBL 20

    Do it well right away. It will become bad by itself.

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