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 live communication with python

  • robotics_Cat_1242
  • April 3, 2023 at 12:07 PM
  • Thread is Unresolved
  • robotics_Cat_1242
    Trophies
    1
    Posts
    7
    • April 3, 2023 at 12:07 PM
    • #1

    Hello,

    I'm trying to control a Kuka robotic arm KR 10, using a 3D spacemouse. I found somebody that made did a similar project. He made a Matlab client that should be run on the kuka side to communicate with the python script. He installed the client using kuka sunrise, I work with workvisual, and understand that you can't simply use the sunrise software. Does anybody know how I install the package onto the kuka using workvisual?

    link to GitHub repository for the sunrise toolbox client: https://github.com/Modi1987/KST-K…al_noFlange_LTS

    link to youtube where he explains how to upload it to the kuka:

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    If people know alternatives I'm happy to hear as well.

    Edited once, last by robotics_Cat_1242 (April 3, 2023 at 12:18 PM).

  • Go to Best Answer
  • MOM April 3, 2023 at 12:23 PM

    Approved the thread.
  • hermann
    Reactions Received
    412
    Trophies
    9
    Posts
    2,629
    • April 3, 2023 at 1:03 PM
    • #2

    That project is for the LBR robot, the controller is a sunrise controller, that's completely different from KRC controller. They use Java for programming the robot.

    Did you ever see a Java program on your KRC?

    You can't use that project on your KRC not with Sunrise Workbench, and not with Workvisual :loudly_crying_face:.

    You must build your own project.

  • Online
    SkyeFire
    Reactions Received
    1,061
    Trophies
    12
    Posts
    9,463
    • April 4, 2023 at 4:50 PM
    • #3

    The closest equivalent for a non-iiWA robot is this:

    KUKA Control Toolbox (KCT)
    Download KUKA Control Toolbox (KCT) for free. The KUKA Control Toolbox (KCT) is a collection of MATLAB functions developed at the University of Siena, for…
    sourceforge.net

    However, this requires having the RSI option package installed on the KRC, IIRC. And/or EthernetKRLXML.

  • Online
    panic mode
    Reactions Received
    1,299
    Trophies
    11
    Posts
    13,142
    • April 4, 2023 at 5:22 PM
    • #4
    Thread

    C3 Bridge Interface Server

    Greetings everyone.

    I'd like you to meet the project that I've been working on for the last six months.

    It's called the C3 Bridge Interface.

    robot-forum.com/attachment/27492/

    The C3 Bridge Interface Server is a lightweight network application that allows remote clients to execute requests to the KUKA Cross 3 subsystem and return responses. The application provides advanced functionality and high performance.

    Some distinctive features

    • Well-documented application protocol. It is fully compatible
    …
    VDm
    August 21, 2020 at 12:27 PM

    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

  • HansHerbert_99
    Trophies
    1
    Posts
    3
    • April 4, 2024 at 9:07 AM
    • Best Answer
    • #5

    KUKA has now also an official python interface. It works via the latest mxAutomation V3.3.

    -> Ask the CS for the latest mxAutomation Python library: CustomerService@kuka.com  

    Control a KUKA industrial robot via the new python library in 6 steps:

    1. Install mxAutomation via WorkVisual by drag and drop

    2. Ask KUKA for the latest mxAutomation Python library.

    3. Open some socket communication to the KLI (KUKA Line Interface), Port 1336

    4. Process the received answer from the KUKA robot, with the class “KRC_ReadAxisGroup” of the mxAutomation python library.

    5. Now you can already receive position data, via the class “KRC_ReadActualAxisPosition”

    6. And you can move the Robot


    Here an outtake of an small application:

    Code
    # -------- STEP 20 - KRC_MOVEAXISABSOLUTE   ------------
    
        _mxA_KRC_MOVEAXISABSOLUTE.AXISGROUPIDX = _axisGroupIdx
        _mxA_KRC_MOVEAXISABSOLUTE.BUFFERMODE = 2
        _mxA_KRC_MOVEAXISABSOLUTE.VELOCITY = 50 # %
        _mxA_KRC_MOVEAXISABSOLUTE.APPROXIMATE = APO_parameter
        _mxA_KRC_MOVEAXISABSOLUTE.AXISPOSITION = axis_target_pos_1
       
        if test_step == 20 :   
            _mxA_KRC_MOVEAXISABSOLUTE.EXECUTECMD = True
            print("Move Axis Absolute Busy: " , _mxA_KRC_MOVEAXISABSOLUTE.BUSY , " Active: ",  _mxA_KRC_MOVEAXISABSOLUTE._ACTIVE, " Done ", _mxA_KRC_MOVEAXISABSOLUTE._DONE , " Error ", _mxA_KRC_MOVEAXISABSOLUTE.ERROR , _mxA_KRC_MOVEAXISABSOLUTE.ERRORID)
        
    
        if test_step == 20 and _mxA_KRC_MOVEAXISABSOLUTE.DONE and round(_mxA_KRC_MOVEAXISABSOLUTE.AXISPOSITION.A1,1) == round(_mxA_READACTUALAXISPOSITION.A1,1) and NextStep  :
            test_step = 30
            _mxA_KRC_MOVEAXISABSOLUTE.EXECUTECMD = False
    
    
        if _mxA_KRC_MOVEAXISABSOLUTE.ERROR:
            print("move error id" , _mxA_KRC_MOVEAXISABSOLUTE.ERRORID )
            raise Exception("Error in Step " , test_step )
    
    
    # -------- STEP 30 - KRC_MOVEAXISABSOLUTE_2 second call   ------------
        _mxA_KRC_MOVEAXISABSOLUTE_2.AXISGROUPIDX = _axisGroupIdx
        _mxA_KRC_MOVEAXISABSOLUTE_2.BUFFERMODE = 2
        _mxA_KRC_MOVEAXISABSOLUTE_2.VELOCITY = 50 # %
        _mxA_KRC_MOVEAXISABSOLUTE_2.APPROXIMATE = APO_parameter
        _mxA_KRC_MOVEAXISABSOLUTE_2.AXISPOSITION = axis_target_pos_2
       
        if test_step == 30 :   
            _mxA_KRC_MOVEAXISABSOLUTE_2.EXECUTECMD = True
            print("Move Axis Absolute Busy: " , _mxA_KRC_MOVEAXISABSOLUTE_2.BUSY , " Active: ",  _mxA_KRC_MOVEAXISABSOLUTE_2._ACTIVE, " Done ", _mxA_KRC_MOVEAXISABSOLUTE_2._DONE , " Error ", _mxA_KRC_MOVEAXISABSOLUTE_2.ERROR , _mxA_KRC_MOVEAXISABSOLUTE_2.ERRORID)
        
    
        if test_step == 30 and _mxA_KRC_MOVEAXISABSOLUTE_2.DONE and round(_mxA_KRC_MOVEAXISABSOLUTE_2.AXISPOSITION.A1,1) == round(_mxA_READACTUALAXISPOSITION.A1,1) and NextStep  :
            test_step = 40
            _mxA_KRC_MOVEAXISABSOLUTE_2.EXECUTECMD = False
    Display More

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

Tags

  • workvisual
  • Python
  • KRC 4
  • Sunrise Workbench
  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