Mitsubishi 00JCPU User Manual page 35

Q series programmable controller
Table of Contents

Advertisement

(b) Subroutine call instruction with argument passing
Subroutine program that is called more than one time can be created easily
Main routine program
M0
0
M10
100
Subroutine program
SM400
P0
Always
on
Figure 1.17 Calling subroutine program with argument passing
*1:
For input and output conditions for an argument, refer to Section 9.3.1.
Argument specification
CALLP
W0
K4X0
R0
P0
Subroutine program
specification
Argument specification
CALLP
P0
W10
K4X10
R10
FEND
Source data
M0
MOV
FD0
FD2
M0
MOV
FD1
FD2
RET
END
*1
Argument from FD2
Argument to FD1
Argument to FD0
*1
Argument from FD2
Argument to FD1
Argument to FD0
Destination data
CHAPTER1 OVERVIEW
1 - 10
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents