1
- 35
1.3 Devices and Instructions Convenient for Programming
1
OVERVIEW
(b) Subroutine call instructions with arguments
A subroutine program called several time can be created easily by the subroutine
call instructions with arguments.
* 1 : Refer to Section 10.3.1 for the input/output condition of the argument.
Figure 1.29 Subroutine call instructions with arguments
FD2
FD1
MOV
SM400
FD2
FD0
MOV
RET
FEND
END
M0
M0
M10
R10
K4X10
W10
P0
CALLP
P0
100
0
Subroutine program
Always
ON
Argument from FD2
Argument to FD1
Argument to FD0
source data
Destination data
Argument designation
M0
R0
K4X0
W0
P0
CALLP
Argument from FD2
Argument to FD1
Argument to FD0
Argument designation
Sub routine program
designation
Main routine program
*
1
*
1