403
EFCALL, EFCALLP
1
2
3
4
4
6
7
8
7.6
S
tructure cr
eation
instructions
7.6.7
E
FCALL, EF
CALLP
(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.
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.
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]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
2411
The specified file cannot be executed.
4101
The device specified for the argument cannot be secured for the data
size.
4210
The subroutine program of the pointer specified by the ECALL (P)
instruction does not exist.
4211
After the EFCALL (P) instruction was executed, the END, FEND,
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.
"ABC" P0
EFCALL
"ABC" P0
ECALL
FEND
RET
RET
RET
END
P0
P10
P20
ECALL "DEF" P10
ECALL "GHI" P20
EFCALL"DEF" P10
EFCALL "GHI" P20
Step
Instruction
Device