617
ZPUSH, ZPUSHP, ZPOP, ZPOPP
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.8
Z
PUSH,
ZPUSHP, Z
P
OP, Z
P
OPP
• When using Universal model QCPU/LCPU
ZPOP
(1) Recovers the contents saved in the area starting from the device designated by to the index register. (When the
saved content is read out to the index register, + 0 (the number of saves made) is decreased by 1.)
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program
E
xamp
l
e
(1) The following program saves the contents of the index register to the fields following D0 before calling the subroutine
following P0 that uses the index register.
[Ladder Mode]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The operation result of +0 (the number of saves made) is 0 in the
ZPOP(P) instruction.
––
4101
For the ZPUSH(P) instruction, the range of the device specified by ,
exceeds the range of the corresponding device.
––
Z0
Z1
N
umber
of
sa
v
es
Z19
Z0
+
0
+
1
+
2
+
20
+
21
+
22
Z1
1st
nest
i
ng
(20
w
ords
for
the
1st
nest
i
ng)
2nd
nest
i
ng
D
D
D
D
D
Step
I
nstruct
i
on
De
vi
ce