394
FCALL, FCALLP
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 X20 is turned ON, and forces non-execution
processing when X20 is turned from ON to OFF.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The device specified for the argument cannot be secured for the data
size.
4210
The subroutine program of the pointer designated by the FCALL (P)
instruction does not exist.
4211
After the CALL (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 FCALL (P) instruction.
4213
The 17th nesting level is executed.
Step
Instruction
Device
X20
M0
Y1
Forced OFF b
y
FCALL instruction