Installation guide
Programming Commands 85
#DEFINE Miscellaneous Command
ACTION: Defines a symbolic name to be a particular string of characters.
PROGRAM SYNTAX: #DEFINE name@1, ... , @10 replacement text
#DEFINE replacement text
REMARK: The name has the same form as a variable name: a sequence of letters
and digits that begins with a letter. The name is case sensitive. Typically
upper case is used for the name.
The @1, ... , @10 are the program command substitution arguments
for the replacement text.
The replacement text can be any sequence of letters or characters.
Any occurrence of the name in the program, not in quotes and not as
part of another name, will be replaced by the corresponding replace-
ment text when the program is compiled.
EXAMPLE: #DEFINE TRUE 1
Substitutes a 1 when the name TRUE is encountered.
#DEFINE FALSE 0
Substitutes a 0 when the name FALSE is encountered.
#DEFINE SENDPOS @1,@2 PRINT#@1,ABSPOS(@2)
Sends the absolute position of axis @2 via port @1.
SENDPOS 1,2
Sends the absolute position of axis 2 via port #1. The 1 is substituted
for the @1 argument and 2 is substituted for @2 argument.
#DEFINE CLR PRINT#2,CHR$(12);
#DEFINE LOCATE @1,@2 PRINT#@,CHR$(27);”[@1;@2H”;
CLR ‘ clear display
LOCATE 1,2 ‘ locate cursor at row 1 column 2










