ABORT Cancel the execution of a TML function called with CALLS |
Syntax
Binary code
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
|