Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Importing CSV file with XYZIJK and Speed

#1
Hello,

I have a CSV file with XYZIJK and speed in the columns.  I tried to digest this file with a Python script (snippet attached) but the robot slowly ran out of J5 movement - the robot sort of painted itself into a corner.  When using something like a curve follow project I expect that it will be more clever about handling the robot but then I loose the speed information.  At least, I think that I do because the curve does not save speed per point.

Does anyone have a suggestion of a better approach?  If I convert the XYZIJKS into an APT file or something like that then will the existing functions create a better program?

Thanks for your suggestions,
Henry


Attached Files
.py   Create Instruction from CSV.py (Size: 762 bytes / Downloads: 126)
#2
When creating targets using a point and the ijk vector (Z axis), you can define your preferred orientation for the X axis when using the point_Zaxis_2_pose function. I recommend you to try with an axis different from the default value. A good preference for the X axis won't provoke the robot wrist to wrap itself.

Another valid option is to create an APT file. You can take a look at this example which shows how to parse and filter an APT file:
C:/RoboDK/Library/Macros/APT_Split.py

Do you have the RoboDK project? We can better help you.
#3
Thank you Albert.

Unfortunately, I don't have anything that I can share.  I am starting to get too close to that whole "intellectual property" thing.  Even though I don't work with intellectuals :)

I did come up with a way to work through this issue though.  A couple hours of Python and it should be good.

There is probably a good reason for this behavior, but please consider making the CSV imports more tolerant of a header in the first row (seems common?) and also additional columns past the first six.  Unless I am the only one that is asking this, then it must not be too important.

Thanks again,
Henry
#4
Thank you for your feedback!

The main goal of Python scripts is to provide examples and give users the freedom to customize for specific manufacturing operations. We'll still try to improve CSV import to skip the header when present.
  




Users browsing this thread:
1 Guest(s)