7 APPLICATION INSTRUCTIONS
7.6 Structure Creation Instructions
477
7
Subroutine output OFF calls between program files
EFCALL(P)
• When the EFCALL(P) instruction is executed, the non-execution processing of the subroutine program of the pointer
designated by Pn is performed.
• The EFCALL (P) can also 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)
• 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.
• The operation results for the individual coil instructions following non-execution processing will be as follows, regardless of the ON/OFF status of the individual
contacts:
Item Operation results
OUT instruction Forced OFF
SET instruction
RST instruction
SFT instruction
Basic instructions
Application instructions
Maintains status
PLS instruction
Pulse generation instruction (P)
Processing identical to when condition contacts are OFF
Present value of low speed/high speed timers 0
Present value of retentive timer
Present value of counter
Preserves
Process
High
performance
Redundant
Universal
LCPU
Basic
to
to
S1
S5
S1
S5
Command
Command
Command
Command
EFCALLP
Pn
Pn
EFCALL
File name
EFCALL Pn
File name
File name
Pn
EFCALLP
File name
EFCALL
EFCALLP
EFCALL
EFCALLP
[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.