EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Subroutine Calls between Program Files

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
472
7 APPLICATION INSTRUCTIONS
7.6 Structure Creation Instructions
Subroutine calls between program files
ECALL(P)
Processing details
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.
File name: Name of the program file to be called (character string)
Pn: Head pointer number of a subroutine program (Device name)
(S1) to (S5): Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
P
Bit Word Bit Word K, H $
File name  
Pn  
(S1) to (S5) (Other
than F)

Process
High
performance
Redundant
Universal
LCPU
Basic
to
to
S1
S5
S1
S5
Command
Command
Command
Command
ECALLP Pn
Pn
ECALL
File name
ECALL Pn
File name
File name
PnECALLP
File name
ECALL
ECALLP
ECALL
ECALLP
ECALL "ABC" Pn
END
RET
Pn
Main routine
program
Subroutine
program
[File name: MAIN] [File name: ABC]

Table of Contents

Related product manuals