Hello, I have a simple question. How can I define a VAR robtarget on Flexpendant? For example, exactly like " VAR robtarget p20; " When I try to do this, I always get a result with the values of their current positions, for example VAR robtarget p20:= [86, 85 ,85]...... I would be very grateful if you could help.
Try structuring it like this: VAR robtarget targetname; VAR robtarget target1:=[[0,0,0],[...etc VAR robtarget target2:=[[0,0,0],[...etc VAR robtarget target100:=[[0,0,0],[...etc VAR num x{100}:={0,0,0,0,....,0}; FOR i FROM 1 TO 100 DO GetDataVal "target"+NumToStr(i,0),targetname; x{i}:=targetname.trans.x+10; ENDFOR
can you do more videos of flexpendant explaining the other instructions and variables etc, maybe can explain with some project tutorial
Hello, I have a simple question. How can I define a VAR robtarget on Flexpendant? For example, exactly like
" VAR robtarget p20; "
When I try to do this, I always get a result with the values of their current positions, for example
VAR robtarget p20:= [86, 85 ,85]......
I would be very grateful if you could help.
Try structuring it like this:
VAR robtarget targetname;
VAR robtarget target1:=[[0,0,0],[...etc
VAR robtarget target2:=[[0,0,0],[...etc
VAR robtarget target100:=[[0,0,0],[...etc
VAR num x{100}:={0,0,0,0,....,0};
FOR i FROM 1 TO 100 DO
GetDataVal "target"+NumToStr(i,0),targetname;
x{i}:=targetname.trans.x+10;
ENDFOR
raowz
vum.fyi