Download Print this page

Calling A Subroutine Program - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Calling a subroutine program

CALL(P)
This instruction executes the subroutine program specified by (P).
Ladder diagram
(P)
FBD/LD
Not supported.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(P)
Start pointer number of the subroutine program
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(P)
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.
A
CALL (P)
END
A: Main routine program
B: Subroutine program
Word
T, ST, C, D, W,
U\G
SD, SW, R
B
(P)
RET(SRET)
Structured text
Not supported
Range
Data type
Device name
Double word Indirect
specification
Z
LC
LZ
Data type (label)
POINTER
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.4 Structuring Instruction
8
399

Hide quick links:

Advertisement

loading