Hi,
I would like to please you to take a thing about this code:
…
PROC Testor(robtarget point)
VAR robtarget ActualPoint;
VAR num Height := 100;
MoveJ t_HelpPoint1, vmax, z100, GreiferWObj:=Tester;
MoveJ Conc, t_HelpPoint2, vmax, z50, GreiferWObj:=Tester;
ActualPoint := point;
ActualPoint.trans.z := ActualPoint.trans.z + Height;
MoveJ Conc, ActualPoint,vmax,z10,GreiferWObj:=Tester;
ActualPoint := Align(point); !User function
MoveL ActualPoint,v150,fine,GreiferWObj:=Tester;
Greifer close; ! User routine
ActualPoint := point;
ActualPoint.trans.z := ActualPoint.trans.z + Height;
MoveJ ActualPoint,vmax,z10,GreiferWObj:=Tester;
RETURN;
ENDPROC
For thoose which know that the program pointer is faster than robot and logical instructions below move instructions are executed in some cases earlier than the robot comes to positions, I want to ask this:
Will the variable ActualPoint have correct value in all cases or will this variable be rewritten with new value sooner then robot will came to programmed positions? I think no. I tried to simulate it and it seems to be OK but I would like to have some technical explanation.