ECALL(P)
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.
• The device specified for the argument cannot be secured for the data size.
• Following the execution of the ECALL (P) instruction, an END, FEND, GOEND, or STOP
instruction is executed before the execution of the RET instruction.
• An RET instruction is executed prior to the execution of the ECALL(P) instruction.
• A 17th nesting level is executed.
• The subroutine program of the pointer designated by the ECALL(P) instruction does not
exist.
• The designated file does not exist.
• The designated file cannot be executed.
Program Example
(1) The following program executes program block P0 of the program A-LINE when X20 is
turned ON.
[Ladder Mode]
[MAIN]
[A-LINE]
7-124
[List Mode]
Step
Instruction
Instruction
Step
(Error code: 4101)
(Error code: 4211)
(Error code: 4212)
(Error code: 4213)
(Error code: 4210)
(Error code: 2410)
(Error code: 2411)
Device
Device