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. Cobot Help and Discussion Center
  4. KUKA LBR IIWA
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

Controlling IIWA using EtherCat

  • archimede2020
  • April 13, 2020 at 7:38 AM
  • Thread is Unresolved
  • archimede2020
    Trophies
    3
    Posts
    4
    • April 13, 2020 at 7:38 AM
    • #1

    Hello everyone,

    We plan to use the IIWA in an industrial context in the following way:

    • A real-time capable desktop computer (linux) sends targeted axis positions to the sunrise controller.
    • The sunrise controller sends its axis positions to the computer.

    Instead of using FRI, we want to use EtherCat (because of e.g. real-time requirements and future communication with /control of EtherCat-capable devices mounted on IIWA) for the communication between the computer and the sunrise controller. Therefore, we have the following questions:

    1. In the FRI case, the master is sunrise (and the computer is the slave). Right? is it still true in the EtherCat case mentioned above?
    2. What is the simplest way to establish a FRI-like EtherCat-connection between a destop computer and the iiwa controller sunrise?
      • by attaching a fieldbus coupler with I/O at port X65 (KUKA bus extension) of sunrise and using the coupler API on the computer to read-write the I/Os?
      • ...?
    3. How to configure the communication frequency between computer and sunrise similarly to FRI (e.g., read/wite every 0.1 ms)?

    We will appreciate any hint, since we are not familiar with IIWA.

    Thank's

  • Go to Best Answer
  • archimede2020
    Trophies
    3
    Posts
    4
    • April 14, 2020 at 7:45 AM
    • #2

    :help::help:

  • archimede2020
    Trophies
    3
    Posts
    4
    • April 16, 2020 at 6:42 PM
    • #3

    Hello again,

    Has somebody some experience in controlling (i.e. sending joint trajectories to) a KUKA LWR robot by using EtherCat ?

    Please, could you describe your setup or how it works?

    Thank you!

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,033
    • April 24, 2020 at 1:07 AM
    • #4

    did not use FRI but will to offer some comments:

    FRI is a paid option for a reason.

    and just for orientation, on other Kuka robots (not iiwa), communication packages pricing correlates with speed. the more expensive ones are more capable:

    EKI = $$

    RSI = $$$

    FSD = $$$$

    so if you want hihg performance you either need to dig deep into pockets or into bag of tricks.

    "real time" is not defined very accurately. just that reponses are "fast enough". for some application that may be 1sec. for other 10ms, etc. so you will ned o go by what is available.

    i may be wrong but if i recall, EtherCat on KUKA side can send/receive message every 1ms. so 0.1ms is a pipe dream.

    yes, EtherCat is internally X44 (on CCU) and normally it connects to external port X65, but... there may be some devices already installed between X44 and X65. This is why you need to check schematics of YOUR robot controller.

    EtherCat is a fieldbus so each device has a role. Sunrise controller implements on EtherCat Master. Therefore ay devices that connect to it, must be EtherCat slaves. Master-Master communicaiton is not possible without additional hardware to bridge the two networks.

    so if your external PC has EtherCat slave capable interface that is supported by Kuka, you can have a direct connection (point to point) between them. your computer will appear as EtherCat slave on KEB (Kuka Extension Bus) which is basically bunhc of I/O. ESI file will need to be chosen/edited to reflect chosen size of I/O blocks that you wish to exchange in each transfer. I would suggest to talk to Kuka about choosing supported product for your PC EtherCAT interface as only some are actually supported and tested. And trust me, you don't want to be the one testing...

    data transfer is cyclical and it is controlled by Master which in this case is KUKA controller.

    this means you can update data on each end as fast or as slow as you want but.... messages will only be transmitted when Master chooses (every 1ms or so). so if your values changes are slow enough (not faster than cycle interval chosen by master), the other side will have a chance to see that.

    if you change data faster than that, some of changes will not be seen (they will be skipped until the "next train departure").

    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

  • archimede2020
    Trophies
    3
    Posts
    4
    • April 26, 2020 at 7:20 PM
    • #5
    Quote from panic mode

    data transfer is cyclical and it is controlled by Master which in this case is KUKA controller.

    this means you can update data on each end as fast or as slow as you want but.... messages will only be transmitted when Master chooses (every 1ms or so). so if your values changes are slow enough (not faster than cycle interval chosen by master), the other side will have a chance to see that.

    if you change data faster than that, some of changes will not be seen (they will be skipped until the "next train departure").

    panic mode : Thank you for your reply!

    Using the Sync0 and Sync1 interrups of EtherCat do you think it will be possible to tell the synchronized slave (Computer) when they can read from / write to the master (Controller)?

    see https://infosys.beckhoff.com/english.php?co…122443.html&id=

    May be a distributed clock synchronization is also required?

    see https://infosys.beckhoff.com/english.php?co…598304987524894

  • kiiwa
    Reactions Received
    9
    Trophies
    4
    Posts
    369
    • September 15, 2020 at 5:00 PM
    • Best Answer
    • #6

    I never used EtherCat to send positions. I dabbled a bit with FRI a couple years ago, it was a hassle for me, wasn't worth it. I use the SmartServo option that comes with the LBR iiwa, pretty handy and straight forwards. I send the positions via UDP or TCP/IP, not hard real time (iiwa is slower than other KRC4 robots) but quite responsive and smooth movement.

  • Ighit1268
    Trophies
    2
    Posts
    3
    • April 15, 2021 at 11:57 AM
    • #7

    Hello archimede2020,

    Im planning to controle the robot thae same way (using EtherCat).

    Did you manage to do it ?

    I will appreciate any help

    Thank you!

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

  • iiwa
  • EtherCAT
  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