smooth motion through discrete points
James_NC
✭
in RobotStudio
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
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
0
Comments
-
Have to tried to deduce the speed from the logged positions and add that also to the re-created program?MoveL position1, speed1, z50, tGripper;Either calculate it as the time derivative of the positions and change the speeddata accordingly, or, if possible, log the speed also.As long as the WaitTime is there the robot will not move smoothly.
Henrik Berlin
ABB0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings