Use the IF/THEN/ELSE, REPEAT/UNTIL, ABORT, and RETURN commands to add
The ABORT command stops the execution of all
If the function is activated by a computer program, ABORT resumes program operation at the rst OSA command following the function. When, in addition, the function is nested within one or more
The RETURN command stops the operation of the currently executing
The following example contains a
5 | CLEAR | 723 | Initialize OSA. |
10 | OUTPUT | 723;"IP;" |
|
20 | OUTPUT 723;"TRDSP TRA,OFF;" |
|
30OUTPUT 723;"ANNOT OFF;GRAT OFF;"
40OUTPUT 723;"VARDEF YY,0;"
60 | OUTPUT | 723;"FUNCDEF PROGRAM_1,^"; | Dene PROGRAM | 1. | |
|
| ||||
70 | OUTPUT | 723;"REPEAT;"; |
|
|
|
80OUTPUT 723;"ADD YY,YY,100;";
90OUTPUT 723;"PU;PA 100,YY;PD;";
100OUTPUT 723;"DSPLY YY,4,0;";
110OUTPUT 723;"IF YY,EQ,300;THEN;ENDIF;";
120OUTPUT 723;"UNTIL YY,EQ,400;";
130OUTPUT 723;"^;"
140!
150!
160 OUTPUT 723;"FUNCDEF PROGRAM_2,"; | Dene PROGRAM |
| 2. |
|