Hi John,
Thanks for the reply. I have attached most of the procedure that is giving me problems, along with the robot positions. I have highlighted the instruction that is causing problems, and it tends to happen about halfway(just an estimate) through the 270 mm offset movement. Please let me know if you have any other questions for me or if you find anything out.
Thanks again, Mike
CONST robtarget Home150:=[[917.90,-251.88,1452.12],[0.000420541,0.00160999,0.999998,0.00128043],[-1,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget CarouselstartPoint:=[[915.86,930.97,1529.01],[0.0433986,-0.000276874,0.999058,0.000334651],[0,-1,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget Carouselthroughpoint:=[[664.55,335.20,1596.70],[0.000352516,0.00158854,0.999998,0.00120339],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget Carouselthroughpoint2:=[[667.16,774.45,1671.14],[0.000359892,0.00158618,0.999998,0.00121007],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget Carouselthroughpoint40:=[[626.81,783.82,1343.28],[0.000364402,0.00160495,0.999998,0.00121949],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget Carouselthroughpoint50:=[[624.33,310.63,1342.12],[0.000360018,0.00160264,0.999998,0.00121656],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
VAR robtarget tempstartpoint:=[[1007.84,672.12,1075.79],[0.000442879,0.00161264,0.999998,0.0013254],[0,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
PROC Carousel()
PathAccLim TRUE\AccMax:=2,TRUE\DecelMax:=2; !Set acceleration limits
numberOfCycles := 20;
sprayDistance:=120;
plumeangle:=-2;
strokeLength := 270; ![mm]
rasterSpeed.v_tcp:=30; ![mm/sec]
pauseTime := 45; ![seconds]
!
!BEGINNING OF MOTION
MoveL Home150, v500, z50, F4;
MoveL Carouselthroughpoint, v500, z50, F4;
presentCycle:=0;
zoffset := (Tan(plumeangle + 5) * sprayDistance) - 50; !Set offsets in Z axis to maintain overspray with spray angle -40 for semple HOLDER, -60
sprayDistanceModify:= sprayDistance - 153;
!
WHILE presentCycle<numberOfCycles DO
MoveL Carouselthroughpoint2, v500, z50, F4;
MoveL RelTool(CarouselstartPoint,sprayDistanceModify,-5,zoffset\Ry:=-plumeangle), v500, fine \Inpos:= inpos20, F4; !Rotating to accomodate sprayangle
tempstartpoint := CRobT (\Tool:= F4, \WObj:= wobj0); !Setting start point
MoveL Offs(tempstartpoint, 0, 0, -strokeLength), rasterSpeed, z1, F4; !!*******THIS IS THE PROBLEMATIC MOVE INSTRUCION
MoveL Carouselthroughpoint40, v2000, z200, F4;
MoveL Carouselthroughpoint50, v500, z50, F4;
MoveL Carouselthroughpoint, v500, z50, F4;
presentCycle:=presentCycle+1;
WaitTime \InPos, pauseTime;
ENDWHILE
MoveL Carouselthroughpoint, v500, z50, F4;
MoveL home150, v500, z50, F4;
END PROC