ERROR TEST ERRNO CASE ERR_COLL_STOP: IF ERRNO=ERR_COLL_STOP THEN ClearPath; StorePath; !!!Here I would like to record the current MotionSup value, and write it to a variable!!! rtErr01:=CRobT(\Tool:=tGripper_R1\WObj:=wPlaceStation_Pos_008); rtErr01.trans.Z:=rtErr01.trans.z+nPlasticBoxHight01; MoveL rtErr01,vReject,fine,tGripper_R1\WObj:=wPlaceStation_Pos_008; uError:=[2,1,0]; ErrWriteFlexPendant; TEST Answer CASE 1: MotionSup\On\TuneValue:=nMotionSup_Max; WaitTime 0.2; RestoPath; StartMove; rtErr01:=CRobT(\Tool:=tGripper_R1\WObj:=wPlaceStation_Pos_008); rtErr01.trans.z:=rtErr01.trans.z+10; MoveL rtErr01,vReject,fine,tGripper_R1\WObj:=wPlaceStation_Pos_008; !!!Here I would like set the MotionSup value to whatever i wrote in the variable earlier!!! Retry; DEFAULT: ExitCycle; ENDTEST else Stop; ENDIF CASE ERR_WAIT_MAXTIME: IF ERRNO=ERR_WAIT_MAXTIME THEN ErrWriteFlexPendant; TEST Answer CASE 1: RETRY; CASE 5: TRYNEXT; DEFAULT: ExitCycle; ENDTEST else Stop; ENDIF DEFAULT: ENDTEST ENDPROC