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. Simulation Systems
  4. RoboDK
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

Importing robot programs on RoboDK

  • massula
  • December 2, 2019 at 2:55 PM
  • Thread is Unresolved
  • massula
    Reactions Received
    204
    Trophies
    8
    Posts
    1,432
    • December 2, 2019 at 2:55 PM
    • #1

    So, maybe I'm missing something, but I did a quick check at RoboDK docs, and didn't find anything about this particular topic.

    Is there a way to import a existing robot program on RoboDK?

  • Jeremy RoboDK
    Reactions Received
    17
    Trophies
    3
    Posts
    75
    • December 3, 2019 at 5:25 AM
    • #2

    Hi there,

    Importing "hand-written" program is not an officially supported feature.

    Therefore, we cannot guarantee any result.

    I still recommend you to give it a try.

    Start by building your station with the same robot and tool(s) as in your program.
    You can then drag and drop the program in RoboDK's window.

    If things turn out well, you can retrieve the movements and the target.
    If only the movements appear, select the movements (one or many at the same time) -> "right click" -> "Select Targets".

    If you are importing from KUKA, we also have a dedicated script to import .src files.

    "Main menu" -> "Tools" -> "Run Script" -> "Import_KUKA_SRC_Program"

    Hope it helps.

    Have a great day.

    Jeremy

    RoboDK - Simulation and Offline programming software for industrial and collaborative robots.

    Visit us at RoboDK.com
    Take a look at our tutorial videos on our YouTube channel.

  • massula
    Reactions Received
    204
    Trophies
    8
    Posts
    1,432
    • December 3, 2019 at 10:49 AM
    • #3

    Nice!

    I will try this.

    Thanks, Jeremy.

  • Koppel
    Reactions Received
    19
    Trophies
    3
    Posts
    132
    • December 31, 2019 at 12:10 PM
    • #4

    Do all the points have to be defined in the SRC file? I mean that is the DAT file ignored?

    RoboDK example program for importing works fine.

    Code
    DEF ExampleProgram( )
      
      $BASE = {FRAME: X 0.000,Y -1000.000,Z 0.000,A 0.000,B 0.000,C 0.000}
      $TOOL = {FRAME: X 466.604,Y -4.165,Z 109.636,A -0.000,B 90.000,C 0.000}
      
      $VEL.CP = 1.00000
      
      PTP {A1 107.78457,A2 -44.95260,A3 141.64681,A4 107.66839,A5 -87.93467,A6 6.37710}
      LIN {X -0.000,Y -0.000,Z 6.350,A -180.000,B 0.000,C -180.000}
      
      $VEL.CP = 0.02117
      LIN {X 276.225,Y 0.000,Z 6.350,A 180.000,B 0.000,C -180.000}
      LIN {X 276.225,Y 323.850,Z 6.350,A -160.000,B 0.000,C 180.000}
      LIN {X -0.000,Y 323.850,Z 6.350,A -180.000,B -0.000,C -180.000}
      LIN {X -0.000,Y -0.000,Z 6.350,A -180.000,B 0.000,C -180.000}
      $VEL.CP = 1.00000
      LIN {X -0.000,Y -0.000,Z 106.350,A -180.000,B 0.000,C -180.000}
      
    END
    Display More

    But if I have handwritten logic, loops, counters, calculations ... it will not work.

    If I would like to try out some behavior like that I have to write it in Python ?

  • Jeremy RoboDK
    Reactions Received
    17
    Trophies
    3
    Posts
    75
    • January 3, 2020 at 5:48 PM
    • #5

    Hi Koppel,

    It's better if the points were part of the SRC file as DAT file can't be loaded.

    As said before, you may need to use the "Select targets" option to retrieve the position.

    For logics, loops, counter, etc. you need to use the Python API.

    Mode details in this link.

    Have a great day.

    Jeremy

    RoboDK - Simulation and Offline programming software for industrial and collaborative robots.

    Visit us at RoboDK.com
    Take a look at our tutorial videos on our YouTube channel.

  • Koppel
    Reactions Received
    19
    Trophies
    3
    Posts
    132
    • October 31, 2020 at 1:14 PM
    • #6

    Hi,


    I don't understand what is supposed to happen when I choose "Select target"

    What I have done:

    • Import my SRC file with points as "PTP {X 0, Y 500, Z 450, A 0, B 40, C -180}"
    • I right click on one of the Move-es inside the program that was created in RoboDK and pick "Select target" and then a target is created with the same name as the move "T MoveJ 1"
    • If I right click on many of the Move-es inside the program, right click and choose "Select targets" ... then many targets with the same name are created.

    ... I guess I understand what is supposed to happen... but I don't understand how this is useful?
    Seems like just another way to import targets...

    What I would like to have is a trick that would enable me to kind of use the points in a SRC file in the format of "PTP Point1"... "PTP Point2" ... etc.

    Where the coordinates are in a DAT file.

    I wondered if I already had a TARGET named "Point1" and I then import the SRC file... that it would somehow pick up the relationship but it didn't.

    I tested another way.

    • import all my points as Targets
    • Open the SRC file that has the "bad" format "PTP Point1"... "PTP Point2"
    • RoboDK tells me "Failed to retrieve target (line 7):PTP Point1" ... for all the lines and doesn't import anything.

    I was expecting to exchange the failed points with my previously imported targets and then at least make the sequence of the movements work.

    I guess I have to manually recreate my program in RoboDK by importing all the points in my DAT file and then create new program and adding "Set reference frame instruction" between the points when nessessary

  • Jeremy RoboDK
    Reactions Received
    17
    Trophies
    3
    Posts
    75
    • November 6, 2020 at 1:30 PM
    • #7

    Hi Koppel,

    As mention, this feature is not official.
    We are just giving you access to a piece of development we did some times ago and never became a full blown feature for 1 main reasons, we support about 30 different brands, if we do it for one... we need to do it for at lease 10-12 brands... That's a big can of worms for us.
    End that's not considering the different "flavor" of code each brand has. Example: .src, .src + .dat, .src + .csv

    If you really need this, developing just one specific solution for your specific needs is not such a huge thing and if you have a bit of a coding background, you should be able to pull it of. In the end, you just need to "read" the .src and .dat file and extract the information.

    Using Python you can easily crawl through your .dat file, fine a point, retrieve Name, Position, Joints and use something like:

    Code
    RDK = Robolink()
    RDK.AddTaget(Name)
    Name.setPose(Position)

    There's already a small example of that in the local library you installed with RoboDK.
    C:/RoboDK/Library/Script -> Import_KUKA_SRC_Program

    You can find more info regarding our API here: API Documentation

    Jeremy

    RoboDK - Simulation and Offline programming software for industrial and collaborative robots.

    Visit us at RoboDK.com
    Take a look at our tutorial videos on our YouTube channel.

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