Mitsubishi MELSEC Q Series Programming Manual page 493

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

Advertisement

(6) Up to 16 nesting levels are possible with the FCALL(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 CALL (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 FCALL (P) instruction.
• A 17th nesting level is executed.
• The subroutine program of the pointer designated by the FCALL (P) instruction does not
exist.
Program Example
(1) The following program executes a subroutine program with argument when X20 is turned
ON, and forces non-execution processing when X20 is turned from ON to OFF.
[Ladder Mode]
[Operation]
X20
M0
Y1
CALL
P0
P0
FCALL
P0
CALL
FCALL P10
FEND
RET
END
Forced OFF by FCALL instruction
P10
P10
CALL
P20
FCALL P20
RET
[List Mode]
Step
Instruction
FCALL(P)
P20
RET
(Error code: 4101)
(Error code: 4211)
(Error code: 4212)
(Error code: 4213)
(Error code: 4210)
Device
7-119
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents