391
FCALL, FCALLP
1
2
3
4
4
6
7
8
7.6
S
tructure cr
eation
instructions
7.6.5
F
CALL
, 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.
Pn
: Head pointer number of a subroutine program (Device name)
to
: Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
Function
(1) When FCALL(P) is executed, the non-execution processing of the subroutine program of the pointer designated by Pn is
performed.
(a) Non-execution processing is identical to the processing that is conducted when the condition contacts for the
individual coil instructions are in the OFF state.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4211
After the CALL(P), FCALL (P), ECALL (P), EFCALL (P) or XCALL
instruction was executed, an END, FEND, GOEND, or STOP
instruction was excected prior to the RET instruction.
4212
The RET instruction was executed prior to the CALL (P), FCALL (P),
ECALL (P), EFCALL (P) or XCALL instruction.
FCALL, FCALLP
Subroutine program output OFF calls
7.6.5
FCALL, FCALLP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
P
Bit
Word
Bit
Word
Pn
––
––
––
to
(Other
than F)
––
The FCALL (P) instruction can execute subroutine programs designated by a pointer
within the same program file, and subroutine programs designated by common pointers.
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
Command
Command
FCALL
Pn
FCALLP
Pn
Pn
FCALL
to
Pn
FCALLP
to
FCALL
FCALLP
S1
S5
S1
S5
FCALL
FCALLP
S1
S5
S1
S5
F
CA
LL
Pn
EN
D
R
ET
Pn
N
on
-
execut
i
on
process
i
ng
i
s
executed
when
the
command
for
the
F
CA
LL(
P
) i
nstruct
i
on
i
s
turned
from
O
N
to
O
FF.
Ma
i
n
rout
i
ne
program
Subrout
i
ne
program