Mitsubishi MELSEC-Q/L Programming Manual page 391

Table of Contents

Advertisement

[Operation performed after subroutine program execution]
Before the execution
of subroutine program
D0
0
D1
10
D2
100
Transfer
D3
1000
D4
0
Indefinite
Indefinite
FD0
Indefinite
Indefinite
*1:
Stores the execution result of the subroutine program.
*2:
Replaced by the value of the function device.
(8) Up to 16 nesting levels are possible with the CALL(P) instruction. However, this 16 levels is the total number of levels in
the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.
(9) Devices which are turned ON within subroutine programs will be latched even if the subroutine program is not executed.
Devices which are turned ON during the execution of a subroutine program can be turned OFF by the execution of the
FCALL(P) instruction.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Error
code
The device specified for the argument cannot be secured for the data
4101
size.
There is no subroutine program for the pointer specified in the CALL (P)
4210
instruction.
After the CALL (P) instruction was executed, the END, FEND, GOEND,
4211
or STOP instruction was executed prior to the RET instruction.
4212
The RET instruction was executed prior to the CALL (P) instruction.
4213
The 17th nesting level was executed.
Immediately after the
execution of CALL
instruction
D0
0
D1
10
D2
100
D3
1000
D4
0
0
10
FD0
100
1000
P0
CALL
P0
CALL
FEND
RET
END
Error details
At the time of
subroutine program
execution
D0
0
D1
10
D2
100
D3
1000
Transfer
D4
100 *1
33 *1
1 *1
FD0
FD0
100
1000
P10
P10
CALL
P20
RET
Q00J/
Q00/
QnH
Q01
CALL, CALLP
After the execution
of RET instruction
D0
33 *2
D1
1 *2
D2
100 *2
D3
1000 *2
D4
100
Indefinite
Indefinite
Indefinite
Indefinite
P20
RET
QnPH QnPRH
QnU
1
2
3
4
4
6
7
8
LCPU
389

Advertisement

Table of Contents
loading

Table of Contents