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

how to control kuka using python

  • ehabhti
  • November 22, 2021 at 11:41 PM
  • Thread is Unresolved
  • ehabhti
    Trophies
    3
    Posts
    6
    • November 22, 2021 at 11:41 PM
    • #1

    dear all

    i need some help to control my kuka kr6 r900 with controller krc4. i already installed kukavaryproxy in my krc4 controller and i need to use a remote computer with python to control my kuka robot can any one help me to tell me the procedure to follow it.

    thanks for your time

  • panic mode
    Reactions Received
    1,296
    Trophies
    11
    Posts
    13,133
    • November 23, 2021 at 4:57 AM
    • #2

    On KRC (this side is server):

    1. install KukaVarProxy server

    2. make sure to open port 7000

    3. make sure that server runs

    4. Connect Ethernet cable to KLI port

    On remote (this side is client):

    1. Connect Ethernet cable to to your remote.

    2. Make sure that your remote uses compatible network settings. ping KLI to verify.

    3. Write and run python code. (or whatever language you choose to use)

    Note, Your python code need to act as a TCP client, so...

    1. Open connection to KukaVarProxy using KLI port address and port 7000.

    2. Send message to KukaVarProxy. It need to follow correct format/structure.

    3. Receive response from KukaVarProxy. Decode it and use received data as you please.

    If you are writing your own client from scratch, it can be hard (ask me how i know), so use anything that will make the job easier. for example test it first with some other client (regardless what software it was written in). then if when you get stuck, use WireShark to confirm message and response are as expected. KukaVarProxy has simple client as well, but it is written in VB.NET so you will need to either translate or just write your own from scratch... unless of course you can find one created in python by someone else.

    There is a similar product called C3Bridge that implements similar functionality and has quite nice documentation. it is backwards compatible with KukaVarProxy but it also adds more functions. you can still use this documentation as a reference but... to work with KukaVarProxy you only need to implement two functions (0 and 1) - ASCII read and ASCII write.

    all other functions in that document use wide string and new format so they do not work with KukaVarProxy.

    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

  • ehabhti
    Trophies
    3
    Posts
    6
    • November 23, 2021 at 3:41 PM
    • #3

    panic mode

    in first i needs to appreciate you help big thanks for your reply. you right i will not start from scratch in coding i downloaded the code in github

    GitHub - akselov/kukavarproxy-msg-format: A class that can send and receive messages from KUKAVARPROXY throught Python or CPP.

    this code for a class that can send and receive messages from KUKAVARPROXY through Python. also another code for "A Python port of KukaVarProxy client (OpenShowVar)" was downloaded

    GitHub - linuxsand/py_openshowvar: A Python port of KukaVarProxy client (OpenShowVar)

    kindly i need to know from your experience the difference between both codes and when i can use each code.

    also if i used the the first code it is enough to send and receive data from kuka or i must use with it the second code for openshowvar in python.

  • panic mode
    Reactions Received
    1,296
    Trophies
    11
    Posts
    13,133
    • November 23, 2021 at 5:13 PM
    • #4

    i do not have experience with those products and have no need to find out but you can try them and let us know how it went.

    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

  • ehabhti
    Trophies
    3
    Posts
    6
    • November 23, 2021 at 6:10 PM
    • #5

    panic mode

    i will, thanks alot

  • MOM
    Reactions Received
    176
    Trophies
    7
    Posts
    1,424
    • November 23, 2021 at 8:12 PM
    • #6

    One thing to say:

    when a robot program is running a lot of variables are write protected. In this case it looks like the system is not responding or you get a message like "variable is write protected"

    The reason for that is "Single Point Of Control"

    The idea behind:

    It should not make your life harder (programming), it should make life easier (survive)

  • юрий жданович
    Trophies
    3
    Posts
    6
    • November 24, 2021 at 7:35 AM
    • #7

    Good afternoon. Is it possible to use these programs on the KRC2.

  • panic mode
    Reactions Received
    1,296
    Trophies
    11
    Posts
    13,133
    • November 24, 2021 at 2:53 PM
    • #8

    should be.

    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

  • юрий жданович
    Trophies
    3
    Posts
    6
    • November 25, 2021 at 9:24 AM
    • #9

    Hello. Tell me in which line you need to change the IP address

  • MOM
    Reactions Received
    176
    Trophies
    7
    Posts
    1,424
    • November 25, 2021 at 10:37 AM
    • #10

    Not in this file.

    You have to check the windows network cards.

    There should two of them

    one shared memory (192.0.1.2 - leave this one untouched)

    one physical network card (that is the one you need to talk to)

  • юрий жданович
    Trophies
    3
    Posts
    6
    • November 25, 2021 at 10:56 AM
    • #11

    I installed a network card from Realtek. And I'm trying to connect through it.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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