Mitsubishi Electric melsec q00ujcpu User Manual page 35

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents