
4. CONVERSATIONAL MACRO FUNCTION
AND AUXILIARY MACRO FUNCTION
B–62093E–1/02
PROGRAMMING
42
The conversational macro function is executed only when the
conversational screen is selected with the function key
CUSTOM
.
The conversational macro function executes its macro program whose
program No. is the value of the conversational macro execution control
variable #8500. The value of the conversational macro execution control
variable #8500 is to be set with the parameter No. 9038 at compiling. The
conversational macro function will not be executed when there is not a
conversational macro program compiled whose program No. is the value
of the conversational ma ro execution control variable #8500.
The conversational macro program, as well as NC part program, consists
of macro sentences and NC sentences (specific G code commands).
The conversational macro program can describe all the macro statements
used for the custom macro. And all the system variables and common
variables which can be referred to in the P–CODE program can be read
and written. But the conversational macro program has no local variables
except for #1 to #99. They are used to refer an array type P–CODE
variables #10000 ’s. Also, P–CODE variables are prepared for the
conversational macro control.
It is impossible to execute the normal NC statement with the NC
statement of the conversational macro program. They will be ignored
though commnded. It is impossible to use any codes except the screen
display codes and the execution control codes described in the following
sections. And be sure that the NC statement of the conversational macro
program have the addresses whose meanings and usage are different from
those of the normal NC statement.
The CUSTOM screen started by the conversational macro program is
under the same control as the other screens (POS screen, etc.). Therefore,
finishing of the CUSTOM screen is necessary for changing over from one
screen to another. Decide the timing to finish when executing M99 of the
main program. Be careful about the condition of the conversational
macro program, because if it is of a bad program example as shown below,
it will be impossible to change the screen to another and HANG–UP
STATE will be held. When another function key is pressed mistake, press
CUSTOM
again.