455
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
11
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
4) The figure below shows the data structure batch-stored in
and later.
Related instruction
Cautions
• When not using the nest structure, clear the number of times of batch-storage
before executing
ZPUSH (FNC102) instruction.
• When using the nest structure, clear the number of times of batch-storage
before executing ZPUSH
(FNC102) instruction for the first time.
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the range of points used after
in ZPUSH (FNC102) instruction exceeds the corresponding
device range (error code: K6706)
• When the number of times of batch-storage
stores a negative value while ZPUSH (FNC102)
instruction is executed (error code: K6707)
Instruction
Description
ZPOP(FNC103)
Restores the index registers V0 to V7 and Z0 to Z7 which were batch-stored temporarily by
ZPUSH (FNC102) instruction.
D
· When the nest structure is not used
Index register
Batch-
stored data
Z0
V0
Z1
V1
Z2
V2
Z7
V7
...
*1
+1
+0
+3
+2
+5
+4
+6
+16
+15
...
· When the nest structure is not used
Index register
Batch-
stored data
Z0
V0
Z1
V1
Z2
Z7
V7
...
*1
+1
+0
+3
+2
+5
+4
+16
+15
...
[1] ZPUSH
instruction
Number of times
of batch-storage
: 0
→
1
[4] ZPOP
instruction
Number of times
of batch-storage
:
→
0
Z(0)
V(0)
Z1
V1
+17
+19
+18
+20
[2] ZPUSH instruction
Number of times
of batch-storage
: 1
→
2
[3] ZPOP instruction
Number of times of
batch-storage
: 2
→
1
Z0
V0
Z1
V1
Z2
V2
Z7
V7
...
Z0
V0
Z1
V1
Z2
Z7
V7
...
[2] ZPOP
instruction
Number of times of
batch-storage
is
decremented by
"1".
D
[1] ZPUSH
instruction
Number of times
of batch-storage
is
incremented by "1".
16 points
for 1
nesting
D
D
1st nesting
Number of
times of
batch-
storage
= 1
2nd nesting
Number of
times of
batch-
storage
= 2
...
...
D
D
D
D
D
D
D
*1 Number of times of batch-storage
D
D
D
D