ABORT        Cancel the execution of a TML function called with CALLS

Syntax                        

ABORT

Abort cancelable TML function

Operands

PlaceTMLOnline

Binary code

DescriptionABORT command cancels the execution of a TML function called using CALLS instruction. After the execution of ABORT, the TML program continues with the next instruction after the cancelable call of the function.

 

Example                

....

CALLS First_function;        //Cancelable call of First_function

STOP;                                //Stop the motion

....

END;                                //End of TML program

 

First_Function: //definition of First_Function

       ....

       CALL Second_Function;        //Call function Second_Function

       MODE PP;

....

RET;                        //Return from First_Function

Second_Function: //definition of First_Function

       ....

       GOTO user_label, user_var,EQ;//Branch to user_labelif

//user_var ==0

ABORT;        //Cancel the execution of First_Function

//Next TML instruction executed is STOP;

user_label:

....

RET;                        //Return from Second_function