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

Export kinematics from KRC program of a kuka robot

  • gpatruno
  • May 28, 2018 at 3:04 PM
  • Thread is Resolved
  • gpatruno
    Trophies
    3
    Posts
    6
    • May 28, 2018 at 3:04 PM
    • #1

    Hello Guys,

    I have a KRC (4) of a KR60-3 kuka robot. I want to export from this program the kinematics of an execution cycle in a text file (.txt, xml and so on ..).

    How do I do that?

    Thank you!

  • panic mode
    Reactions Received
    1,268
    Trophies
    11
    Posts
    13,040
    • May 28, 2018 at 10:02 PM
    • #2

    https://www.robot-forum.com/robotforum/kuk…rum/read-first/

    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

    Edited once, last by SkyeFire (May 28, 2018 at 10:26 PM).

  • SkyeFire
    Reactions Received
    1,043
    Trophies
    12
    Posts
    9,391
    • May 28, 2018 at 10:28 PM
    • #3

    Export from what program? Are you trying to record robot motions, or have the robot import and execute motions from an external file? Your question, as stated, makes little sense and provides no details.

  • gpatruno
    Trophies
    3
    Posts
    6
    • May 29, 2018 at 10:38 AM
    • #4

    Sorry.

    I've got a workvisual project (.wvs) with all the file structure (.src and .dat), and I've got Kuka Sim Pro.

    I'd like to run this program on the simulator and to get information(angles, positions) about the joints for every simulation step.

    My idea was to use OfficeLite with Kuka Sim in order to load and run the whole program structure just like with the real robot and then find a way to extract the data described above.

    Is there a way to do that?

    Thank you!

  • SkyeFire
    Reactions Received
    1,043
    Trophies
    12
    Posts
    9,391
    • May 29, 2018 at 2:33 PM
    • #5

    By "every simulation step," do you mean every programmed point, or do you mean the motions the path planner fills in between programmed points? That is, for a program that consists of P1 and P2, do you want just the data for those two points, or do you want the simulation to record data every X mm or ms along the path between P1 and P2?

    Do you want to record Cartesian data or Axis data?

  • gpatruno
    Trophies
    3
    Posts
    6
    • May 30, 2018 at 10:17 AM
    • #6

    I want the simulation to record data every X ms along the path between P1 and P2.

    I need Axis data.

    Thank you!

  • panic mode
    Reactions Received
    1,268
    Trophies
    11
    Posts
    13,040
    • May 30, 2018 at 1:08 PM
    • #7

    You will need to write some KRL code for that and run this in office lite. Storing positional or joint data would require generating arrays sufficiently large. Alternatively you can write data into TXT or CSV or XML file using CWRITE.Sim pro would in this case be optional... just to see motions.

    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

  • gpatruno
    Trophies
    3
    Posts
    6
    • May 30, 2018 at 2:20 PM
    • #8

    What kind of KRL code I need to write in order to run it in OfficeLite and store joint data?

    Thank you!

  • SkyeFire
    Reactions Received
    1,043
    Trophies
    12
    Posts
    9,391
    • May 30, 2018 at 3:51 PM
    • #9

    The logging would probably have to run in the SPS, for motion-asynchronous recording. Probably use Triggers in your motion program to start and stop the logging.

    Writing to a text file every few ms might run into timing problems, depending on how fast you try to push it -- you'll have to experiment with that. Might work better to log to a local array for a given motion, then at the end of the motion dump the entire array to the text file.

    For the text-file writing, look up "fgets", "fputs", and "fwriteln" in the forum archives.

    Edited once, last by SkyeFire (May 30, 2018 at 3:55 PM).

  • gpatruno
    Trophies
    3
    Posts
    6
    • May 30, 2018 at 5:49 PM
    • #10

    Thank you very much for the help,
    I didn't knew the subroutines!

    Do you know if "fgets", "fputs", and "fwriteln" functions work in Kuka Sim without OfficeLite? I'm trying to get any sort of output but it doesn't seem to work (also, there was a KRL printf thread here, but it seems it has been moved to a locked section or deleted).

  • hermann
    Reactions Received
    405
    Trophies
    9
    Posts
    2,596
    • May 31, 2018 at 6:24 AM
    • #11

    You need office lite. The real code that comes from a real robot only can be loaded into office lite.

  • gpatruno
    Trophies
    3
    Posts
    6
    • June 4, 2018 at 2:28 PM
    • #12

    Thank you!

    Can enabling tracing by WorkVisual help me?

  • Crystal Dragon
    Trophies
    3
    Posts
    8
    • June 6, 2018 at 11:38 AM
    • #13

    Hi all, I'm working with gpatruno on this task, I'd like to specify that he means the usage of trace oscilloscope (opening then the trace with workvisual and trying to export to xml), which should be available on the kuka controller (and hopefully in office lite too). We don't have the access to the real robot, and we would like to know if it's possible to simulate this behaviour with KUKA.Sim full before buying the license.

  • SkyeFire
    Reactions Received
    1,043
    Trophies
    12
    Posts
    9,391
    • June 6, 2018 at 2:29 PM
    • #14

    I've never used KUKA SimPro, but as I understand it, it only provides physical simulation of the robot (and tooling, and obstructions). As such, it does not run KRL code, or provide options like the O-Scope. However, it should provide accurate motion modelling.

    OfficeLite, on the other had, provides no physical simulation, but does provide actual KRL code execution, including options like the O-Scope (with the caveat that certain hardware-dependent elements, like the Fast Measurement inputs, or RSI actions, cannot be simulated by OfficeLite). While you can, technically, monitor motion in OfficeLite, those motions are apparently not very accurate.

    When properly linked together, OfficeLite and SimPro are supposed to provide a nearly-complete simulation of both KRL code execution and the actual physical motion. Done properly, it should be possible to create and debug an entire set of programs in this simulation, and deploy onto the real-world robot with minimal risk of issues (as long as the simulation of the physical conditions is accurate, of course).

  • Crystal Dragon
    Trophies
    3
    Posts
    8
    • June 6, 2018 at 4:07 PM
    • #15
    Quote from SkyeFire


    I've never used KUKA SimPro, but as I understand it, it only provides physical simulation of the robot (and tooling, and obstructions). As such, it does not run KRL code, or provide options like the O-Scope. However, it should provide accurate motion modelling.

    OfficeLite, on the other had, provides no physical simulation, but does provide actual KRL code execution, including options like the O-Scope (with the caveat that certain hardware-dependent elements, like the Fast Measurement inputs, or RSI actions, cannot be simulated by OfficeLite). While you can, technically, monitor motion in OfficeLite, those motions are apparently not very accurate.

    When properly linked together, OfficeLite and SimPro are supposed to provide a nearly-complete simulation of both KRL code execution and the actual physical motion. Done properly, it should be possible to create and debug an entire set of programs in this simulation, and deploy onto the real-world robot with minimal risk of issues (as long as the simulation of the physical conditions is accurate, of course).

    Thank you for the info. Just for the record, KUKA.Sim (even the trial version) CAN actually run KRL code, but you cannot load more than a single .src file (with the respective .dat) at a time. You can also import Home positions and Tool data from the config file, but after all you can't load and run the entire program structure.

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