Mitsubishi Electric M800VW Series Programming Manual page 279

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
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- Following the execution of the CALL(P) instruction, an END or FEND instruction is executed before the execution of the
RET instruction. (Error code: 26)
- An RET instruction is executed prior to the execution of the CALL (P) instruction. (Error code: 26)
- When stack area has been exceeded due to CALL(P) instruction's nesting, etc. (Error code: 86)
 Program example
 The following program executes a sub-routine program when X1 turns ON from OFF.
10
12
15
17
P33
500
504
IB-1501667-B
[Ladder mode]
X8
X1
CALL P23
X9
FEND
XA
Steps
Y11
10
11
12
13
15
Y13
16
17
18
:
Y33
500
501
502
Y34
503
504
RET
505
258
[List mode]
Inst.
Device
LD
X8
OUT
Y11
LD
X1
CALL
P33
LD
X9
OUT
Y13
FEND
P33
LD
XA
OUT
Y33
OUT
Y34
RET

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents