Mitsubishi MELSEC-Q/L Programming Manual page 405

Table of Contents

Advertisement

(9) Up to 16 levels of nesting can be used with the EFCALL (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.
ECALL
EFCALL
FEND
END
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
2411
The specified file cannot be executed.
The device specified for the argument cannot be secured for the data
4101
size.
The subroutine program of the pointer specified by the ECALL (P)
4210
instruction does not exist.
After the EFCALL (P) instruction was executed, the END, FEND,
4211
GOEND, or STOP instruction was executed prior to the RET instruction.
4212
The RET instruction was executed prior to the EFCALL (P) instruction.
4213
The 17th nesting level is executed.
Program Example
(1) The following program executes a subroutine program with argument when X0 is ON, and forces non-execution
processing when X20 is turned from ON to OFF.
[Ladder Mode]
"ABC" P0
P0
"ABC" P0
ECALL "DEF" P10
EFCALL"DEF" P10
RET
Error details
[List Mode]
Step
EFCALL, EFCALLP
P10
P20
ECALL "GHI" P20
EFCALL "GHI" P20
RET
RET
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
Instruction
Device
1
2
3
4
4
QnU
LCPU
6
7
8
403

Advertisement

Table of Contents
loading

Table of Contents