
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 208 -
Reading a specified block (G325/G328)
(1) Reading a specified word-type block (G325)
- Format
G325 Pp;
p : Maximum allowable number of variable data items
- Explanation
A block can be read into a specified variable area by specifying its
program number and block number. The block number used here is
relative to the O-number block, which is counted as block No. 1.
Therefore, it is different from a sequence number (Nxxxx). A block
number is used also in G326, G327, G328, and G329.
By using address P, specify the maximum number of readable
variables. If a block to be read is so large that the variables more
than the specified maximum number of readable variables are
required, the read processing is stopped, and completion code 210 is
set in #8529.
Example 1
O0004;
G92 X0. M08;
G90 G00 X10.5 M05;
Assuming the above steps, the variable area will be:
#8520=4;
#8521=3;
#8522=100;
G325 P9;
IF [#8529 NE 0] GOTO 900;
Read completed
N900;
Error
Executing the above commands causes program data to be stored in
an area starting at #100 specified using storage variable number
#8522, as follows:
#100= 7 .............Address G
#101= 90 .............Value
#102= 7 .............Address G
#103= 0 .............Value
#104= 24 .............Address X
#105=10.5 .............Value
#106= 13 .............Address M
#107= 5 .............Value
#108= 27 .............Address EOB