
B–62093E–1/02
6. FUNCTIONS OF THE MACRO
EXECUTOR
PROGRAMMING
105
An execution, conversational, or auxiliary P–CODE program can
reference and write common variables (#100 to #149, #500 to #531) used
by a user program for custom macro B. With variables #99100 to #99149
and #99500 to #99999, the P–CODE program can reference and write
common variables #100 to #149 and #500 to #531 of the user program.
#99100 → Corresponds to #100.
:
#99149 → Corresponds to #149.
:
#99500 → Corresponds to #500.
:
#99531 → Corresponds to #531.
With the conventional compilation parameter, DAUX (No. 9002, #5), the
screen of CNC series and edition is displayed while the CNC unit is in the
emergency stop state or external reset state. If a new parameter, DAUXR
(No. 9006, #3), is specified, the conversational macro screen can be
immediately displayed even in the emergency stop state or external reset
state.
DAUXR=1: The conversational macro screen is displayed when the
power is turned on.
Parameter DAUX (No. 9002, #5) must also be set to 1.
If compilation parameter CNCHG (No. 9006, #4) is set to 1, the execution
of a conversational macro can be continued when the
CUSTOM
key is pressed
while the conversational macro screen is displayed. If the parameter is
set to 0, the system assumes that a request to change the screen is made
and the screen is initialized. The current conversational macro is executed
from the beginning.
CNCHG=1: The execution of the conversational macro is continued
when the
CUSTOM
key is pressed while the conversational
macro screen is displayed.
6.22
REFERENCING
COMMON
VARIABLES OF
CUSTOM MACROS
6.23
DISPLAYING THE
CONVERSATIONAL
MACRO SCREEN
WHEN THE POWER
IS TURNED ON
6.24
LEAVING THE
SCREEN
UNCHANGED WHEN
THE KEY IS
PRESSED
CUSTOM