568
7 APPLICATION INSTRUCTIONS
7.4 Structure Creation Instructions
Calling a subroutine program in the specified program file
ECALL(P)
These instructions execute the subroutine program corresponding the specified pointer of the specified program file name.
■Execution condition
■Descriptions, ranges, and data types
*1 Cannot be specified in FBD/LD.
■Applicable devices
*1 Any value other than F can be used.
• [RnPCPU (redundant)] If these instructions are used in a program executed in both systems, there are restrictions on their operation in the standby system
when the redundant system is in backup mode. ( MELSEC iQ-R CPU Module User's Manual (Application))
Ladder ST
FILE: File name
Not supported
FBD/LD
FILE: File name
Instruction Execution condition
ECALL
ECALLP
Operand Description Range Data type Data type (label)
(File name) Program file name to be called Unicode string ANYSTRING_DOUB
LE
(P) Start pointer number of subroutine program Device name POINTER
(s1)(s5)
*1
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 $
(File name)
(P)
(s1)(s5)
*1
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(P) (s1)...(s5)
(P)
(FILE)
(FILE)