Calling A Subroutine Program In The Specified Program File - 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 in the specified program file

ECALL(P)
RnPCPU
RnCPU RnENCPU
(Process)
• [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))
These instructions execute the subroutine program corresponding the specified pointer of the specified program file name.
Ladder
(FILE)
(FILE)
FILE: File name
FBD/LD
EN
ENO
FILE
P
FILE: File name
■Execution condition
Instruction
ECALL
ECALLP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(File name)
Program file name to be called
(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
(File name)
(P)
*1
(s1)(s5)
*1 Any value other than F can be used.
7 APPLICATION INSTRUCTIONS
568
7.4 Structure Creation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(P)
(P)
(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)
Unicode string
ANYSTRING_DOUB
LE
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