
18. CUSTOM MACRO
B–63682EN/01
NC FUNCTION
130
Macro programs created by the machine tool builder are stored in FROM.
The macro programs stored in FROM are loaded into DRAM at power–up
so that they can be called from CNC programs stored in ordinary part
program storage (SRAM). These macro programs can be edited in the
same way as ordinary CNC programs. An edited macro program can be
stored in FROM.
An arbitrary password can be used to disable macro program editing.
This function stores the machine tool builder’s macro programs in an area
separate from part program memory, so the machine tool builder can
create macro programs without reducing the user program capacity.
(Macro programs as large as 225–m paper tape storage size can be stored.)
In addition, this function stores macro programs in FROM, so they cannot
be erased easily by mistake.
The BOOT system allows I/O of embedded macro file INMC from
FROM to a memory card.
Embedded macro program numbers are determined by setting the
beginning program number in parameter No. 12011 and the end program
number in parameter No. 12012. Program numbers beyond this range are
assigned to user programs stored in part program storage.
Embedded macro programs can be edited in the same way as programs
stored in part program storage. After edited, a macro program can be
written (stored) into FROM to make the program available when the
power is turned on again.
Edited macro programs can be input/output to external devices through
an interface such as the reader/punch interface.
Embedded macro programs in DRAM can be written into FROM. Macro
programs in DRAM are stored in FROM at a time under the file name
INMC.
When a new FROM file INMC for embedded macros is created, a
password can be given to the INMC file by setting a value from
–99999999 to 99999999 (the password) in parameter No. 12013 and
storing (saving) a macro program in FROM. If the password is set to 0,
no password is assumed, and the file is left unlocked.
To unlock the file, enter the password in parameter No. 12013.
When the file is in the unlocked state, an embedded macro program can
be stored in FROM. The items 1 to 5 listed below follow parameter
settings in the CNC.
To lock the file, enter a non–password value in parameter No. 12013.
When the file is locked, no embedded macro program can be stored. The
items 1 to 5 listed below follow the parameter–set data stored in FROM.
1. Embedded macro program overwrite enabled/disabled (bit 0 of
parameter No. 12001)
2. Embedded macro program reference and editing enabled/disabled
(parameter No. 12010)
3. Embedded macro program number (parameter Nos. 12011 and 12012)
4. Embedded macro series and edition (parameter Nos. 12015 and
12016)
5. Embedded macro G codes and corresponding program numbers
(parameter Nos. 12020 to 12049)
18.6
EMBEDDED MACROS
Explanations
D Program number
D Editing embedded macro
programs
D Write (storage) from
DRAM to FROM
D Embedded macro key
(keyword, password)