I’ve got a list/path that includes hundreds of points. I’d like to run through a certain drill/deburring operation at every point. Rather than creating a program where I move to every point and call the same routine after every point (resulting in a zillion page redundant program), is there any way I can increment a variable robtarget? These points are not spaced or oriented in any consistent pattern so I can’t just increment their components with trans or pose.
I’ve tried incrementing a variable num and writing that as an addendum to a string “Target_”, but passing the new string to a variable robtarget fails since the string doesn’t count as a reference/pointer or contain the right data type. What’s weird is that Programmaker tells me there are no errors in my program. But RobotStudios dies/can’t load the program as is. The relevant part in my short experimental program looks something like this (with everything defined appropriately):
WHILE point<50 DO
Apoint:=ValToStr(point);
newstring:=Atarget+Apoint;
ok:=StrToVal(newstring,Target_point);
MoveL Target_point,v200,z1,tool0WObj:=wobj0;
rDRILL;
point:=point+10;
ENDWHILE