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

Setting about IP address and Port number for EKI Ethernet

  • yen_like_capoo
  • June 8, 2023 at 4:42 AM
  • Thread is Unresolved
  • yen_like_capoo
    Trophies
    1
    Posts
    28
    • June 8, 2023 at 4:42 AM
    • #1

    Hello, I am a newcommer to KUKA robot. I am currently connect my PC as a client to Robot server through TCP Ethernet EKI. I have some questions about this protocal:

    1. When I insert a real ethernet network line to my PC and KUKA Controller, what is the IP address and Port number I set up in the Tcp/IPv4? The one that set at Network Configuration in KUKA Controller?

    2. What IP address and Port should my Tcp Socket constructed in PC by c++ bind to? The one that I set up in Xml file for my program?

    3. If I want to run a background program that using EKI to send out robot joint data to PC in sps.sub and a main program that control robot motion by receiving command from PC simutaneously, should I set up different IP address and Port number for these two xml file? For example, one is 192.168.50.11 and 54611, another is 192.168.50.12 and 54612

  • kwakisaki June 8, 2023 at 6:02 AM

    Approved the thread.
  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,370
    • June 8, 2023 at 6:18 PM
    • #2
    Quote from yen_like_capoo

    1. When I insert a real ethernet network line to my PC and KUKA Controller, what is the IP address and Port number I set up in the Tcp/IPv4? The one that set at Network Configuration in KUKA Controller?

    Yes:

    Note: the Internal Subnets cannot be used for the KLI, so you must choose your IP and Subnet Mask to ensure there is no overlap between the KLI and any of the internal subnets:

    Quote from yen_like_capoo

    2. What IP address and Port should my Tcp Socket constructed in PC by c++ bind to? The one that I set up in Xml file for my program?

    The IP will be the IP of the robot. The port will be whatever port your EKI channel configuration exposed as a server. This is an example of an EKI server (using UDP, but TCP/IP is similar). In this example, any client application would need to open a connection to IP 172.31.1.63, Port 54601.

    EKI is required to use rather high-numbered ports, in the 54000 range. You'll want to check the manual.

    Code
    <ETHERNETKRL>
        <CONFIGURATION>
            <EXTERNAL>
                <TYPE>Client</TYPE>
            </EXTERNAL>
            <INTERNAL>
             <IP>172.31.1.63</IP>
                <PROTOCOL>UDP</PROTOCOL>
                <PORT>54601</PORT>
                <ALIVE Set_Flag="553"/>
                <MESSAGES Logging="warning" Display="error"/>
                <BUFFERING Mode="FIFO" Limit="128"/>
            </INTERNAL>
        </CONFIGURATION>
        <RECEIVE>
            <RAW>
                <ELEMENT Tag="inBuffer" Type="BYTE" Size="128" Set_Flag="555"/>
            </RAW>
        </RECEIVE>
        <SEND>
            <RAW>
                <ELEMENT Tag="outBuffer" Type="BYTE" Size="128" Set_Flag="556"/>
            </RAW>
        </SEND>
    </ETHERNETKRL>
    Display More
    Quote from yen_like_capoo

    3. If I want to run a background program that using EKI to send out robot joint data to PC in sps.sub and a main program that control robot motion by receiving command from PC simutaneously, should I set up different IP address and Port number for these two xml file? For example, one is 192.168.50.11 and 54611, another is 192.168.50.12 and 54612

    Same IP, different ports. EKI can support up to 3 simultaneous connections. Each connection needs to have its own XML configuration file, and use a unique port.

  • yen_like_capoo
    Trophies
    1
    Posts
    28
    • June 9, 2023 at 2:09 AM
    • #3
    Quote from SkyeFire

    Yes:

    Note: the Internal Subnets cannot be used for the KLI, so you must choose your IP and Subnet Mask to ensure there is no overlap between the KLI and any of the internal subnets:

    The IP will be the IP of the robot. The port will be whatever port your EKI channel configuration exposed as a server. This is an example of an EKI server (using UDP, but TCP/IP is similar). In this example, any client application would need to open a connection to IP 172.31.1.63, Port 54601.

    EKI is required to use rather high-numbered ports, in the 54000 range. You'll want to check the manual.

    Code
    <ETHERNETKRL>
        <CONFIGURATION>
            <EXTERNAL>
                <TYPE>Client</TYPE>
            </EXTERNAL>
            <INTERNAL>
             <IP>172.31.1.63</IP>
                <PROTOCOL>UDP</PROTOCOL>
                <PORT>54601</PORT>
                <ALIVE Set_Flag="553"/>
                <MESSAGES Logging="warning" Display="error"/>
                <BUFFERING Mode="FIFO" Limit="128"/>
            </INTERNAL>
        </CONFIGURATION>
        <RECEIVE>
            <RAW>
                <ELEMENT Tag="inBuffer" Type="BYTE" Size="128" Set_Flag="555"/>
            </RAW>
        </RECEIVE>
        <SEND>
            <RAW>
                <ELEMENT Tag="outBuffer" Type="BYTE" Size="128" Set_Flag="556"/>
            </RAW>
        </SEND>
    </ETHERNETKRL>
    Display More

    Same IP, different ports. EKI can support up to 3 simultaneous connections. Each connection needs to have its own XML configuration file, and use a unique port.

    Display More

    Thank you for this brilliant explanation. I learned a lot and understood well. Apart from using Windows Shared folder, I want to ask whether I can use Filezilla to directly send my files to Kuka Controller?

  • yen_like_capoo
    Trophies
    1
    Posts
    28
    • June 9, 2023 at 4:06 AM
    • #4

    Here is my connection between Kuka Controller and my PC:


    Also, my advanced setting for Ethernet is completed.

    However, I still cannot see the folder of Kuka Controller in my PC. When I use cmd to ping the ip address of Kuka, it seem to work. Now I am very confused, could you please help solve this problem?

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,370
    • June 9, 2023 at 4:09 PM
    • #5
    Quote from yen_like_capoo

    Thank you for this brilliant explanation. I learned a lot and understood well. Apart from using Windows Shared folder, I want to ask whether I can use Filezilla to directly send my files to Kuka Controller?

    No, the KRC does not have an FTP server.

    Quote from yen_like_capoo

    However, I still cannot see the folder of Kuka Controller in my PC. When I use cmd to ping the ip address of Kuka, it seem to work.

    Did you set a directory on the kRC to be shared? You have to go into Windows on the KRC using MInimize HMI:

    Then use the Windows File Explorer to select a directory and use the Properties>Sharing menu to set that directory as Shared, and set the permissions.

    Note: In general, nothing on the C: drive should have Write access from the network, with the sole exception of C:\KRC\ROBOTER\UserFiles

    Likewise, most of the pre-existing directories on the D: drive should not be network-writeable, to protect critical files from being erased.

    My normal practice is to create a "transfer" directory on the D: drive, make that directory network-writeable, and push my files to that directory via SMB. Then, on the SmartPad, I copy&paste the files from the Transfer directory into the robot's active RAM drive, which compiles and links them for execution.

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,370
    • June 9, 2023 at 4:11 PM
    • #6

    NOTE: before doing any of this, I STRONGLY recommend making a complete KSR hard drive image backup to ensure you can recover from any damage done to the file system, just in case.

  • yen_like_capoo
    Trophies
    1
    Posts
    28
    • June 11, 2023 at 6:02 PM
    • #7
    Quote from SkyeFire

    NOTE: before doing any of this, I STRONGLY recommend making a complete KSR hard drive image backup to ensure you can recover from any damage done to the file system, just in case.

    Then how can I make a complete KSR hard drive image backup in Kuka KRC4? Should I do this inside the HMI or windows systems?

  • Fubini
    Reactions Received
    270
    Trophies
    9
    Posts
    1,866
    • June 11, 2023 at 6:54 PM
    • #8

    Neither. Get a KUKA recovery stick. It comes with manual. Maybe the manual can also be found in the Kuka portal. The usb stick comes with a bootable software image. It is offereing mutiple options to clone your harddisk.

    Fubini

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,370
    • June 12, 2023 at 5:55 PM
    • #9
    Quote from yen_like_capoo

    Then how can I make a complete KSR hard drive image backup in Kuka KRC4? Should I do this inside the HMI or windows systems?

    The KSR stick is bootable. It's the only "external" media that the KUKA motherboard will boot from. The KSR stick needs to be configured using a regular PC first -- there's a menu where you set what mode the stick boots in, KSRConfig.exe or something similar.

    You need to be very careful with this. Setting the Stick to Restore mode will overwrite the hard drive with whatever .WIM image files are on the stick. I once accidentally destroyed my laptop by leaving the KSR plugged into it when I rebooted. The newer KSR stick software has better protections against this, but it's still a powerful tool that needs to be handled carefully.

    The stick has Backup and Restore options, and Silent or GUI modes. Silent mode will let you just reboot the controller with the stick in a USB port, and it will perform an entire Backup or Restore automatically, with no user interaction. GUI mode requires connecting a monitor and keyboard before booting the KRC to the stick.

    Definitely read the KSR manual before using it. It's not hard, but requires care. There are also additional options like using network drives that really aren't needed for most situations -- I always stick to the simple modes.

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

Similar Threads

  • KUKA Ethernet KRL UDP

    • SiRi
    • May 31, 2022 at 6:42 PM
    • KUKA Robot Forum
  • EKI - PTP commands executing too slow

    • Ravnicas
    • January 10, 2022 at 10:46 AM
    • KUKA Robot Forum

Tags

  • KUKA
  • EKI
  • Ethernet
  • tcp
  • Ip address
  • PORT
  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