![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114401.webp)
8 APPLICATION INSTRUCTION
8.4 Structuring Instruction
399
8
Calling a subroutine program
CALL(P)
This instruction executes the subroutine program specified by (P).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• When the CALL(P) instructions are executed, the subroutine program specified by the pointer (P) is executed. The
CALL(P) instructions can execute a subroutine program specified by a pointer in the same program file or by a common
pointer.
Ladder diagram
Structured text
Not supported
FBD/LD
Not supported.
Operand
Description
Range
Data type
Data type (label)
(P)
Start pointer number of the subroutine program
Device name
POINTER
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(P)
A: Main routine program
B: Subroutine program
(P)
CALL (P)
END
(P)
RET(SRET)
B
A
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......