395
ECALL, ECALLP
1
2
3
4
4
6
7
8
7.6
S
tructure cr
eation
instructions
7.6.6
E
CALL, ECALLP
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)
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.
(2) Only the file name of a program file stored in the drive 0 (program memory/internal RAM) can be designated for a file
name.
(3) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
ECALL, ECALLP
Subroutine calls between program files
7.6.6
ECALL, ECALLP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
P
Bit
Word
Bit
Word
K, H
$
File name
––
––
––
Pn
––
––
––
––
to
(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
Pn
ECALLP
File name
ECALL
ECALLP
ECALL
ECALLP
S1
S5
S1
S5
Ma
i
n
rout
i
ne
program
E
CA
LL
ABCPn
EN
D
Subrout
i
ne
program
R
ET
Pn
[Fil
e
name
:
MA
IN]
[Fil
e
name
:
ABC
]