Mitsubishi Electric M700V Series Programming Manual page 400

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions
Returning from user macro interrupt
G23 (H__) ;
An G23 command is issued in the interrupt program to return to the main program. Address H is
used to specify the sequence number of the return destination in the main program. The blocks
from the one next to the interrupted block to the last one in the main program are first searched for
the block with designated sequence number. If it is not found, all the blocks before the interrupted
one are then searched. Control thus returns to the block with sequence number that is found first in
the above search.
(This is equivalent to G23H__ used after G22 calling.)
Modal information affected by user macro interrupt
If modal information is changed by the interrupt program, it is handled as follows after control
returns from the interrupt program to the main program.
Returning
with G23;
Returning
with G23H__;
User macro
interrupt signal
(UIT)
The change of modal information by the interrupt program is invalidated
and the original modal information is not restored.
With interrupt type 1, however, if the interrupt program contains a move or
miscellaneous function (MSTB) command, the original modal information is
not restored.
The original modal information is updated by the change in the interrupt
program even after returning to the main program. This is the same as in
returning with G23H__; from a program called by G22.
Main program
being executed
ION a1 ;
Modal before
interrupt is
restored.
Nh1 ;
Modal modified by
interrupt program
remains effective.
Modal information affected by user macro interrupt
388
13.12 Macro Interrupt; ION, IOF
Interrupt program
La1 ;
(Modal change)
G23(Hh1) ;
(When Hh1
is specified)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents