EasyManua.ls Logo

YASKAWA FS100 - Page 56

YASKAWA FS100
246 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 INFORM Explanation
FS100 2.2 Control Instruction : CALL
2-33
<Calling Job>
NOP
SET B000 1
SET B001 5
SET B002 7
CALL JOB: WAIT_INPUT
:
<Called Job>
Job name: WAIT_INPUT
NOP
WAIT IN#(B000) ON
WAIT IN#(B001) ON
WAIT IN#(B002) ON
RET
This makes the calling job program long, and the global variable will be
used only for this information transfer.
By using the CALL instruction with argument, the above can be described
as follows:
<Calling Job>
NOP
CALL JOB: WAIT_INPUT (1, 5, 7)
:
<Called Job>
Job name: WAIT_INPUT
NOP
GETARG LB000, IARG#(1)//
INPUT NUMBER 1 (receiving the argument 1)
GETARG LB001, IARG#(2)//
INPUT NUMBER 2 (receiving the argument 1)
GETARG LB002, IARG#(3)//
INPUT NUMBER 3 (receiving the argument 1)
WAIT IN#(LB000) ON
WAIT IN#(LB001) ON
WAIT IN#(LB002) ON
RET
This makes the calling job program only one-line long. Also, the called job
can be made by using only the local variable.

Other manuals for YASKAWA FS100

Related product manuals