386
CALL, CALLP
Program Example
(1) The following program forces the FOR to NEXT loop to end when the value of D0 reaches 30 (when the FOR to NEXT
loop has been executed 30 times).
[Ladder Mode]
[List Mode]
Remark
The value 71 is stored at D1 when the BREAK instruction is executed.
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)
7.6.3
CALL, CALLP
Subroutine program calls
7.6.3
CALL, CALLP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
P
Bit
Word
Bit
Word
Pn
––
––
––
to
(Other
than F)
––
Step
Instruction
Device
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
Command
Command
CALL
Pn
CALLP
Pn
Pn
CALL
to
Pn
CALLP
to
CALL
CALLP
S1
S5
S1
S5
CALL
CALLP
S1
S5
S1
S5