![Okuma OSP-P200L Programming Manual Download Page 300](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818300.webp)
5238-E P-287
SECTION 12 USER TASK
4.
User Task 2
User Task 2 allows the use of more functions than are provided by User Task 1, including I/O
variables, boolean operations, function operations, and control statements such as the CALL
statement, MODIN/MODOUT statements, and PUT/GET statements.
4-1.
Control Functions 2
The control statements available under User Task 2 - CALL statement, RTS statement, MODIN
statement, MODOUT statement, READ/WRITE statement and GET/PUT statement - are described
in this section.
Note that a space or tab code must always be inserted after a control statement.
4-1-1. CALL Statement - Calling Program
[Program format]
LE33013R0301400300001
[Function]
The subprogram designated by <O1> is called and executed. When variables are set in the variable
setting section, all of them are registered.
Example:
LE33013R0301400300002
With the designated commands above, the subprogram O1234 is called and executed. At the same
time, variables XP1 and ZP1 are registered.
N0
CALL
O1
Q1
<Variable setting section>
Sequence name of this block (can be omitted)
Designates a CALL statement
Program name of the subprogram to be called. Mandatory.
Indicates the number of repetitions of the subprogram to be called
(1 to 9999 following address character Q)
Set the variables to be used in the called subprogram.
N1000 CALL O1234 XP1 = 150 ZP1 = 100