CALLS Cancelable call of a TML function Syntax
VAR16: integer variable Binary code
Only one function may be called with a cancelable call at a time. A cancelable call issued while another one is still active (the called function is in execution) is ignored and a command error is set in error register MER.14. Also status register low SRL.7 is set. While a cancelable call is active, SRL.8 = 1.
Example ... CCALL fct1; //cancelable call of Function1 STOP; ... END; Function1: // Function1 definition ... ABORT; // if this command is encountered or // got via a communication channel ... // next instruction executed is STOP RET;
|