my experience (Client needs more save cycle time) ,
keep instructions format and add some trick
next approch more close to recorded position by Reltool (or Offset)
IF Di20_Height_Reset = 1 THEN
pTemp2 := pSearch_Start;
EndIF
MoveL Offs(pTemp2, 0, 0, 50), vMax, z10, tGrip;
SearchL\Stop, Di01_PartSensor, pDetect, Offs(pRef_Position), v100, fine, tGrip;
rVacuum_On;
MoveL Offs(pTemp2, 0, 0, 50), v50, z10, tGrip;
IF Di05_Vac_Pressure = 1 THEN
Decr nLayer_Quaintity;
EndIF
IF nLayer_Quantity > 0 THEN
pTemp2 := pDetect;
ElseIF nLayer_Quantity < 1 THEN
pTemp2 := pSearch_Start;
EndIF
MoveL pSearch_Start, v1500, z200, tGrip;