
B–66102E/10
5. SYMBOLIC MACRO PROGRAM
27
5
SYMBOLIC MACRO PROGRAM
A macro program is to be created according the rule described below.
(1) A macro program must start with address O. Address % must be
specified at the end of the file. Multiple programs can be coded in a
single file. At this time, the start of each program can be identified
by address O. Data after address %, if any, is ignored. When multiple
programs are coded, address % must be coded at the end.
O0001 #101=1;
G00 X#101;
:
O0002 G243 X0 YX (ABS);
#500=#501+#502;
:
%
(2) One line can contain only one block. The end of block (EOB) is
represented by a semicolon (;). All data after a semicolon on a line
is regarded as a comment.
#100=#101; COMMENT
G00 X123. Y234. ; G01 ; =>
”G01 ;” after ; is regarded as comment.
(3) All data after /
: is regarded as a comment. A line starting with /
*
is
regarded as a comment line; such a line is not compiled.
/: comment => Compiler ignores this line as comment line.
/: comment
/
:
O0001 ;
/: comment => Compiler ignores this line as comment line.
G00 ...;
;/
: comment => Blank block containing only ; is created.
M99;
%
(4) Programming using symbolic names
A symbolic name can be defined for a variable, expression, or
character string to allow programming using symbolic names. A
symbolic name can be defined as described below.