404
XCALL
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) XCALL instruction executes the subroutine program and performs non-execution processing of the subroutine program.
(a) Execution of subroutine program
Executes each coil instruction according to ON/OFF status of the condition contacts.
(b) Non-execution of subroutine program
Performs the same processing for each coil instruction as when the condition contacts are OFF status. The
operation results for the individual coil instructions following non-execution processing will be as follows, regardless
of the ON/OFF status of the individual contacts:
(2) Operation of XCALL instruction varies according to the CPU module type. The following program example shows the
operation of XCALL instruction for each CPU module.
[Program example]
7.6.8
XCALL
Subroutine program calls
7.6.8
XCALL
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
P
Bit
Word
Bit
Word
P
––
––
––
to
(Other
than F)
––
OUT instruction........................................................ Forced OFF
SET instruction
Maintains status
RST instruction
SFT instruction
................
Basic instructions
Application instructions
PLS instruction
Processing identical to when condition contacts are OFF
Pulse generation
instruction ( P)
................
Present value of low speed/high speed timers......... 0
Present value of retentive timer
................ Preserves
Present value of counter
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
Command
Pn
XCALL
to
S1
S5
XCALL
S1
S5
S1
S5
P1 subroutine program
Subroutine program
(
P1
)
call b
y
XCALL instruction