Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-119
FCALL(P)
1
2
3
4
6
6
7
8
7.6 Structure creation instructions
7.6.5 Subroutine program output OFF calls (FCALL(P))
(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.
(Error code: 4101)
Following the execution of the CALL (P) instruction, an END, FEND, GOEND, or STOP
instruction is executed before the execution of the RET instruction.
(Error code: 4211)
An RET instruction is executed prior to the execution of the FCALL (P) instruction.
(Error code: 4212)
A 17th nesting level is executed. (Error code: 4213)
The subroutine program of the pointer designated by the FCALL (P) instruction does not
exist. (Error code: 4210)
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] [List Mode]
[Operation]
P0FCALL
P0CALL
FEND RET RET RET
END
P0
P10
P20
CALL P10 CALL P20
FCALL P10 FCALL P20
Step
Instruction
Device
X20
M0
Y1
Forced OFF by FCALL instruction