480
FX3G/FX3U/FX3UC 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
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 batch-storage times before executing ZPUSH
(FNC102) instruction.
• When using the nest structure, clear the number of batch-storage times before executing ZPUSH (FNC102)
instruction 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 batch-storage times stores a negative value while the ZPUSH (FNC102) instruction is
executed (error code: K6706)
Instruction Description
ZPOP(FNC103)
Restores the index registers V0 to V7 and Z0 to Z7 which were batch-stored temporarily by the 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 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
Z0
V0
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