Okuma OSP-P200L Programming Manual page 303

Hide thumbs Also See for OSP-P200L:
Table of Contents

Advertisement

4-1-4. MODOUT Statement
[Program Format]
N0
Designates a MODOUT statement
Sequence name of this block (can be omitted)
[Function]
This is the statement to cancel the MODIN mode.
The MODIN mode must be canceled by a MODOUT statement designated in the same
program. That is, the MODIN mode activated in the main program cannot be canceled by a
MODOUT statement in the subprogram, and a MODIN mode active in the subprogram cannot
be canceled by a MODOUT statement in the main program.
The maximum number of subprograms usable in a single program is 125.
[Program Example]
Example of a program with MODIN and MODOUT statements
Main Program
N001
G00
N030
N031
MODIN
N032
X
N033
X
N034
N035
X
N040
MODOUT
N060
M02
The program is started from N001 of the main program and the commands up to N030 are executed
in the normal manner. On execution of the commands in N031, subprogram O1000 is called in the
MODIN mode. However, the subprogram is not executed in this block. When the axis motion
commands in block N032 are completed, subprogram O1000 is called and executed up to N1040 in
that subprogram. The RTS statement causes a jump to the main program and the next in the main
program, N033, is then executed. The same step is repeated up to block N039 in the main program.
The MODOUT statement in N040 cancels the MODIN mode and the commands in the blocks after
N041 are executed in the normal manner.
MODOUT
X
O1000
Z
Z
Z
Z
Subprogram
O1000
N1001
G01
X Z F
N1002
N1040
RTS
5238-E P-290
SECTION 12 USER TASK
LE33013R0301400340001
LE33013R0301400340002

Advertisement

Table of Contents
loading

This manual is also suitable for:

Osp-p20l-rOsp-p20lOsp-p200l-r

Table of Contents