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

Update robot base in real time with encoder data - KRC4

  • Agustin Costa
  • December 17, 2020 at 1:39 PM
  • Thread is Resolved
  • Agustin Costa
    Reactions Received
    4
    Trophies
    3
    Posts
    58
    • December 17, 2020 at 1:39 PM
    • #1

    Hello,

    I am working on a pick and place application where items come to the robot in a conveyor which moves in discreet steps. Right now I am using an incremental encoder and a Siemens PLC to count the encoder pulses, transmit them to the robot using Profinet and the robot uses a cyclical interrupt to update the position of one of its bases so that it moves with the conveyor.

    This approach works right now because the robot only acts when the conveyor has stopped moving so when the robot begins executing a motion instruction (for example SPTP point WITH $BASE=movingBase) the base position has already been updated. The problem is that if the conveyor moves while the robot is executing a motion comand, the motion is not updated during its course.

    I'm wondering if it's possible for the motion to be updated (every 50-100ms would be fine) with the data from the encoder. From what I've read in the manuals when the Advance Run pointer reaches a motion instruction it already calculates the path and that's why it doesn't update in my case. I know there are software packages like ConveyorTech and RSI that can be used but they're really expensive so I'm looking for another solution.

    Thank you

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,375
    • December 17, 2020 at 4:02 PM
    • #2

    The built-in Function Generator (which is the technology that underlies RSI, Seam Tracking, and ConveyorTech) might allow you to create a "roll your own" solution, but it's almost completely undocumented, and I only know of a handful of people who know how to program it "raw", so... it'd probably take a lot of time and trial-and-error to get anywhere.

    Without realtime motion tracking, you're going to have to stop the conveyor at some point, and block it from moving. Even if you could update the robot to the conveyor 10mm before it makes contact, if the conveyor is still moving, you're out of luck.

    A crude solution would be to divide your the motion from your Pre-Pick to your Pick position into a lot of small moves, with an update to $BASE between each one, probably using a calculated loop, and maybe temporarily setting the Advance to 1. But it'll be "chunky", and the robot will not track the conveyor during the final motion step.

    If you want a solution that works, and isn't a kludge of duct tape and chicken wire, you're probably going to have to use ConveyorTech, or block the conveyor from moving while the robot is on final approach.

  • Agustin Costa
    Reactions Received
    4
    Trophies
    3
    Posts
    58
    • December 18, 2020 at 12:36 PM
    • #3

    Well, I'll have to keep on moving the conveyor by discreet steps then. Thanks for the info! :winking_face:

  • Agustin Costa
    Reactions Received
    4
    Trophies
    3
    Posts
    58
    • December 18, 2020 at 7:09 PM
    • #4

    SkyeFire where can I find more information on the function generator? I've been reading the System Variables manual but it references the function generator as if one already knew what it is and when/how to use it. Are there any examples you can provide?

  • panic mode
    Reactions Received
    1,264
    Trophies
    11
    Posts
    13,031
    • December 20, 2020 at 9:38 AM
    • #5

    function generator has it's own manual.

    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

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

Tags

  • encoder
  • KRC4 compact
  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