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 KRL parser and flowcharts generator (tech preview)

  • dddomodossola
  • December 15, 2020 at 12:24 PM
  • Thread is Unresolved
  • dddomodossola
    Reactions Received
    14
    Trophies
    3
    Posts
    25
    • December 15, 2020 at 12:24 PM
    • #1

    Hello guys,

    I have created an application that allows to parse(and execute) KRL code. It also produces flowcharts. It is still not userfriendly. I'm asking myself if it could be userful for someone.

    I created it to run kuka robot code in case of no simulator available.

    The link to the project: rawpython/kukaKRLmagic: Translates kuka KRL robot programs into python code for an easy debugging. Plus it produces flowcharts. (github.com)

    It is coded in python. It is compatible with python>=3.7.

    When you run the application, it converts the robot code into python (really executable python code) and shows the flowcharts.

    Kind Regards,

    Davide

  • massula December 15, 2020 at 1:14 PM

    Approved the thread.
  • dexterv
    Reactions Received
    16
    Trophies
    3
    Posts
    110
    • December 15, 2020 at 2:30 PM
    • #2

    I can't seem to get it to work, I installed remi, but I get an error when trying to import operate:

    Code
    ModuleNotFoundError: No module named 'operate'
    Traceback (most recent call last):
      File "C:\Users\vpetkov\Downloads\kukaKRLmagic-master\global_defs.py", line 320, in clock
        import operate
  • Koppel
    Reactions Received
    19
    Trophies
    3
    Posts
    132
    • December 15, 2020 at 2:46 PM
    • #3
    Quote from dddomodossola

    When you run the application, it converts the robot code into python

    Quote from dddomodossola

    I created it to run kuka robot code in case of no simulator available.

    Do I understand correctly that I can write code in KRL and this thing converts it into Python... and I can run the Python code to simulate the robot in RoboDK?

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,431
    • December 15, 2020 at 3:09 PM
    • #4

    When I try to run it, it dies on the import of _thread (no such module). I've installed the threading module, but that didn't help. All the StackOverflow threads boil down to "don't use _thread n00b" and give no usable advice.

  • dddomodossola
    Reactions Received
    14
    Trophies
    3
    Posts
    25
    • December 15, 2020 at 5:02 PM
    • #5
    Quote from dexterv

    I can't seem to get it to work, I installed remi, but I get an error when trying to import operate:

    Code
    ModuleNotFoundError: No module named 'operate'
    Traceback (most recent call last):
      File "C:\Users\vpetkov\Downloads\kukaKRLmagic-master\global_defs.py", line 320, in clock
        import operate

    Dear @dexterv , this message is temporary and does not affect the execution. You should wait a while until the code is parsed. When ready, a webpage with flowcharts will appear

    Quote from Koppel

    Do I understand correctly that I can write code in KRL and this thing converts it into Python... and I can run the Python code to simulate the robot in RoboDK?

    Dear Koppel, actually it converts KRL into Python, so you can run the code. I planned to link it to RoboDK in the future, it would be great.

    Quote from SkyeFire

    When I try to run it, it dies on the import of _thread (no such module). I've installed the threading module, but that didn't help. All the StackOverflow threads boil down to "don't use _thread n00b" and give no usable advice.

    Dear SkyeFire , _thread is a standard python module. It is was optional in the past, by since 3.7 it is always present. Please check which python version are you using when running the script. As a standard python module it is not a problem to use it. It is required in this application to allows to reproduce the RESUME behaviour of KRL instruction.

  • dddomodossola
    Reactions Received
    14
    Trophies
    3
    Posts
    25
    • December 15, 2020 at 5:02 PM
    • #6

    Dear Sirs,

    I added some missing files. Now it should work correctly. Please update your repos and try again if you want.

    Kind Regards

  • Online
    SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,431
    • December 15, 2020 at 5:37 PM
    • #7
    Quote from dddomodossola

    Dear SkyeFire , _thread is a standard python module. It is was optional in the past, by since 3.7 it is always present. Please check which python version are you using when running the script. As a standard python module it is not a problem to use it. It is required in this application to allows to reproduce the RESUME behaviour of KRL instruction.

    Python 3.7.9.

    Error:

    File "\kukaKRLmagic-master\global_defs.py", line 9, in <module>import _thread

    ImportError: No module named _thread

  • dddomodossola
    Reactions Received
    14
    Trophies
    3
    Posts
    25
    • December 15, 2020 at 5:54 PM
    • #8
    Quote from SkyeFire

    Python 3.7.9.

    Error:

    File "\kukaKRLmagic-master\global_defs.py", line 9, in <module>import _thread

    ImportError: No module named _thread

    That's strange, I will do further tests and provide you a solution. Thank you for reporting.

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

  • KRL
  • parser
  • flowchart
  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