Calling A Subroutine Program - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Calling a subroutine program

XCALL
RnPCPU
RnCPU RnENCPU
(Process)
• [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))
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.
Ladder
(P)
(P)
FBD/LD
EN
ENO
P
■Execution condition
Instruction
XCALL
Setting data
■Description, range, data type
Operand
Description
(P)
Start pointer number of subroutine program
*1
(s1)(s5)
Device number to be passed to the subroutine program as
an argument
EN
Execution condition
ENO
Execution result
*1 Cannot be specified in FBD/LD.
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(P)
*1
(s1)(s5)
*1 Devices other than F can be used.
7 APPLICATION INSTRUCTIONS
578
7.4 Structure Creation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s1)...(s5)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
Not supported
Range
-2147483648 to 2147483647
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
Device name
POINTER
Bit/16-bit signed
ANY
binary/32-bit signed
binary
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
(P)
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents