
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 205 -
6.7 CNC PROGRAM REFERENCING AND WRITING, AND
PROGRAM INFORMATION READING
6.7.1 General
Using the conversational macro function and auxiliary macro function
enables CNC part programs to be registered, deleted, and modified.
Program and block numbers are used to manage CNC programs.
Block No. 1 in a program is assigned to the block having address O in
the program, and subsequent block numbers are sequentially assigned
to individual blocks identified by an EOB.
A macro-based CNC program is comprised of blocks that are a
repetition of two variables (address code and value) representing data
at one word.
Using this function requires that bit 7 (EXT1) of compile parameter
(No. 9002) to be set 1.
Example
O0001; Block No. 1
G00 X10; Block No. 2
M03 S1000; Block No. 3
:
Program No. 0001, block No. 3, storage variable No.
100
#100= 13 ..........Address M
#101= 3 ..........Value
#102= 19 ..........Address S
#103=1000 .........Value
#104= 27 ..........Address EOB
Control commands are issued by specifying G codes (G320 to G329)
with macros. Completion code (#8529) is available which can be used
to check whether specified functions have been executed normally.
Completion code (#8529) should be checked after G320 to G329 are
executed.
The completion code is 0 in the case of normal termination. When
the completion code is other than 0, an alarm code for this function is
issued.