Hello All,
My goal is to run an arbitrary series of motion commands, while logging the positions to a data file at a regular rate. After that I want to repeat the same motion path at the same speed as the original data.
I have been able to log positions during the first pass using a binary file and timed interrupts at 10 Hz. I am using the following code to recreate the motion:
VAR robtarget position1;
…
WHILE True DO
ReadAnyBin FILEIO, position1;
MoveL position1, v200, z50, tGripper;
WAITTIME 0.1; ! matched interrupt timer used to log positions.
ENDWHILE
This code IS following the original motion path at a very similar rate as the original data. However, very small stop-starts are evidenced by subtle shaking of the tool, and I would like to remove these.
I realize I could try to reduce the WAITTIME to remove the start-stops, but I want to maintain as close to the original movement rate as possible.
Any suggestions?
Thanks in advance!
-James_NC