Mitsubishi MELSEC Q Series Programming Manual page 502

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

EFCALL(P)
(7)
to
S1
(8) The number of function devices used by subroutine programs must be identical to the
number of arguments used by the EFCALL (P) instruction. Further, the function devices
should be identical to the types of arguments used by the EFCALL (P) instruction.
(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.
• The device specified for the argument cannot be secured for the data size.
• Following the execution of the EFCALL (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 EFCALL (P) instruction.
• A 17th nesting level is executed.
• The subroutine program of the pointer designated by the EFCALL (P) instruction does not
exist.
• The designated file does not exist.
• The designated file cannot be 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]
7-128
can be used with the EFCALL (P) instruction.
S5
ECALL
"ABC" P0
EFCALL
"ABC" P0
ECALL "DEF" P10
EFCALL"DEF" P10
FEND
END
P10
P0
ECALL "GHI" P20
EFCALL "GHI" P20
RET
RET
[List Mode]
Step
Instruction
P20
RET
(Error code: 4101)
(Error code: 4211)
(Error code: 4212)
(Error code: 4213)
(Error code: 4210)
(Error code: 4210)
(Error code: 2411)
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents