7-125
EFCALL(P)
1
2
3
4
6
6
7
8
7.6 Structure creation instructions
7.6.7 Subroutine output OFF calls between program files (EFCALL(P))
7.6.7 Subroutine output OFF calls between program files
(EFCALL(P))
EFCALL(P)
Function
(1) When the EFCALL(P) instruction is executed, the non-execution processing of the
subroutine program of the pointer designated by Pn is performed.
(a) Non-execution processing is identical to the processing that is conducted when the
condition contacts for the individual coil instructions are in the OFF state.
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)
–– ––
The EFCALL (P) can also be used to call a subroutine program that uses a
local pointer from a different program file.
Process
High
performance
Redundant
Universal
Basic
to
to
S1
S5
S1
S5
Command
Command
Command
Command
EFCALLP Pn
Pn
EFCALL
File name
EFCALL Pn
File name
File name
PnEFCALLP
File name
EFCALL
EFCALLP
EFCALL
EFCALLP
S1
S5
S1
S5
[File name: MAIN] [File name: ABC]
Main routine
program
Subroutine
program
EFCALL "ABC" Pn
END
RET
Pn
Non-execution processing
is executed when the
command for the
EFCALL(P) instruction is
turned from ON to OFF.