
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 211 -
Example 2
#8520 = Program number ;
#8521 = Block number;
#8522 = Read variable number;
G325 ; (Reading a specified word-type block)
IF [#8529 EQ 253] GOTO 100;
:
N100 G328 ; (Reading a specified character-type
block)
Writing a specified block (G326/G329)
(1) Writing a specified word-type block (G326)
- Format
G326 Pp;
p : Maximum allowable number of variable data items
- Explanation
Program data created in a variable area can be written at the end of a
block specified using a program number and block number. The
maximum allowable number of variable data items is specified using
address P. If there is address EOB within the specified variable data,
the data up to the EOB is written. If there is address EOR, the data
that precedes the EOR is written. If there is neither EOB nor EOR, a
number of data items specified using address P are written.
Example
O0004;
G92 X0. M08;
G90 G00 X10.5 M05;
Assuming the above steps, the variable area will be:
#8520=4;
#8521=2;
#8522=100;
#100=7;
#101=1;
#102=24;
#103=20.5;
#104=6;
#105=1000;
#106=27;
G326 P7;
IF [#8529 NE 0] GOTO 900;
Write completed
N900;
Error