462
7 APPLICATION INSTRUCTIONS
7.6 Structure Creation Instructions
Subroutine program calls
CALL(P)
• When the CALL (P) instruction is executed, executes the subroutine program of the program specified by Pn.
• The CALL (P) instruction can execute subroutine programs specified by a pointer within the same program file and
subroutine programs specified by a common pointer.
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
K, H
Others
P
Bit Word Bit Word
Pn
(S1) to (S5) (Other
than F)
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
Command
Command
CALL
Pn
CALLP
Pn
PnCALL
to
Pn
CALLP
to
CALL
CALLP
S1
S5
S1
S5
CALL
CALLP
Main routine
program
CALL Pn
END
Subroutine
program
RET
Pn