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

Kuka + ethernet communication (XML)

  • RoboticsMan
  • November 26, 2007 at 1:23 PM
  • Thread is Resolved
  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • November 26, 2007 at 1:23 PM
    • #1

    Hi

    I am working on a project which includes a Kuka robot which is controlled by a vision system. Right now we send the coordinates to the robot through a serial (rs232) connection. The problem is that the robot also has to answer back to the pc once in a while, and according to the Kuka manual, it is impossible to send data through the rs232 connection while the robot is moving. In order to reduce the cycle-times, we consider changing to ethernet instead of rs232. The communication through ethernet will require the "Kuka.Ethernet KRL XML" software package. Now my question is: When using this software, will it be possible to transmit data when the robot is moving?

    Thanks in advance!

  • puma_500_unim_f_c
    Guest
    • December 1, 2007 at 6:05 PM
    • #2

    Hello

    I'm working at the same project, but I don't know how to send variable from Matlab to the KUKA. I think that the best way is to update a file.dat via TCP while a KRL program is running, but I don't know how because I haven't any documentation. What do you think?

    puma

  • mookie
    Reactions Received
    2
    Trophies
    3
    Posts
    84
    • December 2, 2007 at 6:24 PM
    • #3

    I dont know for sure if you can transmit the data back and forth while the robot is moving, but i know for sure that your data transmission rate will be much quicker.

    Im going to go out on a limb and say that im positive the robot needs to stop. You will find that anytime the robot is looking at an input, it will always pause to a degree.

  • jaraviensis
    Trophies
    3
    Posts
    14
    • December 3, 2007 at 10:30 PM
    • #4

    "according to the Kuka manual, it is impossible to send data through the rs232 connection while the robot is moving."

    That can be solved, I know two ways to do it:

    a) precede each COPEN/CREAD/CWRITE/CCLOSE with a CONTINUE statement to let the program interpreter to execute those instructions it in advance. Depending on the instruction mix, you'll need to set $ADVANCE=5 or

    b) design a state machine which will run in a .sps file, which will handle all the communication in the background. While this approach is complex to program, it is more flexible.

    V.

  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • December 7, 2007 at 11:55 AM
    • #5

    Thank you, I'll try that when I find the time!

  • saulotovar
    Guest
    • December 14, 2007 at 4:41 PM
    • #6

    this may help you, but to be honest I think that this solution is too expensive and complex for what you need.

  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • December 21, 2007 at 10:30 AM
    • #7

    Thanks for the PDF! It looks very interesting. You said that it might be too expensive... what is the price of the product? More than €5000?

  • Online
    SkyeFire
    Reactions Received
    1,042
    Trophies
    12
    Posts
    9,388
    • December 22, 2007 at 2:12 PM
    • #8
    Quote from RoboticsMan


    Thanks for the PDF! It looks very interesting. You said that it might be too expensive... what is the price of the product? More than €5000?

    The last time I had to buy it, the EthernetKRLXML tech package cost approximately $1200 in US Dollars. There shouldn't be any hardware cost, since the ethernet is run through the port on the MFC card. If the MFC card is already being used by Windows (say, for remote backups), then you'll need to buy a separate KRC-qualified ethernet card for Windows to use (there's a 3COM card that's certified for use in KRC-2s, but avoid the Intel cards). The larger expense would probably be in man-hours learning the setup and altering your existing program to use ethernet rather than serial communications, but that shouldn't be hard if you have a good grasp of KRL and some time to work the bugs out.

  • RoboticsMan
    Reactions Received
    7
    Trophies
    4
    Posts
    272
    • January 31, 2008 at 9:31 AM
    • #9

    Hi!

    I just want to bring a small update. We have tested whether it was possible to move while communication via a serial connection. It seems to work fine, if a CONTINUE statement is put in front of each of the CREAD and CWRITE commands. It even works when $ADVANCE is set to 1.

    With Kuka KRL XML 1.1 it is also possible to communicate while the robot is moving. However, the EKX_WriteInteger command stops the $ADVANCE pointer, even if a CONTINUE statement is put in front of it. This problem can be avoided by converting the integer to a character array (with SWRITE), and then using EKX_WriteString instead.
    :dance2:

    /RoboticsMan

  • Tuipveus
    Trophies
    3
    Posts
    13
    • February 2, 2008 at 10:50 PM
    • #10

    It is also possible to read coordinates from binary file with Kuka SoftPLC and send them to KRL-program. That way it is a lot easier than with XML.

  • puma_500_unim_f_c
    Guest
    • March 21, 2008 at 6:44 PM
    • #11

    I think that it isn't as speed as RSI XML !

    Maybe I wrong but XML must be the faster system of communication for KUKA (Although is not simple to learn! :bawling:).
    How much SoftPLC cost?

    puma

  • nowire75
    Trophies
    3
    Posts
    9
    • March 22, 2008 at 7:57 PM
    • #12

    Hi RoboticsMan,

    please test openshowvar for this work. Working on ethernet and is more fast. For read or write a E6POS variable the time start from 0 to 20 ms.

    http://sourceforge.net/project/showfiles.php?group_id=207397

  • nowire75
    Trophies
    3
    Posts
    9
    • April 9, 2008 at 9:41 PM
    • #13

    hi Gilles74,

    thanks. I have a little manual of crosscomm, but my company is kuka integrator.
    I have develop openshowvar for help us in robot software develop. :smiling_face:
    Also, I heve develop a library for VB6 for read and write a robot variable. This library is not free. I can ask to my boss if is possible to trade it.

    nowire

  • nowire75
    Trophies
    3
    Posts
    9
    • April 14, 2008 at 8:57 PM
    • #14

    yes, write a private message

    nowire

  • markopo
    Trophies
    3
    Posts
    207
    • March 21, 2015 at 9:09 AM
    • #15

    Hi.
    Now I'm digging into XML configuration files and there is CREAD and CWRITE
    for example:

    GLOBAL DEFFCT EKI_STATUS EKI_Init(strChannelName[]:IN)
    DECL CHAR strChannelName[]
    DECL STATE_T Stat
    DECL MODUS_T Mode
    DECL EKI_STATUS Ret

    Ret = EKI_NULL_STATUS
    Mode = #SYNC

    IF ($ERR.Interpreter==#R_INT) THEN
    CONTINUE
    CWRITE($FCT_CALL,Stat,Mode,"EFC_eki_Init",strChannelName[])
    ELSE
    CWRITE($FCT_CALL,Stat,Mode,"EFC_eki_Init",strChannelName[])
    ENDIF

    Ret.Msg_No = -Stat.Msg_No

    showMsgDepend(Ret)

    RETURN Ret
    ENDFCT

    hm soo there is just needed driver for Ethernet ? (EthernetKRL.o) ?

    Marek

  • x9tech
    Trophies
    4
    Posts
    99
    • March 22, 2015 at 3:59 AM
    • #16

    RoboticsMan, would you be willing to share your code for reading/writing without breaking the Advance pointer? What controller are you using?

  • Online
    SkyeFire
    Reactions Received
    1,042
    Trophies
    12
    Posts
    9,388
    • March 23, 2015 at 4:22 PM
    • #17

    Wait, what? The XML configuration files for EKI are supposed to be written once, as part of the robot config. You're not supposed to modify them from your KRL program.

    And even then, you can't use those files without having installed the EKI option Tech Package.

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