Hi,
I programmed the errorhandler that follows, but when i run it in robotstudio it gives me this error:
41739: StorePath required
Description
Task: T_ROB1Instruction MoveAbsJ is executing in an error handler or a trap routine. Use StorePath before using a movement instruction on other level then base. Program Ref. /FoamModule/PickMag/MoveAbsJ/91
Consequences
The program execution is immediately stopped.
Causes
A movement instruction executed without having the path stored.
Actions
Execute StorePath before using movement instruction MoveAbsJ.Read Programming type examples in the RAPID manual to see how to use movement instructions in TRAP routines and error handlers.
The thing is the function itself works and does as expected, so I´m just interested in why i get this error.
Functional description:
Robot searches a box full of foam sheets used as layers in between Products. if the robot gets an search error the robot moves uppwards so that the operator can refill the box with foam sheets, after the operator resets the error, the robot searches for foam sheets again. When i tested with storepath, the robot moved directly to the last position (which was the bottom position of the box) so what am i doing wrong?
Best regards
Mikael
ERROR
IF ERRNO=ERR_WHLSEARCH OR ERRNO=ERR_SIGSUPSEARCH THEN
bMagInteSokt:=TRUE;
MoveL Offs(pBotten_Foam,0,0,nFulltMagasinHojd+50),vMax,fine,t_vakuumkopp\WObj:=wobj_foam;
MoveAbsJ AbsJMagHome\NoEOffs,v150,fine,T_vakuumkopp;
nMagZCounter:=1;
stinfo:=“Sökfel i Magasin”;
ErrInfo;
RETRY;
ENDIF