
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
52
The execution of the conversational macro function is processed
internally at a lower level than the automatic operation processing.
Therefore, the execution of the conversational macro function is not
influenced by the processing speed of the automatic operation. However,
it is possible that the conversational macro function processing speed will
be slowed down during automatic operation. Because of this, there is no
guarantee that the conversational macro body must periodically be
executed.
The following functions can be executed at this level.
Macro call instructions (all macro call instructions which can be
commanded in automatic operation)
Read/write of macro variable (local variable, common variable,
system variable)
Reading of NC parameters
Reading of keys
Screen display (character screen, graphic screen)
Read/write of files
Other conversational macro exclusive functions
Normal NC format cannot be executed in conversational macro program
NC format. It is ignored if commanded. Further, note that in the
conversational macro program NC format the meaning of addresses and
method of use is different from in the normal NC format.
The conversational macro screen to be started up by the conversational
macro progam is under the same control as other screens (POS screen,
etc.). Because of this the conversational macro screen must be finished
to switch to other screens. The timing of this finishing is decided when
M99 of the main program is executed. Note that if the conversational
macro program is a program like the following bad example, switching
to other screens will not be possible and the hangup state will occur.
Bad example Good example
O1234 ;
NO
YES
Key input processing
M99 ;
Key input?
Key input?
O1234 ;
NO
YES
Key input processing
M99 ;
For the conversational macro program, perform programming such that
it becomes a cyclic program to return to sequence number specified by
head of main program or M99 Pp, after executing M99 like the PMC
ladder program.
By means of the above, avoid programming in which the branch
destination goes in the reverse direction by GOTO.
4.2
CONVERSATIONAL
MACRO FUNCTION