![Okuma OSP-P200L Programming Manual Download Page 304](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818304.webp)
5238-E P-291
SECTION 12 USER TASK
Nesting and effective range of MODIN/MODOUT mode
The permissible nesting level in MODIN/MODOUT mode is eight.
Example: Two nesting levels
LE33013R0301400350001
In this example, the MODIN mode is active from N001 to N030 for subprogram O1000 and from
N010 to N020 for subprogram O2000.
Operation Sequence:
(1) In the blocks from N001 to N009, subprogram O1000 is called and executed each time an axis
motion command is executed.
(2) In the blocks from N010 to N020, subprogram O1000 is called and executed first after an axis
motion command is executed. Then, subprogram O2000 is called and executed successively.
If the subprogram O2000 contains an axis motion command, N2001 in this example, O1000 is
executed after this axis motion command is completed. After the subprogram O2000 is
completed, the block of commands in the main program is executed.
(3) In the blocks from N021 to N030, subprogram O1000 is called and executed each time an axis
motion command is executed.
N001
:
:
N010
N011
N012
N020
:
:
N030
MODIN
MODIN
G00
:
:
MODOUT
:
:
MODOUT
O1000
O2000
XZ
Subprogram
N1001
:
:
N1010
O1000
G00
RTS
X
Z
N2001
:
:
N2010
O2000
G00
RTS
X
Z
Main Program