Mitsubishi Electric MELSEC-Q Series User Manual page 29

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

1 OVERVIEW
1 - 10
(4)
Easy shared use of sub-routine programs
Subroutine call instructions with arguments will make it easier to create a
subroutine programs that makes several calls.
Main routine program
M0
0
CALLP
M10
100
CALLP
Sub-routine program
SM400
M0
P0
Always
ON
M0
REMARK
For details regarding the argument input/output condition, refer to Section 10.3.1.
Argument designation
P0
W0
K4X0
R0
Subroutine program
designation
Argument designation
P0
W10
K4X10
R10
FEND
Destination data
source data
MOV
FD0
FD2
MOV
FD1
FD2
RET
END
MELSEC-Q
Argument from FD2
Argument to FD1
Argument to FD0
Argument from FD2
Argument to FD1
Argument to FD0
1 - 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qcpuMelsec q00jcpuMelsec q00cpuMelsec q01cpu

Table of Contents