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
Setting data
■
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)
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)
RnCPU RnENCPU
RnSFCPU RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
(P)
(s1)...(s5)
(P)
(FILE)
(FILE)
EN
ENO
P
FILE
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: ......