TASK DIRECTIVES

DirectiveWhat it doesSyntax
ENDTerminate the task.label END[cr]
GOTOUnconditional branch.label GOTO label[cr]
HALTSuspend execution of the task.label HALT[cr]
IFBranch if condition is true.label IF [logical_expression] label[cr]
LETAssign a calculated value to a variable.label LET variable=expression[cr]
ONENDDefine a label for task termination.label ONEND label[cr]
REMIntroduce a line of text as a comment.label REM text[cr]
SETAssign a value to a numeric variable.label SET numeric_variable value[cr]
STARTForce a binary variable to TRUE.label START binary_variable[cr]
STOPForce a binary value to FALSE.label STOP binary_variable[cr]
TRACEDefine an RTES register to track the task execution.label TRACE register_name[cr]
WAITSuspend execution for a period of time.label WAIT time[cr]
XExecute the rest of the line as an operator commandlabel X command[cr]
APPSet record position to end of file.
ERRORDefine a RTES register to report file handling errors.
GPOSGet current record position.
OPENDefine a set of files - floating point ASCII format.
BOPENDefine a set of files - 32 bit floating point binary format.
EOPENDefine a set of files - 32 bit floating point IEEE (short real) format.
IOPENDefine a set of files - 16 bit integer format.
POSSet record position.
READRead a record.
WRITEWrite a record

Shortcut keys
F1, F2 and F3 generate START, STOP and SET, respectively. Most other directives are obtained by holding the [Alt] key and pressing the first letter of the word.

The logical expressions and expressions used in the IF and LET instructions follow the same syntax as those in the rules.

Example:

The following task will add the value of STEP to the value of LEVEL. The operation will be repeated 10 times, at 3 second intervals. The numeric variables STEP, LEVEL and C are defined.

1 SET C 10

2 LET LEVEL=LEVEL+STEP

3 LET C=C-1

4 IF [C>0] 6

5 END

6 WAIT 3

7 GOTO 2