Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to load compensation table from CSV file?
#1
Hi,
I see there is an option to load compensation tables from CSV file.
But I cannot find a format (what data that should be included and how organized) of the file. Could you give me an example? Thanks.
Reply
#2
I also have no idea how the file should look. But in your training slides there is the section about compensation tables (which I guess is what you are speaking about) and you have examples there how to organize this data in a file format that can be downloaded by the IDE project. And in the end the data needs to be part of your project.
Reply
#3
One of our programming staff will answer this shortly.
Reply
#4
You will include the values of the compTable numbers. For one dimension (Linear) when NumOfZones =10, the format will be like this

100
1000
10
6
27
64
28
83
94
15

for two dimensions (Planar) when NumOfZones =10, the format will be like this

100 ,29
1000,78
10,96
6,93
27,27
64,63
28,92
83,33
94,29
15,28

please let us know if you have any other questions.
Reply
#5
The input is very picky. If you have some extra <CR> at the end of the file you get errors.

100 ,29
1000,78
10,96
6,93
27,27
64,63
28,92
83,33
94,29
15,28
<cr>
<cr>
<cr>


Selecting file from host computer
Input string was not in a correct format.
Unable to map data file "C:\Delta Tau IDE\comptest2.csv" to DataGridView. First check CompTable dimension and correct data file and then try again
Reply
#6
Without the extra <CR> it is OK?
Reply
#7
Yep, that was my point. The program gave a very generic error message which actually gave very little help finding what was wrong. A point for improvement.
Reply
#8
I'll pass this along to the programmers.
Reply
#9
Thank you for helping me!
I have checked CSV file with data for one dimension correction - it is working.
Best regards from China.
Reply
#10
Hi again,

I have couple of questions regarding compensation table:
1) the values entered into the table - what is this? The difference (correction) between target position and measured one when the target was reached
or absolute corrected position?
2) I built 2 compensation tables using GUI in PowerPMAC IDE. Although Sys.CompEnable=2, I didn't see it working. For point 100 mm I put the correction of 50 mm, just to see it working, but running distance, anyway, was 100 mm. Please, advise.
3) If I have two motors in gantry mode, should I prepare something specific, or it is enough to setup up compensation table for "master" motor only?

Thank you in advance!
Reply
#11
1. The table points are the offset from the commanded position.
2. Look at motor[].comppos to see if data is being compensated. If not look at comp table scale factor and other setup parameters.
3. each motor has its own comp values as these are mechanical based. If you want the same for each then just have both motors as targets from one table
Reply
#12
Even the motor defined like:

Motor[2].CmdMotor = 1 //leader id/
Motor[2].ServoCtrl = 8 //follower

should it be as target in compensation table?
Reply
#13
If you want a compensation table to work on it then it must be a target
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)