578
7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
Calling a subroutine program
XCALL
This instruction performs execution or non-execution processing of a subroutine program. When the condition is satisfied, the
instruction triggers CALL for the subroutine. When the condition is broken, it triggers FCALL.
■
Execution condition
Setting data
■
Description, range, data type
*1 Cannot be specified in FBD/LD.
■
Applicable devices
*1 Devices other than F can be used.
• [RnPCPU (redundant)] If the instruction is used in a program executed in both systems, there are restrictions on its operation in the standby system when the
redundant system is in backup mode. (
MELSEC iQ-R CPU Module User's Manual (Application))
Ladder
ST
Not supported
FBD/LD
Instruction
Execution condition
XCALL
Operand
Description
Range
Data type
Data type (label)
(P)
Start pointer number of subroutine program
Device name
POINTER
(s1)
(s5)
Device number to be passed to the subroutine program as
an argument
-2147483648 to 2147483647
Bit/16-bit signed
binary/32-bit signed
binary
ANY
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
(P)
X, Y, M, L,
SM, F, B, SB,
FX, FY
J
\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U
\G
, J
\
,
U3E
\(H)G
Z
LT, LST,
LC
LZ
K, H E
$
(P)
(s1)
(s5)
RnCPU RnENCPU
RnSFCPU RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
(P)
(P)
(s1)...(s5)
EN
ENO
P
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......