Mitsubishi Q00JCPU User Manual page 76

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents