
B-66264EN/01 5.SYMBOLIC MACRO PROGRAM
- 25 -
- Array variable coding
Variables can be used as a one-dimensional array by using a simple
coding method.
Coding method
#999 <expression>
999 : Number of first variable in array
By this coding method, variables can be referenced or written to as
array data with an index indicated by the expression and starting with
the variable specified in 999.
Example
#100<#101> is equivalent to #[100+#101].
- Reference list page eject control ($EJECT control statement)
By using the $EJECT control statement, reference list page eject
operation can be freely controlled.
Example
Program file
/*
$EJECT
/* → Advances reference list page.
O0003 ;
:
- Determination of an operation result
Only an operation expression can be specified as the condition of the
IF or WHILE statement. The execution of the IF or WHILE statement
is controlled depending on whether the operation result is equal to 0.
Format :
WHILE[operation-expression] DOx ;
ENDx ;
IF[operation-expression] GOTO xxx ;
IF[operation-expression] THEN <Macro statement> ;
Example
The left macro instructions are equivalent to the right macro
instructions.
WHILE [#100] DO1 → WHILE [ #100 NE O ] DO1 ;
: :
END1 ; END1 ;
IF [#100+#101] GOTO123; → IF [[#100+#101] NE 0] GOTO123;
IF [SIN[#1]] THEN #1=0 ; → IF [SIN[#1] NE 0] THEN #1=0 ;