Fcall, Fcallp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

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.
Error
code
After the CALL(P), FCALL (P), ECALL (P), EFCALL (P) or XCALL
4211
instruction was executed, an END, FEND, GOEND, or STOP
instruction was excected prior to the RET instruction.
The RET instruction was executed prior to the CALL (P), FCALL (P),
4212
ECALL (P), EFCALL (P) or XCALL instruction.
7.6.5

FCALL, FCALLP

Subroutine program output OFF calls
7.6.5
FCALL, FCALLP
FCALL
FCALLP
FCALL
FCALLP
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)
S1
S5
Setting
Internal Devices
Data
Bit
Pn
––
(Other
to
S1
S5
than F)
Function
(1) When FCALL(P) is executed, the non-execution processing of the subroutine program of the pointer designated by Pn is
performed.
The FCALL (P) instruction can execute subroutine programs designated by a pointer
within the same program file, and subroutine programs designated by common pointers.
(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.
Main routine
program
FCALL Pn
END
Error details
Command
Command
Command
Command
R, ZR
Word
Bit
––
Pn
Q00J/
Q00/
QnH
Q01
High
Basic
performance
FCALLP
FCALL
FCALLP
J
\
U
\G
Word
––
Subroutine
program
Non-execution processing is
executed when the command
for the FCALL(P) instruction is
turned from ON to OFF.
RET
FCALL, FCALLP
QnPH QnPRH
QnU
Process
LCPU
Redundant Universal
FCALL
Pn
Pn
Pn
to
S1
S5
Pn
S1
to
S5
Other
Zn
Constants
1
2
LCPU
3
4
4
6
7
8
P
––
391

Advertisement

Table of Contents
loading

Table of Contents