7-120
ECALL(P)
7.6.6 Subroutine calls between program files (ECALL(P))
ECALL(P)
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.
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)
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
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
S1
S5
S1
S5
Main routine
program
ECALLABCPn
END
Subroutine
program
RET
Pn
[File name: MAIN] [File name: ABC]