Subroutine Calls Between Program Files (Ecall(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

ECALL(P)
7.6.6

Subroutine calls between program files (ECALL(P))

ECALL(P)
ECALL
ECALLP
ECALL
ECALLP
Setting
Data
File name
Pn
to
S1
Function
(1) Executes the subroutine program of the pointer designated by Pn in the designated program
file name when the ECALL (P) instruction is executed. The ECALL(P) instruction can be
used to call a subroutine program that uses a local pointer from a different program file.
7-120
Command
Command
Command
Command
File name : Name of the program file to be called (character string)
Pn
: Head pointer number of a subroutine program (Device name)
to
: Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
S1
S5
Internal Devices
R, ZR
Bit
Word
––
––
––
(Other
S5
than F)
[File name: MAIN]
Main routine
program
ECALLABCPn
END
High
Basic
performance
ECALL
ECALLP
ECALL
File name
ECALLP
File name
J
\
U
\G
Bit
Word
––
––
[File name: ABC]
Subroutine
program
Pn
RET
Process
Redundant Universal
LCPU
File name
Pn
File name
Pn
Pn
to
S1
S5
Pn
to
S1
S5
Constants
Other
Zn
P
K, H
$
––
––
––
––

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents