
PROGRAMMING
B–63684EN/01
14. FUNCTIONS TO SIMPLIFY
PROGRAMMING
165
The macro function enables commands consisting of several blocks to be
stored in the NC memory as a single macro and to be called when
necessary.
To store several blocks as a single macro, attach numerics of 2 digits (01
to 89) following address work U before commanding several blocks to be
stored and attach the same numerals following address word V after them,
then the several blocks sandwiched in between U and V are stored.
We call the numerics of 2 digits following U or V “macro number”. If the
macro number is any of 01 to 59, then blocks sandwiched in between U
and V are stored with their execution. If the macro number is any of 60
to 89, only storage of blocks is performed without their execution.
;
G92X1830.0Y1270.0 ;
. . . . .
. . . . .
U02 ;
G90X100.0Y500.0T32 ;
G72X150.0Y700.0 ;
G87I100.0J300.0P10.0 ;
N100M100 ;
G72X500.0Y300.0T26 ;
A03G26I100.0J0K4 ;
G72X800.0Y300.0 ;
B03 ;
V02 ;
. . . . .
. . . . .
U70 ;
G90X200.0Y100.0T20 ;
G79I8.0J10.0P3K10 ;
G90X1000.0Y50.0T31 ;
G76I25.0J60.0K6 ;
V70 ;
. . . . .
. . . . .
Storing while command
executing
Storing without command
executing
In the blocks to be sandwiched in between U and V, all commands other
than ones for storage of macros according to other macro numbers (see
example) may be specified. But controller resetting commands, such as
M02, M30, etc., can not be specified. In addition, the part for custom
macros cannot be specified.
Address words U and V must be specified in independent blocks except
for the sequence number (a numeric string of 5 digits following N).
Details of macro numbers 90 to 99 will be described later.
14.4
MACRO FUNCTION
14.4.1
Storage of Macros
Examples