
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 212 -
Executing the program data shown above causes the following blocks
to be inserted in the program.
O0004;
G92 X0. M08;
G1 X20.5 F1000.;
G90 G0 X10.5 M05;
If a specified block number corresponds to a block that contains an
EOR only or is greater than its block number, a completion code of
255 occurs, resulting in no write processing being performed.
Specifying 1 as a block number enables a program to be written to a
program that has only a program number, however.
NOTE
1 This command cannot register a program.
If an attempt is made to register a program (with
"O" placed at the start of write data), the error code
(#8529=202) is posted.
2 This command cannot write an extended address
(extended axis name or extended spindle name).
Use the function for writing a specified character-
type block (G329).
(2) Writing a specified character-type block (G329)
- Format
G329 Pp;
p : Maximum allowable number of variable data item
- Explanation
Even when program data is not represented in the word-type format,
program data created on a character-by-character basis can be written
using this function. First, define program data by using ASCII code
in a macro variable area beforehand. Then, use this command to
write the program data after the block specified by program number
and block number. An EOB is specified using ";" (59), and an EOR
is specified using "%" (37).
By using address P, specify the maximum number of variable data
items. If specified variable data includes address "EOB", the data up
to "EOB" is written. If specified variable data includes address
"EOR", the data up to the data immediately before the "EOR" is
written. If specified variable data includes neither "EOB" nor
"EOR", the number of data items specified by address P is written.