Mitsubishi Electric M800VW Series Programming Manual page 278

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.5 Program Branch Instructions
CALL, CALLP, RET: Sub-routine program calls and return from sub-routine programs
Setting
Bit devices
data
X
Y
M
L
F
P
[Instruction symbol] [Execution condition]
CALL
CALLP
RET
 Setting data
Setting data
Pn
First pointer number of sub-routine program
 Functions
CALL
 When the CALL (P) instruction is executed, executes the sub-routine program of the program specified by Pn.
Main routine
program
Pn
CALL Pn
END
 CALL or CALLP instructions can be nested up to 8 deep.
POINT
(1) There are the following two pointer numbers to be set by the CALL(P) instruction.
Refer to "4.4.14 Pointer P" for details.
 Local pointer
 Common pointer
RET
 Indicates end of sub-routine program
 When the RET instruction is executed, returns to the step following the CALL(P) instruction which called the sub-routine
program.
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
Sub-routine
program
RET
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
257
Digit
Pointer
designa-
Index
tion
H
P
CALL
Pn
CALLP
Pn
RET
Data type
Device name
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents