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. Fanuc 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

Exporting Fanuc position register as a csv file

  • clark99
  • May 14, 2024 at 1:01 PM
  • Thread is Resolved
  • clark99
    Posts
    10
    • May 14, 2024 at 1:01 PM
    • #1

    Hello,

    i have recently started to use roboguide and i was wondering if it is possible to export position register as a csv file with X, Y, Z data only.
    if it is not possible, what is the best way to accomplish somethink similar.
    i have been able to export target from robodk as csv but i want to have a similar result on roboguide as i am achieving the same result with less points using position offset.

    any information on this topic would help.

    thank you in advance.

  • 95devils May 14, 2024 at 1:23 PM

    Approved the thread.
  • hoitzing
    Reactions Received
    24
    Trophies
    1
    Posts
    128
    • May 14, 2024 at 1:57 PM
    • #2

    As far as I know, there's no option to export the position register as a csv file.

    One option would be to use the POSREG.VA file (available on the robot's memory device, MD:\). This file contains all position registers values in ASCII format, so you'd have to convert it to a file with comma-separated XYZ coordinates yourself (using python or whatever suits you).

    Another option, if you have access to KAREL, would be to create a program for exporting the XYZ coordinates. Create an ASCII data file (FANUC typically uses *.DT for this I believe?), loop over all position registers, and write the XYZ coordinates to the file. You might be able to write to a *.csv file instead of *.DT, but I'm not sure if KAREL WRITE commands care about filetype suffix.

    Something to keep in mind is that position registers can express a position in joint representation as well. You'd have to convert or skip these entries. Using the KAREL approach would be preferred if you cared about the joint positions as well, as it has a built-in conversion routine.

  • clark99
    Posts
    10
    • May 14, 2024 at 2:40 PM
    • #3

    thanks a million

    Quote from hoitzing

    As far as I know, there's no option to export the position register as a csv file.

    One option would be to use the POSREG.VA file (available on the robot's memory device, MD:\). This file contains all position registers values in ASCII format, so you'd have to convert it to a file with comma-separated XYZ coordinates yourself (using python or whatever suits you).

    Another option, if you have access to KAREL, would be to create a program for exporting the XYZ coordinates. Create an ASCII data file (FANUC typically uses *.DT for this I believe?), loop over all position registers, and write the XYZ coordinates to the file. You might be able to write to a *.csv file instead of *.DT, but I'm not sure if KAREL WRITE commands care about filetype suffix.

    Something to keep in mind is that position registers can express a position in joint representation as well. You'd have to convert or skip these entries. Using the KAREL approach would be preferred if you cared about the joint positions as well, as it has a built-in conversion routine.

  • clark99
    Posts
    10
    • May 14, 2024 at 3:29 PM
    • #4
    Quote from hoitzing

    As far as I know, there's no option to export the position register as a csv file.

    One option would be to use the POSREG.VA file (available on the robot's memory device, MD:\). This file contains all position registers values in ASCII format, so you'd have to convert it to a file with comma-separated XYZ coordinates yourself (using python or whatever suits you).

    Another option, if you have access to KAREL, would be to create a program for exporting the XYZ coordinates. Create an ASCII data file (FANUC typically uses *.DT for this I believe?), loop over all position registers, and write the XYZ coordinates to the file. You might be able to write to a *.csv file instead of *.DT, but I'm not sure if KAREL WRITE commands care about filetype suffix.

    Something to keep in mind is that position registers can express a position in joint representation as well. You'd have to convert or skip these entries. Using the KAREL approach would be preferred if you cared about the joint positions as well, as it has a built-in conversion routine.

    my end goal is to used my roboguide program position to run a matlab meshing.
    According to your knowlegde and experience, can you think of better way to achieve it?

  • hoitzing
    Reactions Received
    24
    Trophies
    1
    Posts
    128
    • May 14, 2024 at 3:44 PM
    • #5

    Your application is not entirely clear to me yet, what do you mean with running a meshing in matlab?

    You mention here that you want to use the positions defined in a TP program, and you mentioned using offsets (position register) earlier. Do you mean to include positions from both of these 'sources'?

  • clark99
    Posts
    10
    • May 14, 2024 at 4:04 PM
    • #6

    okay i will try to be as clear as i can.

    here is my project, i am using a robot to go through half of cylinder using 3 taught point that i have recorded has PR, and i am using an offset on the Z coordinate of each of the 3 points to move from the top to the bottom of the cylinder.

    have the simulation running perfectly, i now have to do a matlab 3d plot or mesh from my different coordinates (XYZ).

    at first i thought that i could export my PRs as csv and run it on matlab, and now i am realising that the approach was not good, that's why i am asking if there is a better way.

    i hope i have been clearer than the first time:grinning_face_with_smiling_eyes:.

    By the way i really appreciate your help sir

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • May 14, 2024 at 5:01 PM
    • #7

    In RoboGuide, it should be easier than with a physical controller, since all the options are free.

    In this case, you can add KAREL to your virtual robot, and use the file-writing commands (I haven't used them myself, but I know they exist) to write a CSV ASCII file of whatever format you like.

    Another method would be to use the POSREG.VA file, as already mentioned, and have your MatLab script import and parse the file. But this would require knowing in advance what every PR was in order. Using the KAREL option would probably be a little more up-front work, but better flexibility and reliability on the backend.

  • clark99
    Posts
    10
    • May 14, 2024 at 5:09 PM
    • #8

    Thank you. Have a excellent day

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