
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
79
(1) Reading a specified block coded in words (G325)
When issuing this command, specify a program number, block
number, and the number of the variable into which the block is to be
read. From the corresponding NC program coded in words, the
corresponding block is read into the specified variable area. Each
word contains two variables: an address code and numerical value.
(Example)
O0004 ;
G92 X0. M08 ;
G90 G00 X10.5 M05 ;
#8520=4 ;
#8521=3 ;
#8522=100 ;
G325 ;
IF[#8529 NE 0] GOTO900 ;
End of reading
N900 ;
Error
The following program data is loaded from #100 which is specified
by variable number #8522, when the above instruction is executed.;
#100=7 Address “G”
#101=90 Number
#102=7 Address “G”
#103=0 Number
#104=24 Address “X”
#105=10.5 Number
#106=13 Address “M”
#107=5 Numbew
#108=27 Address “EOB”
EOR (28) is housed as an address, if EOB is not at the end block of
the program or EOR position is specified with block number.
Reading is not conducted as the end code becomes “255”
, if a block
No. exceeding the block of EOR is specified.
(Example)
O0004 ;
G92 X0. M08 ;
M02
%
#100=13 Address “M”
#101=2 Number
#102=28 Address “EOR”
6.5.4
Reading a Specified
Block